/* ==========================================================================
   Gauvain Support International — feuille de style principale
   Palette et visuels repris du site original (archive Wayback 2024-06-09)
   ========================================================================== */

/* --- Neue Power Trial : déposez les fichiers dans assets/fonts/ --- */
@font-face {
  font-family: "Neue Power";
  src: url("../fonts/NeuePower-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Neue Power";
  src: url("../fonts/NeuePower-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Neue Power";
  src: url("../fonts/NeuePower-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #0031ff;
  --blue-deep: #001cb9;
  --ink: #000008;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);

  /* Trois couleurs de verdict, communes à tous les diagrammes de l'audit. */
  --vert: #19c37d;
  --ambre: #ffa726;
  --rouge: #ff5a5a;

  --font-display: "Neue Power", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --shell: 1180px;
  --gap: clamp(2.5rem, 6vw, 6rem);
  --radius: 22px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* L'en-tête est fixe : sans cette marge, une ancre se retrouve dessous. */
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--ink) url("../img/bg-page.png") top center / 100% auto repeat-y;
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.section { padding-block: var(--gap); }

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 8, 0.55);
  border-bottom: 1px solid rgba(0, 49, 255, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.brand img { width: 132px; }

.nav { display: flex; gap: 2rem; }

.nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s;
}

.nav a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ----------------------------------------------------------- typographie -- */
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.display .d-sm {
  font-weight: 300;
  font-size: 0.52em;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.title .kicker {
  display: block;
  font-weight: 300;
  font-size: 0.42em;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 0.35em;
}

.title-center { text-align: center; }

.col-text p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 56ch;
}

/* ------------------------------------------------------------- sections -- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.media img {
  width: 100%;
  filter: drop-shadow(0 25px 60px rgba(0, 49, 255, 0.35));
}

.hero { padding-block: clamp(4rem, 12vw, 9rem); }

/* --------------------------------------------------- listes à étiquettes -- */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.list p {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

/* ------------------------------------------------------------------ bio -- */
.bio {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.bio-reverse { direction: rtl; }
.bio-reverse > * { direction: ltr; }

.bio-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.bio-card {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius);
  background: #f0f0f0 url("../img/card-bio-bg.png") top right / contain no-repeat;
  color: #0b0b10;
}

.bio-card p {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #30313a;
}

.bio-card p:last-child { margin-bottom: 0; }

.bio-name {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 62%;
}

.bio-name span {
  display: block;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: #0b0b10;
}

.bio-name strong {
  display: block;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  color: var(--blue);
}

/* --------------------------------------------------------------- bouton -- */
.btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  /* la même allure sur <a> et sur <button> */
  font-family: inherit;
  border: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.btn:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------ formulaire -- */
.form {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 30px 80px rgba(0, 28, 185, 0.45);
  display: grid;
  gap: 1.1rem;
}

.form label { display: grid; gap: 0.4rem; }

.form label > span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.form label i { font-style: normal; color: #ffd4d4; }

.form input,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #0b0b10;
  font-family: inherit;
  font-size: 0.95rem;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.form textarea { resize: vertical; }

.form-submit {
  justify-self: end;
  padding: 0.6rem 1.9rem;
  border: 0;
  border-radius: 6px;
  background: var(--white);
  color: var(--blue-deep);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s;
}

.form-submit:hover { transform: translateY(-2px); }

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.82rem;
}

/* -------------------------------------------------------------- tagline -- */
.tagline-section { padding-block: clamp(3rem, 7vw, 5rem); }

.tagline {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3.2vw, 2.6rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- footer -- */
.site-footer {
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
  border-top: 1px solid rgba(0, 49, 255, 0.28);
  background: rgba(0, 0, 8, 0.6);
}

.footer-inner { text-align: center; }

.footer-title {
  margin-bottom: 1.75rem;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
}

.socials {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.socials a:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
}

.socials svg { width: 20px; height: 20px; fill: var(--white); }

.footer-bottom {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo { width: 110px; opacity: 0.85; }

.footer-bottom p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 49, 255, 0.5);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}

.footer-links a:hover {
  color: var(--white);
  border-color: var(--blue);
}

/* ---------------------------------------------------------- pages légales -- */
/* Le visuel de fond est très lumineux à droite : on pose un voile sombre,
   dégradé vers la droite, pour garder le texte lisible sans masquer le décor. */
.legal-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 8, 0.94) 0%,
    rgba(0, 0, 8, 0.92) 45%,
    rgba(0, 0, 8, 0.78) 70%,
    rgba(0, 0, 8, 0.5) 100%
  );
}

