/* ==========================================================================
   Myrese — feuille de style
   Deux thèmes de page : clair (candidats, par défaut) et sombre (espace agences, body.theme-sombre).
   À l'intérieur, les cartes blanches (.panel…) et les panneaux marine (.panel-navy) gardent leur contexte.
   Les composants utilisent --fg / --fg-2 / --fg-muted / --line…, redéfinis par contexte.
   ========================================================================== */

:root {
  /* Marque */
  --navy-950: #0a1522;
  --navy-900: #0d1b2a;
  --navy-850: #10233a;
  --navy-700: #173f5e;
  --navy-600: #1c4a6e;
  --navy-500: #245a84;
  --green: #1fa98a;
  --green-600: #178f74;
  --green-300: #5fd1b4;
  --sky: #93c5ec;

  --ok: #1fa98a;
  --warn: #e0a43a;
  --danger: #e2584b;

  /* Thème clair (candidats, par défaut) */
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --bg-footer: #f4f7fa;
  --header-bg: rgb(255 255 255 / 90%);
  --tile-bg: #f2f6f9;
  --hero-glow: rgb(147 197 236 / 30%);
  --logo-fg: var(--navy-900);
  --eyebrow: var(--navy-500);
  --accent-fg: var(--green-600);
  --link: var(--green-600);
  --link-hover: #13755f;
  --fg: #0f1d2b;
  --fg-2: #334a5f;
  --fg-muted: #5f7488;
  --line: #e2e8ef;
  --line-strong: #c9d3de;
  --soft: #f2f6f9;
  --field-bg: #ffffff;
  --pill-bg: #edf2f6;
  --ok-bg: #e2f5ef;
  --ok-fg: #13755f;
  --warn-bg: #fcf1dc;
  --warn-fg: #93600f;
  --danger-bg: #fcebe9;
  --danger-fg: #b8362a;
  --brand-bg: #e6f0f8;
  --brand-fg: var(--navy-600);
  --shadow: 0 0 0 1px rgb(15 29 43 / 7%), 0 8px 24px rgb(15 29 43 / 7%);
  --shadow-lg: 0 0 0 1px rgb(15 29 43 / 6%), 0 20px 48px rgb(15 29 43 / 13%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* Thème sombre (espace agences) */
.theme-sombre {
  --bg: var(--navy-900);
  --bg-alt: var(--navy-850);
  --bg-footer: var(--navy-950);
  --header-bg: color-mix(in srgb, var(--navy-900) 88%, transparent);
  --tile-bg: var(--navy-700);
  --hero-glow: rgb(36 90 132 / 55%);
  --logo-fg: #ffffff;
  --eyebrow: var(--sky);
  --accent-fg: var(--green);
  --link: var(--green);
  --link-hover: var(--green-300);
  --fg: #ffffff;
  --fg-2: #d6e0ea;
  --fg-muted: #9fb2c6;
  --line: rgb(255 255 255 / 12%);
  --line-strong: rgb(255 255 255 / 26%);
  --soft: rgb(255 255 255 / 6%);
  --field-bg: rgb(255 255 255 / 6%);
  --pill-bg: rgb(255 255 255 / 10%);
  --ok-bg: rgb(31 169 138 / 18%);
  --ok-fg: var(--green-300);
  --warn-bg: rgb(224 164 58 / 18%);
  --warn-fg: #f3c572;
  --danger-bg: rgb(226 88 75 / 18%);
  --danger-fg: #ff9b90;
  --brand-bg: rgb(147 197 236 / 14%);
  --brand-fg: var(--sky);
  --shadow: 0 10px 30px rgb(0 0 0 / 22%);
  --shadow-lg: 0 24px 60px rgb(0 0 0 / 35%);
}

/* Contexte clair : cartes blanches */
.light, .panel, .mock-panel, .lead-card, .crm-card, .flow-card, .price-card, .combo-list, dialog, .features-card {
  --fg: #0f1d2b;
  --fg-2: #334a5f;
  --fg-muted: #5f7488;
  --line: #e2e8ef;
  --line-strong: #c9d3de;
  --soft: #f2f6f9;
  --field-bg: #ffffff;
  --pill-bg: #edf2f6;
  --ok-bg: #e2f5ef;
  --ok-fg: #13755f;
  --warn-bg: #fcf1dc;
  --warn-fg: #93600f;
  --danger-bg: #fcebe9;
  --danger-fg: #b8362a;
  --brand-bg: #e6f0f8;
  --brand-fg: var(--navy-600);
  --link: var(--green-600);
  --link-hover: #13755f;
  --accent-fg: var(--green-600);
  color: var(--fg);
  background: #fff;
}

/* Panneau marine (contexte sombre, quel que soit le thème de la page) */
.panel-navy {
  --fg: #ffffff;
  --fg-2: #d6e0ea;
  --fg-muted: #a9bdd1;
  --line: rgb(255 255 255 / 14%);
  --line-strong: rgb(255 255 255 / 26%);
  --soft: rgb(255 255 255 / 7%);
  --eyebrow: var(--sky);
  --link: var(--green-300);
  --link-hover: #ffffff;
  --accent-fg: var(--green-300);
  color: var(--fg);
  background: var(--navy-700);
  border-radius: var(--radius-lg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1, .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
h1 em, h2 em, .accent { font-style: normal; font-family: var(--font); font-weight: 700; color: var(--accent-fg); }
h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--green-300); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--fg-muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Boutons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); --btn-bd: var(--fg-muted); }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { --btn-bg: var(--green); --btn-fg: #fff; --btn-bd: var(--green); }
.btn-primary:hover { --btn-bg: var(--green-600); --btn-bd: var(--green-600); }
.btn-navy { --btn-bg: var(--navy-600); --btn-fg: #fff; --btn-bd: var(--navy-600); }
.btn-navy:hover { --btn-bg: var(--navy-500); --btn-bd: var(--navy-500); }
.btn-ghost { --btn-bd: transparent; --btn-fg: var(--fg-2); }
.btn-ghost:hover { --btn-bg: var(--soft); --btn-bd: transparent; }
.btn-danger { --btn-bg: #c9443a; --btn-fg: #fff; --btn-bd: #c9443a; }
.btn-danger-outline { --btn-fg: var(--danger-fg); --btn-bd: color-mix(in srgb, var(--danger-fg) 45%, transparent); }
.btn-danger-outline:hover { --btn-bg: var(--danger-bg); --btn-bd: var(--danger-fg); }
.btn-sm { padding: .55em 1.05em; font-size: .9rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--logo-fg); }
.logo:hover { color: var(--logo-fg); }
.logo-mark { width: 32px; height: 32px; color: var(--navy-600); }
.logo-text { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; }
.logo-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 3px 8px; border-radius: 6px; background: var(--green); color: #fff; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  padding: 8px 12px; border-radius: 999px;
  color: var(--fg-2); font-weight: 500; font-size: .95rem; text-decoration: none;
}
.site-nav a:not(.btn):hover { background: var(--soft); color: var(--fg); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--accent-fg); }
.site-nav .nav-pro { color: var(--fg-muted); }
.site-nav .btn { margin-left: 8px; }
.nav-user { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--brand-bg); font-size: .8rem; color: var(--brand-fg); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; margin: 0 auto; position: relative; transition: transform .2s ease; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* ---------- Sections génériques ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.section-head p { font-size: 1.1rem; color: var(--fg-2); }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--eyebrow); margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--fg-2); max-width: 36em; }

