/* KiloFarm — site vitrine. Palette : forêt, sauge, boucle jaune, latérite. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("/assets/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ground: #f2f5f0;
  --ground-2: #e6ede3;
  --surface: #ffffff;
  --ink: #12241b;
  --muted: #4b5c53;
  --line: #d3ddd1;
  --green: #2c683c;
  --green-ink: #1f4d2c;
  --green-soft: #dcebdc;
  --forest: #163a29;
  --forest-2: #1d4a35;
  --on-forest: #eaf3ec;
  --on-forest-muted: #b9cfc1;
  --leaf: #b8e0a8;
  --tag: #f2c53d;
  --tag-ink: #2b2206;
  --millet: #e2a93b;
  --laterite: #b4532f;
  --device: #0f1813;
  --shadow: 0 1px 2px rgb(18 36 27 / 0.06), 0 12px 32px -12px rgb(18 36 27 / 0.22);
  --shadow-lg: 0 2px 6px rgb(8 20 14 / 0.12), 0 30px 60px -20px rgb(8 20 14 / 0.45);

  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.6vw, 5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0c1611; --ground-2: #101d16; --surface: #14231b; --ink: #e3ece6; --muted: #9db1a5; --line: #243a2e;
    --green: #7cc08f; --green-ink: #a8d8b3; --green-soft: #173222; --forest: #0a1a12; --forest-2: #10271b;
    --millet: #edbb55; --laterite: #cf6a44; --device: #050a07;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0c1611; --ground-2: #101d16; --surface: #14231b; --ink: #e3ece6; --muted: #9db1a5; --line: #243a2e;
  --green: #7cc08f; --green-ink: #a8d8b3; --green-soft: #173222; --forest: #0a1a12; --forest-2: #10271b;
  --millet: #edbb55; --laterite: #cf6a44; --device: #050a07;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; font-variation-settings: "opsz" 96; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--tag); color: var(--tag-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* Icônes Phosphor */
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0 1.4rem; border-radius: 999px;
  font: 700 var(--step-0)/1 var(--body); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-tag { background: var(--tag); color: var(--tag-ink); }
