/* =====================================================
   MARNE ÉLAGAGE — Design tokens
   River teal #1d3b3a · Sand #ede3d0 · Terracotta #c1502e
   Willow #7c8f5e · Slate #5b6660
   Display: Newsreader · Body: Work Sans · Mono: IBM Plex Mono
===================================================== */

:root {
  --river: #1d3b3a;
  --river-soft: #25453f;
  --sand: #ede3d0;
  --sand-deep: #e3d6bc;
  --terracotta: #c1502e;
  --terracotta-tint: #c1502e1f;
  --willow: #7c8f5e;
  --slate: #5b6660;
  --cream: #fffdf8;
  --line: rgba(29, 59, 58, 0.14);
  --line-light: rgba(237, 227, 208, 0.18);

  --font-display: "Newsreader", serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(29, 59, 58, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--river);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.2rem); }
h3 { font-size: 1.12rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--slate); }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.6em;
}

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus {
  left: 12px; top: 12px;
  background: var(--terracotta); color: var(--cream);
  padding: 8px 14px; border-radius: 8px; z-index: 999;
}
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--terracotta); color: var(--cream);
  box-shadow: 0 10px 24px -10px rgba(193, 80, 46, 0.55);
}
.btn-ghost { background: transparent; border-color: var(--line-light); color: inherit; }
.btn-full { width: 100%; }

/* ============ HEADER ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--river); border-bottom: 1px solid var(--line-light); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--sand); }
.brand-mark { color: var(--terracotta); display: flex; }
.brand-text { font-family: var(--font-display); font-size: 1.08rem; display: flex; gap: 4px; }
.brand-text strong { font-weight: 700; }
.brand-text span { color: var(--terracotta); font-weight: 600; }
.brand-text.light { color: var(--sand); font-size: 1.25rem; }

.main-nav { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; color: var(--sand); }
.main-nav a { opacity: 0.82; }
.main-nav a:hover { opacity: 1; }
.nav-cta { background: var(--terracotta); color: var(--cream) !important; padding: 8px 16px; border-radius: 999px; font-weight: 600; opacity: 1 !important; }

.phone-pill {
  display: inline-flex; align-items: center; gap: 8px; color: var(--sand);
  border: 1px solid var(--line-light); padding: 9px 16px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.86rem; white-space: nowrap;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--sand); border-radius: 2px; }

.breadcrumb-bar { padding: 8px 24px 12px; font-size: 0.8rem; color: rgba(237, 227, 208, 0.65); }
.breadcrumb-bar a { color: rgba(237, 227, 208, 0.85); }
.breadcrumb-bar a:hover { color: var(--terracotta); }
.breadcrumb-bar .current { color: var(--sand); }

/* ============ RIVER DIVIDER (signature) ============ */
.river-divider {
  height: 28px;
  background-repeat: repeat-x;
  background-size: 80px 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='28' viewBox='0 0 80 28'%3E%3Cpath d='M0 18 Q20 6 40 18 T80 18' fill='none' stroke='%23c1502e' stroke-width='2' stroke-linecap='round' opacity='0.55'/%3E%3C/svg%3E");
}