/* ---------- Hero candidats ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--hero-glow), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 0; margin: 0; list-style: none; color: var(--fg-muted); font-size: .95rem; }
.hero-proof strong { display: block; font-size: 1.6rem; color: var(--fg); line-height: 1.1; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Visuel « flux » : une recherche → plusieurs agences */
.flow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, .88fr); align-items: center; }
.flow-card { position: relative; z-index: 1; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); }
.flow-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px dashed var(--line-strong); }
.flow-card-head > div { min-width: 0; }
.flow-card-head strong { display: block; line-height: 1.2; white-space: nowrap; }
.flow-card-head small { color: var(--fg-muted); font-size: .82rem; }
.flow-card-head .pill { margin-left: auto; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--navy-600); color: #fff; font-weight: 700; font-size: .9rem; }
.flow-specs { display: grid; gap: 10px; margin: 0; }
.flow-specs div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.flow-specs dt { color: var(--fg-muted); }
.flow-specs dd { margin: 0; font-weight: 600; text-align: right; }
.flow-lines { width: 100%; height: 300px; overflow: visible; }
.flow-lines path { fill: none; stroke: var(--green); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: .8; animation: flow-dash 1.4s linear infinite; }
@keyframes flow-dash { to { stroke-dashoffset: -18; } }
.flow-agencies { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.flow-agencies li {
  display: flex; align-items: center; gap: 10px;
  background: var(--tile-bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 12px 9px 10px; font-size: .86rem; font-weight: 500; white-space: nowrap;
  opacity: 0; transform: translateX(-8px); animation: flow-in .5s ease forwards;
}
.flow-agencies li:nth-child(1) { animation-delay: .3s; }
.flow-agencies li:nth-child(2) { animation-delay: .5s; }
.flow-agencies li:nth-child(3) { animation-delay: .7s; }
.flow-agencies li:nth-child(4) { animation-delay: .9s; }
.flow-agencies li:nth-child(5) { animation-delay: 1.1s; }
@keyframes flow-in { to { opacity: 1; transform: none; } }
.flow-agencies .agency-dot { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--navy-600); display: grid; place-items: center; font-size: .66rem; font-weight: 700; color: var(--sky); }
.flow-agencies .tick { margin-left: auto; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .7rem; }
.flow-caption { grid-column: 1 / -1; margin-top: 20px; text-align: center; font-size: .85rem; color: var(--fg-muted); }

@media (max-width: 560px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .flow-lines { display: none; }
  .flow-agencies { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .flow-agencies li { font-size: .78rem; white-space: normal; line-height: 1.25; }
  .flow-agencies li:nth-child(5), .flow-agencies .tick { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-lines path, .flow-agencies li { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Pastilles ---------- */

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: var(--pill-bg); color: var(--fg-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill-warn { background: var(--warn-bg); color: var(--warn-fg); }
.pill-danger { background: var(--danger-bg); color: var(--danger-fg); }
.pill-brand { background: var(--brand-bg); color: var(--brand-fg); }
.pill-green { background: var(--green); color: #fff; }
.pill-plain::before { display: none; }

/* ---------- « Comment ça marche » (panneau marine numéroté) ---------- */

.how { padding: clamp(28px, 4vw, 48px); }
.how-title { text-align: center; font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); margin-bottom: 32px; }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: etape; }
.how-list.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.how-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.how-list li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; }
.how-list li::before {
  counter-increment: etape; content: counter(etape);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: .95rem;
}
.how-list strong { display: block; font-weight: 500; font-size: 1.08rem; color: #fff; margin: 3px 0 6px; }
.how-list p { margin: 0; font-style: italic; color: var(--fg-2); font-size: .95rem; }
.how-list p::before { content: "→ "; font-style: normal; }
@media (max-width: 860px) { .how-list.cols { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Carte blanche « avantages » (icônes rondes marine) ---------- */

.features-card { border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.feature-list.cols { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.feature-list .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-600); color: #fff; }
.feature-list .ico svg { width: 22px; height: 22px; }
.feature-list strong { display: block; font-size: 1.08rem; margin-top: 2px; }
.feature-list p { margin: 2px 0 0; color: var(--fg-muted); font-size: .95rem; }
@media (max-width: 860px) { .feature-list.cols { grid-template-columns: 1fr; } }

/* ---------- Comparatif ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col { border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); }
.compare-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 20px; }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.compare-col li { position: relative; padding-left: 34px; }
.compare-col li::before { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.compare-old { background: var(--soft); border: 1px solid var(--line); color: var(--fg-2); }
.compare-old li::before { content: "✕"; background: var(--soft); color: var(--fg-muted); }
.compare-new { box-shadow: var(--shadow-lg); }
.compare-new li::before { content: "✓"; background: var(--green); color: #fff; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Bloc « modifier partout » ---------- */

.control { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .control { grid-template-columns: 1fr; } }

.mock-panel { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.mock-change { display: flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--soft); font-size: .9rem; border-bottom: 1px solid var(--line); }
.mock-change s { color: var(--fg-muted); }
.mock-change b { color: var(--ok-fg); }
.mock-rows { list-style: none; margin: 0; padding: 8px 0; }
.mock-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 22px; font-size: .9rem; }
.mock-rows li + li { border-top: 1px solid var(--soft); }
.mock-foot { padding: 14px 22px; font-size: .85rem; color: var(--fg-muted); background: var(--soft); }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--tile-bg); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--eyebrow); border-bottom: 2px solid var(--eyebrow); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 24px 22px; color: var(--fg-2); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Bandeau CTA ---------- */

.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: rgb(255 255 255 / 5%); pointer-events: none; }
.cta-band h2 { font-family: var(--font-serif); font-style: italic; font-weight: 500; margin-bottom: .3em; }
.cta-band p { color: var(--fg-2); margin: 0; font-size: 1.1rem; }
.cta-band .actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */

.site-footer { margin-top: clamp(64px, 9vw, 112px); padding: 56px 0 28px; background: var(--bg-footer); color: var(--fg-muted); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin-top: 14px; font-size: .95rem; }
.footer-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--eyebrow); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: inherit; text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ==========================================================================
   Formulaires
   ========================================================================== */

.field { display: grid; gap: 6px; align-content: start; }
.field + .field, .field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field + .field { margin-top: 0; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

label, .label { font-weight: 600; font-size: .95rem; color: var(--fg); }
.label-hint { font-weight: 400; color: var(--fg-muted); font-size: .85rem; }
.hint { margin: 0; font-size: .88rem; color: var(--fg-muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fg);
  padding: 12px 14px; background: var(--field-bg);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--fg-muted) 75%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgb(31 169 138 / 18%); }
input[readonly] { background: var(--soft); color: var(--fg-2); }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--danger-fg); }
.field-error { margin: 0; color: var(--danger-fg); font-size: .85rem; font-weight: 600; }
.field-error:empty { display: none; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 64px; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-muted); font-weight: 600; font-size: .9rem; pointer-events: none; }

