/* ============================================
   Variables CSS - Couleurs du logo
   ============================================ */
:root {
    --blue-light: #4A90E2;
    --blue-dark: #1E3A5F;
    --blue-medium: #2E5C8A;
    --red: #E74C3C;
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #F5F5F5;
    --gray-medium: #CCCCCC;
    --gray-dark: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
}

/* ============================================
   Reset & Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
}

.header.scrolled {
    background: rgba(30, 58, 95, 0.98);
    box-shadow: 0 4px 20px var(--shadow-hover);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.nav-brand .logo {
    height: 50px;
    width: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    transition: transform 0.3s ease;
}

.nav-brand:hover .logo {
    transform: scale(1.1);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--blue-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--blue-light);
    transform: translateY(-2px);
}

.btn-inscription {
    background: var(--red);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-inscription::after {
    display: none;
}

.btn-inscription:hover {
    background: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* Menu déroulant */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i,
.nav-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 180px;
    box-shadow: 0 5px 20px var(--shadow-hover);
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--black);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-link:hover,
.dropdown-link.active {
    background: var(--blue-light);
    color: var(--white);
    padding-left: 2rem;
}

.dropdown-link.active {
    background: var(--red);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* ============================================
   Hero Slider Section
   ============================================ */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

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

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.8) 0%, rgba(46, 92, 138, 0.7) 50%, rgba(74, 144, 226, 0.6) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.slide-logo {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.slide-logo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--white);
    transition: transform 0.3s ease;
}

.slide-logo img:hover {
    transform: scale(1.05);
}

.slide-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--blue-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 1.2rem;
    margin: 0 auto 2rem;
    font-style: italic;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--white);
    transform: scale(1.3);
}

/* ============================================
   Search Bar Section
   ============================================ */
.search-bar-section {
    background: var(--white);
    padding: 3rem 0;
    box-shadow: 0 4px 20px var(--shadow);
    margin-top: -50px;
    position: relative;
    z-index: 100;
}

.search-bar-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px var(--shadow-hover);
}

.search-bar-title {
    text-align: center;
    font-size: 2rem;
    color: var(--blue-dark);
    margin-bottom: 2rem;
}

.search-bar-form {
    max-width: 1000px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.search-input-wrapper,
.search-select-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i,
.search-select-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--blue-light);
    font-size: 1.1rem;
    z-index: 2;
}

.search-input-wrapper input,
.search-select-wrapper select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--gray-medium);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.search-input-wrapper input:focus,
.search-select-wrapper select:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-submit-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   Hero Section (ancien - gardé pour compatibilité)
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-medium) 50%, var(--blue-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--blue-light);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-style: italic;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

.animate-fade-in {
    animation: fadeInUp 1s ease;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease 0.4s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 1s ease 0.6s both;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    background: #C0392B;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--blue-dark);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--blue-dark);
    border: 2px solid var(--blue-dark);
}

.btn-outline:hover {
    background: var(--blue-dark);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--blue-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-top: 1.5rem;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   Formations Section
   ============================================ */
.formations-section {
    background: var(--gray-light);
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.formation-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.formation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.formation-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
}

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

.formation-card:hover .formation-image img {
    transform: scale(1.1);
}

.formation-image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
}

.formation-content {
    padding: 1.5rem;
}

.formation-title {
    font-size: 1.3rem;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.formation-description {
    color: var(--gray-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.formation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.formation-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.formation-meta i {
    color: var(--blue-light);
}

.formation-price {
    font-weight: 600;
    color: var(--red);
    font-size: 1rem;
}

.formation-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-medium);
}

.formation-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--red);
}

.formation-places {
    color: var(--gray-dark);
}

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

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

.video-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--blue-dark);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

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

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

.play-button {
    width: 70px;
    height: 70px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

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

.play-button:hover {
    background: #C0392B;
    transform: scale(1.1);
}

.video-content {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.2rem;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    color: var(--gray-dark);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.video-meta i {
    color: var(--blue-light);
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-medium) 100%);
    color: var(--white);
}

.about-section .section-title {
    color: var(--white);
}

.about-section .section-title::after {
    background: var(--red);
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-item i {
    font-size: 3rem;
    color: var(--blue-light);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--blue-light);
}

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

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

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

.footer-section a:hover {
    color: var(--blue-light);
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--red);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.social-links a i {
    margin-right: 0;
}

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

/* ============================================
   Contact Page
   ============================================ */
.contact-page {
    padding-top: 80px;
    background: var(--gray-light);
}

.contact-hero {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-medium));
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.contact-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.contact-hero-meta span {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-weight: 600;
}

.contact-info-section {
    padding: 4rem 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.contact-locations,
.contact-form-section,
.contact-map {
    padding: 4rem 0;
}

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

.location-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 5px 20px var(--shadow);
}

.location-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    box-shadow: 0 15px 40px var(--shadow);
}

