/* style.css - Tous les styles communs */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B4513;
    --secondary: #D4AF37;
    --dark: #2C1810;
    --light: #F5F5DC;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover, nav a.active {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('./uploads/carousel_689a47ff00363_facade actuelle.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

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

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background: var(--secondary);
    color: var(--dark);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

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

/* Présentation */
.presentation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.presentation-text {
    padding: 2rem;
}

.presentation-text h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.presentation-text p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.8;
}

.presentation-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.presentation-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* Carrousel d'Équipe Dirigeante */
.dirigeants-section {
    margin-top: 4rem;
}

.dirigeants-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    margin-top: 2rem;
}

.dirigeants-carousel {
    display: flex;
    gap: 2rem;
    animation: scrollLeft 30s linear infinite;
    padding: 1rem 0;
}

.dirigeants-carousel:hover {
    animation-play-state: paused;
}

.dirigeant-card {
    flex: 0 0 280px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.dirigeant-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.dirigeant-info {
    padding: 1.5rem;
    text-align: center;
}

.dirigeant-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.dirigeant-info p {
    color: #666;
    font-style: italic;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-280px * 6 - 2rem * 6));
    }
}

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

.carousel-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: var(--dark);
}

/* Section Vidéos */
.videos-section {
    margin-top: 6rem;
    background: linear-gradient(135deg, var(--light) 0%, #f9f5e7 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.videos-header h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.videos-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

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

.video-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

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

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.play-button:hover {
    background: var(--secondary);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.5rem;
}

.video-category {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.video-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.video-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.85rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

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

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

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

.filter-btn {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

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

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

.video-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    width: 90%;
    max-width: 900px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.9);
}

.modal-video-container {
    width: 100%;
    height: 500px;
    background: #000;
}

.modal-video-info {
    padding: 1.5rem;
}

.modal-video-title {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-video-description {
    color: #666;
    line-height: 1.6;
}

.youtube-channel {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--primary);
    border-radius: 15px;
    color: var(--white);
}

.youtube-channel h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.youtube-channel p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #FF0000;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.youtube-btn:hover {
    transform: translateY(-3px);
}

/* Annonces */
.annonces-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.annonce-card {
    background: var(--white);
    border-left: 5px solid var(--secondary);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
    transition: transform 0.3s;
}

.annonce-card:hover {
    transform: translateX(10px);
}

.annonce-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.annonce-title {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

.annonce-date {
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.annonce-details {
    color: #666;
    margin-top: 0.5rem;
}

.annonce-details p {
    margin-bottom: 0.5rem;
}

/* Actualités */
.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.actualite-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s;
}

.actualite-card:hover {
    transform: translateY(-5px);
}

.actualite-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.actualite-content {
    padding: 1.5rem;
}

.actualite-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.actualite-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.actualite-content p {
    color: #666;
    line-height: 1.6;
}

/* Historique */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--secondary);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    z-index: 1;
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.evolution-photo {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

.evolution-photo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.evolution-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.evolution-photo:hover .evolution-caption {
    transform: translateY(0);
}

/* École */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.classe-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s;
}

.classe-card:hover {
    transform: scale(1.03);
}

.classe-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.classe-info {
    padding: 1.5rem;
}

.classe-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.classe-details {
    color: #666;
    margin-bottom: 0.5rem;
}

.classe-details strong {
    color: var(--primary);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

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

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

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

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

.map-container {
    margin-top: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: var(--light);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

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

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

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    text-decoration: none;
    color: var(--white);
}

.social-icon:hover {
    background: var(--secondary);
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--dark);
        transition: left 0.3s;
        padding: 2rem 0;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 0 2rem;
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li a {
        display: block;
        padding: 1rem 0;
    }

    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .presentation {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-year {
        left: 20px;
        transform: translateX(-50%);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .actualites-grid,
    .classes-grid,
    .videos-container {
        grid-template-columns: 1fr;
    }

    .dirigeants-carousel {
        animation: scrollLeftMobile 30s linear infinite;
    }

    .modal-video-container {
        height: 300px;
    }

    .videos-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    @keyframes scrollLeftMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-280px * 3 - 2rem * 3));
        }
    }
}

@media (max-width: 480px) {
    .dirigeant-card {
        flex: 0 0 250px;
    }
    
    .video-thumbnail {
        height: 200px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .youtube-channel {
        padding: 1.5rem;
    }
}