/* =====================================================================
   Lille Impact Sport - thème « soir de match » du site public
   ---------------------------------------------------------------------
   Chargé APRÈS site.css. Deux portées :
     - sans préfixe : en-tête, pied de page, bandeau cookies, retour en haut
       (communs à toutes les pages, Mon espace compris) ;
     - .site-pro : le contenu des pages publiques uniquement
       (Mon espace porte la classe .ps-body et garde son style clair).

   Couleurs reprises de l'écusson :
     nuit     #040b20  fond des pages
     marine   #0a1d57  bleu de l'écusson (grands aplats)
     surface  #0b1633  cartes et panneaux
     relief   #13244d  survol, éléments en relief
     or       #fccf1a  jaune du soleil de l'écusson (actions, scores, état actif)
     craie    #eef1f8  texte    ·   brume #97a4c6  texte secondaire
   Titres : Big Shoulders Display (lettres de stade). Texte : Barlow.
   ===================================================================== */

:root {
    --nuit: #040b20;
    --nuit-2: #071232;
    --marine: #0a1d57;
    --surface: #0b1633;
    --relief: #13244d;
    --or: #fccf1a;
    --or-vif: #ffe066;
    --or-sombre: #b88f00;
    --craie: #eef1f8;
    --brume: #a9b4d2;
    --filet: rgba(255, 255, 255, .09);
    --filet-fort: rgba(255, 255, 255, .17);

    --font-pro: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
    --header-h: 84px;
    --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* =====================================================================
   En-tête (toutes les pages)
   ===================================================================== */
.site-header {
    background: transparent;
    border-bottom: 1px solid var(--filet);
    transition: border-color .25s, box-shadow .25s;
}

/* Fond flouté sur un calque à part : posé sur l'en-tête lui-même, le flou (backdrop-filter)
   enfermerait le menu mobile (position: fixed) dans la hauteur de l'en-tête. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(4, 11, 32, .92);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    transition: background .25s;
}

.site-header::after {
    /* filet or : discret, s'élargit au défilement */
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0;
    background: var(--or);
    transition: width .4s var(--ease-out);
}

.site-header.is-scrolled {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.site-header.is-scrolled::after {
    width: 100%;
}

/* Accueil : en-tête transparent sur la photo tant qu'on n'a pas défilé */
body.is-home .site-header:not(.is-scrolled) {
    border-bottom-color: transparent;
}

body.is-home .site-header:not(.is-scrolled)::before {
    background: linear-gradient(180deg, rgba(4, 11, 32, .75), rgba(4, 11, 32, 0));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Menu mobile ouvert : en-tête plein, même sur la photo de l'accueil */
body.nav-open .site-header::before,
body.is-home.nav-open .site-header:not(.is-scrolled)::before {
    background: var(--nuit);
}

body.is-home .site-header:not(.is-scrolled)::after {
    width: 0;
}

.site-header-inner {
    max-width: 1320px;
}

.brand {
    gap: 14px;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4));
}

.brand-name {
    display: flex;
    flex-direction: column;
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 22px;
    font-weight: 900;
    line-height: .95;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #fff;
}

.brand-name small {
    font-family: var(--font-pro);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--or);
    margin-top: 4px;
}

.main-nav ul {
    gap: 2px;
}

.main-nav ul a {
    position: relative;
    padding: 10px 12px;
    border-radius: 0;
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: none;
    color: rgba(238, 241, 248, .8);
    background: none;
}

.main-nav ul a:hover {
    color: #fff;
    background: none;
}

.main-nav ul a.is-active {
    color: #fff;
    background: none;
}

.main-nav ul a.is-active::after,
.main-nav ul a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 3px;
    border-radius: 0;
    background: var(--or);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease-out);
}

.main-nav ul a:hover::after,
.main-nav ul a.is-active::after {
    transform: scaleX(1);
}

.main-nav ul a:not(.is-active):hover::after {
    opacity: .5;
}

/* « Nous rejoindre » mis en avant dans la navigation */
.main-nav ul a.is-cta {
    margin-left: 6px;
    padding: 9px 16px;
    color: var(--nuit);
    background: var(--or);
}

.main-nav ul a.is-cta:hover,
.main-nav ul a.is-cta.is-active {
    color: var(--nuit);
    background: var(--or-vif);
}

.main-nav ul a.is-cta::after {
    display: none;
}

.account-link {
    height: 42px;
    border-radius: 0;
    border: 1px solid var(--filet-fort);
    background: transparent;
    color: #fff;
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.account-link:hover,
.account-link.is-active {
    border-color: var(--or);
    background: transparent;
    color: var(--or);
}

.account-badge {
    background: #e5484d;
}

.header-actions {
    margin-left: auto;
}

.nav-toggle {
    border-radius: 0;
    border: 1px solid var(--filet-fort);
}

/* Menu sur une seule ligne : pas de libellé coupé en deux */
.main-nav ul a {
    white-space: nowrap;
}

@media (max-width: 1240px) {
    .main-nav ul a {
        padding: 10px 7px;
        font-size: 17px;
    }

    .main-nav ul a::after {
        left: 8px;
        right: 8px;
    }

    .brand-name small {
        display: none;
    }
}

@media (max-width: 1080px) {
    .main-nav {
        background: var(--nuit);
        background-image:
            radial-gradient(120% 60% at 100% 0%, rgba(10, 29, 87, .9), transparent 70%);
    }

    .main-nav ul a {
        padding: 11px 0;
        font-size: 32px;
        font-weight: 900;
        color: #fff;
        border-bottom: 1px solid var(--filet);
    }

    .main-nav ul a::after {
        display: none;
    }

    .main-nav ul a.is-active {
        color: var(--or);
    }

    .main-nav ul a.is-cta {
        margin: 18px 0 0;
        padding: 14px 18px;
        font-size: 26px;
        text-align: center;
        border-bottom: 0;
    }
}

@media (max-width: 560px) {
    :root {
        --header-h: 68px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand-name {
        font-size: 19px;
    }

    .account-link {
        width: 42px;
        height: 42px;
    }
}

/* Réseaux sociaux */
.socials a {
    border-radius: 0;
    border-color: var(--filet-fort);
}

.socials a:hover {
    background: var(--or);
    border-color: var(--or);
    color: var(--nuit);
}

/* =====================================================================
   Pied de page (toutes les pages)
   ===================================================================== */
.site-footer {
    position: relative;
    overflow: hidden;
    background: var(--nuit);
    color: var(--brume);
    border-top: 1px solid var(--filet);
    padding: 0;
}

.footer-top {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding-top: 56px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--filet);
}

.footer-top .footer-crest {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5));
}

.footer-club {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 900;
    line-height: .9;
    text-transform: uppercase;
    color: #fff;
}

.footer-club small {
    display: block;
    margin-top: 10px;
    font-family: var(--font-pro);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: none;
    color: var(--brume);
    max-width: 46ch;
}

.footer-top .socials {
    display: flex;
    gap: 8px;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.site-footer .footer-col h2 {
    margin-bottom: 14px;
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--or);
}

.site-footer .footer-col ul {
    display: grid;
    gap: 8px;
}

