/*
 * clubism.fr, proposition 4 « Prime time » : la mise en page du site.
 *
 * Chargée APRÈS tokens.css et bundle.css du design system Clubism Prime time,
 * qui portent toutes les couleurs, les polices, les coupes, les inclinaisons et
 * les durées. Ce fichier ne crée AUCUNE couleur, police ou forme : il place les
 * composants .pt-* et n'emploie que des var(--…) du système. Les seules valeurs
 * en dur sont des mesures de mise en page (largeurs, colonnes).
 *
 * Règles du système tenues ici : fond `page` de bout en bout, aucune ombre,
 * aucun dégradé, rayon 0 (sauf avatars de personnes), un seul CTA accent par
 * écran, texte sur l'orange en `on-accent`, texte orange en `accent-ink`.
 */

:root {
  --marge: clamp(var(--page-margin), 4vw, var(--space-11));
  --largeur: 1280px;
  --rythme: clamp(var(--space-9), 8vw, calc(var(--space-11) * 2));
  --entete: var(--space-11);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); overflow-x: clip; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
/* l'entrée à l'antenne part de 10px à droite : rien ne doit dépasser pendant ce temps (clip garde le collant) */
main > * { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.insecable { white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; }

.cadre { width: 100%; max-width: calc(var(--largeur) + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge); }

.saut { position: absolute; left: var(--marge); top: -100px; z-index: 30; padding: var(--space-4) var(--space-5); background: var(--ink); color: var(--on-ink); font: 700 15px/1.2 var(--font-body); text-decoration: none; }
.saut:focus { top: var(--space-4); }

/* ───────────── La marque : le « S » suivi de CLUBISM en Anybody 70 % ───────────── */
.marque { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); flex: none; }
.marque span {
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 26px; line-height: 1;
}

/* ───────────── En-tête : onglets soulignés, « Se connecter » secondaire ───────────── */
.entete { position: sticky; top: 0; z-index: 20; background: var(--page); border-bottom: 1px solid var(--line); view-transition-name: entete; }
.entete__barre { display: flex; align-items: center; gap: var(--space-8); height: var(--entete); }
.entete__nav { display: flex; gap: 22px; margin-left: auto; align-self: stretch; }
.entete__nav .pt-tab { display: flex; align-items: center; padding: 0; text-decoration: none; }
.entete__nav .pt-tab:hover { color: var(--ink); }
.entete__connexion .ico { width: 16px; height: 16px; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu .menu__fermer { display: none; }
.menu[open] .menu__ouvrir { display: none; }
.menu[open] .menu__fermer { display: block; }
.menu__panneau {
  position: fixed; inset: var(--entete) 0 0 0; z-index: 19; overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-8) var(--marge);
  background: var(--page); border-top: 1px solid var(--line);
}
.menu__panneau nav { display: grid; }
.menu__panneau nav a { padding: var(--space-4) 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.menu__panneau nav a[aria-current="page"] { color: var(--accent-ink); }
.menu__panneau .pt-btn { align-self: flex-start; }
@media (max-width: 959px) {
  .entete__nav, .entete__connexion { display: none; }
  .menu { display: block; }
}

/* ───────────── Boutons, liens, points ───────────── */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-left: -5px; }
.lien4 { min-height: 44px; justify-self: start; align-self: start; }
.lien4 .ico { width: 18px; height: 18px; }
.pt-btn .ico { width: 18px; height: 18px; }
.points4 { display: grid; border-top: 1px solid var(--line); }
.points4 li { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line-soft); }
.points4 .ico { color: var(--accent-ink); }
.bientot { display: flex; align-items: center; gap: var(--space-3); flex-basis: 100%; }
.bientot .ico { width: 18px; height: 18px; }

