/* ===============================================
   ORACLE DU TEMPS - Styles principaux
   =============================================== */

:root {
    /* Palette Lumineuse et Rayonnante */
    --primary-color: #e8b4ff;
    --secondary-color: #b794f6;
    --accent-color: #ffd700;
    --light-bg: #ffffff;
    --lighter-bg: #fefcff;
    --cream-bg: #fffbf5;
    --light-text: #2d3748;
    --gray-text: #4a5568;
    --card-bg: rgba(255, 255, 255, 0.95);
    --gradient-1: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    --gradient-2: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    --gradient-3: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    --gradient-light: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 100%);
    --gradient-gold: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    --gradient-purple: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    --shadow-color: rgba(138, 43, 226, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(to bottom, #ffffff 0%, #fffbf5 50%, #fff5f7 100%);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* Masquer le contenu pendant l'intro */
body:not(.intro-finished) .header,
body:not(.intro-finished) #bg-canvas,
body:not(.intro-finished) section {
    opacity: 0;
    visibility: hidden;
}

/* Afficher le contenu après l'intro avec effet d'ouverture */
/* MAIS seulement si la réorganisation est terminée */
body.intro-finished:not(.reorganizing) .header,
body.intro-finished:not(.reorganizing) #bg-canvas,
body.intro-finished:not(.reorganizing) section {
    opacity: 1;
    visibility: visible;
    animation: openingSiteEffect 1s ease-out;
}

/* Cacher les sections pendant la réorganisation pour éviter le flash */
/* Cette règle a la priorité ABSOLUE même si intro-finished est présent */
body.reorganizing section:not(#accueil) {
    opacity: 0 !important;
    visibility: hidden !important;
    animation: none !important;
}

/* Afficher les sections après la réorganisation avec un fade-in doux */
body.reorganized section {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease;
}

@keyframes openingSiteEffect {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}





h1,
h2,
h3,
h4 {
    font-family: 'Cinzel', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ===============================================
   3D Background Canvas
   =============================================== */


/* ===============================================
   Header & Navigation
   =============================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(138, 43, 226, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.logo-symbol {
    font-size: 2rem;
    color: #ffd700;
    animation: rotate-symbol 4s ease-in-out infinite;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes rotate-symbol {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    background: transparent;
}

.nav-menu li {
    background: transparent;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    background: transparent;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.6);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: #ffd700;
    background: transparent;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 215, 0, 0.8);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* ===============================================
   Bouton de contrôle qualité
   =============================================== */
.quality-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.quality-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ===============================================
   Système de détection de performance
   =============================================== */

/* Variables CSS adaptatives */
:root {
    --animation-duration: 0.6s;
    --transition-duration: 0.3s;
}

.performance-low {
    --animation-duration: 0s;
    --transition-duration: 0.1s;
}

.performance-medium {
    --animation-duration: 0.3s;
    --transition-duration: 0.2s;
}

.performance-high {
    --animation-duration: 0.6s;
    --transition-duration: 0.3s;
}

/* Mode performance FAIBLE - simplifications majeures */
.performance-low .presentation-video-overlay {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
    filter: none !important;
}

.performance-low video {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}



.performance-low * {
    animation-duration: 0s !important;
    transition-duration: 0.1s !important;
}

.performance-low .hero-text h2,
.performance-low .hero-text p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* Mode performance MOYENNE - effets réduits */
.performance-medium .presentation-video-overlay {
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.5),
        0 15px 40px rgba(0, 0, 0, 0.4) !important;
}



.performance-medium * {
    animation-duration: var(--animation-duration) !important;
}

/* Mode performance HAUTE - tout activé (styles par défaut) */

/* ===============================================
   Hero Section avec Vidéo
   =============================================== */
.hero-section {
    min-height: 100vh;
    min-height: 100svh;
    /* Plus stable sur mobile (ignore la barre d'adresse) */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

/* Vidéo de fond pleine largeur */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay avec dégradé transparent sur le bas de la vidéo */
.video-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.85) 15%,
            rgba(0, 0, 0, 0.6) 35%,
            rgba(0, 0, 0, 0.3) 60%,
            transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Vidéo présentation centrée par-dessus */
.presentation-video-overlay {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    z-index: 10;
    width: 50%;
    max-width: 650px;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    background: transparent;
    border: none;
    /* Effet lumineux optimisé avec box-shadow (beaucoup plus performant que drop-shadow) */
    box-shadow:
        0 0 50px rgba(255, 255, 255, 0.8),
        0 0 100px rgba(255, 215, 0, 0.5),
        0 0 150px rgba(102, 126, 234, 0.4),
        0 25px 70px rgba(0, 0, 0, 0.5);
}

/* Animation du conteneur - apparition progressive */
.presentation-video-overlay.visible {
    visibility: visible;
    animation: containerFadeIn 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Animation d'apparition du conteneur - Optimisée pour la performance */
@keyframes containerFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.presentation-video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: transparent;
    background-color: transparent;
    border-radius: 20px;
    /* MASQUE DE TRANSPARENCE SIMPLIFIÉ - Performance optimisée */
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at center,
            black 40%,
            rgba(0, 0, 0, 0.7) 60%,
            rgba(0, 0, 0, 0.3) 80%,
            transparent 95%);
    mask-image: radial-gradient(ellipse 100% 100% at center,
            black 40%,
            rgba(0, 0, 0, 0.7) 60%,
            rgba(0, 0, 0, 0.3) 80%,
            transparent 95%);
}

.presentation-video-overlay video:hover {
    transform: scale(1.02);
}

/* Animation de la vidéo - Optimisée sans filtres lourds */
.presentation-video-overlay.visible video {
    animation: videoFadeIn 2s ease-out 0.5s forwards;
    /* Délai de 0.5s pour laisser la vidéo charger */
}

@keyframes videoFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Conteneur des boutons de contrôle vidéo */
.video-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    gap: 1rem;
    flex-direction: row;
}

