/* ========================================================================
   Contenu pour : src/vitrine/vitrine.css
   Style du site vitrine, commun à toutes ses pages (index.html et pages des
   fonctionnalités). Sorti de index.html le 08/11/2026, sans changement.
   ======================================================================== */
/* Palette tirée du logo, qui a les couleurs d'un terrain de volley en salle : le bleu
   de « Easy » (#0474CC) pour le terrain et les actions, le jaune-orangé de « Play »
   (#FCAC0C) pour la zone libre et les grandes surfaces. Autour : fond crème, encre
   presque noire et expresso pour les sections sombres. */
:root {
    --creme: 251 251 249;  --papier: 255 255 255;
    --sable: 243 234 220;  --sable2: 234 221 200;
    --bleu: 5 115 204;     --bleufonce: 11 74 158;
    --orange: 252 172 12;  --orangeclair: 251 211 130;  --orangefonce: 214 120 0;
    --encre: 26 23 20;     --encredouce: 92 83 74;
    --expresso: 31 26 22;  --expresso2: 43 36 30;
    --lait: 246 239 230;   --laitdoux: 205 191 174;
    --ombre-douce: 0 1px 2px rgb(74 48 24 / .06), 0 14px 34px -14px rgb(74 48 24 / .28);
    --ombre-portee: 0 2px 6px rgb(74 48 24 / .10), 0 30px 70px -24px rgb(74 48 24 / .45);
    /* Grain de papier, très léger, posé sur les fonds unis */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: 'Figtree', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.55; color: rgb(var(--encre)); background: rgb(var(--creme)) var(--grain); margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.grain { background-image: var(--grain); }
.cadre { max-width: 80rem; margin-inline: auto; padding-inline: clamp(1rem, 3.2vw, 2.5rem); }
/* Titres : Figtree comme le reste de la page (demande du 28/10/2026). La police
   arrondie proche du logo, essayée avant, faisait trop « enfantin ». */
.titre { font-family: 'Figtree', system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.titre-section { font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); }
.t-carte { font-size: clamp(1.5rem, 1.2rem + .9vw, 2.05rem); }
.chapo { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; }
/* Ligne de structure en haut de chaque section : le tracé du terrain */
.ligne-haut { border-top: 2px solid rgb(var(--encre)); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.ligne-haut-claire { border-top-color: rgb(var(--lait) / .28); }

/* Boutons : une seule forme (pilule), un seul geste au survol */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border-radius: 999px; font-weight: 700; padding: 1rem 1.6rem; line-height: 1.2; transition: transform .2s cubic-bezier(.2,.7,.2,1), background-color .2s, box-shadow .2s; }
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0) scale(.98); }
.bouton .fleche { transition: transform .2s; }
.bouton:hover .fleche { transform: translateX(4px); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgb(var(--orange)); outline-offset: 3px; border-radius: 6px; }
.bouton:focus-visible { border-radius: 999px; }
.lien-souligne { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Apparition au défilement (activée par src/vitrine/commun.js), décalée par --d.
   Les effets de survol sont posés sur un élément intérieur : la règle ci-dessous les écraserait. */
.js .apparition { opacity: 0; transform: translateY(24px); transition: opacity .7s ease var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js .apparition.visible { opacity: 1; transform: none; }
/* Accroche : apparition en cascade au chargement */
@keyframes epFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ep-hero-item { opacity: 0; animation: epFadeUp .7s cubic-bezier(.22,.61,.36,1) forwards; }
.ep-d1 { animation-delay: .08s; } .ep-d2 { animation-delay: .18s; } .ep-d3 { animation-delay: .28s; } .ep-d4 { animation-delay: .38s; }
@keyframes epFlotte { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-8px) rotate(var(--rot, 0deg)); } }
.ep-flotte { animation: epFlotte 6s ease-in-out infinite; }
.ep-flotte-lent { animation: epFlotte 7s ease-in-out 1.2s infinite; }
@keyframes epPulse { 0% { box-shadow: 0 0 0 0 rgb(52 168 83 / .6); } 70% { box-shadow: 0 0 0 8px rgb(52 168 83 / 0); } 100% { box-shadow: 0 0 0 0 rgb(52 168 83 / 0); } }
.ep-pulse { animation: epPulse 2s infinite; }
/* Logos des clubs de l'accroche : la ligne (écrite deux fois) recule de la moitié de
   sa longueur, puis repart du début, sans à-coup. Pause au survol ; bords estompés. */
