/* Landing « Rejoins le groupe de ton club » (group-landing.php). La page reprend les
   composants et la feuille de /regie-video/ (its-live-regie-landing.css : .rv, hero,
   sections, étapes, FAQ, appel final) ; ici seulement ce qui est propre aux groupes :
   la fenêtre « page d'un groupe », les cartes des maquettes et le choix des clubs. */

body.its-gl-page .site-footer { margin-top: 0; }
/* Jamais le teal foncé de la régie (#172713, « pas le bon vert ») : le teal du site partout. */
.gl.rv { --rv-nuit: var(--teal, #1C3D34); }
/* Sections plus serrées que la régie (128 px haut et bas faisaient un trou entre deux blocs, Félix 18/10). */
.gl .rv-sec { padding: clamp(48px, 6vw, 80px) 0; }
.gl .rv-hero + .rv-sec { padding-top: calc(clamp(48px, 6vw, 80px) + 140px); }
@media (max-width: 640px) { .gl .rv-hero + .rv-sec { padding-top: calc(48px + 60px); } }
.gl .rv-final { padding: clamp(56px, 7vw, 96px) 0; }
.gl .rv-hero::before { background: linear-gradient(180deg, rgba(28, 61, 52, 0.9) 0%, rgba(28, 61, 52, 0.8) 55%, rgba(28, 61, 52, 0.62) 100%); }
.gl .gl-ecran, .gl .gl-carte { color: var(--rv-teal); }
/* Haut de page plus large que celui de la régie : titre sur une ligne, sous-titre sur deux (Félix 18/10). */
.gl .rv-hero-texte { max-width: 1200px; }
.gl .rv-hero-sub { max-width: 76ch; }
/* Textes courts du schéma coupés au milieu, lignes de longueur égale (Félix 18/10). */
.gl .rv-noeud span, .gl .rv-regie-coeur span { text-wrap: balance; }
.gl .rv-p { text-wrap: pretty; }
/* Titres « titre + trait » : composant de la home (.hd .hd-rub-tete), posé dans la section :
   le .hd porteur prend le fond et la couleur de la section (vanille sur les fonds sombres). */
.gl .gl-tete { background: none; color: inherit; }
.gl .gl-tete .hd-rub-tete { margin-bottom: clamp(32px, 3.5vw, 52px); } /* titre aéré : il ne colle plus aux colonnes */
/* Un seul trait sur la page : celui des titres du site (filet fin teal 22 %), aussi sous les en-têtes de colonnes. */
.gl .rv-col-t { border-bottom: 1px solid rgba(28, 61, 52, 0.22); }
/* Titre au-dessus des deux colonnes : texte et maquette centrés l'un sur l'autre, la plus courte au milieu de la plus haute (Félix 18/10). */
.gl .rv-duo { align-items: center; }
/* Pas de marge invisible sous le dernier élément du texte : le centrage se fait sur ce qui se voit. */
.gl .rv-duo-texte > :last-child { margin-bottom: 0; }
.rv-faq-grille .gl-tete { position: sticky; top: 110px; }
@media (max-width: 960px) { .rv-faq-grille .gl-tete { position: static; } }

/* Fenêtre du haut de page : la page d'un groupe telle qu'elle est (haut de page teal + photo,
   onglets de la fiche, fil en cartes blanches, colonne Prochain match et sorties). */
.gl-ecran { width: 100%; max-width: 1080px; margin: 0 auto; background: var(--rv-vanille); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); text-align: left; font-size: 0.9rem; line-height: 1.45; }
.gl-g-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--rv-teal); color: var(--rv-vanille); }
.gl-g-hero-txt { display: flex; flex-direction: column; gap: 6px; padding: 26px 28px; }
.gl-g-hero-txt > small { font-size: 0.72rem; font-weight: 800; }
.gl-g-hero-txt strong { font-size: 1.9rem; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
.gl-g-hero-txt > span { font-size: 0.85rem; color: var(--rv-clair-2); }
.gl-g-faits { display: flex; gap: 22px; margin-top: 4px; }
.gl-g-faits span { display: flex; flex-direction: column; }
.gl-g-faits small { font-size: 0.7rem; font-weight: 800; }
.gl-g-faits b { font-size: 1.15rem; }
.gl-g-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gl-g-btns span { padding: 7px 13px; font-size: 0.78rem; font-weight: 800; border: 1.5px solid var(--rv-vanille); }
.gl-g-btns .is-plein { background: var(--rv-vanille); color: var(--rv-teal); }
.gl-g-photo { position: relative; min-height: 200px; overflow: hidden; }
.gl-g-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gl-g-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 110px; height: 110px; }
.gl-g-logo img { position: static; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35)); } /* logo rond du site (en-tête) */
.gl-g-nav { display: flex; justify-content: center; gap: 4px; background: #142E27; color: var(--rv-vanille); overflow: hidden; }
.gl-g-nav span { padding: 11px 14px; font-size: 0.82rem; font-weight: 700; white-space: nowrap; opacity: 0.85; }
.gl-g-nav .is-on { opacity: 1; box-shadow: inset 0 -3px 0 var(--rv-vanille); }
.gl-g-corps { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; padding: 18px; }
.gl-g-cote { display: flex; flex-direction: column; gap: 12px; }
.gl-g-match { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--rv-teal); color: var(--rv-vanille); }
.gl-g-match small { font-size: 0.75rem; font-weight: 800; color: var(--rv-clair-2); }
.gl-g-match b { font-size: 1.05rem; }
.gl-g-match-btn { margin-top: 10px; padding: 9px; text-align: center; font-size: 0.82rem; font-weight: 800; color: var(--rv-teal); background: var(--rv-vanille); }
.gl-ecran .gl-sortie { box-shadow: none; }

