/* AUGURE - audit de sécurité web. Thème sombre, accent or (l'œil de l'augure). */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-variable.8e433c0592f7.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --fond: #090b11;
  --fond-2: #0e1119;
  --panneau: #12161f;
  --panneau-2: #171c28;
  --ligne: #212737;
  --ligne-forte: #2e3649;
  --texte: #e9ebf1;
  --muted: #9ba3b4;
  --subtil: #6b7386;
  --or: #e8b04b;
  --or-clair: #f5d38e;
  --or-fonce: #b9842a;
  --ok: #4ade80;
  --info: #60a5fa;
  --faible: #facc15;
  --moyenne: #fb923c;
  --haute: #f87171;
  --critique: #ef4444;
  --rayon: 14px;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 500px at 50% -120px, rgb(232 176 75 / 0.09), transparent 70%), var(--fond);
  color: var(--texte); font: 15px/1.6 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: var(--or); text-decoration: none; }
a:hover { color: var(--or-clair); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; line-height: 1.25; }
h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 750; }
h2 { font-size: 19px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 620; }
h4 { font-size: 15px; font-weight: 600; }
p { margin: 0.5em 0; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--panneau-2); border: 1px solid var(--ligne); border-radius: 6px; padding: 1px 6px; }
.muted { color: var(--muted); }
.subtil { color: var(--subtil); }
.petit { font-size: 13px; }
.droite { text-align: right; }
.coupe { word-break: break-all; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.en-ligne { display: inline; }

.cadre { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.principal { flex: 1; padding-top: 28px; padding-bottom: 56px; }

/* ─── En-tête et pied ─── */
.haut { position: sticky; top: 0; z-index: 10; background: rgb(9 11 17 / 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
.haut-cadre { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--texte); }
.marque:hover { color: var(--texte); }
.logo { width: 36px; height: 36px; color: var(--or); filter: drop-shadow(0 0 10px rgb(232 176 75 / 0.4)); }
.logo-reflet { fill: var(--fond); }
.marque b { display: block; font-size: 17px; letter-spacing: 0.2em; }
.marque small { display: block; margin-top: -2px; color: var(--subtil); font-size: 11.5px; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav > a:not(.bouton) { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 520; }
.nav > a:not(.bouton):hover { color: var(--texte); background: rgb(255 255 255 / 0.04); }
.bas { border-top: 1px solid var(--ligne); background: var(--fond-2); }
.bas-cadre { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; font-size: 13.5px; color: var(--muted); }
.liens-bas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.liens-bas form { display: inline; }

/* ─── Boutons et formulaires ─── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--or); border-radius: 11px; background: linear-gradient(180deg, var(--or-clair), var(--or));
  color: #1d1405; font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.bouton:hover { color: #1d1405; box-shadow: 0 6px 22px rgb(232 176 75 / 0.25); transform: translateY(-1px); }
.bouton:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.bouton-discret { background: transparent; color: var(--texte); border-color: var(--ligne-forte); }
.bouton-discret:hover { color: var(--texte); border-color: var(--or); box-shadow: none; }
.bouton-danger { background: transparent; color: var(--haute); border-color: rgb(248 113 113 / 0.5); }
.bouton-danger:hover { color: #fff; background: rgb(248 113 113 / 0.15); box-shadow: none; }
.bouton-plein { width: 100%; }
.bouton.petit { min-height: 32px; padding: 0 12px; font-size: 13px; }
.lien { padding: 0; border: 0; background: none; color: var(--or); font: inherit; cursor: pointer; }

input[type=text], input[type=email], input[type=password] {
  width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--ligne-forte); border-radius: 11px;
  background: var(--fond-2); color: var(--texte); font: inherit;
}
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.champ { display: grid; gap: 6px; margin-bottom: 16px; }
.champ label { font-weight: 560; font-size: 14px; }
.champ-case label { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; color: var(--muted); }
.champ-case input { margin-top: 4px; accent-color: var(--or); }
.erreur { color: var(--haute); }
.champ-erreur input { border-color: var(--haute); }
.ligne-form { display: flex; gap: 10px; margin-top: 12px; }
.ligne-form input { flex: 1; min-width: 0; }

/* ─── Messages ─── */
.messages { margin-bottom: 20px; }
.message { margin: 0 0 8px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--ligne-forte); background: var(--panneau); }
.message-error { border-color: rgb(248 113 113 / 0.45); background: rgb(248 113 113 / 0.08); }
.message-success { border-color: rgb(74 222 128 / 0.4); background: rgb(74 222 128 / 0.07); }
.message-info { border-color: rgb(96 165 250 / 0.4); background: rgb(96 165 250 / 0.07); }

/* ─── Blocs ─── */
.bloc { margin-top: 36px; }
.titre-bloc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.surtitre { margin: 0 0 6px; color: var(--or); font-size: 12.5px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.carte { padding: 22px; border: 1px solid var(--ligne); border-radius: var(--rayon); background: linear-gradient(180deg, var(--panneau), var(--fond-2)); }
.carte p { color: var(--muted); }
.carte h3 { margin-bottom: 4px; }
.carte-accent { border-color: rgb(232 176 75 / 0.35); background: linear-gradient(180deg, rgb(232 176 75 / 0.08), var(--fond-2) 70%); }
.grille { display: grid; gap: 16px; }
.grille-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.aligne-haut { align-items: start; }
.etiquette { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgb(232 176 75 / 0.15); color: var(--or-clair); font-size: 11.5px; font-weight: 600; vertical-align: 2px; }
.vide { text-align: center; }

/* ─── Accueil ─── */
.heros { max-width: 760px; margin: 28px auto 8px; text-align: center; }
.heros h1 { font-size: clamp(32px, 6vw, 52px); letter-spacing: -0.03em; }
.chapo { margin: 14px auto 26px; color: var(--muted); font-size: 17px; max-width: 640px; }
.analyse-form { display: flex; gap: 10px; padding: 8px; border: 1px solid var(--ligne-forte); border-radius: 16px; background: var(--panneau); box-shadow: 0 20px 60px rgb(0 0 0 / 0.35); }
.analyse-form input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; }
.analyse-form input:focus-visible { outline: none; }
.analyse-form:focus-within { border-color: var(--or); }
.analyse-form .bouton { min-height: 50px; padding: 0 26px; font-size: 16px; }
.niveau .prix { margin-top: 0; color: var(--or-clair); font-weight: 600; }
.liste-coches { margin: 12px 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.liste-coches li { position: relative; padding-left: 26px; }
.liste-coches li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--or); border-bottom: 2px solid var(--or); transform: rotate(-45deg); }
.ethique { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; color: var(--muted); }
.ethique h2 { color: var(--texte); margin-bottom: 6px; }

/* ─── Attente ─── */
.attente { max-width: 620px; margin: 60px auto; text-align: center; }
.radar { position: relative; width: 120px; height: 120px; margin: 0 auto 26px; border-radius: 50%; border: 1px solid rgb(232 176 75 / 0.35);
  background: radial-gradient(circle, rgb(232 176 75 / 0.18) 0 6px, transparent 7px), repeating-radial-gradient(circle, transparent 0 19px, rgb(232 176 75 / 0.12) 19px 20px); overflow: hidden; }
.radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgb(232 176 75 / 0.5), transparent 25%); animation: balayage 1.6s linear infinite; }
@keyframes balayage { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radar::after { animation: none; } }