.site-footer .footer-col a,
.site-footer address {
    font-family: var(--font-pro);
    font-size: 16px;
    font-style: normal;
    color: var(--craie);
    text-decoration: none;
}

.site-footer .footer-col a:hover {
    color: var(--or);
}

.site-footer .footer-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 16px;
    border: 1px solid var(--filet-fort);
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

.site-footer .footer-account:hover {
    border-color: var(--or);
    color: var(--or);
}

.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 28px;
    border-top: 1px solid var(--filet);
    font-family: var(--font-pro);
    font-size: 14px;
    color: var(--brume);
}

.site-footer .footer-bottom a {
    color: var(--brume);
}

.site-footer .footer-bottom a:hover {
    color: #fff;
}

/* Beffroi de Lille en filigrane, toujours à gauche.
   Grand écran : entier dans la marge. Écran plus étroit : plus petit et plus léger, posé en bas,
   pour ne pas remonter jusqu'au blason. */
.footer-belfry {
    position: absolute;
    left: max(-20px, calc((100vw - 1240px) / 2 - 200px));
    bottom: 0;
    z-index: 0;
    height: min(62%, 420px);
    width: auto;
    opacity: .28;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 22%);
}

@media (min-width: 1580px) {
    .footer-belfry {
        height: min(92%, 560px);
        opacity: .45;
    }
}

.site-footer > .container {
    position: relative;
    z-index: 1;
}

/* Les boutons flottants (assistant, retour en haut) ne doivent pas cacher le bas du pied de page */
body.has-chatbot .site-footer {
    padding-bottom: 84px;
}

/* … ni le lien « Politique de confidentialité » quand la marge de droite est étroite */
body.has-chatbot .site-footer .footer-bottom {
    padding-right: max(0px, calc(84px - (100vw - var(--container, 1240px)) / 2));
}

@media (max-width: 560px) {
    body.has-chatbot .site-footer .footer-bottom {
        padding-right: 0;
    }
}

@media (max-width: 820px) {
    .footer-belfry {
        left: -24px;
        height: 380px;
        opacity: .18;
    }
}

@media (max-width: 820px) {
    .footer-top {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .footer-top .socials {
        grid-column: 1 / -1;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-top .footer-crest {
        width: 72px;
        height: 72px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

.back-to-top {
    border-radius: 0;
    background: var(--or);
    color: var(--nuit);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.back-to-top:hover {
    background: var(--or-vif);
}

.cookie-banner {
    border-radius: 0;
    background: var(--surface);
    border: 1px solid var(--filet-fort);
    border-top: 3px solid var(--or);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.cookie-banner .btn {
    border-radius: 0;
}

/* =====================================================================
   Pages publiques : base sombre
   ===================================================================== */
.site-pro {
    --chalk: var(--nuit);
    --paper: var(--surface);
    --ink: var(--craie);
    --slate: var(--brume);
    --line: var(--filet);
    --line-strong: var(--filet-fort);
    --on-navy: var(--craie);
    --on-navy-soft: var(--brume);
    --on-navy-line: var(--filet);
    --font-text: var(--font-pro);
    --radius: 2px;
    --radius-lg: 2px;
    --shadow: 0 18px 40px rgba(0, 0, 0, .35);

    background: var(--nuit);
    color: var(--craie);
    font-family: var(--font-pro);
}

.site-pro ::selection {
    background: var(--or);
    color: var(--nuit);
}

.site-pro h1,
.site-pro h2,
.site-pro h3,
.site-pro h4 {
    color: #fff;
}

.site-pro {
    --container: 1240px;
}

.site-pro .section {
    padding-top: clamp(64px, 8vw, 112px);
    padding-bottom: clamp(64px, 8vw, 112px);
}

.site-pro .section.is-white {
    background: var(--nuit-2);
}

.site-pro .section + .section.is-white,
.site-pro .section.is-white + .section.is-white {
    border-top: 1px solid var(--filet);
}

/* Titres de section : lettres de stade, en capitales, alignés à gauche */
.site-pro .section-head {
    align-items: end;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--filet);
}

.site-pro .section-title {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: clamp(36px, 4.6vw, 60px);
    font-weight: 900;
    line-height: .92;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff;
}

.site-pro .section-sub,
.site-pro .section-count {
    color: var(--brume);
}

.site-pro .text-link {
    color: #fff;
    text-decoration-color: var(--or);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.site-pro .text-link:hover {
    color: var(--or);
}

.site-pro .empty-note {
    padding: 28px;
    border: 1px dashed var(--filet-fort);
    background: transparent;
    color: var(--brume);
}

/* ---------------------------------------------------------------------
   Boutons
   --------------------------------------------------------------------- */
.site-pro .btn {
    border-radius: 0;
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}

.site-pro .btn-lg {
    min-height: 56px;
    padding: 0 30px;
    font-size: 19px;
}

.site-pro .btn-gold {
    background: var(--or);
    border-color: var(--or);
    color: var(--nuit);
}

.site-pro .btn-gold:hover {
    background: var(--or-vif);
    border-color: var(--or-vif);
    color: var(--nuit);
}

.site-pro .btn-navy,
.site-pro .btn-primary {
    background: var(--or);
    border-color: var(--or);
    color: var(--nuit);
}

.site-pro .btn-navy:hover,
.site-pro .btn-primary:hover {
    background: var(--or-vif);
    border-color: var(--or-vif);
    color: var(--nuit);
}

.site-pro .btn-outline,
.site-pro .btn-ghost-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
}

.site-pro .btn-outline:hover,
.site-pro .btn-ghost-light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--nuit);
}

/* Étiquettes, badges */
.site-pro .tag {
    border-radius: 0;
    background: rgba(252, 207, 26, .12);
    color: var(--or);
    font-weight: 700;
}

.site-pro .tag-gold {
    background: var(--or);
    color: var(--nuit);
}

.site-pro .result-badge {
    border-radius: 0;
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.site-pro .result-badge.is-upcoming {
    background: rgba(252, 207, 26, .14);
    color: var(--or);
}

.site-pro .crest {
    background: var(--relief);
}

.site-pro .crest:has(img) {
    background: #fff;
}

/* ---------------------------------------------------------------------
   Messages et formulaires
   --------------------------------------------------------------------- */
.site-pro .alert {
    border-radius: 0;
    border: 1px solid var(--filet-fort);
    border-left-width: 4px;
    background: var(--surface);
    color: var(--craie);
}

.site-pro .alert-success {
    border-left-color: #2fbf71;
}

.site-pro .alert-success > i {
    color: #2fbf71;
}

.site-pro .alert-error {
    border-left-color: #f0524f;
}

.site-pro .alert-error > i {
    color: #f0524f;
}

.site-pro .alert-info,
.site-pro .alert-warn {
    border-left-color: var(--or);
    background: var(--surface);
    color: var(--craie);
}

.site-pro .alert-info > i,
.site-pro .alert-warn > i {
    color: var(--or);
}

.site-pro .field > label,
.site-pro .field-label {
    color: var(--craie);
    font-weight: 600;
}

.site-pro .field input,
.site-pro .field textarea,
.site-pro .field select,
.site-pro .form-control {
    border-radius: 0;
    border: 1px solid var(--filet-fort);
    background: var(--nuit);
    color: #fff;
}

.site-pro .field input::placeholder,
.site-pro .field textarea::placeholder {
    color: rgba(151, 164, 198, .7);
}

.site-pro .field select option,
.site-pro .field select optgroup {
    background: var(--surface);
    color: #fff;
}

.site-pro .field input:focus,
.site-pro .field textarea:focus,
.site-pro .field select:focus {
    border-color: var(--or);
    box-shadow: 0 0 0 3px rgba(252, 207, 26, .2);
    outline: none;
}

.site-pro .field.is-invalid input,
.site-pro .field.is-invalid select,
.site-pro .field.is-invalid textarea {
    border-color: #f0524f;
}

.site-pro .field-error {
    color: #ff7b78;
}

.site-pro .check input {
    accent-color: var(--or);
}

.site-pro input[type="date"] {
    color-scheme: dark;
}

/* =====================================================================
   Bandeau des pages intérieures
   ===================================================================== */
.site-pro .page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 72px);
    background:
        radial-gradient(90% 140% at 100% 0%, rgba(10, 29, 87, .95), rgba(10, 29, 87, 0) 60%),
        var(--nuit);
    border-bottom: 1px solid var(--filet);
}

/* Rayons de l'écusson à droite du bandeau */
.site-pro .page-hero-rays {
    left: auto;
    right: -12%;
    top: 50%;
    width: min(70vw, 900px);
    height: auto;
    aspect-ratio: 1;
    transform: translateY(-50%);
    fill: var(--or);
    opacity: .05;
}

.site-pro .page-hero::after {
    /* filet or sous le titre */
    content: "";
    position: absolute;
    left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
    bottom: -1px;
    width: 96px;
    height: 4px;
    background: var(--or);
}

.site-pro .crumbs {
    color: var(--brume);
    font-size: 14px;
    font-weight: 600;
}

.site-pro .crumbs a {
    color: var(--brume);
}

.site-pro .crumbs a:hover,
.site-pro .crumbs [aria-current] {
    color: var(--or);
}

.site-pro .page-hero-title {
    margin-top: 14px;
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: clamp(52px, 9vw, 128px);
    font-weight: 900;
    line-height: .86;
    letter-spacing: -.005em;
    text-transform: uppercase;
    color: #fff;
}

.site-pro .page-hero-intro {
    max-width: 62ch;
    margin-top: 22px;
    font-size: 19px;
    line-height: 1.55;
    color: var(--brume);
}

/* =====================================================================
   Accueil
   ===================================================================== */
.hero {
    position: relative;
    isolation: isolate;
    min-height: min(78svh, 760px);
    margin-top: calc(var(--header-h) * -1);
    padding: calc(var(--header-h) + 64px) 0 150px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--nuit);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Photo du club en bichromie bleu nuit, quelle que soit la photo choisie */
.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: grayscale(1) contrast(1.15) brightness(.9);
    mix-blend-mode: luminosity;
    opacity: .5;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--marine);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--nuit) 0%, rgba(4, 11, 32, .88) 38%, rgba(4, 11, 32, .35) 70%, rgba(4, 11, 32, .55) 100%),
        linear-gradient(0deg, var(--nuit) 0%, rgba(4, 11, 32, 0) 38%);
}

