/* Le site public de Côtoyen (cotoyen.fr). Charte : bleu, bleu nuit, ambre — l'ambre est
   l'habitant (celui du milieu, dans le signe), le bleu la mairie. DM Sans, la police du nom,
   servie d'ici : aucune ressource extérieure. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(fonts/dm-sans-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(fonts/dm-sans-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --blue: #1E4AA8;
  --blue-dark: #163A86;
  --navy: #14254F;
  --amber: #F5A524;
  --amber-ink: #8A5300;
  --amber-wash: #FEF5E2;
  --ink: #1B2437;
  --muted: #55607A;
  --line: #D9DFEA;
  --paper: #FFFFFF;
  --wash: #EEF3FB;
  --danger: #B3261E;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2 { color: var(--navy); font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.35rem); line-height: 1.06; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); line-height: 1.12; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; color: var(--navy); }

.st-wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.st-skip { position: absolute; left: -200vw; top: 0; padding: .75rem 1rem; background: var(--navy); color: #fff; z-index: 10; }
.st-skip:focus { left: 0; }
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ------------------------------ Les boutons ------------------------------ */
.st-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem 1.15rem; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; color: #fff; background: var(--blue); border: 1.5px solid var(--blue); border-radius: 10px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.st-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.st-btn-quiet { color: var(--blue); background: transparent; border-color: #B9C6E4; }
.st-btn-quiet:hover { color: var(--blue-dark); background: var(--wash); border-color: var(--blue); }
.st-btn-lg { min-height: 3.25rem; padding-inline: 1.5rem; font-size: 1.0625rem; }
.st-btn-amber { color: var(--navy); background: var(--amber); border-color: var(--amber); }
.st-btn-amber:hover { background: #FFB73D; border-color: #FFB73D; }
.st-btn-ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .5); }
.st-btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.st-link { font-weight: 500; }
.st-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .875rem 1.5rem; }

