.reveal .slides { height: 100% !important; width: 100% !important; inset: 0 !important; }

.metro-viewport {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.metro-scroller {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    transition: top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rail-bg {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
}

.avatar-container {
    position: absolute;
    z-index: 10;
    /* Centrage et scale ajustable (0.75 selon tes tests) */
    transform: translate(-50%, -50%) scale(calc(var(--rail-scale, 1) * .75));
    transform-origin: center center;

    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    pointer-events: none;

    left: var(--target-x);
    top: calc((var(--target-y) / var(--svg-master-height)) * 100%);
}

.avatar-img {
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(calc(var(--rail-scale, 1) * .75)); }
    50% { transform: translate(-50%, -50%) scale(calc(var(--rail-scale, 1) * 1.02 * .75)); }
    100% { transform: translate(-50%, -50%) scale(calc(var(--rail-scale, 1) * .75)); }
}
.anim-update { animation: pulse 0.4s ease-out; }

.fragment.logic-gate { display: none; }

/* Style pour les pages classiques uniquement */
.reveal section:not([data-transition="slide"]) {
    padding: 40px;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    height: 100% !important;
}

/* On s'assure que les titres ressortent bien */
h1, h2, h3 {
    margin-bottom: 20px !important;
    text-transform: none !important; /* Pour éviter le style par défaut tout en majuscules de Reveal */
}

.reveal a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
    text-decoration: underline;
}

/* Le survol passe en couleur secondaire pour le contraste */
.reveal a:hover {
    color: var(--secondary);
    text-decoration: none;
}

.metro-floating-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100; /* Priorité maximale pour rester au-dessus */

    /* Look transparent / dégradé */
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 70%,
        rgba(255, 255, 255, 0) 100%);

    /* Ajustements Reveal.js */
    margin: 0 !important;
    padding: 30px 20px 60px 20px !important;
    text-align: left;
    pointer-events: none; /* L'utilisateur peut "cliquer à travers" */
}