/* BilliardProZone.TV — page « Bientôt en ligne » */

@font-face {
    font-family: "Oswald";
    src: url("../fonts/oswald.woff2") format("woff2");
    font-weight: 200 700;
    font-display: swap;
}
@font-face {
    font-family: "Sora";
    src: url("../fonts/sora.woff2") format("woff2");
    font-weight: 100 800;
    font-display: swap;
}

:root {
    --nuit: #0b0e12;
    --ardoise: #14181d;
    --tapis: #1b2128;
    --ligne: rgba(236, 230, 218, .09);
    --ligne-forte: rgba(236, 230, 218, .18);
    --ivoire: #ece6da;
    --ivoire-doux: rgba(236, 230, 218, .66);
    --ivoire-pale: rgba(236, 230, 218, .42);
    --craie: #5b95e6;
    --craie-vive: #7fb0f5;
    --direct: #e5383b;
    --or: #e4b62b;
    --vert: #4fb37a;
    --rayon: 14px;
    --largeur: 1240px;
    --gouttiere: clamp(16px, 4vw, 40px);
    --titre: "Oswald", "Arial Narrow", Impact, sans-serif;
    --texte: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--nuit);
    color: var(--ivoire);
    font: 400 16px/1.6 var(--texte);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--craie); color: #fff; }

:focus-visible {
    outline: 2px solid var(--craie-vive);
    outline-offset: 3px;
    border-radius: 6px;
}

.saut {
    position: absolute; left: 16px; top: -60px; z-index: 50;
    padding: 10px 16px; border-radius: 8px;
    background: var(--ivoire); color: var(--nuit); font-weight: 600; text-decoration: none;
}
.saut:focus { top: 16px; }

