/* ============================================
   VARIABLES & RESET
============================================ */
:root {
    --rouge: #c41e3a;
    --rouge-clair: #e63946;
    --gris: #6c757d;
    --gris-clair: #adb5bd;
    --bleu-marine: #1a2744;
    --bleu-marine-clair: #2d3e5f;
    --fond-sombre: #0d1117;
    --fond-carte: #161b22;
    --blanc: #f8f9fa;
    --or: #d4af37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--fond-sombre);
    color: var(--blanc);
    overflow-x: hidden;
    cursor: default;
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cinzel', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   PARTICULES MAGIQUES (CARTES)
============================================ */
.particules-magiques {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.carte-flottante {
    position: absolute;
    font-size: 24px;
    opacity: 0.1;
    animation: flotter 15s infinite linear;
}

@keyframes flotter {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.15;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   NAVBAR - Design Premium avec Cadre Élégant
============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.8rem 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg,
            rgba(10, 15, 30, 0.98) 0%,
            rgba(15, 22, 40, 0.95) 50%,
            rgba(20, 30, 55, 0.92) 100%);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0%;
    right: 0%;
    height: 2px;
    background: rgba(212, 175, 55, 0.6);
}

.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(ellipse at 50% -50%, rgba(100, 140, 200, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1001;
}

.logo-icon {
    width: 150px;
    height: 150px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    transform: translateY(87px);
    margin-top: -90px;
    overflow: hidden;
    border: solid 3px #746737;
}

.logo-icon:hover {
    box-shadow: 0 6px 25px rgba(196, 30, 58, 0.4),
        0 0 40px rgba(212, 175, 55, 0.2);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-text {
    position: absolute;
    left: 207px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--blanc) 0%, var(--or) 50%, var(--blanc) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logo-shimmer 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

@keyframes logo-shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Navigation Links Container - Cadre Élégant */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    position: relative;
    z-index: 2;
    padding: 0;
    margin: 0;
}

/* Conteneur des liens principaux avec cadre */
.nav-links li:not(:last-child) {
    position: relative;
}

.nav-links li:first-child a:not(.btn-membres) {
    padding-left: 1.8rem;
}

.nav-links li:nth-last-child(2) a:not(.btn-membres) {
    padding-right: 1.8rem;
}

/* Cadre autour des liens principaux */
.nav-links::before {
    content: '';
    position: absolute;
    left: 0;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    border: 1px solid rgba(100, 130, 180, 0.25);
    border-radius: 30px;
    background: linear-gradient(180deg,
            rgba(30, 50, 90, 0.4) 0%,
            rgba(20, 35, 65, 0.6) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.nav-links a:not(.btn-membres) {
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Cinzel', serif;
}

.nav-links a:not(.btn-membres)::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--or), transparent);
    transition: transform 0.3s ease;
}

.nav-links a:not(.btn-membres)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.nav-links a:not(.btn-membres):hover,
.nav-links a:not(.btn-membres).active {
    color: var(--or);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.nav-links a:not(.btn-membres):hover::before,
.nav-links a:not(.btn-membres).active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-links a:not(.btn-membres):hover::after,
.nav-links a:not(.btn-membres).active::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Bouton Accès Membres - Style Capsule Premium */
.btn-membres {
    position: relative;
    background: linear-gradient(135deg,
            #8B0000 0%,
            #c41e3a 30%,
            #a01830 70%,
            #6B0000 100%);
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--gris-clair) !important;
    border: 2px solid;
    border-image: linear-gradient(135deg,
            rgba(212, 175, 55, 0.8),
            rgba(255, 215, 100, 0.6),
            rgba(212, 175, 55, 0.8)) 1;
    border-radius: 30px;
    border: 2px solid var(--gris-clair);
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.4),
        0 0 30px rgba(196, 30, 58, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 10px rgba(0, 0, 0, 0.3);
    margin-left: 1.5rem;
    overflow: hidden;
    display: block;
}

.btn-membres::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.6s ease;
}

.btn-membres:hover::before {
    left: 100%;
}

.btn-membres::after {
    display: none !important;
}

.btn-membres:hover {
    box-shadow: 0 8px 30px rgba(139, 0, 0, 0.5),
        0 0 50px rgba(196, 30, 58, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: var(--gris-clair);
    color: var(--gris-clair) !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Menu hamburger mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(20, 35, 60, 0.5);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(30, 50, 80, 0.6);
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--or), var(--blanc));
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--rouge);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--rouge);
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        url('/images/hero-spotlights.webp') center top / 100% auto no-repeat,
        linear-gradient(180deg, #0a0a15 0%, var(--fond-sombre) 100%);
}