/* ───────────── Ouverture : le titre display-hero, seule sa taille monte ───────────── */
.ouverture { position: relative; overflow: clip; padding: var(--rythme) 0; }
.ouverture__grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-7); align-items: end; }
.ouverture__texte { grid-column: 1 / -1; display: grid; gap: var(--space-8); position: relative; z-index: 2; }
.ouverture__surtitre { color: var(--accent-ink); }
.ouverture__titre { font-size: clamp(62px, 10.5vw, 168px); margin-left: -0.04em; }
.ligne-titre { display: block; white-space: nowrap; }
.ouverture__pied { display: grid; gap: var(--space-7); max-width: 34rem; }
.ouverture__chapo { color: var(--muted); font-size: 18px; }
/* pages intérieures : le chapô et les actions sous le titre, à droite, comme un bandeau d'antenne */
@media (min-width: 1024px) {
  .ouverture--interieure .ouverture__pied { justify-self: end; width: 34rem; margin-top: calc(-1 * var(--space-4)); }
}
@media (max-width: 559px) {
  .ouverture__titre { font-size: clamp(46px, 14.6vw, 62px); }
  .ligne-titre { white-space: normal; }
  .ouverture__chapo { font-size: 16px; }
}

/* L'accueil : le titre sur huit colonnes, les deux écrans en incrustation à droite. */
.ouverture--accueil { padding-bottom: 0; }
.ouverture--accueil .ouverture__texte { grid-column: 1 / span 8; padding-bottom: var(--rythme); }
.ouverture--accueil .ouverture__titre { font-size: clamp(62px, 9.4vw, 150px); }
.ouverture__ecrans { grid-column: 9 / -1; position: relative; align-self: stretch; min-height: 640px; }
.ouverture__ecrans .ecran4 { position: absolute; }
.ouverture__ecrans .ecran4--une { right: 0; bottom: 0; height: 700px; z-index: 2; }
/* l'écran Explorer en incrustation, posé sur le coin bas-gauche de l'accueil, comme un encart à l'antenne */
.ouverture__ecrans .ecran4--deux { --e: .6; left: -230px; bottom: 0; height: 270px; z-index: 3; }
/* Sous 1340 px, le titre (9.4vw) atteindrait l'encart, décalé de 230 px fixes : les écrans passent dessous. */
@media (max-width: 1339px) {
  .ouverture--accueil .ouverture__texte { grid-column: 1 / -1; padding-bottom: var(--space-8); }
  .ouverture__ecrans { grid-column: 1 / -1; min-height: 0; height: 560px; }
  .ouverture__ecrans .ecran4--une { left: 0; right: auto; height: 560px; }
  .ouverture__ecrans .ecran4--deux { --e: .8; left: 330px; right: auto; bottom: 0; height: 400px; }
}
@media (max-width: 559px) {
  .ouverture__ecrans { height: 470px; }
  .ouverture__ecrans .ecran4--une { left: -4px; height: 470px; --e: .86; }
  .ouverture__ecrans .ecran4--deux { --e: .56; left: auto; right: -4px; bottom: 0; height: 240px; }
}

/* Le générique : deux barres inclinées à skew-bar qui balaient l'ouverture (JS seulement). */
.generique { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: none; }
.generique i { position: absolute; top: 0; bottom: 0; left: 0; width: 34%; transform: skewX(var(--skew-bar)); }
.generique i:first-child { background: var(--accent); }
.generique i:last-child { background: var(--ink); width: 22%; }
.js .generique { display: block; }
.js .generique.fini { display: none; }

/* La 404 et les documents : une ouverture seule, sans écran. */
.ouverture--seule { padding: calc(var(--rythme) * 1.4) 0; }
.ouverture--document { padding: var(--rythme) 0 var(--space-8); border-bottom: 1px solid var(--line); }
.ouverture--document .display-page-title { font-size: clamp(46px, 6vw, 84px); }
.ouverture--document .ouverture__chapo { margin-top: var(--space-5); }