/* Boutons de contrôle individuels */
.video-control-btn {
    min-width: 60px;
    height: 60px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(224, 195, 252, 0.5);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.2rem;
    white-space: nowrap;
}

/* Texte dans les boutons */
.video-control-btn .btn-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Bouton son garde sa forme circulaire */
.video-control-btn#playButton {
    width: 60px;
    min-width: 60px;
    padding: 0;
    border-radius: 50%;
}

.video-control-btn:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.4);
}

.video-control-btn i {
    transition: all 0.3s ease;
}

.video-control-btn:hover i {
    transform: scale(1.2);
}

/* Animation du bouton quand les animations sont actives */
.video-control-btn:not(.paused) .fa-sync-alt {
    animation: rotate-icon 3s linear infinite;
}

@keyframes rotate-icon {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Bouton de pause en mode actif (animations bloquées) */
.video-control-btn.paused {
    background: rgba(255, 100, 100, 0.9);
    color: white;
    border-color: rgba(255, 100, 100, 0.5);
}

.video-control-btn.paused:hover {
    background: rgba(255, 100, 100, 1);
}

/* Stop l'animation de rotation quand bloqué */
.video-control-btn.paused .fa-sync-alt {
    animation: none;
}

/* Bouton play/pause sur la vidéo de présentation */
.presentation-play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(224, 195, 252, 0.6);
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

/* Afficher le bouton au survol de la vidéo */
.presentation-video-overlay:hover .presentation-play-pause-btn {
    opacity: 1;
    pointer-events: auto;
}

.presentation-play-pause-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 48px rgba(138, 43, 226, 0.5);
}

.presentation-play-pause-btn i {
    transition: all 0.2s ease;
}

.presentation-play-pause-btn:hover i {
    transform: scale(1.1);
}

/* Animation du bouton */
@keyframes pulse-button {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
    }

    50% {
        box-shadow: 0 12px 48px rgba(138, 43, 226, 0.5);
    }
}


/* Anciens styles pour compatibilité */
.video-sound-toggle {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(224, 195, 252, 0.5);
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-sound-toggle:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.4);
}