/* Choix sous forme de puces */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--field-bg);
  font-weight: 500; font-size: .95rem; color: var(--fg-2); cursor: pointer; user-select: none;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.chip:hover span { border-color: var(--navy-500); }
.chip input:checked + span { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--green-300); outline-offset: 2px; }

/* Grandes cartes de choix (achat / location) */
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-card > span {
  display: grid; gap: 4px; height: 100%;
  padding: 18px 20px 18px 56px; border-radius: var(--radius); border: 1.5px solid var(--line-strong); background: var(--field-bg);
  cursor: pointer; position: relative; transition: all .12s ease;
}
.choice-card > span::before {
  content: ""; position: absolute; left: 20px; top: 22px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line-strong); background: var(--field-bg); transition: all .12s ease;
}
.choice-card strong { font-size: 1.1rem; }
.choice-card small { color: var(--fg-muted); font-size: .88rem; }
.choice-card input:checked + span { border-color: var(--green); background: var(--ok-bg); }
.choice-card input:checked + span::before { border: 6px solid var(--green); }
.choice-card input:focus-visible + span { outline: 3px solid var(--green-300); outline-offset: 2px; }
@media (max-width: 480px) { .choice-cards { grid-template-columns: 1fr; } }

.checkbox { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 400; font-size: .92rem; color: var(--fg-2); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Alertes ---------- */

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .95rem; }
.alert p:last-child { margin-bottom: 0; }
.alert-info { background: var(--brand-bg); color: var(--brand-fg); }
.alert-warn { background: var(--warn-bg); color: var(--warn-fg); }
.alert-danger { background: var(--danger-bg); color: var(--danger-fg); }
.alert-ok { background: var(--ok-bg); color: var(--ok-fg); }
.alert a { color: inherit; font-weight: 600; }
.dev-note { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* Encart « synchronisé partout » */
.sync-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--ok-bg); color: var(--ok-fg); font-size: .93rem; }
.sync-note svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.sync-note strong { color: inherit; }
.sync-note p { margin: 0; }

