/* FrenChill Paris — feuille de style unique, sans dépendance externe */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/sourceserif4-var.woff2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/sourceserif4-italic-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --nuit: #0e0b22;
  --nuit-2: #161135;
  --nuit-3: #221a4d;
  --encre: #f4f0fc;
  --brume: #cdc2ef;      /* texte secondaire, contraste ≥ 9:1 sur --nuit */
  --lavande: #b9a7f0;
  --or: #e2bf78;
  --or-vif: #f0d08f;
  --tapis: #10342b;      /* vert billard, La Carambole */
  --tapis-2: #0b271f;
  --filet: rgba(205, 194, 239, 0.18);
  --bleu: #2b4bd1;
  --rouge: #e0303a;

  --titre: "Oswald", "Arial Narrow", sans-serif;
  --texte: "Source Serif 4", Georgia, "Times New Roman", serif;

  --marge: clamp(1.25rem, 5vw, 4.5rem);
  --large: 78rem;
  --rayon: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--encre);
  font-family: var(--texte);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--or-vif); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
p, li, figcaption { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

:focus-visible {
  outline: 3px solid var(--or-vif);
  outline-offset: 3px;
  border-radius: 2px;
}

.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--or); color: var(--nuit); padding: 0.7rem 1rem;
  font-family: var(--titre); text-decoration: none; letter-spacing: 0.04em;
}
.evitement:focus { top: 1rem; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typo commune ---------- */
.surtitre {
  font-family: var(--titre);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 1rem;
}
.titre {
  font-family: var(--titre);
  font-weight: 500;
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}
.titre em {
  font-family: var(--texte);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--lavande);
  letter-spacing: 0;
}
.chapeau { font-size: 1.15em; color: var(--brume); max-width: 36em; margin: 0 0 1.5rem; }
.legende {
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--brume);
  margin-top: 0.6rem;
}

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.7rem 1.3rem;
  font-family: var(--titre); font-weight: 500; font-size: 1rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--or); border-radius: var(--rayon);
  color: var(--encre); background: rgba(14, 11, 34, 0.55);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--or); color: var(--nuit); }
.btn--plein { background: var(--or); color: var(--nuit); }
.btn--plein:hover { background: var(--or-vif); }
.btn small { font-family: var(--texte); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 0.85rem; opacity: .85; }
.btn--off {
  border-style: dashed; border-color: rgba(205, 194, 239, 0.55);
  color: var(--brume); background: transparent; cursor: default;
}
.btn--off:hover { background: transparent; color: var(--brume); }
.fleche { font-family: var(--texte); font-size: 1.1em; line-height: 1; }

.tricolore { display: block; width: 7.5rem; height: 4px; background: linear-gradient(90deg, var(--bleu) 0 33.3%, #fff 33.3% 66.6%, var(--rouge) 66.6%); }

/* ---------- En-tête ---------- */
.entete {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--marge);
}
.marque {
  font-family: var(--titre); font-weight: 600; letter-spacing: 0.2em; font-size: 0.875rem;
  text-transform: uppercase; color: var(--encre); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.entete nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 1.6rem; }
.entete nav a {
  font-family: var(--titre); font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brume); text-decoration: none; padding: 0.6rem 0; display: inline-block;
}
.entete nav a:hover { color: var(--or-vif); }
.entete .discord-court {
  font-family: var(--titre); font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--or-vif); min-height: 44px; display: inline-flex; align-items: center;
}