/* Le soleil de l'écusson : rayons qui partent du blason */
.hero-sun {
    position: absolute;
    right: max(-120px, calc((100vw - 1240px) / 2 - 140px));
    top: 50%;
    z-index: 0;
    width: min(64vw, 860px);
    aspect-ratio: 1;
    transform: translateY(-46%);
    pointer-events: none;
}

.hero-rays {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: var(--or);
    opacity: .16;
    -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 68%);
    mask-image: radial-gradient(circle, #000 18%, transparent 68%);
    animation: heroSun 1.6s var(--ease-out) both;
}

.hero-crest {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40%;
    height: auto;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
    animation: heroCrest 1s var(--ease-out) .15s both;
}

@keyframes heroSun {
    from {
        opacity: 0;
        transform: rotate(-12deg) scale(.9);
    }
}

@keyframes heroCrest {
    from {
        opacity: 0;
        transform: translate(-50%, -46%) scale(.94);
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 800px;
}

.hero-place {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    font-size: 16px;
    font-weight: 600;
    color: var(--or);
}

.hero-place::before {
    content: "";
    width: 36px;
    height: 2px;
    background: var(--or);
}

.hero-title {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: clamp(48px, 7.4vw, 108px);
    font-weight: 900;
    line-height: .84;
    letter-spacing: -.01em;
    text-transform: uppercase;
    color: #fff;
}

.hero-title span {
    display: block;
    animation: heroLine .8s var(--ease-out) both;
    animation-delay: calc(var(--i) * 120ms + 100ms);
}

.hero-title span:last-child {
    color: transparent;
    -webkit-text-stroke: 2px var(--or);
}

@supports not (-webkit-text-stroke: 2px red) {
    .hero-title span:last-child {
        color: var(--or);
    }
}

@keyframes heroLine {
    from {
        opacity: 0;
        transform: translateY(.25em);
    }
}

.hero-lead {
    max-width: 52ch;
    margin-top: 24px;
    font-size: 19px;
    line-height: 1.6;
    color: rgba(238, 241, 248, .86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* Recadrage choisi dans Paramètres du club */
.hero-photo.is-focus-haut {
    object-position: center 15%;
}

.hero-photo.is-focus-centre {
    object-position: center 50%;
}

.hero-photo.is-focus-bas {
    object-position: center 85%;
}

/* Photo principale en couleurs d'origine : assombrie à gauche pour que le titre reste lisible */
.hero.is-natural .hero-media::before {
    display: none;
}

.hero.is-natural .hero-photo {
    filter: saturate(1.05);
    mix-blend-mode: normal;
    opacity: 1;
}

.hero.is-natural .hero-media::after {
    background:
        linear-gradient(90deg, rgba(4, 11, 32, .94) 0%, rgba(4, 11, 32, .78) 34%, rgba(4, 11, 32, .25) 70%, rgba(4, 11, 32, .1) 100%),
        linear-gradient(0deg, var(--nuit) 0%, rgba(4, 11, 32, 0) 34%),
        linear-gradient(180deg, rgba(4, 11, 32, .55) 0%, rgba(4, 11, 32, 0) 22%);
}

@media (max-width: 960px) {
    .hero.is-natural .hero-media::after {
        background:
            linear-gradient(0deg, var(--nuit) 0%, rgba(4, 11, 32, .72) 45%, rgba(4, 11, 32, .5) 100%);
    }
}

@media (max-width: 960px) {
    .hero {
        min-height: 0;
        padding-bottom: 130px;
        align-items: flex-start;
    }

    .hero-sun {
        right: -30vw;
        top: 46%;
        width: 120vw;
        opacity: .55;
    }

    .hero-crest {
        width: 34%;
    }
}

@media (max-width: 560px) {
    .hero {
        padding-top: calc(var(--header-h) + 36px);
    }

    .hero-sun {
        right: -38vw;
        top: calc(var(--header-h) - 10vw);
        width: 110vw;
        opacity: .45;
        transform: none;
    }

    .hero-crest {
        width: 36%;
        opacity: .5;
    }

    .hero-title span:last-child {
        -webkit-text-stroke-width: 1.5px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }
}

/* ---------------------------------------------------------------------
   Tableau d'affichage (dernier / prochain match)
   --------------------------------------------------------------------- */
.site-pro .scoreboard-wrap {
    margin-top: -104px;
}

/* Section courte (calendrier de l'accueil) */
.site-pro .section.is-tight {
    padding-top: clamp(48px, 6vw, 72px);
    padding-bottom: 0;
}

.site-pro .scoreboard {
    border-radius: 0;
    background: #020716;
    border: 1px solid var(--filet-fort);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .55);
    position: relative;
}

.site-pro .scoreboard::before {
    /* bordure lumineuse en haut, comme un tableau de stade */
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--or), rgba(252, 207, 26, .2));
}