/* ==========================================================================
   Assistant de recherche
   ========================================================================== */

.page-head { padding: clamp(32px, 5vw, 56px) 0 24px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.page-head p { color: var(--fg-2); font-size: 1.08rem; max-width: 42em; margin: 0; }
.back-link { display: inline-flex; gap: 6px; margin-bottom: 12px; font-size: .92rem; color: var(--eyebrow); text-decoration: none; }

.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .wizard { grid-template-columns: 1fr; } }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.stepper li { display: grid; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--fg-muted); }
.stepper li::before { content: ""; height: 5px; border-radius: 5px; background: var(--line-strong); transition: background .25s ease; }
.stepper li.is-done::before, .stepper li.is-current::before { background: var(--green); }
.stepper li.is-current { color: var(--fg); }
@media (max-width: 560px) {
  .stepper li span { display: none; }
  .stepper li.is-current span { display: inline; }
}

.panel { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.wizard-step { padding: clamp(22px, 4vw, 40px); }
.wizard-step h2 { font-size: 1.55rem; margin-bottom: 6px; }
.wizard-step > .hint:first-of-type { font-size: .98rem; margin-bottom: 28px; }
.wizard-step fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard-step fieldset + fieldset, .wizard-step fieldset + .field, .wizard-step .field + fieldset, .wizard-step .field-row + fieldset, .wizard-step fieldset + .field-row { margin-top: 28px; }
.wizard-step legend { padding: 0; margin-bottom: 12px; font-weight: 600; font-size: .95rem; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px clamp(22px, 4vw, 40px); border-top: 1px solid var(--line); background: var(--soft); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.wizard-nav .spacer { flex: 1; }
.sub-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.me-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--soft); }
.me-card div { min-width: 0; }
.me-card strong { display: block; }
.me-card span { color: var(--fg-muted); font-size: .9rem; overflow-wrap: anywhere; }

