/* --------------------------------------------------------------------------
   DECLARATION DES POLICES
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Electrical';
    src: url('files/electrical.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Google Fonts - Rajdhani (style tech, accents) + Outfit (corps moderne) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500&family=Rajdhani:wght@500;600;700&display=swap');

/* --------------------------------------------------------------------------
   PALETTE DE COULEURS ET VARIABLES (THÉORIE DES COULEURS - TRIADIQUE)
   -------------------------------------------------------------------------- */
:root {
    /* Palette principale - Rouge sang profond */
    --blood-red: #690C28;
    --blood-bright: #D10038;
    
    /* Palette secondaire - Violet mystique */
    --mistress-violet: #5D0B98;
    --mistress-violet-light: #7E2CB5;
    
    /* Palette accent - Cyan/Rose pour glitch */
    --glitch-cyan: #00D9FF;
    --glitch-pink: #FF68FF;
    
    /* Backgrounds et neutrals */
    --terminal-bg: rgba(12, 8, 18, 0.75);
    --text-main: #FCFCFB;
    --text-dim: #A5A0A4; /* ✅ POINT 1: Amélioré de #8B8589 pour meilleur contraste WCAG */
    --user-chat: #1A0B1F;
    --mistress-chat: #300A13;
}

/* --------------------------------------------------------------------------
   RESET ET FOND COMMUN
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ✅ POINT 16: Focus visible pour accessibilité clavier */
*:focus-visible {
    outline: 3px solid var(--glitch-cyan);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(0, 217, 255, 0.2);
}

/* Focus spécial pour les boutons */
button:focus-visible,
a.experience-btn:focus-visible,
a.premier-pas-btn:focus-visible {
    outline: 3px solid var(--glitch-pink);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(255, 104, 255, 0.25);
}

/* ✅ POINT 16: Skip link pour navigation clavier */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blood-bright);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;
    border-radius: 4px;
    font-family: 'Electrical', sans-serif;
}

.skip-link:focus {
    top: 10px;
}

body {
    font-family: 'Outfit', sans-serif; 
    background-color: #0a0510;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Conteneur parallax - étendu pour couvrir tout le scroll */
.parallax-bg {
    position: fixed;
    top: -20%;
    left: -5%;
    width: 110%;
    height: 200%;
    background-image: url('files/fond16.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
    will-change: transform;
}

/* Overlay scanlines */
.parallax-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg, 
        transparent, 
        transparent 1px, 
        rgba(255, 0, 0, 0.03) 1.5px, 
        rgba(0, 0, 0, 0.3) 2px
    );
    background-size: 100% 4px;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHIE GENERALE
   -------------------------------------------------------------------------- */
/* h1 = Electrical (SANS ACCENTS) */
h1 {
    font-family: 'Electrical', sans-serif;
    color: var(--blood-bright);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(255, 22, 84, 0.6);
    font-weight: normal;
    font-size: clamp(1.8em, 5vw, 3.5em);
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--blood-red);
    box-shadow: 0 2px 15px rgba(185, 22, 70, 0.3);
    padding-bottom: 10px;
    display: block;
}

/* h2, h3 = Rajdhani avec effet glitch subtil (supporte accents) */
h2, h3 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--blood-bright);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    position: relative;
    text-shadow: 
        0 0 10px rgba(255, 22, 84, 0.5),
        1px 0 0 rgba(0, 217, 255, 0.4),
        -1px 0 0 rgba(255, 104, 255, 0.4);
    animation: subtitleGlitch 4s ease-in-out infinite;
}

h2 {
    font-size: clamp(1.5em, 4vw, 2.5em);
    margin-bottom: 20px;
}

h3 {
    font-size: clamp(1.2em, 3vw, 1.8em);
    margin-bottom: 15px;
}

