/* ==========================================================
   Design #9 — "Terre & Majorelle"
   Étanchéité Terrasse Marrakech (bilingue FR/EN)
   Palette: sable #F6F0E4 · encre #2B2724 · terracotta #B85C33
   Majorelle désaturé #2E4A7A · palmier #4A6B4F · WhatsApp #25D366
   Polices: Marcellus (titres) + Work Sans (texte)
   ========================================================== */

:root {
  --sand: #F6F0E4;
  --sand-2: #EFE6D3;
  --ink: #2B2724;
  --ink-soft: #57504A;
  --terra: #B85C33;
  --terra-dark: #9A4A28;
  --majo: #2E4A7A;
  --majo-dark: #23395F;
  --palm: #4A6B4F;
  --wa: #25D366;
  --wa-dark: #1DA851;
  --white: #FFFFFF;
  --line: #E0D5BF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 39, 36, .10);
  --shadow-sm: 0 4px 14px rgba(43, 39, 36, .08);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }

body {
  font-family: "Work Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name {
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--majo); text-decoration: none; }
a:hover { color: var(--terra); }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: "Work Sans", sans-serif; font-weight: 600; font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-terra { background: var(--terra); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-terra:hover { background: var(--terra-dark); color: var(--white); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: var(--wa-dark); color: #fff; }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255, 255, 255, .7);
}
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-block { width: 100%; margin-top: 10px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--majo-dark); color: #EDE4D2;
  font-size: .82rem; padding: 7px 0;
}
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.topbar a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar a svg { fill: var(--wa); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(246, 240, 228, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 18px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 42px; height: 42px; border-radius: 10px; }
.brand-name { font-size: 1.02rem; letter-spacing: .02em; }
.brand-name strong { color: var(--terra); font-weight: 400; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a, .drop-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; border-radius: 8px; color: var(--ink);
  font-weight: 600; font-size: .93rem; background: none; border: 0;
  font-family: "Work Sans", sans-serif; cursor: pointer;
}
.main-nav a:hover, .drop-toggle:hover { background: var(--sand-2); color: var(--terra); }

.has-drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; display: none; z-index: 950;
}
.has-drop.open .dropdown { display: block; }
.dropdown li a { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .9rem; }
.dropdown li a:hover { background: var(--sand); }

.lang-switch {
  border: 1.5px solid var(--majo); color: var(--majo) !important;
  border-radius: 999px; padding: 6px 14px !important; margin-left: 6px;
  font-size: .85rem !important;
}
.lang-switch:hover { background: var(--majo) !important; color: #fff !important; }

.header-wa { padding: 10px 18px; font-size: .9rem; white-space: nowrap; }

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

/* ---------- Hero (home) ---------- */
.hero {
  background:
    linear-gradient(rgba(43, 39, 36, .55), rgba(43, 39, 36, .62)),
    url("../img/hero-terrasse-marrakech.jpg") center/cover no-repeat,
    linear-gradient(135deg, var(--majo-dark), var(--terra-dark));
  color: #fff; padding: 52px 0 56px;
}
.hero-in { display: grid; grid-template-columns: 1.15fr .95fr; gap: 34px; align-items: start; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 14px; }
.hero-sub { font-size: 1.02rem; color: #F3E7CF; font-weight: 600; margin-bottom: 16px; }
.hero-lead { font-size: 1.02rem; color: #FBF6EC; margin-bottom: 18px; }
.hero-points li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; color: #FBF6EC; font-size: .96rem; }
.hero-points svg { flex: 0 0 18px; margin-top: 4px; }

.badge-season {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184, 92, 51, .92); color: #fff;
  padding: 7px 15px; border-radius: 999px; font-size: .82rem; font-weight: 600;
}
.badge-season svg { flex: 0 0 18px; }

/* ---------- Formulaire ---------- */
.hero-card, .form-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
  border-top: 5px solid var(--terra);
  color: var(--ink);
}
.form-card h2, .hero-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.form-note { font-size: .86rem; color: var(--ink-soft); margin-bottom: 14px; }
.lead-form label { display: block; font-size: .82rem; font-weight: 600; margin: 10px 0 4px; color: var(--ink); }
.lead-form input[type="text"], .lead-form input[type="tel"],
.lead-form select, .lead-form textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line);
  border-radius: 9px; font-family: inherit; font-size: .95rem;
  background: #FDFBF6; color: var(--ink);
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--majo); box-shadow: 0 0 0 3px rgba(46, 74, 122, .14);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.privacy-check {
  display: flex !important; align-items: flex-start; gap: 9px;
  font-size: .8rem !important; font-weight: 400 !important; color: var(--ink-soft) !important;
  margin-top: 12px !important; line-height: 1.45;
}
.privacy-check input { margin-top: 3px; accent-color: var(--terra); }
.form-wa { margin-top: 8px; }
.form-privacy { font-size: .76rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }

