/* ARIA Campus Web — même identité que l'application : vert ARIA, jaune
   soleil, cartes arrondies, police Nunito. */

:root {
  --green: #0c5736;
  --green-2: #14704a;
  --green-deep: #0a4429;
  --green-ink: #0b3321;
  --mint: #e7f5ec;
  --mint-2: #cdeedb;
  --sun: #ffc94d;
  --sun-ink: #3d2b00;
  --blue: #1e5bb8;
  --orange: #c2410c;
  --red: #b91c1c;
  --ink: #142033;
  --body: #3b4a5c;
  --muted: #64748b;
  --canvas: #f5f7f4;
  --sand: #fbf8f1;
  --card: #ffffff;
  --line: #e4ebe6;
  --danger: #c93636;
  --ok: #16a34a;
  --warn: #d97706;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 1px 2px rgba(11, 51, 33, 0.06), 0 12px 32px rgba(11, 51, 33, 0.08);
  --shadow-lift: 0 18px 44px rgba(11, 51, 33, 0.16);
  font-family: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 0.84em;
  background: var(--mint);
  color: var(--green-ink);
  padding: 2px 6px;
  border-radius: 6px;
}
h1, h2, h3 { color: var(--ink); letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------ boutons */

.button {
  --bg: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px;
  background: var(--bg); color: #fff; text-decoration: none; cursor: pointer;
  font-weight: 800; font-size: 15px; line-height: 1;
  box-shadow: 0 4px 0 var(--green-deep);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.button:hover { background: var(--green-2); }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-deep); }
