/* =========================================
   1. CONFIGURATION DE BASE
   ========================================= */
:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --text-dark: #2c3e50;
    --text-light: #666;
    --white: #ffffff;
    --light-grey: #f4f6f8;
    --dark-footer: #1a1a1a;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
     ANIMATIONS (FADE IN UP)
     ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.section-title,
.card,
.activity-card,
.stat-item,
.logo-box,
.download-card,
.pro-card,
.team-card,
.gallery-card,
.lib-card,
.video-card,
.project-card {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.card:nth-child(1),
.activity-card:nth-child(1),
.stat-item:nth-child(1),
.logo-box:nth-child(odd) {
    animation-delay: 0.1s;
}

.card:nth-child(2),
.activity-card:nth-child(2),
.stat-item:nth-child(2),
.logo-box:nth-child(even) {
    animation-delay: 0.3s;
}

.card:nth-child(3),
.activity-card:nth-child(3),
.stat-item:nth-child(3) {
    animation-delay: 0.5s;
}

.card:nth-child(4),
.stat-item:nth-child(4) {
    animation-delay: 0.7s;
}

/* =========================================
     2. HEADER & NAVIGATION
     ========================================= */
header {
    background-color: var(--white);
    padding: 15px 5%;
    border-bottom: 1px solid #eee;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Nouveau style pour les deux logos */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-separator {
    font-size: 40px;
    color: #ddd;
    font-weight: 100;
    margin-top: -5px;
}

.logo-text {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 250px;
}

.header-info {
    display: flex;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-item i {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item .text {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.info-item .value {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
    white-space: nowrap;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 20px 15px;
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu li a i {
    font-size: 0.7rem;
    margin-left: 5px;
    opacity: 0.7;
}

/* Burger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    color: var(--white);
    font-size: 1.8rem;
    background: none;
    border: none;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    color: var(--text-dark);
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.dropdown li a:hover {
    background-color: var(--light-grey);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Bouton CTA */
.btn-cta {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.btn-cta:hover {
    background-color: var(--text-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* =========================================
     3. SECTIONS ACCUEIL
     ========================================= */
.hero {
    position: relative;
    height: 85vh;
    background: url("https://www.supimax.com/image/sup08.png") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(211, 47, 47, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.badge {
    background-color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: #ff5252;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Formations */
.formations-section {
    padding: 80px 5%;
    background-color: var(--light-grey);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-top: 4px solid var(--primary-color);
}

.card-header {
    padding: 15px;
    background-color: var(--white);
    border-bottom: 1px solid #f0f0f0;
}

.card-header h3 {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}

.card-body p {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

/* La Vie à Supimax */
.life-section {
    padding: 80px 5%;
    background-color: var(--white);
}

.life-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
}

.life-title span {
    color: var(--primary-color);
}

.life-content {
    max-width: 900px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.life-content p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.8;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.activity-card {
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--white);
}

.activity-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.activity-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

/* Stats & Partenaires */
.stats-section {
    background-color: var(--primary-color);
    padding: 80px 5%;
    color: var(--white);
    margin-top: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.partners-section {
    padding: 80px 5%;
    background-color: var(--white);
}

.partner-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.logo-box {
    background-color: var(--white);
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    height: 120px;
}

.logo-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.logo-box img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.logo-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* =========================================
     4. PAGES INTERNES (Général)
     ========================================= */
.page-header {
    background-color: var(--primary-color);
    padding: 60px 5%;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- BANNIÈRE DES PAGES INTERNES (Unique et sans conflit) --- */
.banniere-interne {
    position: relative;
    /* Image de fond spécifique */
    background: url('https://www.supimax.com/image/galerie/audiovisuel.jpg') no-repeat center center/cover;
    padding: 80px 0;
    text-align: center;
    color: white;
    margin-bottom: 50px;
    width: 100%;
    display: block;
}

.banniere-interne .overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.banniere-content {
    position: relative;
    z-index: 2;
}

.banniere-interne h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: white;
    line-height: 1.2;
}

.banniere-interne h1 span {
    color: #e63946;
}

.banniere-interne p {
    font-size: 1.1rem;
    color: #f1f1f1;
}

/* --- PAGE FICHES --- */
.downloads-section {
    padding: 80px 5%;
    background-color: var(--light-grey);
}

.download-block {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.block-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.block-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.download-card {
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.download-card h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-download:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.tarifs-box {
    background-color: #ffe6e6;
    border: 1px solid #ffcccc;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.tarifs-box h3 {
    color: var(--text-dark);
    margin-bottom: 25px;
}

.tarifs-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tarifs-buttons .btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 25px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.tarifs-buttons .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.professional-block {
    border-left: 5px solid var(--primary-color);
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pro-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-grey);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.pro-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.pro-content p {
    font-size: 0.9rem;
    color: #666;
}

/* --- PAGE EQUIPE --- */
.team-section {
    padding: 80px 5%;
    background-color: var(--light-grey);
}

.team-category {
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.team-info .role {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.team-info p {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* --- PAGE BIBLIOTHÈQUE --- */
.library-section {
    padding: 80px 5%;
    background-color: var(--light-grey);
}

.search-bar-container {
    max-width: 600px;
    margin: 0 auto 60px auto;
    display: flex;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-bar-container input {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    outline: none;
}

.btn-search {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 25px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-search:hover {
    background-color: var(--primary-dark);
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.lib-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: var(--transition);
}

.lib-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.lib-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.lib-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.lib-card p {
    color: #666;
    margin-bottom: 25px;
}

.lib-link {
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.lib-link:hover {
    color: var(--primary-color);
    margin-left: 5px;
}

/* =========================================
     5. PAGE GALERIE (CARROUSEL/SLIDER)
     ========================================= */
.gallery-section {
    padding: 80px 5%;
    background-color: var(--light-grey);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Slider Container */
.slider-container {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeEffect 0.5s;
}

.slide.active {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}

/* Flèches Navigation Slider */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
    opacity: 0;
}

.gallery-card:hover .nav-btn {
    opacity: 1;
}

.nav-btn:hover {
    background-color: var(--primary-color);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Overlay Date et Caption */
.overlay-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gallery-caption {
    padding: 25px;
    border-top: 1px solid #f0f0f0;
}

.gallery-caption h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.gallery-caption p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* =========================================
     6. FOOTER & MODALE
     ========================================= */
.main-footer {
    background-color: var(--dark-footer);
    color: #bbb;
    padding: 80px 0 20px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 2rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.map-container iframe {
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--primary-color);
}

/* MODALE (LARGE & SANS SCROLL) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    padding: 0;
    border-radius: 10px;
    width: 95%;
    max-width: 900px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.4s ease;
    max-height: 95vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    color: #ddd;
}

.modal-header {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    color: var(--white);
}

.modal-header h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.modal-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* MISE EN PAGE 2 COLONNES */
.inscription-form {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: span 2;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
}

/* RADIO GROUP */
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: auto;
    accent-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
    grid-column: span 2;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--primary-color);
}

/* Responsive Formulaire */
@media (max-width: 700px) {
    .inscription-form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}

/* =========================================
     7. RESPONSIVE MOBILE & TABLETTE
     ========================================= */
@media (max-width: 1200px) {

    .formations-grid,
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {

    /* Cache les infos du header */
    .header-info {
        display: none;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Afficher le bouton Burger */
    .hamburger {
        display: block;
        color: white;
        border: 1px solid white;
        padding: 5px 10px;
        border-radius: 5px;
    }

    .navbar {
        padding: 10px 0;
    }

    /* Cacher le menu par défaut sur mobile */
    .nav-menu {
        display: none;
        /* CACHÉ */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        text-align: center;
        padding-bottom: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    /* Quand on ajoute la classe 'active' avec JS, on affiche le menu */
    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    /* Ajustement Dropdown sur mobile */
    .dropdown {
        position: static;
        display: none;
        background-color: rgba(0, 0, 0, 0.1);
        box-shadow: none;
        width: 100%;
    }

    .has-dropdown:hover .dropdown {
        display: block;
    }

    .dropdown li a {
        color: var(--white);
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* Toutes les grilles en 1 colonne sur mobile */
    .formations-grid,
    .activities-grid,
    .stats-grid,
    .footer-grid,
    .logos-grid,
    .download-grid,
    .team-grid,
    .pro-grid,
    .gallery-grid,
    .video-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .footer-col {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .btn-cta {
        display: none;
    }

    .pro-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .banniere-interne h1,
    .page-header h1 {
        font-size: 1.8rem;
    }

    /* FIX BOUTON CANDIDATER MOBILE */
    .mobile-only {
        display: block;
        margin-top: 15px;
    }

    .mobile-only a {
        background-color: var(--white) !important;
        color: var(--primary-color) !important;
        font-weight: 800 !important;
        border-radius: 50px;
        padding: 15px !important;
        margin: 0 20px;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border: 2px solid var(--white) !important;
    }
}

/* =========================================
     8. STYLE DES PAGES ACTIVITÉS (GRILLE 2 COLONNES)
     ========================================= */
.content-section {
    padding: 80px 5%;
    background-color: var(--white);
}

.activities-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: start;
}

.activity-block {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    margin-bottom: 0;
}

.activity-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.activity-block:nth-child(even) {
    flex-direction: column;
}

.activity-img {
    width: 100%;
    height: 280px;
    flex: none;
    border-radius: 0;
    overflow: hidden;
}

.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;

}

.activity-block:hover .activity-img img {
    transform: scale(1.1);
}

.activity-text {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.activity-text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

/* RESPONSIVE ACTIVITÉS (Mobile & Tablette) */
@media (max-width: 900px) {
    .activities-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .activity-img {
        height: 220px;
    }
}

/* --- PAGE ACTUALITÉS (STYLE BLOG/NEWS) --- */
.news-section {
    padding: 80px 5%;
    background-color: var(--light-grey);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

/* La petite boîte pour la date */
.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.news-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    font-size: 0.75rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-top: auto;
}

.read-more:hover {
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* --- STYLE DES BOUTONS ET MODALE NEWS --- */
.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: auto;
    text-align: left;
    padding: 0;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* Modale spécifique pour la lecture (plus large) */
.news-modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.news-modal-content::-webkit-scrollbar {
    width: 8px;
}

.news-modal-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

/* =========================================
     SLIDER PHOTOS (ARTICLES)
     ========================================= */
.news-card .slider-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background-color: transparent !important;
}

.news-card .slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.news-card .slide {
    display: block !important;
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.news-card .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    opacity: 1 !important;
}

.news-card .slider-btn:hover {
    background-color: rgba(228, 58, 25, 0.9);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
     SLIDER POUR LES CARTES ACTIVITÉS
     ========================================= */
.activity-block .slider-container {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    background-color: transparent !important;
    border-radius: 0;
}

.activity-block .slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.activity-block .slide {
    display: block !important;
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.activity-block .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.activity-block .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.activity-block:hover .slider-btn {
    opacity: 1;
}

.activity-block .slider-btn:hover {
    background-color: var(--primary-color);
}

/* =========================================
     SECTION ACCRÉDITATIONS (Style Documents)
     ========================================= */
.accreditation-section {
    padding: 60px 0;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
}

.accreditation-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.accreditation-item a {
    display: block;
    cursor: zoom-in;
    text-decoration: none;
}

.accreditation-item img {
    height: 250px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.85;
}

.accreditation-item:hover img {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.15);
    opacity: 1;
}

.accreditation-item p {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    line-height: 1.4;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .accreditation-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
}

/* =========================================
     NOUVEAU STYLE DIRECTEUR (SPLIT SCREEN)
     ========================================= */
.director-split-section {
    display: flex;
    min-height: 600px;
    background-color: var(--white);
    overflow: hidden;
    border-top: 1px solid #eee;
    margin-bottom: 0;
}

.director-text-side {
    flex: 1;
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--white);
    z-index: 2;
}

.director-badge {
    color: #999;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.director-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    text-transform: uppercase;
}

.director-title span {
    color: var(--primary-color);
}

.director-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
    font-style: italic;
}

.director-body p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.director-signature img {
    height: 60px;
    width: auto;
    margin-top: 20px;
    opacity: 0.8;
}

/* --- COLONNE DROITE (VISUEL DÉGRADÉ) --- */
.director-visual-side {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d50000 60%, #f9f9f9 100%);
}

/* --- CORRECTIF VIDÉO YOUTUBE --- */
.director-visual-side.video-wrapper {
    padding: 0;
    background-color: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.director-visual-side iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 100%;
    border: none;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

@media (max-width: 900px) {
    .director-split-section {
        flex-direction: column-reverse;
    }

    .director-visual-side {
        min-height: 200px;
        flex: none;
    }

    .director-text-side {
        padding: 40px 20px;
    }

    .director-title {
        font-size: 2rem;
    }

    .director-visual-side.video-wrapper {
        min-height: 250px;
        align-items: stretch;
    }

    .director-visual-side iframe {
        height: 100%;
        object-fit: cover;
        aspect-ratio: auto;
    }
}

/* --- Masquer la vidéo sur mobile --- */
@media (max-width: 768px) {
    .director-visual-side {
        display: none !important;
    }

    .director-text-side {
        width: 100% !important;
        padding: 20px;
    }
}

/* =========================================
     POPUP ACTUALITÉS (MODALE 10 SECONDES)
     ========================================= */
.modal-actu-content {
    text-align: center;
    max-width: 400px;
    border-radius: 15px;
    padding: 30px;
}

.actu-header h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.actu-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.actu-buttons button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.close-btn-actu {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-btn-actu:hover {
    color: #000;
}

/* =========================================
     GRILLE VIDÉOS TÉMOIGNAGES (CORRECTIF)
     ========================================= */
.testimonials-video-section {
    padding-bottom: 80px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 standard */
    height: 0;
    background: #000;
}

/* Cible iframe ET video pour qu'ils prennent toute la place */
.video-frame iframe,
.video-frame video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    background-color: #000;
}

.video-caption {
    padding: 25px;
}

.video-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #da0d0d;
    font-weight: 700;
}

.video-caption p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* =========================================
     SECTION PORTFOLIO / GALERIE ÉTUDIANTE
     ========================================= */
.portfolio-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Filtres */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.portfolio-filters .filter-btn {
    border: none;
    background: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.portfolio-filters .filter-btn:hover,
.portfolio-filters .filter-btn.active {
    background: #e63946;
    color: white;
    transform: translateY(-2px);
}

/* Grille */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Carte Projet */
.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Effet Zoom au survol */
.project-card:hover .project-image img {
    transform: scale(1.1);
    opacity: 0.4;
}

/* Overlay (Texte qui apparaît) */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-info h3 {
    color: white;
    font-size: 1.2rem;
    margin: 5px 0;
}

.category-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e63946;
    font-weight: 800;
}

.student-name {
    color: #ddd;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 5px;
}

/* Bouton spécial pour voir les vidéos */
.btn-view {
    display: inline-block;
    margin-top: 10px;
    color: white;
    font-size: 0.8rem;
    text-decoration: underline;
}

/* Icône Play pour les vidéos */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover .play-icon {
    display: none;
}
/* =========================================
   ÉCRAN DE MAINTENANCE (Galerie Uniquement)
   ========================================= */
#maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 10000; /* Au-dessus de tout */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.maintenance-content {
    max-width: 500px;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease-out;
}

.maintenance-logo img {
    height: 80px;
    margin-bottom: 20px;
}

.maintenance-content h1 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 800;
}

.maintenance-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.beta-notice {
    font-size: 0.9rem;
    color: var(--primary-color) !important;
    font-weight: 700;
    margin-top: 10px;
    font-style: italic;
}

/* Bouton pour entrer quand même (optionnel) */
#enter-gallery-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}

#enter-gallery-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
    background-color: var(--primary-dark);
}

/* Barre de chargement animée */
.loader-line {
    width: 100%;
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.loader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background-color: var(--primary-color);
    animation: loadingMove 2s infinite ease-in-out;
    border-radius: 2px;
}

@keyframes loadingMove {
    0% { left: -30%; }
    50% { left: 100%; }
    100% { left: -30%; }
}

/* Classe pour cacher l'overlay */
.hidden-overlay {
    opacity: 0;
    visibility: hidden;
}
.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    margin: 0; /* Colle aux sections sans marge excessive */
    width: 100%;
    display: block;
}
