@charset "UTF-8";
/* =========================================================================
   UNKNOWN — feuille de style du site public

   Registre : plateforme de jeu moderne — Twitch, Discord, sites d'équipes.

   Le parti pris tient en une phrase : **ce qui fait esport, c'est la donnée,
   pas le décor**. Une carte d'événement se lit comme une fiche de tournoi — le
   jeu en pastille sur le visuel, la dotation en évidence, l'état des
   inscriptions, le vainqueur en pied — et le reste de la page se tait pour
   qu'on la voie.

   D'où la sobriété assumée :
   - le FOND ne porte qu'un semis d'étoiles et une lueur ; les chevrons du
     maillot sont réservés à l'accroche et aux cartes sans affiche ;
   - la FRAPPE (Archivo Black, capitales) ne sert qu'au titre principal d'une
     page et au nom de l'événement à la une. Les titres de section restent
     lisses ;
   - les CARTES, ENCARTS et TEXTE sont arrondis, sur des surfaces sombres mais
     élevées (jamais du noir pur), avec des bordures blanches à 7 %.

   La couleur s'emploie par touches : l'accent ne se pose que sur un bouton, un
   état « en direct », une dotation, l'événement à la une. L'or ne délimite
   jamais.

   Palette relevée sur la direction artistique : nuit #040C16, bleu roi du
   maillot #2E4C87, or de ses liserés #C79F55.

   La police de la marque, Boldstrom D, n'est PAS servie aux visiteurs : elle
   pèse un demi-mégaoctet pour un seul mot, et son jeu de caractères n'a ni É,
   ni È, ni tiret cadratin — « ÉVÉNEMENTS » s'y afficherait « VÉNEMENTS ». Le
   mot UNKNOWN est gravé en image (outils/preparer-images.php) ; elle vit dans
   outils/polices/, hors du site.
   ========================================================================= */

:root {
    /* Fonds : élevés, jamais noirs — l'ombre doit pouvoir se lire. */
    --nuit:       #080D18;
    --surface:    #111A2B;
    --surface-2:  #17223A;
    --surface-3:  #1F2C47;

    /* Bleu du maillot, éclairci pour l'écran */
    --bleu:       #2E4C87;
    --bleu-vif:   #5285E0;
    --bleu-clair: #8FB6FF;

    /* Or des liserés — l'accent, employé avec parcimonie */
    --or:         #C79F55;
    --or-clair:   #E6CB92;

    --blanc:      #EDF2FA;
    --gris:       #9AABC4;
    --gris-fonce: #64768F;
    --live:       #3ED598;
    --alerte:     #F0766C;

    /* Bordures neutres : la couleur ne sert pas à délimiter, mais à souligner. */
    --bord:       rgba(255, 255, 255, .07);
    --bord-fort:  rgba(255, 255, 255, .13);
    --bord-or:    rgba(199, 159, 85, .45);

    /* Typographie, à trois niveaux.
       --titre-fort : les grands titres seulement — lourd, carré, du flocage de
                      maillot. C'est lui qui donne le ton, et c'est pour ça
                      qu'il reste rare.
       --titre      : titres courants, cartes, encarts — géométrique et lisse.
       --texte      : la police de la DA, pour tout ce qui se lit longtemps. */
    --titre-fort: 'Archivo Black', 'Space Grotesk', system-ui, sans-serif;
    --titre:      'Space Grotesk', system-ui, -apple-system, sans-serif;
    --texte:      'Bai Jamjuree', system-ui, -apple-system, sans-serif;

    --largeur: 1200px;
    --lecture: 68ch;
    --marge:   clamp(1rem, 4vw, 2.5rem);

    /* Arrondis : francs, jamais anguleux. */
    --r-xs: 6px;
    --r-s:  10px;
    --r:    14px;
    --r-l:  20px;

    --ombre:      0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --ombre-haut: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .75);

    --transition: 200ms cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------------------------------------- fondations */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--blanc);
    font-family: var(--texte);
    font-size: clamp(1rem, .97rem + .16vw, 1.0625rem);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;

    /* Trois couches seulement : le semis d'étoiles, une lueur bleue au sommet,
       et le dégradé de nuit. Les chevrons du maillot ne courent plus sur toute
       la page — ils sont réservés à l'accroche, où ils signent, et aux cartes
       sans affiche, où ils comblent. Partout ailleurs, le fond se tait. */
    background-color: var(--nuit);
    background-image:
        url('../img/etoiles.png'),
        radial-gradient(ellipse 90% 50% at 50% -8%, rgba(46, 76, 135, .28), transparent 62%),
        linear-gradient(180deg, #0A1220 0%, var(--nuit) 55%, #060A12 100%);
    background-repeat: repeat, no-repeat, no-repeat;
    background-size: 480px 480px, 100% 100%, 100% 100%;
    background-attachment: fixed;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--titre);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0 0 .55em;
    text-wrap: balance;
}
/* La frappe est réservée au titre principal d'une page, et au nom de
   l'événement à la une. Ailleurs, y compris sur les titres de section, la
   typographie reste lisse : c'est ce qui fait la sobriété. */
