/* peroche.now — charte « L'or en ligne de mire » : argent sur marine, l'or réservé aux objectifs. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("polices/manrope-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("polices/chakra-petch-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("polices/chakra-petch-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("polices/chakra-petch-latin-700-normal.woff2") format("woff2");
}

:root {
  --marine: #0A1626;
  --marine-bande: #0C1A2C;
  --surface: #0F1E33;
  --cercle: #14253B;
  --trait: #1C2A3E;
  --ardoise: #4A5A73;
  --gris-discret: #6B7A91;
  --gris: #8E9BB0;
  --argent: #D3D8E0;
  --blanc: #F1F3F6;
  --or: #E2A845;

  --texte: "Manrope", system-ui, sans-serif;
  --titre: "Chakra Petch", "Manrope", system-ui, sans-serif;

  --largeur: 1280px;
  --gouttiere: clamp(16px, 4vw, 56px);

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--marine);
  color: var(--argent);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--argent);
  text-decoration-color: var(--ardoise);
  text-underline-offset: 4px;
}
a:hover { color: #FFFFFF; text-decoration-color: var(--argent); }
a:focus-visible { outline: 2px solid var(--argent); outline-offset: 3px; border-radius: 2px; }

.visuellement-masque {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.lien-evitement {
  position: absolute;
  left: var(--gouttiere); top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--argent); color: var(--marine);
  font-weight: 600; text-decoration: none;
}
.lien-evitement:focus { top: 12px; color: var(--marine); }

/* ---------- Cadre de page ---------- */

.page { position: relative; z-index: 0; overflow: hidden; min-height: 100vh; }

.page__cercles {
  position: absolute; z-index: -1;
  width: 1200px; height: 1200px; max-width: none;
  right: -380px; top: -260px;
  pointer-events: none;
}

.conteneur { max-width: var(--largeur); margin: 0 auto; padding-left: var(--gouttiere); padding-right: var(--gouttiere); }

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

.entete {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px; padding-bottom: 24px;
}

.entete__marque {
  display: flex; align-items: center; gap: 12px;
  color: var(--argent); text-decoration: none;
}
.entete__nom { font-family: var(--titre); font-weight: 600; font-size: 21px; letter-spacing: 0.01em; }

.entete__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.entete__nav a { text-decoration: none; }
.entete__nav a:hover { text-decoration: underline; }

.entete__twitch { font-size: 14px; color: var(--gris); text-decoration: none; }

/* ---------- Maintenant (héros) ---------- */

.maintenant {
  display: flex; flex-wrap: wrap; align-items: stretch;
  gap: 48px 64px;
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(64px, 8vw, 120px);
}

.maintenant__texte {
  flex: 1 1 560px; min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 32px;
}

.maintenant__heure {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--gris);
  font-variant-numeric: tabular-nums;
}

.maintenant__accroche {
  margin: 0;
  max-width: 14ch;
  font-family: var(--titre); font-weight: 600;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: 0.98; letter-spacing: -0.02em;
  color: var(--blanc);
  text-wrap: balance;
}

.maintenant__lignes {
  display: flex; flex-wrap: wrap; gap: 20px 36px;
  padding-top: 28px;
  border-top: 1px solid var(--trait);
}
.maintenant__lignes p { flex: 1 1 190px; margin: 0; max-width: 20em; }

.objectif { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0; }
.objectif__etiquette { font-size: 15px; font-weight: 600; color: var(--or); }
.objectif__libelle { font-family: var(--titre); font-weight: 600; font-size: 22px; color: var(--blanc); }
.objectif__date { font-size: 15px; color: var(--gris); }

.maintenant__photo {
  flex: 1 1 380px; min-width: 260px; max-width: 520px;
  margin: 0;
}
.maintenant__photo a, .maintenant__photo picture { display: block; overflow: hidden; background: var(--surface); }
.maintenant__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }

/* ---------- Projet en cours ---------- */

.projet {
  background: var(--marine-bande);
  border-top: 1px solid var(--trait);
  border-bottom: 1px solid var(--trait);
}

.projet__interieur {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 48px 72px;
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
}

