/*  CARCATCH — charte 2 (02/11/2026) : vitrine, mentions legales, connexion.
 *
 *  D'apres le logo valide par Paul : bleu nuit, blanc, rouge Carcatch.
 *  Sombre de bout en bout, des panneaux de verre, le rouge reserve a la
 *  marque, a l'action et a l'alerte. Animations d'arrivee legeres (CSS, et
 *  accueil.js pour l'apparition au defilement) ; toutes coupees quand le
 *  visiteur a demande moins d'animations a son systeme.
 */

:root {
  --nuit-0: #040A16;
  --nuit-1: #071226;
  --nuit-2: #0B1B34;
  --nuit-3: #10264A;
  --verre: rgba(255, 255, 255, .045);
  --verre-fort: rgba(255, 255, 255, .075);
  --filet: rgba(255, 255, 255, .10);
  --filet-fort: rgba(255, 255, 255, .20);
  --texte: #EEF3FA;
  --texte-2: #B4C2D6;
  --texte-3: #8194B0;
  --rouge: #E5222B;
  --rouge-vif: #FF3B43;
  --rouge-doux: rgba(229, 34, 43, .14);
  --vert: #3CC48A;
  --titres: "Exo 2", "Segoe UI", Roboto, Arial, sans-serif;
  --corps: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --r: 14px;
  --sortie: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/*  « hidden » doit l'emporter sur display: grid ou flex (formulaires de la
 *  connexion, que connexion.js montre un par un). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; color: var(--texte); font-family: var(--corps);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(229, 34, 43, .16), transparent 60%),
    radial-gradient(800px 700px at -10% 30%, rgba(34, 86, 170, .22), transparent 60%),
    linear-gradient(180deg, var(--nuit-1), var(--nuit-0));
  background-attachment: fixed;
}
/*  Quadrillage technique, estompe vers les bords. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 85%);
}
body > * { position: relative; z-index: 1; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--titres); margin: 0; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
:focus-visible { outline: 2px solid var(--rouge-vif); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.rouge { color: var(--rouge-vif); }
.eyebrow {
  display: flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--texte-2);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge);
  box-shadow: 0 0 0 4px var(--rouge-doux), 0 0 14px var(--rouge); flex: none;
}
.lead { font-size: 1.12rem; color: var(--texte-2); max-width: 62ch; }
section { padding-block: clamp(64px, 8vw, 112px); }
.sec-head { display: grid; gap: 1rem; margin-bottom: clamp(32px, 4vw, 56px); max-width: 780px; }

/* ------------------------------------------------------------- marque */
.marque {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-family: var(--titres); font-style: italic; font-weight: 900; font-size: 1.45rem;
  letter-spacing: -.01em; color: #FFFFFF;
}
.marque .embleme { width: 40px; height: auto; flex: none; }
.marque b { color: var(--rouge); font-weight: 900; }

/*  Embleme anime : le bouclier se trace, la voiture apparait, l'anneau
 *  glisse, le repere tombe puis pulse, les ondes emettent sans fin. */
.embleme .cc-contour { stroke-dasharray: 1500; stroke-dashoffset: 1500; animation: cc-trace 1.3s var(--sortie) .1s forwards; }
.embleme .cc-interieur { opacity: 0; animation: cc-fondu .6s ease .5s forwards; }
.embleme .cc-voiture { opacity: 0; transform: translateY(6px); transform-box: fill-box;
  animation: cc-monte .7s var(--sortie) .7s forwards; }
.embleme .cc-anneau { opacity: 0; transform: translateX(-30px); transform-box: fill-box;
  animation: cc-glisse .9s var(--sortie) .9s forwards; }
.embleme .cc-repere { opacity: 0; transform: translateY(-40px); transform-box: fill-box;
  animation: cc-tombe .7s cubic-bezier(.34, 1.56, .64, 1) 1.2s forwards; }
.embleme .cc-onde { opacity: 0; animation: cc-emet 2.4s ease-in-out 1.5s infinite; }
.embleme .cc-onde-1 { animation-delay: 1.5s; }
.embleme .cc-onde-2 { animation-delay: 1.75s; }
.embleme .cc-onde-3 { animation-delay: 2s; }
@keyframes cc-trace { to { stroke-dashoffset: 0; } }
@keyframes cc-fondu { to { opacity: 1; } }
@keyframes cc-monte { to { opacity: 1; transform: none; } }
@keyframes cc-glisse { to { opacity: 1; transform: none; } }
@keyframes cc-tombe { to { opacity: 1; transform: none; } }
@keyframes cc-emet { 0%, 100% { opacity: .15; } 40%, 60% { opacity: 1; } }

/* ------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--corps); font-weight: 600; font-size: .98rem; line-height: 1.2;
  padding: .85rem 1.3rem; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--sortie), box-shadow .25s, background .2s, border-color .2s;
}
.btn-rouge {
  background: linear-gradient(180deg, var(--rouge-vif), var(--rouge)); color: #FFFFFF;
  box-shadow: 0 8px 30px -10px rgba(229, 34, 43, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-rouge:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -10px rgba(255, 59, 67, .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-contour { background: var(--verre); color: var(--texte); border-color: var(--filet-fort); }
.btn-contour:hover { border-color: var(--rouge-vif); background: var(--verre-fort); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }

/* ------------------------------------------------------------- en-tete */
header.top {
  position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
header.top.defile {
  background: rgba(5, 12, 26, .78); border-bottom-color: var(--filet);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
nav.liens { display: flex; gap: 1.6rem; font-size: .95rem; }
nav.liens a { text-decoration: none; color: var(--texte-2); position: relative; padding-block: 4px; }
nav.liens a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--rouge); transition: right .3s var(--sortie);
}
nav.liens a:hover { color: #FFFFFF; }
nav.liens a:hover::after { right: 0; }
.top .actions { display: flex; align-items: center; gap: .5rem; }
.top .btn { padding: .6rem 1rem; font-size: .9rem; }
@media (max-width: 920px) { nav.liens { display: none; } }
@media (max-width: 480px) {
  .top .wrap { gap: .5rem; }
  .marque { font-size: 1.2rem; }
  .marque .embleme { width: 32px; }
  .top .btn { padding: .5rem .7rem; font-size: .85rem; }
  .top .btn .long { display: none; }
}
@media (max-width: 360px) { .marque .mot { display: none; } }

/* ------------------------------------------------------------- hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4.4rem); font-weight: 800; }
/* Surtitre loge dans le h1 (referencement) : garde l'allure du paragraphe d'origine. */
.hero h1 .eyebrow { font-weight: 400; line-height: 1.6; margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: italic; color: transparent; padding-right: .06em;
  background: linear-gradient(100deg, #FF5A60, var(--rouge) 60%, #B3141C);
  -webkit-background-clip: text; background-clip: text;
}
.slogan { font-family: var(--titres); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .82rem; color: var(--texte-3); }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.preuves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--filet); }
.preuves div { display: grid; gap: .15rem; }
.preuves strong { font-family: var(--titres); font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.preuves div > span { font-size: .85rem; color: var(--texte-3); }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .preuves { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------- console */
.console {
  font-family: var(--mono); color: #DCE6F3; min-width: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 29, 57, .92), rgba(5, 12, 26, .95));
  border: 1px solid var(--filet-fort); border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(229, 34, 43, .08), 0 0 60px -20px rgba(229, 34, 43, .35);
}
.c-bar {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .75rem 1rem; border-bottom: 1px solid var(--filet); font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3);
}
.live { display: inline-flex; align-items: center; gap: .45rem; color: var(--vert); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); animation: cc-ping 2s infinite; }
@keyframes cc-ping { 0% { box-shadow: 0 0 0 0 rgba(60, 196, 138, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(60, 196, 138, 0); } }
.c-map { position: relative; aspect-ratio: 16 / 8.4; overflow: hidden; background: #081833; }
.c-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/*  Balayage de radar sur la carte de l'exemple. */
.c-map::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1;
  translate: -50% -50%; pointer-events: none; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(229, 34, 43, 0) 0deg, rgba(229, 34, 43, 0) 320deg, rgba(229, 34, 43, .13) 357deg, rgba(229, 34, 43, 0) 360deg);
  animation: cc-radar 6s linear infinite;
}
@keyframes cc-radar { to { rotate: 360deg; } }
.c-map .route { stroke-dasharray: 6 8; animation: cc-route 1.2s linear infinite; }
@keyframes cc-route { to { stroke-dashoffset: -28; } }
.c-map .coord { position: absolute; left: 12px; bottom: 10px; font-size: .68rem; color: var(--texte-3); letter-spacing: .06em; }
.c-map .alerte {
  position: absolute; right: 12px; top: 12px; background: var(--rouge); color: #FFFFFF; font-size: .7rem;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 5px;
  box-shadow: 0 0 20px rgba(229, 34, 43, .7); animation: cc-clignote 1.6s ease-in-out infinite;
}
@keyframes cc-clignote { 50% { box-shadow: 0 0 6px rgba(229, 34, 43, .4); } }
.c-log { list-style: none; margin: 0; padding: .4rem 0; font-size: .78rem; }
.c-log li {
  display: grid; grid-template-columns: 5.2rem 6.8rem minmax(0, 1fr); gap: .6rem; padding: .5rem 1rem;
  border-left: 3px solid transparent; animation: cc-etape 12s infinite; animation-delay: calc(var(--i) * 2s);
}
.c-log time { color: var(--texte-3); }
.c-log .k { color: var(--rouge-vif); font-weight: 600; letter-spacing: .06em; }
.c-log li:last-child .k { color: var(--vert); }
.c-log .t { min-width: 0; }
@keyframes cc-etape { 0%, 14% { background: rgba(229, 34, 43, .10); border-left-color: var(--rouge); } 17%, 100% { background: transparent; border-left-color: transparent; } }
@media (max-width: 520px) {
  .c-log li { grid-template-columns: 4.6rem minmax(0, 1fr); }
  .c-log .k { grid-column: 2; }
  .c-log .t { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------- panneaux */
.verre {
  background: linear-gradient(180deg, var(--verre-fort), var(--verre));
  border: 1px solid var(--filet); border-radius: var(--r);
}
.bande { background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .0)); border-block: 1px solid var(--filet); }

/*  La difference */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.compare article { padding: clamp(20px, 3vw, 32px); display: grid; gap: 1rem; align-content: start; }
.compare article.nous { border-color: rgba(229, 34, 43, .55); box-shadow: 0 0 50px -20px rgba(229, 34, 43, .6); background: linear-gradient(180deg, rgba(229, 34, 43, .10), rgba(229, 34, 43, .02)); }
.compare ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.compare li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .75rem; color: var(--texte-2); }
.compare li time { font-family: var(--mono); font-size: .82rem; color: var(--texte); padding-top: .1rem; }
.compare .nous li { color: var(--texte); }
.compare .nous li time { color: var(--rouge-vif); }
.compare .verdict { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding-top: .9rem; border-top: 1px solid var(--filet); color: var(--texte-3); }
.compare .nous .verdict { color: var(--rouge-vif); }
@media (max-width: 760px) { .compare { grid-template-columns: minmax(0, 1fr); } }

