/* OneHockey Cancún v2 (nouveau départ du 2026-10-01) : socle commun des directions.
   Les pages de choix (/directions/) gardent le sable du 10-01 ; le site porte une palette OneHockey sur <html>
   (verdict de Gabriel du 10-01 au soir : « un peu trop beige, c'est pas les couleurs de OneHockey »).
   Police de la marque : Inter Tight (choix de Gabriel du 2026-09-25), une seule famille. */
:root {
  --sable: #F4EFE6;
  --sable-2: #ECE5D9;
  --encre: #142120;
  --encre-2: #2A3735;
  --doux: #5C6866;
  --trait: rgba(20, 33, 32, .14);
  --jaune: #FDEB07;
  --sur-photo: #FFFFFF;
  --rayon: 0px;
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --gout: clamp(20px, 4.2vw, 64px);
  --max: 1440px;
  --d-w: 800;
  --d-ls: -0.035em;
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* Rôles : ce que les règles lisent. Par défaut le sable des directions ; .palette-* les redéfinit */
  --fond: var(--sable);
  --fond-2: var(--sable-2);
  --texte: var(--encre);
  --em: currentColor;
  --nav-fond: rgba(244, 239, 230, .92);
  --nav-texte: var(--encre);
}

/* Les trois rôles de texte sont des couleurs déclarées : quand la page passe sur la glace (site.js), le texte
   change de teinte en douceur au lieu de sauter (sans @property, il saute, rien d'autre ne casse) */
@property --texte { syntax: '<color>'; inherits: true; initial-value: #142120; }
@property --doux { syntax: '<color>'; inherits: true; initial-value: #5C6866; }
@property --trait { syntax: '<color>'; inherits: true; initial-value: rgba(20, 33, 32, .14); }

/* Palette « nuit » : les couleurs du site principal onehockey.com (nuit #060807, blanc cassé, jaune sur un mot par titre) */
.palette-nuit {
  --fond: #060807;
  --fond-2: #121513;
  --texte: #F5F3EF;
  --doux: rgba(245, 243, 239, .7);
  --trait: rgba(245, 243, 239, .14);
  --em: var(--jaune);
  --nav-fond: rgba(6, 8, 7, .86);
  --nav-texte: #F5F3EF;
  transition: --texte .7s var(--ease), --doux .7s var(--ease), --trait .7s var(--ease);
}
/* Palette « blanc » : blanc froid, texte nuit, pied de page nuit ; le jaune reste au bouton et sur les photos */
.palette-blanc {
  --fond: #FFFFFF;
  --fond-2: #EDF1F2;
  --texte: #060807;
  --doux: #4F585A;
  --trait: rgba(6, 8, 7, .12);
  --nav-fond: rgba(255, 255, 255, .92);
  --nav-texte: #060807;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }

.evitement { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--texte); color: var(--fond); border-radius: 6px; }
.evitement:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--texte); outline-offset: 3px; }
.sur-photo :focus-visible { outline-color: var(--sur-photo); }

/* Titres : Inter Tight 800 serrée, le mot d'accent en italique de la même famille */
.titre {
  font-weight: var(--d-w);
  letter-spacing: var(--d-ls);
  line-height: .96;
  margin: 0;
  text-wrap: balance;
}
.titre em { font-style: italic; font-weight: 700; letter-spacing: -0.02em; color: var(--em); transition: color .7s var(--ease); }
.h1 { font-size: clamp(46px, 8.2vw, 132px); }
.h2 { font-size: clamp(36px, 5vw, 76px); }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--doux); max-width: 34em; margin: 0; }
.petit { font-size: 13px; letter-spacing: .02em; color: var(--doux); }

/* Mots qui montent : la boîte garde toute l'encre (queue du g, accents) sans décaler la ligne (piège payé sur le hub, 09-25) */
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding: .18em .06em .14em; margin: -.18em -.06em -.14em; }
.mot > span { display: inline-block; will-change: transform; }

/* Bouton : pilule pleine au jaune OneHockey, léger halo ; la flèche avance au survol */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  background: var(--jaune); color: #111;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em; text-decoration: none;
  box-shadow: 0 10px 34px -12px rgba(253, 235, 7, .7);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(253, 235, 7, .85); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); }

/* Lien souligné qui se remplit */
.lien { position: relative; text-decoration: none; font-weight: 600; padding: 12px 0; display: inline-flex; min-height: 44px; align-items: center; }
.lien::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform-origin: right; transition: transform .45s var(--ease); }
.lien:hover::after { transform: scaleX(0); }

.attente { font-size: 14px; color: var(--doux); display: inline-flex; align-items: center; gap: 10px; }
.attente::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--jaune); box-shadow: 0 0 0 4px rgba(253, 235, 7, .25); }

/* Barre du haut */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gout);
  transition: background-color .4s var(--ease), color .4s var(--ease), padding .4s var(--ease);
}
.nav .marque { display: inline-flex; align-items: center; min-height: 48px; }
.nav .marque img { height: 46px; width: auto; transition: height .4s var(--ease); }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 15px; font-weight: 500; display: inline-flex; min-height: 44px; align-items: center; position: relative; }
.nav ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav ul a:hover::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
/* Un seul bouton par écran : celui de la barre attend que le premier écran soit passé (data-seuil) */
.js .nav[data-seuil] .btn { opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
.js .nav[data-seuil].apres-heros .btn { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s; }
.nav.sur-photo { color: var(--sur-photo); }
.nav.compacte { background: var(--nav-fond); color: var(--nav-texte); padding-top: 10px; padding-bottom: 10px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--trait); }
.nav.compacte .marque img { height: 38px; }
@media (max-width: 860px) { .nav ul { display: none; } .nav .marque img { height: 40px; } }

/* Photo légendée : la légende dit le lieu réel, rien d'autre */
.photo { margin: 0; position: relative; }
.photo .cadre { overflow: hidden; border-radius: var(--rayon); background: var(--fond-2); position: relative; }
.photo .cadre img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { font-size: 13px; color: var(--doux); padding-top: 10px; display: flex; justify-content: space-between; gap: 12px; }

/* Bandeau de la page de choix (aperçu seulement) */
.bandeau-apercu { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; background: rgba(20, 33, 32, .88); color: #fff; font-size: 12.5px; padding: 0 16px; border-radius: 999px; display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.bandeau-apercu a { color: #fff; text-decoration: none; opacity: .7; min-height: 44px; display: inline-flex; align-items: center; }
.bandeau-apercu a[aria-current] { opacity: 1; font-weight: 700; }
@media (max-width: 520px) { .bandeau-apercu { font-size: 11.5px; gap: 10px; padding: 0 12px; bottom: 8px; } .bandeau-apercu span { display: none; } }

/* États : sans JS et en mouvement réduit, tout est visible tout de suite */
.js [data-revele] { opacity: 0; }
.mouvement-reduit [data-revele] { opacity: 1 !important; transform: none !important; }

/* Crédits photo (licences CC BY / CC BY-SA) : petits, lisibles, liens vers la source */
.credits { font-size: 13px; color: var(--doux); max-width: 760px; margin: 40px auto 0; text-align: left; }
.credits summary { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 600; }
.credits summary::-webkit-details-marker { display: none; }
.credits summary::after { content: '+'; font-weight: 400; transition: transform .3s var(--ease); }
.credits[open] summary::after { transform: rotate(45deg); }
.credits p { margin: 8px 0 6px; text-align: center; }
.credits ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.credits li a, .credits-seb { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--trait); text-decoration: none; color: inherit; }
.credits li a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.credits li span:last-child { text-align: right; opacity: .8; }