h1, .une__titre {
    font-family: var(--titre-fort); font-weight: 400;
    text-transform: uppercase; line-height: 1.04; letter-spacing: -.005em;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.3vw, 3.9rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.35vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: clamp(1.1rem, 1.02rem + .4vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--bleu-clair); text-decoration-color: rgba(143, 182, 255, .3); text-underline-offset: .2em; }
a:hover { color: var(--or-clair); text-decoration-color: var(--or); }

:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; border-radius: var(--r-xs); }

::selection { background: rgba(199, 159, 85, .3); }

.conteneur { width: min(100% - 2 * var(--marge), var(--largeur)); margin-inline: auto; }
.conteneur--lecture { width: min(100% - 2 * var(--marge), var(--lecture)); margin-inline: auto; }

.visuellement-cache {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}

.saut {
    position: absolute; top: -100%; left: var(--marge); z-index: 100;
    background: var(--or); color: #0B1220; padding: .6rem 1.1rem;
    border-radius: var(--r-s); font-weight: 600; text-decoration: none;
}
.saut:focus { top: .6rem; color: #0B1220; }

/* Le petit intitulé qui coiffe une section. Discret : c'est le seul endroit
   où la typographie se met en majuscules espacées. */
.sur-titre, .section__sur-titre, .accroche__sur-titre {
    font-family: var(--texte); font-size: .76rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; color: var(--or);
    margin: 0 0 .7rem;
}

/* ------------------------------------------------------------- en-tête */

.entete {
    position: sticky; top: 0; z-index: 50;
    background: rgba(8, 13, 24, .72);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--bord);
}
.entete__interieur { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }

.marque { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.marque__logo { border-radius: 50%; }
.marque__nom { height: 20px; width: auto; transition: opacity var(--transition); }
.marque:hover .marque__nom { opacity: .8; }

.navigation { display: flex; align-items: center; gap: 1.25rem; }
.navigation__liste, .langues, .pied__liens ul, .reseaux {
    list-style: none; margin: 0; padding: 0; display: flex;
}
.navigation__liste { gap: .15rem; }

.navigation__lien {
    display: block; position: relative;
    padding: .5rem .85rem; border-radius: var(--r-s);
    font-size: .95rem; font-weight: 500; white-space: nowrap;
    color: var(--gris); text-decoration: none;
    transition: color var(--transition), background var(--transition);
}
.navigation__lien:hover { color: var(--blanc); background: rgba(255, 255, 255, .05); }
.navigation__lien.est-actif { color: var(--blanc); }
/* L'accent doré ne se pose que sur l'onglet courant. */
.navigation__lien.est-actif::after {
    content: ''; position: absolute; left: .85rem; right: .85rem; bottom: -.35rem;
    height: 2px; border-radius: 2px; background: var(--or);
}

.langues {
    gap: .1rem; padding: .2rem; margin-left: .5rem;
    background: rgba(255, 255, 255, .04); border-radius: 999px;
}
.langues__lien {
    display: block; padding: .28rem .6rem; border-radius: 999px;
    font-size: .78rem; font-weight: 600; letter-spacing: .04em;
    color: var(--gris-fonce); text-decoration: none;
    transition: color var(--transition), background var(--transition);
}
.langues__lien:hover { color: var(--blanc); }
.langues__lien.est-actif { color: #0B1220; background: var(--or); }

.bascule { display: none; }

/* ------------------------------------------------------------- accroche */

.accroche {
    position: relative; isolation: isolate;
    display: grid; align-items: center;
    min-height: min(74vh, 640px);
    /* Le chevron est en position absolue en bas : cette réserve lui garde sa
       bande, sinon le contenu centré vient s'y coller quand l'écran est bas. */
    padding-top: clamp(3.5rem, 9vh, 6rem);
    padding-bottom: clamp(7rem, 9vh + 3.5rem, 9.5rem);
    overflow: hidden;
    /* Bord inférieur droit, et un simple filet pour marquer la limite : une
       coupe en biais laissait deux angles morts sur les côtés, et la jointure
       avec la section suivante se voyait plus que le contenu. */
    border-bottom: 1px solid var(--bord);
    /* Les deux lueurs sont portées par la section elle-même : le masque du
       ::before ne doit rogner que les chevrons. */
    background-image:
        radial-gradient(ellipse 46% 60% at 22% 38%, rgba(82, 133, 224, .3), transparent 70%),
        radial-gradient(ellipse 34% 44% at 78% 68%, rgba(199, 159, 85, .13), transparent 72%);
}
.accroche__fond {
    position: absolute; inset: 0; z-index: -3;
    width: 100%; height: 100%; object-fit: cover; opacity: .55;
}
/* Les chevrons du maillot, mais seulement ici, et seulement à droite : ils
   signent l'accroche sans passer sous le texte. */
.accroche::before {
    content: ''; position: absolute; inset: -20% -8% auto 38%; height: 130%; z-index: -2;
    background: repeating-linear-gradient(115deg,
        rgba(46, 76, 135, .3) 0 3px,
        transparent 3px 11px,
        rgba(46, 76, 135, .14) 11px 13px,
        transparent 13px 40px);
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 42%, #000 78%, transparent 100%);
    mask-image: linear-gradient(100deg, transparent 0%, #000 42%, #000 78%, transparent 100%);
}
.accroche::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1;
    background: linear-gradient(transparent, var(--nuit));
}

.accroche__contenu { max-width: 42rem; }
.accroche__sur-titre { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.accroche__sur-titre::before {
    content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--or);
}

.accroche h1 { margin-bottom: .4em; }
/* Le dernier mot est détouré à l'or, comme un flocage de maillot. */
.accroche h1 em {
    font-style: normal; color: transparent;
    -webkit-text-stroke: 2px var(--or);
    paint-order: stroke fill;
}

.accroche__texte { font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); color: var(--gris); max-width: 34rem; }
.accroche__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }

.accroche__compteurs {
    display: flex; flex-wrap: wrap; gap: 2.4rem;
    margin-top: 2.6rem; padding-top: 1.5rem;
    border-top: 1px solid var(--bord);
}
.accroche__compteurs strong {
    display: block; font-family: var(--titre-fort); font-weight: 400; font-size: 1.7rem;
    line-height: 1; color: var(--blanc); font-variant-numeric: tabular-nums;
}
.accroche__compteurs span {
    display: block; margin-top: .35rem; font-size: .8rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--gris-fonce);
}

/* Le chevron doré sous l'accroche : la seule chose qui bouge au repos sur la
   page d'accueil, et elle ne bouge que pour dire « il y a la suite ». */
.defiler {
    position: absolute; left: 50%; bottom: 1.4rem; z-index: 2;
    transform: translateX(-50%);
    display: grid; place-items: center; gap: .4rem;
    padding: .5rem .9rem; border-radius: 999px;
    color: var(--or); text-decoration: none;
    font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    transition: color var(--transition), background var(--transition);
}
.defiler:hover { color: var(--or-clair); background: rgba(255, 255, 255, .05); }
.defiler svg { animation: appel 2.6s cubic-bezier(.4, 0, .2, 1) infinite; }

@keyframes appel {
    0%, 55%, 100% { transform: translateY(0);    opacity: .75; }
    25%           { transform: translateY(6px);  opacity: 1; }
}

/* ------------------------------------------------------------- boutons */

.bouton {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .72rem 1.5rem; border-radius: 999px;
    font-family: var(--texte); font-size: .97rem; font-weight: 600;
    letter-spacing: .005em; text-decoration: none; cursor: pointer;
    border: 1px solid transparent;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
}
.bouton:active { transform: translateY(1px); }
.bouton svg { flex: none; }

/* L'or ne sert qu'à l'action principale, et à plat : le dégradé faisait
   plaque de métal, la pastille pleine se tient mieux à côté des étiquettes. */
.bouton--or { background: var(--or); color: #17110A; }
.bouton--or:hover {
    background: var(--or-clair); color: #17110A;
    transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(199, 159, 85, .8);
}

.bouton--contour {
    background: rgba(255, 255, 255, .045); border-color: var(--bord-fort); color: var(--blanc);
}
.bouton--contour:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22); color: var(--blanc); }

.bouton--bleu { background: var(--bleu-vif); color: #fff; }
.bouton--bleu:hover { background: #6A98EA; color: #fff; }

.bouton[aria-disabled="true"], .bouton:disabled {
    background: rgba(255, 255, 255, .05); color: var(--gris-fonce);
    box-shadow: none; cursor: not-allowed; pointer-events: none;
}

/* ------------------------------------------------------------- sections */

.section { padding-block: clamp(3rem, 7.5vh, 5rem); }
.section--sombre {
    background: linear-gradient(180deg, rgba(17, 26, 43, .55), rgba(8, 13, 24, .2));
    border-block: 1px solid var(--bord);
}
.section--serree { padding-block: clamp(2.25rem, 5vh, 3.25rem); }

.section__entete {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 1rem; margin-bottom: 2rem;
}
.section__titre { margin: 0; }
.section__chapeau { color: var(--gris); max-width: 48rem; margin: 0; }

.circuit {
    height: 1px; border: 0; margin: 0;
    background: linear-gradient(90deg, transparent, var(--bord-fort) 20%, var(--bord-fort) 80%, transparent);
}

/* ------------------------------------------------------------- cartes */

.grille-evenements {
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr));
}
/* Sur la page Événements, chaque groupe a son titre : il lui faut de l'air
   avant ses cartes, et après le groupe précédent. */