.legal-hero { padding-block: clamp(3rem, 8vw, 5.5rem) 0; }

.legal-date {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.legal-body { padding-top: clamp(2rem, 5vw, 3rem); }

/* Bloc de lecture calé à gauche du conteneur, largeur limitée au confort de
   lecture (~70 caractères par ligne). */
.legal {
  max-width: 70ch;
  color: rgba(255, 255, 255, 0.88);
}

.legal h2 {
  margin: 2.75rem 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
}

.legal h2:first-child { margin-top: 0; }

.legal p { margin: 0 0 1.1rem; }

.legal ul {
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
  list-style: none;
}

.legal li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 0.9rem;
}

.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.legal strong { color: var(--white); font-weight: 600; }

.legal a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  transition: color 0.25s, border-color 0.25s;
}

.legal a:hover { border-color: var(--white); }

.legal .btn { border-bottom: 0; }

.legal-copy {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------ page audit -- */
.audit-intro {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.audit-section { padding-top: clamp(2rem, 5vw, 3rem); }

.audit-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  max-width: 760px;
}

.audit-field {
  flex: 1 1 320px;
  display: grid;
  gap: 0.5rem;
}

.audit-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.audit-field input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font: inherit;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  transition: border-color 0.25s, background 0.25s;
}

.audit-field input::placeholder { color: rgba(255, 255, 255, 0.4); }

.audit-field input:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(0, 49, 255, 0.1);
}

.audit-submit {
  padding: 0.95rem 2rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s, opacity 0.25s;
}

.audit-submit:hover:not(:disabled) { background: var(--blue-deep); }
.audit-submit:disabled { opacity: 0.55; cursor: progress; }

.audit-note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.audit-note a { color: rgba(255, 255, 255, 0.8); }

.audit-state { margin-top: 2.5rem; }

.audit-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: audit-spin 0.9s linear infinite;
}

@keyframes audit-spin { to { transform: rotate(360deg); } }

.audit-step {
  margin: 1rem 0 0;
  font-weight: 600;
  color: var(--white);
}

.audit-error {
  max-width: 62ch;
  padding: 1.5rem;
  border: 1px solid rgba(255, 90, 90, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 90, 90, 0.08);
}

.audit-error-message { margin: 0 0 1.25rem; color: var(--white); }

/* --- score global --- */
.audit-score {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: 3rem;
}

.audit-gauge {
  position: relative;
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
}

.audit-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.audit-gauge circle {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
}

.audit-gauge-track { stroke: rgba(255, 255, 255, 0.12); }

.audit-gauge-value {
  stroke: var(--blue);
  transition: stroke-dashoffset 1s ease;
}

.audit-gauge strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--white);
}