/* Fondu en bas de la section hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, transparent 0%, var(--fond-sombre) 100%);
    pointer-events: none;
    z-index: 1;
}



/* Hero Container - Layout deux colonnes */
.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    padding: 2rem 8%;
    max-width: 1800px;
    width: 100%;
}

.hero-image {
    flex: 0 0 auto;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(100px);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(100, 150, 255, 0.4) 0%, rgba(100, 150, 255, 0.2) 40%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.hero-image img {
    width: 450px;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    transform: translateY(100px);
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 750px;
}

.hero-text .hero-logo {
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.hero-text .hero-logo img {
    width: 120px;
    height: 120px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--blanc) 0%, var(--or) 50%, var(--blanc) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% 100%;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--gris-clair);
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--rouge) 0%, var(--bleu-marine) 100%);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
    border: none;
    cursor: pointer;
    color: var(--blanc);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.6);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #84d2ec;
    /* Bleu clair vif */
    font-weight: 600;
}

.scroll-indicator .arrow {
    font-size: 1.5rem;
    color: #84d2ec;
    /* Bleu clair vif */
}

/* Scroll arrows (pages internes) - hover global */
[class*="scroll-arrow"]:hover span {
    color: var(--rouge) !important;
    transition: all 0.3s ease;
}

[class*="scroll-arrow"]:hover svg {
    stroke: var(--rouge) !important;
    transform: scale(1.15);
    transition: all 0.3s ease;
}

/* ============================================
   PAGE HEADER (pour pages internes)
============================================ */
.page-header {
    position: relative;
    padding: 10rem 5% 5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bleu-marine) 0%, var(--fond-sombre) 100%);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(196, 30, 58, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--blanc) 0%, var(--or) 50%, var(--blanc) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.page-header p {
    color: var(--gris-clair);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.page-header-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

/* Portfolio Header Layout */
.portfolio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 8rem 5% 5rem;
}

.portfolio-header-content {
    flex: 1;
    text-align: center;
    z-index: 2;
}

.portfolio-header-img {
    max-width: 350px;
    height: auto;
    object-fit: contain;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.portfolio-header-left {
    animation: float-left 3s ease-in-out infinite;
}

.portfolio-header-right {
    animation: float-right 3s ease-in-out infinite;
}

@keyframes float-left {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
}

@keyframes float-right {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}


/* Chase Animation */
.chase-animation {
    position: relative;
    width: 100%;
    height: 80px;
    margin-top: 2rem;
    overflow: hidden;
}

.chase-dove,
.chase-rabbit {
    position: absolute;
    height: 60px;
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.chase-dove {
    animation: dove-fly 8s linear infinite;
    z-index: 2;
}

.chase-rabbit {
    animation: rabbit-run 8s linear infinite;
    z-index: 1;
}

@keyframes dove-fly {
    0% {
        left: -100px;
        transform: translateY(0) scaleX(1);
    }

    100% {
        left: calc(100% + 100px);
        transform: translateY(0) scaleX(1);
    }
}

@keyframes rabbit-run {
    0% {
        left: -150px;
        transform: translateY(10px) scaleX(1);
    }

    100% {
        left: calc(100% + 50px);
        transform: translateY(10px) scaleX(1);
    }
}

/* ============================================
   SECTIONS COMMUNES
============================================ */
.main-content {
    position: relative;
    z-index: 2;
}

section {
    position: relative;
    padding: 6rem 5%;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '✦';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--rouge);
}

.section-header p {
    color: var(--gris-clair);
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-size: 1.05rem;
}

/* ============================================
   SECTION NOUS
============================================ */
.nous-section {
    background: linear-gradient(180deg, var(--fond-sombre) 0%, var(--fond-carte) 100%);
}

.nous-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.nous-image {
    position: relative;
}

.nous-image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bleu-marine) 0%, var(--fond-carte) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border: 2px solid var(--bleu-marine-clair);
    position: relative;
    overflow: hidden;
}