/*  Fonctionnement : quatre etapes reliees par une ligne qui se remplit. */
.etapes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.etapes::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 34px; height: 2px;
  background: linear-gradient(90deg, var(--rouge), rgba(229, 34, 43, .2));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--sortie) .2s;
}
.etapes.visible::before { transform: scaleX(1); }
.etape { padding: 1.3rem; display: grid; gap: .7rem; align-content: start; }
.etape .n {
  position: relative; justify-self: start; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: .78rem; font-weight: 600;
  background: var(--nuit-1); color: #FFFFFF; border: 2px solid var(--rouge); box-shadow: 0 0 16px rgba(229, 34, 43, .55);
}
.etape h3 { font-size: 1.3rem; }
.etape p { color: var(--texte-2); font-size: .97rem; }
.etape .meta { justify-self: start; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--texte-2); border: 1px solid var(--filet); border-radius: 6px; padding: .25rem .5rem; }
.puces { margin-top: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; gap: .6rem; }
.puce { font-size: .9rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--filet); background: var(--verre); }
.puce b { color: var(--rouge-vif); }
@media (max-width: 900px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .etapes::before { display: none; } }
@media (max-width: 520px) { .etapes { grid-template-columns: minmax(0, 1fr); } }

/*  Alertes */
.scen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ticket { display: grid; grid-template-rows: auto 1fr; overflow: hidden; transition: transform .3s var(--sortie), border-color .3s; }
.ticket:hover { transform: translateY(-3px); border-color: rgba(229, 34, 43, .45); }
.ticket header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; padding: 1.1rem 1.3rem; border-bottom: 1px dashed var(--filet); }
.sev { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 5px; background: var(--verre-fort); color: var(--texte-2); white-space: nowrap; }
.sev.haute { background: var(--rouge-doux); color: #FF8A8F; }
.sev.max { background: var(--rouge); color: #FFFFFF; box-shadow: 0 0 14px rgba(229, 34, 43, .6); }
.ticket dl { margin: 0; padding: 1.1rem 1.3rem 1.3rem; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .55rem 1rem; font-size: .95rem; }
.ticket dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); padding-top: .2rem; }
.ticket dd { margin: 0; color: var(--texte-2); }
.sur-mesure { margin-top: 16px; padding: 1.1rem 1.3rem; border: 1px dashed var(--filet-fort); border-radius: var(--r); color: var(--texte-2); display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; align-items: center; }
.sur-mesure strong { color: var(--texte); }
@media (max-width: 760px) { .scen { grid-template-columns: minmax(0, 1fr); } .ticket dl { grid-template-columns: minmax(0, 1fr); } }