.button svg { width: 18px; height: 18px; }
.button.sun { --bg: var(--sun); color: var(--sun-ink); box-shadow: 0 4px 0 #d9a520; }
.button.sun:hover { background: #ffd56f; }
.button.ghost {
  background: #fff; color: var(--green); box-shadow: none; border: 2px solid var(--line);
}
.button.ghost:hover { border-color: var(--mint-2); background: var(--mint); }
.button.light { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; border: 2px solid rgba(255,255,255,.28); }
.button.light:hover { background: rgba(255,255,255,.22); }
.button.danger { background: #fff; color: var(--danger); border: 2px solid #f3d0d0; box-shadow: none; }
.button.danger:hover { background: #fdf1f1; }
.button.small { padding: 8px 14px; font-size: 13.5px; }
.button.block { width: 100%; }

/* ------------------------------------------------------------ marque */

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img.logo { height: 38px; width: auto; }
.brand .brand-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; background: var(--sun); color: var(--sun-ink);
}

/* ------------------------------------------------------------ messages */

.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 16px; margin: 0 0 18px; font-weight: 700;
}
.flash svg { width: 20px; height: 20px; flex: none; }
.flash.ok { background: #e6f6ec; color: #136d38; }
.flash.err { background: #fdecec; color: #8f2222; }

/* ============================================================ SITE PUBLIC */

.site { background: var(--sand); color: var(--ink); }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--sand) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12, 87, 54, .06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.site-header .brand {
  line-height: 0;
  padding: 2px 0;
}
.site-header .brand img.logo {
  height: 40px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  opacity: 0.92;
  filter: saturate(1.12) contrast(0.94);
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.button) {
  text-decoration: none; color: var(--green-ink); padding: 9px 13px; border-radius: 999px;
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
}
.site-nav a:not(.button):hover, .site-nav a.is-current { background: var(--mint); color: var(--green); }
.site-nav .button { margin-left: 8px; }
.menu-toggle { display: none; }

/* hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 201, 77, .28), transparent 60%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 70%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -120px -10%; height: 220px;
  background: var(--sand); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 56px 0 120px;
}
.hero h1 {
  color: #fff; margin: 14px 0 16px;
  font-size: clamp(38px, 5.2vw, 66px); line-height: 1.02; font-weight: 900; letter-spacing: -0.025em;
}
.hero h1 em { font-style: normal; color: var(--sun); }
.hero .lead { color: rgba(255,255,255,.86); font-size: 19px; line-height: 1.55; max-width: 34em; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 13.5px;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.2);
}
.pill-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: rgba(255,255,255,.82); font-weight: 700; font-size: 14.5px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--sun); }

.phone {
  position: relative; border-radius: 36px; padding: 8px; background: #0d1c15;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.phone img { border-radius: 29px; aspect-ratio: 460/1000; object-fit: cover; width: 100%; display: block; }

/* hero : trois cartes décalées, captures entières */
.hero-stack { display: flex; align-items: center; justify-content: flex-start; }
.stack-card {
  position: relative; margin: 0; flex: none; overflow: hidden; border-radius: 30px;
  background: #fff; box-shadow: 0 26px 60px rgba(0,0,0,.32);
}
.stack-card img { width: 100%; height: auto; display: block; }
.stack-card.big { width: 250px; z-index: 3; }
.stack-card.mid { width: 200px; z-index: 2; margin-left: -50px; }
.stack-card.small { width: 160px; z-index: 1; margin-left: -40px; }
.stack-card figcaption {
  position: absolute; top: 16px; right: 10px; writing-mode: vertical-rl;
  background: var(--sun); color: var(--sun-ink); font-weight: 900; border-radius: 999px;
  padding: 16px 8px; font-size: 19px; line-height: 1; box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.stack-card.mid figcaption { font-size: 15px; padding: 13px 7px; }
.stack-card.small figcaption { font-size: 12px; padding: 11px 6px; right: 8px; }

/* captures dans les sections */
.split { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: auto 1fr; }
.split .section-head { margin-bottom: 24px; }
.split .how { grid-template-columns: 1fr 1fr; }
.split .faq { max-width: none; }
.shot {
  display: block; width: 240px; height: auto; border-radius: 30px;
  box-shadow: 0 24px 50px rgba(12,87,54,.22);
}
.split-art { display: grid; place-items: center; }

/* réussite au code — fond discret + texte lisible */
.success-story {
  position: relative; overflow: hidden; padding: clamp(52px, 7vw, 88px) 0;
  background: var(--green-deep);
}
.success-story-bg {
  position: absolute; inset: 0;
  background-image: url('img/success-story-bg.jpg');
  background-size: cover;
  background-position: 78% center;
  background-repeat: no-repeat;
  opacity: 0.42;
  transform: scale(1.03);
}
@supports (background-image: url('img/success-story-bg.webp')) {
  .success-story-bg { background-image: url('img/success-story-bg.webp'); }
}
.success-story-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 68, 41, .94) 0%, rgba(10, 68, 41, .82) 38%, rgba(10, 68, 41, .35) 62%, rgba(10, 68, 41, .12) 100%),
    linear-gradient(180deg, rgba(10, 68, 41, .15) 0%, transparent 40%, rgba(10, 68, 41, .25) 100%);
}
.success-story-inner { position: relative; z-index: 1; }
.success-story-panel {
  max-width: min(520px, 100%);
  padding: clamp(24px, 4vw, 36px);
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}
.success-story-panel .kicker { color: var(--sun); margin-bottom: 10px; }
.success-story-panel h2 {
  margin: 0 0 16px; color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 900;
  letter-spacing: -.03em; line-height: 1.08; max-width: 16ch;
}
.success-story-panel h2 em { font-style: normal; color: var(--sun); }
.success-story-stat {
  margin: 0 0 14px; font-size: clamp(17px, 2vw, 20px); font-weight: 800; line-height: 1.45;
  color: rgba(255, 255, 255, .92);
}
.success-story-pct {
  display: inline-block; margin-right: 6px; font-size: clamp(28px, 4vw, 38px); font-weight: 900;
  color: var(--sun); letter-spacing: -.02em;
}
.success-story-detail {
  margin: 0 0 22px; font-size: 15.5px; font-weight: 700; line-height: 1.55;
  color: rgba(255, 255, 255, .78); max-width: 42ch;
}
.shot-pair { position: relative; display: flex; align-items: flex-start; justify-content: center; padding-bottom: 50px; }
.shot-pair .shot { width: 230px; }
.shot-pair .shot + .shot { margin: 50px 0 0 -70px; transform: rotate(4deg); }
.shot-pair .shot:first-child { transform: rotate(-3deg); position: relative; z-index: 1; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-weight: 700; }
.check-list li { display: flex; gap: 10px; align-items: center; }
.check-list svg { width: 22px; height: 22px; color: var(--green); background: var(--mint); border-radius: 8px; padding: 3px; flex: none; }

/* sections */
.section { padding: 70px 0; }
.section.tight { padding-top: 10px; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { color: var(--green); font-weight: 900; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; line-height: 1.12; }
.section-head p { color: var(--body); font-size: 17.5px; line-height: 1.6; margin: 12px 0 0; }

/* permis */
/* permis : garage à onglets */
.garage { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: stretch; }
.garage-tabs { display: grid; gap: 12px; align-content: start; }
.garage-tab {
  --tone: #2f6fe4; --tint: #eaf2ff;
  display: grid; grid-template-columns: 52px 1fr 20px; gap: 14px; align-items: center; text-align: left;
  font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 20px;
  padding: 12px 16px 12px 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.garage-tab:hover { transform: translateX(3px); }
.garage-tab .letter {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--tint); color: var(--tone); font-size: 26px; font-weight: 900;
}
.garage-tab strong { display: block; font-size: 17px; font-weight: 900; }
.garage-tab small { color: var(--muted); font-weight: 700; font-size: 14px; }
.garage-tab svg { width: 20px; height: 20px; color: var(--muted); }
.garage-tab[aria-selected="true"] { border-color: var(--tone); box-shadow: 0 10px 26px rgba(11,51,33,.12); }
.garage-tab[aria-selected="true"] .letter { background: var(--tone); color: #fff; }
.garage-tab[aria-selected="true"] svg { color: var(--tone); }
.garage-panel {
  --tone: #2f6fe4; --tint: #eaf2ff; --tint-2: #d4e4ff;
  position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 420px;
  background: linear-gradient(135deg, var(--tint) 0%, var(--tint-2) 100%);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 38px 40px;
}
.garage-panel[hidden] { display: none; }
.garage-panel .watermark {
  position: absolute; right: -10px; top: -70px; font-size: 380px; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,.55); pointer-events: none;
}
.garage-text { position: relative; z-index: 1; }
.garage-panel .cat { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--tone); }
.garage-panel h3 { margin: 6px 0 4px; font-size: clamp(32px, 3.4vw, 44px); font-weight: 900; }
.garage-panel .tagline { margin: 0 0 10px; font-size: 19px; font-weight: 800; color: var(--ink); }
.garage-panel p { margin: 0 0 16px; color: var(--body); font-weight: 600; line-height: 1.55; }
.chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: rgba(255,255,255,.8); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.garage-panel .vehicle {
  position: relative; z-index: 1; width: 118%; max-width: none; justify-self: end; margin-right: -14%;
  mix-blend-mode: multiply;
}
.garage-tab.a, .garage-panel.a { --tone: #e2531f; --tint: #fff1e6; --tint-2: #ffdcc4; }
.garage-tab.c, .garage-panel.c { --tone: #1d4f91; --tint: #eef2f6; --tint-2: #d9e2ec; }
.garage-tab.d, .garage-panel.d { --tone: #6c3fd1; --tint: #f1edff; --tint-2: #e0d6ff; }

/* parcours : la route */
.road-section { background: linear-gradient(180deg, transparent 0%, #eef7f1 18%, #eef7f1 82%, transparent 100%); }
.road { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.road::before {
  content: ""; position: absolute; left: 36px; top: 24px; bottom: 24px; width: 30px; transform: translateX(-50%);
  background: #39424f; border-radius: 15px;
}
.road::after {
  content: ""; position: absolute; left: 36px; top: 34px; bottom: 34px; width: 4px; transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--sun) 0 14px, transparent 14px 28px);
}
.road-step { position: relative; z-index: 1; display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; }
.road-node {
  width: 72px; height: 72px; border-radius: 50%; background: #fff; border: 4px solid var(--green);
  display: grid; place-items: center; overflow: hidden; box-shadow: 0 8px 20px rgba(11,51,33,.18);
}
.road-node img { width: 100%; height: 100%; object-fit: cover; }
.road-card {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center;
  background: #fff; border-radius: 20px; padding: 14px 18px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.road-num { grid-column: 1 / -1; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.road-card h3 { margin: 2px 0 2px; font-size: 18px; font-weight: 900; }
.road-card p { grid-column: 1; margin: 0; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.45; }
.road-tag {
  grid-column: 2; grid-row: 2 / span 2; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap;
  border-radius: 999px; padding: 6px 11px; font-size: 12.5px; font-weight: 900;
}
.road-tag svg { width: 14px; height: 14px; }
.road-tag.free { background: var(--mint); color: var(--green); }
.road-tag.lock { background: #fff1d1; color: #8a5a00; }
.road-step.exam .road-node { border-color: var(--sun); }
.road-step.exam .road-card { background: #fffaf0; border-color: #f6e2b0; }

/* atouts */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature-list { display: grid; gap: 14px; }
.feature {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px;
}
.feature .ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--mint); color: var(--green); }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin: 2px 0 4px; font-size: 17px; font-weight: 900; }
.feature p { margin: 0; color: var(--muted); line-height: 1.5; font-weight: 600; font-size: 15px; }

/* prix */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price {
  position: relative; background: #fff; border-radius: var(--radius-lg); padding: 28px 24px; border: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow);
}
.price.featured { border-color: var(--green); background: linear-gradient(180deg, #f2fbf5, #fff 40%); }
.price .ribbon {
  position: absolute; top: -13px; left: 24px; background: var(--sun); color: var(--sun-ink);
  font-weight: 900; font-size: 12px; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; text-transform: uppercase;
}
.price h3 { margin: 0; font-size: 18px; font-weight: 900; color: var(--body); }
.price .amount { font-size: 40px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.price .amount small { font-size: 16px; color: var(--muted); font-weight: 800; }
.price .per { color: var(--muted); font-weight: 700; font-size: 14px; }
.price ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.price li { display: flex; gap: 9px; align-items: start; font-weight: 700; color: var(--body); font-size: 15px; }
.price li svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }
.pricing-note { text-align: center; color: var(--muted); font-weight: 700; margin-top: 20px; }
.pay-logos { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pay-logos span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 13.5px; color: var(--body); }

/* étapes abonnement */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how article { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.how .n { font-size: 34px; font-weight: 900; color: var(--mint-2); line-height: 1; }
.how h3 { margin: 10px 0 6px; font-size: 17px; font-weight: 900; }
.how p { margin: 0; color: var(--muted); font-weight: 600; line-height: 1.5; font-size: 15px; }

/* faq */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border-radius: 18px; border: 1px solid var(--line); padding: 4px 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 900; font-size: 17px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--green); font-weight: 800; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--body); line-height: 1.6; font-weight: 600; }

/* appel final */
.cta {
  position: relative; overflow: visible; border-radius: 32px;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(255, 201, 77, .22), transparent 55%),
    linear-gradient(155deg, var(--green) 0%, var(--green-deep) 72%);
  color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 12px 24px; align-items: center; min-height: 420px; padding: 40px 28px 40px 48px;
  box-shadow: var(--shadow-lift);
}
.cta-copy { min-width: 0; container-type: inline-size; }
.cta h2 {
  color: #fff; margin: 0 0 10px; font-weight: 900; line-height: 1.08;
  font-size: clamp(18px, 5.4cqi, 36px); letter-spacing: -.03em; white-space: nowrap;
}
.cta h2 em { font-style: normal; color: var(--sun); }
.cta p { margin: 0; color: rgba(255, 255, 255, .86); font-weight: 700; font-size: 18px; line-height: 1.45; }
.cta-qrs { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; align-items: flex-start; }
.qr-card {
  display: grid; justify-items: center; gap: 10px; width: 156px; padding: 12px 10px 10px;
  background: var(--sun); border-radius: 18px; text-decoration: none; color: var(--sun-ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.qr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}
.qr-card__code { width: 118px; height: 118px; display: block; border-radius: 8px; }
.qr-card__badge {
  display: block; width: auto; max-width: 100%; height: 40px;
  object-fit: contain; object-position: center;
}
.qr-card__badge--play { height: 44px; width: auto; max-width: 138px; }
.qr-card__badge--apple { height: 40px; width: auto; max-width: 132px; }
.cta-phones {
  display: flex; align-items: center; justify-content: flex-end;
  align-self: stretch; min-height: 0; margin: 0 -4px 0 0;
}
.cta-phones picture { display: block; line-height: 0; }
.cta-phones-img {
  display: block; width: 100%; max-width: min(720px, 50vw); height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 26px 38px rgba(0, 0, 0, .28))
    drop-shadow(0 10px 18px rgba(0, 0, 0, .14));
  transform: translateZ(0);
}

/* pied de page */
.site-footer { background: var(--green-ink); color: rgba(255,255,255,.78); margin-top: 70px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; padding: 46px 0 26px; }
.logo-chip { display: inline-flex; background: #fff; border-radius: 14px; padding: 7px 12px; }
.site-footer img.logo { height: 30px; }
.site-footer p { line-height: 1.6; font-weight: 600; margin: 14px 0 0; max-width: 34em; }
.site-footer h4 { color: #fff; margin: 4px 0 12px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.site-footer nav { display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--sun); }
.site-footer .legal-line { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 28px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* pages légales */
.legal-hero { background: linear-gradient(160deg, var(--green), var(--green-deep)); color: #fff; padding: 54px 0 70px; }
.legal-hero h1 { color: #fff; margin: 10px 0 8px; font-size: clamp(30px, 4vw, 46px); font-weight: 900; }
.legal-hero p { margin: 0; color: rgba(255,255,255,.8); font-weight: 700; }
.legal-sheet {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line);
  margin-top: -40px; padding: 40px clamp(22px, 5vw, 64px);
}
.legal-body, .legal-intro, .legal-section { max-width: 74ch; line-height: 1.7; font-size: 17px; color: var(--body); font-weight: 600; }
.legal-intro p { margin: 0 0 12px; }
.legal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.legal-meta span { background: var(--mint); color: var(--green); font-weight: 800; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; }
.legal-cross { margin: 0 0 22px; }
.legal-cross a, .legal-section a, .legal-intro a, .legal-toc a { color: var(--blue); font-weight: 800; }
.legal-toc { background: var(--sand); border-radius: 18px; padding: 18px 20px 8px; margin: 8px 0 8px; }
.legal-toc p { margin: 0 0 8px; font-weight: 900; color: var(--green-deep); }
.legal-toc ul { margin: 0; padding: 0 0 8px; columns: 2; gap: 28px; list-style: none; }
.legal-toc li { break-inside: avoid; margin: 0 0 8px; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-section { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 12px; font-size: 22px; color: var(--green-deep); letter-spacing: -0.02em; }
.legal-section p { margin: 0 0 12px; }
.legal-section ul { margin: 0 0 12px; padding-left: 1.15em; }
.legal-section li { margin: 0 0 8px; }
.legal-section li::marker { color: var(--green); }
@media (max-width: 760px) {
  .legal-toc ul { columns: 1; }
  .legal-sheet { padding: 28px 18px; }
}

/* ============================================================ CONNEXION */

.guest-body {
  min-height: 100vh; margin: 0; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--sand);
}
.guest-art {
  position: relative; overflow: hidden; color: #fff; padding: 48px;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(255, 201, 77, .3), transparent 60%),
    linear-gradient(160deg, var(--green), var(--green-deep));
  display: flex; flex-direction: column; justify-content: space-between;
}
.guest-art h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); font-weight: 900; line-height: 1.15; margin: 0 0 12px; max-width: 14em; }
.guest-art p { color: rgba(255,255,255,.82); font-weight: 600; font-size: 17px; max-width: 30em; margin: 0; }
.guest-art .logo { height: 34px; }
.guest-art .mascot { width: min(300px, 70%); align-self: flex-end; margin: 0 -10px -48px 0; filter: drop-shadow(0 20px 30px rgba(0,0,0,.3)); }
.guest-main { display: grid; place-items: center; padding: 32px 24px; }
.guest-card { width: min(460px, 100%); }
.guest-card.wide { width: min(640px, 100%); }
.guest-card h1 { margin: 0 0 6px; font-size: 32px; font-weight: 900; }
.guest-card .lead { color: var(--muted); font-weight: 600; margin: 0 0 24px; line-height: 1.55; }
.guest-card .back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-weight: 800; text-decoration: none; margin-bottom: 30px; font-size: 14.5px; }
.guest-card .back svg { width: 16px; height: 16px; }
.guest-card .back:hover { color: var(--green); }

/* ============================================================ FORMULAIRES */

.stack { display: grid; gap: 14px; }
.grid-form { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.grid-form > * { min-width: 0; }
.grid-form .full { grid-column: 1 / -1; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 800; color: var(--body); }
label .hint { font-weight: 600; color: var(--muted); font-size: 12.5px; }
input, select, textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px;
  background: #fff; font-weight: 700; font-size: 15px; color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
input::placeholder, textarea::placeholder { color: #9aa8b6; font-weight: 600; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(20, 112, 74, .12); }
textarea { resize: vertical; line-height: 1.55; }
fieldset { border: 2px solid var(--line); border-radius: 18px; display: grid; gap: 12px; padding: 16px 18px 18px; margin: 0; }
legend { padding: 0 8px; font-weight: 900; color: var(--green); }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 70px; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); font-size: 13px; }

/* ============================================================ ADMIN */

.admin-body { background: var(--canvas); }
.shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 24px;
}
.sidebar .brand-sub { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.62); margin: 0; }
.side-nav { display: grid; gap: 4px; }
.side-nav .group { margin: 14px 10px 6px; font-size: 11.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.side-nav a {
  display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 11px 12px; border-radius: 14px;
  color: rgba(255,255,255,.84); font-weight: 750; font-size: 15px;
}
.side-nav a svg { width: 20px; height: 20px; opacity: .9; }
.side-nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.side-nav a.is-current { background: #fff; color: var(--green); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.08); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; font-weight: 900; flex: none; overflow: hidden; }
.avatar.has-logo { background: #fff; padding: 3px; }
.avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-frame { width: 96px; height: 96px; border-radius: 22px; border: 1px solid var(--line); background: var(--mint); color: var(--green); display: grid; place-items: center; overflow: hidden; flex: none; font-size: 28px; font-weight: 900; }
.logo-frame img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.account-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.account-logo { width: 112px; height: 112px; border-radius: 28px; font-size: 34px; }
.account-id { flex: 1; min-width: 220px; }
.account-name { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.account h2 { margin: 0; font-size: 28px; font-weight: 900; }
.account-city { margin: 4px 0 12px; color: var(--muted); font-weight: 800; }
.account-logo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-logo-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.file-pick { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--muted); font-weight: 800; font-size: 14px; }
.file-pick input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.file-pick .button { pointer-events: none; }
.me strong { display: block; font-size: 14px; }
.me small { display: block; font-size: 12px; color: rgba(255,255,255,.62); font-weight: 700; }
.side-foot form button, .side-foot a.site-link {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: 9px 12px; cursor: pointer; font-weight: 800; text-decoration: none; font-size: 14px;
}
.side-foot form button:hover, .side-foot a.site-link:hover { background: rgba(255,255,255,.1); }
.side-foot svg { width: 16px; height: 16px; }

.admin-main { padding: 28px 34px 48px; min-width: 0; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.topbar h1 { margin: 0; font-size: 30px; font-weight: 900; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-weight: 700; }
.mobile-bar { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat {
  position: relative;
  background: #fff; border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr; gap: 6px; align-items: center;
}
.stat .label { color: var(--muted); font-weight: 800; font-size: 13.5px; padding-right: 58px; }
.stat .value { font-size: 30px; font-weight: 900; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.stat .ico { position: absolute; top: 16px; right: 16px; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; }
.stat .ico svg { width: 24px; height: 24px; }
.stat.green .ico { background: var(--mint); color: var(--green); }
.stat.sun .ico { background: #fff4d6; color: #b07800; }
.stat.blue .ico { background: #e7efff; color: var(--blue); }
.stat.violet .ico { background: #efeaff; color: #6d28d9; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel h2 { margin: 0; font-size: 19px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.panel h2 .ico { width: 34px; height: 34px; border-radius: 11px; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.panel h2 .ico svg { width: 18px; height: 18px; }
.panel .lead { color: var(--muted); font-weight: 600; line-height: 1.55; margin: 0 0 16px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cols > .panel { margin-bottom: 0; }
.cols + .panel, .cols + .cols { margin-top: 20px; }

.table-wrap { overflow-x: auto; margin: 0 -22px -22px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 22px; border-top: 1px solid var(--line); vertical-align: middle; font-size: 14.5px; font-weight: 650; }
th { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; background: #fafcfb; border-top: 1px solid var(--line); }
tbody tr:hover td { background: #fafcfb; }
td .who { display: flex; align-items: center; gap: 10px; }
td .who .avatar { width: 34px; height: 34px; font-size: 13px; background: var(--mint); color: var(--green); }
td .who strong { display: block; font-weight: 800; }
td .who small { color: var(--muted); font-weight: 700; }
td.actions { text-align: right; white-space: nowrap; }
td form { margin: 0; display: inline; }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 900; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: #e6f6ec; color: #13803f; }
.pill.off { background: #f1f4f7; color: var(--muted); }
.pill.warn { background: #fff4e0; color: #b45309; }
.pill.err { background: #fdecec; color: #b42323; }
.tag { display: inline-block; border-radius: 8px; padding: 3px 8px; font-size: 12.5px; font-weight: 900; background: var(--mint); color: var(--green); margin: 2px 4px 2px 0; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 34px 16px; color: var(--muted); font-weight: 700; }
.empty img { width: 110px; margin: 0 auto 12px; }
.endpoints { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.endpoints li { display: flex; gap: 10px; align-items: center; background: #fafcfb; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 14px; font-weight: 700; overflow-x: auto; }
.method { font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 6px; color: #fff; background: var(--green); }
.method.get { background: var(--blue); }
.json { background: #0f1f17; color: #d9f2e3; padding: 16px; border-radius: 16px; overflow: auto; font-size: 13px; line-height: 1.5; margin: 14px 0 0; }
.check-result { display: grid; gap: 8px; margin-top: 14px; }
.check-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fafcfb; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-weight: 800; }
.check-row small { color: var(--muted); font-weight: 700; display: block; }

.doc { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-top: 12px; }
.doc header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.doc h3 { margin: 10px 0 6px; font-size: 17px; font-weight: 900; }
.doc details summary { cursor: pointer; color: var(--green); font-weight: 800; font-size: 14px; margin-top: 4px; }
.doc .body { color: var(--body); font-weight: 600; line-height: 1.6; margin-top: 10px; white-space: pre-line; }
.doc.current { border-color: var(--mint-2); background: #fbfefc; }

/* Admin — textes légaux */
.legal-admin { display: grid; gap: 20px; }
.legal-doc-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.legal-doc-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  min-height: 108px; padding: 18px 20px; border-radius: var(--radius); border: 2px solid var(--line);
  text-decoration: none; color: inherit; background: linear-gradient(128deg, var(--tint) 0%, #fff 68%);
  box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.legal-doc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--tone) 40%, var(--line)); }
.legal-doc-card.is-on {
  border-color: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 18%, transparent), var(--shadow-lift);
}
.legal-doc-card.privacy { --tone: var(--green); --tint: var(--mint); }
.legal-doc-card.terms { --tone: #1e5bb8; --tint: #eef4fc; }
.legal-doc-icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--tone); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.legal-doc-icon svg { width: 26px; height: 26px; }
.legal-doc-copy { min-width: 0; }
.legal-doc-copy strong { display: block; font-size: 18px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.legal-doc-copy span { display: block; margin-top: 4px; color: var(--body); font-weight: 700; font-size: 14px; }
.legal-doc-copy em {
  display: inline-block; margin-top: 10px; font-style: normal; font-size: 12.5px; font-weight: 800;
  color: var(--tone); background: color-mix(in srgb, var(--tint) 70%, #fff); padding: 4px 10px; border-radius: 999px;
}
.legal-doc-go {
  width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.9);
  border: 1px solid var(--line); color: var(--tone); display: grid; place-items: center;
}
.legal-doc-go svg { width: 18px; height: 18px; }

.legal-workspace {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 18px; align-items: start;
}
.legal-editor {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.legal-editor-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--sand) 0%, #fff 100%);
}
.legal-editor-kicker {
  margin: 0 0 2px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.legal-editor-title { margin: 0; font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.legal-editor-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.legal-editor-notice { margin: 12px 18px 0; padding: 10px 12px; font-size: 13.5px; }
.legal-editor-notice span { line-height: 1.45; }
.legal-editor-fields { padding: 14px 18px 16px; }
.legal-textarea-wrap {
  margin-top: 6px; padding: 10px 12px; border-radius: 14px;
  background: var(--sand); border: 1px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(11, 51, 33, .04);
}
.legal-textarea {
  width: 100%; min-height: 220px; max-height: 50vh; border: 0; background: transparent; resize: vertical;
  font-size: 14.5px; line-height: 1.6; font-weight: 600; color: var(--ink);
}
.legal-textarea:focus { outline: none; }
.legal-body-label { display: block; font-weight: 800; color: var(--ink); font-size: 14px; }
.legal-format-hint { margin: 8px 0 0; font-size: 12.5px; }
.legal-editor-foot {
  padding: 10px 18px 14px; border-top: 1px solid var(--line); background: var(--canvas);
}
.legal-preview { margin: 0; }
.legal-preview summary {
  cursor: pointer; font-weight: 800; font-size: 13px; color: var(--green-deep); list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  user-select: none;
}
.legal-preview summary svg { width: 16px; height: 16px; flex-shrink: 0; }
.legal-preview summary::-webkit-details-marker { display: none; }
.legal-preview[open] summary { margin-bottom: 8px; border-color: var(--mint-2); background: var(--mint); }
.legal-preview-scroll {
  max-height: min(220px, 32vh); overflow: auto; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
}
.legal-preview-inner {
  padding: 12px 14px; font-size: 13px; line-height: 1.55; color: var(--body); font-weight: 600;
}
.legal-preview-inner .legal-intro,
.legal-preview-inner .legal-section { max-width: none; font-size: inherit; line-height: inherit; }
.legal-preview-inner .legal-section { margin-top: 12px; padding-top: 10px; }
.legal-preview-inner .legal-section h2 { font-size: 14px; margin: 0 0 6px; }
.legal-preview-inner .legal-intro p,
.legal-preview-inner .legal-section p { margin: 0 0 8px; font-size: inherit; }
.legal-preview-inner .legal-section ul { margin: 0 0 8px; padding-left: 1.1em; font-size: inherit; }

.legal-side { margin-bottom: 0; position: sticky; top: 88px; }
.legal-version-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal-version-item {
  display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  text-decoration: none; color: inherit; background: #fff; transition: border-color .15s, background .15s;
}
.legal-version-item:hover { border-color: var(--mint-2); background: #fbfefc; }
.legal-version-item.is-live { border-color: var(--mint-2); background: linear-gradient(135deg, #fbfefc, #fff); }
.legal-version-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.legal-version-top strong { font-size: 15px; font-weight: 900; }
.legal-version-date { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.legal-version-title { font-size: 13.5px; font-weight: 700; color: var(--body); line-height: 1.35; }

.legal-empty {
  display: flex; align-items: center; gap: 22px; padding: 28px 24px !important;
  background: linear-gradient(135deg, var(--mint) 0%, #fff 55%);
}
.legal-empty strong { display: block; font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.legal-empty p { margin: 0; color: var(--body); font-weight: 700; line-height: 1.5; max-width: 42ch; }
.legal-history-full { margin-bottom: 0; }
.legal-history-table td { font-weight: 700; }

@media (max-width: 960px) {
  .legal-workspace { grid-template-columns: 1fr; }
  .legal-side { position: static; }
}
@media (max-width: 720px) {
  .legal-doc-grid { grid-template-columns: 1fr; }
  .legal-editor-bar { flex-direction: column; }
  .legal-editor-bar-actions { width: 100%; }
  .legal-empty { flex-direction: column; text-align: center; }
}

.release { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.release .v { font-size: 46px; font-weight: 900; line-height: 1; color: var(--sun); }
.release p { margin: 4px 0 0; color: rgba(255,255,255,.8); font-weight: 700; }
.release strong { font-size: 18px; }

.formation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.formation-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.formation-card .art { background: var(--mint); height: 110px; display: grid; place-items: center; padding: 10px; }
.formation-card .art img { max-height: 100%; object-fit: contain; }
.formation-card .body { padding: 12px 14px 14px; }
.formation-card strong { display: block; font-size: 16px; font-weight: 900; }
.formation-card small { color: var(--muted); font-weight: 700; }

.content-formation-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.content-permit-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 14px; min-height: 118px; padding: 16px 18px;
  border-radius: 22px; border: 2px solid var(--line); text-decoration: none; color: inherit;
  background: linear-gradient(128deg, var(--tint) 0%, #fff 62%);
  box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  overflow: hidden;
}
.content-permit-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--tone) 35%, var(--line));
}
.content-permit-card.b { --tone: var(--green); --tint: var(--mint); }
.content-permit-card.a { --tone: #e2531f; --tint: #fff1e6; }
.content-permit-card.c { --tone: #1d4f91; --tint: #eef2f6; }
.content-permit-card.d { --tone: #6c3fd1; --tint: #f1edff; }
.content-permit-letter {
  width: 52px; height: 52px; border-radius: 16px; background: var(--tone); color: #fff;
  font-size: 26px; font-weight: 900; display: grid; place-items: center; flex-shrink: 0;
}
.content-permit-copy { min-width: 0; }
.content-permit-copy strong { display: block; font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.content-permit-copy span { display: block; margin-top: 4px; color: var(--muted); font-weight: 700; font-size: 14px; }
.content-permit-vehicle {
  width: min(128px, 34vw); max-height: 72px; object-fit: contain; justify-self: end;
  mix-blend-mode: multiply; pointer-events: none;
}
.content-permit-go {
  width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.85);
  border: 1px solid var(--line); color: var(--tone); display: grid; place-items: center;
}
.content-permit-go svg { width: 18px; height: 18px; }
.content-kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.content-kind-card {
  display: grid; gap: 6px; padding: 18px 16px; border-radius: 18px; border: 1px solid var(--line);
  background: #fff; text-decoration: none; color: inherit; box-shadow: var(--shadow);
}
.content-kind-card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.content-kind-card .ico svg { width: 20px; height: 20px; }
.content-kind-card strong { font-size: 16px; font-weight: 900; }
.content-kind-card small { color: var(--muted); font-weight: 700; }
.content-thumb { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--mint); vertical-align: middle; margin-right: 8px; }
.content-preview { margin: 0; max-width: 280px; }
.content-preview img { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--mint); }
.answer-edit { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-wrap { overflow-x: auto; }

.pricing-permit-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px;
}
.pricing-permit-tab {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px;
  border: 2px solid var(--line); background: #fff; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.pricing-permit-tab:hover { transform: translateY(-1px); }
.pricing-permit-tab.is-on { border-color: var(--tone); box-shadow: 0 12px 28px rgba(11, 51, 33, .12); }
.pricing-permit-tab .letter {
  width: 44px; height: 44px; border-radius: 14px; background: var(--tone); color: #fff;
  font-weight: 900; font-size: 22px; display: grid; place-items: center; flex-shrink: 0;
}
.pricing-permit-tab.b { --tone: var(--green); }
.pricing-permit-tab.a { --tone: #e2531f; }
.pricing-permit-tab.c { --tone: #1d4f91; }
.pricing-permit-tab.d { --tone: #6c3fd1; }
.pricing-permit-tab strong { display: block; font-size: 16px; }
.pricing-permit-tab small { color: var(--muted); font-weight: 700; font-size: 13px; }

.pricing-panel .panel-head { align-items: flex-start; }
.pricing-permit-art { width: 120px; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.pricing-plan-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end;
}
.pricing-plan-card {
  background: linear-gradient(160deg, var(--mint) 0%, #fff 70%); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; display: grid; gap: 8px;
}
.pricing-plan-card.muted { background: #fafcfb; }
.pricing-plan-name { font-weight: 900; font-size: 17px; }
.pricing-plan-input input { font-size: 22px; font-weight: 900; }
.pricing-plan-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.pricing-defaults { margin-bottom: 20px; }
.pricing-defaults summary { cursor: pointer; font-weight: 800; padding: 4px 0; }
.pricing-checks {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
}
.pricing-checks span { font-weight: 900; margin-right: 8px; }
.pricing-checks label { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.promo-code { font-size: 15px; font-weight: 900; letter-spacing: .06em; }

.price-edit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.price-edit label { background: #fafcfb; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }

.notice { display: flex; gap: 12px; align-items: start; background: #fff8e6; border: 1px solid #f6e0a8; color: #6b4a00; border-radius: 16px; padding: 13px 16px; font-weight: 700; line-height: 1.5; margin-bottom: 16px; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.notice.info { background: #eef5ff; border-color: #cfe0fb; color: #1e3f73; }

.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-switch label { flex-direction: row; display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.mode-switch input { width: auto; }
.mode-switch label:has(input:checked) { border-color: var(--green-2); background: var(--mint); }

/* ============================================================ RESPONSIVE */

@media (max-width: 1080px) {
  .garage { grid-template-columns: 1fr; }
  .garage-tabs { grid-template-columns: repeat(4, 1fr); }
  .garage-tab { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 12px 8px; }
  .garage-tab svg { display: none; }
  .how { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: 1fr; }
  .cols > .panel { margin-bottom: 20px; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: 110px; }
  .hero-stack { justify-content: center; min-height: 0; }
  .features { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > .split-art, .split.reverse > .shot-pair { order: 2; }
  .success-story-bg { background-position: 70% center; opacity: 0.32; }
  .success-story-shade {
    background: linear-gradient(180deg, rgba(10, 68, 41, .93) 0%, rgba(10, 68, 41, .88) 55%, rgba(10, 68, 41, .75) 100%);
  }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .cta { grid-template-columns: 1fr; min-height: 0; padding: 36px 26px 28px; }
  .cta h2 { white-space: normal; font-size: clamp(26px, 7vw, 34px); }
  .cta-phones { justify-content: center; margin: 12px 0 0; }
  .cta-phones-img { max-width: min(100%, 520px); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
  .menu-toggle {
    display: inline-flex; border: 2px solid var(--line); background: #fff; border-radius: 12px;
    width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .site-nav {
    display: none; position: absolute; left: 16px; right: 16px; top: 70px; flex-direction: column; align-items: stretch;
    background: #fff; border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lift);
  }
  .site-nav.open { display: flex; }
  .site-nav .button { margin: 6px 0 0; }
  .guest-body { grid-template-columns: 1fr; }
  .guest-art { display: none; }

  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--green); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 30;
  }
  .mobile-bar img { height: 22px; }
  .mobile-bar button { background: rgba(255,255,255,.14); border: 0; color: #fff; border-radius: 12px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; }
  .mobile-bar svg { width: 22px; height: 22px; }
  .admin-main { padding: 20px 16px 40px; }
  .grid-form, .grid-3, .price-edit { grid-template-columns: 1fr; }
  .content-formation-grid { grid-template-columns: 1fr; }
  .pricing-plan-grid { grid-template-columns: 1fr; }
  .pricing-permit-tabs { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .how { grid-template-columns: 1fr; }
  .garage-tabs { grid-template-columns: repeat(2, 1fr); }
  .garage-panel { grid-template-columns: 1fr; padding: 26px 22px 18px; min-height: 0; }
  .garage-panel .vehicle { width: 100%; margin: 6px 0 0; justify-self: center; }
  .garage-panel .watermark { font-size: 240px; top: -40px; }
  .road-card { grid-template-columns: 1fr; }
  .road-tag { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .road-step { grid-template-columns: 60px 1fr; gap: 12px; }
  .road-node { width: 60px; height: 60px; }
  .road::before, .road::after { left: 30px; }
  .stats { grid-template-columns: 1fr; }
  .hero .lead { font-size: 17px; }
  .stack-card.big { width: 160px; border-radius: 22px; }
  .stack-card.mid { width: 130px; margin-left: -32px; border-radius: 18px; }
  .stack-card.small { width: 104px; margin-left: -26px; border-radius: 16px; }
  .stack-card figcaption { font-size: 14px; padding: 12px 6px; top: 10px; right: 7px; }
  .stack-card.mid figcaption { font-size: 12px; padding: 10px 5px; right: 6px; }
  .stack-card.small figcaption { font-size: 10px; padding: 8px 4px; right: 5px; }
  .split .how { grid-template-columns: 1fr; }
  .shot { width: 210px; }
  .shot-pair .shot { width: 165px; }
  .shot-pair .shot + .shot { margin: 40px 0 0 -50px; }
  .section { padding: 52px 0; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 25px; }
  .table-wrap { margin: 0 -22px -22px; }
}

.endpoints li svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.notice code { background: rgba(255,255,255,.7); }

/* ============================================================ AUTO-ÉCOLES */
.guest-alt { margin: 20px 0 0; text-align: center; font-weight: 700; color: var(--muted); }
.guest-alt a { color: var(--green); font-weight: 900; }
.guest-note {
  display: flex; gap: 10px; align-items: center; margin: 18px 0 0; padding: 12px 14px; border-radius: 14px;
  background: var(--mint); color: var(--green-ink); font-weight: 700; font-size: 14px;
}
.guest-note svg { width: 18px; height: 18px; flex: none; color: var(--green); }
.licence-list { display: grid; gap: 12px; }
.licence-list.grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.licence { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 8px; background: #fff; }
.licence header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.licence code { font-weight: 900; font-size: 14px; letter-spacing: .04em; color: var(--green-ink); }
.licence strong { font-size: 15px; }
.licence small { color: var(--muted); font-weight: 700; }
.licence.revoked { opacity: .6; }
.meter { height: 10px; border-radius: 999px; background: var(--mint); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-2), var(--green)); }
.access-cell .pill, .licence-list + .pill { margin: 2px 0; }
.access-src { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
td.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.seat-form { display: flex; gap: 6px; align-items: center; }
.seat-form select { width: auto; min-width: 150px; padding: 7px 10px; font-size: 13.5px; }
.code-input { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 800; }
.facts dd { margin: 0; font-weight: 800; }

/* accueil : bandeau auto-écoles */
.schools-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 32px; box-shadow: var(--shadow);
}
.schools-band .badge { width: 72px; height: 72px; border-radius: 22px; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.schools-band .badge svg { width: 36px; height: 36px; }
.schools-band h2 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; }
.schools-band p { margin: 0; color: var(--body); font-weight: 600; line-height: 1.55; }
.schools-band .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(15, 31, 23, .48); cursor: pointer; }
.modal-card { position: relative; z-index: 1; width: min(980px, 100%); max-height: calc(100vh - 48px); overflow: auto; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.filters a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 13.5px; color: var(--body); background: #fff; border: 1px solid var(--line); }
.filters a span { color: var(--muted); font-size: 12px; }
.filters a.is-current { background: var(--green); color: #fff; border-color: var(--green); }
.filters a.is-current span { color: rgba(255,255,255,.75); }
.search-form { display: flex; gap: 8px; align-items: center; }
.search-form input { width: 220px; padding: 8px 12px; }
.panel-head { flex-wrap: wrap; }
a.who { color: inherit; text-decoration: none; }
a.who:hover strong { text-decoration: underline; }
.lead a { color: var(--green); font-weight: 800; }
.meter-label { display: block; margin-top: 4px; color: var(--muted); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.pill.blue { background: #e7efff; color: var(--blue); }
.pill.sun { background: #fff4d6; color: #b07800; }
.crumb { margin: 0 0 14px; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 800; text-decoration: none; }
.crumb a:hover { color: var(--green); }
.crumb svg { width: 16px; height: 16px; }
.dossier-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.dossier-head .who { align-items: flex-start; }
.dossier-head .who strong, .dossier-head .who small { display: block; }
.dossier-head .who strong { font-size: 22px; }
.dossier-head .who small { margin: 2px 0 8px; }
.dossier-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.dossier-meta span { background: #fafcfb; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 800; color: var(--body); }
.avatar.big { width: 64px; height: 64px; font-size: 22px; }
.avatar svg { width: 18px; height: 18px; }
.quiet { color: var(--muted); font-weight: 800; font-size: 13px; white-space: nowrap; }
.course-meta { margin-bottom: 16px; }
.progress-list { display: grid; gap: 14px; }
.progress-list .top { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.duration { display: flex; align-items: center; gap: 8px; }
.duration input { width: 72px; text-align: center; }
.duration > span { font-weight: 800; color: var(--muted); }
.checkline { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.checkline input { width: auto; }
.agenda { display: grid; gap: 18px; }
.agenda h3 { margin: 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.agenda-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.agenda-item time { font-weight: 900; color: var(--green); }
.agenda-item strong { display: block; }
.agenda-item small { display: block; color: var(--muted); font-weight: 700; }
.agenda-item a { color: inherit; }
.agenda-item.late time { color: #b45309; }
.agenda-item .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.stats.compact { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stats.compact .stat { width: min(320px, 100%); flex: none; }
@media (max-width: 800px) {
  .agenda-item { grid-template-columns: 1fr; }
  .search-form, .search-form input { width: 100%; }
}
@media (max-width: 900px) {
  .schools-band { grid-template-columns: 1fr; padding: 24px 22px; }
}

/* ============================================================ SYNCHRO APP */
.tag.green { background: var(--green); color: #fff; }
.tag.gold { background: #fff3cc; color: #8a5a00; }
small.block { display: block; margin-top: 2px; }
.who a { color: inherit; text-decoration: none; }
.who a:hover { text-decoration: underline; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.facts div { background: #f6f9f7; border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: 12.5px; color: var(--muted); font-weight: 800; }
.facts dd { margin: 4px 0 0; font-weight: 900; overflow-wrap: anywhere; }
.bar { height: 8px; border-radius: 999px; background: #e7efe9; overflow: hidden; min-width: 90px; }
.bar span { display: block; height: 100%; background: var(--green); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef2ef; }
.timeline li:last-child { border-bottom: 0; }
.timeline small { color: var(--muted); white-space: nowrap; }
.readiness { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.readiness li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.readiness li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: #f1f4f7; border: 2px solid #cfd8d3; }
.readiness li.ok::before { background: #13803f; border-color: #13803f; box-shadow: inset 0 0 0 3px #e6f6ec; }

/* ============================================================ AUTO-ÉCOLE : SUIVI */
.today-band {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 26px 28px; margin-bottom: 20px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.today-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; border: 36px solid rgba(255, 255, 255, .06); pointer-events: none;
}
.today-band h2 { color: #fff; margin: 6px 0 6px; font-size: 26px; font-weight: 900; }
.today-band p { margin: 0; color: rgba(255, 255, 255, .78); font-weight: 700; }
.today-date { display: inline-block; background: var(--sun); color: var(--sun-ink); font-weight: 900; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; }
.today-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
a.stat { text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.board-cols { grid-template-columns: 1.15fr 1fr; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.todo-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--canvas); border: 1px solid var(--line); }
.todo-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff4d6; color: #b07800; }
.todo-ico svg { width: 20px; height: 20px; }
.todo-item.ok .todo-ico { background: var(--mint); color: var(--green); }
.todo-item.err .todo-ico { background: #fdecec; color: var(--red); }
.todo-text { text-decoration: none; min-width: 0; display: grid; gap: 2px; }
.todo-text strong { font-weight: 900; color: var(--ink); }
.todo-text span { color: var(--body); font-weight: 700; font-size: 14px; }
.todo-text:hover strong { text-decoration: underline; }
.quiet { color: var(--muted); font-weight: 700; margin: 0; }

.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stage { background: var(--canvas); border-radius: 18px; padding: 12px; display: grid; gap: 8px; align-content: start; border-top: 4px solid var(--line); }
.stage-inscrit { border-top-color: var(--blue); }
.stage-en_formation { border-top-color: var(--green-2); }
.stage-pret_examen { border-top-color: var(--sun); }
.stage-reussi { border-top-color: var(--ok); }
.stage-head { text-decoration: none; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 4px 4px 8px; }
.stage-head strong { font-weight: 900; }
.stage-head small { grid-column: 1 / -1; color: var(--muted); font-weight: 700; font-size: 12.5px; }
.stage-head .count { background: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 900; font-size: 13px; }
.stage-card { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 10px; text-decoration: none; transition: box-shadow .12s ease, transform .12s ease; }
.stage-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.stage-card .avatar { width: 34px; height: 34px; font-size: 13px; }
.stage-info { min-width: 0; display: grid; }
.stage-info strong { font-weight: 900; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-info small { color: var(--muted); font-weight: 700; font-size: 12px; }
.stage-more { text-align: center; font-weight: 800; color: var(--green); text-decoration: none; font-size: 13px; padding: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px #e6f6ec; }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px #fff4e0; }

@media (max-width: 1100px) {
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-cols { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .today-band { padding: 20px; }
  .today-band h2 { font-size: 21px; }
  .today-actions .button { flex: 1 1 auto; }
  .pipeline { grid-template-columns: 1fr; }
  .todo-item { grid-template-columns: 36px 1fr; }
  .todo-item .button { grid-column: 2; justify-self: start; }
}
.flag { display: inline-block; font-weight: 800; font-size: 13px; line-height: 1.35; padding: 4px 9px; border-radius: 10px; background: #fff4e0; color: #9a4b00; max-width: 260px; }
.flag.ok { background: #e6f6ec; color: #13803f; }
.flag.err { background: #fdecec; color: #b42323; }
.flag-cell small { display: block; margin-top: 4px; }
.filters a.filter-alert span { background: #fff4e0; color: #9a4b00; }
.filters a.filter-ready span { background: #e6f6ec; color: #13803f; }
.dossier-contact { display: flex; gap: 8px; flex-wrap: wrap; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; counter-reset: step; }
.journey li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 0 4px; }
.journey li::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 4px; border-radius: 4px; background: var(--line); }
.journey li:first-child::before { display: none; }
.journey li.done::before, .journey li.doing::before { background: var(--green-2); }
.step-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: #fff; border: 3px solid var(--line); color: var(--muted); position: relative; z-index: 1; }
.step-dot svg { width: 18px; height: 18px; }
.journey li.done .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.journey li.doing .step-dot { border-color: var(--sun); color: #8a5a00; background: #fff8e6; }
.journey strong { font-weight: 900; font-size: 13.5px; }
.journey small { color: var(--muted); font-weight: 700; font-size: 12px; line-height: 1.35; }
.dossier-flags { margin-top: 18px; }
@media (max-width: 760px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey li { grid-template-columns: 38px 1fr; justify-items: start; text-align: left; column-gap: 12px; padding: 6px 0; }
  .journey li .step-dot { grid-row: span 2; }
  .journey li::before { display: none; }
}
.student-list { display: grid; gap: 10px; container-type: inline-size; }
.student-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; transition: box-shadow .12s ease, transform .12s ease, border-color .12s ease; }
a.student-row:hover { box-shadow: var(--shadow); border-color: var(--mint-2); transform: translateY(-1px); }
.student-head { background: transparent; border: 0; padding: 0 16px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.student-row .who > span:last-child { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.student-row .cell { display: grid; gap: 5px; justify-items: start; min-width: 0; }
.student-row .cell .meter { width: 100%; }
.cell-label { display: none; color: var(--muted); font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
@container (max-width: 780px) {
  .student-head { display: none; }
  .student-row { grid-template-columns: 1fr 1fr; }
  .student-row .who { grid-column: 1 / -1; }
  .cell-label { display: block; }
}
@container (max-width: 460px) {
  .student-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 14px; }
  .stat .label { padding-right: 0; font-size: 12.5px; }
  .stat .value { font-size: 24px; }
  .stat .ico { display: none; }
}

/* ============================================================ ADMIN : PILOTAGE */
.stat-sub { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 150px; }
.day-bar { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; }
.bar-stack { display: flex; flex-direction: column-reverse; justify-content: flex-start; background: var(--canvas); border-radius: 8px; overflow: hidden; min-height: 0; }
.bar-app { background: var(--green); }
.bar-site { background: var(--sun); }
.day-bar small { color: var(--muted); font-weight: 800; font-size: 11px; }
.legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; color: var(--muted); font-weight: 700; font-size: 13px; }
.legend .key { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-left: 6px; }
.legend .key.app { background: var(--green); }
.legend .key.site { background: var(--sun); }
.mini-head { margin-top: 22px; }
.api-details summary { cursor: pointer; font-weight: 900; font-size: 16px; display: flex; align-items: center; gap: 10px; list-style: none; }
.api-details summary .ico { width: 34px; height: 34px; border-radius: 11px; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.api-details summary .ico svg { width: 18px; height: 18px; }
.api-details[open] summary { margin-bottom: 14px; }
.timeline a { color: inherit; text-decoration: none; }
.timeline a:hover strong { text-decoration: underline; }
.detail-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-actions .spacer { flex: 1; }
.detail-actions form { margin: 0; }

/* ============================================================ PAIEMENT */
.pay-body { min-height: 100vh; background: linear-gradient(180deg, var(--green) 0 220px, var(--canvas) 220px); }
.pay-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: max(16px, env(safe-area-inset-top)) 16px 16px; max-width: 520px; margin: 0 auto; }
.pay-top .logo { height: 30px; }
.pay-secure { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 800; font-size: 13px; }
.pay-secure svg { width: 16px; height: 16px; }
.pay-main { max-width: 520px; margin: 0 auto; padding: 8px 16px 40px; }
.pay-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding: 26px 22px; text-align: center; }
.pay-card h1 { margin: 4px 0 16px; font-size: 26px; font-weight: 900; }
.pay-hello { margin: 0; color: var(--muted); font-weight: 800; }
.pay-lead { color: var(--body); font-weight: 700; line-height: 1.5; margin: 0 0 20px; }
.pay-summary { margin: 0 0 20px; text-align: left; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pay-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.pay-summary div:last-child { border-bottom: 0; }
.pay-summary dt { color: var(--muted); font-weight: 800; }
.pay-summary dd { margin: 0; font-weight: 900; text-align: right; }
.pay-summary .pay-off { color: var(--ok); }
.pay-total { background: var(--mint); }
.pay-total dt, .pay-total dd { color: var(--green-ink); font-size: 18px; }
.pay-form { display: grid; gap: 10px; margin-bottom: 14px; }
.pay-cta { width: 100%; padding: 16px 22px; font-size: 17px; }
.pay-cta[disabled] { opacity: .5; cursor: not-allowed; }
.pay-methods { margin: 0; color: var(--muted); font-weight: 700; font-size: 13px; }
.pay-link { display: inline-block; margin-top: 8px; color: var(--muted); font-weight: 800; font-size: 14px; }
.pay-state { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; }
.pay-state svg { width: 36px; height: 36px; }
.pay-state.ok { background: var(--mint); color: var(--green); }
.pay-state.wait { background: #fff4d6; color: #b07800; }
.pay-state.off { background: #f1f4f7; color: var(--muted); }
.pay-foot { text-align: center; color: var(--muted); font-weight: 700; font-size: 12.5px; margin: 16px 0 0; }
.pay-main .flash { margin: 0 0 12px; }

/* ============================================================ CONTENU */
.content-formations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-bottom: 20px; }
.content-permit { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; min-height: 150px; transition: transform .12s ease, box-shadow .12s ease; }
.content-permit:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.content-permit .content-permit-letter { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: #fff; background: var(--green); }
.content-permit-body { display: grid; gap: 4px; justify-items: start; position: relative; z-index: 1; }
.content-permit-body strong { font-size: 19px; font-weight: 900; }
.content-permit-body small { color: var(--muted); font-weight: 700; }
.content-counts { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; color: var(--body); font-weight: 700; font-size: 13px; padding-right: 90px; }
.content-counts b { color: var(--ink); font-weight: 900; }
.content-permit .content-permit-vehicle { position: absolute; right: -10px; bottom: -6px; width: 130px; opacity: .9; pointer-events: none; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--body); font-weight: 600; line-height: 1.5; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 800; text-decoration: none; }
.crumb svg { width: 16px; height: 16px; }

.module-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 12px; margin-bottom: 8px; background: var(--canvas); scrollbar-width: none; }
.module-tabs::-webkit-scrollbar { display: none; }
.module-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 14px; text-decoration: none; color: var(--ink); }
.module-tabs a:hover { border-color: var(--mint-2); background: var(--mint); }
.module-tabs svg { width: 16px; height: 16px; color: var(--green); }
.module-panel { scroll-margin-top: 70px; }
.group-title { font-size: 15px; font-weight: 900; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.item-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; display: grid; align-content: start; }
.item-card > img { width: 100%; height: 130px; object-fit: cover; background: var(--canvas); }
.item-body { padding: 12px 14px; display: grid; gap: 6px; justify-items: start; }
.item-body strong { font-weight: 900; }
.item-body small { color: var(--muted); font-weight: 600; line-height: 1.4; }
.item-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.signs { border-top: 1px solid var(--line); padding: 10px 14px; }
.signs summary { cursor: pointer; font-weight: 800; color: var(--green); font-size: 14px; }
.sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.sign-chip { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; background: var(--canvas); text-decoration: none; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--body); }
.sign-chip:hover { background: var(--mint); }
.sign-chip img { width: 48px; height: 48px; object-fit: contain; }
.series-list { display: grid; gap: 8px; }
.series-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.series-title { display: grid; gap: 2px; min-width: 0; }
.series-title small { color: var(--muted); font-weight: 700; }
.element-preview { max-width: 220px; border-radius: 14px; border: 1px solid var(--line); }
.today-date { display: inline-flex; align-items: center; gap: 6px; }
.today-date svg { width: 14px; height: 14px; flex: none; }

/* ============================================================ RESPONSIVE (admin et auto-école)
   La mise en page suit la largeur réelle de la zone de contenu, menu ouvert
   ou non : ordinateur, tablette et téléphone ont chacun leur disposition. */
.admin-main { container-type: inline-size; container-name: main; max-width: 1480px; }
.admin-main > * { min-width: 0; }

@container main (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-cols, .cols { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container main (max-width: 720px) {
  .topbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .topbar > .button, .topbar > button { width: 100%; }
  .panel { padding: 16px; border-radius: 20px; }
  .panel-head { align-items: flex-start; }
  .panel-head .search-form { width: 100%; }
  .search-form input { flex: 1; width: auto; min-width: 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters a { flex: none; }
  .today-band { padding: 20px; border-radius: 22px; }
  .today-band h2 { font-size: 21px; }
  .today-actions { width: 100%; }
  .today-actions .button { flex: 1 1 auto; }
  .pipeline { grid-template-columns: 1fr; }
  .detail-actions .spacer { display: none; }
  .detail-actions > * { flex: 1 1 auto; }
  .detail-actions .button { width: 100%; }
  .bars { gap: 3px; }
  .content-counts { padding-right: 0; }
  .content-permit .content-permit-vehicle { width: 96px; opacity: .35; }
}
@container main (max-width: 460px) {
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat .value { font-size: 23px; }
  .stat .ico { display: none; }
  .stat .label { padding-right: 0; }
}

/* Tableaux : sur petit écran, chaque ligne devient une carte avec ses intitulés. */
@container main (max-width: 720px) {
  .table-wrap { margin: 0; overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; background: #fff; }
  .table-wrap td { border: 0; padding: 6px 0; display: grid; grid-template-columns: minmax(96px, 38%) 1fr; gap: 10px; align-items: center; text-align: left; }
  .table-wrap td::before { content: attr(data-label); color: var(--muted); font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
  .table-wrap td[data-label=""]::before, .table-wrap td:not([data-label])::before { display: none; }
  .table-wrap td[data-label=""], .table-wrap td:not([data-label]) { grid-template-columns: 1fr; }
  .table-wrap td.actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding-top: 10px; }
  .table-wrap td.actions form { display: inline-flex; }
}

/* Fenêtres : plein écran sur téléphone, comme une feuille qui monte. */
@media (max-width: 720px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal-card { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}

/* Menu latéral sur téléphone et tablette. */
.side-close { display: none; }
.side-backdrop { display: none; }
@media (max-width: 900px) {
  .sidebar.open { box-shadow: var(--shadow-lift); }
  .side-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(15, 31, 23, .45); border: 0; }
  .side-backdrop.open { display: block; }
  .side-close { display: grid; place-items: center; position: absolute; top: 14px; right: 12px; width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
  .side-close svg { width: 18px; height: 18px; }
  .mobile-bar .mobile-title { flex: 1; color: #fff; font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.side-locked { overflow: hidden; }
}

/* Petites finitions communes. */
.panel h2 { flex-wrap: wrap; }
.button { white-space: nowrap; }
input, select, textarea { max-width: 100%; }
img { height: auto; }
.timeline li { flex-wrap: wrap; }
.timeline li > span { min-width: 0; overflow-wrap: anywhere; }
p.quiet, .flag-cell .quiet { white-space: normal; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--canvas); border-radius: 16px; padding: 14px; display: grid; gap: 2px; }
.kpi strong { font-size: 26px; font-weight: 900; line-height: 1.1; }
.kpi span { color: var(--body); font-weight: 800; font-size: 13.5px; }
.kpi small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.kpi small.up { color: var(--ok); }
.kpi small.down { color: var(--danger); }
.funnel { margin-top: 16px; display: grid; gap: 8px; }
.funnel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 90px 1fr 40px; gap: 10px; align-items: center; font-weight: 800; font-size: 14px; }
.funnel-row b { text-align: right; }
.op-list { border: 0; margin: 0 0 4px; padding: 0; display: grid; gap: 8px; text-align: left; }
.op-list legend { font-weight: 900; margin-bottom: 10px; font-size: 16px; }
.op { position: relative; display: grid; grid-template-columns: 44px 1fr 26px; gap: 12px; align-items: center; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.op input { position: absolute; opacity: 0; pointer-events: none; }
.op:has(input:checked) { border-color: var(--green); background: var(--mint); }
.op:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.op-badge { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--op); color: var(--op-ink); font-weight: 900; font-size: 20px; }
.op-badge.big { width: 72px; height: 72px; border-radius: 22px; font-size: 32px; margin: 0 auto 8px; }
.op-text { display: grid; gap: 2px; min-width: 0; }
.op-text strong { font-weight: 900; }
.op-text small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.op-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; }
.op-check svg { width: 14px; height: 14px; }
.op:has(input:checked) .op-check { background: var(--green); border-color: var(--green); color: #fff; }
.pay-phone { display: grid; gap: 6px; text-align: left; font-weight: 900; }
.pay-phone[hidden] { display: none; }
.pay-phone small { color: var(--muted); font-weight: 700; }
.phone-input { display: flex; align-items: stretch; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.phone-input > span { display: grid; place-items: center; padding: 0 12px; background: var(--canvas); font-weight: 900; color: var(--body); }
.phone-input input { flex: 1; min-width: 0; border: 0; padding: 13px 12px; font-size: 17px; font-weight: 800; outline: none; }
.pay-steps { text-align: left; margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; color: var(--body); font-weight: 700; }
.pay-wait { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 800; margin: 6px 0 4px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--mint-2); border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.op-settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.op-settings label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; font-weight: 800; }
.op-settings .op-badge { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
.field-title { display: block; font-weight: 900; margin-bottom: 8px; }
.op-settings label { justify-content: flex-start; flex-direction: row; text-align: left; }
.op-settings label input { width: 18px; height: 18px; flex: none; margin: 0; padding: 0; accent-color: var(--green); }
.op-settings .op-badge { flex: none; }
.op-logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.op-logo img { width: 100%; height: 100%; object-fit: cover; }
.op-logo.big { width: 84px; height: 84px; margin: 0 auto 8px; }
.op-settings .op-logo { width: 30px; height: 30px; }
.pay-fields { text-align: left; }
.pay-fields label { display: grid; gap: 6px; font-weight: 900; }
.pay-fields input { border: 2px solid var(--line); border-radius: 14px; padding: 13px 14px; font-size: 16px; font-weight: 700; }
.pay-fields input:focus { outline: none; border-color: var(--green); }
.country-list { border: 0; margin: 0 0 6px; padding: 0; text-align: left; }
.country-list legend { font-weight: 900; margin-bottom: 10px; font-size: 16px; }
.country-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.country-chips::-webkit-scrollbar { display: none; }
.country-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; }
.country-chip input { position: absolute; opacity: 0; pointer-events: none; }
.country-chip .flag { font-size: 20px; line-height: 1; }
.country-chip:has(input:checked) { border-color: var(--green); background: var(--mint); color: var(--green-ink); }
.country-chip:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.op-group { display: grid; gap: 8px; }
.op-group[hidden] { display: none; }
.op-country { margin: 12px 0 6px; font-weight: 900; }
.phone-input > span svg { width: 18px; height: 18px; }
.country-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); overflow: visible; }
.country-chip { justify-content: flex-start; border-radius: 14px; }
.country-chips { grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); }
.country-chip { white-space: normal; min-width: 0; padding: 9px 10px; line-height: 1.2; }
.op-list, .country-list, .pay-form { min-width: 0; }
.country-chip { position: relative; }
.country-chip input, .op input { top: 0; left: 0; width: 1px; height: 1px; margin: 0; }
.test-client { display: grid; gap: 8px; padding: 14px; border: 1px dashed var(--line); border-radius: 16px; background: #fbfdfc; }

label.check { display: flex; flex-direction: row; align-items: center; gap: 10px; font-weight: 700; }
label.check input { width: auto; min-height: 0; margin: 0; flex: none; }

/* ---- Page de paiement : pays (menu déroulant) et moyens (logos) ---- */
.pay-field { display: grid; gap: 8px; text-align: left; min-width: 0; }
.pay-label { font-weight: 900; font-size: 15px; color: var(--ink, #0f1f17); padding: 0; margin: 0 0 8px; }
.pay-field .pay-label { margin: 0; }
.select-wrap { position: relative; display: flex; align-items: center; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.select-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgb(16 94 58 / .12); }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select-flag { flex: none; width: 52px; display: grid; place-items: center; font-size: 24px; line-height: 1; border-right: 1px solid var(--line); align-self: stretch; }
.select-wrap select { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 14px 44px 14px 14px; font: inherit; font-size: 16px; font-weight: 800; color: inherit; cursor: pointer; outline: none; }
.op-list { gap: 0; margin-top: 6px; container-type: inline-size; }
.op-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.op-grid[hidden] { display: none; }
@container (max-width: 250px) { .op-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.op-tile { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 6px; border: 2px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.op-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgb(15 31 23 / .08); }
.op-tile input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.op-tile img { width: 100%; height: 100%; max-width: 76px; max-height: 76px; border-radius: 50%; object-fit: cover; }
.op-tile-badge { width: 100%; max-width: 76px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--op); color: var(--op-ink); font-weight: 900; font-size: 26px; }
.op-tick { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; border: 2px solid #fff; transform: scale(0); transition: transform .15s ease; }
.op-tick svg { width: 13px; height: 13px; }
.op-tile:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 4px rgb(16 94 58 / .14); }
.op-tile:has(input:checked) .op-tick { transform: scale(1); }
.op-tile:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 3px; }
.op-hint { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--canvas); color: var(--muted); font-size: 13.5px; font-weight: 700; text-align: left; min-height: 1.4em; }
.op-hint strong { color: var(--green); font-weight: 900; }
.op-hint:empty { display: none; }

/* Indicatif choisi dans le champ du numéro : un seul bloc pays + numéro. */
.dial-pick { position: relative; gap: 6px; grid-auto-flow: column; border-right: 1px solid var(--line); }
.dial-pick::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.dial-pick select { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; font-size: 16px; cursor: pointer; }

/* ============================================================ CONNEXION (refonte) */

.auth-body {
  min-height: 100vh; min-height: 100dvh; margin: 0; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(255, 201, 77, .14), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(20, 112, 74, .12), transparent 60%),
    var(--canvas);
}
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: max(18px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 0; }
.auth-brand img { height: 34px; display: block; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 800; font-size: 14px; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.auth-back svg { width: 16px; height: 16px; }
.auth-back:hover { color: var(--green); background: #fff; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 24px 16px; }
.auth-shell {
  width: min(980px, 100%); display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden;
  background: #fff; border-radius: 28px; box-shadow: 0 1px 2px rgba(11,51,33,.05), 0 30px 70px rgba(11,51,33,.14);
}
.auth-shell.wide { width: min(1120px, 100%); grid-template-columns: .8fr 1.2fr; }
.auth-visual {
  position: relative; min-height: 580px; overflow: hidden; color: #fff;
  display: flex; flex-direction: column;
  background:
    radial-gradient(700px 360px at 90% -10%, rgba(255, 201, 77, .28), transparent 60%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 75%);
}
.auth-visual-text { position: relative; z-index: 2; padding: 36px 36px 0; }
.auth-phones { position: relative; flex: 1; min-height: 260px; }
.auth-phone {
  position: absolute; width: 46%; max-width: 210px; height: auto; border-radius: 26px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .35); border: 5px solid #0b1f15; background: #fff;
}
.auth-phone.front { left: 14%; top: 22px; z-index: 2; transform: rotate(-4deg); }
.auth-phone.back { left: 48%; top: 64px; z-index: 1; transform: rotate(6deg); opacity: .95; }
.auth-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font-weight: 900; font-size: 13px; }
.auth-badge svg { width: 16px; height: 16px; }
.auth-visual h2 { color: #fff; margin: 14px 0 16px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 900; max-width: 12em; }
.auth-visual ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-visual li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: rgba(255,255,255,.92); }
.auth-visual li svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(255,255,255,.18); flex: none; }
.auth-card { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.auth-card h1 { margin: 0 0 6px; font-size: clamp(28px, 3vw, 34px); font-weight: 900; color: var(--ink); }
.auth-card .lead, .auth-lead { color: var(--muted); font-weight: 600; margin: 0 0 26px; line-height: 1.5; }
.auth-card .flash { margin: 0 0 18px; }
.auth-form { display: grid; gap: 16px; }
.auth-input { position: relative; display: flex; align-items: center; }
.auth-input > svg { position: absolute; left: 14px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.auth-input input { padding: 14px 46px 14px 46px; font-size: 16px; border-radius: 14px; background: var(--canvas); border-color: transparent; }
.auth-input input:focus { background: #fff; }
.auth-input:focus-within > svg { stroke: var(--green); }
.auth-eye { position: absolute; right: 6px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; cursor: pointer; }
.auth-eye svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-eye.on svg, .auth-eye:hover svg { stroke: var(--green); }
.auth-submit { margin-top: 6px; padding: 16px 22px; font-size: 16px; }
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.auth-note svg { width: 16px; height: 16px; color: var(--green); }
.auth-foot { text-align: center; color: var(--muted); font-weight: 700; font-size: 12.5px; padding: 0 16px max(18px, env(safe-area-inset-bottom)); }
.auth-card .guest-alt { margin-top: 20px; }
@media (max-width: 860px) {
  .auth-shell, .auth-shell.wide { grid-template-columns: 1fr; border-radius: 24px; }
  .auth-visual { min-height: 0; height: 190px; }
  .auth-visual-text { padding: 22px 22px; max-width: 58%; }
  .auth-visual h2 { font-size: 19px; }
  .auth-badge { white-space: nowrap; font-size: 12px; padding: 6px 10px; }
  .auth-phones { position: absolute; inset: 0; }
  .auth-phone { width: 104px; border-width: 4px; border-radius: 16px; }
  .auth-phone.front { left: auto; right: 34px; top: 30px; }
  .auth-phone.back { left: auto; right: -30px; top: 58px; }
  .auth-visual h2 { font-size: 22px; margin: 10px 0 0; }
  .auth-visual ul { display: none; }
  .auth-card { padding: 26px 22px 30px; }
}

/* Encaissement : moyen de paiement à côté du bouton. */
td.actions form { display: inline-flex; gap: 6px; align-items: center; }
td.actions form select { width: auto; padding: 7px 30px 7px 10px; font-size: 13px; border-radius: 10px; }
.link-requests { border: 2px solid var(--sun); }
.link-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Champ image du contenu : aperçu + téléversement. */
.img-field { display: grid; gap: 8px; }
.img-field-label { font-size: 14px; font-weight: 800; color: var(--body); }
.img-field-body { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 14px; border: 2px dashed var(--line); border-radius: 18px; background: var(--canvas); }
.img-field-preview { width: 180px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #fff; display: grid; place-items: center; border: 1px solid var(--line); }
.img-field-preview img { width: 100%; height: 100%; object-fit: contain; }
.img-field-preview.new { outline: 3px solid var(--sun); }
.img-field-empty { display: grid; gap: 6px; justify-items: center; color: var(--muted); font-weight: 700; font-size: 13px; }
.img-field-empty svg { width: 24px; height: 24px; }
.img-field-actions { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.img-field-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.checkline.small { font-size: 13px; }

/* ============================================================ BANQUE DE QUESTIONS (admin) */
.qbank-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.qbank-head h2 { margin: 0; font-size: 22px; font-weight: 900; }
.qbank-head p { margin: 0; color: var(--muted); font-weight: 700; }
.qbank { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.qcard-media { position: relative; display: block; min-height: 120px; background: #0f1f17; }
.qcard-media img { width: 100%; height: auto; max-height: 340px; object-fit: contain; display: block; margin: 0 auto; }
.qcard-noimg { position: absolute; inset: 0; min-height: 120px; display: grid; place-content: center; justify-items: center; gap: 6px; color: #9fb3a8; font-weight: 800; background: var(--canvas); }
.qcard-noimg svg { width: 26px; height: 26px; }
.qcard-num { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--green-ink); font-weight: 900; font-size: 12.5px; }
.qcard-body { padding: 16px; display: grid; gap: 12px; flex: 1; align-content: start; }
.qcard-body .button { margin-top: auto; }
.qcard-prompt { margin: 0; font-weight: 900; color: var(--ink); line-height: 1.4; }
.qcard-answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.qcard-answers li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--canvas); font-weight: 700; font-size: 14px; color: var(--body); }
.qcard-answers li.ok { background: #e6f6ec; color: #0f5132; box-shadow: inset 0 0 0 2px #9bd9b3; }
.qcard-letter { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #fff; font-weight: 900; color: var(--green); border: 1px solid var(--line); }
.qcard-answers li.ok .qcard-letter { background: var(--ok); color: #fff; border-color: var(--ok); }
.qcard-tick { margin-left: auto; color: var(--ok); display: grid; }
.qcard-tick svg { width: 18px; height: 18px; }

/* ============================================================ ÉDITION D'UNE QUESTION (admin) */
.qedit-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.crumb-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 900; text-decoration: none; }
.crumb-link svg { width: 16px; height: 16px; }
.qedit-nav { display: flex; align-items: center; gap: 8px; }
.qedit-pos { font-weight: 900; color: var(--muted); font-size: 14px; padding: 0 4px; }
.qedit { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
.qedit-preview { position: sticky; top: 16px; display: grid; gap: 10px; }
.qedit-preview-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.qedit-preview-label svg { width: 16px; height: 16px; }
.qphone { background: #fff; border: 8px solid #10231a; border-radius: 34px; padding: 14px; display: grid; gap: 12px; box-shadow: var(--shadow-lift); }
.qphone-media { position: relative; border-radius: 18px; overflow: hidden; background: #0f1f17; min-height: 140px; }
.qphone-media img { width: 100%; height: auto; max-height: 280px; object-fit: contain; display: block; margin: 0 auto; }
.qphone-prompt { margin: 0; font-weight: 900; font-size: 16px; color: var(--ink); line-height: 1.4; }
.qcard-answers li .qcard-tick { visibility: hidden; }
.qcard-answers li.ok .qcard-tick { visibility: visible; }
.qedit-form { display: grid; gap: 16px; min-width: 0; }
.qedit-form .panel { margin: 0; }
.answer-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border-radius: 16px; background: var(--canvas); border: 2px solid transparent; }
.answer-row.ok { background: #eefaf2; border-color: #9bd9b3; }
.answer-row .qcard-letter { margin-top: 10px; }
.answer-row.ok .qcard-letter { background: var(--ok); color: #fff; border-color: var(--ok); }
.answer-fields { display: grid; gap: 8px; min-width: 0; }
.answer-fields input { background: #fff; }
.answer-why { font-size: 13.5px !important; font-weight: 600 !important; color: var(--body); }
.answer-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.answer-toggle input { width: 18px; height: 18px; accent-color: var(--ok); }
.answer-row.ok .answer-toggle { border-color: #9bd9b3; color: #0f5132; }
.qedit-small { max-width: 220px; }
.qedit-save { position: sticky; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px 12px 18px; border-radius: 18px; background: #10231a; color: #fff; box-shadow: var(--shadow-lift); }
.qedit-save span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: rgba(255,255,255,.85); }
.qedit-save svg { width: 16px; height: 16px; }
.qedit-save .button { --bg: var(--sun); color: var(--sun-ink); box-shadow: 0 4px 0 #d9a520; }
@media (max-width: 980px) {
  .qedit { grid-template-columns: 1fr; }
  .qedit-preview { position: static; }
  .answer-row { grid-template-columns: auto minmax(0, 1fr); }
  .answer-toggle { grid-column: 2; justify-self: start; margin-top: 0; }
}
.sign-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 14px; background: var(--canvas); height: 130px; align-items: center; }
.sign-mosaic img { width: 100%; height: 72px; object-fit: contain; }
.sign-chip img { width: 64px; height: 64px; }

/* ============================================================ LISTE DES APPRENANTS (compacte) */
.student-list { gap: 8px; }
.student-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, 1fr) minmax(0, .9fr); gap: 14px; padding: 10px 14px; border-radius: 14px; }
.student-row .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.student-row .who .avatar { width: 38px; height: 38px; font-size: 13.5px; }
.student-row .who > span:last-child { gap: 1px; }
.student-row .who strong { font-weight: 900; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.student-row .who small { font-size: 12.5px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.student-row .who .tag { font-size: 10.5px; padding: 1px 7px; }
.student-row .who > span:last-child > span { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.student-row .cell { gap: 3px; font-size: 13.5px; }
.student-row .cell .meter { height: 6px; }
.student-row .cell .pill { font-size: 11.5px; padding: 2px 8px; }
.student-row .meter-label { font-size: 12px; }
@container (max-width: 780px) {
  .student-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who who" "acc act" "prog prog"; gap: 8px 12px; padding: 10px 12px; }
  .student-row .who { grid-area: who; }
  .student-row .cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-items: initial; }
  .student-row .cell:nth-of-type(2) { grid-area: acc; }
  .student-row .cell:nth-of-type(3) { grid-area: prog; }
  .student-row .cell:nth-of-type(4) { grid-area: act; justify-content: flex-end; text-align: right; }
  .student-row .cell .meter { width: auto; flex: 1 1 120px; }
  .cell-label { display: none; }
}
@container (max-width: 460px) {
  .student-row .who .avatar { width: 34px; height: 34px; font-size: 12.5px; }
  .student-row .cell:nth-of-type(4) .meter-label { display: none; }
}

/* Tarifs de la vitrine : un onglet par permis. */
.tarif-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tarif-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; }
.tarif-tab .letter { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 14px; background: var(--green); }
.tarif-tab.a .letter { background: #e0602a; }
.tarif-tab.c .letter { background: #2f5aa8; }
.tarif-tab.d .letter { background: #6d3fd1; }
.tarif-tab.is-on { border-color: var(--green); background: var(--mint); }
.pricing[hidden] { display: none; }
.price .was { color: var(--muted); font-weight: 800; font-size: 14px; }