.liste__titre { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.6rem); margin-bottom: 1.4rem; }
.liste__titre + .grille-evenements,
.liste__titre + .message { margin-top: 0; }
.grille-evenements--groupe { margin-bottom: 3.5rem; }

.carte {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--bord);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--ombre);
    transition: transform var(--transition), box-shadow var(--transition),
                border-color var(--transition), background var(--transition);
}
.carte:hover, .carte:focus-within {
    transform: translateY(-4px);
    background: var(--surface-2);
    border-color: var(--bord-fort);
    box-shadow: var(--ombre-haut);
}

.carte__image { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.carte__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.carte:hover .carte__image img { transform: scale(1.04); }

/* Sans affiche : un dégradé calme, la trame de chevrons en sourdine, et
   l'initiale du jeu. La forme de la marque, sans l'agressivité. */
.carte__image--vide {
    display: grid; place-items: center;
    background:
        repeating-linear-gradient(115deg,
            rgba(143, 182, 255, .07) 0 2px,
            transparent 2px 9px,
            rgba(143, 182, 255, .035) 9px 10px,
            transparent 10px 28px),
        radial-gradient(ellipse 70% 90% at 30% 20%, rgba(82, 133, 224, .22), transparent 70%),
        linear-gradient(150deg, var(--surface-3), var(--surface));
}
.carte__marque {
    width: 64px; height: 64px; border-radius: 50%;
    opacity: .3; filter: grayscale(1);
}
.une__visuel .carte__marque { width: 110px; height: 110px; }

/* Pastilles posées sur le visuel, à la manière d'une vignette de catalogue de
   jeu : le jeu en bas à gauche, la dotation et l'état en haut. */
.carte__jeu, .carte__dotation, .carte__etat, .carte__serie {
    position: absolute; z-index: 2;
    display: inline-flex; align-items: center; gap: .32rem;
    padding: .22rem .55rem; border-radius: var(--r-xs);
    font-size: .78rem; font-weight: 600; line-height: 1.4;
    backdrop-filter: blur(6px);
    white-space: nowrap; max-width: calc(100% - 1.2rem); overflow: hidden; text-overflow: ellipsis;
}
.carte__jeu {
    left: .6rem; bottom: .6rem;
    background: rgba(8, 13, 24, .78); color: var(--blanc);
}
.carte__jeu svg { color: var(--bleu-clair); }
.carte__dotation {
    right: .6rem; top: .6rem;
    background: rgba(199, 159, 85, .92); color: #17110A;
    font-variant-numeric: tabular-nums;
}
.carte__etat {
    left: .6rem; top: .6rem;
    background: rgba(8, 13, 24, .78); color: var(--gris);
}
/* L'étape d'un circuit, en bas à droite du visuel. */
.carte__serie {
    right: .6rem; bottom: .6rem;
    background: rgba(8, 13, 24, .78); color: var(--or-clair);
    font-size: .74rem; letter-spacing: .04em;
}
.carte__etat--vive { color: var(--live); }
.carte__etat--vive::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; flex: none;
    background: currentColor; box-shadow: 0 0 0 0 currentColor;
    animation: pouls 2.4s ease-out infinite;
}

.carte__corps { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; flex: 1; gap: .45rem; }
.carte__date {
    font-size: .8rem; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--gris-fonce); font-variant-numeric: tabular-nums;
}
.carte__titre { font-size: 1.12rem; margin: 0; line-height: 1.25; }
.carte__titre a { color: var(--blanc); text-decoration: none; }
.carte__titre a::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.carte:hover .carte__titre a { color: var(--or-clair); }
.carte__chapeau { color: var(--gris); font-size: .92rem; margin: 0; }

/* Une seule ligne de pied, et une seule donnée : celle qui compte à ce stade. */
.carte__pied {
    margin: auto 0 0; padding-top: .85rem; border-top: 1px solid var(--bord);
    display: flex; align-items: center; gap: .45rem;
    font-size: .88rem; color: var(--gris);
}
.carte__pied svg { flex: none; color: var(--gris-fonce); }
.carte__pied-libelle { color: var(--gris-fonce); }
.carte__pied strong { color: var(--blanc); font-weight: 600; }
.carte__pied--vainqueur svg { color: var(--or); }
.carte__pied--vainqueur strong { color: var(--or-clair); }

/* ------------------------------------------------------------- étiquettes */