/* Publication : la carte du fil d'un groupe. */
.gl-post { padding: 16px 18px; background: var(--white, #fff); border: 1px solid rgba(28, 61, 52, 0.12); color: var(--rv-teal); font-size: 0.92rem; line-height: 1.45; }
.gl-post-tete { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.gl-post-tete span { display: flex; flex-direction: column; }
.gl-post-tete small { font-size: 0.78rem; color: var(--rv-encre-2); }
.gl-post-txt { margin: 12px 0; }
.gl-post-acts { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(28, 61, 52, 0.12); }
.gl-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 0.8rem; font-weight: 700; border: 1px solid rgba(28, 61, 52, 0.25); }
.gl-post-nb { margin-left: auto; font-size: 0.8rem; color: var(--rv-encre-2); }
.gl-post-rep { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.gl-post-rep .gl-ava { width: 28px; height: 28px; font-size: 0.6rem; }
.gl-post-rep p { margin: 0; padding: 8px 10px; flex: 1; font-size: 0.86rem; line-height: 1.4; background: var(--rv-vanille); }
.gl-post-rep small { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--rv-encre-2); }
.gl-post-com { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.gl-post-com .gl-ava { width: 28px; height: 28px; font-size: 0.6rem; }
.gl-post-champ { flex: 1; padding: 8px 10px; font-size: 0.82rem; color: var(--rv-encre-2); background: var(--rv-vanille); }
.gl-post-envoi { padding: 8px 12px; font-size: 0.8rem; font-weight: 800; color: var(--rv-vanille); background: var(--rv-teal); }
.gl-maquette .gl-post { box-shadow: 0 24px 60px rgba(28, 61, 52, 0.14); }

/* Maquettes des sections. */
.gl-maquette { display: flex; justify-content: center; }
.gl-maquette > div { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 12px; }
.gl-carte { padding: 18px 20px; background: var(--rv-vanille); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22); font-size: 0.95rem; line-height: 1.45; }
.rv-chaine .gl-carte, .rv-partenaires .gl-carte, .rv-etapes .gl-carte { background: var(--rv-sable); box-shadow: 0 24px 60px rgba(28, 61, 52, 0.14); }
.gl-carte small { color: var(--rv-encre-2); font-size: 0.8rem; }
.gl-ava { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; font-size: 0.75rem; font-weight: 900; color: var(--rv-vanille); background: var(--rv-teal); }
.gl-sortie { display: flex; gap: 16px; padding: 0; background: var(--white, #fff); border: 1px solid rgba(28, 61, 52, 0.12); }
.gl .rv-sec .gl-carte.gl-sortie, .gl .rv-sec .gl-carte.gl-articles { background: var(--white, #fff); } /* blanc partout, même sur les sections claires */ /* comme les cartes du fil : se détache du fond vanille */
.gl-sortie-date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 84px; color: var(--rv-vanille); background: var(--rv-teal); }
.gl-sortie-date b { font-size: 2rem; line-height: 1; }
.gl-sortie-corps { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 16px 0; }
.gl-sortie-corps b { font-size: 1.1rem; line-height: 1.25; }
.gl-avas { display: flex; align-items: center; margin-top: 6px; }
.gl-avas .gl-ava { width: 28px; height: 28px; margin-right: -4px; border: 2px solid var(--white, #fff); font-size: 0.6rem; }
.gl-avas em { margin-left: 12px; font-style: normal; font-size: 0.85rem; font-weight: 700; }
.gl-sortie-btns { display: flex; gap: 8px; margin-top: 8px; }
.gl-faux-btn { padding: 8px 14px; font-size: 0.85rem; font-weight: 800; color: var(--rv-vanille); background: var(--rv-teal); border: 1.5px solid var(--rv-teal); }
.gl-faux-btn.is-trait { color: var(--rv-teal); background: transparent; }
.gl-sortie-lieu { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--rv-encre-2); }
.gl-sortie-lieu .rv-ico { width: 16px; height: 16px; }
.gl-sortie-bar { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.85rem; font-weight: 700; }
.gl-sortie-bar .rv-ico { width: 16px; height: 16px; }
.gl-mini-titre { display: block; margin-bottom: 10px; font-weight: 800; }
.gl-prono { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 1.4rem; }
.gl-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gl-art { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; line-height: 1.3; }
.gl-art i { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--rv-teal), #2c5a4c); }
.gl-score { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 48px; font-weight: 900; border: 2px solid var(--rv-teal); }
.gl-classement { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(28, 61, 52, 0.16); font-size: 0.9rem; }

/* Choix des clubs (fond sable de la section, cartes vanille). */
.its-gl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.its-gl-muted { color: var(--rv-encre-2); font-size: 13px; font-weight: 600; }
.its-gl-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 8px; }
.its-gl-search-input {
    flex: 1 1 280px; max-width: 420px; padding: 13px 16px; font-size: 16px;
    color: var(--rv-teal); background: var(--rv-vanille);
    border: 2px solid var(--rv-teal); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.its-gl-filtres { margin: 0; }
.its-gl-count { margin: 0 0 8px; min-height: 1.4em; font-size: 14px; color: var(--rv-encre-2); }
.its-gl-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.its-gl-niveau { margin: 0 0 32px; }
.its-gl-niveau[hidden] { display: none; }
.its-gl-h3 { padding: 0 0 10px; margin: 0 0 14px; width: 100%; border-bottom: 1px solid rgba(28, 61, 52, 0.22); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--rv-teal); }
.its-gl-clubs { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.its-gl-club[hidden] { display: none; }
.its-gl-club label {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
    height: 100%; padding: 16px 10px 12px; text-align: center; cursor: pointer;
    background: var(--rv-vanille); border: 2px solid transparent; color: var(--rv-teal);
    transition: transform 0.2s var(--rv-ease), box-shadow 0.2s var(--rv-ease);
}
.its-gl-club label:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(28, 61, 52, 0.14); }
.its-gl-club label:focus-within { outline: 3px solid var(--rv-teal); outline-offset: 2px; }
.its-gl-club input { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; margin: 0; accent-color: var(--rv-teal); }
.its-gl-club img, .its-gl-club-ph { width: 56px; height: 56px; object-fit: contain; }
.its-gl-club-name { font-weight: 800; font-size: 14px; line-height: 1.25; }
.its-gl-club.is-on label, .its-gl-club label:has(input:checked) { border-color: var(--rv-teal); }
.its-gl-absent { margin: 8px 0 0; color: var(--rv-teal); }
.its-gl-lien a { color: var(--rv-teal); font-weight: 800; }

/* Barre d'envoi : en fin de liste ; collée en bas de l'écran dès qu'un club est coché. */
.its-gl-barre { display: flex; align-items: center; justify-content: flex-start; gap: 16px; padding: 20px 0 0; }
.its-gl-form.has-choix .its-gl-barre {
    position: sticky; bottom: 0; z-index: 5; justify-content: flex-end;
    margin: 16px -12px 0; padding: 10px 12px;
    background: var(--rv-vanille); border-top: 1px solid rgba(28, 61, 52, 0.18);
}
.its-gl-choisis { margin: 0; font-size: 14px; font-weight: 700; color: var(--rv-teal); }
.its-gl-go { min-height: 50px; padding: 0 22px; font-size: 1rem; font-weight: 800; cursor: pointer; color: var(--rv-vanille); background: var(--rv-teal); border: 1.5px solid var(--rv-teal); border-radius: 0; }
.its-gl-go:hover { box-shadow: 0 10px 24px rgba(28, 61, 52, 0.22); }
/* Dans l'app, la barre d'onglets du bas recouvre l'écran : la barre d'envoi monte au-dessus. */
html.is-app .its-gl-form.has-choix .its-gl-barre { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) {
    .its-gl-club label { transition: none; }
}
@media (max-width: 1024px) {
    .its-gl-clubs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .gl-g-hero { grid-template-columns: 1fr; }
    .gl-g-photo { min-height: 140px; }
    .gl-g-nav { justify-content: flex-start; }
    .gl-g-corps { grid-template-columns: 1fr; }
    .gl-g-cote .gl-sortie { display: none; }
    .its-gl-clubs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .its-gl-clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gl-g-faits, .gl-g-btns .is-plein:last-child { display: none; }
    .its-gl-form.has-choix .its-gl-barre { margin: 16px -18px 0; padding: 10px 18px; }
}


/* Alternance vanille / teal (Félix 18/10) : listes et étapes lisibles sur le teal. */
.gl .rv-habillage .rv-liste li { color: var(--rv-vanille); border-bottom-color: rgba(242, 229, 210, 0.2); }
.gl .rv-habillage .rv-liste li::before { background: var(--rv-vanille); }
.gl .gl-et-teal { background: var(--rv-teal); color: var(--rv-vanille); }
.gl .gl-et-teal .rv-et li { border-top-color: rgba(242, 229, 210, 0.5); }
.gl .gl-et-teal .rv-et span { color: var(--rv-clair-2); }

/* Maquette « Pronos du groupe ce mois-ci » : rang, membre (pseudonyme), points, ta ligne surlignée. */
.gl-classe-l { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.gl-classe-l li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; font-size: 0.9rem; }
.gl-classe-l b { text-align: center; }
.gl-classe-l em { font-style: normal; font-weight: 800; }
.gl-classe-l .is-moi { color: var(--rv-vanille); background: var(--rv-teal); }