/* Animation glitch subtile pour sous-titres */
@keyframes subtitleGlitch {
    0%, 90%, 100% { 
        text-shadow: 
            0 0 10px rgba(255, 22, 84, 0.5),
            1px 0 0 rgba(0, 217, 255, 0.4),
            -1px 0 0 rgba(255, 104, 255, 0.4);
        transform: translateX(0);
    }
    92% { 
        text-shadow: 
            0 0 10px rgba(255, 22, 84, 0.8),
            -2px 0 0 rgba(0, 217, 255, 0.8),
            2px 0 0 rgba(255, 104, 255, 0.8);
        transform: translateX(-2px);
    }
    94% { 
        text-shadow: 
            0 0 10px rgba(255, 22, 84, 0.8),
            2px 0 0 rgba(0, 217, 255, 0.8),
            -2px 0 0 rgba(255, 104, 255, 0.8);
        transform: translateX(2px);
    }
    96% { 
        text-shadow: 
            0 0 10px rgba(255, 22, 84, 0.5),
            1px 0 0 rgba(0, 217, 255, 0.4),
            -1px 0 0 rgba(255, 104, 255, 0.4);
        transform: translateX(0);
    }
}

/* Corps de texte - Outfit moderne */
p {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.75;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 0.3px;
}

a {
    color: var(--glitch-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 6px rgba(0, 217, 255, 0.4);
}

a:hover {
    color: var(--glitch-pink);
    text-shadow: 0 0 18px rgba(255, 0, 110, 0.8);
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION - Style Netflix moderne
   -------------------------------------------------------------------------- */
header {
    background-color: #000000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

nav {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.bar {
    display: flex;
    align-items: stretch;
    height: 70px;
    position: relative;
    padding: 0;
    padding-right: 25px;
    gap: 0;
}

/* Logo à gauche, pleine hauteur */
.logo {
    display: flex;
    align-items: center;
    background-color: transparent;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    height: 100%;
}

.logo::after {
    display: none;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.logo img:hover {
    opacity: 0.85;
}

.menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 5px;
    flex: 1;
}

.menu li {
    display: flex;
    position: relative;
}

/* Enlever les séparateurs */
.menu li::after {
    display: none;
}

.menu li a {
    font-family: 'Electrical', sans-serif;
    color: var(--text-main);
    font-size: clamp(0.8em, 1.4vw, 1em);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    position: relative;
    border-radius: 4px;
}

/* Glitch seulement au HOVER */
.menu li a:hover {
    background-color: rgba(185, 22, 70, 0.2);
    color: var(--glitch-pink);
    animation: navGlitchPinkBlue 0.3s ease both;
}

/* Page active - style subtil sans animation constante */
.menu li a.active-nav {
    background-color: rgba(185, 22, 70, 0.25);
    color: var(--blood-bright);
    box-shadow: inset 0 -2px 0 var(--blood-bright);
}

/* ✅ POINT 10: Animations optimisées avec transform uniquement */
@keyframes navGlitchPinkBlue {
    0% { 
        text-shadow: 2px 0 0 var(--glitch-cyan), -2px 0 0 var(--glitch-pink);
        transform: translate3d(0, 0, 0);
    }
    20% { 
        text-shadow: -2px 0 0 var(--glitch-cyan), 2px 0 0 var(--glitch-pink);
        transform: translate3d(-1px, 1px, 0);
    }
    40% { 
        text-shadow: 2px 1px 0 var(--glitch-pink), -2px -1px 0 var(--glitch-cyan);
        transform: translate3d(1px, -1px, 0);
    }
    60% { 
        text-shadow: -1px -1px 0 var(--glitch-cyan), 1px 1px 0 var(--glitch-pink);
        transform: translate3d(-1px, -1px, 0);
    }
    80% { 
        text-shadow: 1px -1px 0 var(--glitch-pink), -1px 1px 0 var(--glitch-cyan);
        transform: translate3d(1px, 1px, 0);
    }
    100% { 
        text-shadow: 2px 0 0 var(--glitch-cyan), -2px 0 0 var(--glitch-pink);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes navGlitchRedViolet {
    0% { 
        text-shadow: 2px 0 0 var(--mistress-violet-light), -2px 0 0 var(--blood-bright);
        transform: translate3d(0, 0, 0);
    }
    20% { 
        text-shadow: -2px 0 0 var(--blood-bright), 2px 0 0 var(--mistress-violet-light);
        transform: translate3d(-1px, 1px, 0);
    }
    40% { 
        text-shadow: 2px 1px 0 var(--blood-bright), -2px -1px 0 var(--mistress-violet-light);
        transform: translate3d(1px, -1px, 0);
    }
    60% { 
        text-shadow: -1px -1px 0 var(--mistress-violet-light), 1px 1px 0 var(--blood-bright);
        transform: translate3d(-1px, -1px, 0);
    }
    80% { 
        text-shadow: 1px -1px 0 var(--blood-bright), -1px 1px 0 var(--mistress-violet-light);
        transform: translate3d(1px, 1px, 0);
    }
    100% { 
        text-shadow: 2px 0 0 var(--mistress-violet-light), -2px 0 0 var(--blood-bright);
        transform: translate3d(0, 0, 0);
    }
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--blood-bright);
    font-size: 1.8em;
    cursor: pointer;
    display: none;
    padding: 0 15px;
    height: 60px;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1001;
}

/* --------------------------------------------------------------------------
   MAIN CONTENT & CONTENEURS ÉPURÉS FLOTTANTS
   -------------------------------------------------------------------------- */
main {
    flex-grow: 1;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.3);
    width: 100%;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.text-content, .confessional-faq, .slideshow-container {
    background: linear-gradient(135deg, rgba(18, 12, 24, 0.88), rgba(30, 15, 35, 0.82));
    backdrop-filter: blur(12px);
    padding: clamp(20px, 4vw, 40px);
    border: none;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(185, 22, 70, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.06);
    margin-bottom: 30px;
    width: 100%;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.text-content::before, 
.confessional-faq::before, 
.slideshow-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(185, 22, 70, 0.25);
    border-radius: 3px;
    pointer-events: none;
    box-shadow: inset 0 0 30px rgba(185, 22, 70, 0.08);
    filter: blur(0.5px);
}

.text-content::after, 
.confessional-faq::after {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 22, 84, 0.5),
        rgba(255, 0, 110, 0.7),
        rgba(255, 22, 84, 0.5),
        transparent
    );
    box-shadow: 0 0 20px rgba(255, 22, 84, 0.4);
    filter: blur(2px);
}

/* --------------------------------------------------------------------------
   GRILLE D'EXPÉRIENCES
   -------------------------------------------------------------------------- */
.experiences-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

@media (max-width: 700px) {
    .experiences-grid {
        grid-template-columns: 1fr;
    }
}

.experience-content {
    display: none;
}

.experience-content.active {
    display: block;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 20px;
    background-color: rgba(185, 22, 70, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 22, 84, 0.4);
    box-shadow: 0 0 12px rgba(255, 22, 84, 0.15);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: clamp(0.9em, 2vw, 1em);
    border-radius: 4px;
}

.back-btn:hover {
    background-color: rgba(185, 22, 70, 0.5);
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 22, 84, 0.4);
    transform: translateX(-3px);
}

/* --------------------------------------------------------------------------
   BOUTONS EXPÉRIENCES - Police Rajdhani, alignement uniforme
   -------------------------------------------------------------------------- */
.experience-btn, .premier-pas-btn {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    padding: 20px 25px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(185, 22, 70, 0.3), rgba(106, 13, 173, 0.25));
    color: var(--text-main);
    border: 1px solid rgba(255, 0, 110, 0.35);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 22, 84, 0.1);
    font-size: clamp(1em, 2.5vw, 1.2em);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100%;
    border-radius: 4px;
    will-change: transform;
    transform: translateZ(0);
}

