/* VisiSécur — identité de la bannière validée : bleu nuit, bleu lumineux, doré. Aucune police externe. */
:root {
  --nuit: #060F2B; --nuit-2: #0B1A40; --nuit-3: #12275A; --carte: rgba(18, 39, 90, .62); --ligne: rgba(120, 170, 255, .18);
  --bleu: #33B5FF; --bleu-2: #1F7BFF; --or: #F2B33D; --or-2: #FFD66B; --texte: #E9F0FF; --doux: #A9B8D8;
  --vert: #3DD68C; --rouge: #FF6B5E; --orange: #FFA94D;
  --ombre: 0 18px 50px rgba(0, 0, 0, .35); --rayon: 18px;
  --titres: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--titres); color: var(--texte); background: var(--nuit);
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(51, 181, 255, .18), transparent 60%),
                    radial-gradient(900px 500px at -10% 20%, rgba(242, 179, 61, .10), transparent 60%); min-height: 100vh; }
a { color: var(--bleu); }
a:hover { color: var(--or-2); }
img { max-width: 100%; height: auto; }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 12px; top: 12px; background: var(--or); color: var(--nuit); padding: .4rem .8rem; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.conteneur { width: min(1180px, 100% - 32px); margin: 0 auto; }

/* bandeau */
.bandeau { position: sticky; top: 0; z-index: 50; background: rgba(6, 15, 43, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne); }
.bandeau .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 800 1.45rem/1 var(--titres); letter-spacing: -.02em; }
.marque img { width: 42px; height: 42px; }
.marque .visi { color: #fff; } .marque .secur { color: var(--bleu); }
.nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.nav a { color: var(--doux); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.actif { color: #fff; }
.nav form { margin: 0; display: inline; }

/* boutons */
.btn, button.btn { display: inline-flex; align-items: center; gap: .4rem; border: 0; border-radius: 999px; padding: .75rem 1.4rem;
  font: 700 1rem var(--titres); cursor: pointer; text-decoration: none; color: var(--nuit);
  background: linear-gradient(180deg, var(--or-2), var(--or)); box-shadow: 0 8px 24px rgba(242, 179, 61, .35); }
.btn:hover { filter: brightness(1.06); color: var(--nuit); }
.btn.second { background: transparent; color: #fff; border: 1.5px solid var(--bleu); box-shadow: none; }
.btn.second:hover { background: rgba(51, 181, 255, .12); }
.btn.petit { padding: .45rem .95rem; font-size: .9rem; }
.btn.danger { background: transparent; color: var(--rouge); border: 1.5px solid var(--rouge); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.lien { background: none; border: 0; color: var(--bleu); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* héros */
.heros { padding: 3rem 0 2rem; }
.heros .grille-h { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.4rem; align-items: center; }
.surtitre { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800;
  color: var(--or-2); background: rgba(242, 179, 61, .12); border: 1px solid rgba(242, 179, 61, .35); border-radius: 999px; padding: .3rem .8rem; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; margin: .8rem 0; letter-spacing: -.02em; }
h1 .accent { background: linear-gradient(90deg, var(--or-2), var(--or)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; margin: 0 0 .6rem; }
h3 { margin: .2rem 0 .4rem; }
.chapo { font-size: 1.15rem; color: var(--doux); max-width: 640px; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.4rem 0; }
.banniere { border-radius: 22px; box-shadow: var(--ombre), 0 0 0 1px var(--ligne); }
.section { padding: 3rem 0; }
.centre { text-align: center; }
.doux { color: var(--doux); }
.petit { font-size: .88rem; }

/* cartes */
.grille { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.carte.or { border-color: rgba(242, 179, 61, .45); }
.carte h3 { color: #fff; }
.icone { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(51, 181, 255, .25), rgba(242, 179, 61, .2)); border: 1px solid var(--ligne); }
.liste { padding-left: 1.1rem; } .liste li { margin: .3rem 0; }
.coches { list-style: none; padding: 0; } .coches li::before { content: "✓"; color: var(--vert); font-weight: 800; margin-right: .5rem; }
.etapes { counter-reset: e; list-style: none; padding: 0; display: grid; gap: .9rem; }
.etapes li { counter-increment: e; padding-left: 3rem; position: relative; }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--nuit); background: linear-gradient(180deg, var(--or-2), var(--or)); }

/* formulaires */
form.pile { display: grid; gap: .9rem; }
label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--ligne); background: rgba(6, 15, 43, .7);
  color: var(--texte); font: inherit; }
label.case { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
label.case input { margin-top: .3rem; }
.etroit { max-width: 480px; margin: 2.5rem auto; }
.piege { position: absolute; left: -5000px; }

/* notes */
.note { border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; border: 1px solid var(--ligne); background: rgba(51, 181, 255, .08); }
.note.ok { border-color: rgba(61, 214, 140, .5); background: rgba(61, 214, 140, .1); }
.note.ko { border-color: rgba(255, 107, 94, .55); background: rgba(255, 107, 94, .1); }
.note.or { border-color: rgba(242, 179, 61, .5); background: rgba(242, 179, 61, .08); }

/* application */
.app { display: grid; grid-template-columns: 230px 1fr; gap: 1.6rem; padding: 1.6rem 0 3rem; }
.menu { display: grid; gap: .3rem; align-content: start; position: sticky; top: 84px; }
.menu a { color: var(--doux); text-decoration: none; padding: .55rem .8rem; border-radius: 10px; font-weight: 600; }
.menu a.actif, .menu a:hover { background: rgba(51, 181, 255, .12); color: #fff; }
.menu .quota { font-size: .82rem; color: var(--doux); padding: .2rem .8rem; }
.jauge { height: 5px; background: rgba(255, 255, 255, .1); border-radius: 9px; overflow: hidden; margin-top: .2rem; }
.jauge i { display: block; height: 100%; background: linear-gradient(90deg, var(--bleu), var(--or)); }
.tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.note-lettre { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; font: 900 2.6rem var(--titres);
  color: var(--nuit); background: linear-gradient(180deg, var(--or-2), var(--or)); box-shadow: 0 10px 30px rgba(242, 179, 61, .35); }
.note-lettre.C, .note-lettre.D { background: linear-gradient(180deg, #FFC27A, var(--orange)); }
.note-lettre.E { background: linear-gradient(180deg, #FF9A8F, var(--rouge)); }
.pastille { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800;
  border: 1px solid var(--ligne); background: rgba(255, 255, 255, .06); }
.pastille.critique { color: #fff; background: #B42318; border-color: #B42318; }
.pastille.haute { color: #fff; background: #D9480F; border-color: #D9480F; }
.pastille.moyenne { color: var(--nuit); background: var(--or); border-color: var(--or); }
.pastille.faible { color: #fff; background: #2F6FB3; border-color: #2F6FB3; }
.pastille.ok, .pastille.verifie { color: var(--nuit); background: var(--vert); border-color: var(--vert); }
.pastille.ko, .pastille.annule_auto { color: #fff; background: var(--rouge); border-color: var(--rouge); }
.defile { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
th { color: var(--doux); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.constat { border-left: 4px solid var(--ligne); padding: .8rem 1rem; margin: .7rem 0; border-radius: 0 12px 12px 0; background: rgba(6, 15, 43, .45); }
.constat.critique { border-color: #FF4D3D; } .constat.haute { border-color: #FF8A3D; } .constat.moyenne { border-color: var(--or); }
.constat.faible { border-color: #4A90E2; }
.preuve { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; color: #C9D7F5; word-break: break-word; }
pre.diff { background: #050C22; border: 1px solid var(--ligne); border-radius: 12px; padding: 1rem; overflow-x: auto; font-size: .82rem; }
pre.code { background: #050C22; border: 1px solid var(--ligne); border-radius: 10px; padding: .6rem .8rem; white-space: pre-wrap; word-break: break-all; }
details summary { cursor: pointer; font-weight: 700; color: var(--bleu); }

/* pied */
.pied { border-top: 1px solid var(--ligne); padding: 2.4rem 0; color: var(--doux); font-size: .92rem; margin-top: 2rem; }
.pied .grille-p { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.4rem; }
.pied a { display: block; color: var(--doux); text-decoration: none; margin: .2rem 0; }
.pied a:hover { color: #fff; }
.pied h2 { font-size: .9rem; color: var(--or-2); text-transform: uppercase; letter-spacing: .08em; }
.texte-legal { max-width: 860px; }

@media (max-width: 900px) {
  .heros .grille-h { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .menu { position: static; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .pied .grille-p { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav { gap: .7rem; font-size: .9rem; }
  .marque { font-size: 1.25rem; }
  .carte { padding: 1.05rem; }
  .btn { width: 100%; justify-content: center; }
  .actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.bandeau-preprod { margin: 0; border-radius: 0; }
.mt { margin-top: 1.4rem; }
.jauge i.j0 { width: 2%; } .jauge i.j10 { width: 10%; } .jauge i.j20 { width: 20%; } .jauge i.j30 { width: 30%; }
.jauge i.j40 { width: 40%; } .jauge i.j50 { width: 50%; } .jauge i.j60 { width: 60%; } .jauge i.j70 { width: 70%; }
.jauge i.j80 { width: 80%; } .jauge i.j90 { width: 90%; } .jauge i.j100 { width: 100%; }
fieldset { border: 1px solid var(--ligne); border-radius: 12px; display: grid; gap: .6rem; }
.nav a.btn, .nav a.btn:hover { color: var(--nuit); }

/* Héros de l'accueil : la bannière validée en pleine largeur, comme l'archère d'ARTÉMIS */
.heros-image { position: relative; overflow: hidden; }
.heros-visuel { position: relative; width: 100%; max-width: 1752px; margin: 0 auto; aspect-ratio: 1752 / 897;
  -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 4%), linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(0deg, transparent 0, #000 4%), linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-composite: intersect; }
.heros-visuel img { display: block; width: 100%; height: 100%; object-fit: cover; animation: heros-respire 14s ease-in-out infinite alternate; transform-origin: 30% 40%; }
.heros-eclat { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 225, 160, .28) 50%, transparent 60%); background-size: 250% 100%;
  animation: heros-balaye 7s ease-in-out infinite; }
.heros-bouton { position: absolute; left: 69%; top: 83%; width: 28%; height: 11%; border-radius: 999px; }
.heros-bouton:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.heros-texte { text-align: center; max-width: 860px; }
.heros-texte .chapo { margin-left: auto; margin-right: auto; }
.heros-texte .actions { justify-content: center; }
@keyframes heros-respire { to { transform: scale(1.03); } }
@keyframes heros-balaye { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .heros-visuel img, .heros-eclat { animation: none; } }
