/* =========================================================
   Terraline® — Site one page
   Charte graphique MICROTERRA
   ========================================================= */

:root {
  /* Couleurs charte */
  --mt-green-dark: #2F5E2D;
  --mt-green: #6FA63A;
  --mt-green-light: #A7C93A;
  --mt-sage: #DDE7C7;
  --mt-brown: #5A3A24;
  --mt-brown-light: #A1744F;
  --mt-gold: #C79A52;
  --mt-beige: #F2E8D8;
  --mt-offwhite: #FAF8F2;
  --mt-white: #FFFFFF;
  --mt-text: #2B2B2B;
  --mt-text-soft: #6E6E6E;

  --radius: 18px;
  --radius-btn: 12px;
  --shadow: 0 10px 30px rgba(47, 94, 45, 0.08);
  --shadow-strong: 0 18px 50px rgba(47, 94, 45, 0.16);
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mt-offwhite);
  color: var(--mt-text);
  font-family: "Open Sans", "Source Sans 3", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mt-green-dark); }

h1, h2, h3, h4 {
  font-family: "Montserrat", "Poppins", Arial, sans-serif;
  color: var(--mt-green-dark);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(21px, 2.4vw, 26px); color: var(--mt-green-dark); }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
#probleme { padding-top: clamp(28px, 4vw, 55px); }
.section--soft { background: var(--mt-beige); }
.section--sage { background: var(--mt-sage); }
.section--dark { background: var(--mt-green-dark); color: #f3f5ee; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mt-green);
  margin-bottom: 14px;
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--mt-text); }
.muted { color: var(--mt-text-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--radius-btn);
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--mt-green); color: #fff; }
.btn--primary:hover { background: var(--mt-green-dark); }
.btn--secondary { background: transparent; color: var(--mt-green-dark); border-color: var(--mt-green-dark); }
.btn--secondary:hover { background: var(--mt-green-dark); color: #fff; }
.btn--light { background: #fff; color: var(--mt-green-dark); }
.btn--light:hover { background: var(--mt-beige); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  overflow: visible; /* logo peut dépasser légèrement vers le bas */
}
/* État au scroll : fond uni opaque + ombre pour bien ressortir */
.site-header.scrolled {
  background: #FAF8F2;
  backdrop-filter: none;
  border-bottom-color: var(--mt-sage);
  box-shadow: 0 2px 16px rgba(47, 94, 45, 0.12);
  overflow: hidden;
}
/* Logo blanc sur fond hero sombre */
.site-header:not(.scrolled) .brand img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
/* Nav links blancs sur fond transparent */
.site-header:not(.scrolled) .nav a {
  color: rgba(255,255,255,.9);
}
.site-header:not(.scrolled) .nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 190px; height: auto; }
.brand .brand-name { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--mt-green-dark); font-size: 20px; letter-spacing: -.01em; }
.brand .brand-name sup { font-size: .55em; top: -.7em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 14.5px;
  color: var(--mt-text); text-decoration: none; padding: 8px 12px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--mt-green-dark); background: var(--mt-beige); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14.5px; margin-left: 8px; }