/* Icônes dans les boutons */
.experience-btn i {
    font-size: 1.2em;
    flex-shrink: 0;
}

.experience-btn:hover, .premier-pas-btn:hover {
    background: linear-gradient(135deg, rgba(185, 22, 70, 0.5), rgba(106, 13, 173, 0.45));
    color: #fff;
    border-color: var(--glitch-pink);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(255, 0, 110, 0.35);
    transform: translateY(-2px);
    text-shadow: 
        0 0 10px rgba(255, 0, 110, 0.6),
        2px 0 0 rgba(0, 217, 255, 0.3),
        -2px 0 0 rgba(255, 104, 255, 0.3);
}

.premier-pas-btn i {
    margin-left: 10px;
    transition: transform 0.3s;
}
.premier-pas-btn:hover i {
    transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   ELEMENTS SPÉCIFIQUES (Chat, Slideshow)
   -------------------------------------------------------------------------- */
.chat-display {
    background-color: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(106, 13, 173, 0.4);
    box-shadow: 
        inset 0 0 25px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(106, 13, 173, 0.2);
    font-family: 'Courier New', monospace;
    padding: 15px;
    height: clamp(200px, 40vh, 300px);
    overflow-y: auto;
    margin-top: 20px;
    width: 100%;
}

.chat-message {
    padding: 10px;
    margin-bottom: 10px;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.5;
    animation: fadeIn 0.5s;
    border-radius: 2px;
}

.chat-message.mistress {
    background-color: rgba(31, 10, 15, 0.7);
    border-left: 2px solid var(--blood-bright);
    box-shadow: 0 0 12px rgba(255, 22, 84, 0.15);
    color: #ffcccc;
}

.chat-message.user {
    background-color: rgba(26, 11, 31, 0.7);
    border-right: 2px solid var(--glitch-cyan);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.15);
    color: #e0d0ff;
    text-align: right;
}

