/* ==========================================================================
   Tribunes de la presse #16 — www.tdlp2026.com
   Feuille de style unique. Polices auto-hébergées (SIL Open Font License).
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/outfit-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); }

/* ---------- Variables ---------- */
:root {
  --noir: #060608;
  --jaune: #FFDE00;
  --blanc: #FFFFFF;
  --gris-texte: #3A3A3A;
  --gris-discret: #555555;
  --filet: #E4E4E4;
  --police-texte: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --police-titre: "Bebas Neue", "Arial Narrow", sans-serif;
  --gouttiere: clamp(1rem, 4vw, 3rem);
  --largeur-max: 70rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--noir);
  font-family: var(--police-texte);
  font-size: 1rem;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--noir); text-underline-offset: 0.15em; }
a:hover { color: #4A4A4A; }
a:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; box-shadow: 0 0 0 6px var(--noir); }
h1, h2, h3, p, ul { margin: 0; }

.sr-only {
  position: absolute; 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: -9999px; top: 0.5rem; z-index: 20; }
.lien-evitement:focus { left: 0.5rem; background: var(--jaune); color: var(--noir); padding: 0.75rem 1rem; font-weight: 600; }

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

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 10; background: var(--blanc); border-bottom: 1px solid var(--filet); }
.entete__inner {
  max-width: 80rem; margin: 0 auto; min-height: 4.5rem;
  padding: 0.5rem var(--gouttiere);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  column-gap: 1rem; row-gap: 0.25rem;
}
.marque { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--noir); }
.marque__num { font-weight: 300; font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); line-height: 1; }
.marque__nom { display: flex; flex-direction: column; font-weight: 800; font-size: clamp(0.75rem, 0.65rem + 0.4vw, 0.9375rem); line-height: 1.05; letter-spacing: 0.01em; }
.nav-principale { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); }
.nav-principale a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-family: var(--police-titre); font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.4375rem);
  letter-spacing: 0.03em; text-decoration: none;
}
.nav-principale .bouton-entete { padding: 0 clamp(0.875rem, 1.6vw, 1.375rem); background: var(--noir); color: var(--jaune); }
.nav-principale .bouton-entete:hover { color: var(--blanc); }

/* ---------- Bloc principal (flammes) ---------- */
.hero { padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 3vw, 3rem) 0; }
.hero__cadre {
  max-width: 80rem; margin: 0 auto;
  padding: clamp(9.375rem, 15vw, 13.125rem) clamp(1.5rem, 10vw, 8.75rem);
  display: flex; flex-direction: column; align-items: center; gap: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  background: var(--noir) url("../img/flammes-900.webp") center / 100% 100% no-repeat;
}
@media (min-width: 700px) {
  .hero__cadre { background-image: url("../img/flammes-1600.webp"); }
}
.hero__identite {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  column-gap: clamp(1.75rem, 4vw, 3.5rem); row-gap: 1.75rem;
}
.logo-tdlp { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 0.375rem; }
.logo-tdlp__num { color: var(--jaune); font-weight: 300; font-size: clamp(2.5rem, 1rem + 4.5vw, 4.75rem); line-height: 0.9; letter-spacing: -0.02em; }
.logo-tdlp__titre {
  color: var(--jaune); font-weight: 800; text-transform: uppercase; text-align: right;
  font-size: clamp(1.75rem, 0.4rem + 7.2vw, 5.75rem); line-height: 0.92; letter-spacing: -0.01em;
}
.logo-tdlp__titre span { display: block; }
.logo-tdlp__signature {
  margin-top: 0.375rem; align-self: stretch;
  display: flex; flex-direction: column; align-items: center; gap: 0.375rem;
  font-size: clamp(1.0625rem, 0.6rem + 1.8vw, 1.75rem); line-height: 1.15; color: var(--noir); text-align: center;
}
.logo-tdlp__signature span { background: var(--jaune); padding: 0.12em 0.5em; }
.logo-tdlp__signature span:first-child { align-self: stretch; padding-inline: 0.35em; }
.logo-region-hero { display: block; height: clamp(7.5rem, 14vw, 12.5rem); width: auto; }

.hero__dates {
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.875rem; row-gap: 0.125rem;
  color: var(--blanc); font-weight: 600; font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.5rem); line-height: 1.35;
}
.hero__dates .puce { color: var(--jaune); }