/*  Pour qui */
.pour-qui { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.actifs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.actif { padding: 1.2rem; display: grid; gap: .55rem; align-content: start; transition: border-color .3s, transform .3s var(--sortie); }
.actif:hover { border-color: rgba(229, 34, 43, .45); transform: translateY(-2px); }
.actif svg { width: 34px; height: 34px; stroke: #FFFFFF; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.actif svg .a { stroke: var(--rouge-vif); }
.actif strong { font-size: 1rem; }
.actif span { font-size: .88rem; color: var(--texte-3); }
.parcours { display: grid; gap: 14px; margin-top: 1.8rem; }
.parcours > div { padding: 1.1rem 1.3rem; display: grid; gap: .35rem; }
.parcours .q { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.parcours b { color: var(--rouge-vif); }
@media (max-width: 860px) { .pour-qui { grid-template-columns: minmax(0, 1fr); } }

/*  Offres */
.offres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.offre { padding: 1.7rem; display: grid; grid-template-rows: auto auto 1fr; gap: 1.1rem; min-width: 0; position: relative; }
.offre.premium { border-color: rgba(229, 34, 43, .65); box-shadow: 0 0 0 1px rgba(229, 34, 43, .25), 0 0 70px -25px rgba(229, 34, 43, .8); }
.offre .tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3); }
.offre.premium .tag { color: #FFFFFF; background: var(--rouge); padding: .15rem .5rem; border-radius: 5px; }
.offre h3 { font-size: 1.7rem; }
.offre .pour { color: var(--texte-2); font-size: .95rem; margin-top: .35rem; }
.prix { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; padding-block: .9rem; border-block: 1px solid var(--filet); }
.prix .v { font-family: var(--titres); font-weight: 800; font-size: 2.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.prix .u { font-size: .85rem; color: var(--texte-3); line-height: 1.3; }
.offre ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; align-content: start; color: var(--texte-2); }
.offre li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: .6rem; }
.offre li::before { content: ""; width: 13px; height: 7px; border-left: 2px solid var(--vert); border-bottom: 2px solid var(--vert); transform: rotate(-45deg) translate(1px, 6px); }
.offre.premium li::before { border-color: var(--rouge-vif); }
.note { font-size: .85rem; color: var(--texte-3); margin-top: 18px; }
@media (max-width: 960px) { .offres { grid-template-columns: minmax(0, 1fr); } }

/*  Simulateur */
.sim { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); overflow: hidden; }
.sim form { padding: clamp(20px, 3vw, 32px); display: grid; gap: 1.4rem; }
.champ-sim { display: grid; gap: .55rem; }
.champ-sim > label, .champ-sim legend { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .55rem; min-width: 0; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opts label { display: inline-flex; gap: .45rem; align-items: center; border: 1px solid var(--filet); border-radius: 8px; padding: .5rem .75rem; font-size: .92rem; cursor: pointer; background: rgba(0, 0, 0, .2); transition: border-color .2s, background .2s; }
.opts label:has(input:checked) { border-color: var(--rouge); background: var(--rouge-doux); }
.opts input { accent-color: var(--rouge); margin: 0; }
.opts label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.num { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.num input[type=number] { font: inherit; font-size: 1.2rem; font-weight: 600; width: 6.5rem; padding: .5rem .7rem; border: 1px solid var(--filet-fort); border-radius: 8px; background: rgba(0, 0, 0, .25); color: var(--texte); font-variant-numeric: tabular-nums; }
.num input[type=range] { flex: 1; min-width: 140px; accent-color: var(--rouge); }
.sim-sortie { padding: clamp(20px, 3vw, 32px); display: grid; gap: 1.2rem; align-content: start; background: linear-gradient(160deg, rgba(229, 34, 43, .22), rgba(229, 34, 43, .04) 55%), var(--nuit-2); border-left: 1px solid var(--filet); }
.grand { font-family: var(--titres); font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.grand small { font-family: var(--corps); font-size: .95rem; font-weight: 500; color: var(--texte-3); margin-left: .3rem; }
.lignes { display: grid; gap: .5rem; font-size: .95rem; border-top: 1px solid var(--filet); padding-top: 1rem; }
.lignes div { display: flex; justify-content: space-between; gap: 1rem; }
.lignes span { color: var(--texte-3); }
.lignes b { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.lignes .tot { border-top: 1px solid var(--filet); padding-top: .6rem; margin-top: .2rem; }
.fin { font-size: .8rem; color: var(--texte-3); }
.tableau { overflow-x: auto; margin-top: 28px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--filet); vertical-align: top; }
th { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); font-weight: 500; }
td.p { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td small { color: var(--texte-3); display: block; font-size: .85rem; }
@media (max-width: 860px) { .sim { grid-template-columns: minmax(0, 1fr); } .sim-sortie { border-left: 0; border-top: 1px solid var(--filet); } }

/*  Contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.contact h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); }
.cartes { display: grid; gap: 12px; }
.ccarte { padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ccarte .l { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.ccarte .v { font-size: 1.1rem; font-weight: 600; word-break: break-all; }
.ccarte .v a { text-decoration: none; }
.ccarte .v a:hover { color: var(--rouge-vif); }
.copier { font: inherit; font-size: .85rem; border: 1px solid var(--filet-fort); background: transparent; color: var(--texte); border-radius: 8px; padding: .4rem .75rem; cursor: pointer; }
.copier:hover { border-color: var(--rouge-vif); }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); } }

/*  Pied de page */
footer.pied { border-top: 1px solid var(--filet); padding-block: 36px; margin-top: clamp(40px, 6vw, 80px); background: rgba(0, 0, 0, .25); }
footer.pied .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; font-size: .85rem; color: var(--texte-3); }
footer.pied .lien { color: var(--texte-2); text-decoration: underline; text-decoration-color: var(--rouge); text-underline-offset: 3px; }

/* ------------------------------------------------------------- apparitions */
.js [data-apparait] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--sortie), transform .8s var(--sortie); }
.js [data-apparait].visible { opacity: 1; transform: none; }
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: cc-monte .9s var(--sortie) forwards; }
.js .hero-copy > :nth-child(2) { animation-delay: .12s; }
.js .hero-copy > :nth-child(3) { animation-delay: .24s; }
.js .hero-copy > :nth-child(4) { animation-delay: .36s; }
.js .hero-copy > :nth-child(5) { animation-delay: .48s; }
.js .hero .console { opacity: 0; transform: translateY(24px) scale(.98); animation: cc-monte 1s var(--sortie) .35s forwards; }

