/* ==========================================================================
   Accueil refonte — socle commun aux trois pistes
   Tout est confiné sous .lcx pour ne pas toucher au reste du site.
   ========================================================================== */

.lcx {
    --lcx-ink: #1C2530;
    --lcx-gold: #F5BF64;
    --lcx-radius-s: 10px;
    --lcx-radius-m: 18px;
    --lcx-radius-l: 28px;
    --lcx-ease-out: cubic-bezier(.16, 1, .3, 1);
    --lcx-ease-in: cubic-bezier(.7, 0, .84, 0);
    --lcx-dur-s: 180ms;
    --lcx-dur-m: 320ms;
    --lcx-dur-reveal: 720ms;
    --lcx-container: 1200px;
    --lcx-gutter: clamp(20px, 5vw, 48px);
    --lcx-section: clamp(72px, 11vw, 140px);

    position: relative;
    overflow-x: clip;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

.lcx img { max-width: 100%; height: auto; display: block; }
.lcx h1, .lcx h2, .lcx h3, .lcx h4, .lcx p, .lcx ul, .lcx ol, .lcx figure, .lcx dl, .lcx dd { margin: 0; }
.lcx ul, .lcx ol { padding: 0; list-style: none; }
.lcx a { color: inherit; }
.lcx button { font: inherit; color: inherit; }

.lcx-container {
    width: 100%;
    max-width: calc(var(--lcx-container) + 2 * var(--lcx-gutter));
    margin-inline: auto;
    padding-inline: var(--lcx-gutter);
}

.lcx-section { padding-block: var(--lcx-section); }

.lcx-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.lcx [hidden] { display: none !important; }

.lcx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.lcx-ico {
    width: 1.25em; height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lcx-tabular { font-variant-numeric: tabular-nums; }

/* --- Focus : toujours visible au clavier -------------------------------- */
.lcx a:focus-visible,
.lcx button:focus-visible,
.lcx summary:focus-visible,
.lcx select:focus-visible,
.lcx [tabindex]:focus-visible {
    outline: 3px solid var(--lcx-focus, var(--lcx-gold));
    outline-offset: 3px;
    border-radius: 6px;
}

/* --- Boutons ------------------------------------------------------------ */
.lcx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    min-height: 48px;
    padding: .8rem 1.4rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    touch-action: manipulation;
    transition:
        transform var(--lcx-dur-s) var(--lcx-ease-out),
        background-color var(--lcx-dur-m) var(--lcx-ease-out),
        color var(--lcx-dur-m) var(--lcx-ease-out),
        border-color var(--lcx-dur-m) var(--lcx-ease-out),
        box-shadow var(--lcx-dur-m) var(--lcx-ease-out);
}
.lcx-btn .lcx-ico { transition: transform var(--lcx-dur-m) var(--lcx-ease-out); }
.lcx-btn:hover .lcx-ico { transform: translateX(3px); }
.lcx-btn:active { transform: scale(.97); }

/* --- Apparition au défilement ------------------------------------------ */
.lcx-js .lcx [data-lcx-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity var(--lcx-dur-reveal) var(--lcx-ease-out),
        transform var(--lcx-dur-reveal) var(--lcx-ease-out);
    transition-delay: var(--lcx-delay, 0ms);
}
.lcx-js .lcx [data-lcx-reveal="fade"] { transform: none; }
.lcx-js .lcx [data-lcx-reveal="scale"] { transform: scale(.96); }
.lcx-js .lcx [data-lcx-reveal="left"] { transform: translate3d(-32px, 0, 0); }
.lcx-js .lcx [data-lcx-reveal="right"] { transform: translate3d(32px, 0, 0); }
.lcx-js .lcx [data-lcx-reveal].is-in { opacity: 1; transform: none; }

/* --- Rotation de mots ---------------------------------------------------- */
.lcx-rotate {
    display: inline-grid;
    vertical-align: bottom;
    overflow: hidden;
}
.lcx-rotate > span {
    grid-area: 1 / 1;
    transition:
        transform 560ms var(--lcx-ease-out),
        opacity 560ms var(--lcx-ease-out);
}
.lcx-js .lcx-rotate > span { transform: translateY(105%); opacity: 0; }
.lcx-js .lcx-rotate > span.is-current { transform: none; opacity: 1; }
.lcx-js .lcx-rotate > span.is-leaving { transform: translateY(-105%); opacity: 0; }

/* --- Vidéo légère -------------------------------------------------------- */
.lcx-yt {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: var(--lcx-radius-m);
    overflow: hidden;
    background: #0B0F14;
    cursor: pointer;
}
.lcx-yt img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--lcx-ease-out), opacity var(--lcx-dur-m);
    opacity: .9;
}
.lcx-yt:hover img { transform: scale(1.04); opacity: 1; }
.lcx-yt__play {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: var(--lcx-gold);
    color: var(--lcx-ink);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    transition: transform var(--lcx-dur-m) var(--lcx-ease-out);
}
.lcx-yt__play .lcx-ico { fill: currentColor; stroke: none; width: 26px; height: 26px; margin-left: 3px; }
.lcx-yt:hover .lcx-yt__play { transform: scale(1.08); }
.lcx-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Sélecteur de pistes (revue) ---------------------------------------- */
.lcx-switch {
    position: fixed;
    z-index: 1040;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(16, 22, 30, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
    font: 500 13px/1 "Inter", system-ui, sans-serif;
}
.lcx-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    color: #D9DEE4;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--lcx-dur-s, 180ms), color var(--lcx-dur-s, 180ms);
}
.lcx-switch a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lcx-switch a.is-active { background: #F5BF64; color: #1C2530; }
.lcx-switch__all { color: #9AA4AF !important; }
.lcx-switch__num {
    display: grid; place-items: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    font-size: 11px;
}
.lcx-switch a.is-active .lcx-switch__num { background: rgba(28, 37, 48, .15); }
.lcx-switch a:focus-visible { outline: 3px solid #F5BF64; outline-offset: 2px; }
@media (max-width: 480px) {
    .lcx-switch__name { display: none; }
}

/* --- Mouvement réduit : tout apparaît, rien ne bouge --------------------- */
@media (prefers-reduced-motion: reduce) {
    .lcx *,
    .lcx *::before,
    .lcx *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
    .lcx-js .lcx [data-lcx-reveal] { opacity: 1; transform: none; }
}