.visuel-cache {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Fond ---------- */

.fond { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fond-lueur {
    position: absolute; inset: -20%;
    background:
        radial-gradient(42% 38% at 78% 30%, rgba(91, 149, 230, .22), transparent 70%),
        radial-gradient(30% 30% at 12% 8%, rgba(229, 56, 59, .10), transparent 70%),
        radial-gradient(50% 40% at 50% 110%, rgba(91, 149, 230, .10), transparent 70%);
    filter: blur(10px);
}
.fond-grille {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--ligne) 1px, transparent 1px),
        linear-gradient(90deg, var(--ligne) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(70% 60% at 60% 30%, #000 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 60% at 60% 30%, #000 10%, transparent 75%);
    opacity: .5;
}

/* ---------- En-tête ---------- */

.entete {
    width: 100%; max-width: var(--largeur); margin: 0 auto;
    padding: 26px var(--gouttiere) 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.marque-logo { height: 44px; width: auto; }
.marque-texte {
    font: 600 22px/1 var(--titre); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.marque-texte b { color: var(--craie); font-weight: 600; }
.marque-tv {
    font: 700 13px/1 var(--titre); letter-spacing: .12em;
    padding: 6px 8px 5px; border-radius: 6px;
    background: var(--direct); color: #fff;
}

.entete-droite { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.pastille {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px; border: 1px solid var(--ligne-forte); border-radius: 999px;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ivoire-doux);
}
.pastille .point { width: 7px; height: 7px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 3px rgba(228, 182, 43, .18); }

.langue {
    padding: 7px 14px; border-radius: 999px; text-decoration: none;
    font-size: 13px; font-weight: 600;
    background: rgba(236, 230, 218, .07); border: 1px solid var(--ligne-forte);
    transition: background .2s, border-color .2s;
}
.langue:hover { background: rgba(236, 230, 218, .14); border-color: var(--ivoire-pale); }

/* ---------- Héros ---------- */

main { flex: 1; width: 100%; }

.heros {
    max-width: var(--largeur); margin: 0 auto;
    padding: clamp(48px, 9vh, 110px) var(--gouttiere) clamp(56px, 9vh, 100px);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(40px, 6vw, 88px); align-items: center;
}

.surtitre {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
    font: 500 14px/1 var(--titre); letter-spacing: .28em; text-transform: uppercase; color: var(--craie-vive);
}
.direct-point { width: 9px; height: 9px; border-radius: 50%; background: var(--direct); animation: pulsation 1.8s ease-out infinite; }

@keyframes pulsation {
    0% { box-shadow: 0 0 0 0 rgba(229, 56, 59, .65); }
    70%, 100% { box-shadow: 0 0 0 10px rgba(229, 56, 59, 0); }
}

h1 {
    margin: 0;
    font: 600 clamp(52px, 6.4vw, 96px)/.94 var(--titre);
    letter-spacing: -.01em; text-transform: uppercase;
}
h1 .ligne { display: block; }
h1 .accent {
    background: linear-gradient(100deg, var(--ivoire) 0%, var(--craie-vive) 55%, var(--craie) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.intro { margin: 28px 0 0; max-width: 34em; font-size: clamp(16px, 1.25vw, 18px); color: var(--ivoire-doux); }

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

.bouton {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 50px; padding: 0 26px; border-radius: 12px; border: 1px solid transparent;
    font: 600 15px/1 var(--texte); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.bouton:active { transform: translateY(1px); }
.bouton-plein {
    background: var(--craie); color: #fff;
    box-shadow: 0 10px 30px -10px rgba(91, 149, 230, .8), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.bouton-plein:hover { background: var(--craie-vive); }
.bouton-trait { border-color: var(--ligne-forte); color: var(--ivoire); background: rgba(236, 230, 218, .03); }
.bouton-trait:hover { border-color: var(--ivoire-pale); background: rgba(236, 230, 218, .08); }

/* Compte à rebours */
.rebours { margin-top: 44px; }
.rebours-titre { margin: 0 0 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ivoire-pale); }
.rebours-cases { display: flex; gap: 10px; }
.rebours-case {
    min-width: 76px; padding: 12px 10px 10px; text-align: center;
    border: 1px solid var(--ligne); border-radius: 12px;
    background: linear-gradient(180deg, rgba(236, 230, 218, .05), rgba(236, 230, 218, .015));
}
.rebours-chiffre { display: block; font: 500 34px/1 var(--titre); font-variant-numeric: tabular-nums; }
.rebours-nom { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ivoire-pale); }
.rebours-fini { font: 500 22px/1.3 var(--titre); letter-spacing: .04em; color: var(--craie-vive); }

/* ---------- Écran de diffusion ---------- */

.ecran { margin: 0; }

.ecran-cadre {
    position: relative; aspect-ratio: 16 / 10; overflow: hidden;
    border-radius: 20px; border: 1px solid var(--ligne-forte);
    background:
        radial-gradient(80% 70% at 50% 40%, #1a2230, #0c1016 75%);
    box-shadow:
        0 50px 100px -40px rgba(0, 0, 0, .9),
        0 0 0 6px rgba(236, 230, 218, .025),
        0 30px 80px -30px rgba(91, 149, 230, .35);
}
.ecran-cadre::after { /* lignes de balayage, très légères */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px);
}

.ecran-haut {
    position: absolute; z-index: 2; top: 16px; left: 16px; right: 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.en-direct {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 10px 5px; border-radius: 6px;
    background: var(--direct); color: #fff;
    font: 600 12px/1 var(--titre); letter-spacing: .16em; text-transform: uppercase;
}
.en-direct .point { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: clignote 1.4s steps(2, start) infinite; }
@keyframes clignote { to { visibility: hidden; } }

.code-temps {
    padding: 5px 9px; border-radius: 6px;
    background: rgba(0, 0, 0, .45); border: 1px solid var(--ligne);
    font: 500 12px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--ivoire-doux);
    font-variant-numeric: tabular-nums;
}

.table {
    position: absolute; left: 50%; top: 41%; width: 76%;
    transform: translate(-50%, -50%) perspective(900px) rotateX(18deg);
    filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .55));
}
.visee { animation: visee 3.2s ease-in-out infinite; }
@keyframes visee { 0%, 100% { stroke-opacity: .15; } 50% { stroke-opacity: .6; } }

/* Barre de pointage, façon télé */
.pointage {
    position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 10px; overflow: hidden;
    background: rgba(11, 14, 18, .88);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid var(--ligne-forte);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8);
    font-family: var(--titre); text-transform: uppercase;
}
.pointage-jeu {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px;
    padding: 0 14px; background: var(--craie); color: #fff;
    font-size: 11px; letter-spacing: .12em;
}
.pointage-logo { font-size: 17px; font-weight: 700; letter-spacing: .06em; line-height: 1; }

.pointage-joueurs { display: grid; }
.joueur {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
    padding-left: 12px; font-size: 16px; letter-spacing: .04em; min-height: 38px;
}
.joueur + .joueur { border-top: 1px solid var(--ligne); }
.joueur-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.joueur-drapeau { width: 16px; height: 11px; border-radius: 2px; background: #1f4fa3; position: relative; overflow: hidden; }
.joueur-drapeau.qc::before, .joueur-drapeau.qc::after { content: ""; position: absolute; background: #fff; }
.joueur-drapeau.qc::before { left: 7px; top: 0; width: 2px; height: 11px; }
.joueur-drapeau.qc::after { top: 4.5px; left: 0; width: 16px; height: 2px; }
.joueur.au-bris .joueur-nom::after {
    content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: middle;
    border-radius: 50%; background: var(--or);
}
.joueur-score {
    min-width: 46px; height: 100%; display: grid; place-items: center; align-self: stretch;
    background: rgba(236, 230, 218, .07); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums;
    transition: background .5s, color .5s;
}
.joueur-score.vient-de-marquer { background: var(--or); color: var(--nuit); }

.pointage-info {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    padding: 0 14px; border-left: 1px solid var(--ligne);
    font-size: 11px; letter-spacing: .1em; color: var(--ivoire-doux); text-align: right; white-space: nowrap;
}
.pointage-info b { color: var(--ivoire); font-weight: 600; }

.ecran figcaption { margin-top: 14px; font-size: 13px; color: var(--ivoire-pale); text-align: center; }

/* ---------- Fonctions ---------- */

.fonctions { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere) clamp(64px, 10vh, 120px); }

.section-tete {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px;
    padding-top: 40px; border-top: 1px solid var(--ligne); margin-bottom: 32px;
}
h2 { margin: 0; font: 500 clamp(30px, 3.4vw, 44px)/1.05 var(--titre); text-transform: uppercase; letter-spacing: .01em; }
.section-tete p { margin: 0; max-width: 30em; color: var(--ivoire-doux); }

.cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.carte {
    position: relative; padding: 28px 24px 26px; border-radius: var(--rayon);
    border: 1px solid var(--ligne);
    background: linear-gradient(180deg, rgba(236, 230, 218, .045), rgba(236, 230, 218, .01));
    transition: border-color .25s, transform .25s, background .25s;
}
.carte:hover { border-color: var(--ligne-forte); transform: translateY(-3px); background: linear-gradient(180deg, rgba(91, 149, 230, .09), rgba(236, 230, 218, .01)); }
.carte-num { position: absolute; top: 22px; right: 22px; font: 500 13px/1 var(--titre); letter-spacing: .1em; color: var(--ivoire-pale); }
.icone {
    width: 44px; height: 44px; padding: 10px; border-radius: 12px; margin-bottom: 22px;
    background: rgba(91, 149, 230, .14); color: var(--craie-vive);
    fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.icone .plein { fill: currentColor; stroke: none; }
.carte h3 { margin: 0 0 10px; font: 500 21px/1.15 var(--titre); text-transform: uppercase; letter-spacing: .03em; }
.carte p { margin: 0; font-size: 14.5px; color: var(--ivoire-doux); }

/* ---------- Avis de lancement ---------- */

.avis { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere) clamp(64px, 10vh, 110px); scroll-margin-top: 24px; }

.avis-boite {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center;
    padding: clamp(28px, 4.5vw, 56px); border-radius: 22px;
    border: 1px solid var(--ligne-forte);
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(91, 149, 230, .2), transparent 60%),
        linear-gradient(180deg, var(--tapis), var(--ardoise));
}
.avis-texte p { margin: 14px 0 0; color: var(--ivoire-doux); }

.avis-champ {
    display: flex; gap: 8px; padding: 6px; border-radius: 16px;
    background: rgba(0, 0, 0, .35); border: 1px solid var(--ligne-forte);
    transition: border-color .2s, box-shadow .2s;
}
.avis-champ:focus-within { border-color: var(--craie); box-shadow: 0 0 0 4px rgba(91, 149, 230, .18); }
.avis-champ input {
    flex: 1; min-width: 0; min-height: 50px; padding: 0 14px;
    border: 0; background: transparent; color: var(--ivoire);
    font: 400 16px var(--texte); outline: none;
}
.avis-champ input::placeholder { color: var(--ivoire-pale); }
.avis-champ .bouton:disabled { opacity: .6; cursor: progress; }

.avis-message { min-height: 1.6em; margin: 12px 0 0; font-size: 14px; font-weight: 500; }
.avis-message.est-ok { color: var(--vert); }
.avis-message.est-erreur { color: #ff7a7c; }
.avis-legal { margin: 4px 0 0; font-size: 12.5px; color: var(--ivoire-pale); }

.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */

.pied {
    width: 100%; max-width: var(--largeur); margin: 0 auto;
    padding: 28px var(--gouttiere) max(28px, env(safe-area-inset-bottom));
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
    position: relative; font-size: 13.5px; color: var(--ivoire-doux);
}
.pied::before { content: ""; position: absolute; top: 0; left: var(--gouttiere); right: var(--gouttiere); border-top: 1px solid var(--ligne); }
.pied p { margin: 0; }
.pied strong { color: var(--ivoire); font-weight: 600; }
.pied-droits { margin-top: 4px !important; font-size: 12.5px; color: var(--ivoire-pale); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pied-liens a { text-decoration: none; color: var(--ivoire-doux); transition: color .2s; }
.pied-liens a:hover { color: var(--ivoire); }

/* ---------- Apparition (CSS seulement, sans attendre le JavaScript) ---------- */

@keyframes monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.heros-texte > *, .ecran { animation: monte .8s cubic-bezier(.2, .7, .2, 1) both; }
.heros-texte > :nth-child(2) { animation-delay: .08s; }
.heros-texte > :nth-child(3) { animation-delay: .16s; }
.heros-texte > :nth-child(4) { animation-delay: .24s; }
.heros-texte > :nth-child(5) { animation-delay: .32s; }
.ecran { animation-delay: .2s; }

/* ---------- Écrans plus petits ---------- */

@media (max-width: 1080px) {
    .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
    .heros { grid-template-columns: minmax(0, 1fr); }
    .ecran { max-width: 640px; }
    .avis-boite { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .entete { padding-top: 18px; }
    .pastille { display: none; }
    .marque-texte { font-size: 18px; }
    .marque-logo { height: 34px; }
    .cartes { grid-template-columns: minmax(0, 1fr); }
    .actions .bouton { flex: 1 1 100%; }
    .rebours-cases { gap: 6px; }
    .rebours-case { flex: 1; min-width: 0; padding: 10px 4px 8px; }
    .rebours-chiffre { font-size: 28px; }
    .rebours-nom { font-size: 10px; letter-spacing: .04em; }
    .ecran-cadre { aspect-ratio: 4 / 3.4; border-radius: 16px; }
    .ecran-haut { top: 12px; left: 12px; right: 12px; }
    .table { width: 94%; top: 40%; }
    .pointage { left: 10px; right: 10px; bottom: 10px; }
    .pointage-jeu { padding: 0 9px; font-size: 9px; }
    .pointage-logo { font-size: 14px; }
    .joueur { font-size: 14px; gap: 8px; padding-left: 9px; min-height: 32px; }
    .joueur-score { min-width: 36px; font-size: 17px; }
    .pointage-info { padding: 0 9px; font-size: 9.5px; }
    .avis-champ { flex-direction: column; }
    .avis-champ .bouton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