/* Sélecteur de zones */
.zone-picker { position: relative; }
.zone-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.zone-chips:empty { display: none; }
.zone-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--navy-600); color: #fff; font-weight: 500; font-size: .9rem; }
.zone-chip small { opacity: .7; margin-left: 2px; }
.zone-chip.is-province { background: var(--green); }
.zone-chip button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 20%); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.zone-chip button:hover { background: rgb(255 255 255 / 35%); }
.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.combo-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.combo-list li small { color: var(--fg-muted); }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--ok-bg); }
.combo-list li.is-province strong { color: var(--green-600); }
.combo-list .combo-empty { color: var(--fg-muted); cursor: default; }
.combo-list .combo-empty:hover { background: none; }
.province-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.province-shortcuts button { font: inherit; font-size: .82rem; font-weight: 500; padding: 5px 11px; border-radius: 999px; border: 1px dashed var(--line-strong); background: transparent; color: var(--fg-2); cursor: pointer; }
.province-shortcuts button:hover { border-style: solid; border-color: var(--green); color: var(--green-600); }

/* Résumé latéral (panneau marine) */
.summary { position: sticky; top: 88px; padding: 24px; }
.summary h2 { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: 18px; font-family: var(--font); font-style: normal; }
.summary dl { margin: 0; display: grid; gap: 12px; }
.summary dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--fg-muted); }
.summary dd { margin: 2px 0 0; font-weight: 500; font-size: .95rem; }
.summary dd.empty { color: var(--fg-muted); opacity: .6; }
.reach { margin-top: 20px; padding: 16px; border-radius: var(--radius); background: var(--navy-900); }
.reach strong { display: block; font-size: 2rem; line-height: 1; color: var(--green-300); }
.reach span { font-size: .88rem; color: var(--fg-2); }
@media (max-width: 980px) { .summary { position: static; } }