/* ───────────── Les écrans de l'app : un cadre au coin coupé de 20, pas de téléphone ───────────── */
.ecran4 {
  --e: 1;
  width: calc(390px * var(--e)); height: 760px; flex: none; position: relative;
  padding: 1px; background: var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut-media)) 0, 100% var(--cut-media), 100% 100%, 0 100%);
}
.ecran4__in {
  width: 390px; height: calc(100% / var(--e)); transform: scale(var(--e)); transform-origin: 0 0;
  display: flex; flex-direction: column; overflow: hidden; background: var(--page); color: var(--ink);
  clip-path: polygon(0 0, calc(100% - var(--cut-media)) 0, 100% var(--cut-media), 100% 100%, 0 100%);
  user-select: none;
}
.ecran4 .ico { width: 20px; height: 20px; }
.ecran4__statut { flex: none; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 22px 0 28px; font: 700 15px/1 var(--font-body); }
.ecran4__statut span { display: flex; gap: 5px; }
.ecran4__statut .ico { width: 16px; height: 16px; }
.ecran4__tete { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--page-margin) var(--space-4); }
.ecran4__marque { display: flex; align-items: center; gap: var(--space-3); }
.ecran4__marque img { height: 22px; width: auto; }
.ecran4__marque span { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 24px; line-height: 1; }
.ecran4__icones { display: flex; gap: var(--space-3); }
.ecran4__tete .display-page-title { font-size: 40px; }
.ecran4__club { display: flex; align-items: center; gap: var(--space-4); }
.ecran4 .pt-tabs { flex: none; }
.ecran4__puces { flex: none; padding: var(--space-2) var(--page-margin) var(--space-4); margin: 0; }
.ecran4__rubrique { padding: var(--space-6) var(--page-margin) var(--space-3); }
.ecran4__recherche { padding: 0 var(--page-margin) var(--space-4); }
.ecran4__post { display: grid; gap: var(--space-4); padding: var(--space-5) var(--page-margin); border-top: 1px solid var(--line); }
.ecran4__gestes { display: flex; gap: 22px; }
.ecran4__gestes span { display: inline-flex; align-items: center; gap: var(--space-3); }
.ecran4__gestes .ico { width: 18px; height: 18px; }
.ecran4 .pt-plate__band .pt-tag { flex: none; }
.ecran4 .pt-tag .ico { width: 12px; height: 12px; }
.ecran4 .pt-row { flex: none; }
.ecran4 .pt-row .text-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecran4__fin { display: grid; justify-items: end; gap: var(--space-3); color: var(--dim); }
.ecran4__carte { display: grid; gap: var(--space-3); margin: var(--space-2) var(--page-margin) var(--space-3); }
.ecran4__carte .pt-badge { justify-self: start; }
.ecran4__boutons { display: flex; gap: var(--space-4); margin: var(--space-3) 0 0 -5px; }
.ecran4__profil { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-4) var(--page-margin) var(--space-5); }
.ecran4__bascule { margin: 0 var(--page-margin); }
.ecran4__bascule .text-strong { flex: 1; }
.ecran4__barre {
  margin-top: auto; flex: none; display: flex; justify-content: space-around; padding: var(--space-4) var(--space-3) var(--space-6);
  border-top: 1px solid var(--line); background: var(--page);
}
.ecran4__barre span { position: relative; display: grid; justify-items: center; gap: 5px; }
.ecran4__barre .ico { width: 22px; height: 22px; }
.ecran4__barre .is-active { color: var(--ink); }
.ecran4__barre .is-active .ico { color: var(--accent); }
.ecran4__barre .is-active::before { content: ""; position: absolute; top: calc(-1 * var(--space-4) - 1px); left: 8px; right: 8px; height: 3px; background: var(--accent); transform: skewX(var(--skew-bar)); }

@media (max-width: 559px) {
  .ecran4 { --e: .9; }
}

/* ───────────── Camps : deux colonnes séparées d'un filet ───────────── */
.camps { padding: var(--rythme) 0; border-top: 1px solid var(--line); }
.camps__grille { display: grid; grid-template-columns: 1fr 1fr; }
.camp { display: grid; gap: var(--space-5); align-content: start; padding: 0 var(--space-11) 0 0; }
.camp + .camp { padding: 0 0 0 var(--space-11); border-left: 1px solid var(--line); }
.camp__pour { color: var(--accent-ink); }
.camp .text-long, .actu__texte .text-long, .fonction__texte .text-long { max-width: 34rem; font-size: 17px; }
@media (max-width: 767px) {
  .camps__grille { grid-template-columns: 1fr; gap: var(--space-9); }
  .camp, .camp + .camp { padding: 0; border-left: 0; }
  .camp + .camp { padding-top: var(--space-9); border-top: 1px solid var(--line); }
}

