
@import url("../fonts/fonts.css");

:root {
  --emeraude: #047857;
  --emeraude-fonce: #065F46;
  --emeraude-pale: #E7F3EE;
  --encre: #0B0F0E;
  --gris-texte: #4B5652;
  --surface: #F4F6F5;
  --blanc: #FFFFFF;
  --bordure-champ: #7E8A85;
  --filet: #DDE3E0;
  --erreur: #B42318;
  --piste-score: #E7F3EE;

  
  --fond: var(--surface);
  --carte: var(--blanc);
  --texte: var(--encre);
  --texte-2: var(--gris-texte);
  --action: var(--emeraude);
  --action-survol: var(--emeraude-fonce);
  --action-texte: #FFFFFF;
  --lien: var(--emeraude);
  --lien-survol: var(--emeraude-fonce);
  --focus: var(--emeraude);
  --zone: var(--emeraude-pale);
  --anneau: var(--emeraude);

  --f-titre: Archivo, "Helvetica Neue", Helvetica, Bahnschrift, "Segoe UI", sans-serif;
  --f-texte: "Atkinson Hyperlegible Next", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;

  --t-h1: clamp(2.75rem, 1rem + 6vw, 6rem);
  --t-h2: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  --t-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-corps: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --t-petit: 0.875rem;

  --gouttiere: clamp(16px, 4vw, 40px);
  --largeur: 1200px;
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --rayon: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0F1513;
    --carte: #17201D;
    --texte: #E6EBE8;
    --texte-2: #A3AFAA;
    --action: #34D399;
    --action-survol: #6EE7B7;
    --action-texte: #0B0F0E;
    --lien: #34D399;
    --lien-survol: #6EE7B7;
    --focus: #34D399;
    --zone: #17201D;
    --bordure-champ: #738079;
    --filet: #26302C;
    --erreur: #F97066;
    --piste-score: #26302C;
    --anneau: #34D399;
  }
}


.bande-encre {
  --fond: #0B0F0E; --carte: #17201D; --texte: #E6EBE8; --texte-2: #A3AFAA;
  --action: #34D399; --action-survol: #6EE7B7; --action-texte: #0B0F0E;
  --lien: #34D399; --lien-survol: #6EE7B7; --focus: #34D399; --filet: #26302C; --anneau: #34D399;
  background: var(--fond); color: var(--texte);
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: var(--t-corps);
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--f-titre);
  font-stretch: 76%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; max-width: 65ch; }
small, .petit { font-size: var(--t-petit); }

