/* ============================================================
   Écrivain Public Lakbal — ecrivainpublicagreesahel.com
   Palette d'origine (Wix) : terracotta #823C2E, brun #633025,
   beige #F4E3DC — Polices : Fahkwang (titres) / Montserrat (texte)
   ============================================================ */

:root {
  --terracotta: #823C2E;
  --terracotta-dark: #633025;
  --ink: #23120C;
  --beige: #F4E3DC;
  --cream: #FBF6F1;
  --white: #FFFFFF;
  --grey: #6E6E6E;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(99, 48, 37, 0.10);
  --font-title: 'Fahkwang', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

html, body { overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { width: min(1140px, 92%); margin: 0 auto; }

.section { padding: 96px 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); box-shadow: 0 8px 20px rgba(130,60,46,.35); }
.btn-light { background: var(--beige); color: var(--terracotta-dark); }
.btn-light:hover { background: var(--white); }
.btn-outline-light { border-color: var(--beige); color: var(--beige); background: transparent; }
.btn-outline-light:hover { background: rgba(244,227,220,.15); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(130,60,46,.12);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 0;
}
.brand-logo { height: 46px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-cta { padding: 10px 24px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--terracotta);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 940px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/hero.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(35,18,12,.82) 0%, rgba(35,18,12,.55) 55%, rgba(99,48,37,.35) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 120px 0; }
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 18px;
  padding-left: 56px;
  position: relative;
}
.hero-eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 40px; height: 2px;
  background: var(--terracotta);
}
.hero-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.12;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-title span { color: var(--beige); }
.hero-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 38px;
  max-width: 640px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section-head { text-align: center; margin-bottom: 56px; }
.section-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.section-rule {
  width: 64px; height: 3px;
  background: var(--terracotta);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* ---------- Prestations ---------- */
.prestations { background: var(--cream); }
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--terracotta);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(99,48,37,.16); }
.card-wide { grid-column: 1 / -1; }
.card-num {
  position: absolute;
  top: 28px; right: 32px;
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--beige);
  line-height: 1;
}
.card h3 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--terracotta);
  margin-bottom: 6px;
  padding-right: 70px;
}
.card-tagline {
  font-style: italic;
  color: var(--grey);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.card ul { list-style: none; margin-top: 14px; }
.card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.card li::before {
  content: "✒";
  position: absolute;
  left: 0; top: 0;
  color: var(--terracotta);
  font-size: 0.9rem;
}
.card ul.two-col {
  columns: 2;
  column-gap: 48px;
}
.card ul.two-col li { break-inside: avoid; }

/* ---------- Photos ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.photo-strip img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* ---------- Bandeau ---------- */
.banner {
  background: var(--terracotta);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.banner-words {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.banner-words .dot { color: var(--beige); margin: 0 10px; }
.banner-sub {
  margin-top: 12px;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--beige);
}

/* ---------- Contact ---------- */
.contact { background: var(--beige); }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
.contact-info .section-title { text-align: left; }
.contact-info .section-rule { margin-left: 0; }
.info-list { list-style: none; margin-top: 32px; }
.info-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 1rem;
}
.info-list a { color: var(--terracotta-dark); font-weight: 600; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.info-icon { flex: none; }
.devise {
  margin-top: 34px;
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--terracotta-dark);
}
.info-logo { width: 190px; margin-top: 40px; }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow);
}
.form-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--terracotta);
  margin-bottom: 28px;
}
.contact-form .field { margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form label, .contact-form legend {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 7px;
}
.req { color: var(--terracotta); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="date"],
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid #D9C6BE;
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(130,60,46,.14);
}
.contact-form fieldset { border: none; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  font-size: 0.92rem;
  cursor: pointer;
}
.check input {
  accent-color: var(--terracotta);
  width: 17px; height: 17px;
  margin-top: 3px;
  flex: none;
}
.file-input { font-size: 0.85rem; padding: 9px 0; width: 100%; }
.file-input::file-selector-button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--terracotta);
  background: var(--beige);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  margin-right: 12px;
  cursor: pointer;
}
.btn-submit { width: 100%; margin-top: 8px; font-size: 1rem; }
.btn-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { margin-top: 14px; font-size: 0.92rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #2E7D32; }
.form-status.err { color: #C62828; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--terracotta-dark);
  color: rgba(255,255,255,.85);
  padding: 34px 0;
  text-align: center;
}
.footer-site a { color: var(--beige); font-weight: 600; text-decoration: none; }
.footer-site a:hover { text-decoration: underline; }
.footer-copy { font-size: 0.82rem; margin-top: 8px; }

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .card ul.two-col { columns: 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .header-cta { display: none; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .nav-toggle { display: flex; margin-left: auto; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(130,60,46,.15);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 16px 6%; border-top: 1px solid rgba(130,60,46,.08); }
  .hero-content { padding: 90px 0; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { height: 240px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form-wrap { padding: 32px 24px; }
}