/* ---------- Trustbar ---------- */
.trustbar { background: var(--majo); color: #F6F0E4; padding: 16px 0; }
.trustbar-in { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .9rem;
}
.trust-item svg { flex: 0 0 26px; }

/* ---------- Sections ---------- */
.section { padding: 58px 0; }
.section-alt { background: var(--sand-2); }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--terra);
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.section-lead { color: var(--ink-soft); max-width: 760px; margin-bottom: 26px; }
.section h2 { margin-top: 34px; margin-bottom: 12px; font-size: 1.55rem; }
.section h2:first-child { margin-top: 0; }
.section p { margin-bottom: 14px; max-width: 900px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.why-card, .card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.why-card { padding: 22px; }
.why-icon { margin-bottom: 12px; }
.why-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.why-card p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--sand-2); }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 7px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--terra); }
.card-body p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 10px; }
.card-link { font-weight: 700; font-size: .88rem; color: var(--terra); }
.card-link:hover { color: var(--terra-dark); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); background: var(--sand-2); }

/* ---------- Table prix ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0 8px; }
.price-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  font-size: .93rem;
}
.price-table caption {
  caption-side: top; text-align: left; font-weight: 600;
  color: var(--ink-soft); font-size: .85rem; padding-bottom: 8px;
}
.price-table th {
  background: var(--majo); color: #fff; text-align: left;
  padding: 12px 14px; font-size: .85rem; letter-spacing: .03em;
}
.price-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tr:nth-child(even) td { background: #FBF7EE; }
.price-table .price { font-weight: 700; color: var(--terra-dark); white-space: nowrap; }
.table-note { font-size: .83rem; color: var(--ink-soft); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 20px 0 8px; }
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--terra); color: #fff; font-family: "Marcellus", serif;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin-bottom: 7px; }
.step p { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* ---------- Témoignages ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
.testimonial {
  background: var(--white); border: 1px solid var(--line);
  border-left: 5px solid var(--palm); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.testimonial p { font-size: .9rem; font-style: italic; color: var(--ink); margin-bottom: 10px; }
.testimonial cite { font-size: .82rem; font-weight: 700; color: var(--majo); font-style: normal; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 15px 18px; font-family: "Work Sans", sans-serif;
  font-size: .97rem; font-weight: 600; color: var(--ink);
}
.faq-q:hover { color: var(--terra); }
.faq-q svg { flex: 0 0 18px; transition: transform .25s ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 18px 16px; }
.faq-a-inner p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* ---------- CTA ---------- */
.cta { background: var(--majo-dark); color: #F6F0E4; padding: 44px 0; margin-top: 20px; }
.cta-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: #EDE4D2; }
.cta-checks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; font-size: .94rem; }
.cta-checks svg { flex: 0 0 18px; margin-top: 4px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-wa-big {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 1.2rem;
  padding: 14px 26px; border-radius: 999px; margin-top: 16px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .35);
}
.cta-wa-big:hover { background: var(--wa-dark); color: #fff; }
.cta-wa-big svg { width: 24px; height: 24px; }
.cta-mid { border-radius: var(--radius); margin: 30px 0; }
.cta-mid .cta-in { grid-template-columns: 1fr; }

/* ---------- Breadcrumb / chips / pages ---------- */
.breadcrumb { font-size: .82rem; margin-bottom: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--terra); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: #F3E7CF; }
.breadcrumb li span { color: #fff; font-weight: 600; }

.page-hero {
  background: linear-gradient(135deg, var(--majo-dark) 0%, var(--majo) 55%, var(--terra-dark) 130%);
  color: #fff; padding: 38px 0 42px;
}
.page-hero-in { display: grid; grid-template-columns: 1.1fr .95fr; gap: 34px; align-items: start; }
.page-hero h1 { color: #fff; font-size: clamp(1.55rem, 3.2vw, 2.25rem); margin-bottom: 12px; }
.page-hero .hero-sub { color: #F3E7CF; }
.page-hero .kicker { color: #F0C9A8; }
.page-lead { color: #FBF6EC; font-size: .98rem; margin-bottom: 14px; }
.page-hero-img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 18px 0; background: var(--sand-2); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.chip {
  display: inline-block; background: var(--white); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: .86rem; font-weight: 600;
  color: var(--ink); transition: all .15s ease;
}
.chip:hover { border-color: var(--terra); color: var(--terra); background: #FBF3EC; }
.chip-service { border-color: var(--majo); color: var(--majo); }
.chip-service:hover { background: var(--majo); color: #fff; border-color: var(--majo); }

.more-services { font-size: .9rem; margin-top: 18px; }

.urgency-season {
  background: #FBF3EC; border: 1px solid #EBD3BF; border-left: 5px solid var(--terra);
  border-radius: 12px; padding: 14px 18px; margin: 16px 0;
}
.urgency-season p { font-size: .88rem; color: var(--ink); margin: 0; }
.hero .urgency-season, .page-hero .urgency-season { background: rgba(255, 255, 255, .12); border-color: rgba(255,255,255,.25); }
.hero .urgency-season p, .page-hero .urgency-season p { color: #FDF8EE; }

.text-page { max-width: 820px; }
.text-page h2 { margin-top: 30px; }
.text-page.center { text-align: center; }
.text-page.center .chips { justify-content: center; }
.contact-list li { margin-bottom: 10px; font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFC4B2; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px; padding: 48px 20px 30px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-name { color: #F6F0E4; }
.site-footer h3 { color: #F6F0E4; font-size: 1rem; margin-bottom: 12px; }
.site-footer p { font-size: .86rem; margin-bottom: 12px; }
.site-footer ul li { margin-bottom: 7px; }
.site-footer a { color: #CFC4B2; font-size: .87rem; }
.site-footer a:hover { color: #F0C9A8; }
.footer-contact li { font-size: .87rem; }
.footer-bottom {
  border-top: 1px solid rgba(246, 240, 228, .14);
  padding: 16px 20px; display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; font-size: .8rem; max-width: 1160px; margin: 0 auto;
}

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 990;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(43, 39, 36, .97);
  transform: translateY(110%); transition: transform .3s ease;
}
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 10px; border-radius: 999px; font-weight: 700; font-size: .95rem;
}
.mobile-cta-wa { background: var(--wa); color: #fff; }
.mobile-cta-quote { background: var(--terra); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Menu mobile: jamais de blocage du scroll body (fix §9) */
  .hamburger { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; width: 100%;
    background: var(--sand); box-shadow: 0 18px 40px rgba(43, 39, 36, .18);
    padding: 14px 22px 26px; overflow-y: auto; max-height: calc(100dvh - 64px);
    margin-left: 0; display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a, .drop-toggle { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 1rem; }
  .dropdown {
    position: static; display: none; box-shadow: none; border: 0;
    border-left: 3px solid var(--terra); border-radius: 0;
    margin: 2px 0 8px 12px; padding: 2px 0 2px 8px; min-width: 0;
  }
  .has-drop.open .dropdown { display: block; }
  .lang-switch { margin: 10px 0 0; text-align: center; }
  .header-wa .wa-label { display: none; }
  .header-wa { padding: 10px 12px; border-radius: 50%; }
  .topbar-in span { display: none; }
  .topbar-in { justify-content: center; }

  /* Ordre hero mobile: titre -> formulaire -> texte (fix §9) */
  .hero-in, .page-hero-in, .cta-in, .split { display: flex; flex-direction: column; }
  .hero-head { order: 1; }
  .hero-form { order: 2; width: 100%; }
  .hero-body { order: 3; }
  .hero { padding: 34px 0 40px; }
  .page-hero { padding: 26px 0 32px; }
  .section { padding: 40px 0; }

  .mobile-cta { display: flex; }
  body { padding-bottom: 0; }
  .site-footer { margin-bottom: 64px; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trustbar-in { justify-content: center; }
  .trust-item { font-size: .82rem; }
}
justify-content: center; }
  .trust-item { font-size: .82rem; }
}