.video-sound-toggle i {
    transition: all 0.3s ease;
}

.video-sound-toggle:hover i {
    transform: scale(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 251, 245, 0.7) 70%);
    z-index: 1;
    display: none;
    /* Désactivé car on utilise maintenant video-overlay-gradient */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.2;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4);
}

.hero-text p {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 15px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #ffd89b 0%, #ff9a76 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow:
        0 10px 30px rgba(255, 154, 118, 0.6),
        0 5px 20px rgba(0, 0, 0, 0.5);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 40px rgba(255, 154, 118, 0.8),
        0 8px 25px rgba(0, 0, 0, 0.6);
}

/* Video Container */
.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.3);
    aspect-ratio: 16/9;
    transform: none !important;
    /* Empêche le parallax */
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero video pleine largeur avec intro.mp4 - OBSOLÈTE (maintenant géré par .hero-video-background) */
/* Ces styles sont conservés pour compatibilité mais ne sont plus utilisés */

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd89b 0%, #ff9a76 100%);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 154, 118, 0.5);
}

.play-button:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(255, 154, 118, 0.7);
}

.play-button:active {
    transform: scale(0.95);
}



/* Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }

    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }

    from {
        opacity: 0;
    }
}

/* ===============================================
   Section Headers
   =============================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-symbol {
    font-size: 2.5rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 1rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 20px var(--accent-color);
    }

    50% {
        opacity: 0.7;
        text-shadow: 0 0 40px var(--accent-color);
    }
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.divider {
    width: 100px;
    height: 3px;
    background: transparent;
    margin: 1.5rem auto;
    display: none;
    /* Effet de trait retiré */
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
}

/* ===============================================
   About Section
   =============================================== */
.about-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #fffbf5 0%, #fff5f7 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #fffbf5 0%, #fff5f7 100%);
    padding: 20px;
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    /* Le fond sera supprimé par JavaScript */
}

.image-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 122, 184, 0.3) 0%, transparent 70%);
    animation: rotate-glow 8s linear infinite;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.certifications {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border: 2px solid rgba(224, 195, 252, 0.5);
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.1);
}

.certifications h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.certifications ul {
    list-style: none;
}

.certifications li {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.certifications i {
    color: var(--accent-color);
}

.admin-link {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.admin-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.admin-link i {
    font-size: 0.85rem;
}

/* Reset Intro Link - Style similaire au lien Admin */
.reset-intro-link {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.reset-intro-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.reset-intro-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.reset-intro-link:hover i {
    transform: rotate(-180deg);
}

.cert-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===============================================
   Services Section
   =============================================== */
.services-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #fffbf5 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(224, 195, 252, 0.5);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-purple);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.2);
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.featured {
    border: 2px solid var(--accent-color);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--dark-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.card-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.card-icon-image {
    background: transparent;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.card-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card>p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    color: var(--gray-text);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.service-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 122, 184, 0.2);
}

/* Styles pour le prix barré */
.service-price .original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 0.3rem;
    display: block;
}

.service-price .current-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    display: block;
}

/* Styles pour les fonctionnalités de réservation */
.booking-features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.feature-item span {
    color: var(--text-color);
    font-weight: 500;
}

/* ===============================================
   Booking Section
   =============================================== */
.booking-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #fff5f7 0%, #ffffff 100%);
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.booking-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.step-content p {
    color: var(--gray-text);
    line-height: 1.6;
}

.booking-note {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
}

.booking-note i {
    color: var(--accent-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.booking-note p {
    color: var(--gray-text);
    line-height: 1.6;
}

/* Booking Form */
.booking-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(224, 195, 252, 0.5);
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.15);
}

/* Nouveau CTA de réservation */
.booking-cta {
    text-align: center;
    padding: 2rem;
}

.cta-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.booking-cta h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: var(--gradient-2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(162, 155, 254, 0.4);
    margin-top: 20px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(162, 155, 254, 0.6);
}

.cta-button i {
    font-size: 1.3rem;
}

.booking-form h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-text);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 122, 184, 0.2);
    border-radius: 10px;
    color: var(--light-text);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(139, 122, 184, 0.2);
}