/* Écran de confirmation */
.success { margin-top: clamp(24px, 5vw, 48px); padding: clamp(28px, 5vw, 56px); text-align: center; }
.success-ico { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok-fg); }
.success-ico svg { width: 36px; height: 36px; }
.success h2 { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.success > p { color: var(--fg-muted); max-width: 36em; margin-inline: auto; }
.agency-grid { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; text-align: left; }
.agency-grid li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.agency-grid li div { min-width: 0; }
.agency-grid strong { display: block; font-size: .9rem; line-height: 1.3; }
.agency-grid small { color: var(--fg-muted); font-size: .8rem; }
.agency-initials { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--navy-600); color: #fff; }
.success .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ==========================================================================
   Comptes
   ========================================================================== */

.auth-wrap { max-width: 480px; margin: clamp(32px, 6vw, 72px) auto 0; }
.auth-wrap h1 { text-align: center; font-size: clamp(2rem, 4vw, 2.6rem); }
.auth-wrap > p { text-align: center; color: var(--fg-2); }
.auth-card { padding: clamp(24px, 4vw, 36px); margin-top: 24px; }
.auth-card form { display: grid; gap: 16px; }
.auth-card .field + .field { margin-top: 0; }
.auth-foot { margin-top: 20px; text-align: center; font-size: .92rem; color: var(--fg-muted); }
.pwd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pwd-row a { font-size: .85rem; }
.verif-box { text-align: center; }
.verif-box .hint { margin-top: 12px; }
.alert .link-btn { color: inherit; font-weight: 600; }

.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .account-grid { grid-template-columns: 1fr; } }
.block-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.block-title h2 { margin: 0; font-size: 1.3rem; }

.search-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.search-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.search-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--fg); }
.search-card h3 { margin: 0; font-size: 1.1rem; }
.search-card .zones { color: var(--fg-2); font-size: .92rem; margin: 0; }
.search-card .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--fg-muted); }
.search-card .meta .go { margin-left: auto; color: var(--green-600); font-weight: 600; }
.search-new { display: grid; place-items: center; gap: 8px; min-height: 180px; padding: 22px; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--fg-2); text-decoration: none; text-align: center; transition: border-color .15s ease, color .15s ease; }
.search-new:hover { border-color: var(--green); color: var(--fg); }
.search-new .plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 1.5rem; line-height: 1; }
.empty-state { padding: clamp(28px, 5vw, 48px); text-align: center; }
.empty-state p { color: var(--fg-muted); max-width: 30em; margin: 0 auto 20px; }

.side-card { padding: 24px; }
.side-card + .side-card { margin-top: 20px; }
.side-card h2 { font-size: 1.1rem; margin-bottom: 4px; }
.side-card form { display: grid; gap: 14px; margin-top: 16px; }
.side-card .field + .field { margin-top: 0; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 980px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-grid > aside { order: -1; position: static; }
}
.profile-card { padding: clamp(22px, 3.5vw, 32px); }
.profile-card + .profile-card { margin-top: 24px; }
.profile-card h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 20px 0 0; }
.spec-grid dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--fg-muted); }
.spec-grid dd { margin: 3px 0 0; font-weight: 500; }
.spec-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } }

.actions-card { padding: 24px; display: grid; gap: 10px; position: sticky; top: 88px; }
.actions-card h2 { font-size: 1.05rem; margin-bottom: 4px; }
.actions-card .hint { margin-bottom: 8px; }
.actions-card hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }

