/* La Conciergerie — styles du site. Toutes les valeurs viennent de tokens.css. */

/* ---------- Polices auto-hébergées ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/montserrat-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 900; font-display: swap; src: url(/fonts/montserrat-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format("woff2"); }

/* Polices de secours aux métriques ajustées (mesurées sur Arial) : pendant le chargement
   des woff2, le texte occupe déjà la même place, d'où aucun décalage de mise en page. */
@font-face { font-family: "Montserrat secours"; font-weight: 800 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); size-adjust: 105.1%; ascent-override: 92.3%; descent-override: 23.8%; line-gap-override: 0%; }
@font-face { font-family: "Inter secours"; font-weight: 400 500; src: local("Arial"), local("ArialMT"); size-adjust: 106%; ascent-override: 91.5%; descent-override: 22.6%; line-gap-override: 0%; }
@font-face { font-family: "Inter secours"; font-weight: 600 700; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 101%; ascent-override: 96%; descent-override: 23.8%; line-gap-override: 0%; }
:root {
  --font-titre: "Montserrat", "Montserrat secours", system-ui, sans-serif;
  --font-texte: "Inter", "Inter secours", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--texte);
  font-family: var(--font-texte);
  font-size: var(--fs-texte);
  line-height: var(--lh-texte);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: var(--orange); }
a:hover { color: #FB923C; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: var(--nuit); }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lien-evitement {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--degrade); color: var(--nuit); font-weight: 700;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-full); text-decoration: none;
}
.lien-evitement:focus { top: var(--s-3); color: var(--nuit); }

.conteneur {
  width: 100%;
  max-width: var(--conteneur);
  margin: 0 auto;
  padding-left: var(--s-4);
  padding-right: var(--s-4);
}
@media (min-width: 768px) {
  .conteneur { padding-left: var(--s-6); padding-right: var(--s-6); }
}

.section { padding-top: var(--s-14); padding-bottom: var(--s-14); }
@media (min-width: 768px) {
  .section { padding-top: var(--s-18); padding-bottom: var(--s-18); }
}
.section + .section { padding-top: 0; }
.fond-halos { background: var(--fond-halos); }

/* ---------- Typographie ---------- */
.titre-display, .titre-h2, .titre-carte {
  font-family: var(--font-titre);
  font-weight: 900;
  text-transform: uppercase;
  line-height: var(--lh-titre);
  overflow-wrap: break-word;
  hyphens: manual;
}
.titre-display { font-size: var(--fs-display); line-height: 1.05; }
.titre-h2 { font-size: var(--fs-h2); line-height: 1.1; }
.titre-carte { font-size: 1.25rem; line-height: 1.2; }
@media (min-width: 768px) { .titre-carte { font-size: var(--fs-carte); } }

.texte-large { font-size: 1.0625rem; color: var(--texte-2); line-height: 1.5; }
@media (min-width: 768px) { .texte-large { font-size: var(--fs-large); } }
.legende { font-size: var(--fs-legende); line-height: 1.45; color: var(--texte-2); }

.surtitre.texte-degrade { color: transparent; }
.texte-degrade { display: inline; }

.entete-section {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: var(--s-4); margin-bottom: var(--s-8);
}
.entete-section > div { display: flex; flex-direction: column; gap: var(--s-2); }

.lien-fleche {
  font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: .4em; min-height: 44px;
}
.lien-fleche:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--h-bouton);
  padding: 0 var(--s-6);
  border-radius: var(--r-full);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  text-align: center;
  transition: filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.bouton-principal {
  background: var(--degrade);
  color: var(--nuit);
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.bouton-principal:hover { color: var(--nuit); filter: brightness(1.06); }
.bouton-principal:focus-visible { outline: none; box-shadow: var(--focus); }
.bouton-secondaire {
  background: transparent;
  color: var(--texte);
  border: 1px solid var(--bordure-forte);
  font-family: var(--font-texte);
  font-weight: 600;
  font-size: var(--fs-label);
  line-height: 1.3;
}
.bouton-secondaire:hover { color: var(--texte); border-color: var(--texte-2); background: rgba(238, 241, 246, .04); }
.bouton[aria-disabled="true"], .bouton:disabled { cursor: progress; filter: saturate(.6) brightness(.9); }
.groupe-boutons { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 479px) {
  .groupe-boutons .bouton { width: 100%; }
}

/* ---------- Pastilles ---------- */
.pastilles { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.pastille {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-4);
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--r-full);
  color: var(--texte);
  font-size: .875rem;
  text-decoration: none;
}
a.pastille:hover { color: var(--texte); border-color: var(--bordure-forte); }
.pastille .note { color: var(--texte-2); }

/* ---------- Cartes ---------- */
.carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--r-md);
  padding: 28px;
}
.grille { display: grid; gap: var(--s-6); }
@media (min-width: 768px) {
  .grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Champs ---------- */
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .champ-legende {
  font-family: var(--font-texte); font-weight: 600; font-size: .875rem; line-height: 1.3; color: var(--texte);
}
.champ input {
  height: var(--h-champ);
  width: 100%;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--bordure-forte);
  background: var(--relief);
  color: var(--texte);
  font: inherit;
  font-size: 1rem;
}
.champ input::placeholder { color: var(--texte-2); opacity: .75; }
.champ input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.champ input[aria-invalid="true"] { border-color: #FF8A65; }
.erreur-champ { font-size: var(--fs-legende); color: #FFB199; min-height: 0; }
.erreur-champ:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