/* ============ HERO ============ */
.hero { background: radial-gradient(ellipse 80% 60% at 18% 0%, var(--river-soft) 0%, var(--river) 60%); color: var(--sand); padding: 72px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--sand); }
.hero-lead { color: rgba(237, 227, 208, 0.8); font-size: 1.05rem; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero-note { font-family: var(--font-mono); font-size: 0.82rem; color: rgba(237, 227, 208, 0.55); }

.hero-card { background: var(--cream); color: var(--river); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); font-family: var(--font-mono); border-top: 4px solid var(--terracotta); }
.hero-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.hero-card-tag { background: var(--terracotta-tint); color: #8a3a1f; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.hero-spec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.hero-spec-list li { display: flex; justify-content: space-between; gap: 16px; font-size: 0.86rem; }
.hero-spec-list span { color: var(--slate); }
.hero-spec-list strong { text-align: right; font-weight: 600; }
.hero-card-foot { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.78rem; color: var(--slate); }

/* ============ GARANTIES ============ */
.garanties { background: var(--sand-deep); border-bottom: 1px solid var(--line); }
.garanties-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.garantie-item { padding: 22px 18px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.garantie-item:last-child { border-right: none; }
.garantie-item strong { font-family: var(--font-display); font-size: 0.98rem; }
.garantie-item span { font-size: 0.82rem; color: var(--slate); }

/* ============ SERVICES ============ */
.services { padding: 90px 0; }
.services h2 { max-width: 640px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.service-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color 0.15s ease; }
.service-card:hover { border-color: var(--terracotta); }
.service-code { display: inline-block; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; color: var(--terracotta); background: var(--terracotta-tint); padding: 3px 9px; border-radius: 6px; margin-bottom: 14px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin: 0; }

/* ============ METHODE ============ */
.methode { background: var(--river); color: var(--sand); padding: 90px 0; }
.methode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.methode h2 { color: var(--sand); }
.methode-copy p { color: rgba(237, 227, 208, 0.72); }
.methode-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.methode-steps li { display: flex; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line-light); font-size: 0.96rem; color: rgba(237, 227, 208, 0.88); }
.methode-steps li:last-child { border-bottom: none; padding-bottom: 0; }
.methode-steps span { font-family: var(--font-mono); color: var(--terracotta); font-weight: 700; font-size: 0.9rem; }

/* ============ ZONE ============ */
.zone { padding: 90px 0; }
.zone h2 { max-width: 640px; }
.zone-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 32px 0 18px; }
.zone-chips li { font-family: var(--font-mono); font-size: 0.85rem; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); }
.zone-chips li a { display: block; }
.zone-chips li:hover { border-color: var(--terracotta); }
.zone-chip-current { background: var(--river) !important; color: var(--sand) !important; border-color: var(--river) !important; font-weight: 600; }
.zone-note { font-size: 0.9rem; }

/* ============ AVIS ============ */
.avis { background: var(--sand-deep); padding: 90px 0; }
.avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.avis-card { background: var(--cream); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.avis-card p { font-size: 0.95rem; color: var(--river); margin-bottom: 14px; font-family: var(--font-display); }
.avis-card footer { font-family: var(--font-mono); font-size: 0.8rem; color: var(--slate); }

/* ============ DEVIS / FORM ============ */
.devis { padding: 90px 0; }
.devis-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.devis-info p { max-width: 420px; }
.devis-coords { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 0.92rem; }

.devis-form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-split > div { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; }
.form-row input, .form-row select, .form-row textarea { font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--river); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--terracotta); }
.field-error { color: #a13a1f; font-size: 0.8rem; }
.form-alert { background: #f7e3da; color: #a13a1f; padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 16px; }
.form-row-checkbox { display: flex; align-items: flex-start; gap: 10px; flex-direction: row; }
.form-row-checkbox input { width: 18px; height: 18px; margin-top: 2px; }
.form-row-checkbox label { font-size: 0.85rem; font-weight: 400; color: var(--slate); }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ============ MERCI ============ */
.merci { padding: 110px 0; }
.merci-box { max-width: 460px; margin: 0 auto; text-align: center; }
.merci-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 999px; background: var(--terracotta-tint); color: #8a3a1f; margin-bottom: 20px; }
.merci-back { display: block; margin-top: 14px; font-size: 0.88rem; text-decoration: underline; }

/* ============ LEGAL / 404 ============ */
.legal { padding: 90px 0; }
.legal-box { max-width: 680px; margin: 0 auto; }
.legal-box h2 { margin-top: 1.6em; font-size: 1.2rem; }

/* ============ FOOTER ============ */
.site-footer { background: var(--river); color: rgba(237, 227, 208, 0.78); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.9fr 1.4fr 0.9fr; gap: 32px; }
.footer-brand p { color: rgba(237, 227, 208, 0.6); font-size: 0.88rem; margin-top: 10px; }
.footer-col h3 { font-family: var(--font-display); color: var(--sand); font-size: 0.9rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; }
.footer-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.footer-zones a:hover { color: var(--terracotta); }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-light); font-size: 0.8rem; }

/* ============ STICKY CALL (mobile) ============ */
.sticky-call {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--terracotta); color: var(--cream); padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; display: none; align-items: center; gap: 8px;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4); z-index: 60;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .hero-grid, .methode-grid, .devis-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .services-grid, .avis-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .garanties-grid { grid-template-columns: repeat(2, 1fr); }
  .garantie-item:nth-child(2) { border-right: none; }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--river); flex-direction: column; padding: 18px 24px 24px; gap: 16px; border-bottom: 1px solid var(--line-light); }
  .phone-pill { display: none; }
  .services-grid, .avis-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-zones { grid-template-columns: 1fr 1fr; }
  .sticky-call { display: flex; }
  .garanties-grid { grid-template-columns: 1fr 1fr; }
  .garantie-item { border-right: none; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