.etiquette {
    display: inline-flex; align-items: center; gap: .38rem;
    padding: .22rem .7rem; border-radius: 999px;
    font-size: .78rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
    background: rgba(255, 255, 255, .06); color: var(--gris);
    border: 1px solid transparent;
}
.etiquette--or     { background: rgba(199, 159, 85, .14); color: var(--or-clair); }
.etiquette--bleu   { background: rgba(82, 133, 224, .16); color: var(--bleu-clair); }
.etiquette--pleine { background: var(--or); color: #17110A; }
.etiquette--sourde { background: rgba(255, 255, 255, .04); color: var(--gris-fonce); }

/* L'état « inscriptions ouvertes » est le seul élément qui bouge. */
.etiquette--vive { background: rgba(62, 213, 152, .14); color: var(--live); }
.etiquette--vive.etiquette--pleine { background: var(--or); color: #17110A; }
.etiquette--vive::before {
    content: ''; width: 7px; height: 7px; flex: none; border-radius: 50%;
    background: currentColor; box-shadow: 0 0 0 0 currentColor;
    animation: pouls 2.4s ease-out infinite;
}
@keyframes pouls {
    0%   { box-shadow: 0 0 0 0 rgba(62, 213, 152, .5); }
    70%  { box-shadow: 0 0 0 8px rgba(62, 213, 152, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 213, 152, 0); }
}

/* ------------------------------------------------------------- mise en avant */

.une {
    display: grid; gap: clamp(1.5rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
}
/* Le seul endroit du site qui porte un anneau dégradé : l'événement à la une. */
.une__visuel {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    border-radius: var(--r-l);
    background:
        linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
        linear-gradient(135deg, rgba(199, 159, 85, .8), rgba(82, 133, 224, .55) 55%, transparent) border-box;
    border: 1px solid transparent;
    box-shadow: var(--ombre-haut);
}
.une__visuel img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r-l) - 1px); }
.une__visuel .carte__image--vide { height: 100%; border-radius: calc(var(--r-l) - 1px); }

.une__titre { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3rem); }
.une__meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem; }
.une__texte { color: var(--gris); font-size: 1.05rem; }
.une__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* ------------------------------------------------------------- rejoins-nous */

/* Le bandeau communauté : le seul endroit où le site hausse un peu la voix. */
.rejoindre {
    position: relative; isolation: isolate;
    border-block: 1px solid var(--bord);
    background:
        radial-gradient(ellipse 60% 120% at 18% 50%, rgba(199, 159, 85, .13), transparent 70%),
        radial-gradient(ellipse 55% 120% at 85% 40%, rgba(82, 133, 224, .16), transparent 72%),
        linear-gradient(180deg, rgba(17, 26, 43, .6), rgba(8, 13, 24, .3));
}
.rejoindre__interieur {
    display: grid; gap: clamp(1.5rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 1.4fr) minmax(0, auto);
    align-items: center;
}
.rejoindre__texte { color: var(--gris); max-width: 44rem; margin: 0; }
.rejoindre__actions { display: grid; gap: 1rem; justify-items: start; }
.rejoindre__actions .reseaux { margin: 0; }

@media (max-width: 780px) {
    .rejoindre__interieur { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- prestations */

.grille-prestations {
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.prestation {
    padding: 1.7rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--bord); border-radius: var(--r);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.prestation:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--bord-fort); }
.prestation__icone {
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: var(--r-s); margin-bottom: 1.1rem;
    color: var(--or-clair);
    background: linear-gradient(150deg, rgba(199, 159, 85, .2), rgba(82, 133, 224, .12));
}
.prestation h2, .prestation h3 { margin-bottom: .45rem; }
.prestation p { color: var(--gris); font-size: .94rem; margin: 0; }

/* ------------------------------------------------------------- fiche */

.fiche__entete { padding-block: clamp(2rem, 5vh, 3rem) 0; }
.fiche__fil { font-size: .9rem; margin-bottom: 1rem; }
.fiche__fil a { color: var(--gris); text-decoration: none; }
.fiche__fil a:hover { color: var(--or-clair); }
.fiche__meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }
.fiche__chapeau {
    font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); color: var(--gris);
    max-width: 46rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--bord);
}

.fiche__grille {
    display: grid; gap: clamp(1.75rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    align-items: start;
    padding-block: clamp(2rem, 5vh, 3rem);
}
.fiche__corps > * + * { margin-top: 1.6rem; }
.fiche__corps h3 { margin-top: 2rem; }

.fiche__affiche {
    border-radius: var(--r); overflow: hidden; margin-bottom: 1.1rem;
    background: var(--surface-2); border: 1px solid var(--bord);
}

.encart {
    background: var(--surface); border: 1px solid var(--bord);
    border-radius: var(--r); padding: 1.35rem;
}
.encart + .encart { margin-top: 1rem; }
.encart__titre {
    font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--or); margin: 0 0 1rem;
}

.donnees { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; font-size: .93rem; }
.donnees dt { color: var(--gris-fonce); }
.donnees dd { margin: 0; color: var(--blanc); font-variant-numeric: tabular-nums; }