/* ───────────── L'actu de l'accueil : l'écran et son texte ───────────── */
.actu { padding: var(--rythme) 0; border-top: 1px solid var(--line); }
.actu__grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-7); align-items: center; }
.actu__ecran { grid-column: 1 / span 5; }
.actu__ecran .ecran4 { height: 560px; }
.actu__texte { grid-column: 7 / -1; display: grid; gap: var(--space-6); }
@media (max-width: 959px) {
  .actu__ecran, .actu__texte { grid-column: 1 / -1; }
  .actu__texte { order: -1; margin-bottom: var(--space-8); }
  .actu__ecran .ecran4 { height: 520px; }
}

/* ───────────── Clubs et joueurs : l'écran reste à l'antenne ───────────── */
.scene { border-top: 1px solid var(--line); }
.scene__grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-7); }
.scene__fonctions { grid-column: 1 / -1; }
@media (min-width: 1024px) { .js .scene__fonctions { grid-column: 1 / span 7; } }
.fonction { display: grid; gap: var(--space-8); padding: var(--rythme) 0; }
.fonction + .fonction { border-top: 1px solid var(--line); }
.fonction__texte { display: grid; gap: var(--space-6); max-width: 36rem; position: relative; }
.fonction__ecran .ecran4 { height: 520px; }
@media (max-width: 559px) {
  .fonction { gap: var(--space-7); }
  .fonction__ecran .ecran4 { height: 380px; }
  .actu__ecran .ecran4 { height: 420px; }
}
.scene__antenne { display: none; }
@media (min-width: 1024px) {
  .js .scene__antenne { display: block; grid-column: 8 / -1; }
  /* l'écran de chaque fonction reste lu par les lecteurs d'écran ; l'antenne le montre */
  .js .fonction__ecran { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .js .fonction { min-height: 440px; align-content: center; }
  .scene__plateau { position: sticky; top: calc(var(--entete) + var(--space-8)); height: calc(100svh - var(--entete) - var(--space-8) * 2); max-height: 720px; }
  .scene__plateau .ecran4 { position: absolute; right: 0; top: 0; height: 100%; opacity: 0; visibility: hidden; }
  .scene__plateau .ecran4.is-antenne { opacity: 1; visibility: visible; }
  /* la fonction à l'antenne : la barre accent inclinée des onglets, devant son titre */
  .fonction__texte::before {
    content: ""; position: absolute; left: calc(-1 * var(--space-7)); top: 6px; width: 6px; height: 34px;
    background: var(--line); transform: skewX(var(--skew-bar));
    transition: background-color var(--duration-base) var(--ease-out);
  }
  .fonction.is-antenne .fonction__texte::before { background: var(--accent); }
}

/* ───────────── Appel : la section sombre (ink, on-ink, l'accent reste l'accent) ───────────── */
.appel { padding: var(--rythme) 0; background: var(--ink); color: var(--on-ink); }
.appel__grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-7); align-items: end; row-gap: var(--space-8); }
.appel__titre { grid-column: 1 / span 7; color: var(--on-ink); font-size: clamp(40px, 5.2vw, 84px); }
.appel__pied { grid-column: 8 / -1; display: grid; gap: var(--space-7); }
.appel .text-long, .appel .text-meta, .appel .bientot { color: var(--on-ink); }
.appel .lien4 { color: var(--accent); }
@media (max-width: 959px) {
  .appel__titre, .appel__pied { grid-column: 1 / -1; }
}