.nous-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(138, 43, 226, 0.1) 50%, transparent 60%);
    animation: shine 4s infinite;
}

.nous-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.nous-texte h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--or);
}

.nous-texte p {
    color: var(--gris-clair);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rouge);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gris);
}

/* Histoire et valeurs */
.histoire-section {
    background: var(--fond-carte);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 120px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--rouge), var(--or));
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '✦';
    position: absolute;
    left: -5px;
    top: 0;
    color: var(--or);
    font-size: 1.2rem;
}

.timeline-year {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--rouge);
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--gris-clair);
    line-height: 1.6;
}

/* Timeline avec logo */
.timeline-item-with-logo {
    position: relative;
}

.timeline-item-with-logo .timeline-logo {
    position: absolute;
    left: -130px;
    top: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.timeline-logo img:hover {
    transform: scale(1.1);
}

.timeline-content {
    flex: 1;
}

.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.valeur-card {
    background: var(--fond-sombre);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--bleu-marine-clair);
    transition: all 0.3s ease;
}

.valeur-card:hover {
    transform: translateY(-5px);
    border-color: var(--rouge);
}

.valeur-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--or);
}

.valeur-icon i,
.valeur-icon svg {
    display: inline-block;
    transition: transform 0.3s ease;
}

.valeur-card:hover .valeur-icon i,
.valeur-card:hover .valeur-icon svg {
    transform: scale(1.15);
}

.valeur-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--or);
}

.valeur-card p {
    color: var(--gris-clair);
    font-size: 0.95rem;
}

/* ============================================
   SECTION ÉCOLE
============================================ */
.ecole-section {
    background: var(--fond-carte);
}

.ecole-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ecole-card {
    background: var(--fond-sombre);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--bleu-marine-clair);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.ecole-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rouge), var(--or));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.ecole-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ecole-card:hover::before {
    transform: scaleX(1);
}

.ecole-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--or);
}

.ecole-icon i,
.ecole-icon svg {
    display: inline-block;
    transition: transform 0.3s ease;
}

.ecole-card:hover .ecole-icon i,
.ecole-card:hover .ecole-icon svg {
    transform: scale(1.15);
}

.cours-info-card h4 i {
    color: var(--or);
    margin-right: 0.4rem;
}

.ecole-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--blanc);
}

.ecole-card p {
    color: var(--gris-clair);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Détails cours */
.cours-details {
    background: var(--fond-sombre);
}

.cours-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cours-info-card {
    background: var(--fond-carte);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--bleu-marine-clair);
}

.cours-info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--or);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cours-info-card ul {
    list-style: none;
}

.cours-info-card li {
    color: var(--gris-clair);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bleu-marine-clair);
    display: flex;
    justify-content: space-between;
}

.cours-info-card li:last-child {
    border-bottom: none;
}

.cours-info-card li span {
    color: var(--blanc);
    text-align: end;
}

/* ============================================
   SECTION ACTUALITÉS
============================================ */
.actualites-section {
    background: linear-gradient(180deg, var(--fond-carte) 0%, var(--fond-sombre) 100%);
}

.actu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.actu-card {
    background: var(--fond-carte);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--bleu-marine-clair);
}

.actu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.actu-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bleu-marine) 0%, var(--rouge) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.actu-content {
    padding: 1.5rem;
}

.actu-date {
    font-size: 0.85rem;
    color: var(--rouge-clair);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.actu-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.actu-card:hover .actu-content h3 {
    color: var(--or);
}

.actu-content p {
    color: var(--gris-clair);
    font-size: 0.9rem;
    line-height: 1.6;
}

.actu-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--rouge-clair);
    font-weight: 500;
    transition: color 0.3s ease;
}

