/* Harfang — ATOMES (conception atomique, niveau 1) : éléments de base, boutons, liens, logo. Fiche CHARTE. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 17px/1.6 var(--texte); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.05; margin: 0; }
.conteneur { width: min(100% - 32px, var(--largeur)); margin-inline: auto; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }

/* un élément masqué reste masqué, même quand sa classe lui donne un affichage (grid, flex…) :
   sans cette règle, le cache « Vue masquée » couvrait la vue dès le début de chaque partie */
[hidden] { display: none !important; }

.surtitre { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--or); margin: 0 0 12px; }

/* ---------- boutons ---------- */
.bouton {
  display: inline-block; padding: 12px 24px; border-radius: 2px;
  font-weight: 700; text-decoration: none; letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
button.bouton { border: none; font: inherit; font-weight: 700; cursor: pointer; }
.bouton--or { background: var(--or); color: var(--noir); }
.bouton--or:hover { background: var(--or-clair); }
.bouton--contour { border: 1.5px solid #fff; color: #fff; }
.bouton--contour:hover { background: #fff; color: var(--noir); }
.bouton--grand { padding: 16px 36px; font-size: 1.1rem; border: none; cursor: pointer; font-family: var(--texte); }
.bouton--bleu { background: var(--bleu); color: #fff; border: none; cursor: pointer; font-family: var(--texte); }
.bouton--bleu:hover { background: var(--bleu-fonce); }
.bouton--trait { border: 1.5px solid var(--encre); color: var(--encre); }
.bouton--trait:hover { background: var(--encre); color: var(--fond); }
.bouton[disabled] { opacity: 0.5; cursor: default; }
.petit-bouton {
  font: 600 0.85rem var(--texte); padding: 6px 12px; cursor: pointer;
  background: var(--fond); color: var(--encre); border: 1.5px solid var(--trait);
}
.petit-bouton:hover { border-color: var(--argent-fonce); }
.petit-bouton--sombre { background: transparent; color: var(--argent); border-color: var(--argent-fonce); text-decoration: none; }
.petit-bouton--sombre:hover { color: #fff; border-color: #fff; }

/* flèche ronde des défilés */
.fleche {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid currentColor; background: transparent; color: inherit;
  font-size: 1.2rem; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.fleche:hover { background: var(--or); border-color: var(--or); color: var(--noir); }

/* ---------- liens, étiquettes ---------- */
.lien { color: var(--bleu); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--or); }
@media (prefers-color-scheme: dark) { .lien { color: var(--or-clair); } }
.legende-plus { margin-left: 8px; padding: 2px 8px; background: var(--or); color: var(--noir); letter-spacing: 0.04em; }
/* à remplir avant la mise en ligne : bien visible pour ne pas l'oublier */
.a-completer { background: var(--a-completer); color: var(--a-completer-texte); padding: 0 4px; font-weight: 600; }

/* ---------- marque (nom + logo en pixels) ---------- */
.marque { font-family: var(--titre); font-size: 1.9rem; font-weight: 700; text-decoration: none; letter-spacing: 0.01em; margin: 0; }
/* le logo est un SVG de 24 × 24 pixels : il reste net à toutes les tailles */
.marque { display: inline-flex; align-items: center; gap: 12px; }
.marque__logo {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;     /* pixels nets si le navigateur en fait une image */
  flex: none;
}
.marque { gap: 18px; }          /* « Harfang » un peu plus loin du logo (avec la bande de tir) */

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