/* ───────────── Nos valeurs : trois convictions, leurs preuves en grille de faits ───────────── */
.conviction { padding: var(--rythme) 0; border-top: 1px solid var(--line); }
.conviction__grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-7); row-gap: var(--space-8); }
.conviction__tete { grid-column: 1 / span 5; display: grid; gap: var(--space-5); align-content: start; }
.conviction__tete .text-long { font-size: 17px; }
.preuves { grid-column: 6 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preuves li { background: var(--panel); padding: var(--space-5); display: grid; gap: var(--space-3); align-content: start; }
.preuves li:last-child { clip-path: polygon(0 0, calc(100% - var(--cut-card)) 0, 100% var(--cut-card), 100% 100%, 0 100%); }
@media (max-width: 1023px) {
  .conviction__tete, .preuves { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .preuves { grid-template-columns: 1fr; }
}

/* ───────────── Contact ───────────── */
.contact { padding: var(--space-8) 0 var(--rythme); }
.adresse {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding: var(--space-8) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: clamp(36px, 8.6vw, 140px); text-decoration: none; overflow-wrap: anywhere;
}
.adresse:hover { color: var(--accent-ink); }
.adresse__fleche { width: clamp(28px, 4vw, 56px); height: clamp(28px, 4vw, 56px); }
.voies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.voie { display: grid; gap: var(--space-4); align-content: start; padding: var(--space-8) var(--space-6) 0 0; }
.voie + .voie { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.voie .pt-btn { justify-self: start; }
.voie .pt-tag { justify-self: start; }
@media (max-width: 1023px) {
  .voies { grid-template-columns: 1fr 1fr; }
  .voie:nth-child(3) { padding-left: 0; border-left: 0; }
  .voie:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: var(--space-8); }
}
@media (max-width: 559px) {
  .voies { grid-template-columns: 1fr; }
  .voie, .voie + .voie { padding: var(--space-7) 0; border-left: 0; margin: 0; }
  .voie + .voie { border-top: 1px solid var(--line); }
}

/* ───────────── Pages légales : colonne de lecture ───────────── */
.document { max-width: calc(46rem + 2 * var(--marge)); }
.prose { padding-top: var(--space-6); padding-bottom: var(--rythme); }
.prose h2 { margin: var(--space-9) 0 var(--space-4); font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 24px; line-height: .95; color: var(--ink); }
.prose p, .prose ul { margin: var(--space-4) 0 0; font: 400 15.5px/1.5 var(--font-body); color: var(--ink-2); }
.prose ul { padding-left: 1.2em; list-style: square; }
.prose li + li { margin-top: var(--space-3); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.alerte { margin-top: var(--space-7); padding: var(--space-4) var(--space-5); border: 1px solid var(--loss); color: var(--loss); font: 700 15px/1.4 var(--font-body); }
.trou { color: var(--loss); font-weight: 700; }

/* ───────────── Pied de page ───────────── */
.pied { border-top: 1px solid var(--line); padding-top: var(--space-11); }
.pied__haut { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-7); row-gap: var(--space-8); padding-bottom: var(--space-11); }
.pied__marque { grid-column: 1 / span 5; display: grid; gap: var(--space-5); align-content: start; }
.pied__marque .text-long { max-width: 22rem; }
.pied__plan { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pied__plan a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.pied__plan a:hover { color: var(--accent-ink); }
.pied__bas { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-5); padding-top: var(--space-6); padding-bottom: var(--space-6); }
.pied__bas::before { content: ""; position: absolute; top: 0; left: var(--marge); right: var(--marge); height: 1px; background: var(--line); }
.pied__legal { display: flex; gap: var(--space-6); }
.pied__legal a { font: 500 13px/1.3 var(--font-body); color: var(--muted); min-height: 24px; display: inline-flex; align-items: center; }
.pied__legal a:hover, .pied__legal a[aria-current="page"] { color: var(--ink); }
.pied--court { padding-top: 0; }
@media (max-width: 767px) {
  .pied__marque, .pied__plan { grid-column: 1 / -1; }
  .pied__plan { grid-template-columns: 1fr 1fr; }
}

/* ───────────── Confirmation : la recette du système ───────────── */
.confirmation main { display: grid; justify-items: center; align-content: center; gap: var(--space-6); min-height: 100dvh; max-width: 30rem; margin: 0 auto; padding: var(--space-8) var(--page-margin); text-align: center; }
.confirmation .marque { margin-bottom: var(--space-6); }
.confirmation__carre { width: 72px; height: 72px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.confirmation__carre .ico { width: 34px; height: 34px; }
.confirmation .display-hero { font-size: 62px; }

/* ───────────── Mouvement : entrer à l'antenne (opacité + translateX 10px, 220ms) ───────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: sortie-antenne var(--duration-base) var(--ease-out) both; }
::view-transition-new(root) { animation: entree-antenne var(--duration-base) var(--ease-out) both; }
@keyframes sortie-antenne { to { opacity: 0; transform: translateX(-10px); } }
@keyframes entree-antenne { from { opacity: 0; transform: translateX(10px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media (prefers-reduced-motion: reduce) { .generique { display: none !important; } }