.projet__texte { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.projet__contexte { margin: 0; font-size: 15px; color: var(--gris); }

.projet__nom {
  margin: 0;
  font-family: var(--titre); font-weight: 700;
  font-size: clamp(72px, 10vw, 152px);
  line-height: 0.88; letter-spacing: -0.02em;
  color: var(--blanc);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .projet__nom {
    background: linear-gradient(100deg, #F4F6F9 0%, #AEB6C1 38%, #EEF1F4 55%, #9DA6B2 82%, #DDE1E7 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}

.projet__promesse {
  margin: 0; max-width: 22ch;
  font-family: var(--titre); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2;
}
.projet__outil { margin: 0; max-width: 34em; }

.saisons {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  max-width: 560px;
}
.saison { display: flex; flex-direction: column; gap: 8px; }
.saison__barre { height: 6px; background: var(--trait); }
.saison__annee { font-family: var(--titre); font-weight: 600; font-size: 17px; color: var(--gris); }
.saison--atteinte .saison__barre { background: var(--blanc); }
.saison--atteinte .saison__annee { color: var(--blanc); }
.saison--but .saison__barre { background: rgba(226, 168, 69, 0.6); }
.saison--but .saison__annee { color: var(--or); }
.saison--but.saison--atteinte .saison__barre { background: var(--or); }

.projet__trace { flex: 0 1 460px; min-width: 260px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.projet__trace svg { width: 100%; height: auto; }

.trace { stroke-dasharray: 1; animation: trace-entree 2.4s cubic-bezier(.3, .6, .2, 1) both; }
@keyframes trace-entree { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.legende { font-size: 14px; color: var(--gris); }

/* ---------- À côté de la piste ---------- */

.a-cote { padding-top: clamp(56px, 7vw, 96px); }

.titre-section {
  margin: 0 0 28px;
  font-family: var(--titre); font-weight: 600;
  font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15;
  color: var(--blanc);
}

.a-cote__liste {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px;
}
.a-cote__item { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px dashed var(--ardoise); }
.a-cote__nom { font-family: var(--titre); font-weight: 600; font-size: 21px; color: var(--blanc); }
.a-cote__description { font-size: 16px; }

/* ---------- Derniers contenus ---------- */

.contenus { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }

.contenus__titre {
  margin: 0 0 20px;
  font-family: var(--titre); font-weight: 600;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.1;
  color: var(--blanc);
}

.contenus__chantier {
  margin: 0; max-width: 38em;
  padding: 24px 0 0;
  border-top: 1px solid var(--trait);
}

/* ---------- Partenaires ---------- */

.partenaires { padding-bottom: clamp(72px, 9vw, 128px); }

.partenaires__interieur {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 32px 64px;
  padding-top: 48px;
  border-top: 1px solid var(--trait);
}
.partenaires__texte { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.partenaires__titre {
  margin: 0; max-width: 16ch;
  font-family: var(--titre); font-weight: 600;
  font-size: clamp(32px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.01em;
  color: var(--blanc);
}
.partenaires__texte p { margin: 0; max-width: 36em; }
.partenaires__texte .partenaires__gestion { font-size: 15px; color: var(--gris); }

.bouton-objectif {
  display: inline-flex; align-items: center;
  min-height: 52px; padding: 0 28px;
  background: var(--or); color: var(--marine);
  font-weight: 700; font-size: 16px;
  text-decoration: none; border-radius: 4px;
}
.bouton-objectif:hover { background: #ECBA62; color: var(--marine); }
.bouton-objectif:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

/* ---------- Pied de page ---------- */

.pied { border-top: 1px solid var(--trait); }

.pied__interieur {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 40px;
  padding-top: 40px; padding-bottom: 56px;
}
.pied__signature { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--gris); font-size: 14px; }
.pied__signature svg { color: var(--gris); flex: none; }
.pied__reseaux { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.pied__credits { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--gris-discret); }
.pied__credits a { color: var(--gris); }

/* ---------- Pages simples (introuvable, erreur) ---------- */

.page-simple { padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(64px, 10vw, 160px); }
.page-simple h1 {
  margin: 0 0 24px; max-width: 16ch;
  font-family: var(--titre); font-weight: 600;
  font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em;
  color: var(--blanc);
}
.page-simple p { margin: 0 0 16px; max-width: 34em; }
.page-simple .reference { font-size: 14px; color: var(--gris); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace { animation: none; stroke-dasharray: none; }
}