.site-pro .sb-panel {
    padding: 28px 32px 24px;
}

.site-pro .sb-panel.is-next {
    background: linear-gradient(180deg, rgba(10, 29, 87, .55), rgba(10, 29, 87, .15));
}

.site-pro .sb-head h2 {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brume);
}

.site-pro .sb-date {
    font-size: 15px;
    color: #fff;
}

.site-pro .is-next .sb-date {
    color: var(--or);
}

.site-pro .sb-name {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.site-pro .sb-score b,
.site-pro .sb-kickoff-day {
    font-family: "Big Shoulders Display", var(--font-display);
    color: var(--or);
    text-shadow: 0 0 24px rgba(252, 207, 26, .35);
}

.site-pro .sb-score b {
    min-width: 0.9em;
    padding: 0;
    background: none;
    border-radius: 0;
    font-size: 72px;
    line-height: .9;
    text-align: center;
}

.site-pro .sb-score i {
    width: 14px;
    height: 4px;
    background: rgba(255, 255, 255, .35);
    border-radius: 0;
}

.site-pro .sb-kickoff-month {
    font-family: "Big Shoulders Display", var(--font-display);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.site-pro .sb-kickoff-time {
    border-radius: 0;
    background: var(--or);
    color: var(--nuit);
}

.site-pro .sb-foot {
    border-top-color: var(--filet);
}

.site-pro .sb-link {
    color: #fff;
    font-weight: 700;
    text-decoration-color: var(--or);
}

.site-pro .sb-link:hover {
    color: var(--or);
}

.site-pro .sb-countdown span {
    border-radius: 0;
    background: rgba(255, 255, 255, .06);
}

.site-pro .sb-countdown b {
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 900;
    color: var(--or);
}

.site-pro .form-guide span {
    border-radius: 0;
    font-family: "Big Shoulders Display", var(--font-display);
}

@media (max-width: 560px) {
    .site-pro .scoreboard-wrap {
        margin-top: -96px;
    }

    .site-pro .sb-panel {
        padding: 22px 18px 20px;
    }

    .site-pro .sb-score b {
        font-size: 54px;
    }

    .site-pro .sb-name {
        font-size: 19px;
    }
}

/* ---------------------------------------------------------------------
   À la une (actualités de l'accueil) et cartes d'actualité
   --------------------------------------------------------------------- */
.site-pro .news-mosaic {
    gap: 2px;
    background: var(--filet);
    border: 1px solid var(--filet);
}

.site-pro .news-card,
.site-pro .section.is-white .news-card {
    border-radius: 0;
    border: 0;
    background: var(--surface);
}

.site-pro .news-grid .news-card {
    border: 1px solid var(--filet);
}

.site-pro .news-card:hover {
    box-shadow: none;
    background: var(--relief);
}

.site-pro .news-card-media {
    background: var(--relief);
}

.site-pro .news-card-media img {
    transition: transform .6s var(--ease-out), filter .3s;
}

.site-pro .news-card:hover .news-card-media img {
    transform: scale(1.04);
}

.site-pro .media-empty {
    background:
        radial-gradient(circle at 50% 50%, rgba(252, 207, 26, .12), transparent 60%),
        var(--relief);
    color: var(--brume);
}

.site-pro .news-card-meta {
    color: var(--brume);
}

.site-pro .news-card-title {
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 900;
    line-height: .98;
    text-transform: uppercase;
}

.site-pro .news-card-title a {
    color: #fff;
    text-decoration: none;
}

.site-pro .news-card-title a:hover {
    color: var(--or);
}

.site-pro .news-card-text {
    color: var(--brume);
}

/* La « une » : grande photo, titre posé sur l'image */
.site-pro .news-mosaic .news-card.is-feature {
    position: relative;
    min-height: 520px;
}

.site-pro .news-mosaic .news-card.is-feature .news-card-media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    height: 100%;
}

.site-pro .news-mosaic .news-card.is-feature .news-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(4, 11, 32, .96) 0%, rgba(4, 11, 32, .6) 40%, rgba(4, 11, 32, 0) 72%);
}

.site-pro .news-mosaic .news-card.is-feature .news-card-body {
    position: relative;
    margin-top: auto;
    padding: 36px;
    max-width: 720px;
}

.site-pro .news-mosaic .news-card.is-feature .news-card-title {
    font-size: clamp(34px, 3.6vw, 52px);
}

.site-pro .news-mosaic .news-card.is-feature .news-card-text {
    color: rgba(238, 241, 248, .8);
}

.site-pro .news-mosaic.has-one .news-card.is-feature {
    flex-direction: column;
    min-height: 560px;
}

.site-pro .news-mosaic.has-one .news-card.is-feature .news-card-body {
    padding: 44px;
}

@media (max-width: 900px) {
    .site-pro .news-mosaic .news-card.is-feature {
        min-height: 440px;
    }

    .site-pro .news-mosaic .news-card.is-feature .news-card-body,
    .site-pro .news-mosaic.has-one .news-card.is-feature .news-card-body {
        padding: 24px;
    }
}

/* ---------------------------------------------------------------------
   Le club en une phrase + trois piliers
   --------------------------------------------------------------------- */
.statement {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.statement-title {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: clamp(46px, 6.6vw, 96px);
    font-weight: 900;
    line-height: .88;
    text-transform: uppercase;
    color: #fff;
}

.statement-text {
    display: grid;
    gap: 18px;
    padding-top: 10px;
    font-size: 19px;
    line-height: 1.65;
    color: var(--brume);
}

.statement-text p:first-child {
    color: var(--craie);
    font-size: 22px;
    line-height: 1.5;
}

.pillars-pro {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(48px, 7vw, 88px);
    border-top: 1px solid var(--filet-fort);
}

.pillar-pro {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    padding: 32px 32px 8px 0;
}

.pillar-pro + .pillar-pro {
    padding-left: 32px;
    border-left: 1px solid var(--filet);
}

.pillar-pro h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
}

.pillar-pro h3 i {
    font-size: 22px;
    color: var(--or);
}

.pillar-pro p {
    color: var(--brume);
}

.pillar-pro .text-link {
    justify-self: start;
    font-weight: 700;
}