.actu-link:hover {
    color: var(--or);
}

/* Catégories d'actualités */
.actu-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.actu-category {
    padding: 0.6rem 1.5rem;
    background: var(--fond-carte);
    border: 1px solid var(--bleu-marine-clair);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.actu-category:hover,
.actu-category.active {
    background: var(--rouge);
    border-color: var(--rouge);
}

/* ============================================
   ACTUALITÉS PAGE - LAYOUT HORIZONTAL
============================================ */

/* Grille en colonne unique pour la page dédiée */
.actu-grid-page {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
}

/* Cartes horizontales : image à gauche, texte à droite */
.actu-grid-page .actu-card {
    display: flex;
    flex-direction: row;
    min-height: 280px;
}

.actu-grid-page .actu-image {
    width: 40%;
    min-width: 300px;
    height: auto;
    min-height: 280px;
    flex-shrink: 0;
}

.actu-grid-page .actu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.actu-grid-page .actu-content {
    flex: 1;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.actu-grid-page .actu-date {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.actu-grid-page .actu-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.actu-grid-page .actu-content p {
    font-size: 1rem;
    line-height: 1.8;
}

.actu-grid-page .actu-link {
    margin-top: 1.5rem;
    font-size: 1.05rem;
}

/* Responsive : empiler en colonne sur mobile */
@media (max-width: 768px) {
    .actu-grid-page .actu-card {
        flex-direction: column;
    }

    .actu-grid-page .actu-image {
        width: 100%;
        min-width: unset;
        height: 220px;
        min-height: 220px;
    }

    .actu-grid-page .actu-content {
        padding: 1.5rem;
    }

    .actu-grid-page .actu-content h3 {
        font-size: 1.3rem;
    }
}

/* ============================================
   SECTION PORTFOLIO
============================================ */
.portfolio-section {
    background: var(--fond-sombre);
    padding-top: 4rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bleu-marine) 0%, var(--fond-carte) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    cursor: pointer;
    transition: all 0.4s ease;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    color: var(--gris-clair);
}

/* Filtres portfolio */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.portfolio-filter {
    padding: 0.6rem 1.5rem;
    background: var(--fond-carte);
    border: 1px solid var(--bleu-marine-clair);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-filter:hover,
.portfolio-filter.active {
    background: var(--rouge);
    border-color: var(--rouge);
}


/* ============================================
   SECTION PARTENAIRES
============================================ */
.partenaires-section {
    background: var(--fond-carte);
}

.partenaires-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.partenaire {
    width: 180px;
    height: 100px;
    background: var(--fond-sombre);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bleu-marine-clair);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--gris);
    text-align: center;
    padding: 1rem;
}

.partenaire:hover {
    border-color: var(--rouge);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(196, 30, 58, 0.2);
}

/* Partenaire Majeur (FFM) */
.partenaire-majeur {
    display: flex;
    flex-wrap: wrap;
    background: var(--fond-sombre);
    border: 1px solid var(--or);
    border-radius: 15px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    transition: all 0.3s ease;
    text-decoration: none;
}

.partenaire-majeur:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

.partenaire-majeur-logo {
    flex: 1;
    min-width: 250px;
    background: white;
    /* Fond blanc pour que le logo ressorte bien */
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partenaire-majeur-logo img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.partenaire-majeur-logo .fallback-icon {
    font-size: 5rem;
    color: var(--bleu-marine);
}

.partenaire-majeur-content {
    flex: 2;
    min-width: 300px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partenaire-majeur-content h3 {
    color: var(--or);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.partenaire-majeur-content p {
    color: var(--gris-clair);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.partenaire-majeur-link {
    color: var(--rouge);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.partenaire-majeur:hover .partenaire-majeur-link {
    color: var(--or);
}

@media (max-width: 768px) {
    .partenaire-majeur-content {
        padding: 1.5rem;
    }

    .partenaire-majeur-content h3 {
        font-size: 1.4rem;
    }
}

.partenaires-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: var(--gris-clair);
    line-height: 1.8;
}

/* Types de partenariat */
.partenariat-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.partenariat-type {
    background: var(--fond-sombre);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--bleu-marine-clair);
}

.partenariat-type h4 {
    color: var(--or);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.partenariat-type h4 i {
    margin-right: 0.5rem;
}

.partenariat-type p {
    color: var(--gris-clair);
    font-size: 0.95rem;
}

/* ============================================
   SECTION CONTACT
============================================ */
.contact-section {
    background: linear-gradient(180deg, var(--fond-carte) 0%, var(--fond-sombre) 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--or);
}

.contact-info p {
    color: var(--gris-clair);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--rouge) 0%, var(--bleu-marine) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item-text {
    color: var(--gris-clair);
}

.contact-form {
    background: var(--fond-carte);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--bleu-marine-clair);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--blanc);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--fond-sombre);
    border: 1px solid var(--bleu-marine-clair);
    border-radius: 10px;
    color: var(--blanc);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--rouge);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-clair) 100%);
    padding: 1rem;
    border: none;
    border-radius: 10px;
    color: var(--blanc);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