/* ---------- Accueil ---------- */
.accueil { position: relative; background: var(--nuit); }
.accueil__image { position: relative; }
.accueil__image img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.accueil__texte { position: relative; padding: 0 var(--marge) 3.5rem; margin-top: -1.5rem; }
.accueil h1 {
  font-family: var(--texte); font-weight: 400; font-style: italic;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); line-height: 1.12;
  margin: 0 0 1rem; max-width: 18em; color: var(--encre);
}
.accueil h1 .sr-marque { font-style: normal; }
.pour-tous {
  color: var(--encre); font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); line-height: 1.5;
  margin: 0 0 1.1rem; max-width: 34em;
}
@media (min-width: 900px) { .pour-tous { max-width: 44em; } }
.pour-tous strong { color: var(--or); font-weight: 600; }
.statut {
  display: flex; gap: 0.75rem; align-items: baseline;
  color: var(--brume); font-size: 0.98rem; margin: 0 0 1.75rem; max-width: 34em;
}
.statut::before {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--or); box-shadow: 0 0 0 4px rgba(226, 191, 120, 0.18); transform: translateY(-0.1rem);
}
.accueil .tricolore { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.cadre { max-width: var(--large); margin: 0 auto; padding: 0 var(--marge); }
.intro { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* Le lieu : promenade en arrêts */
.arret { margin: 0 0 clamp(3.5rem, 8vw, 7rem); }
.arret:last-child { margin-bottom: 0; }
.arret figure { margin: 0; }
.arret img { width: 100%; border-radius: var(--rayon); }
.arret__texte { margin-top: 1.25rem; }
.arret h3 {
  font-family: var(--titre); font-weight: 500; text-transform: uppercase;
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.3rem); letter-spacing: 0.02em; line-height: 1.05;
  margin: 0 0 0.6rem; display: flex; gap: 0.9rem; align-items: baseline;
}
.arret h3 .num { font-size: 0.55em; color: var(--or); letter-spacing: 0.1em; font-weight: 400; }
.arret p { margin: 0; color: var(--brume); max-width: 30em; }
.paire { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; margin-top: 0.75rem; }
.bandeau img { aspect-ratio: 21 / 9; object-fit: cover; object-position: center 35%; }
.note-photos { font-style: italic; color: var(--brume); font-size: 0.9375rem; border-top: 1px solid var(--filet); padding-top: 1rem; margin-top: 3rem; }

/* La Carambole */
.carambole { background: radial-gradient(120% 80% at 80% 0%, var(--tapis) 0%, var(--tapis-2) 70%); }
.carambole .surtitre { color: var(--or-vif); }
.carambole__grille { display: grid; gap: 2rem; }
.carambole figure { margin: 0; }
.carambole img { border-radius: var(--rayon); width: 100%; }
.ardoise { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1px solid rgba(240, 208, 143, 0.3); }
.ardoise li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 0.85rem 0; border-bottom: 1px solid rgba(240, 208, 143, 0.3);
}
.ardoise .jeu { font-family: var(--titre); font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.06em; }
.ardoise .detail { font-style: italic; color: #d6e6dc; font-size: 0.95rem; text-align: right; }
.prochainement h3 { font-family: var(--titre); font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.875rem; color: var(--or-vif); margin: 0 0 0.5rem; }
.prochainement p { margin: 0; color: #d6e6dc; }
.affiches { margin-top: 1.25rem; }
.affiches img { aspect-ratio: 1000 / 290; object-fit: cover; }

/* IA */
.ia__grille { display: grid; gap: 2.5rem; }
.citation {
  margin: 0 0 2rem; font-family: var(--texte); font-style: italic;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.25; color: var(--encre);
}
.citation p { margin: 0; }
.citation p + p { margin-top: 0.6rem; color: var(--lavande); font-size: 0.8em; }
.principes { counter-reset: p; list-style: none; padding: 0; margin: 0 0 2rem; }
.principes li { counter-increment: p; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.5rem; padding: 0.9rem 0; border-top: 1px solid var(--filet); color: var(--brume); }
.principes li::before { content: counter(p, decimal-leading-zero); font-family: var(--titre); color: var(--or); letter-spacing: 0.08em; padding-top: 0.15rem; }
.principes strong { color: var(--encre); font-weight: 600; }
.ia figure { margin: 0; }
.ia img { border-radius: var(--rayon); width: 100%; }

/* Ce qui arrive */
.feuille { display: grid; gap: 0; border-top: 1px solid var(--filet); }
.etape { padding: 1.5rem 0; border-bottom: 1px solid var(--filet); }
.etape h3 { font-family: var(--titre); font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.9375rem; color: var(--or); margin: 0 0 0.75rem; }
.etape ul { margin: 0; padding-left: 1.1rem; color: var(--brume); }
.etape li + li { margin-top: 0.35rem; }
.etape li::marker { color: var(--lavande); }
.etape .v1 { color: var(--or-vif); font-weight: 600; }
.version {
  margin-top: 3rem; display: grid; gap: 1rem;
  padding: 1.75rem; background: var(--nuit-2); border-radius: var(--rayon);
}
.version h3 { font-family: var(--titre); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.5rem; margin: 0; }
.version time { display: block; font-style: italic; color: var(--brume); font-size: 0.95rem; }
.version ul { margin: 0; padding-left: 1.1rem; color: var(--brume); }
.mention-date { font-style: italic; color: var(--brume); font-size: 0.9375rem; margin-top: 1.25rem; }

/* Communauté */
.soirees { position: relative; isolation: isolate; overflow: hidden; }
.soirees__fond { position: absolute; inset: 0; z-index: -1; }
.soirees__fond img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.soirees__fond::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 11, 34, 0.55) 0%, rgba(14, 11, 34, 0.86) 55%, var(--nuit) 100%);
}
.soirees .cadre { padding-top: clamp(9rem, 30vw, 16rem); }
.soirees .chapeau { color: var(--encre); }
.soirees p { max-width: 34em; }
.soirees .actions { margin-top: 2rem; }

