/* Jetons : toute couleur, taille et durée du site est ici. */
:root {
  --fond: #fbfaf7;
  --surface: #ffffff;
  --encre: #0e1a2b;
  --encre-douce: #4e5867;
  --trait: #e3e0d8;
  --accent: #d9481f;
  --accent-texte: #ffffff;
  --nuit: #0e1a2b;
  --nuit-texte: #f3f1ec;
  --nuit-douce: #a9b3c2;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --t-petit: 0.875rem;
  --t-corps: 1.0625rem;
  --t-chapeau: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  --t-h3: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --t-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --t-h1: clamp(3rem, 1.8rem + 5.5vw, 6.5rem);
  --t-chiffre: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);

  --largeur: 74rem;
  --gouttiere: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --espace-section: clamp(4rem, 3rem + 5vw, 8rem);
  --rayon: 1rem;
  --duree: 180ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0b1422;
    --surface: #121e30;
    --encre: #eef0f3;
    --encre-douce: #a9b3c2;
    --trait: #22314a;
    --accent: #ff7a4d;
    --accent-texte: #0b1422;
    --nuit: #16253b;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 var(--t-corps) / 1.65 var(--sans);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: color var(--duree);
}

a:hover {
  color: var(--accent);
}

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

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

.cadre {
  width: min(100% - 2 * var(--gouttiere), var(--largeur));
  margin-inline: auto;
}

.evitement {
  position: absolute;
  left: -100vw;
}

.evitement:focus {
  left: var(--gouttiere);
  top: 0.5rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.5rem 1rem;
}

.marque {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin: 0;
}

.marque__point {
  color: var(--accent);
}

/* En-tête */
.entete {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.entete .marque {
  font-size: 1.125rem;
}

.menu {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--t-petit);
  font-weight: 600;
}

.menu a {
  text-decoration: none;
}

@media (max-width: 30rem) {
  .menu li:nth-child(2) {
    display: none;
  }
}

/* Héros */
.heros {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 6rem) var(--espace-section);
}

@media (min-width: 56rem) {
  .heros {
    grid-template-columns: 1.15fr 1fr;
  }
}

.surtitre,
.carte__role,
.frise__date {
  font-size: var(--t-petit);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.heros h1 {
  font-size: var(--t-h1);
  margin: 1rem 0 1.5rem;
}

.chapeau {
  font-size: var(--t-chapeau);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  max-width: 30ch;
}

.heros__texte > p:not(.surtitre):not(.chapeau) {
  color: var(--encre-douce);
  max-width: 56ch;
}

.heros__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.heros__photo {
  margin: 0;
}

.heros__photo img {
  border-radius: var(--rayon);
  aspect-ratio: 1;
  object-fit: cover;
}

.heros__photo figcaption {
  margin-top: 0.75rem;
  font-size: var(--t-petit);
  color: var(--encre-douce);
}

.bouton {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-texte);
  font-size: var(--t-petit);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--duree), color var(--duree), box-shadow var(--duree);
}

.bouton:hover {
  background: var(--encre);
  color: var(--fond);
}

.bouton--contour {
  background: transparent;
  color: var(--encre);
  box-shadow: inset 0 0 0 2px var(--encre);
}

/* Chiffres */
.chiffres {
  background: var(--nuit);
  color: var(--nuit-texte);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.chiffres__titre {
  font-size: var(--t-petit);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nuit-douce);
  margin-bottom: 2rem;
}

.chiffres__liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--nuit-douce);
}

.chiffres__liste strong {
  display: block;
  font-size: var(--t-chiffre);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--nuit-texte);
  margin-bottom: 0.5rem;
}

/* Sections */
.titre-section {
  font-size: var(--t-h2);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.activites,
.histoire,
.equipe {
  padding-top: var(--espace-section);
}

.activites__grille,
.equipe__grille {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 52rem) {
  .activites__grille,
  .equipe__grille {
    grid-template-columns: 1fr 1fr;
  }
}

.carte {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
}

.carte h3,
.personne h3 {
  font-size: var(--t-h3);
  margin: 0.5rem 0 1rem;
}

.carte__accroche {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.carte > p:not(.carte__role):not(.carte__accroche):not(.carte__liens),
.personne > p:not(.carte__role):not(.personne__liens) {
  color: var(--encre-douce);
}

.carte__faits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.25rem 0;
  list-style: none;
  border-block: 1px solid var(--trait);
  font-size: var(--t-petit);
  color: var(--encre-douce);
}

.carte__faits strong,
.chiffres__liste strong {
  white-space: nowrap;
}

.carte__faits strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--encre);
}

.carte__liens {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: auto 0 0;
  font-size: var(--t-petit);
}

.lien-site {
  font-size: 1.0625rem;
  font-weight: 700;
}

.carte__liens a::after,
.bandeau .lien-site::after,
.personne__liens a::after {
  content: " \2197";
  color: var(--accent);
}

/* Frise */
.frise {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--encre);
}

@media (min-width: 52rem) {
  .frise {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.frise li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--trait);
}

@media (min-width: 52rem) {
  .frise li {
    border-bottom: 0;
  }
}

.frise__date {
  font-size: var(--t-h3);
  letter-spacing: -0.02em;
  text-transform: none;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.frise li p:last-child {
  margin: 0;
  color: var(--encre-douce);
}

/* Équipe */
.personne img {
  border-radius: var(--rayon);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  margin-bottom: 1.5rem;
  width: 100%;
}

.personne__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: var(--t-petit);
  font-weight: 700;
}

/* Partenaire et presse */
.bandeau {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding-block: var(--espace-section);
}

@media (min-width: 52rem) {
  .bandeau {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bandeau__bloc {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--rayon);
  background: var(--surface);
  border: 1px solid var(--trait);
}

.bandeau__titre {
  font-size: var(--t-h3);
  margin: 0.5rem 0 1rem;
}

.bandeau__bloc > p:not(.carte__role) {
  color: var(--encre-douce);
}

.bandeau__bloc .lien-site {
  color: var(--encre);
}

.presse {
  font-size: 1.1875rem;
  font-weight: 700;
}

.bandeau__bloc .presse {
  color: var(--encre);
}

/* Pied */
.pied {
  border-top: 1px solid var(--trait);
  padding-block: 2.5rem;
  font-size: var(--t-petit);
  color: var(--encre-douce);
}

.pied__grille {
  display: grid;
  gap: 1rem;
}

.pied .marque {
  font-size: 1.125rem;
  color: var(--encre);
}

.pied__legal {
  margin: 0;
}

.pied__mentions summary {
  cursor: pointer;
}

.pied__mentions p {
  max-width: 70ch;
}
