/* Reset et variables CSS */
:root {
    --primary-color: #2c5f50;
    --secondary-color: #34495e;
    --accent-color: #1a252f;
    --zen-blue: #3498db;
    --zen-green: #27ae60;
    --warm-gray: #95a5a6;
    --soft-white: #ecf0f1;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #bdc3c7;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a252f;
    --gradient-primary: linear-gradient(135deg, #2c5f50 0%, #27ae60 100%);
    --gradient-secondary: linear-gradient(135deg, #34495e 0%, #3498db 100%);
    --gradient-zen: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    --gradient-dark: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    --shadow-soft: 0 10px 30px rgba(44, 95, 80, 0.1);
    --shadow-medium: 0 15px 40px rgba(44, 95, 80, 0.15);
    --shadow-strong: 0 20px 60px rgba(44, 95, 80, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', sans-serif;
    --font-japanese: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-primary);
}

/* Particules d'arrière-plan */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #ecf0f1 0%, #f8f9fa 100%);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-family: var(--font-japanese);
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 300;
    animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    z-index: 1000;
    transition: var(--transition);
    padding: 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-kanji {
    font-family: var(--font-japanese);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    line-height: 1;
}

.logo-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 1rem;
}

/* Menu mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Section Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 2rem 2rem;
    overflow: hidden;
}

/* Vidéo d'arrière-plan */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Optimisations de performance */
    contain: layout style paint;
    will-change: transform;
    /* Optimisations Chrome */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    filter: brightness(0.4) contrast(1.1) saturate(0.9);
    display: block;
    /* Optimisations pour la performance */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: auto;
    /* Optimisations spécifiques Chrome */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000px;
    /* Force l'accélération matérielle sur Chrome */
    transform: translate3d(0, 0, 0);
    /* Optimisation du rendu vidéo */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(
            135deg, 
            rgba(255, 255, 255, 0.85) 0%, 
            rgba(236, 240, 241, 0.75) 50%,
            rgba(44, 95, 80, 0.25) 100%
        ),
        radial-gradient(
            ellipse at center left,
            rgba(255, 255, 255, 0.6) 0%,
            transparent 70%
        );
    z-index: 2;
}

/* Fallback si la vidéo ne peut pas être chargée */
.video-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #ecf0f1 100%);
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title .title-main {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 
                 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero-title .title-sub {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    font-family: var(--font-japanese);
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8), 
                 0 0 8px rgba(255, 255, 255, 0.4);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 2rem 0;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9), 
                 0 0 6px rgba(255, 255, 255, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 
                0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong), 
                0 0 0 1px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Visual hero */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

.circle-bg {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 50%;
    position: absolute;
    opacity: 0.1;
    animation: rotateCircle 20s linear infinite;
}

.floating-elements {
    position: relative;
    z-index: 2;
}

.element {
    position: absolute;
    font-family: var(--font-japanese);
    font-size: 4rem;
    font-weight: 300;
    color: var(--primary-color);
    animation: floatElement 6s ease-in-out infinite;
}

.element-1 {
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.element-2 {
    top: 50px;
    right: -50px;
    animation-delay: 2s;
}

.element-3 {
    bottom: -50px;
    left: 20px;
    animation-delay: 4s;
}

@keyframes rotateCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Indicateur de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-color);
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid var(--primary-color);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Conteneur général */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* En-têtes de section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section Aïkido */
.aikido-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--soft-white) 0%, var(--bg-secondary) 100%);
}

.aikido-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.principle-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.principle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.principle-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.principle-card:hover::before {
    transform: scaleX(1);
}

.principle-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.principle-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.principle-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.aikido-philosophy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-text h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.philosophy-text blockquote {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
}

.philosophy-text blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    opacity: 0.3;
}

.philosophy-text cite {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-weight: 600;
    font-style: normal;
}

.philosophy-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.philosophy-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.yin-yang-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.yin-yang {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color) 50%, var(--zen-blue) 50%);
    border-radius: 50%;
    position: relative;
    animation: yinYangRotate 15s linear infinite;
}

.yin-yang::before,
.yin-yang::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    border-radius: 50%;
}

.yin-yang::before {
    top: 0;
    left: 50%;
    background: var(--zen-blue);
}

.yin-yang::after {
    bottom: 0;
    left: 0;
    background: var(--accent-color);
}

@keyframes yinYangRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section Club */
.club-section {
    padding: 6rem 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow-medium);
}

.info-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-zen);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.sensei-section h3 {
    font-size: 2rem;
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.sensei-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.sensei-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: var(--transition);
}

.sensei-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.sensei-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.placeholder-photo {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.sensei-info h4 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.sensei-rank {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sensei-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Cours */
.cours-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--soft-white) 100%);
}

.planning-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 3rem;
}

.planning-header h3 {
    font-size: 2rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
}