.price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.total-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
}

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 122, 184, 0.3);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 122, 184, 0.5);
}

.payment-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: var(--gray-text);
    font-size: 2rem;
}

.secure-badge {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===============================================
   Contact Section
   =============================================== */
.contact-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #fffbf5 0%, #fff5f7 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(224, 195, 252, 0.5);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.contact-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-card p,
.contact-card a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--accent-color);
}

.social-links {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(139, 122, 184, 0.2);
    text-align: center;
}

.social-links h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(139, 122, 184, 0.5);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 122, 184, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

/* ===============================================
   Footer
   =============================================== */
.footer {
    background: linear-gradient(180deg, #f8f5ff 0%, #e0c3fc 100%);
    padding: 4rem 2rem 2rem;
    border-top: 2px solid rgba(224, 195, 252, 0.5);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--gray-text);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

/* Navigation footer sur 2 colonnes */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
}

.admin-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.admin-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 122, 184, 0.2);
    border-radius: 25px;
    color: var(--light-text);
    font-family: 'Cormorant Garamond', serif;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 122, 184, 0.1);
    color: var(--gray-text);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.version-number {
    display: inline-block;
    font-size: 0.75rem;
    opacity: 0.4;
    color: var(--gray-text);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.version-number:hover {
    opacity: 0.7;
}

/* ===============================================
   Scroll to Top Button
   =============================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 122, 184, 0.3);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 122, 184, 0.5);
}

/* ===============================================
   Theme Toggle Button (dans la navbar)
   =============================================== */
.theme-toggle {
    width: 38px;
    height: 38px;
    background: var(--gradient-purple);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    margin-right: 0.8rem;
}

.theme-toggle:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

.theme-toggle i {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.theme-toggle:hover i {
    transform: rotate(20deg);
}

/* Mode sombre - icône soleil */
.dark-theme .theme-toggle {
    background: linear-gradient(135deg, #ffd89b 0%, #ff9a76 100%);
}

/* ===============================================
   Responsive Design
   =============================================== */

/* ===============================================
   FORCE MOBILE: Désactivation des particules
   Cette règle CSS garantit que les particules sont masquées
   sur les appareils mobiles INDÉPENDAMMENT du JavaScript
   =============================================== */
@media (max-width: 1024px),
(hover: none) and (pointer: coarse),
(max-device-width: 1024px) {

    /* Masquer TOUTES les particules et animations 3D sur mobile */
    .particles,
    #bg-canvas,
    #about-particles-canvas,
    .section-particles {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Forcer aussi via pointer-events pour être sûr */
    .particles *,
    #bg-canvas *,
    .section-particles * {
        display: none !important;
    }
}

@media (max-width: 968px) {
    .logo h1 {
        font-size: 1.3rem;
        /* Slightly smaller for better fit */
    }

    /* Boutons de contrôle responsive */
    .video-controls {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.7rem;
    }

    .video-control-btn {
        min-width: 50px;
        height: 50px;
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .video-control-btn .btn-text {
        font-size: 0.85rem;
        display: none;
        /* Hide text on tablets/mobile to save space */
    }

    .video-control-btn#playButton {
        width: 50px;
        min-width: 50px;
    }

    /* Bouton son responsive (compatibilité) */
    .video-sound-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    /* Vidéo présentation responsive */
    .presentation-video-overlay {
        width: 85%;
        max-width: 600px;
        top: 120px;
    }

    .hero-content {
        max-width: 95%;
        padding: 1rem;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-section,
    .services-section,
    .booking-section,
    .contact-section {
        padding: 4rem 1.5rem;
        /* Reduced padding */
    }

    .booking-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
        /* Better grid adaptation */
    }

    .nav-menu {
        position: fixed !important;
        left: -100% !important;
        top: 70px !important;
        flex-direction: column !important;
        background: #0a0a1e !important;
        /* Fond solide au lieu de rgba */
        backdrop-filter: blur(20px) !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        text-align: center !important;
        transition: left 0.3s ease !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9) !important;
        padding: 2rem 0 !important;
        gap: 1rem !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 99999 !important;
        border-top: 2px solid rgba(139, 122, 184, 0.5) !important;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        color: #ffffff !important;
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        background: transparent;
    }

    /* Bouton thème en mode mobile */
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-left: auto;
        /* Push to right */
        margin-right: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 600px) {

    /* Navbar ultra-compact pour éviter le chevauchement */
    .navbar {
        padding: 0.6rem 0.4rem;
        gap: 0.2rem;
    }

    .logo h1 {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .logo-symbol {
        font-size: 1.4rem;
    }

    /* Bouton thème optimisé pour tactile */
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        margin-left: 0.15rem;
        margin-right: 0.15rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Bouton qualité optimisé pour tactile */
    .quality-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        margin-right: 0.15rem;
    }

    /* Hamburger menu - zone tactile optimisée */
    .hamburger {
        padding: 10px;
        /* Augmente la zone cliquable */
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hamburger .bar {
        width: 25px;
        height: 3px;
        margin: 3px 0;
    }

    /* Boutons de contrôle vidéo - MINIMUM 48x48px pour meilleure usabilité */
    .video-controls {
        bottom: 1rem;
        right: 1rem;
        gap: 0.75rem;
        /* Espacement amélioré entre boutons */
        flex-direction: row;
    }

    .video-control-btn {
        min-width: 48px;
        height: 48px;
        font-size: 1.1rem;
        padding: 0;
        justify-content: center;
        /* Shadow plus prononcé pour meilleure visibilité sur mobile */
        box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
    }

    .video-control-btn .btn-text {
        display: none;
    }

    .video-control-btn#playButton {
        width: 48px;
        min-width: 48px;
    }

    /* Bouton play/pause sur la vidéo de présentation */
    .presentation-play-pause-btn {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        /* Plus visible sur mobile */
    }

    /* Vidéo présentation mobile */
    .presentation-video-overlay {
        width: 95%;
        max-width: 100%;
        border-radius: 15px;
        top: 100px;
    }

    /* Textes hero adaptés */
    .hero-text h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    /* CTA Button optimisé pour mobile */
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        /* Assure un minimum de 48px de hauteur */
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        /* Margin pour éviter les clics accidentels */
        margin: 1.5rem 0;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    /* Sections - padding optimisé */
    .about-section,
    .services-section,
    .booking-section,
    .contact-section {
        padding: 3rem 1rem;
    }

    /* Formulaires - champs optimisés pour mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        /* Hauteur minimale pour faciliter la saisie tactile */
        min-height: 48px;
        font-size: 16px;
        /* Évite le zoom automatique sur iOS */
        padding: 12px 15px;
    }

    .form-group textarea {
        min-height: 120px;
        /* Plus d'espace pour la zone de texte */
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    /* Boutons de formulaire optimisés */
    .submit-button,
    .booking-btn {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 1rem;
        /* Espacement pour éviter les clics accidentels */
        margin-top: 1rem;
        width: 100%;
        /* Boutons pleine largeur sur mobile */
    }

    /* Conteneurs de formulaire */
    .booking-form-container,
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    /* Service cards - espacement amélioré */
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        /* Évite que les cards soient trop proches */
    }

    /* Footer optimisé */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-nav-grid {
        grid-template-columns: 1fr;
    }

    /* Liens footer - zone tactile améliorée */
    .footer-nav-grid a,
    .footer-section a {
        padding: 10px 0;
        display: block;
        /* Augmente la zone cliquable */
    }

    /* Footer bottom - stack sur mobile si nécessaire */
    .footer-bottom-links {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .version-number {
        font-size: 0.7rem;
    }

    /* Bouton scroll to top - optimisé pour tactile */
    .scroll-top {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        right: 1rem;
        bottom: 1rem;
        /* Shadow plus visible sur mobile */
        box-shadow: 0 4px 16px rgba(138, 43, 226, 0.4);
    }

    /* Navigation mobile - liens plus grands */
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
        /* Zone tactile confortable */
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Language selector mobile */
    .language-selector button,
    .language-selector a {
        min-width: 44px;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    /* Amélioration de l'espacement général pour éviter les clics accidentels */
    .booking-cta,
    .contact-card,
    .about-text {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Images - s'assurer qu'elles ne débordent pas */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Conteneur principal */
    .container {
        padding: 0 1rem;
    }
}

/* Téléphones très étroits (iPhone SE, petits Android - 375px et moins) */
@media (max-width: 375px) {

    /* Navbar encore plus compacte */
    .navbar {
        padding: 0.75rem 0.4rem;
        gap: 0.2rem;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo-symbol {
        font-size: 1.2rem;
    }

    /* Boutons header ultra-compacts mais toujours tactiles */
    .theme-toggle,
    .quality-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        margin-right: 0.15rem;
        margin-left: 0.15rem;
    }

    .hamburger {
        min-width: 40px;
        min-height: 40px;
    }

    /* Language selector plus petit */
    .language-selector {
        gap: 0.2rem;
    }

    .language-selector button,
    .language-selector a {
        min-width: 40px;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    /* Video controls adaptés */
    .video-control-btn {
        min-width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .video-control-btn#playButton {
        width: 44px;
        min-width: 44px;
    }

    /* Vidéo présentation */
    .presentation-video-overlay {
        width: 98%;
        top: 90px;
    }

    /* Hero texte compact */
    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* CTA plus compact mais toujours tactile */
    .cta-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    /* Sections avec padding réduit */
    .about-section,
    .services-section,
    .booking-section,
    .contact-section {
        padding: 2.5rem 0.75rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    /* Container ultra-compact */
    .container {
        padding: 0 0.75rem;
    }

    /* Formulaires toujours utilisables */
    .form-group input,
    .form-group textarea {
        min-height: 44px;
        padding: 10px 12px;
    }

    .submit-button,
    .booking-btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Téléphones ultra-étroits (320px et moins - anciens smartphones) */
@media (max-width: 320px) {

    /* Navbar très compacte */
    .navbar {
        padding: 0.65rem 0.3rem;
        gap: 0.15rem;
    }

    .logo h1 {
        font-size: 0.9rem;
    }

    /* Tous les boutons header au minimum absolu tactile */
    .theme-toggle,
    .quality-toggle,
    .hamburger {
        min-width: 34px;
        min-height: 34px;
    }

    .theme-toggle,
    .quality-toggle {
        margin-left: 0.1rem;
        margin-right: 0.1rem;
        font-size: 0.8rem;
    }

    .language-selector button,
    .language-selector a {
        min-width: 38px;
        min-height: 38px;
        padding: 8px;
        font-size: 0.7rem;
    }

    /* Video controls au minimum */
    .video-controls {
        bottom: 0.5rem;
        right: 0.5rem;
        gap: 0.4rem;
    }

    .video-control-btn {
        min-width: 42px;
        height: 42px;
    }

    /* Hero très compact */
    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    /* Sections ultra-compactes */
    .about-section,
    .services-section,
    .booking-section,
    .contact-section {
        padding: 2rem 0.5rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    /* Boutons toujours cliquables */
    .cta-button,
    .submit-button,
    .booking-btn {
        min-height: 42px;
        font-size: 0.9rem;
    }

    /* Scroll to top */
    .scroll-top {
        width: 44px;
        height: 44px;
        right: 0.5rem;
        bottom: 0.5rem;
    }
}

/* Orientation paysage sur mobile (hauteur limitée) */
@media (max-height: 500px) and (orientation: landscape) {

    /* Header plus compact en paysage */
    .navbar {
        padding: 0.75rem 1rem;
    }

    .logo h1 {
        font-size: 1rem;
    }

    /* Vidéo présentation ajustée */
    .presentation-video-overlay {
        top: 60px;
        width: 70%;
    }

    /* Hero texte réduit */
    .hero-text h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* Sections avec moins de padding vertical */
    .about-section,
    .services-section,
    .booking-section,
    .contact-section {
        padding: 2rem 1rem;
    }
}