/* Map placeholder */
.map-container {
    margin-top: 4rem;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    background: var(--fond-carte);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bleu-marine-clair);
}

.map-placeholder {
    text-align: center;
    color: var(--gris);
}

.map-placeholder span {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* ============================================
   SECTION MEMBRES
============================================ */
.membres-section {
    background: var(--fond-carte);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.membres-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 2rem;
}

.login-form {
    background: var(--fond-sombre);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--bleu-marine-clair);
}

.login-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--or);
    font-size: 1.5rem;
}

.login-icon {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Message d'erreur login */
.login-error {
    font-size: 0.9rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.form-footer a {
    color: var(--rouge-clair);
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--or);
}

/* ============================================
   FOOTER
============================================ */
footer {
    background: var(--bleu-marine);
    padding: 3rem 5% 1.5rem;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bleu-marine-clair);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gris-clair);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--rouge-clair);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--fond-sombre);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--rouge);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    color: var(--gris);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--fond-sombre);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero responsive */
    .hero-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding-top: 0rem;
    }

    .hero-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
    }

    .hero-image::before {
        transform: translate(-50%, -50%) translateY(0);
    }

    .hero-image img {
        width: 80% !important;
        max-width: 280px;
        height: auto;
        display: block;
        transform: none;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-text .hero-logo {
        justify-content: center;
    }

    .nous-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nous-image {
        order: -1;
    }

    .stats-container {
        justify-content: center;
    }

    .btn-primary {
        display: block;
        width: fit-content;
        margin: 0 auto;
    }

    .footer-rabbit {
        width: 67%;
        height: auto;
        position: relative;
        top: -107px;
        margin-bottom: 0;
        position: relative;
        margin-bottom: -106px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 5%;
    }

    .stats-container {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-header {
        padding: 8rem 5% 4rem;
    }

    /* Carrousel responsive */
    .carousel-slides {
        height: 400px;
    }

    .carousel-caption h3 {
        font-size: 1.4rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-cards {
        font-size: 2rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .partenaire {
        width: 140px;
        height: 80px;
    }

    .login-form {
        padding: 2rem;
    }

    /* Carrousel mobile */
    .carousel-slides {
        height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption h3 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.85rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* ============================================
   ANIMATIONS D'ENTRÉE
============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   FOOTER RABBIT
============================================ */
.footer-rabbit {
    width: 389px;
    height: auto;
    position: relative;
    top: -131px;
    margin-bottom: 0;
    position: absolute;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

@media (max-width: 992px) {
    .footer-rabbit {
        width: 67%;
        height: auto;
        position: relative;
        top: -107px;
        margin-bottom: 0;
        position: relative;
        margin-bottom: -106px;
    }

    .footer-logo {
        margin: 0 auto;
    }
}

/* Footer bottom link hover */
.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--rouge);
}

/* ============================================
   CARTE GOOGLE MAPS
============================================ */
.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto 0;
    height: 600px;
    /* Grande hauteur pour la carte */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PORTFOLIO PAGE - STYLES SPÉCIFIQUES
============================================ */

/* Portfolio Header */
.portfolio-header {
    position: relative;
    padding: 0;
    overflow: hidden;
    margin-top: 0;
    height: 100vh;
    min-height: 600px;
}

.portfolio-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portfolio-header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
}

.portfolio-header-content p {
    font-size: 1.5rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

/* Scroll Arrow */
.scroll-arrow {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-decoration: none;
    animation: bounce 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-arrow span {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.scroll-arrow svg {
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

.scroll-arrow:hover svg {
    stroke: var(--rouge);
    transform: scale(1.15);
    transition: all 0.3s ease;
}

.scroll-arrow:hover span {
    color: var(--rouge);
    transition: all 0.3s ease;
}

/* Portfolio Section */
.portfolio-section {
    scroll-margin-top: 80px;
}

/* Titre Portfolio avec effet shimmer doré */
.portfolio-title {
    font-family: 'Cinzel', serif !important;
    font-size: clamp(3rem, 7vw, 5rem) !important;
    font-weight: 700 !important;
    background: linear-gradient(90deg,
            #d4af37 0%,
            #ffffff 10%,
            #d4af37 20%,
            #d4af37 80%,
            #ffffff 90%,
            #d4af37 100%) !important;
    background-size: 300% 100% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: portfolio-shimmer 3s linear infinite !important;
    margin-bottom: 1rem !important;
}

@keyframes portfolio-shimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Carrousel Portfolio - Hauteur augmentée */
.portfolio-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 700px;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transform: translateZ(0);
}

/* Boutons de navigation du carrousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid rgba(212, 175, 55, 0.5);
    font-size: 2rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, border-color 0.3s ease;
    border-radius: 8px;
}

.carousel-btn:hover {
    background: rgba(212, 175, 55, 0.8);
    border-color: rgba(212, 175, 55, 1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Contrôles du carrousel (play/pause, fullscreen) */
.carousel-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-control-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid rgba(212, 175, 55, 0.5);
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    border-radius: 8px;
    transform: translateZ(0);
}

.carousel-control-btn:hover {
    background: rgba(212, 175, 55, 0.8);
    border-color: rgba(212, 175, 55, 1);
}

/* Points de navigation du carrousel */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(212, 175, 55, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover,
.carousel-dot.active {
    background: rgba(212, 175, 55, 1);
    border-color: rgba(212, 175, 55, 1);
    transform: scale(1.2);
}

/* ============================================
   LIGHTBOX MODAL
============================================ */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    transform: translateZ(0);
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
    transform: translateZ(0);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    transform: translateZ(0);
}

.lightbox-close:hover {
    background: rgba(196, 30, 58, 0.9);
    border-color: var(--or);
    transform: rotate(90deg) translateZ(0);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(212, 175, 55, 0.9);
    border-color: var(--or);
    transform: translateY(-50%) scale(1.1) translateZ(0);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    max-width: 80%;
    text-align: center;
}

.lightbox-caption h3 {
    color: var(--or);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.lightbox-caption p {
    color: var(--gris-clair);
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE - PORTFOLIO & LIGHTBOX
============================================ */
@media (max-width: 768px) {
    .carousel-container {
        height: 500px;
    }

    .carousel-btn {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 400px;
    }

    .carousel-btn {
        font-size: 1.5rem;
        padding: 0.3rem 0.8rem;
    }
}

/* ============================================
   PAGINATION
============================================ */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styles directs pour la pagination (sans wrapper) */
ul.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

li.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--gris-clair);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-link:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--or);
    color: var(--or);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--or);
    border-color: var(--or);
    color: var(--fond-sombre);
    font-weight: 700;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .page-link {
        min-width: 40px;
        height: 40px;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   ACTUALITÉS PAGE - BANNIÈRE
============================================ */

/* Actualités Header */
.actu-header {
    position: relative;
    padding: 0;
    overflow: hidden;
    margin-top: 0;
    height: 100vh;
    min-height: 600px;
}

.actu-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.actu-header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
}

.actu-header-content p {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--or);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    letter-spacing: 2px;
}

/* Titre Actualités avec effet shimmer doré */
.actu-title {
    font-family: 'Cinzel', serif !important;
    font-size: clamp(3rem, 7vw, 5rem) !important;
    font-weight: 700 !important;
    background: linear-gradient(90deg,
            #d4af37 0%,
            #ffffff 10%,
            #d4af37 20%,
            #d4af37 80%,
            #ffffff 90%,
            #d4af37 100%) !important;
    background-size: 300% 100% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: actu-shimmer 3s linear infinite !important;
    margin-bottom: 1rem !important;
}

@keyframes actu-shimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ============================================
   RESPONSIVE - NAVBAR
============================================ */

/* --- Réduction progressive pour éviter le chevauchement logo/liens --- */
@media (max-width: 1800px) {
    .logo-text {
        font-size: 1.35rem;
    }

    .nav-links a:not(.btn-membres) {
        font-size: 0.82rem;
        padding: 0.8rem 1rem;
        letter-spacing: 1.2px;
    }

    .btn-membres {
        font-size: 0.8rem;
        padding: 0.8rem 1.6rem;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 1586px) {
    .logo-text {
        display: none;
    }

    .nav-links a:not(.btn-membres) {
        font-size: 0.78rem;
        padding: 0.7rem 0.8rem;
        letter-spacing: 1px;
    }

    .btn-membres {
        font-size: 0.75rem;
        padding: 0.7rem 1.4rem;
        margin-left: 1rem;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 4vw, 3rem);
    }

    .hero-image img {
        width: 65%;
        transform: translateY(0);
    }
}

@media (max-width: 1586px) {
    .hero-container {
        padding: 2rem 0%;
        gap: 2rem;
    }
}

/* --- Passage au menu hamburger --- */
@media (max-width: 1100px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        padding: 0.6rem 4%;
    }

    .logo-icon {
        width: 130px;
        height: 130px;
        transform: translateY(73px);
        margin-top: -71px;
    }

    .logo-text {
        left: 130px;
        font-size: 1.1rem;
    }

    /* Menu mobile - panneau latéral droit */
    .nav-links {
        position: fixed;
        top: 0;
        left: auto;
        right: 0;
        bottom: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        background: linear-gradient(180deg,
                rgb(10, 15, 30) 0%,
                rgb(15, 22, 42) 40%,
                rgb(20, 30, 55) 100%);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        padding: 5rem 2rem 3rem;
        overflow-y: auto;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    /* Retirer le cadre arrondi des liens en mobile */
    .nav-links::before {
        display: none;
    }

    /* Liens de nav en mobile */
    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation pour chaque lien */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.08s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.14s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.20s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.26s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.32s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.38s;
    }

    .nav-links.active li:nth-child(7) {
        transition-delay: 0.44s;
    }

    .nav-links a:not(.btn-membres) {
        display: block;
        font-size: 1.15rem;
        padding: 1.1rem 2rem;
        letter-spacing: 2px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    .nav-links li:first-child a:not(.btn-membres) {
        padding-left: 2rem;
        border-top: 1px solid rgba(212, 175, 55, 0.1);
    }

    .nav-links li:nth-last-child(2) a:not(.btn-membres) {
        padding-right: 2rem;
    }

    /* Bouton Accès Membres en mobile */
    .btn-membres {
        margin-left: 0;
        margin-top: 1.5rem;
        padding: 1rem 2.5rem;
        font-size: 0.9rem;
        text-align: center;
        display: inline-block;
    }

    /* Empêcher le défilement quand le menu est ouvert */
    body.menu-open {
        overflow: hidden;
    }
}

/* --- Petits écrans mobiles --- */
@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 3%;
    }

    .logo-icon {
        width: 100px;
        height: 100px;
        transform: translateY(56px);
        margin-top: -52px;
    }

    .logo-text {
        left: 95px;
        font-size: 0.85rem;
    }

    .nav-links a:not(.btn-membres) {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .btn-membres {
        padding: 0.85rem 2rem;
        font-size: 0.8rem;
    }

    .menu-toggle {
        padding: 8px;
    }

    .menu-toggle span {
        width: 24px;
        height: 2.5px;
    }

    .nav-links {
        width: 100%;
        max-width: 100%;
    }
}