/* Pied de page */
.pied { border-top: 1px solid var(--filet); padding: 3rem 0 2.5rem; font-size: 0.9375rem; color: var(--brume); }
.pied__grille { display: grid; gap: 2rem; }
.pied .marque { font-size: 1rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li a { display: inline-block; padding: 0.45rem 0; }
.pied p { margin: 0 0 0.6rem; }
.pied .petit { font-size: 0.875rem; }
.pied .tricolore { margin: 1rem 0; width: 5rem; height: 3px; }

/* Page nouveautés */
.page-simple .entete { position: static; }
.page-simple main { padding-top: 1rem; }
.journal { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.journal > li { display: grid; gap: 0.5rem; padding: 2rem 0; border-bottom: 1px solid var(--filet); }
.journal h2 { font-family: var(--titre); font-weight: 500; text-transform: uppercase; font-size: 1.75rem; letter-spacing: 0.04em; margin: 0; }
.journal time { font-style: italic; color: var(--brume); }
.journal ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--brume); }
.journal__date time { display: block; margin-top: 0.3rem; }
.journal .note { font-style: italic; margin: 0.25rem 0 0; color: var(--lavande); }

@media (max-width: 519px) {
  .accueil .actions { flex-direction: column; }
  .accueil .actions .btn { width: 100%; }
}
@media (max-width: 759px) {
  .soirees__fond { bottom: auto; height: 24rem; }
  .soirees__fond::after { background: linear-gradient(180deg, rgba(14, 11, 34, 0.15) 0%, rgba(14, 11, 34, 0.55) 55%, var(--nuit) 100%); }
  .soirees .cadre { padding-top: 15rem; }
}

/* ---------- Tablette et plus ---------- */
@media (min-width: 760px) {
  .entete nav ul { display: flex; }
  .entete .discord-court { display: none; }
  .arret--droite, .arret--gauche { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: end; }
  .arret--droite figure { grid-column: 1 / span 8; }
  .arret--droite .arret__texte { grid-column: 9 / span 4; margin: 0 0 1.5rem; }
  .arret--gauche figure { grid-column: 5 / span 8; grid-row: 1; }
  .arret--gauche .arret__texte { grid-column: 1 / span 4; grid-row: 1; margin: 0 0 1.5rem; }
  .arret--large .arret__texte { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .arret--large h3 { grid-column: 1 / span 5; }
  .arret--large p { grid-column: 7 / span 6; }
  .paire--decalee { grid-template-columns: 7fr 5fr; gap: 1.25rem; align-items: start; }
  .paire--decalee figure:last-child { margin-top: 4rem; }
  .feuille { grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 0; }
  .etape { border-top: 1px solid var(--filet); border-bottom: 0; }
  .version { grid-template-columns: 14rem 1fr; align-items: start; }
  .pied__grille { grid-template-columns: 1.4fr 1fr 1.6fr; }
  .journal > li { grid-template-columns: 14rem 1fr; gap: 2rem; }
  .journal ul { margin-top: 0; }
}

@media (min-width: 1000px) {
  .entete { position: absolute; inset: 0 0 auto 0; }
  .page-simple .entete { position: static; }
  .accueil { min-height: 100svh; display: grid; }
  .accueil__image { position: absolute; inset: 0; }
  .accueil__image picture { display: contents; }
  .accueil__image img {
    position: absolute; inset: 0; width: 100%;
    height: 100%; aspect-ratio: auto; object-position: center top;
    -webkit-mask-image: none; mask-image: none;
  }
  .accueil__image::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(0deg, var(--nuit) 0%, rgba(14, 11, 34, 0.9) 22%, rgba(14, 11, 34, 0) 45%),
      linear-gradient(180deg, rgba(14, 11, 34, 0.6) 0%, rgba(14, 11, 34, 0) 14%);
  }
  .accueil__texte {
    align-self: end; margin: 0; padding-bottom: 4.5rem;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end;
    max-width: var(--large); width: 100%; margin-inline: auto;
  }
  .accueil__texte .tricolore { display: none; }
  .accueil h1 { margin-bottom: 0.75rem; }
  .statut { margin-bottom: 0; }
  .accueil .actions { justify-content: flex-end; max-width: 36rem; }
  .carambole__grille { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: start; }
  .carambole__texte { padding-top: 1rem; }
  .ia__grille { grid-template-columns: 6fr 5fr; gap: 5rem; align-items: start; }
  .ia figure { position: sticky; top: 2rem; }
}

@media (min-width: 1000px) and (max-height: 760px) {
  .accueil h1 { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .btn { border: 1px solid CanvasText; }
  .tricolore { forced-color-adjust: none; }
}
