/* ==========================================================================
   Historik — site vitrine
   Palette issue de la charte : Midnight Teal, Ancient Gold, Parchment,
   Sage, Sky, Earth.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --teal: #0f3d4e;
  --teal-deep: #082b37;
  --teal-night: #061f28;
  --teal-soft: #2d6f72;
  --gold: #d4a24c;
  --gold-light: #f0c46c;
  --gold-dark: #9b7420;
  --parchment: #f5ebdd;
  --paper: #fdf8ef;
  --ivory: #fffcf5;
  --sage: #7ea896;
  --sky: #a7d0e8;
  --earth: #8b6f56;
  --ink: #102b35;
  --muted: #5f6b6c;
  --line: rgba(155, 116, 32, .22);
  --line-strong: rgba(155, 116, 32, .4);
  --shadow-sm: 0 6px 18px rgba(16, 43, 53, .08);
  --shadow: 0 22px 60px rgba(16, 43, 53, .14);
  --radius: 22px;
  --radius-lg: 32px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-soft); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(212, 162, 76, .35); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.015em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); line-height: 1.2; }
p { margin: 0 0 1em; }
em.accent, .accent { color: var(--gold-dark); font-style: italic; font-weight: 600; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.container--narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Boutons ---------- */
.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font: 700 16px/1.2 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 61, 78, .22);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover, button:hover { background: var(--teal-soft); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 61, 78, .26); }
.btn:active, button:active { transform: translateY(0); }
.btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #c08d34); color: var(--teal-night); box-shadow: 0 12px 28px rgba(212, 162, 76, .35); }
.btn--gold:hover { background: linear-gradient(135deg, #f6d288, var(--gold-light) 55%, var(--gold)); color: var(--teal-night); box-shadow: 0 16px 34px rgba(212, 162, 76, .45); }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: rgba(212, 162, 76, .12); color: var(--teal); box-shadow: none; }
.btn--ghost-light { background: rgba(255, 255, 255, .06); color: var(--parchment); border-color: rgba(240, 196, 108, .45); box-shadow: none; }
.btn--ghost-light:hover { background: rgba(240, 196, 108, .16); color: #fff; box-shadow: none; }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
button:disabled, .btn[aria-disabled="true"] { cursor: wait; opacity: .55; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 239, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(16, 43, 53, .06); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { width: auto; height: 42px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--teal);
  font-weight: 650;
  font-size: 15.5px;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.site-nav a:not(.btn):hover { background: rgba(212, 162, 76, .14); color: var(--teal); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--gold-dark); }
.site-nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  box-shadow: none;
  color: var(--teal);
}
.nav-toggle:hover { background: rgba(212, 162, 76, .12); color: var(--teal); transform: none; box-shadow: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s, background-color .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
main { flex: 1; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section--parchment { background: var(--parchment); }
.section--dark {
  background:
    radial-gradient(circle at 85% 10%, rgba(212, 162, 76, .18), transparent 32rem),
    radial-gradient(circle at 10% 90%, rgba(45, 111, 114, .45), transparent 30rem),
    var(--teal-deep);
  color: rgba(245, 235, 221, .86);
}
.section--dark h2, .section--dark h3 { color: var(--parchment); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section--dark .section-head p { color: rgba(245, 235, 221, .75); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold-dark);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--gold-light); }
.lead { color: var(--earth); font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; }

.star-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 800;
}
.star-divider::before, .star-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 clamp(80px, 10vw, 120px);
  background:
    radial-gradient(circle at 78% 30%, rgba(240, 196, 108, .35), transparent 26rem),
    radial-gradient(circle at 8% 0%, rgba(167, 208, 232, .35), transparent 24rem),
    linear-gradient(180deg, var(--paper) 0%, var(--parchment) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cpath d='M0 40C60 14 100 74 160 36s86 18 106 9M-20 160c56-34 104 30 164-4s82 14 112-9' fill='none' stroke='%23d4a24c' stroke-opacity='.18'/%3E%3C/svg%3E");
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { display: inline-block; }
.hero .lead { max-width: 580px; margin-bottom: 34px; }
.hero .eyebrow { color: var(--gold-dark); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; font-weight: 600; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--sage); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(520px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(155, 116, 32, .35);
  animation: spin 90s linear infinite;
}
.hero-visual::after {
  content: "";
  position: absolute;
  width: min(420px, 82%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 196, 108, .45), rgba(240, 196, 108, 0) 70%);
}

/* Maquette de téléphone */
.phone {
  position: relative;
  z-index: 2;
  width: 270px;
  aspect-ratio: 9 / 19.2;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(145deg, #1b3a45, #061f28);
  box-shadow: 0 50px 90px rgba(6, 31, 40, .35), inset 0 0 0 2px rgba(240, 196, 108, .25);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; z-index: 3; width: 84px; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #061f28; }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 36px; background: var(--parchment); }
.phone-screen > img.phone-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-ui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 64px 18px 24px; text-align: center; }
.phone-ui img { width: 150px; }
.phone-card {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 252, 245, .94);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-align: left;
}
.phone-card strong { display: block; color: var(--teal); font-family: var(--font-display); font-size: 16px; line-height: 1.2; }
.phone-card small { color: var(--muted); font-size: 12px; }
.phone-card .pill { margin-bottom: 6px; }

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 245, .96);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--teal); font-size: 15px; }
.float-card span { color: var(--muted); }
.float-card .icon-bubble { width: 42px; height: 42px; }
.float-card--a { top: 13%; left: 0; }
.float-card--b { bottom: 4%; right: 0; animation-delay: -3s; }

