/* SentiaSec : le quiz et le test de domaine, en français et en anglais.

   Feuille commune plutôt que du style en ligne comme sur les autres pages :
   quatre pages portent exactement le même dessin, et quatre copies finiraient
   par diverger. Mêmes jetons que l'accueil, même police auto-hébergée (aucune
   adresse IP ne part chez un tiers pour afficher ces pages).

   Parti pris : aucune boîte décorative, seulement des filets de 1 px et du vide.
   Le seul effet est celui de l'accueil, le trait cyan sous un mot : ici, il se
   dessine sous chaque indice quand le courriel est démasqué. */
@font-face{font-family:'Switzer';src:url('/fonts/Switzer-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Switzer';src:url('/fonts/Switzer-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;}

:root{
  --bg:#05060a;
  --txt:#f1eee7;
  --txt-2:rgba(241,238,231,.68);
  --txt-3:#8e8d8a;
  --rule:rgba(241,238,231,.15);
  --rule-2:rgba(241,238,231,.08);
  --accent:#00dce5;
  --sans:'Switzer','Helvetica Neue',Helvetica,Arial,sans-serif;
  --gut:clamp(1.4rem,5vw,4rem);
}

*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  background:var(--bg);
  color:var(--txt);
  font-family:var(--sans);
  font-size:clamp(1rem,.98rem + .15vw,1.075rem);
  font-weight:400;
  line-height:1.58;
  letter-spacing:-.011em;
  -webkit-font-smoothing:antialiased;
  /* Le test de domaine est court avant la lecture : sans ça, le pied de page
     flotterait au milieu d'un grand écran. */
  display:flex;flex-direction:column;min-height:100vh;min-height:100svh;
}
main{flex:1 0 auto;}
p{margin:0;}
ul,ol,dl,dd{margin:0;padding:0;list-style:none;}
a{color:inherit;text-decoration:none;}
svg{display:block;}
::selection{background:var(--txt);color:var(--bg);}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
/* Un conteneur qui reçoit le focus par script n'est pas un bouton. */
[tabindex="-1"]:focus{outline:none;}
/* Sans ça, un display:grid de classe l'emporte sur l'attribut hidden. */
[hidden]{display:none!important;}
h1,h2,h3{font-weight:500;margin:0;letter-spacing:-.03em;}

.wrap{width:100%;max-width:1240px;margin-inline:auto;padding-inline:var(--gut);}
.col{width:100%;max-width:calc(44rem + 2 * var(--gut));margin-inline:auto;padding-inline:var(--gut);}
.meta{font-size:.875rem;color:var(--txt-3);}

.skip{
  position:absolute;left:var(--gut);top:-4rem;z-index:10;
  background:var(--txt);color:var(--bg);font-weight:500;
  padding:.6rem 1rem;transition:top .15s ease;
}
.skip:focus{top:1rem;}

/* ---------- En-tête et pied : mêmes règles que les autres pages ---------- */
.nav{padding-block:1.7rem;}
.nav-in{display:flex;align-items:center;justify-content:space-between;gap:1rem;}
.brand{display:flex;align-items:center;gap:.55rem;font-weight:500;font-size:1.02rem;letter-spacing:-.024em;}
.brand svg{width:20px;height:30px;flex:none;overflow:visible;}
.brand span{text-transform:uppercase;font-size:.9rem;letter-spacing:.06em;}
.lang{
  font-size:.9rem;color:var(--txt-2);letter-spacing:.02em;
  padding:.5rem .15rem;border-bottom:1px solid transparent;
  transition:color .18s ease,border-color .18s ease;
}
.lang:hover{color:var(--txt);border-color:var(--rule);}

.footer{padding-block:1.9rem 2.4rem;border-top:1px solid var(--rule-2);}
.footer-in{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem 2rem;}
.footer-in *{font-size:.85rem;color:var(--txt-3);}
.footer-in a:hover{color:var(--txt);}
.footer-links{display:flex;flex-wrap:wrap;gap:.5rem 1.6rem;}

/* ---------- Boutons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--txt);color:var(--bg);border:0;border-radius:0;cursor:pointer;
  font-family:inherit;font-weight:500;font-size:.975rem;letter-spacing:-.014em;
  padding:.85rem 1.6rem;min-height:46px;
  transition:background .18s ease,color .18s ease,opacity .18s ease;
}
.btn:hover{background:#fff;}
.btn[disabled]{opacity:.55;cursor:default;}

/* ---------- Titre de page ---------- */
.outil{padding-block:clamp(1.25rem,3.4vw,2.5rem) clamp(4rem,9vw,7rem);overflow-wrap:break-word;}
.tete{text-align:center;}
.tete h1{font-size:clamp(2.2rem,5.6vw,3.6rem);line-height:1.05;letter-spacing:-.034em;text-wrap:balance;}
.lede{
  margin:1.1rem auto 0;max-width:42ch;
  font-size:clamp(1.05rem,1rem + .3vw,1.2rem);line-height:1.5;color:var(--txt-2);text-wrap:balance;
}
.tete .meta{margin-top:.8rem;}

/* Le mot surligné de l'accueil, à l'identique. L'état final est l'état de base :
   si l'animation ne joue pas, le mot reste surligné. */
.hl{position:relative;white-space:nowrap;color:var(--accent);animation:hl-color .75s ease .5s backwards;}
.hl::after{
  content:"";position:absolute;left:0;right:0;bottom:.07em;height:.048em;
  background:var(--accent);border-radius:1px;transform-origin:0 50%;
  animation:hl-rule .95s cubic-bezier(.22,.72,.2,1) .55s backwards;
}
@keyframes hl-color{from{color:var(--txt);}}
@keyframes hl-rule{from{transform:scaleX(0);}}

/* ---------- Quiz ---------- */
.quiz{margin-top:clamp(2rem,4vw,2.75rem);scroll-margin-top:1rem;}

/* La progression est un filet coupé en cinq : pas de barre, pas de pastille. */
.barre{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.35rem;}
.barre i{display:block;height:2px;background:var(--rule);transition:background .3s ease;}
.barre i.courant{background:var(--txt);}
.barre i.juste{background:var(--accent);}
.barre i.rate{background:var(--txt-3);}

.mel-contexte{margin-top:1rem;color:var(--txt-2);font-size:.975rem;line-height:1.5;}
/* EXEMPLE FICTIF deux fois : au-dessus de l'en-tête pour qui lit la page, et sur
   la dernière ligne du courriel. Celle du haut reste hors de l'en-tête : c'est la
   seconde qu'une capture du courriel seul, de « De » à la signature, emporte. */
.mel-haut{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-top:1.1rem;}
.mel-compte{font-size:.875rem;color:var(--txt-3);}
.fictif{font-size:.74rem;font-weight:500;letter-spacing:.1em;color:var(--txt-2);white-space:nowrap;}

.mel-tete{margin-top:.45rem;border-top:1px solid var(--rule);}
.mel-tete > div{
  display:grid;grid-template-columns:5.9rem minmax(0,1fr);gap:.75rem;
  padding-block:.62rem;border-bottom:1px solid var(--rule-2);
}
.mel-tete dt{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--txt-3);padding-top:.24rem;}
.mel-nom{display:block;}
.mel-adresse{display:block;color:var(--txt-2);font-size:.92rem;overflow-wrap:anywhere;}
.mel-corps{display:grid;gap:.62rem;padding-block:1.15rem 1.25rem;border-bottom:1px solid var(--rule);}
.mel-corps p{overflow-wrap:anywhere;}
.mel-fin{color:var(--txt-2);}
/* Un faux lien ne se clique pas : il se montre, et c'est tout. */
.mel-lien{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;text-decoration-color:var(--txt-2);}

/* L'indice : invisible avant la réponse. Le dégradé plutôt qu'un ::after pour
   que le trait suive le texte quand il passe à la ligne. */
.ind{
  background-image:linear-gradient(var(--accent),var(--accent));
  background-repeat:no-repeat;background-position:0 100%;background-size:0 2px;
  padding-bottom:1px;
}
.ind[data-n="2"]{--d:.22s;}
.ind[data-n="3"]{--d:.44s;}
.revele .ind{
  color:var(--accent);background-size:100% 2px;
  transition:color .3s ease var(--d,0s),background-size .55s cubic-bezier(.22,.72,.2,1) var(--d,0s);
}
.revele .ind::after{
  content:attr(data-n);font-size:.68em;font-weight:500;vertical-align:.5em;line-height:0;margin-left:.16em;
}
.revele .mel-lien{text-decoration-color:transparent;}

.choix{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.75rem;margin-top:1.35rem;}
.choix button{
  font-family:inherit;font-size:.975rem;font-weight:500;letter-spacing:-.014em;
  min-height:52px;padding:.7rem .9rem;cursor:pointer;
  background:transparent;color:var(--txt);border:1px solid var(--rule);border-radius:0;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.choix button:hover{background:var(--txt);color:var(--bg);border-color:var(--txt);}

.apres{margin-top:1.35rem;}
.v-titre{font-size:clamp(1.35rem,2.6vw,1.75rem);font-weight:500;line-height:1.18;letter-spacing:-.026em;}
.apres.juste .v-titre{color:var(--accent);}
.v-nature{margin-top:.3rem;color:var(--txt-2);}
.lignes{margin-top:1rem;display:grid;gap:.5rem;}
.lignes li{display:flex;gap:.75rem;line-height:1.45;}
.n{flex:none;min-width:1.05rem;color:var(--accent);font-weight:500;font-variant-numeric:tabular-nums;}
.suite{margin-top:1.6rem;}
#suivant{min-width:13rem;}

/* ---------- Fin du quiz ---------- */
.fin{margin-top:clamp(2.25rem,5vw,3.25rem);scroll-margin-top:1rem;}
.score{
  text-align:center;color:var(--accent);font-weight:500;line-height:1;letter-spacing:-.04em;
  font-size:clamp(3.2rem,11vw,5.6rem);
}
.fin .barre{margin:1.5rem auto 0;max-width:15rem;}
.fin h2{margin-top:clamp(2.5rem,6vw,3.5rem);text-align:center;font-size:clamp(1.5rem,3.2vw,2.1rem);line-height:1.12;}
.reflexes{margin-top:1.4rem;border-top:1px solid var(--rule);}
.reflexes li{display:flex;gap:1rem;padding-block:1rem;border-bottom:1px solid var(--rule-2);}
.reflexes .n{font-size:1.1rem;}
.reflexes h3{font-size:1.1rem;line-height:1.3;letter-spacing:-.017em;}
.reflexes p{margin-top:.2rem;color:var(--txt-2);}
.fin .borne{margin-top:1.25rem;text-align:center;}

/* ---------- Appel final ---------- */
.appel{margin-top:clamp(2.75rem,6vw,4rem);padding-top:clamp(2.25rem,5vw,3.25rem);border-top:1px solid var(--rule);text-align:center;}
.appel h2{margin-top:0;font-size:clamp(1.5rem,3.4vw,2.2rem);line-height:1.12;max-width:24ch;margin-inline:auto;text-wrap:balance;}
.appel p{margin:.9rem auto 0;max-width:44ch;color:var(--txt-2);text-wrap:balance;}
.appel .btn{margin-top:1.5rem;}
.appel .meta{margin-top:1rem;color:var(--txt-3);}

/* ---------- Test de domaine ---------- */
.lecture{margin-top:clamp(2.25rem,5vw,3.25rem);scroll-margin-top:1rem;}
.lecture label{display:block;font-size:.95rem;color:var(--txt-2);}
.champ{display:flex;gap:1rem;align-items:flex-end;margin-top:.15rem;}
.champ input{
  flex:1;min-width:0;width:100%;
  background:transparent;border:0;border-bottom:1px solid var(--rule);border-radius:0;
  color:var(--txt);font-family:inherit;font-size:clamp(1.2rem,1rem + .9vw,1.5rem);letter-spacing:-.02em;
  padding:.6rem 0;min-height:52px;
  transition:border-color .18s ease;
}
.champ input:hover{border-bottom-color:var(--txt-3);}
/* Le filet devient cyan : c'est la seule trace du focus, elle doit se voir. */
.champ input:focus{outline:none;border-bottom-color:var(--accent);box-shadow:0 1px 0 0 var(--accent);}
.champ .btn{flex:none;}
/* Même carré cyan que les listes de l'accueil : le texte s'aligne à côté. */
.erreur{display:flex;gap:.7rem;margin-top:.75rem;color:var(--txt);}
.erreur::before{content:"";flex:none;width:6px;height:6px;margin-top:.6em;background:var(--accent);}
.lecture .meta{margin-top:.85rem;}

.etat{text-align:center;color:var(--txt-2);font-size:.95rem;}
.etat:not(:empty){margin-top:2.25rem;}
/* Un filet qui balaye : on lit, ce n'est pas figé. */
.etat:not(:empty)::after{
  content:"";display:block;height:1px;max-width:12rem;margin:.75rem auto 0;
  background:linear-gradient(90deg,transparent,var(--accent),transparent) no-repeat;
  background-size:45% 100%;animation:balayage 1s ease-in-out infinite alternate;
}
@keyframes balayage{from{background-position:0 0;}to{background-position:100% 0;}}

.resultat{margin-top:clamp(2.75rem,6vw,4rem);padding-top:clamp(2rem,5vw,3rem);border-top:1px solid var(--rule);scroll-margin-top:1rem;}
/* Au-dessus du verdict : lu avant lui, sinon le visiteur prend le verdict pour le sien. */
.r-avis{margin:0 auto 1.5rem;max-width:46ch;text-align:center;color:var(--txt);text-wrap:balance;}
.r-tete{text-align:center;}
.r-domaine{font-size:1.05rem;font-weight:500;color:var(--accent);overflow-wrap:anywhere;}
.r-date{margin-top:.15rem;}
.niveaux{display:grid;grid-template-columns:repeat(3,2.6rem);gap:.35rem;justify-content:center;margin-top:1.5rem;}
.niveaux i{display:block;height:2px;background:var(--rule);}
.niveaux[data-niveau="bloque"] i,
.niveaux[data-niveau="partiel"] i:nth-child(-n+2),
.niveaux[data-niveau="aucun"] i:first-child{background:var(--accent);}
.r-tete h2{margin-top:.95rem;font-size:clamp(1.95rem,4.8vw,3rem);line-height:1.06;letter-spacing:-.032em;text-wrap:balance;}
.r-phrase{margin:.8rem auto 0;max-width:46ch;color:var(--txt-2);text-wrap:balance;}

/* Mêmes lignes que les listes « specs » de l'accueil. */
.lu{margin-top:clamp(2rem,5vw,2.75rem);border-top:1px solid var(--rule);}
.lu > div{
  display:grid;grid-template-columns:13.5rem minmax(0,1fr);gap:1.5rem;
  padding-block:1.05rem;border-bottom:1px solid var(--rule-2);
}
.lu dt{color:var(--txt-3);font-size:.95rem;}
.lu-etat{font-weight:500;}
.lu-texte{margin-top:.15rem;color:var(--txt-2);font-size:.975rem;line-height:1.5;}
.lu dd.long{color:var(--txt-2);font-size:.975rem;line-height:1.5;}
.ligne-lue{animation:entree .4s ease calc(var(--i,0) * 70ms) backwards;}
@keyframes entree{from{opacity:0;transform:translateY(4px);}}

.brut{border-bottom:1px solid var(--rule-2);}
.brut summary{
  cursor:pointer;list-style:none;
  display:flex;justify-content:space-between;align-items:baseline;gap:1.5rem;
  padding-block:.95rem;color:var(--txt-2);font-size:.95rem;
}
.brut summary::-webkit-details-marker{display:none;}
.brut summary::after{content:"+";flex:none;color:var(--accent);font-size:1.3rem;line-height:1;transition:transform .2s ease;}
.brut[open] summary::after{transform:rotate(45deg);}
.brut-groupe{padding-bottom:1rem;}
.brut-groupe p{font-size:.8rem;letter-spacing:.08em;color:var(--txt-3);}
.brut-groupe code{
  display:block;margin-top:.3rem;color:var(--txt-2);overflow-wrap:anywhere;
  font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace;font-size:.82rem;line-height:1.5;
}
.r-borne{margin-top:1rem;text-align:center;}

/* ---------- Tablette et téléphone ---------- */
@media (max-width:620px){
  .footer-in{flex-direction:column;gap:.35rem;}
  .mel-tete > div{grid-template-columns:4.9rem minmax(0,1fr);gap:.5rem;}
  .mel-tete dt{font-size:.68rem;letter-spacing:.06em;}
  /* Le courriel et son verdict doivent tenir sur un écran de téléphone. */
  .mel-tete > div{padding-block:.5rem;}
  .mel-corps{gap:.48rem;padding-block:.9rem 1rem;}
  .apres{margin-top:1rem;}
  .lignes{margin-top:.7rem;gap:.35rem;}
  .suite{margin-top:1.15rem;}
  .champ{flex-direction:column;align-items:stretch;gap:1rem;}
  .champ .btn{width:100%;}
  .lu > div{grid-template-columns:1fr;gap:.15rem;padding-block:.9rem;}
  .lu dt{font-size:.875rem;}
  .appel .btn,#suivant{width:100%;max-width:22rem;}
}

@media (prefers-reduced-motion:reduce){
  .hl{animation:none;color:var(--accent);}
  .hl::after{animation:none;transform:scaleX(1);}
  .ind,.revele .ind{transition:none;}
  .barre i{transition:none;}
  .etat:not(:empty)::after{animation:none;background-position:50% 0;}
  .ligne-lue{animation:none;}
}

/* Un résultat s'imprime pour le remettre au TI : texte sombre sur papier blanc. */
@media print{
  :root{--txt:#000;--txt-2:#222;--txt-3:#444;--rule:#999;--rule-2:#ccc;--accent:#000;}
  body{background:#fff;color:#000;}
  .skip,.nav,.lecture,.etat,.appel,.choix,.suite{display:none!important;}
  .resultat{margin-top:0;border-top:0;}
}