/* ─── Résultat ─── */
.synthese { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 26px; border: 1px solid var(--ligne); border-radius: 18px; background: linear-gradient(180deg, var(--panneau), var(--fond-2)); }
.note { display: grid; place-items: center; align-content: center; width: 132px; height: 132px; border-radius: 50%; border: 6px solid currentColor; box-shadow: 0 0 40px -8px currentColor, inset 0 0 30px -12px currentColor; }
.note-lettre { font-size: 50px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.note-score { margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.note-a { color: var(--ok); } .note-b { color: #a3e635; } .note-c { color: var(--faible); } .note-d { color: var(--moyenne); } .note-f { color: var(--haute); } .note-n { color: var(--subtil); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 10px 0 12px; }
.meta div { min-width: 0; }
.meta dt { color: var(--subtil); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.meta dd { margin: 0; font-size: 14px; }
.compteurs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.synthese-actions { display: grid; gap: 8px; }
.synthese-actions form, .synthese-actions .bouton { width: 100%; }
.synthese-actions form .bouton { width: 100%; }

.pastille { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; border: 1px solid currentColor; background: rgb(255 255 255 / 0.02); }
.pastille-ok { color: var(--ok); } .pastille-info { color: var(--info); } .pastille-faible { color: var(--faible); }
.pastille-moyenne { color: var(--moyenne); } .pastille-haute { color: var(--haute); }
.pastille-critique { color: #fff; background: var(--critique); border-color: var(--critique); }

.priorites { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 8px; }
.priorites li { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--panneau); }
.priorites li::before { counter-increment: p; content: counter(p); color: var(--subtil); font-weight: 700; width: 16px; }
.succes { border-color: rgb(74 222 128 / 0.35); }

.constats { display: grid; gap: 10px; }
.constat { padding: 16px 18px; border: 1px solid var(--ligne); border-left: 3px solid var(--ligne-forte); border-radius: 12px; background: var(--panneau); }
.constat-ok { border-left-color: var(--ok); } .constat-info { border-left-color: var(--info); } .constat-faible { border-left-color: var(--faible); }
.constat-moyenne { border-left-color: var(--moyenne); } .constat-haute { border-left-color: var(--haute); } .constat-critique { border-left-color: var(--critique); background: rgb(239 68 68 / 0.06); }
.constat-tete { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.constat-detail { color: var(--muted); font-size: 14px; }
.correction { margin-top: 8px; }
.correction summary { cursor: pointer; color: var(--or); font-weight: 600; font-size: 14px; }
.correction p { color: var(--muted); font-size: 14px; }
pre { overflow-x: auto; margin: 10px 0; padding: 12px 14px; border: 1px solid var(--ligne); border-radius: 10px; background: #070910; }
pre code { padding: 0; border: 0; background: none; font-size: 12.5px; line-height: 1.6; color: #d7dbe5; }
.appel { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.aide { color: var(--muted); text-align: center; }
.echec { max-width: 680px; margin: 40px auto; }
.echec form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ─── Compte ─── */
.formulaire { max-width: 460px; margin: 20px auto; }
.formulaire h1 { font-size: 26px; margin-bottom: 4px; }
.formulaire form { margin-top: 18px; }
.table-cadre { overflow-x: auto; border: 1px solid var(--ligne); border-radius: var(--rayon); }
.table { width: 100%; border-collapse: collapse; background: var(--panneau); }
.table th { padding: 12px 16px; color: var(--subtil); font-size: 12px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--ligne); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.mini-note { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; border: 2px solid currentColor; font-weight: 800; font-size: 13px; }
.historique { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.historique li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--panneau); }
.historique a { display: inline-flex; gap: 10px; align-items: center; color: var(--texte); }
.entete-domaine { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.copie { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.copie code { flex: 1; min-width: 0; padding: 8px 10px; overflow-x: auto; }
.carte form { margin-top: 12px; }

/* ─── Texte ─── */
.texte { max-width: 760px; }
.texte h2 { margin: 30px 0 6px; }
.texte p, .texte li { color: var(--muted); }
.texte li { margin: 6px 0; }

@media (max-width: 760px) {
  .synthese { grid-template-columns: 1fr; justify-items: start; }
  .note { width: 110px; height: 110px; }
  .note-lettre { font-size: 42px; }
  .synthese-actions { width: 100%; }
  .analyse-form { flex-direction: column; }
  .nav > a:not(.bouton) { padding: 6px 8px; }
  .ligne-form { flex-direction: column; }
}