a { color: var(--lien); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--lien-survol); text-decoration-thickness: 2.5px; }
a:active { color: var(--lien-survol); text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.section { padding-block: var(--section); }
.chapo { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); color: var(--texte-2); max-width: 46ch; }
.surtitre { font-family: var(--f-titre); font-stretch: 90%; font-weight: 700; font-size: var(--t-petit); text-transform: uppercase; letter-spacing: 0.08em; color: var(--texte-2); margin-bottom: 0.75rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


.skip { position: absolute; left: var(--gouttiere); top: -100px; z-index: 100; padding: 12px 16px; background: var(--carte); color: var(--texte); border-radius: var(--rayon); }
.skip:focus { top: 12px; }


html { scroll-padding-top: 88px; }
@media (max-width: 719px) { html { scroll-padding-top: 132px; } }


.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fond) 86%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--filet);
}
.header-in { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; min-height: 72px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 32px; width: auto; }
.nav-list { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texte); text-decoration: none; font-weight: 600; }
.nav-list a:hover, .nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.nav-list a:active { color: var(--texte); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
.nav-login { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.nav-login:hover, .nav-login:active { text-decoration-thickness: 3px; }
@media (min-width: 900px) { .brand img { height: 40px; } }
@media (max-width: 719px) {
  .site-header nav { order: 3; width: 100%; }
  .nav-list { gap: 0 18px; }
}


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: var(--rayon);
  background: var(--action); color: var(--action-texte);
  font: 700 1.0625rem/1.2 var(--f-texte); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 100ms var(--ease);
}
.btn:hover { background: var(--action-survol); color: var(--action-texte); }
.btn:active { color: var(--action-texte); transform: translateY(1px); }
.btn:focus-visible { border-radius: var(--rayon); }
.btn-second { background: transparent; color: var(--texte); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-second:hover { background: transparent; color: var(--texte); box-shadow: inset 0 0 0 2.5px currentColor; }
.btn-second:active { color: var(--texte); box-shadow: inset 0 0 0 2.5px currentColor; }
.btn-large { min-height: 56px; padding-inline: 32px; font-size: 1.125rem; }

.btn[aria-busy="true"], .btn[aria-busy="true"]:hover { cursor: progress; background: var(--action); color: var(--action-texte); transform: none; }
.btn-second[aria-busy="true"], .btn-second[aria-busy="true"]:hover { background: transparent; color: var(--texte); }
.btn[aria-busy="true"]::before {
  content: ""; flex: none; width: 0.85em; height: 0.85em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: btn-tourne 900ms linear infinite;
}
@keyframes btn-tourne { to { transform: rotate(360deg); } }

.btn:disabled:not([aria-busy="true"]), .btn[aria-disabled="true"] {
  cursor: not-allowed; background: var(--filet); color: var(--texte-2);
  box-shadow: inset 0 0 0 1.5px var(--bordure-champ); transform: none;
}
.lien-fleche { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.lien-fleche:hover, .lien-fleche:active { text-decoration-thickness: 3px; }


.prix { font-family: var(--f-titre); font-stretch: 80%; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }


.gages { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 1.5rem 0 0; color: var(--texte-2); font-weight: 600; }
.gages li::before, .coches li::before { content: "✓"; color: var(--texte); font-weight: 800; margin-right: 0.45em; }
.coches { list-style: none; padding: 0; margin: 0; }
.coches li { padding-left: 1.4em; text-indent: -1.4em; margin-bottom: 0.5em; }
.coches li > * { text-indent: 0; }


.score { margin: 0; display: grid; justify-items: center; gap: 12px; }
.score-anneau { position: relative; width: min(100%, 340px); aspect-ratio: 0.925; }
.score-anneau svg { width: 100%; height: 100%; overflow: visible; }
.score-piste { fill: none; stroke: var(--piste-score); stroke-width: 14; }
.score-trait {
  fill: none; stroke: var(--anneau); stroke-width: 14; stroke-linecap: round;
  stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - var(--score, 0));
}
.score.js-anime .score-trait { stroke-dashoffset: 100; }
.score.js-anime.est-visible .score-trait { stroke-dashoffset: calc(100 - var(--score, 0)); transition: stroke-dashoffset 1400ms var(--ease); }
.score-valeur { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; margin: 0; max-width: none; }
.score-nombre { font-family: var(--f-titre); font-stretch: 76%; font-weight: 800; font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.score-max { font-weight: 700; color: var(--texte-2); }
.score-etiquette { font-family: var(--f-titre); font-stretch: 90%; font-weight: 700; font-size: var(--t-petit); text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--texte-2); color: var(--texte-2); }
.score figcaption { display: grid; justify-items: center; gap: 8px; text-align: center; }
.score-detail { font-size: var(--t-corps); color: var(--texte); text-align: center; margin: 0; }

.score-max, .score-detail { font-family: var(--f-titre); font-stretch: 90%; font-variant-numeric: tabular-nums; }
.score-detail { font-weight: 600; }


.faq { border-top: 1px solid var(--filet); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 14px 0; font-weight: 700; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 1.5rem/1 var(--f-titre); color: var(--action); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--lien-survol); }
.faq summary:hover::after { color: var(--action-survol); }
.faq summary:active { color: var(--lien-survol); }
.faq details > div { padding: 0 0 18px; color: var(--texte-2); }


.form { background: var(--carte); color: var(--texte); border-radius: 10px; padding: clamp(20px, 3vw, 36px); }
.form-grille { display: grid; gap: 18px 20px; }
@media (min-width: 720px) { .form-grille { grid-template-columns: 1fr 1fr; } .champ-large { grid-column: 1 / -1; } }
.champ label { display: block; font-weight: 700; margin-bottom: 6px; }
.champ .aide { font-size: var(--t-petit); color: var(--texte-2); margin: -2px 0 6px; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--texte); background: var(--carte);
  border: 1.5px solid var(--bordure-champ); border-radius: var(--rayon);
}
.champ textarea { min-height: calc(3lh + 22px); resize: vertical; }
.champ input::placeholder, .champ textarea::placeholder { color: var(--texte-2); opacity: 1; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--texte-2); }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--action); }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--rayon); }
.champ [aria-invalid="true"], .champ [aria-invalid="true"]:hover, .champ [aria-invalid="true"]:focus { border-color: var(--erreur); border-width: 2px; }

.champ input:disabled, .champ select:disabled, .champ textarea:disabled,
.champ input:disabled:hover, .champ select:disabled:hover, .champ textarea:disabled:hover {
  cursor: not-allowed; background: var(--fond); color: var(--texte-2);
  border-color: var(--bordure-champ); border-style: dashed;
}
.champ:has(:disabled) label { color: var(--texte-2); }
.champ-erreur { color: var(--erreur); font-size: var(--t-petit); font-weight: 700; margin: 6px 0 0; }
.champ-erreur::before { content: "⚠ "; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.form-statut:empty, .form-alerte:empty { display: none; }
.form-statut { margin-top: 18px; padding: 14px 16px; border-radius: var(--rayon); background: var(--zone); color: var(--texte); font-weight: 700; }
.form-statut::before { content: "✓ "; color: var(--texte); font-weight: 800; }
.form-alerte { margin-top: 18px; padding: 14px 16px; border-radius: var(--rayon); box-shadow: inset 0 0 0 2px var(--erreur); color: var(--texte); }
.form-alerte::before { content: "⚠ "; color: var(--erreur); font-weight: 800; }
.form-alerte strong { color: var(--erreur); }


.a-fournir { display: grid; place-items: center; text-align: center; padding: 16px; background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--texte-2) 10%, transparent) 12px 13px), var(--carte); color: var(--texte-2); font-weight: 700; border: 1.5px dashed var(--bordure-champ); border-radius: var(--rayon); }


.site-footer { border-top: 1px solid var(--filet); padding-block: 48px; color: var(--texte-2); }
.footer-in { display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; align-items: flex-start; }
.footer-in ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-in a { display: inline-flex; align-items: center; min-height: 44px; }
.signature { font-weight: 700; color: var(--texte); margin: 0; }


.js .apparait { opacity: 0; transform: translateY(14px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.js .apparait.est-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; }
  .js .apparait { opacity: 1; transform: none; }
  .score.js-anime .score-trait { stroke-dashoffset: calc(100 - var(--score, 0)); }
  .btn:active { transform: none; }
  .btn[aria-busy="true"]::before { animation: none; }
}


@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .btn:disabled:not([aria-busy="true"]), .btn[aria-disabled="true"] { border-color: GrayText; color: GrayText; }
}