/* ------------------------------------------------------------- mentions */
.legal { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 96px); }
.legal .wrap { max-width: 840px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 800; margin: .6rem 0 .8rem; }
.legal h2 { font-size: 1.35rem; margin: 2.6rem 0 .9rem; padding-top: 1.2rem; border-top: 1px solid var(--filet); }
.legal h3 { font-family: var(--corps); font-size: 1.02rem; font-weight: 600; margin: 1.4rem 0 .4rem; }
.legal p, .legal li { color: var(--texte-2); }
.legal p + p { margin-top: .7rem; }
.legal ul { padding-left: 1.2rem; margin: .5rem 0 0; display: grid; gap: .35rem; }
.legal strong { color: var(--texte); }
.legal a { color: var(--texte); text-decoration-color: var(--rouge); text-underline-offset: 3px; }
.legal .maj { color: var(--texte-3); font-size: .92rem; }
.fiche-legale { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: .55rem 1.2rem; margin: 0; padding: 1.1rem 1.3rem; }
.fiche-legale dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); padding-top: .2rem; }
.fiche-legale dd { margin: 0; color: var(--texte); }
.fiche-legale + p { margin-top: .9rem; }
@media (max-width: 640px) { .fiche-legale { grid-template-columns: minmax(0, 1fr); } .fiche-legale dt { padding-top: .5rem; } }