.sender {
    font-weight: bold;
    margin-right: 5px;
}

.dialogue-choice {
    font-family: 'Courier New', monospace;
    background: rgba(20, 18, 25, 0.85);
    border: 1px solid rgba(106, 13, 173, 0.45);
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: bold;
    padding: 10px;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: block;
    text-align: left;
    font-size: clamp(0.85rem, 2vw, 1rem);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.dialogue-choice:hover {
    background: rgba(106, 13, 173, 0.45);
    border-color: var(--glitch-cyan);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.35);
}

/* FAQ */
.faq-list details {
    margin: 10px 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.45);
    border-left: 2px solid rgba(106, 13, 173, 0.7);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.faq-list summary {
    cursor: pointer;
    font-weight: bold;
    color: var(--blood-bright);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.faq-list p {
    margin-top: 10px;
    padding-left: 10px;
}

/* --------------------------------------------------------------------------
   SLIDESHOW (RESPONSIVE ET ÉPURÉ)
   -------------------------------------------------------------------------- */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: 0 auto 30px;
    overflow: hidden;
    padding: 0;
}

.slideshow-container::after {
    display: none;
}

.slideshow-inner {
    width: 100%;
    text-align: center;
}

.mySlides {
    display: none;
    width: 100%;
}

.mySlides img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    object-fit: contain;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: clamp(10px, 2vw, 20px) clamp(8px, 1.5vw, 15px);
    margin-top: -35px;
    color: var(--glitch-pink);
    font-weight: bold;
    font-size: clamp(1.5em, 4vw, 2.5em);
    transition: 0.6s ease;
    user-select: none;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(20, 10, 30, 0.5));
    border: 1px solid rgba(255, 0, 110, 0.35);
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(255, 0, 110, 0.15);
    opacity: 0.7;
    z-index: 10;
}

.next { right: 0; }
.prev { left: 0; }

.prev:hover, .next:hover {
    opacity: 1;
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.7), rgba(185, 22, 70, 0.6));
    box-shadow: 
        0 0 30px rgba(255, 0, 110, 0.5),
        0 0 50px rgba(255, 0, 110, 0.25);
}

.dots-container {
    text-align: center;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.8);
}

.dot {
    cursor: pointer;
    /* ✅ POINT 4: Augmentation de la taille minimale pour mobile (44x44px recommandé) */
    height: clamp(16px, 2vw, 14px);
    width: clamp(16px, 2vw, 14px);
    margin: 0 5px;
    background-color: rgba(60, 55, 65, 0.7);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease, box-shadow 0.6s ease;
    border: 1px solid rgba(139, 133, 137, 0.5);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.active-dot, .dot:hover {
    background-color: var(--glitch-pink);
    box-shadow: 0 0 16px var(--glitch-pink), 0 0 30px rgba(255, 0, 110, 0.3);
    border-color: var(--glitch-pink);
}

/* --------------------------------------------------------------------------
   PAGE TRANSITION LOADER
   -------------------------------------------------------------------------- */
#page-transition-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(5, 0, 10, 0.95), rgba(0, 0, 0, 0.98));
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255, 0, 0, 0.03) 1.5px, rgba(0, 0, 0, 0.5) 2px),
        radial-gradient(circle, rgba(5, 0, 10, 0.95), rgba(0, 0, 0, 0.98));
    background-size: 100% 4px, 100% 100%;
}

#page-transition-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    animation: loaderGlitch 0.3s infinite;
    /* ✅ POINT 10: Optimisation GPU */
    will-change: transform;
    transform: translateZ(0);
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: spinRing 1s linear infinite;
    /* ✅ POINT 10: Optimisation GPU pour chaque anneau */
    will-change: transform;
    transform: translateZ(0);
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--blood-bright);
    border-right-color: var(--blood-bright);
    animation-duration: 0.4s;
    box-shadow: 0 0 20px rgba(209, 0, 56, 0.6);
}