.audit-gauge[data-level="ok"] .audit-gauge-value { stroke: #19c37d; }
.audit-gauge[data-level="warn"] .audit-gauge-value { stroke: #ffa726; }
.audit-gauge[data-level="fail"] .audit-gauge-value { stroke: #ff5a5a; }

.audit-score-text { flex: 1 1 300px; }
.audit-score-title { margin: 0 0 0.6rem; }
.audit-score-text p { margin: 0 0 0.5rem; color: rgba(255, 255, 255, 0.85); }

.audit-target {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  word-break: break-all;
}

/* --- blocs de résultat --- */
.audit-block { margin-top: clamp(2.5rem, 6vw, 4rem); }

.audit-block-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
}

.audit-block-intro {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.audit-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audit-category {
  display: grid;
  justify-items: center;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

/* Anneau de progression : même langage visuel que la jauge du score global. */
.audit-donut {
  position: relative;
  width: 88px;
  height: 88px;
}

.audit-donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.audit-donut circle {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}

.audit-donut .piste { stroke: rgba(255, 255, 255, 0.1); }

.audit-donut strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}

.audit-category span {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.audit-category[data-level="ok"] .valeur { stroke: var(--vert); }
.audit-category[data-level="warn"] .valeur { stroke: var(--ambre); }
.audit-category[data-level="fail"] .valeur { stroke: var(--rouge); }

.audit-category[data-level="ok"] strong { color: var(--vert); }
.audit-category[data-level="warn"] strong { color: var(--ambre); }
.audit-category[data-level="fail"] strong { color: var(--rouge); }

/* --- mesures de vitesse : une règle graduée plutôt qu'un nombre isolé --- */
.audit-mesures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem 2.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.audit-mesure-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
}

.audit-mesure-head span { color: var(--muted); }
.audit-mesure-head strong { font-weight: 600; white-space: nowrap; }

.audit-mesure[data-status="ok"] .audit-mesure-head strong { color: var(--vert); }
.audit-mesure[data-status="warn"] .audit-mesure-head strong { color: var(--ambre); }
.audit-mesure[data-status="fail"] .audit-mesure-head strong { color: var(--rouge); }

/* La règle : trois zones proportionnelles aux seuils de Google, et un curseur
   qui indique où se situe le site. */
.audit-regle {
  position: relative;
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.audit-regle i { display: block; height: 100%; }
.audit-regle i[data-status="ok"] { background: rgba(25, 195, 125, 0.55); }
.audit-regle i[data-status="warn"] { background: rgba(255, 167, 38, 0.5); }
.audit-regle i[data-status="fail"] { background: rgba(255, 90, 90, 0.45); }

.audit-curseur {
  position: absolute;
  top: -4px;
  width: 3px;
  height: 16px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--white);
  box-shadow: 0 0 0 2px var(--ink);
}

.audit-echelle {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- ressenti réel : répartition des visites en trois paliers --- */
.audit-repartition {
  display: flex;
  height: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.audit-repartition i {
  display: grid;
  place-items: center;
  height: 100%;
  min-width: 0;
  font-size: 0.7rem;
  font-weight: 700;
  font-style: normal;
  color: var(--ink);
  overflow: hidden;
}

.audit-repartition i[data-status="ok"] { background: #19c37d; }
.audit-repartition i[data-status="warn"] { background: #ffa726; }
.audit-repartition i[data-status="fail"] { background: #ff5a5a; }

/* --- bilan par domaine --- */
.audit-familles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.35rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audit-famille-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.audit-famille-nom {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.audit-famille-note { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }

.audit-famille-note[data-level="ok"] { color: var(--vert); }
.audit-famille-note[data-level="warn"] { color: var(--ambre); }
.audit-famille-note[data-level="fail"] { color: var(--rouge); }

.audit-famille-bar {
  display: flex;
  height: 10px;
  gap: 2px;
  border-radius: 999px;
  overflow: hidden;
}

.audit-famille-bar i { display: block; height: 100%; }
.audit-famille-bar i[data-status="ok"] { background: #19c37d; }
.audit-famille-bar i[data-status="warn"] { background: #ffa726; }
.audit-famille-bar i[data-status="fail"] { background: #ff5a5a; }

/* Légende commune aux diagrammes empilés. */
.audit-legende-globale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.audit-legende-globale span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.audit-legende-globale span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.audit-legende-globale span[data-status="ok"]::before { background: #19c37d; }
.audit-legende-globale span[data-status="warn"]::before { background: #ffa726; }
.audit-legende-globale span[data-status="fail"]::before { background: #ff5a5a; }

/* --- filtres de la liste des points analysés --- */
.audit-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.audit-filtre {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.audit-filtre:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }

.audit-filtre[aria-pressed="true"] {
  background: rgba(0, 49, 255, 0.2);
  border-color: var(--blue);
  color: var(--white);
}

.audit-filtre b {
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
}

/* --- priorités d'action --- */
.audit-reco {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: reco;
}

.audit-reco-item {
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 3.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.audit-reco-item::before {
  counter-increment: reco;
  content: counter(reco);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 49, 255, 0.25);
  border: 1px solid rgba(0, 49, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
}

.audit-reco-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.audit-reco-title {
  margin: 0;
  font-weight: 600;
  color: var(--white);
}

.audit-reco-gain {
  flex: 0 0 auto;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(25, 195, 125, 0.16);
  border: 1px solid rgba(25, 195, 125, 0.45);
  font-size: 0.78rem;
  font-weight: 600;
  color: #19c37d;
  white-space: nowrap;
}

.audit-reco-meta {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.audit-reco-desc {
  margin: 0.7rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
}

/* --- liste des points analysés --- */
.audit-checks {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audit-check {
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.audit-check::before {
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

.audit-check[data-status="ok"]::before { content: "\2713"; background: #19c37d; }
.audit-check[data-status="warn"]::before { content: "!"; background: #ffa726; }
.audit-check[data-status="fail"]::before { content: "\00d7"; background: #ff5a5a; }

.audit-check[data-status="fail"] { border-color: rgba(255, 90, 90, 0.35); }
.audit-check[data-status="warn"] { border-color: rgba(255, 167, 38, 0.3); }

.audit-check-famille {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.audit-check-label {
  margin: 0 0 0.3rem;
  font-weight: 600;
  color: var(--white);
}

.audit-check-detail {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.audit-check-advice {
  margin: 0.7rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
}

.audit-cta {
  max-width: 70ch;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgba(0, 49, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(0, 49, 255, 0.1);
}

.audit-cta p { color: rgba(255, 255, 255, 0.85); }

/* --- bandeau audit sur la page d'accueil --- */
.audit-teaser .shell {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid rgba(0, 49, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(0, 49, 255, 0.1);
}

.audit-teaser p { max-width: 62ch; color: rgba(255, 255, 255, 0.85); }

/* --- fenêtre d'envoi du rapport par e-mail --- */
.audit-modale {
  width: min(32rem, calc(100vw - 2rem));
  padding: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--white);
  background: #06060f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.audit-modale::backdrop { background: rgba(0, 0, 8, 0.78); }

.audit-modale-fermer {
  position: absolute;
  top: 0.65rem;
  right: 0.9rem;
  padding: 0.2rem 0.4rem;
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  background: none;
  border: 0;
  cursor: pointer;
}

.audit-modale-fermer:hover { color: var(--white); }

/* La croix est en absolu : on lui réserve sa place sur la première ligne. */
.audit-modale .audit-block-title { padding-right: 2rem; }

.audit-modale-intro {
  margin: 0.6rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.72);
}

.audit-modale-intro span { color: var(--white); }

/* Sans cela, le display:grid ci-dessous l'emporterait sur l'attribut hidden. */
.audit-modale [hidden] { display: none; }

.audit-modale-form { display: grid; gap: 1.1rem; }

.audit-consent {
  display: flex;
  gap: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.audit-consent input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--blue);
}

.audit-modale-message {
  margin: 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--rouge);
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.35);
  border-radius: 10px;
}

.audit-modale-succes p { color: rgba(255, 255, 255, 0.78); }

.audit-modale-ok {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--vert);
}

.audit-modale-succes .btn { margin-top: 1.4rem; }

@media (max-width: 760px) {
  .audit-form { flex-direction: column; align-items: stretch; }
  /* en colonne, flex-basis s'applique à la hauteur : on la laisse libre */
  .audit-field { flex: 0 0 auto; }
  .audit-submit { width: 100%; }
  .audit-gauge { width: 118px; height: 118px; }
  .audit-gauge strong { font-size: 2rem; }
}

/* ------------------------------------------------------------ animation -- */
/* L'état masqué n'est appliqué que si le JS a pris la main (classe .js posée
   dans le <head>). Sans JS, le contenu reste visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 900px) {
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(0, 0, 8, 0.97);
    border-bottom: 1px solid rgba(0, 49, 255, 0.28);
    display: none;
  }

  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.7rem; }
  .nav-toggle { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }

  /* le visuel repasse systématiquement au-dessus du texte sur mobile */
  .grid-2 > .media { order: -1; }

  .media img { max-width: 420px; margin-inline: auto; }

  .bio,
  .bio-reverse { grid-template-columns: 1fr; direction: ltr; }

  .bio-photo img { max-width: 320px; margin-inline: auto; }

  .bio-name { max-width: 100%; }

  .bio-card { background-size: 140px auto; }
}