.nav-toggle { display: none; border: none; background: transparent; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--mt-green-dark); margin: 5px 0; border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--mt-green-dark);
  /* hauteur calée sur le ratio de l'image (2.475:1) → plein cadre sans marge.
     min-height pour garder de la place au texte sur petits écrans. */
  aspect-ratio: 2.475 / 1;
  min-height: 520px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    /* voile haut : lisibilité de la navigation sur le ciel clair */
    linear-gradient(to bottom, rgba(18,42,18,.55) 0%, rgba(18,42,18,.12) 14%, transparent 28%),
    /* voile gauche : lisibilité du texte du hero */
    linear-gradient(100deg, rgba(16,38,16,.86) 0%, rgba(20,44,18,.55) 40%, rgba(24,48,22,.12) 66%, transparent 82%);
}
/* Hero image — plein cadre edge-to-edge, le haut de la photo aligné en haut */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero .container { padding-left: 4px; }
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px));
  padding-bottom: clamp(36px, 5vw, 72px);
  max-width: 580px;
  color: #fff;
}
.hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 56px); margin-bottom: .35em; }
.hero h1 sup { font-size: .4em; top: -1.2em; }
.hero .hero-sub { font-size: clamp(18px, 2.2vw, 23px); color: #eef3e6; font-weight: 500; margin-bottom: 1em; max-width: 620px; }
.hero .hero-text { color: #e6ede0; max-width: 600px; }
.hero .btn-row { margin-top: 28px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-badges span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.hero-badges span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mt-green-light); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--mt-sage); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.card h3 { margin-top: 0; }
.card--soft { background: var(--mt-beige); border-color: transparent; box-shadow: none; }

/* split (text + image) — l'ordre visuel suit l'ordre du DOM (média 1er = à gauche) */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
/* Variante "média agrandi" : la colonne image prend plus de place */
.split.mlg { grid-template-columns: .78fr 1.22fr; }
.split.mlg.reverse { grid-template-columns: 1.22fr .78fr; }
/* Variante "média très large" */
.split.xlg { grid-template-columns: .65fr 1.35fr; }
.split.xlg.reverse { grid-template-columns: 1.35fr .65fr; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-strong); width: 100%; }
.figure-caption { font-size: 13.5px; color: var(--mt-text-soft); margin-top: 10px; text-align: center; }

/* Pile d'images (avant / après) */
.media-stack { display: grid; gap: 16px; }
.media-stack figure { margin: 0; position: relative; }
.media-stack img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-strong); display: block; }
.media-badge {
  position: absolute; top: 14px; left: 14px;
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; padding: 6px 14px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.media-badge.avant { background: var(--mt-brown-light); }
.media-badge.apres { background: var(--mt-green); }

/* ---------- Problème ---------- */
.problem-grid { margin-top: 8px; gap: 28px; }
.problem-card { padding: 34px 34px 30px; display: flex; flex-direction: column; }
.problem-card .p-ic {
  width: 64px; height: 64px; border-radius: 16px; margin-bottom: 20px;
  background: var(--mt-sage); display: grid; place-items: center; font-size: 30px; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(47,94,45,.12);
}
.problem-card .kicker { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--mt-brown-light); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.problem-card h3 { margin: 0 0 12px; }
.problem-card p { margin: 0; color: var(--mt-text-soft); }

/* ---------- Bénéfices (solution table -> cards) ---------- */
.benefits-grid { gap: 22px; margin-top: 22px; }
.benefit { display: flex; gap: 18px; align-items: center; padding: 24px 26px; transition: transform .2s, box-shadow .2s; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.benefit .ic {
  flex: 0 0 auto; width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--mt-green-light), var(--mt-green));
  display: grid; place-items: center; font-size: 30px; line-height: 1;
  box-shadow: 0 6px 16px rgba(111,166,58,.28);
}
.benefit b { display: block; color: var(--mt-green-dark); font-family: "Montserrat", sans-serif; font-size: 17.5px; line-height: 1.25; margin-bottom: 3px; }
.benefit small { color: var(--mt-text-soft); font-size: 15px; }

/* lifecycle strip */
.lifecycle { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 40px; }
.lifecycle figure { margin: 0; }
.lifecycle img { border-radius: 14px; box-shadow: var(--shadow); }
.lifecycle figcaption { margin-top: 12px; }
.lifecycle .step-no { font-family:"Montserrat",sans-serif; font-weight:700; color: var(--mt-green); font-size: 14px; }
.lifecycle figcaption b { display:block; color: var(--mt-green-dark); font-family:"Montserrat",sans-serif; margin: 2px 0 4px; }
.lifecycle figcaption small { color: var(--mt-text-soft); font-size: 14.5px; }