.planning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.day-column h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.cours-slot {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.cours-slot:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.cours-slot .time {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cours-slot .level {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.tarifs-container h3 {
    font-size: 2rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tarif-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    border: 3px solid transparent;
}

.tarif-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.tarif-card.featured::before {
    content: 'Populaire';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tarif-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.tarif-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.tarif-card h4 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.price {
    margin-bottom: 2rem;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price .period {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.tarif-features {
    list-style: none;
    text-align: left;
}

.tarif-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-secondary);
    position: relative;
    padding-left: 2rem;
}

.tarif-features li:last-child {
    border-bottom: none;
}

.tarif-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Section Galerie */
.galerie-section {
    padding: 6rem 0;
    background: white;
}

/* Filtres de galerie */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

/* Grille de galerie - Style moderne équilibré */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.gallery-media {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.gallery-media img,
.gallery-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-media img,
.gallery-item:hover .gallery-media video {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-btn,
.gallery-play-btn {
    background: white;
    color: var(--primary-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transform: scale(0) rotate(-180deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .gallery-zoom-btn,
.gallery-item:hover .gallery-play-btn {
    transform: scale(1) rotate(0deg);
}

.gallery-zoom-btn:hover,
.gallery-play-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(0deg);
}

.gallery-info {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gallery-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* États de la galerie */
.gallery-loading,
.gallery-empty,
.gallery-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.gallery-loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.gallery-empty i,
.gallery-error i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #999;
}

.gallery-empty h3,
.gallery-error h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.gallery-empty p,
.gallery-error p {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-media {
    max-width: 100%;
    max-height: calc(90vh - 150px);
    margin-bottom: 2rem;
}

.lightbox-media img,
.lightbox-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-info {
    text-align: center;
    color: white;
    max-width: 600px;
}

.lightbox-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.lightbox-category {
    margin: 0 0 1rem 0;
    color: #ccc;
    font-size: 1rem;
}

.lightbox-description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour galerie */
@media (max-width: 768px) {
    .gallery-filters {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.2rem;
    }
    
    .gallery-media {
        height: 300px;
    }
    
    .gallery-zoom-btn,
    .gallery-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-media {
        max-height: calc(95vh - 100px);
    }
    
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Placeholder pour ancienne compatibilité */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    gap: 1rem;
}

.gallery-placeholder i {
    font-size: 3rem;
    opacity: 0.7;
}

/* Section Contact */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--soft-white) 0%, var(--bg-secondary) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--secondary-color);
}

.contact-action-container {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.contact-action-card h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Bouton Email Principal */
.email-action {
    margin-bottom: 3rem;
}

.btn-email-contact {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.btn-email-contact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    color: white;
}

.btn-content {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 2;
}

.btn-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: var(--transition);
}

.btn-email-contact:hover .btn-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.btn-text {
    flex: 1;
    text-align: left;
}

.btn-title {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.btn-subtitle {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-arrow {
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-email-contact:hover .btn-arrow {
    transform: translateX(5px);
}

/* Effet ripple */
.btn-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.btn-email-contact:active .btn-ripple {
    transform: scale(1);
}

/* Autres moyens de contact */
.contact-alternatives {
    margin-top: 2.5rem;
}

.contact-alternatives h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.contact-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--gradient-zen);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.contact-quick-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    background: var(--gradient-secondary);
    color: white;
}

.contact-quick-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.contact-quick-btn:hover i {
    transform: scale(1.2);
}

.contact-quick-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo .logo-kanji {
    font-family: var(--font-japanese);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-logo .logo-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    position: relative;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Bouton d'accès administration */
.admin-access-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(44, 95, 80, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(44, 95, 80, 0.3);
}

.admin-access-btn:hover {
    opacity: 1;
    background: var(--primary-color);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 20px rgba(44, 95, 80, 0.4);
}

.admin-access-btn:active {
    transform: translateY(0) scale(1.05);
}

/* Animation de rotation pour l'icône */
.admin-access-btn:hover i {
    animation: rotateGear 2s linear infinite;
}

@keyframes rotateGear {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Masquer le bouton sur très petits écrans pour éviter les clics accidentels */
@media (max-width: 480px) {
    .admin-access-btn {
        display: none;
    }
}

/* Bouton retour en haut */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

/* Animations AOS */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .aikido-philosophy {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Optimisation vidéo pour mobile */
    .hero-video {
        display: none;
    }
    
    .hero-video-overlay {
        background: linear-gradient(135deg, #ffffff 0%, #ecf0f1 100%);
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-strong);
        transition: var(--transition);
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        top: 100%;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--bg-secondary);
    }
    
    .nav-link {
        width: 100%;
        padding: 1.5rem 2rem;
        border-radius: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title .title-main {
        font-size: 2.5rem;
    }
    
    .hero-title .title-sub {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .circle-bg {
        width: 250px;
        height: 250px;
    }
    
    .element {
        font-size: 2.5rem;
    }
    
    .planning-grid {
        grid-template-columns: 1fr;
    }
    
    .tarifs-grid {
        grid-template-columns: 1fr;
    }
    
    .tarif-card.featured {
        transform: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 80px 1rem 1rem;
    }
    
    .hero-title .title-main {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .principle-card,
    .info-card,
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-action-container {
        padding: 1.5rem;
    }
    
    .alternatives-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .btn-content {
        padding: 1.25rem 1.5rem;
    }
    
    .btn-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-right: 1rem;
    }
    
    .sensei-card {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-media {
        height: 280px;
    }
    
    .gallery-overlay {
        opacity: 0.95;
    }
    
    .gallery-info {
        transform: translateY(0);
    }
}

/* Animations personnalisées */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Effets de survol avancés */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

/* Gradients animés */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Styles pour les éléments interactifs */
.interactive {
    cursor: pointer;
    transition: var(--transition);
}

.interactive:hover {
    transform: scale(1.02);
}

.interactive:active {
    transform: scale(0.98);
}

/* Effets de brillance */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.shine-effect:hover::before {
    animation: shine 0.5s ease-in-out;
}

/* Optimisations Chrome légères et sûres */
.hero-video {
    /* Assurer un rendu consistant */
    image-rendering: auto;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Alternative statique animée pour Chrome */
@keyframes chromeGradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 50% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}

@keyframes chromeParticleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-15px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(5px);
        opacity: 0.7;
    }
}

@keyframes chromeZenFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    33% {
        transform: translateY(-15px) rotate(5deg);
        opacity: 0.2;
    }
    66% {
        transform: translateY(-5px) rotate(-3deg);
        opacity: 0.15;
    }
}

/* Optimisations pour Chrome uniquement - sans propriétés problématiques */
@supports (-webkit-text-stroke: 1px) {
    .hero-video {
        /* Optimisation légère du rendu Chrome */
        -webkit-font-smoothing: antialiased;
    }
    
    .chrome-static-bg {
        /* Accélération GPU pour l'alternative Chrome */
        will-change: background-position;
        transform: translateZ(0);
    }
    
    .chrome-particle, .chrome-zen-element {
        /* Optimisation animations Chrome */
        will-change: transform, opacity;
        transform: translateZ(0);
    }
}

/* === POPUP INFORMATION IMPORTANTE === */
.important-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.important-popup.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.important-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.important-popup-content {
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s ease;
    border: 3px solid var(--primary-color);
}

.important-popup.hidden .important-popup-content {
    transform: scale(0.9);
}

.important-popup-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.important-popup-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.important-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.important-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.important-popup-body {
    padding: 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.important-popup-media {
    text-align: center;
    margin-bottom: 1.5rem;
}

.important-popup-media img,
.important-popup-media video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.important-popup-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: center;
}

.important-popup-footer {
    background: #f8f9fa;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid #e9ecef;
}

.btn-popup-dismiss {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(44, 95, 80, 0.3);
}

.btn-popup-dismiss:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 95, 80, 0.4);
}

.important-popup-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.important-popup-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Animation d'entrée */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.important-popup:not(.hidden) .important-popup-content {
    animation: popupSlideIn 0.4s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .important-popup-content {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .important-popup-header {
        padding: 1rem;
    }
    
    .important-popup-header h3 {
        font-size: 1.2rem;
    }
    
    .important-popup-body {
        padding: 1.5rem;
    }
    
    .important-popup-footer {
        padding: 1rem;
    }
    
    .btn-popup-dismiss {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .important-popup-media img,
    .important-popup-media video {
        max-height: 200px;
    }
}

/* === LIGHTBOX POUR AGRANDIR LES IMAGES === */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15000; /* Au-dessus de la popup d'information importante */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.95);
}

.image-lightbox.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.image-lightbox.hidden .lightbox-container {
    transform: scale(0.9);
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 15001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-image:hover {
    transform: scale(1.02);
}

.lightbox-info {
    margin-top: 1.5rem;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.lightbox-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.lightbox-hint {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Animation d'entrée pour la lightbox */
@keyframes lightboxSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-lightbox:not(.hidden) .lightbox-container {
    animation: lightboxSlideIn 0.4s ease-out;
}

/* Curseur pour indiquer que les images sont cliquables */
.important-popup-media img {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.important-popup-media img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Indicateur visuel pour les images cliquables */
.important-popup-media {
    position: relative;
    display: inline-block;
}

.important-popup-media::before {
    content: '\f00e'; /* Icône loupe Font Awesome */
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(44, 95, 80, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.important-popup-media:hover::before {
    opacity: 1;
}

/* Badge "cliquer pour agrandir" */
.important-popup-media::after {
    content: 'Cliquer pour agrandir';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 95, 80, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.important-popup-media:hover::after {
    opacity: 1;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: -50px;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-image {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .lightbox-info {
        margin-top: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .lightbox-info h4 {
        font-size: 1rem;
    }
    
    .lightbox-hint {
        font-size: 0.8rem;
    }
    
    .important-popup-media::after {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}