.status-banner { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius-lg); margin-bottom: 24px; }
.status-banner strong { display: block; font-size: 1.05rem; }
.status-banner p { margin: 0; font-size: .95rem; opacity: .9; }
.status-banner.actif { background: var(--ok-bg); color: var(--ok-fg); }
.status-banner.pause { background: var(--warn-bg); color: var(--warn-fg); }
.status-banner.supprimee { background: var(--soft); color: var(--fg-2); }
.status-dot { width: 14px; height: 14px; flex: none; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 20%, transparent); }

.table-wrap { overflow-x: auto; margin: 16px -4px 0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }

dialog { border: 0; padding: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: min(480px, calc(100vw - 32px)); }
dialog::backdrop { background: rgb(5 12 20 / 65%); backdrop-filter: blur(2px); }
.dialog-body { padding: 28px; }
.dialog-body h2 { font-size: 1.35rem; }
.dialog-body p { color: var(--fg-2); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px; background: var(--soft); }

/* ==========================================================================
   Côté agences
   ========================================================================== */

.pro-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0; }
.pro-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, rgb(36 90 132 / 60%), transparent 70%),
    radial-gradient(500px 300px at 10% 110%, rgb(31 169 138 / 16%), transparent 70%);
  pointer-events: none;
}
.pro-hero .container { position: relative; }
.pro-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.pro-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.pro-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pro-facts li { padding: 7px 14px; border-radius: 999px; background: var(--tile-bg); font-size: .88rem; color: var(--fg-2); }
@media (max-width: 960px) { .pro-hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Maquette : fiche créée automatiquement dans le CRM */
.crm-card { border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgb(0 0 0 / 40%); overflow: hidden; font-size: .9rem; }
.crm-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.crm-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.crm-bar span { margin-left: 8px; font-weight: 600; color: var(--fg-2); font-size: .82rem; }
.crm-bar .pill { margin-left: auto; }
.crm-body { padding: 20px; }
.crm-person { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.crm-person strong { display: block; }
.crm-person small { color: var(--fg-muted); }
.crm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.crm-fields div { padding: 10px 12px; background: var(--soft); border-radius: var(--radius-sm); }
.crm-fields dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--fg-muted); }
.crm-fields dd { margin: 2px 0 0; font-weight: 600; }
.crm-fields .updated { box-shadow: inset 0 0 0 1.5px var(--green); background: var(--ok-bg); }
.crm-log { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line-strong); display: grid; gap: 8px; }
.crm-log li { display: flex; gap: 10px; align-items: center; color: var(--fg-2); font-size: .84rem; }
.crm-log time { margin-left: auto; color: var(--fg-muted); font-size: .78rem; white-space: nowrap; }
.crm-log .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--green); }
.crm-log .dot.warn { background: var(--warn); }
.crm-log .dot.off { background: var(--fg-muted); }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { padding: 28px; border-radius: var(--radius-lg); background: var(--tile-bg); }
.benefit .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; margin-bottom: 18px; }
.benefit .ico svg { width: 22px; height: 22px; }
.benefit p { color: var(--fg-2); margin: 0; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; } }

.sync-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.sync-table th, .sync-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sync-table td:first-child { font-weight: 600; color: var(--fg); }
.sync-table td:last-child { color: var(--fg-2); }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 780px; margin: 0 auto; }