@media (max-width: 900px) {
    .statement {
        grid-template-columns: 1fr;
    }

    .pillars-pro {
        grid-template-columns: 1fr;
    }

    .pillar-pro,
    .pillar-pro + .pillar-pro {
        padding: 26px 0;
        border-left: 0;
        border-bottom: 1px solid var(--filet);
    }
}

/* ---------------------------------------------------------------------
   Bandeau « Rejoindre » (fin de page)
   --------------------------------------------------------------------- */
.site-pro .cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 5vw, 64px) 0;
    background: var(--marine);
    background-image: none;
    color: #fff;
    border-top: 1px solid var(--filet);
}

.site-pro .cta-band::before {
    display: none;
}

.site-pro .cta-band::after {
    display: none;
}

.site-pro .cta-band-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
}

.site-pro .cta-copy {
    max-width: 900px;
}

.site-pro .cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    margin-top: 24px;
}

.site-pro .cta-alt {
    font-size: 17px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .site-pro .cta-actions .btn {
        flex: 1 1 100%;
    }
}

.site-pro .cta-band h2 {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: clamp(36px, 4.6vw, 64px);
    font-weight: 900;
    line-height: .9;
    text-transform: uppercase;
    color: #fff;
    text-wrap: balance;
}

.site-pro .cta-band p {
    margin-top: 12px;
    max-width: 60ch;
    font-size: 17px;
    color: rgba(238, 241, 248, .8);
}

/* ---------------------------------------------------------------------
   Partenaires
   --------------------------------------------------------------------- */
.site-pro .spx {
    padding: clamp(56px, 7vw, 88px) 20px;
    background: var(--nuit);
    border-top: 1px solid var(--filet);
}

.site-pro .spx h2 {
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
}

.site-pro .spx-tier {
    color: var(--brume);
}

.site-pro .spx-item {
    border-radius: 0;
    border: 1px solid var(--filet);
    background: var(--surface);
    box-shadow: none;
    color: #fff;
}

.site-pro .spx-item img {
    filter: grayscale(1) brightness(1.6) contrast(.9);
    opacity: .85;
    transition: filter .2s, opacity .2s;
}

.site-pro a.spx-item:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--or);
}

.site-pro a.spx-item:hover img {
    filter: none;
    opacity: 1;
}

/* =====================================================================
   Matchs : liste, filtres, pagination
   ===================================================================== */
.site-pro .filter-tab,
.site-pro .page-link,
.site-pro .pager-btn {
    border-radius: 0;
    background: transparent;
    border-color: var(--filet-fort);
    color: var(--craie);
}

.site-pro .filter-tab {
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.site-pro .filter-tab:hover,
.site-pro a.page-link:hover,
.site-pro a.pager-btn:hover {
    border-color: var(--or);
    color: var(--or);
}

.site-pro .filter-tab.active,
.site-pro .filter-tab[aria-current="page"],
.site-pro .page-item.active .page-link,
.site-pro .pager-btn.is-current {
    background: var(--or);
    border-color: var(--or);
    color: var(--nuit);
}

.site-pro .pager-info {
    color: var(--brume);
}

.site-pro .fixture-list {
    gap: 2px;
}

.site-pro .fixture {
    border-radius: 0;
    border: 0;
    border-left: 4px solid var(--relief);
    background: var(--surface);
}

.site-pro a.fixture:hover {
    background: var(--relief);
    box-shadow: none;
}

.site-pro .fixture.is-win {
    border-left-color: #2fbf71;
}

.site-pro .fixture.is-loss {
    border-left-color: #f0524f;
}

.site-pro .fixture.is-draw {
    border-left-color: var(--brume);
}

.site-pro .fixture.is-upcoming {
    border-left-color: var(--or);
}

.site-pro .fixture-date {
    color: #fff;
}

.site-pro .fixture-day {
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 900;
    color: #fff;
}

.site-pro .fixture-month {
    color: var(--or);
    text-transform: uppercase;
}

.site-pro .fixture-name {
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brume);
}

.site-pro .fixture-team.is-club .fixture-name {
    color: #fff;
}

.site-pro .fixture-score b {
    border-radius: 0;
    background: #020716;
    color: var(--or);
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 900;
}

.site-pro .fixture-time {
    border-radius: 0;
    background: rgba(252, 207, 26, .14);
    color: var(--or);
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 900;
}

.site-pro .fixture-meta,
.site-pro .fixture-hint {
    color: var(--brume);
}

/* =====================================================================
   Fiche d'un match
   ===================================================================== */
.site-pro .match-facts-wrap,
.site-pro .aside-block,
.site-pro .preview-stats,
.site-pro .timeline-min,
.site-pro .player-facts,
.site-pro .article-keypoints {
    border-radius: 0;
    background: var(--surface);
    border-color: var(--filet);
}

.site-pro .tabs [role="tab"] {
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brume);
}

.site-pro .tabs [role="tab"]:hover {
    color: #fff;
}

.site-pro .tabs [role="tab"][aria-selected="true"] {
    color: #fff;
    border-color: var(--or);
}

.site-pro .timeline-row.is-goal i {
    color: var(--or);
}

.site-pro .share-links a {
    border-radius: 0;
    background: var(--relief);
    color: #fff;
}

.site-pro .share-links a:hover {
    background: var(--or);
    color: var(--nuit);
}

.site-pro .motm {
    border-radius: 0;
    background: var(--marine);
}

.site-pro .lu-num {
    border-radius: 0;
    background: var(--or);
    color: var(--nuit);
}

.site-pro .prose blockquote {
    border-left-color: var(--or);
}

.site-pro .prose blockquote p {
    color: #fff;
}

.site-pro .prose a {
    color: var(--or);
}

/* =====================================================================
   Effectif et fiche joueur
   ===================================================================== */
.site-pro .line-nav a {
    border-radius: 0;
    background: transparent;
    border-color: var(--filet-fort);
    color: var(--craie);
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.site-pro .line-nav a:hover {
    border-color: var(--or);
    color: var(--or);
}

.site-pro .line-nav span {
    border-radius: 0;
    background: var(--or);
    color: var(--nuit);
}

.site-pro .roster-line-head h2 {
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.site-pro .rail-btn {
    border-radius: 0;
    background: transparent;
    border-color: var(--filet-fort);
    color: #fff;
}

.site-pro .rail-btn:hover:not(:disabled) {
    background: var(--or);
    border-color: var(--or);
    color: var(--nuit);
}

/* Carte joueur : photo sur fond marine, numéro géant en filigrane */
.site-pro .person-card {
    border-radius: 0;
    border: 0;
    background: var(--surface);
    overflow: hidden;
}

.site-pro .person-card-photo {
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(252, 207, 26, .14), transparent 60%),
        linear-gradient(180deg, var(--marine), var(--nuit-2));
}

.site-pro .person-card-empty {
    font-family: "Big Shoulders Display", var(--font-display);
    color: rgba(255, 255, 255, .25);
}

.site-pro .person-card-number {
    border-radius: 0;
    background: transparent;
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--or);
    box-shadow: none;
}