/* ------------------------------ L'en-tête ------------------------------ */
.st-top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; padding: 1.5rem 0 1.25rem; }
.st-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.st-nav a { color: var(--ink); font-size: .9688rem; font-weight: 500; text-decoration: none; padding: .35rem 0; }
.st-nav a:hover { color: var(--blue); text-decoration: underline; }
.st-logo { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-decoration: none; }
.st-logo-sign { display: block; height: 52px; width: auto; }
.st-logo-name { display: block; height: 21px; width: auto; }
.st-logo-line { font-size: .8438rem; letter-spacing: .04em; color: var(--muted); }
.st-access { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .625rem; }
/* Sur l'accueil, l'en-tête et l'ouverture ne font qu'un bloc bleu nuit : logo blanc, accès clairs. */
.st-top.is-dark { background: var(--navy); }
.st-top.is-dark .st-nav a { color: #DCE4F6; }
.st-top.is-dark .st-nav a:hover { color: #fff; }
.st-top.is-dark .st-logo-line { color: #C9D4EE; }
.st-top.is-dark .st-btn { color: var(--navy); background: var(--amber); border-color: var(--amber); }
.st-top.is-dark .st-btn:hover { background: #FFB73D; border-color: #FFB73D; }
.st-top.is-dark .st-btn-quiet { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .45); }
.st-top.is-dark .st-btn-quiet:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ------------------------------ L'ouverture ------------------------------ */
.st-hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5.5rem); background: var(--navy); color: #D7E0F2; }
.st-hero h1 { color: #fff; font-size: clamp(2rem, 3.7vw, 3.05rem); line-height: 1.08; }
.st-hero h1 em { font-style: normal; color: #FFC55C; }
.st-hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.6rem; }
.st-pill { padding: .45rem 1rem; border-radius: 999px; background: var(--amber); color: var(--navy); font-size: .9063rem; font-weight: 700; line-height: 1.2; }
.st-hero-fast { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.st-eyebrow { margin-bottom: .8rem; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FFC55C; }
.st-hero .st-lead { color: #D7E0F2; }
.st-hero .st-facts { color: #fff; }
.st-hero .st-facts li::before { background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%2314254F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.st-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.st-lead { margin-top: 1.4rem; font-size: 1.1875rem; line-height: 1.5; color: var(--muted); max-width: 36rem; }
.st-lead strong { color: var(--ink); font-weight: 600; }
.st-hero .st-cta { margin-top: 2rem; }
.st-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; font-size: .9688rem; font-weight: 500; color: var(--navy); }
.st-facts li { display: flex; align-items: center; gap: .5rem; }
.st-facts li::before { content: ''; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* La scène : le téléphone de l'habitant, le fil, la console de la mairie. */
.st-scene { display: grid; grid-template-columns: minmax(0, 13rem) 2.75rem minmax(0, 1fr); align-items: center; padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--wash); border-radius: 28px; font-size: .8438rem; line-height: 1.35; color: var(--ink); }
.st-scene small { display: block; font-size: .7188rem; font-weight: 400; color: var(--muted); }
.st-scene p { margin: 0; }

.st-phone { padding: .875rem .75rem 1rem; background: var(--paper); border: 6px solid var(--navy); border-radius: 30px; box-shadow: 0 24px 48px -28px rgba(20, 37, 79, .55); }
.st-phone-place { display: grid; grid-template-columns: auto 1fr; column-gap: .4rem; align-items: center; font-weight: 700; color: var(--navy); }
.st-phone-place small { grid-column: 2; }
.st-pin { width: .7rem; height: .7rem; border-radius: 50% 50% 50% 0; background: var(--amber); transform: rotate(-45deg); }
.st-phone-photo { margin: .7rem 0 .6rem; height: 5.25rem; border-radius: 12px; overflow: hidden; }
.st-phone-photo svg { display: block; width: 100%; height: 100%; }
.st-phone-line b { font-weight: 600; }
.st-phone-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .6rem 0 .75rem !important; }
.st-phone-tags span { padding: .15rem .5rem; border-radius: 999px; background: var(--wash); color: var(--navy); font-size: .7188rem; font-weight: 500; }
.st-phone-tags .is-urgent { background: var(--amber-wash); color: var(--amber-ink); }
.st-phone-steps { padding-top: .7rem; border-top: 1px solid var(--line); }
.st-phone-steps li { position: relative; padding: 0 0 .45rem 1.35rem; color: #98A2B8; }
.st-phone-steps li:last-child { padding-bottom: 0; }
.st-phone-steps li::before { content: ''; position: absolute; left: 0; top: .12rem; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); }
.st-phone-steps li::after { content: ''; position: absolute; left: .34rem; top: 1rem; bottom: -.1rem; width: 2px; background: var(--line); }
.st-phone-steps li:last-child::after { display: none; }
.st-phone-steps .is-done { color: var(--ink); font-weight: 600; }
.st-phone-steps .is-done::before { border-color: var(--blue); background: var(--blue); }

.st-wire { position: relative; height: 2px; background: repeating-linear-gradient(90deg, #A9B8DA 0 6px, transparent 6px 11px); }
.st-wire span { position: absolute; top: 50%; left: 0; width: .85rem; height: .85rem; margin: -.425rem 0 0 -.425rem; border-radius: 50%; opacity: 0; }
.st-wire-go { background: var(--amber); box-shadow: 0 0 0 5px rgba(245, 165, 36, .25); }
.st-wire-back { background: var(--blue); box-shadow: 0 0 0 5px rgba(30, 74, 168, .2); }

.st-desk { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -30px rgba(20, 37, 79, .5); overflow: hidden; }
.st-desk-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .7rem .9rem; background: var(--navy); color: #fff; font-weight: 600; }
.st-desk-head small { color: #B9C7EA; }
.st-desk-row { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid #EDF0F6; }
.st-desk-row b { display: block; font-weight: 600; }
.st-desk-row.is-old { opacity: .62; }
.st-desk-foot { padding: .65rem .9rem; font-size: .75rem; color: var(--muted); background: #F7F9FD; }
.st-badge { flex: none; padding: .2rem .55rem; border-radius: 999px; font-size: .6875rem; font-weight: 600; white-space: nowrap; }
.st-badge-new { background: var(--amber-wash); color: var(--amber-ink); display: none; }
.st-badge-taken { background: #DCE7FB; color: var(--blue-dark); }
.st-badge-site { background: var(--amber-wash); color: var(--amber-ink); }
.st-badge-done { background: #DDF3E4; color: #17603A; }

/* Le seul mouvement de la page, une fois, à l'arrivée : le signalement part, la mairie le prend en charge,
   la réponse revient. Sans mouvement (réglage du système), la scène est montrée dans son état final. */
@media (prefers-reduced-motion: no-preference) {
  .st-wire-go { animation: st-go 1.1s .7s ease-in-out both; }
  .st-wire-back { animation: st-back 1.1s 3.6s ease-in-out both; }
  .st-anim-row { animation: st-arrive .5s 1.8s ease-out both; }
  .st-anim-row .st-badge-new { display: inline-block; position: absolute; left: .9rem; bottom: .7rem; animation: st-fade-out .3s 3.1s both; }
  .st-anim-row .st-badge-taken { animation: st-fade-in .3s 3.2s both; }
  .st-anim-step { animation: st-tick .01s 4.7s both; }
  .st-anim-step::before { animation: st-tick-dot .01s 4.7s both; }
}
@keyframes st-go { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes st-back { 0% { left: 100%; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }
@keyframes st-arrive { from { opacity: 0; transform: translateX(-14px); background: var(--amber-wash); } to { opacity: 1; transform: none; background: transparent; } }
@keyframes st-fade-out { to { opacity: 0; } }
@keyframes st-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes st-tick { from { color: #98A2B8; font-weight: 400; } to { color: var(--ink); font-weight: 600; } }
@keyframes st-tick-dot { from { border-color: var(--line); background: var(--paper); } to { border-color: var(--blue); background: var(--blue); } }

/* ------------------------------ Les sections ------------------------------ */
.st-section { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.st-section-wash { background: var(--wash); }
.st-section-tight { padding-bottom: 0; }
.st-intro { margin-top: .75rem; font-size: 1.125rem; color: var(--muted); max-width: 40rem; }

/* Le principe */
.st-principle { padding: clamp(3.25rem, 7vw, 5.5rem) 0; background: var(--navy); color: #C9D4EE; }
.st-principle h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 46rem; }
.st-principle p { margin-top: 1.25rem; font-size: 1.1875rem; max-width: 44rem; }

/* La marque « Capteurs » : ce qui distingue un module qui s'appuie sur des capteurs intelligents. */
.st-ico { display: block; flex: none; }
.st-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .65rem .15rem .45rem; border-radius: 999px; background: #FFE3A8; color: #5C3A00; font-size: .8125rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; white-space: nowrap; vertical-align: middle; }

/* Tous les modules d'un coup d'œil : deux colonnes de cartes, ambre quand il y a des capteurs ; chacune mène au détail. */
.st-over { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.st-over-col > h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; }
.st-over-col > h3 .st-ico { color: var(--blue); }
.st-over-col > p { margin-top: .35rem; color: var(--muted); }
.st-tiles { display: grid; gap: .75rem; margin-top: 1.25rem; }
.st-tile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .25rem .9rem; align-items: start; padding: 1rem 1.1rem; background: #F5F8FD; border: 1px solid #D5DEEF; border-radius: 14px; color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.st-tile:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 14px 28px -18px rgba(20, 37, 79, .45); }
.st-tile.is-sensor { background: #FFF8EA; border-color: #F1C36B; }
.st-tile.is-sensor:hover { border-color: var(--amber); }
.st-tile.is-pace { background: var(--paper); border-style: dashed; border-color: #B9C6E4; }
.st-tile-ico { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: #E1EAFA; color: var(--blue); }
.st-tile > .st-tile-ico { grid-row: span 2; }
.is-sensor > .st-tile-ico, .st-tile-ico.is-sensor { background: #FFE3A8; color: var(--navy); }
.st-tile-text b { display: block; font-size: 1.0938rem; font-weight: 700; color: var(--navy); }
.st-tile-text b small, .st-module h3 small { font-size: .8em; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.st-tile-text > span { display: block; margin-top: .15rem; font-size: .9375rem; color: var(--muted); }
.st-tile-go { grid-column: 2 / -1; display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; font-size: .875rem; font-weight: 600; color: var(--blue); }
.st-tile:hover .st-tile-go .st-ico { transform: translateX(3px); }
.st-tile-go .st-ico { transition: transform .18s; }

/* Ce que la commune ajoute ensuite, selon ses priorités : trois cartes. */
.st-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.st-next li { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.st-next b { margin-top: .35rem; font-size: 1.125rem; font-weight: 700; color: var(--navy); }
.st-next li > span:not(.st-tile-ico) { font-size: .9688rem; color: var(--muted); }
.st-next .st-tile-go { margin-top: auto; padding-top: .35rem; text-decoration: none; }

/* Le détail : le fil des modules reste en haut de l'écran, chaque module a sa carte et son petit écran dessiné. */
.st-modnav { position: sticky; top: 0; z-index: 4; background: rgba(255, 255, 255, .96); border-block: 1px solid var(--line); }
.st-modnav-in { display: flex; gap: .4rem; padding: .6rem 0; overflow-x: auto; scrollbar-width: thin; }
.st-modnav a { flex: none; display: inline-flex; align-items: center; min-height: 2.4rem; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.st-modnav a.is-sensor { border-color: #F1C36B; background: #FFF8EA; }
.st-modnav a:hover { border-color: var(--blue); }
.st-modnav a.is-here { background: var(--navy); border-color: var(--navy); color: #fff; }
.st-group { background: var(--wash); scroll-margin-top: 3.5rem; }
.st-group + .st-group { padding-top: 0; }
.st-module { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(1.5rem, 3vw, 2.25rem); padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--paper); border: 1px solid var(--line); border-radius: 24px; scroll-margin-top: 4.75rem; }
.st-module:nth-of-type(even) .st-module-vue { order: -1; }
.st-module-for { font-size: .8125rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
.st-module h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .6rem; font-size: 1.625rem; font-weight: 700; letter-spacing: -.02em; }
.st-module-lead { margin-top: .9rem; font-size: 1.125rem; color: var(--ink); }
.st-module-points { display: grid; gap: .6rem; margin-top: 1.1rem; }
.st-module-points li { position: relative; padding-left: 1.75rem; color: var(--muted); }
.st-module-points li::before { content: ''; position: absolute; left: 0; top: .22rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.st-module-note { margin-top: 1.1rem; padding: .7rem .95rem; border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0; background: var(--amber-wash); font-size: .9375rem; color: var(--amber-ink); }

/* Les petits écrans dessinés : un téléphone ou la console, et ce qu'on y lirait. Les tons : vert quand tout va,
   ambre quand quelque chose est en cours, rouge quand il faut y aller. */
.st-vue { padding: clamp(1rem, 2.5vw, 1.75rem); background: var(--wash); border-radius: 20px; font-size: .875rem; line-height: 1.35; }
.st-vue p { margin: 0; }
.st-vue small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.st-vue .is-libre { --ton: #17603A; --fond: #DDF3E4; --trait: #2E9A5E; }
.st-vue .is-titulaire { --ton: var(--amber-ink); --fond: #FDEBC4; --trait: var(--amber); }
.st-vue .is-alerte { --ton: #B3261E; --fond: #FCE4E1; --trait: #C7372E; }
.st-vue .is-neutre { --ton: var(--blue-dark); --fond: #DCE7FB; --trait: var(--blue); }
.st-ecran { margin-inline: auto; background: var(--paper); overflow: hidden; }
.st-ecran.is-console { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -30px rgba(20, 37, 79, .5); }
.st-ecran.is-telephone { max-width: 17.5rem; border: 6px solid var(--navy); border-radius: 30px; box-shadow: 0 24px 48px -28px rgba(20, 37, 79, .55); }
.st-ecran-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .6rem; padding: .75rem .9rem; font-weight: 700; color: var(--navy); border-bottom: 1px solid #EDF0F6; }
.st-ecran.is-console .st-ecran-head { background: var(--navy); color: #fff; border-bottom: 0; }
.st-ecran.is-console .st-ecran-head small { color: #B9C7EA; }
.st-ecran-warn { margin: .7rem .9rem 0 !important; padding: .55rem .7rem; border-radius: 10px; background: #FCE4E1; color: #7A1A14; font-size: .8125rem; font-weight: 500; }
.st-ecran-foot { padding: .65rem .9rem; font-size: .8125rem; color: var(--muted); background: #F7F9FD; }

.st-lignes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .75rem; align-items: center; padding: .7rem .9rem; border-bottom: 1px solid #EDF0F6; }
.st-lignes li:last-child { border-bottom: 0; }
.st-ligne-nom b { display: block; font-weight: 600; color: var(--ink); }
.st-ligne-val { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ton); }
.st-jauge { grid-column: 1 / -1; height: .5rem; border-radius: 999px; background: #E6EBF5; overflow: hidden; }
.st-jauge i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--trait); }
.st-etat { justify-self: start; padding: .15rem .6rem; border-radius: 999px; background: var(--fond); color: var(--ton); font-size: .75rem; font-weight: 600; white-space: nowrap; }

.st-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding: .85rem .9rem; }
.st-ecran.is-telephone .st-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-cases li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 4.4rem; padding: .55rem .4rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); text-align: center; font-size: .8125rem; font-weight: 500; color: var(--ink); }
.st-cases .is-libre, .st-cases .is-titulaire, .st-cases .is-alerte { border-color: var(--trait); background: var(--fond); }
.st-cases .is-choix { border-color: var(--blue); background: var(--wash); color: var(--navy); font-weight: 600; }
.st-cases i { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 8px; background: var(--trait, var(--blue)); color: #fff; font-style: normal; font-weight: 700; }
.st-legende { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: 0 .9rem .9rem !important; font-size: .8125rem; color: var(--muted); }
.st-legende span { display: inline-flex; align-items: center; gap: .4rem; }
.st-legende span::before { content: ''; width: .7rem; height: .7rem; border-radius: 50%; background: var(--trait); }

.st-fil { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.st-fil li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.1rem .7rem 1.2rem; background: var(--paper); border-radius: 16px; box-shadow: 0 20px 40px -30px rgba(20, 37, 79, .5); text-align: center; }
.st-fil li + li::before { content: ''; position: absolute; left: -1.25rem; top: 2.7rem; width: 1.25rem; height: 2px; background: repeating-linear-gradient(90deg, #A9B8DA 0 5px, transparent 5px 9px); }
.st-fil-ico { position: relative; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: .25rem; border-radius: 50%; background: #E1EAFA; color: var(--blue); }
.st-fil .is-amber .st-fil-ico { background: #FFE3A8; color: var(--navy); }
.st-fil .is-pulse .st-fil-ico::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--amber); border-radius: 50%; opacity: 0; }
.st-fil b { font-weight: 700; color: var(--navy); }

.st-echelle { display: grid; gap: .6rem; padding: .9rem; }
.st-echelle li { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); gap: 0 .75rem; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; }
.st-echelle b { grid-row: span 2; align-self: center; font-weight: 700; color: var(--muted); }
.st-echelle span { font-weight: 600; color: var(--ink); }
.st-echelle .is-done { border-color: #BFE5CD; background: #F1FAF4; }
.st-echelle .is-done b { color: #17603A; }
.st-echelle .is-now { border-color: var(--amber); background: var(--amber-wash); }
.st-echelle .is-now b { color: var(--amber-ink); }

.st-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding: .9rem; }
.st-chiffres li { padding: .65rem .4rem; border-radius: 12px; background: var(--wash); text-align: center; }
.st-chiffres b { display: block; font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.st-barres { display: flex; align-items: flex-end; gap: .3rem; height: 5.5rem; padding: 0 .9rem !important; }
.st-barres i { flex: 1; height: var(--p); border-radius: 4px 4px 0 0; background: #7F9BD6; }
.st-barres i:last-child { background: var(--amber); }

/* Ce que cela coûte */
.st-free { padding: clamp(2.75rem, 6vw, 4.5rem) 0; background: var(--amber-wash); }
.st-free h2 { max-width: 46rem; }
.st-free p { margin-top: 1rem; font-size: 1.1875rem; max-width: 44rem; }

/* Le mouvement : un bloc apparaît quand on y arrive, ses jauges se remplissent, ce qui demande d'y aller bat doucement.
   Rien de cela sans le script (la classe st-js) ni quand le système demande moins de mouvement : tout est alors là, immobile. */
@media (prefers-reduced-motion: no-preference) {
  .st-js .st-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .st-js .st-reveal.is-in { opacity: 1; transform: none; }
  .st-js .st-reveal :is(.st-lignes, .st-cases, .st-echelle, .st-fil) > li { transition: opacity .45s ease calc(.2s + var(--i, 0) * .1s), transform .45s ease calc(.2s + var(--i, 0) * .1s); }
  .st-js .st-reveal:not(.is-in) :is(.st-lignes, .st-cases, .st-echelle, .st-fil) > li { opacity: 0; transform: translateY(10px); }
  .st-js .st-reveal .st-jauge i { transition: width 1s cubic-bezier(.2, .7, .2, 1) calc(.35s + var(--i, 0) * .1s); }
  .st-js .st-reveal:not(.is-in) .st-jauge i { width: 0; }
  .st-js .st-reveal .st-barres i { transition: height .7s cubic-bezier(.2, .7, .2, 1) calc(.2s + var(--i, 0) * .04s); }
  .st-js .st-reveal:not(.is-in) .st-barres i { height: 0; }
  .st-fil .is-pulse .st-fil-ico::after { animation: st-pulse 2s ease-out infinite; }
  .st-cases .is-alerte i { animation: st-beat 1.8s ease-in-out infinite; }
}
@keyframes st-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.75); opacity: 0; } }
@keyframes st-beat { 50% { box-shadow: 0 0 0 6px rgba(179, 38, 30, .2); } }

/* Le pavé de la démonstration */
.st-demo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(2rem, 5vw, 4rem); background: var(--navy); border-radius: 28px; color: #C9D4EE; }
.st-demo h2 { color: #fff; }
.st-demo-text > p { margin-top: 1rem; font-size: 1.125rem; }
.st-demo-text ul { margin: 1.4rem 0 1.9rem; }
.st-demo-text li { position: relative; padding: 0 0 .5rem 1.6rem; color: #fff; }
.st-demo-text li::before { content: ''; position: absolute; left: 0; top: .5rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--amber); }
.st-demo-url { margin-top: .8rem !important; font-size: .9063rem !important; color: #9FB4E6; }
.st-demo-day > p { margin-bottom: 1.5rem; font-size: 1.125rem; font-weight: 600; color: #fff; }
.st-demo-day li { display: grid; grid-template-columns: 4rem 1fr; gap: 0 1.1rem; }
.st-demo-day time { font-size: .9063rem; font-variant-numeric: tabular-nums; color: #9FB4E6; text-align: right; }
.st-demo-day li > span { position: relative; padding: 0 0 1.4rem 1.4rem; border-left: 2px solid rgba(255, 255, 255, .16); font-size: .9375rem; }
.st-demo-day li:last-child > span { padding-bottom: 0; border-left-color: transparent; }
.st-demo-day li > span::before { content: ''; position: absolute; left: -7px; top: .3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); border: 2px solid #9FB4E6; }
.st-demo-day .is-alert > span::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 5px rgba(245, 165, 36, .22); }
.st-demo-day b { display: block; font-weight: 600; font-size: 1rem; color: #fff; }

/* L'inscription en trois temps */
.st-join { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 2.5rem 0; counter-reset: temps; }
.st-join li { position: relative; padding-left: 3.4rem; counter-increment: temps; }
.st-join li::before { content: counter(temps); position: absolute; left: 0; top: -.15rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); font-weight: 700; }
.st-join p { margin-top: .3rem; font-size: .9688rem; color: var(--muted); }
.st-join-col { grid-template-columns: 1fr; gap: 1.5rem; margin: 1.75rem 0; }

/* ------------------------------ Le pied de page ------------------------------ */
.st-foot { margin-top: clamp(1rem, 3vw, 2rem); padding: 2.5rem 0; background: var(--navy); color: #B9C7EA; font-size: .9375rem; }
.st-foot-in { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: start; }
.st-foot-brand img { display: block; height: 40px; width: auto; margin-bottom: .75rem; }
.st-foot-links { display: grid; gap: .45rem; }
.st-foot a { color: #fff; }
.st-foot-legal { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .8438rem; }

/* ------------------------------ Le formulaire d'inscription ------------------------------ */
.st-form-page { padding-top: clamp(1.5rem, 4vw, 3rem); }
.st-form-in { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.st-form-main h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.st-form { margin-top: 2rem; }
.st-form fieldset { margin: 0 0 2rem; padding: 0; border: 0; min-width: 0; }
.st-form legend { padding: 0 0 .9rem; font-size: 1.1875rem; font-weight: 700; color: var(--navy); }
.st-optional { margin-left: .35rem; font-size: .8438rem; font-weight: 400; color: var(--muted); }
.st-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.st-field { margin-bottom: 1.1rem; }
.st-field label { display: block; margin-bottom: .4rem; font-size: .9688rem; font-weight: 600; }
.st-form input[type="text"], .st-form input[type="email"], .st-form input[type="tel"], .st-form textarea { width: 100%; min-height: 3.1rem; padding: .7rem .95rem; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid #B9C2D4; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.st-form textarea { resize: vertical; }
.st-form input::placeholder, .st-form textarea::placeholder { color: #8E98AD; }
.st-form input:focus-visible, .st-form textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 74, 168, .18); }
.st-form [aria-invalid="true"] { border-color: var(--danger); }
.st-hint { margin-top: .4rem; font-size: .875rem; color: var(--muted); }
.st-hint.is-warn { color: var(--amber-ink); font-weight: 500; }
.st-trap { position: absolute; left: -200vw; width: 1px; height: 1px; opacity: 0; }
.st-alert { margin-top: 1.5rem; padding: 1rem 1.15rem; border-radius: 12px; background: #FCEEEC; color: #7A1A14; font-size: .9688rem; }
.st-alert p { font-weight: 600; }
.st-alert ul { margin-top: .35rem; padding-left: 1.1rem; list-style: disc; }

.st-search { position: relative; }
.st-results { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; padding: .375rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(20, 37, 79, .35); max-height: 19rem; overflow: auto; }
.st-results li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .75rem; border-radius: 8px; cursor: pointer; }
.st-results li[aria-selected="true"], .st-results li:hover { background: var(--wash); }
.st-results b { font-weight: 600; }
.st-results small { color: var(--muted); font-size: .875rem; text-align: right; }
.st-results .st-empty { color: var(--muted); cursor: default; background: none; }

.st-checks { display: grid; gap: .6rem; }
.st-check { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.st-check:has(input:checked) { border-color: var(--blue); background: var(--wash); }
.st-check input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--blue); }
.st-check b { display: block; font-weight: 600; color: var(--navy); }
.st-check span { font-size: .9375rem; color: var(--muted); }
.st-check-plain { margin-bottom: 1.5rem; border: 0; padding: 0; background: none !important; }
.st-check-plain span { font-size: 1rem; color: var(--ink); font-weight: 500; }

.st-form-side { position: sticky; top: 1.5rem; padding: clamp(1.5rem, 3vw, 2rem); background: var(--wash); border-radius: 20px; }
.st-form-side h2 { font-size: 1.375rem; }
.st-form-side-note { padding-top: 1.25rem; border-top: 1px solid #CFD9EE; font-size: .9375rem; }

/* ------------------------------ Les pages de texte (confidentialité, suppression) ------------------------------ */
.st-text { max-width: 46rem; }
.st-text h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.st-text h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.st-text h3 { margin-top: 1.5rem; }
.st-text p, .st-text ul, .st-text ol { margin-top: .8rem; }
.st-text ul { padding-left: 1.2rem; list-style: disc; }
.st-text ol { padding-left: 1.3rem; list-style: decimal; }
.st-text li { margin-top: .35rem; }
.st-text li::marker { color: var(--blue); font-weight: 600; }
.st-text .st-updated { font-size: .9063rem; color: var(--muted); }
.st-note { margin-top: 1.5rem; padding: 1.1rem 1.25rem; background: var(--wash); border-radius: 14px; }
.st-note p:first-child { margin-top: 0; }

/* ------------------------------ Les petits écrans ------------------------------ */
@media (max-width: 1040px) {
  .st-hero-in { grid-template-columns: 1fr; }
  .st-module { grid-template-columns: 1fr; }
  .st-module:nth-of-type(even) .st-module-vue { order: 0; }
  .st-demo { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .st-top-in { grid-template-columns: 1fr; justify-items: center; gap: 1.1rem; padding-top: 1.25rem; }
  .st-logo { order: -1; }
  .st-nav { justify-content: center; }
  .st-access { justify-content: center; }
  .st-over, .st-next, .st-join, .st-form-in, .st-row { grid-template-columns: 1fr; }
  .st-form-side { position: static; }
  .st-foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .st-nav { display: none; }
  .st-scene { grid-template-columns: 1fr; justify-items: center; }
  .st-phone { width: min(100%, 15rem); }
  .st-wire { width: 2px; height: 2.75rem; background: repeating-linear-gradient(180deg, #A9B8DA 0 6px, transparent 6px 11px); }
  .st-wire span { display: none; }
  .st-desk { width: 100%; }
  .st-tile { grid-template-columns: auto minmax(0, 1fr); }
  .st-tile > .st-tag { grid-column: 2; justify-self: start; }
  .st-fil { grid-template-columns: 1fr; }
  .st-fil li + li::before { left: 50%; top: -1.25rem; width: 2px; height: 1.25rem; background: repeating-linear-gradient(180deg, #A9B8DA 0 5px, transparent 5px 9px); }
  .st-module h3 { font-size: 1.375rem; }
  .st-cta .st-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