/* Sélecteur de facturation mensuelle / annuelle */
.billing-toggle { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 0 auto 36px; flex-wrap: wrap; }
.billing-label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; border: 0; background: none; font: inherit; font-weight: 600; font-size: 1rem; color: var(--fg-muted); cursor: pointer; transition: color .15s ease; }
.billing-label.is-active { color: var(--fg); }
.switch { position: relative; width: 58px; height: 32px; flex: none; padding: 0; border: 0; border-radius: 999px; background: var(--navy-600); cursor: pointer; transition: background-color .2s ease; }
.switch[aria-checked="true"] { background: var(--green); }
.switch-knob { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 30%); transition: transform .2s ease; }
.switch[aria-checked="true"] .switch-knob { transform: translateX(26px); }
[data-periode="mensuel"] [data-annuel], [data-periode="annuel"] [data-mensuel] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .switch, .switch-knob { transition: none; } }
.price-card { display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--radius-lg); box-shadow: var(--shadow); position: relative; }
.price-card.is-featured { box-shadow: 0 0 0 3px var(--green), var(--shadow-lg); }
.price-card .tag { position: absolute; top: -13px; left: 26px; }
.price-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.price { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 14px 0 4px; }
.price small { font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--fg-muted); }
.price-note { font-size: .88rem; color: var(--fg-muted); margin: 0; min-height: 2.8em; }
.price-note b { color: var(--ok-fg); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: .94rem; color: var(--fg-2); flex: 1; }
.price-card li { position: relative; padding-left: 26px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-card li.gift::before { content: "★"; }
@media (max-width: 700px) { .pricing { grid-template-columns: minmax(0, 1fr); max-width: 480px; } }

/* Pack « mise à niveau de votre base » */
.pack { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); margin: 36px auto 0; max-width: 1000px; padding: clamp(24px, 4vw, 40px); }
.pack h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 14px 0 10px; }
.pack-lead { color: var(--fg-2); }
.pack-garanties { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; color: var(--fg-2); font-size: .95rem; }
.pack-garanties li { position: relative; padding-left: 30px; }
.pack-garanties li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: .7rem; font-weight: 700; }
.pack-garanties strong { color: var(--fg); }
.pack-side { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--navy-900); }
.pack-price { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.pack-price small { font-size: .95rem; font-weight: 500; color: var(--fg-muted); letter-spacing: 0; }
.pack-price-note { margin: -6px 0 4px; color: var(--fg-muted); font-size: .9rem; }
.pack-estim { padding-top: 14px; border-top: 1px solid var(--line); }
.pack-estim .label { margin: 0 0 10px; font-size: .9rem; }
.chips-sm { gap: 6px; }
.chips-sm .chip span { padding: 5px 11px; font-size: .82rem; }
.pack .chip input:checked + span { background: var(--green); border-color: var(--green); }
.pack-result { margin: 14px 0 0; font-size: .92rem; color: var(--fg-2); }
.pack-result strong { font-size: 1.7rem; color: var(--green-300); margin-right: 4px; }
.pack-option { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--ok-bg); }
@media (max-width: 860px) { .pack { grid-template-columns: minmax(0, 1fr); } }

.fair-use { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.fair-use div { padding: 18px; border-radius: var(--radius); background: var(--tile-bg); font-size: .9rem; color: var(--fg-2); }
.fair-use strong { display: block; color: var(--fg); margin-bottom: 4px; }
@media (max-width: 900px) { .fair-use { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fair-use { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-grid .panel { padding: clamp(22px, 4vw, 36px); }
.contact-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; color: var(--fg-2); }
.contact-points li { display: flex; gap: 12px; }
.contact-points li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; }
.tva-status { font-size: .85rem; font-weight: 600; margin: 0; }
.tva-status.ok { color: var(--ok-fg); }
.tva-status.ko { color: var(--danger-fg); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Admin (dev)
   ========================================================================== */

.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.admin-section { padding: 20px 24px; margin-bottom: 24px; }
.admin-section h2 { font-size: 1.15rem; }
.admin-section table { font-size: .85rem; }
.admin-section td { white-space: nowrap; }
.admin-section td.wrap { white-space: normal; min-width: 220px; }
.quota { display: inline-flex; align-items: center; gap: 8px; }
.quota .bar { width: 70px; height: 6px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.quota .bar span { display: block; height: 100%; background: var(--green); }
.quota.is-full .bar span { background: var(--danger); }

/* 404 */
.not-found { text-align: center; padding: clamp(64px, 12vw, 140px) 0; }
.not-found .big { font-family: var(--font-serif); font-style: italic; font-size: clamp(4rem, 12vw, 8rem); color: var(--green); line-height: 1; margin-bottom: 16px; }