.site-pro .person-card-body {
    border-top: 3px solid var(--or);
}

.site-pro .person-card-name {
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.site-pro .person-card-name a {
    color: #fff;
    text-decoration: none;
}

.site-pro .person-card-name a:hover {
    color: var(--or);
}

.site-pro .person-card-role {
    color: var(--brume);
}

.site-pro .player-stats dd,
.site-pro .figures dd {
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 900;
    color: var(--or);
}

/* =====================================================================
   Le club
   ===================================================================== */
.site-pro .figures-band {
    background: #020716;
    border-bottom: 1px solid var(--filet);
}

.site-pro .figures > div {
    border-color: var(--filet);
}

.site-pro .figures dt {
    color: var(--brume);
}

.site-pro .figures dd {
    font-size: clamp(48px, 6vw, 76px);
    line-height: .9;
}

.site-pro .story {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 96px);
}

.site-pro .story-title {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: clamp(40px, 4.4vw, 66px);
    font-weight: 900;
    line-height: .92;
    text-transform: uppercase;
    color: #fff;
    overflow-wrap: anywhere;
}

.site-pro .story-text {
    max-width: 68ch;
    border-top-color: var(--or);
    font-size: 18px;
    line-height: 1.7;
}

/* Tablette et téléphone : titre au-dessus, texte sur toute la largeur */
@media (max-width: 860px) {
    .site-pro .story {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-pro .story-title {
        position: static;
        font-size: clamp(34px, 9vw, 52px);
    }

    .site-pro .story-text {
        max-width: none;
        font-size: 17px;
    }
}

/* Le texte vient de l'éditeur de l'administration et peut porter ses propres couleurs
   (texte noir, surlignage blanc…) : sur fond sombre, on les neutralise pour qu'il reste lisible. */
.site-pro .prose :is(p, span, li, div, font, strong, b, em, i, u, td, th, h1, h2, h3, h4, h5, h6) {
    color: inherit !important;
    background-color: transparent !important;
}

.site-pro .prose :is(h1, h2, h3, h4, h5, h6, strong, b) {
    color: #fff !important;
}

.site-pro .prose a,
.site-pro .prose a * {
    color: var(--or) !important;
}

.site-pro .prose p:has(> :is(strong, b):only-child) {
    /* lignes de type « a) … » ou intertitres en gras : un peu d'air */
    margin-top: 1.4em;
}

.site-pro .prose {
    color: var(--craie);
}

.site-pro .prose h2,
.site-pro .prose h3 {
    color: #fff;
}

.site-pro .board-member {
    border-radius: 0;
}

.site-pro .board-photo {
    background: var(--marine);
    border: 2px solid var(--or);
}

.site-pro .board-role {
    color: var(--or);
}

.site-pro .value {
    border-radius: 0;
    background: var(--surface);
    border-color: var(--filet);
}

.site-pro .value > i {
    border-radius: 0;
    background: var(--or);
    color: var(--nuit);
}

.site-pro .value p {
    color: var(--brume);
}

/* =====================================================================
   Galerie, contact, connexion, panneaux
   ===================================================================== */
.site-pro .photo-tile {
    border-radius: 0;
    background: var(--relief);
}

.site-pro .contact-form-card,
.site-pro .auth-card,
.site-pro .panel,
.site-pro .state-block {
    border-radius: 0;
    background: var(--surface);
    border: 1px solid var(--filet);
    box-shadow: none;
}

.site-pro .contact-form-card h2 {
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.site-pro .contact-list dt {
    color: var(--or);
}

.site-pro .contact-list dd,
.site-pro .contact-list dd a {
    color: var(--craie);
}

.site-pro .map-frame {
    border-radius: 0;
    border: 1px solid var(--filet);
    background: var(--surface);
}

.site-pro .map-frame iframe {
    filter: invert(.92) hue-rotate(185deg) saturate(.6) brightness(.9);
}

.site-pro .socials.is-light a {
    color: #fff;
    border-color: var(--filet-fort);
}

/* Formulaire « Rejoindre » */
.site-pro .join-steps li {
    border-color: var(--filet);
}

.site-pro .join-n {
    border-radius: 0;
    background: var(--or);
    color: var(--nuit);
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 900;
}

.site-pro .join-steps p {
    color: var(--brume);
}

.site-pro .join-auto {
    border-radius: 0;
    background: var(--nuit);
    border-color: var(--filet-fort);
}

.site-pro .join-auto strong {
    color: var(--or);
}

/* =====================================================================
   Chatbot : bouton aux couleurs du club
   ===================================================================== */
.site-pro .cb-launcher {
    border-radius: 0;
    background: var(--or);
    color: var(--nuit);
    border: 0;
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Mouvement réduit : pas d'animation d'ouverture */
@media (prefers-reduced-motion: reduce) {
    .hero-title span,
    .hero-rays,
    .hero-crest {
        animation: none;
    }
}

/* Connexion / inscription */
.site-pro .auth {
    padding-top: 112px;
    background:
        radial-gradient(70% 80% at 50% 0%, rgba(10, 29, 87, .95), rgba(10, 29, 87, 0) 70%),
        var(--nuit);
}

.site-pro .auth-rays {
    display: none;
}

.site-pro .auth-card {
    border-radius: 0;
    background: var(--surface);
    border: 1px solid var(--filet-fort);
    border-top: 3px solid var(--or);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
}

.site-pro .auth-card h1 {
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.site-pro .auth-sub {
    color: var(--brume);
}

/* Fiche d'un match : bandeau */
.site-pro .mb-name {
    font-family: "Big Shoulders Display", var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.site-pro .mb-score b {
    color: var(--or);
    text-shadow: 0 0 24px rgba(252, 207, 26, .35);
}

/* =====================================================================
   Boutons flottants (assistant et retour en haut) : empilés, sans se toucher
   ===================================================================== */
.site-pro .cb-launcher {
    min-height: 52px;
    padding: 0 20px;
    font-size: 17px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

.site-pro .cb-launcher i {
    color: var(--nuit);
    opacity: .75;
}

.back-to-top {
    right: 18px;
    width: 48px;
    height: 48px;
}

body.has-chatbot .back-to-top {
    bottom: 82px;
}

@media (max-width: 560px) {
    body.has-chatbot .back-to-top {
        bottom: 76px;
        right: 12px;
    }

    .site-pro .cb-launcher {
        width: 52px;
        padding: 0;
        justify-content: center;
    }

    .site-pro .cb-launcher-label {
        display: none;
    }
}

/* =====================================================================
   Assistant du club (chatbot) : fonds inchangés, seule la couleur du texte
   est corrigée. Le thème sombre rend le texte clair ; sur les bulles et la
   zone de saisie, qui restent blanches, on le remet en foncé.
   ===================================================================== */
.site-pro .cb-bot,
.site-pro .cb-bot p {
    color: #101a34;
}

.site-pro .cb-rate {
    color: #556079;
}

.site-pro .cb-form input {
    color: #101a34;
}

.site-pro .cb-form input::placeholder {
    color: #8a93a8;
}

.site-pro .cb-note {
    color: #556079;
}

.site-pro .cb-note a {
    color: #142a5c;
}

/* =====================================================================
   Lisibilité : noms de joueurs et d'équipes en minuscules
   (les capitales restent pour les grands titres et les boutons)
   ===================================================================== */
.site-pro .person-card-name,
.site-pro .fixture-name,
.site-pro .sb-name,
.site-pro .mb-name,
.site-pro .roster-line-head h2,
.account-link {
    text-transform: none;
    letter-spacing: .01em;
}

.site-pro .person-card-name {
    font-size: 22px;
}

.site-pro .fixture-name {
    font-size: 18px;
}

/* Sur téléphone, un seul bouton flottant : l'assistant (le retour en haut encombrait) */
@media (max-width: 560px) {
    .back-to-top {
        display: none;
    }
}

/* =====================================================================
   Équipes et entraînements : semaine type et fiches équipes
   ===================================================================== */
.site-pro .week-map {
    margin-left: 14px;
    font-weight: 700;
}

.week-note {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-top: 18px;
    font-size: 15px;
    color: var(--brume);
}

.week-note i {
    color: var(--or);
}

.teams {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.team {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--filet);
    border-top: 4px solid var(--or);
}

.team-head {
    display: flex;
    gap: 16px;
    align-items: center;
}

.team-head > i {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    background: var(--marine);
    color: var(--or);
    font-size: 22px;
}

.team-name {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 34px;
    font-weight: 900;
    line-height: .95;
    text-transform: uppercase;
    color: #fff;
}

.team-level {
    margin-top: 4px;
    color: var(--brume);
}

.team-facts {
    display: grid;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--filet);
}

.team-facts div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
}

.team-facts dt {
    color: var(--brume);
    font-size: 15px;
}

.team-facts dd {
    color: #fff;
    font-weight: 600;
}

.team-text {
    color: var(--brume);
}

.site-pro .team-link {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 700;
}

@media (max-width: 420px) {
    .teams {
        grid-template-columns: 1fr;
    }

    .team-facts div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* =====================================================================
   Planning de la semaine (page Équipes et entraînements)
   ===================================================================== */
.plan-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 24px;
    margin-bottom: 28px;
}

/* Prochain entraînement : la pièce qui « vit » (compte à rebours à la seconde) */
.next-train {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 10px;
    padding: 26px 28px;
    background: var(--marine);
    border: 1px solid var(--filet-fort);
    border-left: 5px solid var(--tint, var(--or));
}

.next-train-label {
    font-family: var(--font-pro);
    font-size: 15px;
    font-weight: 600;
    color: var(--brume);
}

.next-train-when {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 900;
    line-height: .95;
    text-transform: uppercase;
    color: #fff;
}

.next-train-when span {
    display: block;
}

.next-train-when span + span {
    margin-top: 6px;
    color: var(--or);
}

.next-train-team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #fff;
}

.next-train-team i,
.plan-chip i {
    width: 10px;
    height: 10px;
    flex: none;
    background: var(--tint, var(--or));
}

.next-train-cd {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.next-train-cd span {
    display: grid;
    justify-items: center;
    min-width: 58px;
    padding: 8px 6px 6px;
    background: rgba(2, 7, 22, .55);
    font-size: 12px;
    color: var(--brume);
}

.next-train-cd b {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    color: var(--or);
    font-variant-numeric: tabular-nums;
}

.plan-side {
    display: grid;
    align-content: start;
    gap: 18px;
}

/* Filtre par équipe */
.plan-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plan-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--filet-fort);
    background: transparent;
    color: var(--craie);
    font-weight: 600;
    transition: background .15s, border-color .15s, color .15s;
}

.plan-chip:hover {
    border-color: var(--or);
}

.plan-chip[aria-pressed="true"] {
    background: var(--or);
    border-color: var(--or);
    color: var(--nuit);
}

.plan-chip[aria-pressed="true"] i {
    outline: 2px solid var(--nuit);
}

/* Les 7 jours */
.plan-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    list-style: none;
}

.plan-dayitem > a,
.plan-dayitem > span {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 12px 4px 10px;
    border: 1px solid var(--filet);
    background: var(--nuit-2);
    color: var(--brume);
    text-decoration: none;
    transition: background .15s, border-color .15s, opacity .2s;
}

.plan-dayname {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.plan-daycount {
    font-size: 13px;
}

.plan-dayitem.is-on > a {
    background: var(--surface);
    border-color: var(--or);
    color: #fff;
}

.plan-dayitem.is-on .plan-daycount {
    color: var(--or);
    font-weight: 700;
}

.plan-dayitem.is-on > a:hover {
    background: var(--relief);
}

.plan-dayitem.is-today > a,
.plan-dayitem.is-today > span {
    box-shadow: inset 0 -3px 0 #fff;
}

.plan-dayitem.is-off {
    opacity: .35;
}

/* Lignes horaires */
.plan {
    position: relative;
    border: 1px solid var(--filet);
    background: var(--nuit-2);
}

.plan-axis {
    position: relative;
    height: 36px;
    margin-left: 160px;
    margin-right: 24px;
    border-bottom: 1px solid var(--filet);
}

.plan-axis span {
    position: absolute;
    top: 10px;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--brume);
    font-variant-numeric: tabular-nums;
}

.plan-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    padding-right: 24px;
    border-top: 1px solid var(--filet);
    transition: opacity .2s;
    scroll-margin-top: calc(var(--header-h) + 20px);
}