.icon-bubble {
  display: grid;
  flex: none;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--teal), var(--teal-soft));
  color: var(--gold-light);
  box-shadow: 0 10px 22px rgba(15, 61, 78, .22);
}
.icon-bubble svg { width: 55%; height: 55%; }
.icon-bubble--gold { background: linear-gradient(145deg, var(--gold-light), var(--gold)); color: var(--teal-night); box-shadow: 0 10px 22px rgba(212, 162, 76, .3); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(126, 168, 150, .2);
  color: #3f6b5b;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
}
.pill--gold { background: rgba(212, 162, 76, .2); color: var(--gold-dark); }
.pill--teal { background: rgba(15, 61, 78, .1); color: var(--teal); }
.pill--sky { background: rgba(167, 208, 232, .4); color: #245a78; }

/* ---------- Bandeau des territoires (accueil) ---------- */
.territory-strip {
  position: relative;
  z-index: 2;
  margin-top: -54px;
}
.territory-strip-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: 24px clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ivory);
  box-shadow: var(--shadow);
}
.territory-strip-label { flex: none; max-width: 190px; margin: 0; color: var(--teal); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.territory-strip-label small { display: block; margin-top: 4px; color: var(--muted); font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.territory-logos { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 14px 18px; min-height: 76px; }
.territory-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border: 1px solid transparent;
  border-radius: 20px;
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.territory-logo:hover { border-color: var(--line); background: rgba(212, 162, 76, .08); color: var(--teal); transform: translateY(-2px); }
.territory-logo img, .territory-logo .logo-fallback { width: 60px; height: 60px; flex: none; border-radius: 16px; object-fit: contain; background: #fff; box-shadow: var(--shadow-sm); }
.territory-strip .btn { flex: none; }

.logo-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--teal), var(--teal-soft)) !important;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.skeleton { position: relative; overflow: hidden; background: rgba(155, 116, 32, .1); border-radius: 16px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shimmer 1.4s infinite; }
.skeleton--logo { width: 190px; height: 76px; border-radius: 20px; }
.skeleton--card { height: 460px; border-radius: var(--radius-lg); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.step {
  position: relative;
  padding: 34px 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ivory);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
  transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step::after {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: 28px;
  color: rgba(212, 162, 76, .45);
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}
.step .icon-bubble { margin-bottom: 24px; }
.step p { margin: 0; color: var(--muted); }
.step-tag { display: block; margin-bottom: 6px; color: var(--gold-dark); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Fonctionnalités ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature {
  padding: 30px 28px;
  border: 1px solid rgba(240, 196, 108, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  transition: background-color .25s, border-color .25s;
}
.feature:hover { background: rgba(255, 255, 255, .07); border-color: rgba(240, 196, 108, .35); }
.feature .icon-bubble { width: 50px; height: 50px; margin-bottom: 20px; border-radius: 16px; }
.feature h3 { margin-bottom: 8px; font-size: 1.3rem; }
.feature p { margin: 0; font-size: 15.5px; color: rgba(245, 235, 221, .72); }

/* ---------- Bloc image + texte ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .media-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.split-media .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.split-media .media-badge {
  position: absolute;
  right: -18px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--ivory);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.35;
}
.split-media .media-badge strong { display: block; color: var(--teal); font-family: var(--font-display); font-size: 17px; }
.check-list { display: grid; gap: 16px; margin: 28px 0 34px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061f28' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check-list strong { color: var(--teal); }

/* ---------- Public ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.audience {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--ivory);
  border: 1px solid var(--line);
  text-align: center;
}
.audience .icon-bubble { margin: 0 auto 18px; }
.audience h3 { font-size: 1.2rem; margin-bottom: 6px; }
.audience p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.stat { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(240, 196, 108, .2); text-align: center; }
.stat dt { color: rgba(245, 235, 221, .7); font-size: 14px; font-weight: 600; }
.stat dd { margin: 0 0 4px; color: var(--gold-light); font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.1; }
.stats .stat { display: flex; flex-direction: column-reverse; }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 32px;
  align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 196, 108, .35), transparent 22rem),
    linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: rgba(245, 235, 221, .85);
  box-shadow: var(--shadow);
}
.cta-band h2 { color: var(--parchment); }
.cta-band .lead { color: rgba(245, 235, 221, .82); margin-bottom: 30px; }
.cta-band-art { position: relative; display: grid; place-items: center; }
.cta-band-art img { width: min(260px, 100%); filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .35)); animation: float 7s ease-in-out infinite; }

/* ---------- Page héros intérieure ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  background:
    radial-gradient(circle at 90% 0%, rgba(240, 196, 108, .32), transparent 24rem),
    radial-gradient(circle at 0% 100%, rgba(126, 168, 150, .25), transparent 22rem),
    var(--parchment);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 880px; font-size: clamp(2.3rem, 5.4vw, 4rem); }
.page-hero .lead { max-width: 720px; margin-bottom: 0; }
.breadcrumb { display: flex; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-dark); }

/* ---------- Cartes territoires ---------- */
.territory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 370px)); justify-content: center; gap: 28px; }
.territory-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ivory);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.territory-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.territory-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--teal), var(--teal-soft)); }
.territory-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.territory-card:hover .territory-cover img { transform: scale(1.04); }
.territory-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 31, 40, .55)); }
.territory-cover .pill { position: absolute; top: 16px; left: 16px; z-index: 1; background: rgba(255, 252, 245, .92); color: var(--teal); }
.territory-cover-placeholder { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.territory-body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 0 28px 28px; }
.territory-head { display: flex; align-items: flex-end; gap: 16px; margin-top: -40px; margin-bottom: 16px; position: relative; z-index: 1; }
.territory-head img, .territory-head .logo-fallback {
  width: 84px;
  height: 84px;
  flex: none;
  border: 4px solid var(--ivory);
  border-radius: 22px;
  background: #fff;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}
.territory-head h2, .territory-head h3 { margin: 0 0 4px; font-size: 1.6rem; }
.territory-body > p { color: var(--muted); font-size: 15.5px; }
.territory-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 22px; padding: 0; list-style: none; }
.territory-meta li { padding: 12px 8px; border-radius: 16px; background: var(--parchment); text-align: center; font-size: 12.5px; font-weight: 650; color: var(--muted); line-height: 1.3; }
.territory-meta strong { display: block; color: var(--teal); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.trail-list { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.trail-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 14.5px; }
.trail-list li > span:first-child { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; min-width: 0; }
.trail-list li > span:first-child svg { width: 18px; height: 18px; flex: none; color: var(--gold-dark); }
.trail-list li small { flex: none; color: var(--muted); font-weight: 600; font-size: 13px; }
.territory-body .btn { margin-top: auto; }
.territory-card h4 { margin: 0 0 10px; font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }

.empty-state {
  grid-column: 1 / -1;
  padding: clamp(36px, 6vw, 64px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--ivory);
  text-align: center;
}
.empty-state .icon-bubble { margin: 0 auto 20px; }
.empty-state p { max-width: 560px; margin-inline: auto; color: var(--muted); }

.suggest-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 48px;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  background: var(--parchment);
  border: 1px solid var(--line);
}
.suggest-card h2 { margin-bottom: 4px; font-size: 1.6rem; }
.suggest-card p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.faq-nav a { padding: 10px 14px; border-radius: 12px; color: var(--teal); font-weight: 650; text-decoration: none; font-size: 15px; }
.faq-nav a:hover { background: rgba(212, 162, 76, .14); color: var(--teal); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 20px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ivory);
  transition: box-shadow .2s, border-color .2s;
}
.faq-item + .faq-item { margin-top: 12px; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  color: var(--teal);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(212, 162, 76, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f3d4e' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 22px; color: var(--muted); }
.faq-answer p:last-child, .faq-answer ul:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 20px; }

.faq-teaser { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }

/* ---------- Pages légales ---------- */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); font-size: 14.5px; }
.legal-toc p { margin: 0 0 10px; color: var(--gold-dark); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.legal-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.legal-toc a { color: var(--teal); text-decoration: none; font-weight: 600; }
.legal-toc a:hover { color: var(--gold-dark); }
.prose { max-width: 760px; min-width: 0; }
.legal-layout > *, .faq-layout > *, .signup-layout > * { min-width: 0; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.6vw, 1.9rem); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose table { width: 100%; margin: 16px 0 24px; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--teal); background: var(--parchment); font-weight: 750; }
.table-wrap { overflow-x: auto; }
.legal-updated { display: inline-flex; margin-top: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.callout {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  border-radius: 0 16px 16px 0;
  background: rgba(212, 162, 76, .1);
  color: var(--ink);
}
.callout--todo { border-left-color: #c27766; background: rgba(194, 119, 102, .1); }
.todo { padding: 1px 6px; border-radius: 6px; background: rgba(194, 119, 102, .16); color: #8a2f26; font-weight: 650; }

/* ---------- Formulaires / pages d'action ---------- */
label { display: block; margin: 16px 0 7px; color: var(--teal-deep); font-weight: 700; font-size: 15px; }
label .optional { color: var(--muted); font-weight: 500; }
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d8c9ab;
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 162, 76, .18); }
input[aria-invalid="true"] { border-color: #c27766; }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-weight: 500; color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.minor-fields { margin-top: 8px; padding: 4px 18px 18px; border-radius: 16px; background: rgba(167, 208, 232, .22); border: 1px solid rgba(45, 111, 114, .2); }
.minor-fields .callout { margin: 14px 0 0; border-left-color: var(--teal-soft); background: rgba(255, 255, 255, .6); font-size: 14.5px; }

.auth-page main { display: grid; place-items: center; padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); background: radial-gradient(circle at 12% 5%, rgba(212, 162, 76, .22), transparent 27rem), radial-gradient(circle at 92% 82%, rgba(126, 168, 150, .26), transparent 30rem), var(--paper); }
.action-card {
  width: min(620px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid rgba(212, 162, 76, .3);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 246, .97);
  box-shadow: var(--shadow);
  text-align: center;
}
.action-card h1 { margin: 8px 0 16px; font-size: clamp(2rem, 6vw, 2.9rem); }
.action-card--form { text-align: left; }
.action-card--form .action-icon, .action-card--form .eyebrow, .action-card--form h1, .action-card--form .action-copy { text-align: center; }
.action-card .eyebrow { display: flex; justify-content: center; margin: 18px 0 0; }
.action-card button, .action-card .btn { margin-top: 22px; }
.action-card--form button { width: 100%; }
.action-copy { max-width: 480px; margin: 0 auto; color: var(--muted); font-size: 16.5px; }
.action-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--teal), var(--teal-soft));
  box-shadow: 0 14px 30px rgba(15, 61, 78, .24);
  color: var(--gold-light);
  font-size: 32px;
  font-weight: 800;
}
.action-icon--success { background: linear-gradient(145deg, #467b36, var(--sage)); color: #fff; }
.action-icon--error { background: linear-gradient(145deg, #9d493f, #c27766); color: #fff; }
.spinner { width: 25px; height: 25px; border: 3px solid rgba(255, 255, 255, .34); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }

.notice { margin-top: 18px; padding: 13px 15px; border-radius: 13px; background: #f3e5c6; color: var(--earth); font-size: 15px; }
.notice--success { background: #e7f1e9; color: #38652e; }
.notice--error, .danger { color: #8a2f26; }
.notice--error { background: #f8e6e2; }
.danger { font-weight: 650; }
.hidden { display: none !important; }

.signup-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.signup-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.signup-aside .check-list { margin-bottom: 28px; }
.signup-card { width: 100%; margin: 0; }
.signup-success { text-align: center; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 18px;
  border-radius: 14px;
  background: var(--teal-night);
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
  text-align: left;
}
.store-badge:hover { color: #fff; background: var(--teal); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 11px; opacity: .8; }
.store-badge strong { font-size: 16px; }
.store-badge[aria-disabled="true"] { opacity: .8; cursor: default; }

/* ---------- Pied de page ---------- */
.site-footer {
  padding: clamp(56px, 8vw, 80px) 0 32px;
  background: var(--teal-night);
  color: rgba(245, 235, 221, .72);
  font-size: 15px;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { width: 200px; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.footer-tagline { color: var(--gold-light); font-size: 12px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; }
.site-footer h2 { margin-bottom: 16px; color: var(--parchment); font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(245, 235, 221, .82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(240, 196, 108, .18); font-size: 14px; }

/* ---------- Révélation au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .territory-strip-inner { flex-wrap: wrap; }
  .territory-strip-label { max-width: none; flex-basis: 100%; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .brand img { height: 36px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(16, 43, 53, .12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .site-nav .btn { margin: 10px 0 0; }
  .hero-grid, .split, .cta-band, .faq-teaser, .signup-layout { grid-template-columns: 1fr; }
  .hero { text-align: left; }
  .hero-visual { min-height: 500px; }
  .split--reverse .split-media { order: 0; }
  .split-media .media-frame { aspect-ratio: 16 / 11; }
  .split-media .media-badge { right: 16px; bottom: 16px; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band-art { display: none; }
  .faq-layout, .legal-layout { grid-template-columns: 1fr; }
  .faq-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .faq-nav a { border: 1px solid var(--line); background: var(--ivory); }
  .legal-toc { position: static; }
  .signup-aside { position: static; }
  .signup-aside .check-list, .signup-aside .field-hint { display: none; }
  .signup-aside .lead { margin-bottom: 0; }
  .suggest-card { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container, .container--narrow { width: calc(100% - 32px); }
  .btn-row .btn { width: 100%; }
  .hero-visual { min-height: 460px; }
  .phone { width: 232px; }
  .float-card { font-size: 12.5px; padding: 10px 12px 10px 10px; }
  .float-card .icon-bubble { width: 34px; height: 34px; border-radius: 12px; }
  .float-card--a { top: 6%; left: -4px; }
  .float-card--b { bottom: 0; right: -4px; }
  .territory-strip { margin-top: -40px; }
  .territory-strip .btn { width: 100%; }
  .territory-logo { padding-right: 12px; }
  .feature-grid, .audience-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .territory-body { padding: 0 20px 22px; }
  .faq-item summary { padding: 18px; font-size: 1rem; }
  .faq-answer { padding: 0 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

code { padding: 2px 6px; border-radius: 6px; background: rgba(15, 61, 78, .08); color: var(--teal); font-size: .9em; word-break: break-all; }
.signup-success .btn { margin-top: 26px; }
.territory-strip-empty { margin: 0; color: var(--muted); }
