/* Styles de base pour Complexe Scolaire LA ROCHELLE - Inspiré par iambamako.com */

/* Variables de couleurs inspirées par iambamako.com */
:root {
    --primary-color: #e99700; /* Nouvelle couleur principale */
    --secondary-color: #b47500; /* Orange secondaire */
    --accent-color: #e63312; /* Rouge accentuation */
    --text-dark: #222533; /* Texte foncé */
    --text-medium: #5a5c69; /* Texte intermédiaire */
    --text-light: #858796; /* Texte clair */
    --background-light: #f8f9fc; /* Fond clair */
    --background-white: #ffffff; /* Fond blanc */
    --border-color: #e3e6f0; /* Couleur de bordure */
    --shadow-color: rgba(0, 0, 0, 0.1); /* Couleur d'ombre */
    --gradient-primary: linear-gradient(135deg, rgba(180,117,0,0.95) 0%, rgba(249,142,42,0.95) 100%);
    --gradient-secondary: linear-gradient(135deg, rgba(249,142,42,0.95) 0%, rgba(249,100,0,0.95) 100%);

    /* Typographie */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Gestion du chargement des polices */
body {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.fonts-loaded .feature-card,
body.fonts-loaded .level-card,
body.fonts-loaded h1,
body.fonts-loaded h2,
body.fonts-loaded h3 {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Reset et styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    font-weight: 400;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

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

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

section {
    padding: 5rem 0;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Header et Navigation */
header {
    background-color: var(--background-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.sticky {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

header.hide {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.logo img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Navigation principale */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

/* Menu burger mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu principal */
.menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    position: relative;
}

.menu li a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.menu li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu li a:hover {
    color: var(--primary-color);
    background-color: rgba(233, 151, 0, 0.05);
    transform: translateY(-2px);
}

.menu li a:hover:before {
    width: 80%;
}

/* Bouton contact spécial */
.contact-nav .btn-contact {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(233, 151, 0, 0.3);
    transition: all 0.3s ease;
    gap: 0.5rem;
    border: none;
}

.contact-nav .btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 151, 0, 0.4);
    background: var(--gradient-secondary);
}

.contact-nav .btn-contact i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.contact-nav .btn-contact:hover i {
    transform: scale(1.1);
}

/* Bouton login */
.login-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(233, 151, 0, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.login-nav a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Styles des sous-menus */
.has-submenu > a:after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.has-submenu:hover > a:after {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background-white);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 1rem 0;
    border: 1px solid var(--border-color);
    z-index: 1000;
    list-style: none;
}

.submenu li {
    margin: 0;
}

.submenu li a {
    padding: 0.8rem 1.5rem;
    color: var(--text-medium);
    font-weight: 400;
    border-radius: 0;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    transform: none;
}

.submenu li a:before {
    display: none;
}

.submenu li a:hover {
    color: var(--primary-color);
    background-color: rgba(233, 151, 0, 0.08);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sous-menus imbriqués */
.has-nested-submenu > a:after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 0.7rem;
}

.nested-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--background-white);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 1rem 0;
    border: 1px solid var(--border-color);
    z-index: 1001;
    list-style: none;
}

.has-nested-submenu:hover .nested-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nested-submenu li a {
    padding: 0.7rem 1.2rem;
    color: var(--text-dark);
    border-left: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nested-submenu li:last-child a {
    border-bottom: none;
}

.nested-submenu li a:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .menu {
        gap: 0.3rem;
    }

    .menu li a {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -350px;
        width: 350px;
        height: 100vh;
        background: linear-gradient(135deg, var(--background-white) 0%, var(--background-light) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 100px 30px 30px;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        gap: 0.5rem;
    }

    .menu.active {
        right: 0;
    }

    /* Overlay quand le menu est ouvert */
    .menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: -350px;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .menu::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-primary);
    }

    .menu li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .menu li a {
        width: 100%;
        padding: 1rem;
        border-radius: 10px;
        background-color: transparent;
        transition: all 0.3s ease;
        border: 1px solid transparent;
        transform: none;
        justify-content: space-between;
    }

    .menu li a:before {
        display: none;
    }

    .menu li a:hover {
        background-color: rgba(233, 151, 0, 0.1);
        border-color: rgba(233, 151, 0, 0.2);
        transform: translateX(5px);
    }

    /* Sous-menus en mobile - Configuration pour 3 niveaux */
    .submenu,
    .nested-submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        background-color: rgba(233, 151, 0, 0.05);
        border-radius: 8px;
        margin-top: 0.5rem;
        border: 1px solid rgba(233, 151, 0, 0.1);
        transition: all 0.4s ease;
        transform: none;
        visibility: visible;
    }

    /* États ouverts pour tous les niveaux */
    .has-submenu.open > .submenu,
    .has-nested-submenu.open > .nested-submenu {
        opacity: 1;
        max-height: 600px; /* Augmenté pour plus de contenu */
        padding: 1rem 0;
    }

    /* Styles spécialisés pour chaque niveau */
    .submenu li a {
        padding: 0.8rem 1rem;
        margin: 0.2rem 0.5rem;
        border-radius: 6px;
        font-size: 0.9rem;
        border: none;
        border-left: none;
        color: var(--text-dark);
        font-weight: 500;
    }

    .nested-submenu {
        margin-left: 1.5rem;
        border-left: 3px solid var(--primary-color);
        background-color: rgba(233, 151, 0, 0.08);
    }

    .nested-submenu li a {
        padding: 0.7rem 1rem;
        margin: 0.1rem 0.3rem;
        border-radius: 6px;
        font-size: 0.85rem;
        color: var(--text-medium);
        font-weight: 400;
    }

    /* Indicateurs pour les sous-menus */
    .has-submenu > a:after,
    .has-nested-submenu > a:after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        transition: transform 0.3s ease;
        margin-left: auto;
        font-size: 0.8rem;
    }

    .has-submenu.open > a:after,
    .has-nested-submenu.open > a:after {
        transform: rotate(180deg);
    }

    /* Amélioration des interactions hover */
    .submenu li a:hover,
    .nested-submenu li a:hover {
        background-color: rgba(233, 151, 0, 0.15);
        color: var(--primary-color);
        transform: translateX(3px);
        border-left: 3px solid var(--primary-color);
    }

    /* Boutons spéciaux */
    .contact-nav .btn-contact {
        background: var(--gradient-primary);
        color: white !important;
        text-align: center;
        justify-content: center;
        margin-top: 1rem;
        padding: 1rem;
        width: 100%;
    }

    .login-nav a {
        width: 100%;
        height: auto;
        border-radius: 10px;
        padding: 1rem;
        background-color: rgba(233, 151, 0, 0.1);
        justify-content: center;
    }

    /* Ajustements header mobile */
    .header-container {
        padding: 1rem 0;
    }

    .logo img {
        height: 50px;
    }
}