/* ---------- Modes (3 usages) ---------- */
.mode-wrap { margin-bottom: clamp(48px, 7vw, 80px); }
.mode-wrap:last-child { margin-bottom: 0; }
.mode-wrap .stat-pills { margin-top: 20px; }
.mode { align-items: flex-start; margin-bottom: 0; }
.mode:last-child { margin-bottom: 0; }
.mode__num { font-family:"Montserrat",sans-serif; font-weight:700; font-size: 15px; color: var(--mt-green); letter-spacing:.1em; }
.mode h3 { font-size: clamp(23px, 3vw, 30px); margin-top: 6px; }
.mode .mode-sub { font-family:"Montserrat",sans-serif; font-weight:600; color: var(--mt-brown); margin-bottom: 14px; }
.stat-pills { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.stat-pill { display:flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; background: var(--mt-beige); border-radius: 12px; padding: 14px 18px; flex: 1 1 0; min-width: 100px; }
.stat-pill .v { font-family:"Montserrat",sans-serif; font-weight:700; font-size: clamp(20px,2.2vw,26px); color: var(--mt-green-dark); white-space: nowrap; }
.stat-pill .l { font-size: 13.5px; color: var(--mt-text); text-align: center; }

/* ---------- Chiffres clés (KPI) ---------- */
.kpi-grid { gap: 20px; }
.kpi { text-align: center; padding: 30px 20px; }
.kpi .num { font-family:"Montserrat",sans-serif; font-weight:700; font-size: clamp(30px,4vw,44px); color: var(--mt-green-dark); line-height:1; }
.kpi .num span { color: var(--mt-brown-light); font-size: .55em; }
.kpi .lbl { color: var(--mt-text-soft); font-size: 14.5px; margin-top: 10px; }

/* ---------- Tableau technique ---------- */
.spec-table { width: 100%; border-collapse: collapse; background:#fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--mt-sage); }
.spec-table th { font-family:"Montserrat",sans-serif; color: var(--mt-green-dark); width: 38%; font-size: 15px; background: var(--mt-beige); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ---------- Production locale (matières) ---------- */
.region-table { width:100%; border-collapse: collapse; }
.region-table th, .region-table td { text-align:left; padding: 14px 18px; border-bottom: 1px solid var(--mt-sage); font-size: 15.5px; }
.region-table th { font-family:"Montserrat",sans-serif; color: var(--mt-green-dark); }
.quote {
  font-family: "Lora", Georgia, serif; font-size: clamp(19px,2.4vw,24px); line-height: 1.5;
  color: var(--mt-brown); background: var(--mt-beige); border-left: 5px solid var(--mt-gold);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 28px 32px; margin: 0;
}
.quote cite { display:block; font-family:"Montserrat",sans-serif; font-style: normal; font-size: 15px; font-weight:700; color: var(--mt-green-dark); margin-top: 14px; }

/* ---------- Accordéons (preuves) ---------- */
.accordion { border: 1px solid var(--mt-sage); border-radius: var(--radius); background:#fff; overflow:hidden; box-shadow: var(--shadow); }
.accordion + .accordion { margin-top: 16px; }
.accordion__btn {
  width:100%; text-align:left; background: #fff; border:none; cursor:pointer;
  font-family:"Montserrat",sans-serif; font-weight:700; font-size: 18px; color: var(--mt-green-dark);
  padding: 22px 26px; display:flex; justify-content: space-between; align-items:center; gap: 16px;
}
.accordion__btn .ico { flex:0 0 auto; width:26px; height:26px; border-radius:50%; border:2px solid var(--mt-green); position:relative; transition: .25s; }
.accordion__btn .ico::before, .accordion__btn .ico::after { content:""; position:absolute; background: var(--mt-green); border-radius:2px; }
.accordion__btn .ico::before { width:12px; height:2px; top:50%; left:50%; transform: translate(-50%,-50%); }
.accordion__btn .ico::after  { width:2px; height:12px; top:50%; left:50%; transform: translate(-50%,-50%); transition:.25s; }
.accordion[open] .accordion__btn .ico { background: var(--mt-green); }
.accordion[open] .accordion__btn .ico::before { background:#fff; }
.accordion[open] .accordion__btn .ico::after { transform: translate(-50%,-50%) scaleY(0); background:#fff; }
.accordion__body { padding: 0 26px 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.proof-table { width:100%; border-collapse: collapse; }
.proof-table th, .proof-table td { text-align:left; padding: 12px 14px; border-bottom: 1px solid var(--mt-sage); font-size: 15px; vertical-align: top; }
.proof-table th { font-family:"Montserrat",sans-serif; color: var(--mt-green-dark); }
.proof-table .res { font-family:"Montserrat",sans-serif; font-weight:700; color: var(--mt-brown-light); white-space: nowrap; }
.proof-table .src { color: var(--mt-text-soft); font-size: 13.5px; font-style: italic; }

/* ---------- Applications ---------- */
.app-card .role { font-family:"Montserrat",sans-serif; font-weight:700; color: var(--mt-green-dark); margin-bottom: 6px; }
.app-card .need { color: var(--mt-text-soft); font-size:14.5px; margin-bottom: 12px; }
.app-card .gain { font-size: 15px; }
.app-card .gain::before { content:"→ "; color: var(--mt-green); font-weight:700; }

/* ---------- Microterra ---------- */
.founder { display:flex; gap:24px; align-items:center; background: var(--mt-beige); border-radius: var(--radius); padding: 28px; }
.founder img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; flex:0 0 auto; box-shadow: 0 8px 28px rgba(47,94,45,.22); }
.founder b { display:block; font-family:"Montserrat",sans-serif; color: var(--mt-green-dark); font-size: 20px; }
.founder small { color: var(--mt-text-soft); font-size: 15px; line-height:1.5; display:block; margin-top: 4px; }

/* ---------- Vision ---------- */
.steps-4 { counter-reset: step; gap: 18px; }
.step-card { background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 26px; }
.section--dark .step-card { color:#eef3e6; }
.step-card .n { font-family:"Montserrat",sans-serif; font-weight:700; color: var(--mt-green-light); font-size: 14px; letter-spacing:.1em; }
.step-card h4 { color:#fff; font-size: 18px; margin: 8px 0 8px; }
.benefit-list { columns: 2; column-gap: 40px; margin-top: 10px; padding: 0; list-style: none; }
.benefit-list li { break-inside: avoid; padding: 8px 0 8px 28px; position: relative; color:#eef3e6; }
.benefit-list li::before { content:""; position:absolute; left:0; top:15px; width: 14px; height: 8px; border-left:2.5px solid var(--mt-green-light); border-bottom:2.5px solid var(--mt-green-light); transform: rotate(-45deg); }

/* ---------- Événement ---------- */
.event { display:flex; gap: clamp(20px,4vw,44px); align-items:center; flex-wrap: wrap; }
.event__badge { flex:0 0 auto; text-align:center; background: var(--mt-green-dark); color:#fff; border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow-strong); }
.event__badge .d { font-family:"Montserrat",sans-serif; font-weight:700; font-size: 40px; line-height:1; }
.event__badge .m { text-transform: uppercase; letter-spacing:.12em; font-size: 14px; margin-top: 4px; }
.event__badge .y { color: var(--mt-green-light); font-weight:700; margin-top: 2px; }
.event__body { flex: 1 1 320px; }

/* ---------- Contact / Formulaire ---------- */
.contact-grid { display:flex; flex-direction: column; gap: clamp(24px,4vw,40px); }
.form-card { background:#fff; border:1px solid var(--mt-sage); border-radius: var(--radius); box-shadow: var(--shadow-strong); padding: clamp(24px,4vw,40px); }
.field { margin-bottom: 18px; }
.field label { display:block; font-family:"Montserrat",sans-serif; font-weight:600; font-size: 14.5px; color: var(--mt-green-dark); margin-bottom: 7px; }
.field label .req { color: var(--mt-brown-light); }
.field input, .field select, .field textarea {
  width:100%; padding: 13px 15px; font: inherit; font-size: 16px; color: var(--mt-text);
  background: var(--mt-offwhite); border: 1.5px solid var(--mt-sage); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--mt-green); box-shadow: 0 0 0 3px rgba(111,166,58,.18); }
.field textarea { min-height: 130px; resize: vertical; }
.field-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* honeypot — caché aux humains, visible aux bots */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width:1px; height:1px; overflow:hidden; }
.consent { display:flex; gap: 12px; align-items:flex-start; font-size: 14px; color: var(--mt-text-soft); }
.consent input { width: 20px; height: 20px; flex:0 0 auto; margin-top: 2px; accent-color: var(--mt-green); }
.form-note { font-size: 13px; color: var(--mt-text-soft); margin-top: 14px; }
.form-status { display:none; padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight:600; }
.form-status.ok { display:block; background: #e7f1d9; color: #2F5E2D; border:1px solid var(--mt-green-light); }
.form-status.err { display:block; background: #fbe7e2; color: #8a2b16; border:1px solid #e3a392; }

.contact-info { display:flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; }
.contact-info h3 { width: 100%; margin-bottom: 0; }
.contact-info .info-item { display:flex; gap: 12px; align-items: flex-start; margin-bottom: 0; }
.contact-info .info-item .ic { flex:0 0 auto; width: 42px; height:42px; border-radius:12px; background: var(--mt-sage); display:grid; place-items:center; color: var(--mt-green-dark); }
.contact-info a { color: var(--mt-green-dark); text-decoration: none; font-weight:600; }
.contact-info a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mt-green-dark); color: #d8e2cc; padding: clamp(48px,7vw,80px) 0 28px; }
.site-footer a { color:#eef3e6; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color:#fff; font-size: 16px; margin-bottom: 16px; }
.site-footer .f-logo { height: 70px; margin-bottom: 20px; background:#fff; padding: 10px 18px; border-radius: 12px; display:inline-block; }
.site-footer ul { list-style:none; padding:0; margin:0; }
.site-footer li { margin-bottom: 10px; }
.site-footer .f-nav a { text-decoration:none; opacity:.9; }
.site-footer .f-nav a:hover { opacity:1; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13.5px; opacity:.85; }
.footer-bottom a { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px,7vw,90px) 0; max-width: 820px; }
.legal h1 { font-size: clamp(28px,4vw,40px); }
.legal h2 { font-size: 22px; margin-top: 1.8em; }
.legal .back { display:inline-block; margin-bottom: 24px; font-family:"Montserrat",sans-serif; font-weight:600; text-decoration:none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--mt-offwhite); border-bottom: 1px solid var(--mt-sage);
    padding: 12px var(--gutter) 22px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 13px 6px; border-bottom: 1px solid var(--mt-sage); }
  .nav .btn { margin: 14px 0 0; min-height: 48px; }
  .nav-toggle { display: block; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.mlg, .split.mlg.reverse, .split.xlg, .split.xlg.reverse, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lifecycle { grid-template-columns: 1fr; }
  .benefit-list { columns: 1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .event { flex-direction: column; align-items: flex-start; }

  /* ---- Hero responsive ---- */
  .hero { aspect-ratio: auto; min-height: 90vh; min-height: 90svh; }
  .hero .container { padding-left: var(--gutter); }
  .hero__bg { object-position: center 30%; }

  /* ---- spec-table : empilé (étiquette au-dessus de la valeur) ---- */
  .spec-table tr {
    display: flex; flex-direction: column;
    border-bottom: 1px solid var(--mt-sage);
  }
  .spec-table tr:last-child { border-bottom: none; }
  .spec-table th,
  .spec-table td { display: block; width: 100%; border-bottom: none; padding: 8px 18px; }
  .spec-table th { padding-bottom: 2px; }
  .spec-table td { padding-top: 2px; }

  /* ---- region-table : empilé (en-tête masqué, région puis matières) ---- */
  .region-table thead { display: none; }
  .region-table tr { display: flex; flex-direction: column; border-bottom: 1px solid var(--mt-sage); }
  .region-table tbody tr:last-child { border-bottom: none; }
  .region-table th,
  .region-table td { display: block; width: 100%; border-bottom: none; padding: 8px 18px; }
  .region-table th { padding-bottom: 2px; }
  .region-table td { padding-top: 2px; }

  /* ---- proof-table : nowrap désactivé (le scroll fait le reste) ---- */
  .proof-table .res { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