.classement { list-style: none; margin: 0; padding: 0; border-radius: var(--r-s); overflow: hidden; }
.classement li {
    display: flex; align-items: center; gap: .8rem;
    padding: .62rem .9rem; background: var(--surface);
}
.classement li:nth-child(even) { background: var(--surface-2); }
.classement__rang {
    display: grid; place-items: center;
    width: 1.8rem; height: 1.8rem; flex: none; border-radius: 50%;
    background: rgba(255, 255, 255, .06); color: var(--gris);
    font-family: var(--titre); font-weight: 600; font-size: .85rem;
    font-variant-numeric: tabular-nums;
}
.classement li:first-child .classement__rang { background: var(--or); color: #17110A; }
.classement li:first-child .classement__nom { color: var(--or-clair); font-weight: 600; }
.classement__nom { flex: 1; }
.classement__note { color: var(--gris-fonce); font-size: .86rem; font-variant-numeric: tabular-nums; }

.replay { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.replay iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------- circuit */

/* Le bandeau qui relie les étapes d'une même série. */
.circuit-bandeau {
    margin: 1.5rem 0 1.75rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(100deg, rgba(199, 159, 85, .12), rgba(82, 133, 224, .1));
    border: 1px solid var(--bord-or);
    border-radius: var(--r-s);
    display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem;
}
.circuit-bandeau__titre {
    margin: 0; font-family: var(--titre); font-weight: 700; font-size: 1rem;
    color: var(--or-clair); letter-spacing: -.01em;
}
.circuit-bandeau__soutien { color: var(--gris); font-family: var(--texte); font-weight: 400; font-size: .92rem; }
.circuit-bandeau__etapes {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem;
}
.circuit-bandeau__etapes li { display: flex; gap: .45rem; align-items: baseline; }
.circuit-bandeau__etapes a { color: var(--blanc); text-decoration: none; font-weight: 600; }
.circuit-bandeau__etapes a:hover { color: var(--or-clair); }
.circuit-bandeau__etapes span { color: var(--gris-fonce); font-size: .84rem; white-space: nowrap; }

/* ------------------------------------------------------------- formulaires */

.formulaire { display: grid; gap: 1.05rem; }
.formulaire__paire { display: grid; gap: 1.05rem; grid-template-columns: 1fr 1fr; }

.champ { display: grid; gap: .38rem; }
.champ__libelle { font-size: .88rem; font-weight: 600; color: var(--gris); }
.champ__libelle .requis { color: var(--or); }

.champ input[type="text"], .champ input[type="email"], .champ input[type="date"],
.champ input[type="tel"], .champ input[type="url"], .champ input[type="number"],
.champ input[type="password"], .champ input[type="datetime-local"],
.champ select, .champ textarea {
    width: 100%; padding: .72rem .9rem;
    background: rgba(255, 255, 255, .04); color: var(--blanc);
    border: 1px solid var(--bord); border-radius: var(--r-s);
    font: inherit; font-size: .97rem;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.champ textarea { min-height: 8rem; resize: vertical; }
.champ input::placeholder, .champ textarea::placeholder { color: var(--gris-fonce); }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--bord-fort); }
.champ input:focus, .champ select:focus, .champ textarea:focus {
    border-color: var(--or); background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 3px rgba(199, 159, 85, .14); outline: none;
}
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: var(--alerte); }
.champ__erreur { font-size: .85rem; color: var(--alerte); }
.champ__aide { font-size: .85rem; color: var(--gris-fonce); }

.case { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; color: var(--gris); }
.case input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--or); flex: none; }
.case label { cursor: pointer; }

.leurre { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.message {
    padding: 1rem 1.2rem; border-radius: var(--r-s);
    background: var(--surface); border: 1px solid var(--bord);
    display: flex; gap: .8rem; align-items: flex-start;
}
.message--succes { border-color: rgba(62, 213, 152, .4); background: rgba(62, 213, 152, .08); }
.message--erreur { border-color: rgba(240, 118, 108, .4); background: rgba(240, 118, 108, .08); }
.message p { margin: 0; }

/* ------------------------------------------------------------- galerie */

.mosaique {
    display: grid; gap: .8rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
}
.mosaique__element {
    position: relative; display: block; aspect-ratio: 3 / 2;
    border-radius: var(--r-s); overflow: hidden; background: var(--surface-2);
    border: 1px solid var(--bord);
    transition: transform var(--transition), box-shadow var(--transition);
}
.mosaique__element:hover { transform: translateY(-3px); box-shadow: var(--ombre-haut); }
.mosaique__element img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.mosaique__element:hover img { transform: scale(1.05); }
.mosaique__legende {
    position: absolute; inset: auto 0 0 0; padding: .8rem;
    background: linear-gradient(transparent, rgba(6, 10, 18, .92));
    font-size: .84rem; color: var(--blanc);
    opacity: 0; transition: opacity var(--transition);
}
.mosaique__element:hover .mosaique__legende,
.mosaique__element:focus-visible .mosaique__legende { opacity: 1; }

.groupe-photos + .groupe-photos { margin-top: 3rem; }
.groupe-photos__entete {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem;
    margin-bottom: 1.1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--bord);
}
.groupe-photos__titre { margin: 0; font-size: 1.2rem; }
.groupe-photos__lien { font-size: .9rem; }

