/**
 * Page Groupe — maquette Figma « Scala_PageGroupe_0926 » (1440 × 3194).
 * Cotes, couleurs et typographies relevées dans le mode Dev de Figma.
 *
 *   Surtitre   Montserrat 300 14px, capitales, interlettrage 1px, #D60407
 *   H1         Montserrat 500 70px/70px, #EEE (maquette en 300, jugé trop fin)
 *   Onglets    barre 799 × 68, rayon 80, blanche ; pastille active 173 × 54 rouge
 *   H2         Montserrat 700 50px/50px, point final #D60407
 *   Texte      Montserrat 300 16px/19px
 *   Citation   Montserrat 700 24px/27px
 *   Logotype   1440 × 236, #D60407 ; carte 1186 × 484 posée à cheval dessus
 */

.scrg {
    --scrg-rouge: #d60407;
    --scrg-noir: #000;
    font-family: var(--scr-f-corps, 'Montserrat', sans-serif);
    color: #000;
    overflow: hidden;
}
.scrg h1, .scrg h2, .scrg p, .scrg ul, .scrg blockquote { margin: 0; padding: 0; }

/* ── Bandeau ─────────────────────────────────────────────── */
.scrg-bandeau {
    min-height: 419px; box-sizing: border-box; padding: 176px 24px 90px;
    background: var(--scrg-noir) center / cover no-repeat; text-align: center;
}
.scrg-surtitre {
    font-weight: 300; font-size: 14px; line-height: 20px; letter-spacing: 1px;
    text-transform: uppercase; color: var(--scrg-rouge);
}
.scrg-h1 { margin-top: 8px !important; font-weight: 500; font-size: 70px; line-height: 70px; color: #eee; }

/* Ancres visées depuis l'accueil : dégagement sous l'en-tête fixe. */
.scrg [id] { scroll-margin-top: 120px; }

/* ── Onglets ─────────────────────────────────────────────── */
.scrg-onglets {
    position: relative; z-index: 2; max-width: 799px; margin: -32px auto 0; box-sizing: border-box;
    padding: 7px 8px; border-radius: 80px; background: #fff;
}
.scrg-onglets ul { display: flex; align-items: center; justify-content: space-between; list-style: none; }
.scrg-onglets li { list-style: none !important; margin: 0; padding: 0; flex: 1; }
.scrg-onglets a {
    display: flex; align-items: center; justify-content: center; height: 54px; padding: 0 18px; border-radius: 80px;
    font-family: var(--scr-f-label, 'Orbitron', sans-serif); font-weight: 900; font-size: 12px; letter-spacing: 1px;
    text-transform: uppercase; white-space: nowrap; text-decoration: none; color: #000 !important;
    transition: background-color .15s ease, color .15s ease;
}
.scrg-onglets a:hover { color: var(--scrg-rouge) !important; }
.scrg-onglets a.is-actif { background: var(--scrg-rouge); color: #fff !important; }

/* ── Blocs texte + image ─────────────────────────────────── */
/* Le CSS personnalisé du site impose « h2 { font-size: 40px !important } ». */
.scrg h2.scrg-h2 { font-weight: 700; font-size: 50px !important; line-height: 50px !important; color: #000; padding: 0; }
.scrg-point { color: var(--scrg-rouge); }
.scrg-texte { font-weight: 300; font-size: 16px; line-height: 19px; }
.scrg-texte p { margin: 0 0 12px; }
.scrg-texte p:last-child { margin-bottom: 0; }
.scrg-texte strong, .scrg-texte b { font-weight: 700; }
.scrg-texte em { font-style: normal; font-weight: 700; color: var(--scrg-rouge); }

.scrg-visuel { display: block; width: 489px; height: 340px; object-fit: cover; border-radius: 10px; flex: none; }

/* Vidéo d'aperçu : fond vidéo partagé (scala-design.css), bouton plein cadre par-dessus. */
.scrg-video { position: relative; overflow: hidden; background: #111 center / cover no-repeat; }
.scrg-video-bouton {
    position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in;
}
.scrg-video-lecture {
    display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%;
    background: rgba(214, 4, 7, .92); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.3);
    transform: scale(.92); opacity: .9; transition: transform .2s ease, opacity .2s ease;
}
.scrg-video-lecture svg { width: 28px; height: 28px; margin-left: 3px; }
.scrg-video-bouton:hover .scrg-video-lecture,
.scrg-video-bouton:focus-visible .scrg-video-lecture { transform: scale(1); opacity: 1; }
.scrg-video-bouton:focus-visible { outline: 3px solid var(--scrg-rouge); outline-offset: -3px; border-radius: 10px; }

.scrg-modale {
    position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center;
    padding: 24px; background: rgba(0,0,0,.85);
}
.scrg-modale.is-ouverte { display: flex; }
html.scrg-modale-active { overflow: hidden; }
.scrg-modale-cadre { position: relative; width: min(1200px, 100%, calc((100vh - 96px) * 16 / 9)); }
.scrg-modale-lecteur { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.scrg-modale-lecteur iframe { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; border: 0; }
.scrg-modale-fermer {
    position: absolute; top: -44px; right: 0; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
    background: #fff; color: #000; font-size: 26px; line-height: 36px; cursor: pointer;
}

.scrg-histoire,
.scrg-quotidien {
    display: flex; align-items: center; box-sizing: border-box;
    max-width: 976px; margin: 0 auto; padding: 0 24px; box-sizing: content-box;
}
.scrg-histoire { justify-content: space-between; gap: 105px; padding-top: 66px; }
.scrg-histoire .scrg-colonne { width: 382px; }
.scrg-histoire .scrg-h2 { margin-bottom: 30px !important; }
.scrg-histoire .scrg-texte { padding-left: 27px; }

.scrg-quotidien { gap: 71px; padding-top: 173px; padding-bottom: 168px; }
.scrg-quotidien .scrg-colonne { width: 383px; }
.scrg-quotidien .scrg-h2 { margin-bottom: 30px !important; }
.scrg-quotidien .scrg-texte { padding-left: 10px; }

/* ── Logotype géant + carte ──────────────────────────────── */
.scrg-premium { position: relative; padding-top: 92px; }
.scrg-logotype { display: block; width: 100%; max-width: 1440px; height: auto; margin: 0 auto; fill: var(--scrg-rouge); }
.scrg-carte {
    position: relative; max-width: 1186px; height: 484px; margin: -116px auto 0; border-radius: 12px; overflow: hidden;
    background: #111;
}
.scrg-carte::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(20deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%);
}
.scrg-carte-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrg h2.scrg-carte-titre { position: absolute; z-index: 1; left: 105px; bottom: 76px; color: #fff; }

.scrg-premium-bas {
    display: flex; justify-content: space-between; gap: 60px;
    max-width: 976px; margin: 28px auto 0; padding: 0 24px; box-sizing: content-box;
}
.scrg-premium-bas .scrg-texte { width: 455px; }
.scrg-citation { display: flex; gap: 11px; width: 423px; border: 0 !important; }
.scrg-guillemet { width: 22px; height: 16px; flex: none; margin-top: 5px; color: var(--scrg-rouge); }
.scrg-citation p { font-weight: 700; font-size: 24px; line-height: 27px; color: #000; font-style: normal; }

/* ── Onglets à liste : services, engagements (écrans 2 et 3) ─────
 *   Colonne gauche 469 px, colonne droite 382 px à 108 px d'écart (x 241 / 818).
 *   Liste  Montserrat 500 20px/50px ; élément choisi : 700 rouge, pilule #F5F5F5
 *          493 × 54 débordant de 24 px à gauche, flèche à droite.
 *   Droite logo 204 × 59 (services) ou photo 417 × 190 rayon 15 (engagements),
 *          texte 382 px dessous. */
.scrg-rubrique, .scrg-evenements, .scrg-evenement {
    max-width: 976px; margin: 0 auto; padding: 88px 24px 140px; box-sizing: content-box;
}
/* Titre sur deux lignes, comme la maquette (bloc de 530 à 604 px). */
.scrg-rubrique .scrg-h2 { max-width: 604px; }
.scrg-rubrique-corps { display: flex; gap: 108px; margin-top: 48px; }
.scrg-liste { width: 469px; flex: none; list-style: none; }
.scrg-liste li { list-style: none !important; margin: 0; padding: 0; }
.scrg-liste-item {
    display: flex; align-items: center; justify-content: space-between; box-sizing: border-box;
    width: calc(100% + 24px); height: 50px; margin-left: -24px; padding: 0 24px; border: 0; border-radius: 60px;
    background: transparent; font-family: inherit; font-weight: 500; font-size: 20px; line-height: 50px; color: #000;
    text-align: left; cursor: default;
}
button.scrg-liste-item { cursor: pointer; transition: background-color .15s ease, color .15s ease; }
button.scrg-liste-item:hover { color: var(--scrg-rouge); }
.scrg-liste-item.is-actif { height: 54px; margin: -2px 0 -2px -24px; background: #f5f5f5; font-weight: 700; color: var(--scrg-rouge); }
.scrg-liste-fleche { width: 24px; height: 24px; flex: none; opacity: 0; color: var(--scrg-rouge); transition: opacity .15s ease; }
.scrg-liste-item.is-actif .scrg-liste-fleche, button.scrg-liste-item:hover .scrg-liste-fleche { opacity: 1; }
button.scrg-liste-item:focus-visible { outline: 2px solid var(--scrg-rouge); outline-offset: 2px; }

.scrg-panneaux { width: 382px; }
.scrg-panneau[hidden] { display: none; }
.scrg-panneau-logo { display: block; width: 204px; height: 59px; object-fit: contain; object-position: left center; margin-bottom: 37px; }
.scrg-panneau-photo {
    display: block; width: 417px; max-width: none; height: 190px; object-fit: cover; border-radius: 15px; margin-bottom: 22px;
}
.scrg-panneau-lien { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--scrg-rouge) !important; }

/* ── Événements (écran 4) ──────────────────────────────────────
 *   Titre centré ; filtres : actif bordure rouge 1px, pilule 296 × 54, 700 rouge ;
 *   inactif 500 noir. Grille 4 × 242 × 244, gouttière 20, rayon 15, couleur
 *   de l'événement + voile bas (0 → 20 % de noir) ; nom 700 20px blanc. */
.scrg-evenements { max-width: 1028px; text-align: center; }
.scrg-filtres { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 50px 0; }
.scrg-filtre {
    height: 54px; padding: 0 26px; border: 1px solid transparent; border-radius: 60px; background: transparent;
    font-family: inherit; font-weight: 500; font-size: 20px; line-height: 1; color: #000; cursor: pointer;
}
.scrg-filtre.is-actif { border-color: var(--scrg-rouge); font-weight: 700; color: var(--scrg-rouge); }
.scrg-filtre:focus-visible { outline: 2px solid var(--scrg-rouge); outline-offset: 2px; }

.scrg-evts { display: grid; grid-template-columns: repeat(4, 242px); gap: 20px; justify-content: center; list-style: none; }
.scrg-evts li { list-style: none !important; margin: 0; padding: 0; }
.scrg-evt[hidden] { display: none; }
.scrg-evt-carte {
    position: relative; display: block; height: 244px; border-radius: 15px; overflow: hidden; text-decoration: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 54.098%, rgba(0,0,0,.2) 100%), var(--scrg-evt, #d60407);
    transition: transform .2s ease, box-shadow .2s ease;
}
.scrg-evt-carte:hover, .scrg-evt-carte:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.scrg-evt-logo { position: absolute; left: 20px; right: 20px; top: 12px; bottom: 72px; display: flex; align-items: center; justify-content: center; }
.scrg-evt-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.scrg-evt-nom {
    position: absolute; left: 10px; right: 10px; bottom: 32px; display: flex; align-items: flex-end; justify-content: center; min-height: 40px;
    font-weight: 700; font-size: 20px; line-height: 20px; color: #fff; text-align: center;
}
.scrg-evts-vide { margin-top: 10px; font-weight: 300; font-size: 16px; color: #666; }
.scrg-evts-vide[hidden] { display: none; }

/* ── Nos tutos (retours du 30/10) : même gabarit que les événements,
 *   cartes 3 × 1, visuel 16:10 rayon 15, pastille de lecture rouge. */
.scrg-tutos { max-width: 1028px; margin: 0 auto; padding: 88px 24px 140px; box-sizing: content-box; text-align: center; }
.scrg-tutos-texte { max-width: 676px; margin: 24px auto 0; }
.scrg-tutos-grille {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px;
    margin: 50px 0 0 !important; padding: 0 !important; list-style: none; text-align: left;
}
.scrg-tutos-grille li { list-style: none !important; margin: 0; padding: 0; }
.scrg-tuto { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: #000 !important; }
.scrg-tuto-visuel {
    position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 15px; overflow: hidden; background: #f5f5f5;
}
.scrg-tuto-visuel img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.scrg-tuto-lecture {
    position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; background: var(--scrg-rouge); color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.2); transition: transform .2s ease;
}
.scrg-tuto-lecture svg { width: 20px; height: 20px; margin-left: 2px; }
.scrg-tuto-titre { margin-top: 16px; font-weight: 700; font-size: 18px; line-height: 23px; }
.scrg-tuto-resume { margin-top: 8px; font-weight: 300; font-size: 14px; line-height: 19px; color: #555; }
.scrg-tuto:hover .scrg-tuto-visuel img { transform: scale(1.04); }
.scrg-tuto:hover .scrg-tuto-lecture { transform: scale(1.08); }
.scrg-tuto:hover .scrg-tuto-titre { color: var(--scrg-rouge); }
.scrg-tuto:focus-visible { outline: 2px solid var(--scrg-rouge); outline-offset: 4px; border-radius: 15px; }
@media (max-width: 980px) { .scrg-tutos-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .scrg-tutos { padding: 48px 16px 80px; }
    .scrg-tutos-grille { grid-template-columns: minmax(0, 1fr); margin-top: 32px !important; }
}

/* ── Page d'un événement (écran 5) : titre, visuel 855 × 305, texte 676 px. */
.scrg-evenement { max-width: 855px; }
.scrg-evenement .scrg-h2 { max-width: 677px; margin: 0 auto 15px !important; }
.scrg-evenement-visuel { height: 305px; border-radius: 15px; overflow: hidden; background: #e54e4e; }
.scrg-evenement-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scrg-evenement .scrg-texte { max-width: 676px; margin: 48px auto 0; }
.scrg-evenement .scrg-texte p { margin-bottom: 19px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .scrg-histoire, .scrg-quotidien { gap: 48px; }
    .scrg-visuel { width: 44%; height: auto; aspect-ratio: 489 / 340; }
    .scrg-carte { margin-left: 24px; margin-right: 24px; }
    .scrg h2.scrg-carte-titre { left: 48px; bottom: 48px; }
    .scrg-quotidien { padding-top: 180px; }
    .scrg-rubrique-corps { gap: 48px; }
    .scrg-liste { width: 52%; }
    .scrg-panneaux { flex: 1; width: auto; }
    .scrg-panneau-photo { width: 100%; }
    .scrg-evts { grid-template-columns: repeat(3, minmax(0, 242px)); }
}
@media (max-width: 767px) {
    .scrg-bandeau { min-height: 0; padding: 130px 16px 70px; }
    .scrg-h1 { font-size: 42px; line-height: 50px; }
    /* La barre d'onglets cède la place à la liste déroulante (scala-design.css). */
    .scrg-onglets { display: none; }
    .scrg-onglets-mobile { margin: -28px 16px 0; width: auto; }
    .scrg h2.scrg-h2 { font-size: 32px !important; line-height: 38px !important; }
    .scrg-histoire, .scrg-quotidien { flex-direction: column; align-items: stretch; gap: 28px; padding: 48px 16px 0; }
    .scrg-histoire .scrg-colonne, .scrg-quotidien .scrg-colonne { width: auto; }
    .scrg-histoire .scrg-texte, .scrg-quotidien .scrg-texte { padding-left: 0; }
    .scrg-visuel { width: 100%; }
    .scrg-quotidien { flex-direction: column-reverse; padding-bottom: 70px; }
    .scrg-premium { padding-top: 60px; }
    .scrg-carte { height: 300px; margin: -40px 16px 0; }
    .scrg h2.scrg-carte-titre { left: 24px; bottom: 24px; }
    .scrg-premium-bas { flex-direction: column; gap: 28px; padding: 0 16px; }
    .scrg-premium-bas .scrg-texte, .scrg-citation { width: auto; }
    .scrg-citation p { font-size: 20px; line-height: 26px; }
    .scrg-quotidien { padding-top: 60px; }
    .scrg-rubrique, .scrg-evenements, .scrg-evenement { padding: 48px 16px 70px; }
    .scrg-rubrique-corps { flex-direction: column; gap: 32px; margin-top: 28px; }
    .scrg-liste { width: auto; }
    .scrg-liste-item { width: calc(100% + 16px); margin-left: -16px; padding: 0 16px; font-size: 17px; line-height: 44px; height: 44px; }
    .scrg-liste-item.is-actif { height: 48px; margin: -2px 0 -2px -16px; }
    .scrg-filtres { gap: 8px; margin: 20px 0 28px; }
    .scrg-filtre { height: 44px; padding: 0 18px; font-size: 15px; }
    .scrg-evts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .scrg-evt-carte { height: auto; aspect-ratio: 242 / 244; }
    .scrg-evt-logo { left: 12px; right: 12px; bottom: 64px; }
    .scrg-evt-nom { bottom: 18px; font-size: 15px; line-height: 17px; }
    .scrg-evenement-visuel { height: auto; aspect-ratio: 855 / 305; }
    .scrg-evenement .scrg-texte { margin-top: 28px; }
}
/* Texte sous le titre « Nos événements », avant les filtres (retours du 27/10). */
.scrg-evenements-texte { max-width: 720px; margin: 24px auto 0; }

/* ── Retours du 29/10 : bandeau affiné, espacements réguliers ─────────
 * La barre du site est désormais dans le flux (plus de superposition) :
 * les 176 px réservés en haut du bandeau ne servaient plus. Même DA que
 * les autres bandeaux de page : surtitre rouge, titre Termina capitales. */
.scrg-bandeau { min-height: 0; padding: 72px 24px 88px; }
.scrg-surtitre { font-weight: 700; }
.scrg-h1 {
    font-family: var(--scr-f-titre, 'termina', sans-serif); font-weight: 700;
    font-size: 40px; line-height: 44px; text-transform: uppercase; color: #fff;
}
/* Cinq onglets depuis l'ajout de « Nos tutos ». */
.scrg-onglets { max-width: 940px; }
/* Un seul pas vertical entre les blocs de la vue Groupe. */
.scrg-histoire { padding-top: 96px; }
.scrg-premium { padding-top: 96px; }
.scrg-quotidien { padding-top: 120px; padding-bottom: 120px; }
@media (max-width: 1100px) { .scrg-quotidien { padding-top: 120px; } }
@media (max-width: 767px) {
    .scrg-bandeau { padding: 48px 16px 64px; }
    .scrg-h1 { font-size: 26px; line-height: 30px; }
    .scrg-histoire, .scrg-quotidien { padding-top: 56px; }
    .scrg-premium { padding-top: 56px; }
    .scrg-quotidien { padding-bottom: 64px; }
}