.hero__actions {
  width: 100%; max-width: 40rem; margin-top: 0.5rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  transform: rotate(-3deg);
}
.bouton {
  flex: 1 1 15rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  min-height: 3.75rem; padding: 0.5rem 1rem;
  font-family: var(--police-titre); font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  letter-spacing: 0.03em; line-height: 1; text-decoration: none;
}
.bouton svg { flex: none; }
.bouton--jaune { background: var(--jaune); color: var(--noir); }
.bouton--jaune:hover { background: var(--blanc); color: var(--noir); }
.bouton--contour { border: 2px solid var(--blanc); color: var(--blanc); }
.bouton--contour:hover { background: var(--blanc); color: var(--noir); }

/* ---------- Infos pratiques ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.titre-section {
  font-family: var(--police-titre); font-weight: 400;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); line-height: 0.95; letter-spacing: 0.01em;
}
.infos { margin-top: clamp(1.75rem, 3vw, 2.5rem); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.75rem), 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.infos li { border-top: 4px solid var(--noir); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.infos h3 { font-family: var(--police-titre); font-weight: 400; font-size: 1.625rem; letter-spacing: 0.03em; line-height: 1.1; }
.infos p { font-size: 1.1875rem; line-height: 1.45; }

/* ---------- Partenaires ---------- */
.partenaires { border-top: 1px solid var(--filet); padding-block: clamp(3rem, 6vw, 5rem); text-align: center; }
.partenaires .titre-section { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); line-height: 1; letter-spacing: 0.02em; }
.logos { list-style: none; padding: 0; margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: clamp(2rem, 4vw, 3.5rem); row-gap: 1.75rem; }
.logos img { display: block; width: auto; }
.partenaires__liste { max-width: 57.5rem; margin: clamp(2rem, 4vw, 3rem) auto 0; font-size: 0.9375rem; line-height: 1.6; color: var(--gris-texte); }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--filet); padding-block: 2.5rem; }
.pied .conteneur { display: flex; flex-direction: column; gap: 1.5rem; }
.organisateur { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--gris-discret); }
.organisateur img { display: block; height: 3.5rem; width: auto; }
.liens-legaux { list-style: none; padding: 0; display: flex; flex-wrap: wrap; column-gap: 1.5rem; font-size: 0.9375rem; }
.liens-legaux a { display: inline-block; padding-block: 0.75rem; }
.contact-presse { font-size: 0.9375rem; }
.copyright { font-size: 0.875rem; color: var(--gris-discret); }

/* ---------- Pages légales ---------- */
.entete--sombre { position: static; background: var(--noir); border-bottom: 0; }
.entete--sombre .marque { color: var(--jaune); }
.retour {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem;
  color: var(--blanc); font-family: var(--police-titre); font-size: 1.3125rem; letter-spacing: 0.03em; text-decoration: none;
}
.retour:hover { color: var(--jaune); }
.page-legale { padding: clamp(3rem, 6vw, 5.5rem) var(--gouttiere) clamp(3.5rem, 7vw, 6rem); }
.page-legale__contenu { max-width: 47.5rem; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }
.page-legale h1 { font-family: var(--police-titre); font-weight: 400; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 0.95; }
.page-legale .maj { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--gris-discret); }
.page-legale .intro { margin-top: 0.75rem; font-size: 1.0625rem; line-height: 1.6; }
.page-legale section { border-top: 4px solid var(--noir); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.625rem; }
.page-legale h2 { font-family: var(--police-titre); font-weight: 400; font-size: 1.875rem; letter-spacing: 0.02em; line-height: 1.1; }
.page-legale p, .page-legale ul { font-size: 1.0625rem; line-height: 1.6; }
.page-legale ul { padding-left: 1.375rem; }
.pied--simple { padding-block: 1.75rem; }
.pied--simple .conteneur { max-width: 47.5rem; padding-inline: 0; }
@media (max-width: 47.5rem) { .pied--simple .conteneur { padding-inline: var(--gouttiere); } }

/* ---------- Impression ---------- */
@media print {
  .entete { position: static; }
  .hero__cadre { background: none; color: var(--noir); }
  .logo-tdlp__num, .logo-tdlp__titre, .hero__dates { color: var(--noir); }
  .logo-region-hero, .hero__actions, .lien-evitement { display: none; }
}