/* ------------------------------------------------------------- partenaires */

.logos {
    display: grid; gap: .9rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
    list-style: none; margin: 0; padding: 0;
}
.logo-partenaire {
    display: grid; place-items: center; gap: .6rem;
    min-height: 7.25rem; padding: 1.2rem 1rem;
    background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r);
    text-decoration: none;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.logo-partenaire:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--bord-fort); }
/* Même raison qu'au pied de page : repeindre un logo à fond opaque en
   blanc n'en laisse qu'un rectangle. L'opacité seule le fait reculer. */
.logo-partenaire img {
    max-height: 3.4rem; width: auto; object-fit: contain;
    opacity: .82; transition: opacity var(--transition);
}
.logo-partenaire:hover img { opacity: 1; }
.logo-partenaire__nom {
    font-size: .88rem; font-weight: 600; letter-spacing: .04em;
    color: var(--gris); text-align: center;
}
.logo-partenaire:hover .logo-partenaire__nom { color: var(--blanc); }

.bande-logos { display: flex; flex-wrap: wrap; gap: 1.1rem 2.4rem; align-items: center; justify-content: center; }
.bande-logos__element {
    display: inline-flex; align-items: center;
    font-size: .92rem; font-weight: 600; letter-spacing: .04em;
    color: var(--gris-fonce); text-decoration: none;
    transition: color var(--transition), opacity var(--transition), filter var(--transition);
}
/* Pas de filtre : la moitié des logos ont un fond opaque, et les repeindre
   les changeait en rectangles. L'opacité seule suffit à les faire reculer. */
.bande-logos__element img {
    max-height: 2rem; width: auto; opacity: .7;
    transition: opacity var(--transition);
}
a.bande-logos__element:hover { color: var(--blanc); }
a.bande-logos__element:hover img { opacity: 1; }

/* La rangée de partenaires, en tête du pied de page. */
.pied__partenaires {
    display: flex; flex-wrap: wrap; gap: .8rem 1.6rem;
    align-items: center; justify-content: center;
    padding-bottom: 1.4rem; margin-bottom: 1.6rem;
    border-bottom: 1px solid var(--bord);
}
.pied__partenaires-titre {
    margin: 0; font-size: .74rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; color: var(--gris-fonce);
}
/* Le libellé à gauche, les logos au centre, le lien à droite : une seule
   ligne tant que la place le permet, puis chacun sur la sienne. */
.pied__partenaires .bande-logos { flex: 1 1 20rem; }
.pied__partenaires-lien { font-size: .84rem; text-decoration: none; white-space: nowrap; }

/* ------------------------------------------------------------- filtres */

.filtres { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.85rem; }
.filtre {
    padding: .42rem 1rem; border-radius: 999px;
    background: rgba(255, 255, 255, .05); border: 1px solid transparent;
    color: var(--gris); text-decoration: none;
    font-size: .89rem; font-weight: 600;
    transition: all var(--transition);
}
.filtre:hover { background: rgba(255, 255, 255, .1); color: var(--blanc); }
.filtre.est-actif { background: var(--or); color: #17110A; }

/* ------------------------------------------------------------- chiffres */

.chiffres {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    list-style: none; margin: 0; padding: 0;
}
.chiffres li {
    text-align: center; padding: 1.5rem 1rem;
    background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r);
}
.chiffres__nombre {
    display: block; font-family: var(--titre-fort); font-weight: 400;
    font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.6rem); color: var(--or);
    line-height: 1; font-variant-numeric: tabular-nums;
}
.chiffres__legende {
    display: block; margin-top: .55rem; font-size: .8rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--gris-fonce);
}

/* ------------------------------------------------------------- texte long */

.texte-long { max-width: var(--lecture); }
.texte-long h3 { margin-top: 2.2rem; color: var(--blanc); }
.texte-long h3:first-child { margin-top: 0; }
.texte-long p, .texte-long li { color: var(--gris); }
.texte-long strong { color: var(--blanc); font-weight: 600; }
.texte-long ul, .texte-long ol { padding-left: 1.3rem; }
.texte-long li { margin-bottom: .4rem; }
.texte-long blockquote {
    margin: 1.5rem 0; padding: 1rem 1.3rem;
    background: var(--surface); border-left: 3px solid var(--or);
    border-radius: 0 var(--r-s) var(--r-s) 0;
    color: var(--blanc); font-style: italic;
}

.replay__lien { margin: .7rem 0 0; font-size: .9rem; }
.replay__lien a { color: var(--or); text-decoration: none; }
.replay__lien a:hover { color: var(--or-clair); text-decoration: underline; }