.spinner-ring:nth-child(2) {
    border-bottom-color: var(--mistress-violet-light);
    border-left-color: var(--mistress-violet-light);
    animation-duration: 0.5s;
    animation-direction: reverse;
    box-shadow: 0 0 20px rgba(126, 44, 181, 0.6);
}

.spinner-ring:nth-child(3) {
    border-top-color: var(--glitch-cyan);
    border-bottom-color: var(--glitch-pink);
    animation-duration: 0.6s;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4), 0 0 20px rgba(255, 104, 255, 0.4);
}

@keyframes spinRing {
    0% { transform: rotate(0deg) translateZ(0); }
    100% { transform: rotate(360deg) translateZ(0); }
}

@keyframes loaderGlitch {
    0%, 85% { transform: translate3d(0, 0, 0); filter: none; }
    87% { transform: translate3d(-3px, 2px, 0); filter: hue-rotate(90deg); }
    89% { transform: translate3d(3px, -2px, 0); filter: hue-rotate(-90deg); }
    91% { transform: translate3d(-2px, -2px, 0); filter: hue-rotate(180deg); }
    93% { transform: translate3d(2px, 2px, 0); filter: hue-rotate(0deg); }
    95%, 100% { transform: translate3d(0, 0, 0); filter: none; }
}

/* ✅ POINT 11: Notification d'erreur utilisateur */
.error-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(185, 22, 70, 0.95), rgba(106, 13, 173, 0.9));
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 22, 84, 0.4);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    z-index: 10001;
    animation: slideInUp 0.3s ease-out;
    border: 1px solid var(--blood-bright);
    max-width: 350px;
}

.error-toast.success {
    background: linear-gradient(135deg, rgba(0, 180, 100, 0.95), rgba(0, 130, 70, 0.9));
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 971px) {
    .bar {
        height: 65px;
        padding: 0 15px;
    }
    
    .logo {
        margin-right: 0;
    }
    
    .logo img {
        height: 100%;
    }
    
    .menu {
        flex-direction: column;
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background-color: #000000;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        gap: 0;
    }

    .menu.show-menu {
        max-height: 400px;
        opacity: 1;
    }

    .menu li {
        width: 100%;
        border-bottom: 1px solid rgba(185, 22, 70, 0.25);
    }

    .menu li:last-child {
        border-bottom: none;
    }

    .menu li a {
        width: 100%;
        padding: 18px 25px;
        font-size: 1.1em;
        justify-content: flex-start;
        border-radius: 0;
    }

    .menu-toggle {
        display: flex;
    }
    
    .text-content, .confessional-faq, .slideshow-container {
        padding: 15px;
    }
    
    .mySlides img {
        max-height: 50vh;
    }
    
    /* Désactiver parallax sur mobile */
    .parallax-bg {
        transform: none !important;
        height: 100%;
    }
}

@media (max-width: 600px) {
    .bar {
        height: 55px;
    }
    
    .logo img {
        height: 100%;
    }
    
    .menu {
        top: 55px;
    }
    
    .menu li a {
        padding: 15px 20px;
        font-size: 1em;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .prev, .next {
        padding: 8px 6px;
        font-size: 1.5em;
    }
}
/* Fin du fichier */

/* ========== MODE SANS EFFETS VISUELS ========== */
body.no-effects * {
    animation: none !important;
    transition: none !important;
}

body.no-effects .parallax-bg {
    transform: none !important;
}

body.no-effects h2,
body.no-effects h3 {
    text-shadow: none !important;
}

body.no-effects .menu li a:hover,
body.no-effects .menu li a.active-nav {
    animation: none !important;
    text-shadow: none !important;
}

body.no-effects .experience-btn:hover,
body.no-effects .premier-pas-btn:hover {
    text-shadow: none !important;
    transform: none !important;
}

body.no-effects .text-content::before,
body.no-effects .text-content::after,
body.no-effects .confessional-faq::before,
body.no-effects .confessional-faq::after {
    display: none !important;
}

body.no-effects #page-transition-loader {
    display: none !important;
}