.plan-row:first-of-type {
    border-top: 0;
}

.plan-row.is-today {
    background: linear-gradient(90deg, rgba(252, 207, 26, .07), transparent 60%);
}

.plan-row.is-off {
    opacity: .3;
}

.plan-rowname {
    padding: 18px 20px;
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
}

.plan-rowname small {
    display: block;
    font-family: var(--font-pro);
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    color: var(--or);
}

.plan-track {
    position: relative;
    height: calc(var(--lanes, 1) * 72px + 24px);
    /* une ligne verticale par heure */
    background-image: repeating-linear-gradient(90deg, var(--filet) 0 1px, transparent 1px calc(100% / var(--hours, 12)));
    background-size: calc(100% + 1px) 100%;
}

.plan-block {
    position: absolute;
    top: calc(12px + var(--lane, 0) * 72px);
    height: 64px;
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 0;
    padding: 0 12px;
    overflow: hidden;
    white-space: nowrap;
    background: color-mix(in srgb, var(--tint, var(--or)) 10%, var(--relief));
    border-left: 4px solid var(--tint, var(--or));
    transition: opacity .2s, transform .2s;
    animation: planIn .5s var(--ease-out) both;
}

.plan-block b {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 20px;
    font-weight: 900;
    color: var(--tint, var(--or));
    text-overflow: ellipsis;
    overflow: hidden;
}

.plan-block span {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-overflow: ellipsis;
    overflow: hidden;
}

.plan-block.is-off {
    opacity: .15;
}

.plan-block.is-tbc {
    position: relative;
    display: inline-grid;
    top: auto;
    margin: 12px 8px 12px 0;
}

@keyframes planIn {
    from {
        opacity: 0;
        transform: scaleX(.6);
        transform-origin: left;
    }
}