/* ------------------------------------------------------------- pied */

.pied {
    margin-top: 3rem; padding-top: 1.8rem;
    border-top: 1px solid var(--bord);
    background: linear-gradient(180deg, rgba(17, 26, 43, .5), rgba(6, 10, 18, .9));
}
.pied__grille {
    display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem;
    align-items: start; justify-content: space-between;
    padding-bottom: 1.4rem;
}
.pied__marque { display: flex; gap: 1rem; align-items: flex-start; }
.pied__marque img { border-radius: 50%; flex: none; width: 44px; height: 44px; }
.pied__signature { font-size: .92rem; color: var(--gris); line-height: 1.7; }
.pied__contact { display: grid; gap: .35rem; align-content: start; justify-items: start; }
.pied__courriel, .pied__tel { color: var(--blanc); text-decoration: none; font-size: .95rem; }
.pied__courriel:hover, .pied__tel:hover { color: var(--or-clair); }

.reseaux { gap: .45rem; margin-top: .7rem; flex-wrap: wrap; }
.reseaux__lien {
    display: grid; place-items: center; width: 34px; height: 34px;
    border-radius: var(--r-s);
    background: rgba(255, 255, 255, .05); color: var(--gris);
    transition: all var(--transition);
}
.reseaux__lien:hover { background: var(--or); color: #17110A; transform: translateY(-2px); }

.pied__bas {
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
    padding-block: .9rem; border-top: 1px solid var(--bord);
    font-size: .85rem; color: var(--gris-fonce);
}
.pied__bas p { margin: 0; }
.pied__bas ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.pied__bas a { color: var(--gris-fonce); text-decoration: none; }
.pied__bas a:hover { color: var(--or-clair); }

/* ------------------------------------------------------------- 404 */

.erreur-page { text-align: center; padding-block: clamp(4.5rem, 15vh, 9rem); }
.erreur-page__code {
    font-family: var(--titre-fort); font-size: clamp(5rem, 15vw, 9rem); font-weight: 400;
    line-height: 1; margin: 0; letter-spacing: -.02em;
    background: linear-gradient(180deg, rgba(237, 242, 250, .22), transparent);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------------------- adaptatif */

@media (max-width: 960px) {
    .une { grid-template-columns: 1fr; }
    .fiche__grille { grid-template-columns: 1fr; }
    .pied__grille { gap: 1.2rem 2rem; }
}

@media (max-width: 780px) {
    .bascule {
        display: grid; place-items: center;
        width: 42px; height: 42px; padding: 0;
        background: rgba(255, 255, 255, .05); border: 1px solid var(--bord);
        border-radius: var(--r-s); color: var(--blanc); cursor: pointer;
    }
    .bascule__barres { display: grid; gap: 5px; }
    .bascule__barres i {
        display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor;
        transition: transform var(--transition), opacity var(--transition);
    }
    .bascule[aria-expanded="true"] .bascule__barres i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .bascule[aria-expanded="true"] .bascule__barres i:nth-child(2) { opacity: 0; }
    .bascule[aria-expanded="true"] .bascule__barres i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .navigation {
        position: fixed; inset: 68px 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(8, 13, 24, .98);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--bord);
        padding: .9rem var(--marge) 1.5rem;
        max-height: calc(100dvh - 68px); overflow-y: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    }
    .navigation.est-ouverte { transform: none; opacity: 1; visibility: visible; }
    .navigation__liste { flex-direction: column; gap: .2rem; }
    .navigation__lien { padding: .8rem 1rem; font-size: 1.02rem; }
    .navigation__lien.est-actif { background: rgba(255, 255, 255, .06); }
    .navigation__lien.est-actif::after { left: 0; right: auto; top: 50%; bottom: auto; width: 3px; height: 1.2rem; transform: translateY(-50%); }
    .langues { margin: 1rem 0 0; align-self: flex-start; }

    .accroche__compteurs { gap: 1.5rem 2rem; }
    .accroche__compteurs strong { font-size: 1.45rem; }
    /* Un trait de 2 px fermerait les contreformes d'un titre plus petit. */
    .accroche h1 em { -webkit-text-stroke-width: 1.5px; }

    .formulaire__paire { grid-template-columns: 1fr; }
    .pied__grille { flex-direction: column; }
    .section__entete { flex-direction: column; align-items: flex-start; }
    /* Quatorze logos sur une colonne de téléphone : on resserre, sinon la
       rangée de partenaires fait à elle seule la hauteur d'un écran. */
    .bande-logos { gap: .8rem 1.4rem; }
    .bande-logos__element img { max-height: 1.6rem; }
    .defiler { bottom: .8rem; font-size: .68rem; }
}

/* ------------------------------------------------------------- confort */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .accroche__fond { display: none; }
}

@media print {
    .entete, .pied, .accroche__fond, .bascule { display: none; }
    body { background: #fff; color: #000; }
}
