/* Page d'accueil FeelPrint — servie par le serveur relais (voir dashboard.css
 * pour pourquoi ces jetons de couleur, boutons, cartes et pied de page sont
 * dupliqués plutôt que partagés entre pages). Mêmes garanties : contrastes
 * ≥ 4,5:1, focus toujours visible, aucune information portée par la seule
 * couleur, prefers-reduced-motion et forced-colors respectés.
 *
 * Ajout propre à cette page : un bandeau d'accueil (« héros ») avec un
 * dégradé décoratif — jamais une image, uniquement des couleurs, donc sans
 * coût de chargement et sans rien à traduire ; désactivé en
 * forced-colors (l'utilisateur choisit alors ses propres couleurs de fond).
 */

:root {
  color-scheme: light dark;
  --fond: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #eaeef4;
  --bord: #d3d9e2;
  --texte: #1a1f26;
  --texte-2: #4d5766;
  --accent: #1d5fc2;
  --accent-2: #6f42c1;
  --accent-texte: #ffffff;
  --ombre: 0 1px 2px rgba(20, 30, 50, .06), 0 6px 18px rgba(20, 30, 50, .06);
  --rayon: 14px;
  --focus: #ffb300;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0f1318;
    --surface: #171c23;
    --surface-2: #202731;
    --bord: #2c3542;
    --texte: #e9edf2;
    --texte-2: #a9b3c0;
    --accent: #8db6ff;
    --accent-2: #c6a6ff;
    --accent-texte: #0b1a33;
    --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --focus: #ffd166;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.lien-evitement {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: .6rem 1rem;
  background: var(--accent);
  color: var(--accent-texte);
  border-radius: 8px;
  z-index: 10;
  text-decoration: none;
  font-weight: 600;
}
.lien-evitement:focus { top: 1rem; }

/* Un titre utile au lecteur d'écran (structure de la page), inutile à
 * l'œil : le bandeau d'accueil dit déjà visuellement de quoi il s'agit. */
.visuellement-masque {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* -- En-tête -------------------------------------------------------------- */

.entete {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}
.marque {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: .02em;
  font-weight: 800;
  color: var(--texte);
}
.entete-liens { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.entete-liens a:not(.bouton) { color: var(--accent); font-weight: 600; text-decoration: none; }
.entete-liens a:not(.bouton):hover { text-decoration: underline; }
.champ { display: flex; align-items: center; gap: .5rem; }
.champ label { font-weight: 600; font-size: .9rem; color: var(--texte-2); }

/* -- Bandeau d'accueil ----------------------------------------------------- */

.heros {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  text-align: center;
}
/* Dégradé décoratif : purement visuel, jamais porteur de sens — désactivé
 * en forced-colors, où l'utilisateur a déjà choisi ses propres couleurs. */
@media not (forced-colors: active) {
  .heros {
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent),
                                          color-mix(in srgb, var(--accent-2) 10%, transparent) 70%);
    border-radius: var(--rayon);
  }
}
.heros h1 {
  margin: 0 auto .9rem;
  max-width: 42rem;
  font-size: clamp(1.9rem, 3.2vw + 1rem, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  font-weight: 800;
}
.heros-sous_titre {
  margin: 0 auto 1.75rem;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--texte-2);
}
.heros-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* -- Contenu ---------------------------------------------------------------*/

main {
  max-width: 64rem;
  margin: 0 auto;
  padding: .5rem 1.25rem 3rem;
  display: grid;
  gap: 1.5rem;
}
main:focus { outline: none; }

.carte {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 2rem 2.25rem;
  max-width: 44rem;
  margin: 0 auto;
}
.carte h3 {
  margin: 1.75rem 0 .6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--texte);
}
.carte h3:first-of-type { margin-top: 0; }
.carte p { margin: .5rem 0 0; color: var(--texte); }
.carte p + h3 { margin-top: 1.75rem; }

.carte-cta {
  text-align: center;
  background: var(--surface-2);
}
.carte-cta h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
}

/* -- Boutons ---------------------------------------------------------------*/

.bouton {
  font: inherit;
  font-weight: 700;
  padding: .75rem 1.4rem;
  border-radius: 10px;
  border: 1px solid var(--bord);
  background: var(--surface-2);
  color: var(--texte);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.bouton:hover { filter: brightness(.96); }
.bouton-principal { background: var(--accent); color: var(--accent-texte); border-color: transparent; }
.bouton-discret { background: transparent; }

/* -- Pied : région vivante (silencieuse sur cette page statique) --------- */

.pied {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}
.annonce {
  margin: 0;
  min-height: 1.5rem;
  color: var(--texte-2);
  font-size: .95rem;
}
.copyright { margin: .5rem 0 0; color: var(--texte-2); font-size: .85rem; }
.pied-liens { margin: .25rem 0 0; color: var(--texte-2); font-size: .85rem; }
.pied-liens a { color: var(--accent); }

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