/* AANC — feuille de style du site vitrine
   Contrastes vérifiés sur le fond --fond : texte ≈ 17:1, texte secondaire ≈ 11:1, accent ≈ 10:1. */

:root {
  --fond: #06112a;
  --fond-2: #0a1a3a;
  --carte: #0c1d40;
  --bordure: #25427a;
  --texte: #eef4ff;
  --texte-2: #b8c7e6;
  --accent: #5cc8ff;
  --accent-fonce: #2f7df6;
  --sur-accent: #04122b;
  --focus: #ffd84d;
  --rayon: 1rem;
  --largeur: 72rem;
  font-size: 112.5%; /* 18 px par défaut, suit le réglage du navigateur */
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 6rem; } /* l'en-tête collant ne masque pas les titres après un lien interne */

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

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.15em; }

:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
  border-radius: 0.2rem;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.conteneur { width: min(100% - 2rem, var(--largeur)); margin-inline: auto; }

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Lien d'évitement */
.evitement {
  position: absolute;
  left: 1rem; top: -10rem;
  background: var(--accent);
  color: var(--sur-accent);
  padding: 0.75rem 1rem;
  font-weight: 700;
  z-index: 10;
}
.evitement:focus { top: 1rem; }

/* En-tête */
.entete {
  border-bottom: 1px solid var(--bordure);
  background: rgba(6, 17, 42, 0.92);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(8px);
}
.entete .conteneur {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.75rem;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo svg { width: 9.5rem; display: block; }
.nav ul {
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav a { color: var(--texte); text-decoration: none; font-weight: 600; padding: 0.35rem 0.1rem; }
.nav a:hover { color: var(--accent); text-decoration: underline; }
.nav .langue a { color: var(--accent); }

/* Bandeau d'accueil */
.accueil {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6.5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(47, 125, 246, 0.35), transparent 60%),
    radial-gradient(40rem 25rem at -10% 110%, rgba(92, 200, 255, 0.18), transparent 60%),
    var(--fond);
}
.accueil .conteneur { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) {
  .accueil .conteneur { grid-template-columns: 1.4fr 1fr; }
}
.surtitre {
  display: inline-block;
  color: var(--accent); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 0.9rem; margin-bottom: 1rem;
}
.accroche { font-size: 1.2rem; color: var(--texte-2); max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

.bouton {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 0.6rem;
  font-weight: 700; text-decoration: none;
  border: 2px solid var(--accent);
}
.bouton-principal { background: var(--accent); color: var(--sur-accent); }
.bouton-principal:hover { background: #8fdaff; border-color: #8fdaff; }
.bouton-secondaire { color: var(--texte); }
.bouton-secondaire:hover { background: rgba(92, 200, 255, 0.12); }

.globe-deco { justify-self: center; width: min(22rem, 80%); }
.globe-deco .meridiens { transform-origin: 50% 50%; animation: tourner 40s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-alt { background: var(--fond-2); border-block: 1px solid var(--bordure); }
.intro { color: var(--texte-2); max-width: 44rem; margin-bottom: 2rem; }

.grille {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  list-style: none; margin: 0; padding: 0;
}
.carte {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.5rem;
}
.carte p, .carte li { color: var(--texte-2); }
.carte ul { padding-left: 1.2rem; margin: 0; }
.icone {
  width: 3rem; height: 3rem; margin-bottom: 1rem;
  color: var(--accent);
}
.etiquette {
  display: inline-block; font-size: 0.85rem; font-weight: 700;
  color: var(--sur-accent); background: var(--accent);
  padding: 0.1rem 0.6rem; border-radius: 999px; margin-left: 0.4rem;
  vertical-align: middle;
}

.referentiels { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.referentiels li {
  border: 1px solid var(--bordure); border-radius: 999px;
  padding: 0.3rem 0.9rem; color: var(--texte);
}

/* Méthode */
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 50rem) { .etapes { grid-template-columns: repeat(4, 1fr); } }
.etapes li { counter-increment: etape; position: relative; padding-top: 3.2rem; }
.etapes li::before {
  content: counter(etape);
  position: absolute; top: 1.4rem; left: 1.5rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--sur-accent); font-weight: 800;
}

/* À propos */
.apropos { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 55rem) { .apropos { grid-template-columns: 16rem 1fr; } }
.photo {
  aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--accent);
  background: radial-gradient(circle at 30% 30%, #1b4ea6, #0b1f47);
  display: grid; place-items: center;
  font-size: 3.5rem; font-weight: 800; color: var(--texte);
  max-width: 16rem;
  width: 100%;
  object-fit: cover; object-position: center 30%;
}

/* Contact */
.contact { display: grid; gap: 2rem; }
@media (min-width: 55rem) { .contact { grid-template-columns: 1fr 1.3fr; } }
.formulaire { display: grid; gap: 1.1rem; }
.champ { display: grid; gap: 0.35rem; }
label, legend { font-weight: 700; }
.aide { color: var(--texte-2); font-size: 0.95rem; }
input, select, textarea {
  font: inherit; color: var(--texte);
  background: var(--fond);
  border: 2px solid #6d86b8;
  border-radius: 0.5rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
textarea { min-height: 9rem; resize: vertical; }
.case { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; }
.case input { width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; flex: none; }
.erreur { color: #ffb4b4; font-weight: 700; }
[aria-invalid="true"] { border-color: #ff8a8a; }
.statut:not(:empty) {
  border: 2px solid var(--accent); border-radius: 0.6rem;
  padding: 1rem; background: var(--carte);
}

/* Pages de texte (mentions légales, déclaration d'accessibilité) */
.texte-long { max-width: 48rem; }
.texte-long h2 { margin-top: 2.5rem; }
.texte-long h3 { margin-top: 1.5rem; }
.texte-long p, .texte-long li { color: var(--texte-2); }
.logo img { width: 9.5rem; display: block; }

/* Pied de page */
.pied { border-top: 1px solid var(--bordure); padding-block: 2.5rem; color: var(--texte-2); font-size: 0.95rem; }
.pied .conteneur { display: grid; gap: 1.25rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* Préférences de l'utilisateur */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Mode contraste élevé de Windows */
@media (forced-colors: active) {
  .logo .lettre, .logo .lettre-a2 { fill: CanvasText; }
  .logo .anneau { stroke: CanvasText; }
  .logo .globe-fond { fill: Canvas; }
  .logo .globe-lignes { stroke: CanvasText; }
  .bouton, .carte, .etiquette, .photo, .referentiels li { border: 2px solid CanvasText; }
  .etapes li::before { border: 2px solid CanvasText; forced-color-adjust: none; background: Canvas; color: CanvasText; }
  .globe-deco { display: none; }
}