.contact-form-info ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.contact-form-info li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form textarea {
    border: 2px solid var(--gray-medium);
    border-radius: 15px;
    padding: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form textarea:focus {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

.map-wrapper iframe {
    width: 100%;
    border: none;
    border-radius: 20px;
    min-height: 400px;
    box-shadow: 0 10px 30px var(--shadow);
}

@media (max-width: 900px) {
    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Search Page
   ============================================ */
.search-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--gray-light);
}

.page-title {
    font-size: 2.5rem;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.page-subtitle {
    text-align: center;
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

.search-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 3rem;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--blue-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--red);
}

.form-group input,
.form-group select {
    padding: 0.8rem;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-results {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.results-header h2 {
    color: var(--blue-dark);
    margin-bottom: 2rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--gray-dark);
}

.no-results i {
    font-size: 4rem;
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: var(--gray-dark);
    font-size: 1.1rem;
}

/* ============================================
   Inscription Page
   ============================================ */
.inscription-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--gray-light);
}

.inscription-header {
    text-align: center;
    margin-bottom: 2rem;
}

.inscription-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.inscription-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.inscription-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.required {
    color: var(--red);
}

.formation-info {
    margin-top: 0.5rem;
    padding: 0.8rem;
    background: var(--gray-light);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--blue-dark);
}

.formation-preview {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.formation-preview h3 {
    color: var(--blue-dark);
    margin-bottom: 1rem;
}

.preview-card {
    border: 2px solid var(--blue-light);
    border-radius: 10px;
    padding: 1.5rem;
}

.preview-card h4 {
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.preview-card p {
    color: var(--gray-dark);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.preview-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.preview-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-meta i {
    color: var(--red);
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.5s ease;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert i {
    font-size: 1.5rem;
}

/* ============================================
   Video Page
   ============================================ */
.video-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--gray-light);
}

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

.video-player-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.video-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

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

.video-placeholder-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--blue-dark);
    color: var(--white);
}

.video-placeholder-large i {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.video-info {
    margin-top: 1.5rem;
}

.video-title {
    font-size: 2rem;
    color: var(--blue-dark);
    margin-bottom: 1rem;
}

.video-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.video-meta-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-meta-info i {
    color: var(--red);
}

.video-description-full {
    color: var(--gray-dark);
    line-height: 1.8;
}

.other-videos {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.other-videos h2 {
    color: var(--blue-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.videos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: var(--black);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.video-item:hover {
    background: var(--gray-light);
    transform: translateX(5px);
}

.video-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.video-thumb-small {
    width: 120px;
    height: 80px;
    background: var(--blue-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.video-item-info {
    flex: 1;
}

.video-item-info h4 {
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.video-item-info span {
    color: var(--gray-dark);
    font-size: 0.85rem;
}

/* ============================================
   Photos Section (Page d'accueil)
   ============================================ */
.photos-section {
    background: var(--white);
    padding: 5rem 0;
}

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

.photo-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.photo-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.photo-card:hover .photo-image img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-info {
    color: var(--white);
}

.photo-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.photo-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   Galerie Page
   ============================================ */
.galerie-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--gray-light);
}

.galerie-header {
    text-align: center;
    margin-bottom: 3rem;
}

.galerie-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: var(--white);
    color: var(--blue-dark);
    border: 2px solid var(--blue-dark);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--blue-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

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

.galerie-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    background: var(--white);
    animation: fadeInUp 0.6s ease;
}

.galerie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.galerie-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

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

.galerie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.galerie-content {
    color: var(--white);
    flex: 1;
}

.galerie-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.galerie-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.galerie-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    background: rgba(231, 76, 60, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.galerie-zoom {
    width: 50px;
    height: 50px;
    background: var(--red);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.galerie-zoom:hover {
    background: #C0392B;
    transform: scale(1.1);
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

#lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--red);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: #C0392B;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(231, 76, 60, 0.8);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--red);
    transform: translateY(-50%) scale(1.1);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--blue-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

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

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    .nav-dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 0.5rem 0;
    }

    .dropdown-link {
        padding: 0.75rem 2rem;
        color: var(--white);
    }

    .dropdown-link:hover,
    .dropdown-link.active {
        background: rgba(255, 255, 255, 0.2);
        padding-left: 2.5rem;
    }

    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .nav-dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    .hero-title,
    .slide-title {
        font-size: 2rem;
    }

    .hero-subtitle,
    .slide-subtitle {
        font-size: 1.3rem;
    }

    .hero-description,
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-logo img {
        width: 120px;
        height: 120px;
    }
    
    .nav-brand .logo {
        height: 40px;
        width: 40px;
    }
    
    .video-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .formations-grid,
    .videos-grid,
    .photos-grid,
    .galerie-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .inscription-content,
    .video-content {
        grid-template-columns: 1fr;
    }

    .formation-preview,
    .other-videos {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .social-widgets-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Section Réseaux Sociaux
   ============================================ */
.social-media-section {
    padding: 80px 0;
    background: var(--gray-light);
}

.social-widgets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.social-widget {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.social-widget h3 {
    color: var(--blue-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-widget h3 i {
    color: var(--blue-light);
}

.facebook-widget h3 i {
    color: #1877F2;
}

.twitter-widget h3 i {
    color: #1DA1F2;
}

.social-widget .fb-page,
.social-widget .twitter-timeline {
    width: 100%;
    min-height: 600px;
}

@media (max-width: 768px) {
    .social-widgets-grid {
        grid-template-columns: 1fr;
    }

    .social-widget {
        padding: 1.5rem;
    }

    .social-widget .fb-page,
    .social-widget .twitter-timeline {
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