@media screen and (max-width: 768px) {
    .menu {
        width: 300px;
        right: -300px;
        padding: 80px 20px 20px;
    }

    .menu.active::before {
        left: -300px;
    }

    .header-container {
        padding: 0.8rem 0;
    }

    .logo img {
        height: 45px;
    }

    /* Réduction des marges pour plus de contenu visible */
    .nested-submenu {
        margin-left: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .menu {
        width: 280px;
        right: -280px;
        padding: 70px 15px 15px;
    }

    .menu.active::before {
        left: -280px;
    }

    .header-container {
        padding: 0.7rem 0;
    }

    .logo img {
        height: 40px;
    }

    .menu li a {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .submenu li a {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }

    .nested-submenu li a {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Réduction maximale des marges pour petit écran */
    .nested-submenu {
        margin-left: 0.8rem;
    }
}

/* Elément back-to-top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 100vh;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-track {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
    transform: scale(1.05);
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
}

.carousel-slide.active .slide-content {
    animation: fadeInUp 1s ease 0.5s forwards;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content h1 span {
    color: var(--secondary-color);
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 5;
    padding: 10px 15px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    width: fit-content;
    margin: 0 auto;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-outline {
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons .btn-outline {
    border-color: white;
    color: white;
}

.hero-buttons .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Section Features (Points forts) */
.features {
    background-color: var(--background-light);
    padding: 5rem 0;
}

.features .container {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--background-white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--secondary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.feature-card h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.feature-card:hover h3:after {
    width: 75px;
}

.feature-card p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding-right: 20px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:after {
    content: '→';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover:after {
    transform: translateX(5px);
}

/* Section Stats (Statistiques) */
.stats {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 0;
}

.stats h2 {
    color: white;
}

.stats h2:after {
    background-color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.stat-number sup {
    font-size: 1.5rem;
    margin-left: 5px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Section des niveaux avec design moderne */
.levels {
    background-color: var(--background-white);
    padding: 6rem 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    max-width: 700px;
    margin: -1.5rem auto 3rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.level-card {
    background-color: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.level-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(249, 142, 42, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 85, 164, 0.2);
}

.level-icon i {
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.level-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.level-card:hover .level-icon {
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(249, 100, 0, 0.8) 100%);
}

.level-card:hover .level-icon i {
    transform: scale(1.1);
}

.level-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.level-card h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.level-card:hover h3:after {
    width: 75px;
}

.level-card p {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.level-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-top: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.level-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.level-card:hover .level-image {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.level-card:hover .level-image img {
    transform: scale(1.05);
}

/* Section Activities (Activités) */
.activities {
    background-color: var(--background-light);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background-color: var(--background-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.activity-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.05);
}

.activity-date {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.activity-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.activity-date .month {
    font-size: 1rem;
    text-transform: uppercase;
}

.activity-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.activity-card:hover .activity-content h3 {
    color: var(--primary-color);
}

.activity-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.btn-sm {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
    background-color: rgba(0, 85, 164, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.btn-sm:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Section Videos */
.videos {
    background-color: var(--background-white);
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px var(--shadow-color);
    border-radius: 10px;
    overflow: hidden;
}

.placeholder-video {
    background-color: #f5f5f5;
    padding: 5rem 2rem;
    text-align: center;
    color: var(--text-light);
}

.placeholder-video i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.placeholder-video p {
    font-size: 1.2rem;
}

/* Section CTA */
.cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta h2 {
    color: white;
    margin-bottom: 2rem;
}

.cta h2:after {
    background-color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.facebook:hover {
    color: #1877f2;
}

.twitter:hover {
    color: #1da1f2;
}

.instagram:hover {
    color: #e1306c;
}

.linkedin:hover {
    color: #0077b5;
}

/* Section Contact */
.contact {
    background-color: var(--background-light);
}

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

.contact-form {
    background-color: var(--background-white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

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

.info-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-item p {
    font-weight: 500;
    color: var(--text-dark);
}

/* Section Newsletter */
.newsletter {
    background-color: var(--secondary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 2rem;
}

.newsletter h2:after {
    background-color: white;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form .btn-primary {
    background-color: var(--primary-color);
}

.newsletter-form .btn-primary:hover {
    background-color: #003366;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 1.5rem;
}

.footer-links h3,
.footer-social h3,
.footer-contact h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-size: 1.3rem;
}

.footer-links h3:after,
.footer-social h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #cccccc;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-social .social-links {
    justify-content: flex-start;
    margin-top: 1rem;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: #cccccc;
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Section About / Présentation */
.about {
    background-color: var(--background-white);
    padding: 6rem 0;
}

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

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.about-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 85, 164, 0.1) 0%, rgba(249, 142, 42, 0.1) 100%);
    z-index: 1;
    transition: all 0.5s ease;
}

.about-image:hover:before {
    background: linear-gradient(135deg, rgba(0, 85, 164, 0.2) 0%, rgba(249, 142, 42, 0.2) 100%);
}

.about-image img {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 1s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    padding-right: 2rem;
}

.about-content h2 {
    font-size: 2.2rem;
    text-align: left;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.about-content h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transform: none;
}

.about-content p {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.buttons-container {
    display: flex;
    gap: 1rem;
}

/* Section headers avec sous-titre */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-subtitle:before,
.section-subtitle:after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: var(--secondary-color);
    margin: 0 10px;
    vertical-align: middle;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.section-header h2:after {
    width: 70px;
    height: 4px;
}

/* Hero Video Section */
.hero-video {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    color: white;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(180,117,0,0.8) 0%, rgba(249,142,42,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s both;
}

.hero-content h1 span {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s both 0.3s;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeIn 1s both 0.6s;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-outline {
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons .btn-outline {
    border-color: white;
    color: white;
}

.hero-buttons .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Stats Banner */
.stats-banner {
    padding: 3rem 0;
    background-color: var(--background-white);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.stat-item:hover:after {
    width: 50%;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* About section improvements */
.about {
    position: relative;
    padding: 6rem 0;
    background-color: var(--background-light);
}

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

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    right: -20px;
    bottom: 40px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
    border: 5px solid white;
}

.experience-badge span {
    font-size: 1.5rem;
    line-height: 1;
}

.experience-badge p {
    font-size: 0.7rem;
    margin: 0;
    text-transform: uppercase;
}

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

.about-features {
    margin: 2rem 0;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-medium);
}

.about-features li i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.buttons-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Levels tabs */
.levels-tabs {
    margin-top: 3rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 30px;
    border: 2px solid transparent;
}

.tab-btn i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.level-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: var(--background-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.07);
}

.level-image {
    flex: 1;
    max-width: 500px;
    overflow: hidden;
}

.level-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.level-content:hover .level-image img {
    transform: scale(1.05);
}

.level-info {
    flex: 1;
    padding: 2rem;
}

.level-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    font-size: 1.8rem;
}

.level-info h3 span {
    font-size: 1rem;
    color: var(--text-light);
    margin-left: 0.5rem;
    font-weight: 400;
}

.level-info p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.level-info .btn-primary {
    margin-top: 1.5rem;
}

/* Banner parallax */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 8rem 0;
    position: relative;
    color: white;
    text-align: center;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content span {
    color: #ffcc00;
    font-weight: 700;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Features improvements */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--background-white);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 1rem;
    overflow: hidden;
    z-index: 1;
}

.feature-card:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, var(--primary-color) 0%, rgba(180,117,0,0) 100%);
    opacity: 0.05;
    transition: all 0.5s ease;
    z-index: -1;
}

.feature-card:hover:before {
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 85, 164, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

/* Gallery */
.gallery {
    background-color: var(--background-light);
    position: relative;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.filter-btn:hover {
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 85, 164, 0.8);
    color: white;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: white;
    margin-bottom: 0.5rem;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay span {
    font-size: 0.9rem;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease 0.2s;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
    opacity: 1;
}

.gallery-zoom {
    margin-top: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0);
    transition: all 0.3s ease 0.3s;
}

.gallery-item:hover .gallery-zoom {
    transform: scale(1);
}

/* Activities slider */
.activities-slider {
    position: relative;
    margin-bottom: 3rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background-color: var(--background-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.activity-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.05);
}

.activity-date {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.activity-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.activity-date .month {
    font-size: 1rem;
    text-transform: uppercase;
}

.activity-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.activity-card:hover .activity-content h3 {
    color: var(--primary-color);
}

.activity-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.btn-sm {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
    background-color: rgba(0, 85, 164, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.btn-sm:hover {
    background-color: var(--primary-color);
    color: white;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-prev,
.slider-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Video section improvements */
.video-tabs {
    position: relative;
}

.video-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.video-item {
    background-color: var(--background-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-thumb {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.video-item:hover .video-thumb img {
    transform: scale(1.1);
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.video-play {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    transform: scale(0);
}

.video-item:hover .video-play {
    transform: scale(1);
}

.video-play:hover {
    background-color: white;
    color: var(--secondary-color);
}

.video-info {
    padding: 1.2rem;
}

.video-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.video-item:hover .video-info h4 {
    color: var(--primary-color);
}

.video-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 900px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.modal-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Testimonials */
.testimonials {
    background-color: var(--background-light);
    position: relative;
}

.testimonial-slider {
    position: relative;
    margin: 3rem 0;
    padding: 0 3rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    flex: 0 0 100%;
    padding: 1rem;
}

.testimonial-content {
    background-color: var(--background-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-text {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text i {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-size: 1.5rem;
    opacity: 0.5;
}

.testimonial-text p {
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--primary-color);
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-dark);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonial-nav {
    position: absolute;
    bottom: -3rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nav-prev,
.nav-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 142, 42, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(249, 142, 42, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 142, 42, 0);
    }
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .level-content {
        flex-direction: column;
        gap: 1rem;
    }

    .level-image {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .hero-carousel {
        height: 80vh;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }
}

/* Ajouter cette règle pour s'assurer que le header du layout principal n'affecte pas les headers des pages individuelles */
.container header {
    position: relative !important;
    top: auto !important;
    width: 100%;
    z-index: auto;
}

/* Règlement Intérieur Styles */
.reglement-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.reglement-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reglement-header h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    text-transform: uppercase;
    color: #e99700;
    margin-bottom: 0.5rem;
}

.reglement-header .subtitle {
    font-style: italic;
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.reglement-header .separator {
    height: 2px;
    width: 120px;
    background-color: #e0e0e0;
    margin: 0 auto;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.preambule-card {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.card-icon {
    color: #1c7ccd;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.preambule-card h2 {
    color: #e99700;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.preambule-card p {
    line-height: 1.5;
}

.sections-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.section-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    background-color: #f9f9f9;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}

.section-number {
    width: 32px;
    height: 32px;
    background-color: #e99700;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
}

.card-header h2 {
    font-weight: 600;
    font-size: 1.25rem;
    color: #333;
    flex: 1;
}

.card-header .card-icon {
    margin-right: 0;
}

.section-card .card-content {
    padding: 1.5rem;
}

.subsection {
    margin-bottom: 1.5rem;
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e99700;
    margin-bottom: 0.75rem;
}

.subsection h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.subsection ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.subsection ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.subsection ul ul {
    margin-top: 0.5rem;
}

.engagement-card {
    padding: 1.5rem;
    text-align: center;
}

.engagement-card h2 {
    color: #1c7ccd;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.signature-block {
    max-width: 600px;
    margin: 1.5rem auto;
    text-align: left;
}

.signature-line {
    margin-top: 1.5rem;
}

.signature-line p {
    margin-bottom: 0.5rem;
    font-style: italic;
}

.signature-space {
    height: 60px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    background-color: #1c7ccd;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #1a6cb8;
    color: white;
}

.download-btn svg {
    margin-right: 0.5rem;
}

@media (min-width: 768px) {
    .reglement-header h1 {
        font-size: 2.5rem;
    }

    .sections-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .preambule-card {
        flex-direction: column;
    }

    .preambule-card .card-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .section-card .card-content {
        padding: 1rem;
    }
}

/* Footer Contact Form */
.footer-form {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.footer-form h3 {
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.footer-form h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
}

/* New contact form layout */
.contact-form-container {
    display: flex;
    gap: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.contact-image {
    flex: 1;
    max-width: 45%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.contact-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
}

.image-overlay h4 {
    margin-bottom: 5px;
    font-size: 1.3rem;
    color: white;
}

.image-overlay p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.contact-form-fields {
    flex: 1;
    max-width: 55%;
    padding: 10px 0;
}

.footer-form .form-floating {
    margin-bottom: 20px;
}

.footer-form .form-control {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    padding: 1.2rem 1rem;
    height: calc(3.5rem + 2px);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer-form .form-control:focus {
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.footer-form textarea.form-control {
    min-height: 120px;
}

.footer-form .form-floating label {
    padding: 1rem 1rem;
    color: #666;
}

.footer-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003d7a 100%);
    border: none;
    width: 100%;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.footer-form .btn-primary:hover {
    background: linear-gradient(135deg, #0068cc 0%, #005aa8 100%);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.footer-form .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive design for contact form */
@media (max-width: 768px) {
    .contact-form-container {
        flex-direction: column;
    }

    .contact-image,
    .contact-form-fields {
        max-width: 100%;
    }

    .contact-image {
        height: 250px;
    }
}

/* Add smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Styles for nested submenus */
/* Correction des sous-menus à trois niveaux - Desktop et Mobile */

/* Mode Desktop (> 992px) - Hover sur les sous-menus */
@media screen and (min-width: 993px) {
    /* Sous-menus niveau 2 imbriqués - Desktop Hover */
    .has-nested-submenu > a:after {
        content: '\f105';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-left: auto;
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }

    .nested-submenu {
        position: absolute;
        top: 0;
        left: 100%;
        background-color: var(--background-white);
        min-width: 250px;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-10px);
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
        padding: 1rem 0;
        border: 1px solid var(--border-color);
        z-index: 1001;
        list-style: none;
    }

    /* Affichage du sous-menu au hover - Desktop */
    .has-nested-submenu:hover > .nested-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .nested-submenu li {
        display: block;
        width: 100%;
        margin: 0;
    }

    .nested-submenu li a {
        display: block;
        padding: 0.7rem 1.2rem;
        color: var(--text-dark);
        border-left: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .nested-submenu li:last-child a {
        border-bottom: none;
    }

    .nested-submenu li a:hover {
        background-color: var(--background-light);
        color: var(--primary-color);
        transform: translateX(5px);
    }

    /* Assurer que les sous-menus parents restent ouverts */
    .has-submenu:hover > .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .submenu .has-nested-submenu:hover > .nested-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

/* Mode Mobile - utilise les classes existantes */

/* Correction spécifique pour les listes déroulantes à 3 niveaux */

/* Assurer que les sous-menus restent visibles pendant la navigation */
.submenu:hover,
.nested-submenu:hover {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Assurer que le hover fonctionne sur toute la chaîne parent-enfant */
.has-submenu:hover > .submenu,
.submenu .has-nested-submenu:hover > .nested-submenu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Correction z-index pour éviter les conflits */
.submenu {
    z-index: 1000;
}

.nested-submenu {
    z-index: 1001 !important;
}

/* Mode Desktop - styles de hover améliorés */
@media screen and (min-width: 993px) {
    /* S'assurer que le hover persiste lors du survol des enfants */
    .has-submenu:hover > .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .has-nested-submenu:hover > .nested-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    /* Maintenir le hover sur les éléments parents */
    .submenu:hover {
        opacity: 1;
        visibility: visible;
    }

    .nested-submenu:hover {
        opacity: 1;
        visibility: visible;
    }
}

/* Debug - bordures colorées pour identifier les niveaux (à supprimer en production) */
/*
.submenu {
    border: 2px solid red !important;
}

.nested-submenu {
    border: 2px solid blue !important;
}
*/