/* ------------------------------------------------------------- connexion */
.page-connexion { display: grid; place-items: center; padding: 24px 16px; overflow-x: hidden; }
/*  Cercles de radar derriere la carte, et un balayage lent. */
.radar {
  position: fixed; left: 50%; top: 50%; width: min(1100px, 160vmax); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, .05) 0 1px, transparent 1px 90px),
    conic-gradient(from 0deg, transparent 0deg 310deg, rgba(229, 34, 43, .16) 355deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  animation: cc-radar 9s linear infinite;
}
.connexion { width: min(440px, 100%); display: grid; gap: 26px; justify-items: center; }
.connexion .marque { flex-direction: column; gap: .8rem; font-size: 2.4rem; }
.connexion .marque .embleme { width: 112px; filter: drop-shadow(0 10px 30px rgba(229, 34, 43, .35)); }
.connexion .slogan { text-align: center; margin-top: -14px; font-size: .74rem; }
.carte-connexion { width: 100%; padding: 30px 28px 28px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(18px); animation: cc-monte .9s var(--sortie) .5s forwards; }
.formulaire { display: grid; gap: 16px; }
.kicker { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); }
.kicker-accent { color: var(--rouge-vif); }
.titre-connexion { font-size: 1.7rem; font-weight: 800; margin-top: .3rem; }
.champ { display: grid; gap: 6px; }
.champ > span { font-size: .85rem; color: var(--texte-2); font-weight: 500; }
.saisie {
  font: inherit; width: 100%; padding: .8rem .9rem; border-radius: 10px; color: var(--texte);
  background: rgba(0, 0, 0, .28); border: 1px solid var(--filet-fort); transition: border-color .2s, box-shadow .2s;
}
.saisie:focus { outline: none; border-color: var(--rouge-vif); box-shadow: 0 0 0 4px var(--rouge-doux); }
.saisie::placeholder { color: var(--texte-3); }
.message-erreur { margin: 0; padding: .65rem .8rem; border-radius: 8px; font-size: .9rem; color: #FFC9CB; background: rgba(229, 34, 43, .16); border: 1px solid rgba(229, 34, 43, .45); }
.message-erreur[hidden] { display: none; }
.aide { color: var(--texte-2); font-size: .92rem; margin-top: .4rem; }
.aide code, .carte-connexion code { font-family: var(--mono); font-size: .82rem; color: var(--texte); }
.btn-large { width: 100%; padding-block: .95rem; font-size: 1rem; }
.retour { font-size: .88rem; color: var(--texte-3); text-decoration: none; }
.retour:hover { color: var(--texte); }

/* ------------------------------------------------------------- sobriete */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .embleme .cc-contour { stroke-dashoffset: 0; }
  .embleme .cc-interieur, .embleme .cc-voiture, .embleme .cc-anneau, .embleme .cc-repere, .embleme .cc-onde { opacity: 1; transform: none; }
  .js [data-apparait], .js .hero-copy > *, .js .hero .console, .carte-connexion { opacity: 1; transform: none; }
  .vehicule-anim { display: none; }
}