@supports not (background: color-mix(in srgb, red 10%, blue)) {
    .plan-block {
        background: var(--relief);
    }
}

@media (max-width: 960px) {
    .plan-top {
        grid-template-columns: 1fr;
    }
}

/* Petit écran : la ligne horaire devient une liste lisible */
@media (max-width: 700px) {
    .plan-axis {
        display: none;
    }

    .plan-row {
        grid-template-columns: 1fr;
        padding: 0 14px 14px;
    }

    .plan-rowname {
        padding: 16px 0 10px;
        font-size: 24px;
    }

    .plan-rowname small {
        display: inline;
        margin-left: 8px;
    }

    .plan-track {
        height: auto;
        display: grid;
        gap: 8px;
        background: none;
    }

    .plan-block,
    .plan-block.is-tbc {
        position: static;
        width: auto !important;
        height: auto;
        margin: 0;
        padding: 12px 14px;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: baseline;
        gap: 14px;
    }

    .plan-days {
        gap: 4px;
    }

    .plan-dayname {
        font-size: 15px;
    }

    .next-train {
        padding: 22px 20px;
    }

    .next-train-cd span {
        min-width: 0;
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plan-block {
        animation: none;
    }
}

/* Menu mobile ouvert : les boutons flottants s'effacent */
body.nav-open .cb,
body.nav-open .back-to-top {
    display: none;
}

/* Page Matchs : le tableau du prochain match chevauche le bas du bandeau sans couvrir le texte */
.site-pro .page-hero.has-board {
    padding-bottom: 150px;
}

.site-pro .scoreboard-wrap.is-page {
    margin-top: -96px;
}

@media (max-width: 560px) {
    .site-pro .page-hero.has-board {
        padding-bottom: 120px;
    }

    .site-pro .scoreboard-wrap.is-page {
        margin-top: -84px;
    }
}


/* =====================================================================
   Bandeau avec photo (page « Rejoindre le club », réglée dans Paramètres du club)
   ===================================================================== */
.site-pro .page-hero.has-photo {
    background: var(--nuit);
    padding-top: clamp(88px, 11vw, 150px);
    padding-bottom: clamp(64px, 8vw, 104px);
}

.site-pro .page-hero-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-pro .page-hero-photo.is-focus-haut {
    object-position: center 20%;
}

.site-pro .page-hero-photo.is-focus-centre {
    object-position: center 50%;
}

.site-pro .page-hero-photo.is-focus-bas {
    object-position: center 80%;
}

/* Assombrie à gauche (titre lisible), claire à droite (on voit la photo) */
.site-pro .page-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(4, 11, 32, .95) 0%, rgba(4, 11, 32, .8) 38%, rgba(4, 11, 32, .3) 72%, rgba(4, 11, 32, .15) 100%),
        linear-gradient(0deg, rgba(4, 11, 32, .7) 0%, rgba(4, 11, 32, 0) 40%);
}

@media (max-width: 760px) {
    .site-pro .page-hero-shade {
        background: linear-gradient(0deg, rgba(4, 11, 32, .92) 0%, rgba(4, 11, 32, .72) 55%, rgba(4, 11, 32, .55) 100%);
    }
}

/* =====================================================================
   Classements (page publique)
   ===================================================================== */
.results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 24px;
}

.results-bar .filter-tabs {
    margin-bottom: 0;
}

.site-pro .results-std {
    min-height: 44px;
    padding: 0 18px;
    font-size: 16px;
}

.std-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 18px;
    margin-bottom: 34px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--filet);
}

.std-field {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.std-field.is-wide {
    flex: 1 1 300px;
    max-width: 480px;
}

.std-field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--brume);
}

.std-field select {
    min-height: 48px;
    padding: 0 40px 0 14px;
    border: 1px solid var(--filet-fort);
    border-radius: 0;
    background: var(--nuit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fccf1a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.std-field select:focus {
    outline: none;
    border-color: var(--or);
    box-shadow: 0 0 0 3px rgba(252, 207, 26, .2);
}

.std-field select option {
    background: var(--surface);
    color: #fff;
}

@media (max-width: 560px) {
    .std-field,
    .std-field.is-wide {
        flex: 1 1 100%;
        max-width: none;
    }
}

.std-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 10px 24px;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--filet);
}

.std-title {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 900;
    line-height: .92;
    text-transform: uppercase;
    color: #fff;
}

.std-meta,
.std-updated {
    margin-top: 6px;
    color: var(--brume);
}

.std-updated i {
    color: var(--or);
    margin-right: 4px;
}

/* La place du club */
.std-club {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 36px;
    padding: 22px 26px;
    margin-bottom: 20px;
    background: var(--marine);
    border-left: 5px solid var(--or);
}

.std-club-rank {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-weight: 600;
    color: var(--brume);
}

.std-club-rank b {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 76px;
    font-weight: 900;
    line-height: .85;
    color: var(--or);
}

.std-club-figs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.std-club-figs > div {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    min-width: 76px;
    padding: 8px 12px;
    background: rgba(2, 7, 22, .5);
}

.std-club-figs dd {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.std-club-figs dt {
    font-size: 13px;
    color: var(--brume);
}

/* Le tableau */
.std-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--filet);
}

.std-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.std-table th,
.std-table td {
    padding: 13px 12px;
    text-align: center;
    border-bottom: 1px solid var(--filet);
    white-space: nowrap;
}

.std-table thead th {
    background: #020716;
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brume);
}

.std-table abbr {
    text-decoration: none;
    cursor: help;
}

.std-table tbody tr {
    background: var(--surface);
}

.std-table tbody tr:nth-child(even) {
    background: var(--nuit-2);
}

.std-table tbody tr:last-child th,
.std-table tbody tr:last-child td {
    border-bottom: 0;
}

.std-table .std-rank {
    width: 56px;
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 20px;
    font-weight: 900;
    color: var(--brume);
}

.std-table .std-team {
    width: 40%;
    text-align: left;
    font-weight: 600;
    color: #fff;
    white-space: normal;
}

.std-table thead .std-team {
    color: var(--brume);
}

.std-table .std-pts {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}

.std-pen {
    display: inline-block;
    white-space: nowrap;
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ff9b98;
    background: rgba(240, 82, 79, .14);
}

/* Ligne du club : or */
.std-table tbody tr.is-club {
    background: var(--marine);
    box-shadow: inset 4px 0 0 var(--or);
}

.std-table tr.is-club .std-rank,
.std-table tr.is-club .std-pts,
.std-table tr.is-club .std-team {
    color: var(--or);
}

.std-note {
    margin-top: 14px;
    font-size: 14px;
    color: var(--brume);
    max-width: 90ch;
}

.std-matches {
    margin-top: clamp(48px, 6vw, 80px);
}

@media (max-width: 640px) {
    .std-table .std-opt {
        display: none;
    }

    .std-table th,
    .std-table td {
        padding: 12px 8px;
    }

    .std-table .std-rank {
        width: 40px;
    }

    .std-club {
        padding: 18px;
    }

    .std-club-rank b {
        font-size: 60px;
    }

    .std-club-figs > div {
        min-width: 0;
        flex: 1 1 28%;
    }
}