.btn-tag:hover { background: #f7d45c; }
.btn-ghost-light { color: var(--on-forest); border-color: rgb(234 243 236 / 0.35); }
.btn-ghost-light:hover { border-color: var(--on-forest); background: rgb(234 243 236 / 0.06); }
.btn-green { background: var(--green); color: #fff; }
:root[data-theme="dark"] .btn-green { color: #0b1a11; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-green { color: #0b1a11; } }
.btn-green:hover { filter: brightness(1.06); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--green); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgb(22 58 41 / 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  color: var(--on-forest); border-bottom: 1px solid rgb(234 243 236 / 0.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--display); letter-spacing: -0.02em; }
.brand svg { width: 36px; height: 36px; }
.brand b { color: var(--leaf); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav a { text-decoration: none; padding: 0.55rem 0.8rem; border-radius: 999px; color: var(--on-forest-muted); font-weight: 700; font-size: var(--step--1); }
.nav a:hover { color: var(--on-forest); background: rgb(234 243 236 / 0.07); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang { font: 500 0.8rem/1 var(--mono); letter-spacing: 0.06em; text-decoration: none; color: var(--on-forest); border: 1px solid rgb(234 243 236 / 0.3); border-radius: 8px; padding: 0 0.7rem; min-height: 40px; display: inline-flex; align-items: center; }
.lang:hover { border-color: var(--on-forest); }
.header-actions .login { text-decoration: none; font-weight: 700; font-size: var(--step--1); color: var(--on-forest); padding: 0.5rem 0.7rem; }
.header-actions .btn { min-height: 44px; font-size: var(--step--1); padding: 0 1.1rem; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgb(234 243 236 / 0.3); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(84vw, 300px); background: var(--forest); border: 1px solid rgb(234 243 236 / 0.12); border-radius: 16px; padding: 0.5rem; box-shadow: var(--shadow-lg); display: grid; }
.menu-panel a { text-decoration: none; padding: 0.85rem 1rem; border-radius: 10px; font-weight: 700; color: var(--on-forest); }
.menu-panel a:hover { background: rgb(234 243 236 / 0.07); }
@media (max-width: 1060px) { .nav { display: none; } .menu { display: block; } .header-actions { margin-left: auto; } }
@media (max-width: 560px) { .header-actions .login, .header-actions .btn { display: none; } }

/* ---------- Héros ---------- */
.hero { position: relative; background: var(--forest); color: var(--on-forest); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 30%, rgb(184 224 168 / 0.16), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgb(242 197 61 / 0.10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font: 500 0.8rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.hero .eyebrow { color: var(--leaf); }
.hero h1 { font-size: var(--step-4); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; margin-top: 1.1rem; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--tag); }
.hero .lead { font-size: var(--step-1); line-height: 1.55; color: var(--on-forest-muted); margin-top: 1.4rem; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.demo-creds { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem; font-size: var(--step--1); color: var(--on-forest-muted); }
.demo-creds code { font: 500 0.85rem/1 var(--mono); color: var(--on-forest); background: rgb(234 243 236 / 0.08); border: 1px solid rgb(234 243 236 / 0.14); padding: 0.4rem 0.55rem; border-radius: 7px; user-select: all; }
.copy { font: 700 0.8rem/1 var(--body); color: var(--tag); background: none; border: 0; padding: 0.4rem; cursor: pointer; min-height: 32px; }

/* Scène d'appareils */
.stage { position: relative; }
.stage .browser { transform: perspective(1800px) rotateY(-9deg) rotateX(2deg); transform-origin: left center; }
.stage .phone { position: absolute; width: 30%; right: -2%; bottom: -12%; transform: rotate(3deg); }
.ear-tag {
  position: absolute; left: -4%; bottom: -9%; z-index: 3;
  display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem; align-items: center;
  background: var(--tag); color: var(--tag-ink); padding: 0.85rem 1.1rem 0.85rem 0.9rem;
  border-radius: 16px 16px 16px 40px; box-shadow: var(--shadow-lg); transform: rotate(-4deg);
  max-width: 290px; animation: sway 6s ease-in-out infinite;
}
.ear-tag .hole { grid-row: span 3; width: 18px; height: 18px; border-radius: 50%; background: var(--forest); box-shadow: inset 0 2px 3px rgb(0 0 0 / 0.4); }
.ear-tag strong { font: 800 1.1rem/1.1 var(--display); }
.ear-tag code { font: 500 0.78rem/1.2 var(--mono); letter-spacing: 0.02em; }
.ear-tag small { font-size: 0.8rem; opacity: 0.8; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(-2deg) translateY(-3px); } }
.stat-chip { position: absolute; right: 4%; top: -5%; z-index: 3; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 0.7rem 0.95rem; box-shadow: var(--shadow-lg); }
.stat-chip span { display: block; font: 500 0.72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.stat-chip b { font: 800 1.6rem/1.1 var(--display); font-variant-numeric: tabular-nums; color: var(--green); }

/* Horizon de latérite */
.horizon { position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; z-index: -1; }
.hero { --after: var(--ground-2); } .final { --after: var(--device); }
.horizon svg { width: 100%; height: 100%; display: block; }

/* Cadres d'appareils */
.browser { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgb(0 0 0 / 0.08); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e9eee8; border-bottom: 1px solid #d5ddd3; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d3c7; }
.browser-bar i:first-child { background: #e0735a; } .browser-bar i:nth-child(2) { background: #e9b949; } .browser-bar i:nth-child(3) { background: #71b77b; }
.browser-bar span { margin-left: 10px; flex: 1; min-width: 0; font: 400 0.72rem/1 var(--mono); color: #50605a; background: #fff; border-radius: 6px; padding: 5px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone { background: var(--device); border-radius: 13% / 6.2%; padding: 3.2%; box-shadow: var(--shadow-lg); position: relative; }
.phone::before { content: ""; position: absolute; top: 2.2%; left: 50%; width: 26%; height: 2.4%; transform: translateX(-50%); background: var(--device); border-radius: 999px; z-index: 2; }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 10.5% / 4.9%; }

/* ---------- Bande de repères ---------- */
.strip { background: var(--ground-2); border-bottom: 1px solid var(--line); }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; padding-block: 1.3rem; }
.strip li { font: 500 0.82rem/1.4 var(--mono); letter-spacing: 0.04em; color: var(--muted); display: inline-flex; align-items: center; gap: 0.55rem; }
.strip li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--millet); }

/* ---------- Sections ---------- */
section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: 46rem; display: grid; gap: 0.9rem; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.section-head p { font-size: var(--step-1); color: var(--muted); max-width: 38em; }

/* Index des modules */
.mod-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 2.6rem; }
.mod-card { display: grid; gap: 0.35rem; align-content: start; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.15rem 1.25rem; transition: border-color .15s ease, transform .15s ease; }
.mod-card:hover { border-color: var(--green); transform: translateY(-2px); }
.mod-card .ic { width: 30px; height: 30px; color: var(--green); margin-bottom: 0.45rem; }
.mod-card b { font: 700 var(--step-1)/1.2 var(--display); letter-spacing: -0.01em; }
.mod-card span { color: var(--muted); font-size: var(--step--1); line-height: 1.45; }
@media (max-width: 900px) { .mod-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Panneaux de modules */
.modules { padding-top: 0; }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.panel:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.panel:nth-of-type(even) .panel-text { order: 2; }
.panel-text { display: grid; gap: 1rem; align-content: center; }
.mod-label { display: inline-flex; align-items: center; gap: 0.6rem; font: 700 var(--step--1)/1 var(--body); color: var(--green-ink); }
.mod-label .ic { width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: var(--green-soft); color: var(--green); }
.panel h3 { font-size: var(--step-2); font-weight: 750; line-height: 1.15; letter-spacing: -0.02em; }
.badge { justify-self: start; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.04em; background: var(--tag); color: var(--tag-ink); padding: 0.45rem 0.65rem; border-radius: 999px; }
.checks { display: grid; gap: 0.7rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; align-items: start; }
.checks .ic { width: 22px; height: 22px; color: var(--green); margin-top: 0.15rem; }
.duo { position: relative; padding-bottom: 7%; padding-right: 9%; }
.panel:nth-of-type(even) .duo { padding-right: 0; padding-left: 9%; }
.duo .phone { position: absolute; width: 27%; right: 0; bottom: 0; }
.panel:nth-of-type(even) .duo .phone { right: auto; left: 0; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { margin-top: 1rem; margin-right: 6%; }
  .panel, .panel:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .panel:nth-of-type(even) .panel-text { order: 0; }
}

/* ---------- Sur le terrain ---------- */
.field { background: var(--forest-2); color: var(--on-forest); position: relative; overflow: hidden; }
.field .eyebrow { color: var(--leaf); }
.field .section-head p { color: var(--on-forest-muted); }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.field-points { display: grid; gap: 1.4rem; margin-top: 2.2rem; }
.field-points li { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; }
.field-points .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgb(184 224 168 / 0.12); color: var(--leaf); }
.field-points b { display: block; font: 700 var(--step-1)/1.25 var(--display); margin-bottom: 0.25rem; }
.field-points p { color: var(--on-forest-muted); }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); align-items: end; }
.phones figure { margin: 0; display: grid; gap: 0.8rem; justify-items: center; }
.phones figure:nth-child(2) { transform: translateY(-8%); }
.phones figure .phone { width: 100%; }
.phones figcaption { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-forest-muted); }
@media (max-width: 860px) { .field-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Afrique ---------- */
.africa-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 2.6rem; }
.a-card { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; display: grid; gap: 0.5rem; align-content: start; }
.a-card:nth-child(4), .a-card:nth-child(5) { grid-column: span 3; }
.a-card h3 { font-size: var(--step-1); font-weight: 750; letter-spacing: -0.01em; }
.a-card p { color: var(--muted); }
@media (max-width: 900px) { .africa-grid { grid-template-columns: minmax(0, 1fr); } .a-card, .a-card:nth-child(4), .a-card:nth-child(5) { grid-column: auto; } }
.countries { margin-top: 2.2rem; }
.countries h3 { font: 500 0.8rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.countries ul { display: flex; flex-wrap: wrap; gap: 8px; }
.countries li { background: var(--green-soft); color: var(--green-ink); border-radius: 999px; padding: 0.45rem 0.85rem; font-weight: 700; font-size: var(--step--1); }

/* ---------- Tarifs ---------- */
.pricing { background: var(--ground-2); border-block: 1px solid var(--line); }
.pricing-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.cur-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.cur-toggle button { font: 700 var(--step--1)/1 var(--body); border: 0; background: none; color: var(--muted); border-radius: 999px; min-height: 44px; padding: 0 1.2rem; cursor: pointer; }
.cur-toggle button[aria-pressed="true"] { background: var(--green); color: #fff; }
:root[data-theme="dark"] .cur-toggle button[aria-pressed="true"] { color: #0b1a11; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cur-toggle button[aria-pressed="true"] { color: #0b1a11; } }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 2.4rem; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem 1.35rem; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 0.9rem; }
.plan.reco { border: 2px solid var(--green); position: relative; }
.plan .reco-badge { position: absolute; top: -13px; left: 1.2rem; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; background: var(--tag); color: var(--tag-ink); padding: 0.45rem 0.65rem; border-radius: 999px; }
.plan h3 { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; }
.plan .tagline { color: var(--muted); font-size: var(--step--1); margin-top: -0.4rem; }
.price { display: grid; gap: 0.25rem; min-height: 4.4rem; align-content: start; }
.price > div { display: grid; gap: 0.3rem; }
.price b { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.35rem; font: 800 clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem)/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price b small { font: 700 var(--step--1)/1 var(--body); color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.price span { font-size: var(--step--1); color: var(--muted); }
.plan .checks { gap: 0.55rem; font-size: 0.95rem; align-content: start; }
.plan .checks .ic { width: 18px; height: 18px; }
.plan .checks li { grid-template-columns: 18px 1fr; gap: 0.55rem; }
.plan .btn { width: 100%; }
.pricing [data-cur="xof"] .eur, .pricing [data-cur="eur"] .xof { display: none; }
.addon { margin-top: 12px; background: var(--surface); border: 1px dashed var(--green); border-radius: 18px; padding: 1.2rem 1.35rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; }
.addon b { font: 750 var(--step-1)/1.2 var(--display); }
.addon p { color: var(--muted); }
.addon .amount { font: 800 var(--step-1)/1 var(--display); font-variant-numeric: tabular-nums; }
.pay-note { margin-top: 1.4rem; color: var(--muted); font-size: var(--step--1); max-width: 60em; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2.4rem; display: grid; gap: 10px; max-width: 52rem; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; min-height: 56px; font: 700 var(--step-1)/1.3 var(--display); letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { width: 22px; height: 22px; color: var(--green); transition: transform .2s ease; }
.faq-list details[open] summary .ic { transform: rotate(45deg); }
.faq-list details p { padding: 0 1.25rem 1.25rem; color: var(--muted); max-width: 44em; }

/* ---------- Appel final ---------- */
.final { background: var(--forest); color: var(--on-forest); position: relative; overflow: hidden; isolation: isolate; text-align: left; }
.final-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.final h2 { font-size: var(--step-4); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.final p { color: var(--on-forest-muted); font-size: var(--step-1); margin-bottom: 1.4rem; }
.final .hero-cta { margin-top: 0; }
@media (max-width: 860px) { .final-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--device); color: #c9d6cd; padding-block: 3rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.site-footer .brand { color: #eaf3ec; }
.site-footer p { margin-top: 0.8rem; max-width: 26em; }
.site-footer h3 { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #8fa597; margin-bottom: 0.9rem; }
.site-footer ul { display: grid; gap: 0.2rem; }
.site-footer a { text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid #22322a; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; color: #9db1a5; }
.footer-base strong { color: #eaf3ec; font-weight: 700; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Photos : crédit commun ---------- */
.credit {
  position: absolute; right: 10px; bottom: 8px; z-index: 2; max-width: calc(100% - 20px);
  font: 400 0.68rem/1.2 var(--body); color: rgb(255 255 255 / 0.82); text-decoration: none;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.credit:hover { color: #fff; text-decoration: underline; }

/* ---------- Vos animaux : mosaïque ---------- */
.animals { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.mosaic {
  margin-top: 2.4rem; display: grid; gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(190px, 21vw, 300px));
  grid-template-areas: "a b c c" "a d e f";
}
.tile { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--ground-2); isolation: isolate; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.035); }
.tile::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgb(8 20 14 / 0.62), transparent); pointer-events: none; }
.tile figcaption { position: absolute; left: 12px; bottom: 30px; z-index: 2; right: 12px; }
.t1 { grid-area: a; } .t2 { grid-area: b; } .t3 { grid-area: c; } .t4 { grid-area: d; } .t5 { grid-area: e; } .t6 { grid-area: f; }
.t1 img { object-position: 40% 20%; } .t3 img { object-position: 55% 40%; } .t4 img { object-position: 25% 85%; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%;
  background: var(--tag); color: var(--tag-ink); border-radius: 10px 10px 10px 22px;
  padding: 0.45rem 0.75rem 0.45rem 0.55rem; font: 700 0.86rem/1.2 var(--body); box-shadow: 0 6px 16px -6px rgb(0 0 0 / 0.5);
}
.tag-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--forest); flex: none; }
.tag-chip code { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.06em; opacity: 0.75; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, 170px); grid-template-areas: "a b" "a d" "c c" "e f"; }
  .tag-chip { font-size: 0.78rem; }
  .tag-chip code { display: none; }
}

/* ---------- Avantages ---------- */
.benefits { padding-top: clamp(2rem, 5vw, 3.5rem); }
.band { position: relative; margin: 2.4rem 0 0; border-radius: 22px; overflow: hidden; height: clamp(220px, 32vw, 440px); background: var(--ground-2); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.band::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(to top, rgb(8 20 14 / 0.55), transparent); }
.band figcaption { position: absolute; left: 18px; bottom: 14px; z-index: 2; font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / 0.5); max-width: 60%; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: 0.55rem; align-content: start; }
.benefit .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--green-soft); color: var(--green); margin-bottom: 0.3rem; }
.benefit h3 { font-size: var(--step-1); font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; }
.benefit p { color: var(--muted); }
@media (max-width: 900px) { .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .benefit-grid { grid-template-columns: minmax(0, 1fr); } .band figcaption { max-width: 90%; bottom: 30px; } }

/* ---------- Une journée ---------- */
.day { background: var(--ground-2); border-block: 1px solid var(--line); }
.day-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.day-photo { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; }
.day-photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; position: relative; padding-bottom: 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: calc(7.5rem - 0.5rem - 1px); top: 0.9rem; bottom: -0.2rem; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: calc(7.5rem - 0.5rem - 6px); top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--tag); box-shadow: 0 0 0 3px var(--ground-2); }
.when { font: 500 0.82rem/1.3 var(--mono); letter-spacing: 0.04em; color: var(--green-ink); padding-top: 0.25rem; padding-right: 1.4rem; }
.timeline h3 { font-size: var(--step-1); font-weight: 750; letter-spacing: -0.01em; padding-left: 0.6rem; }
.timeline p { color: var(--muted); padding-left: 0.6rem; margin-top: 0.2rem; }
@media (max-width: 860px) {
  .day-grid { grid-template-columns: minmax(0, 1fr); }
  .day-photo { aspect-ratio: 16 / 10; }
  .timeline li { grid-template-columns: 5.6rem 1fr; }
  .timeline li::before { left: calc(5.6rem - 0.5rem - 1px); } .timeline li::after { left: calc(5.6rem - 0.5rem - 6px); }
}

/* ---------- Crédits photos (pied de page) ---------- */
.credits { margin-top: 2rem; color: #9db1a5; font-size: 0.8rem; }
.credits summary { cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; font-weight: 700; color: #c9d6cd; }
.credits p { margin-top: 0.4rem; }
.credits ul { margin-top: 0.6rem; display: grid; gap: 0.25rem; }
.credits a { display: inline; min-height: 0; text-decoration: underline; }