@keyframes epDefileLogos { to { transform: translateX(-50%); } }
.defile-logos { animation: epDefileLogos 22s linear infinite; }
#logos-clubs:hover .defile-logos { animation-play-state: paused; }
.fenetre-logos {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

/* Scène de l'accroche : un terrain de volley vu du dessus, aux couleurs du logo */
.lignes-terrain { position: absolute; inset: 0; width: 100%; height: 100%; color: rgb(var(--papier) / .85); pointer-events: none; }
.fenetre-app { position: absolute; background: rgb(var(--papier)); border-radius: 16px; overflow: hidden; box-shadow: var(--ombre-portee); }
.barre-fenetre { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; background: rgb(var(--sable)); font-size: .75rem; color: rgb(var(--encredouce)); }
.telephone { background: rgb(var(--encre)); border-radius: 30px; padding: 7px; box-shadow: var(--ombre-portee); }
.telephone img { border-radius: 24px; display: block; width: 100%; height: auto; }
/* Pages des fonctionnalités : une vraie capture dans une fenêtre de navigateur, posée dans le texte */
.navigateur { background: rgb(var(--papier)); border-radius: 16px; overflow: hidden; box-shadow: var(--ombre-portee); }
.navigateur img { display: block; width: 100%; height: auto; }
/* Repères numérotés posés sur une capture (--x, --y : position en % de l'image), repris dans la liste à côté */
.reperes { position: relative; }
.repere, .numero { width: 2rem; height: 2rem; border-radius: 999px; background: rgb(var(--orange)); color: rgb(var(--encre)); font-weight: 800; font-size: .95rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
/* Taille unique, quel que soit l'écran : certaines captures (ex. le portail) n'ont pas la place pour un repère de 2rem. */
.repere { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 1rem; height: 1rem; font-size: .52rem; box-shadow: 0 0 0 2px rgb(var(--papier)), var(--ombre-douce); pointer-events: none; }
/* Notification qui s'affiche par-dessus une capture de téléphone (ex. fonctionnalites-portail.html,
   section « Avant le premier score ») : visible 3 s, cachée 5 s, en boucle (cycle de 8 s). */
@keyframes notifApparition {
    0%     { opacity: 0; transform: translateY(-14px) scale(.92); }
    4%     { opacity: 1; transform: translateY(4px) scale(1.04); }
    8%     { opacity: 1; transform: translateY(0) scale(1); }
    34%    { opacity: 1; transform: translateY(0) scale(1); }
    37.5%  { opacity: 0; transform: translateY(-10px) scale(.96); }
    100%   { opacity: 0; transform: translateY(-14px) scale(.92); }
}
.notif-flash { animation: notifApparition 8s ease-in-out infinite; pointer-events: none; }
/* Carrousel des 4 onglets du portail (ex. fonctionnalites-portail.html, section « Infos partagées ») :
   une bande de 5 diapositives (les 4 onglets, puis la 1re rejouée en copie muette) glisse de droite
   à gauche comme un doigt qui balaie l'écran, 3 s d'arrêt sur chaque onglet. La bande revient ensuite
   d'un coup sur la copie finale vers l'originale, invisible puisque les deux sont identiques. */
.onglets-defile { position: relative; aspect-ratio: 1170 / 2532; overflow: hidden; border-radius: inherit; }
.onglets-piste { display: flex; width: 500%; height: 100%; animation: ongletDefile 12s cubic-bezier(.65, 0, .35, 1) infinite; }
.onglet-diapo { position: relative; flex: 0 0 20%; height: 100%; }
.onglet-diapo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.onglet-etiquette { position: absolute; top: .7rem; left: 50%; transform: translateX(-50%); z-index: 2; background: rgb(var(--bleu)); color: rgb(var(--papier)); font-weight: 800; font-size: .78rem; padding: .3rem .85rem; border-radius: 999px; box-shadow: var(--ombre-douce); }
@keyframes ongletDefile {
    0%, 20.83%  { transform: translateX(0%); }
    25%, 45.83% { transform: translateX(-20%); }
    50%, 70.83% { transform: translateX(-40%); }
    75%, 95.83% { transform: translateX(-60%); }
    100%        { transform: translateX(-80%); }
}
/* Grand écran (section du même nom) : les rencontres défilent du bas vers le haut, comme sur l'accueil
   (index.html, carte « Votre salle en mode compétition officielle ») et dans l'application réelle
   (src/grand-ecran/grand-ecran.js). Deux copies de la même capture empilées, translatées de -50 %
   (= la hauteur d'une copie) : la boucle est invisible puisque les deux copies sont identiques. */
.grand-ecran-defile { position: relative; overflow: hidden; aspect-ratio: 1280 / 550; }
.grand-ecran-piste { display: flex; flex-direction: column; animation: grandEcranDefile 16s linear infinite; }
.grand-ecran-piste img { display: block; width: 100%; height: auto; }
@keyframes grandEcranDefile { to { transform: translateY(-50%); } }
/* Barre des 5 étapes, sous la barre du haut */
.etapes a { border-radius: 999px; padding: .4rem .9rem; background: rgb(var(--papier)); white-space: nowrap; transition: background-color .2s; }
.etapes a:hover { background: rgb(var(--sable2)); }
.etapes a[aria-current="page"] { background: rgb(var(--bleu)); color: rgb(var(--papier)); }
/* Bascule « Vue organisateur / Vue joueur » (src/vitrine/fonctionnalites.js) */
.bascule { display: inline-flex; background: rgb(var(--sable)); border-radius: 999px; padding: 4px; font-weight: 700; font-size: .95rem; }
.bascule button { border-radius: 999px; padding: .55rem 1.1rem; transition: background-color .2s, color .2s; }
.bascule button[aria-pressed="true"] { background: rgb(var(--encre)); color: rgb(var(--papier)); }
/* Un panneau caché a souvent aussi une classe Tailwind "grid" ou "flex" : elle fixe un display
   qui l'emporterait sur le display:none par défaut de [hidden] (styles d'auteur contre styles
   du navigateur). Cette règle, plus spécifique, referme la porte dans tous les cas. */
[data-panneau][hidden] { display: none; }
/* Onglets numérotés (étapes de l'assistant de création, src/vitrine/fonctionnalites.js) */
.onglets { display: flex; flex-wrap: wrap; gap: .5rem; }
.onglets button { border-radius: 999px; padding: .5rem 1rem; background: rgb(var(--papier)); border: 2px solid rgb(var(--sable2)); font-weight: 700; font-size: .9rem; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.onglets button[aria-selected="true"] { background: rgb(var(--bleu)); color: rgb(var(--papier)); border-color: rgb(var(--bleu)); }

/* Avant / après : les feuilles volantes, barrées quand la section arrive */
.note { position: relative; background: rgb(var(--papier)); border-radius: 6px; padding: .7rem 1rem; box-shadow: var(--ombre-douce); transform: rotate(var(--r, 0deg)); }
.note .texte-note { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: transparent; transition: text-decoration-color .5s ease var(--b, 0ms); }
.js .visible .note .texte-note { text-decoration-color: rgb(var(--orangefonce) / .45); }
.crochet { position: relative; height: 74%; border: 3px solid rgb(var(--bleu)); border-left: 0; border-radius: 0 20px 20px 0; }
.crochet::after { content: ""; position: absolute; left: 100%; top: 50%; width: 44px; height: 3px; margin-top: -1.5px; background: rgb(var(--bleu)); }
.crochet-mobile { height: 48px; width: 64%; margin-inline: auto; position: relative; border: 3px solid rgb(var(--bleu)); border-top: 0; border-radius: 0 0 20px 20px; }
.crochet-mobile::after { content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: 36px; margin-left: -1.5px; background: rgb(var(--bleu)); }

/* Cartes : surface sable, qui se soulève doucement au survol */
.carte { height: 100%; border-radius: 24px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-douce); }
.capture { cursor: zoom-in; }
/* Carrousels sur téléphone (src/vitrine/vitrine.js) : les cartes passent en ligne, défilent
   seules de droite à gauche, s'arrêtent au toucher et se font défiler au doigt. */
@media (max-width: 767px) {
    [data-carrousel] { display: flex !important; gap: 1rem !important; overflow-x: auto; scrollbar-width: none; align-items: stretch; }
    [data-carrousel]::-webkit-scrollbar { display: none; }
    [data-carrousel] > * { flex: 0 0 85%; min-width: 0; }
    /* Cartes qui débordent jusqu'aux bords de l'écran */
    [data-carrousel="bord"] { margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; }
    /* Outils du jour J : chaque outil devient une petite carte */
    [data-carrousel="outils"] { margin-inline: -1rem; padding-inline: 1rem; }
    [data-carrousel="outils"] > * { flex-basis: 72%; background: rgb(var(--sable)); border-radius: 20px; padding: 1.1rem; }
}
.cadre-capture { overflow: hidden; border-radius: 14px; box-shadow: var(--ombre-douce); background: rgb(var(--papier)); }
.cadre-capture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.carte:hover .cadre-capture img { transform: scale(1.025); }
/* Schémas des formats : les lignes se tracent quand la carte apparaît */
.schema { width: 100%; height: auto; color: rgb(var(--encre)); }
.schema .trace { stroke-dasharray: 600; stroke-dashoffset: 0; }
.js .schema .trace { stroke-dashoffset: 600; transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1) var(--d, 0ms); }
.js .visible .schema .trace { stroke-dashoffset: 0; }
.format:hover .schema .plein { transform: scale(1.06); }
.schema .plein { fill: rgb(var(--bleu)); transform-box: fill-box; transform-origin: center; transition: transform .3s; }
/* Illustrations dessinées (création, inscriptions) : tout est en em, la taille suit la carte */
.illus { position: relative; overflow: hidden; border-radius: 14px; background: rgb(var(--sable2)); container-type: inline-size; font-size: clamp(8.5px, 2.25cqi, 13px); line-height: 1.3; }
.illus .papier { position: absolute; background: rgb(var(--papier)); border-radius: .6em; padding: .8em .9em; box-shadow: var(--ombre-douce); }
.illus .tel { position: absolute; background: rgb(var(--encre)); border-radius: 1.8em; padding: .4em; box-shadow: var(--ombre-portee); }
.illus .tel-ecran { background: #f8fafc; border-radius: 1.45em; padding: 1em .9em; }
.illus .champ { font-weight: 600; background: #fff; border-radius: .4em; padding: .25em .5em; }
.illus .pastille { position: absolute; display: flex; align-items: center; gap: .6em; background: rgb(var(--papier)); border-radius: 999px; padding: .55em 1em; font-weight: 600; box-shadow: var(--ombre-douce); white-space: nowrap; }
.illus .niveau { font-size: .8em; font-weight: 700; background: rgb(var(--sable)); border-radius: .35em; padding: 0 .35em; }
.illus .trajet { position: absolute; inset: 0; width: 100%; height: 100%; color: rgb(var(--bleu)); pointer-events: none; }
.illus .fourmis { stroke-dasharray: 6 7; animation: fourmis 1s linear infinite; }
@keyframes fourmis { to { stroke-dashoffset: -13; } }
.illus .jauge { display: block; width: 7em; height: .5em; border-radius: 999px; background: rgb(var(--sable)); overflow: hidden; }
.illus .jauge span { display: block; height: 100%; background: rgb(var(--bleu)); transform: scaleX(.75); transform-origin: left; }
.js .illus .jauge span { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .5s; }
.js .visible .illus .jauge span { transform: scaleX(.75); }
.puce { width: .55rem; height: .55rem; border-radius: 2px; background: rgb(var(--bleu)); flex-shrink: 0; margin-top: .55em; }

/* Démonstration en direct (src/vitrine/en-direct.js) : un fragment de l'application,
   dans ses vraies couleurs (bleu, vert victoire, rouge défaite). */
.ui-direct { font-family: 'Figtree', system-ui, sans-serif; color: #1f2937; }
.ecran-arbitre { background: #f8fafc; border-radius: 24px; overflow: hidden; }
.score-btn:active:not(:disabled) { filter: brightness(.92); }
.score-direct { display: inline-block; line-height: 1; font-variant-numeric: tabular-nums; }
.score-direct.bump { animation: bump .25s ease; }
@keyframes bump { 50% { transform: scale(1.18); } }
#direct-classement li { transition: background-color .6s; }
#direct-classement li.maj { background: #fef3c7; }
.liaison { position: relative; }
.liaison::before { content: ""; position: absolute; background: rgb(var(--bleu)); }
.liaison .signal { position: absolute; width: 14px; height: 14px; border-radius: 999px; background: rgb(var(--orange)); box-shadow: 0 0 0 5px rgb(var(--orange) / .25); opacity: 0; }
/* Téléphone : liaison verticale ; ordinateur : horizontale */
.liaison { height: 56px; }
.liaison::before { left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; }
.liaison .signal { left: 50%; top: 0; margin-left: -7px; }
.liaison.envoi .signal { animation: signalBas .55s cubic-bezier(.5,0,.2,1) forwards; }
@keyframes signalBas { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(42px); } }
@media (min-width: 768px) {
    .liaison { height: auto; width: 64px; align-self: center; height: 3px; }
    .liaison::before { left: 0; right: 0; top: 0; bottom: 0; width: auto; height: 3px; margin: 0; }
    .liaison .signal { left: 0; top: -5.5px; margin: 0; }
    .liaison.envoi .signal { animation-name: signalDroite; }
    @keyframes signalDroite { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 1; transform: translateX(50px); } }
}

/* Témoignages qui défilent (même rendu que l'accueil de l'application) */
.sans-barre { scrollbar-width: none; }
.sans-barre::-webkit-scrollbar { display: none; }
#temoignages { cursor: grab; user-select: none; }
#temoignages.active { cursor: grabbing; }

/* Questions : tuiles pleines, une seule ouverte à la fois */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; border-radius: 2px; background: currentColor; transition: transform .25s; }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }

#agrandissement::backdrop { background: rgb(var(--encre) / .82); }
/* Menu ☰ : glissement depuis la droite (ouverture) et vers la droite (fermeture) */
#menu-mobile { transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s; }
#menu-mobile.ouvert { transform: none; visibility: visible; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .apparition { opacity: 1; transform: none; transition: none; }
    .ep-hero-item { opacity: 1; animation: none; }
    .ep-flotte, .ep-flotte-lent, .ep-pulse, .defile-logos { animation: none; }
    .note .texte-note, .js .schema .trace, .js .illus .jauge span { transition: none; }
    .illus .fourmis { animation: none; }
    .liaison.envoi .signal { animation: none; }
    .notif-flash { animation: none; opacity: 1; transform: none; }
    .onglets-piste { animation: none; }
    .grand-ecran-piste { animation: none; }
    #menu-mobile { transition: none; }
}
