/* ========== BASE STYLES ========== */
:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #212529;
    --white: #fff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgb(0 0 0 / 10%);
    --shadow-hover: 0 10px 25px rgb(0 0 0 / 20%);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #06c;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


body {
    font-family: Poppins, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    position: relative;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 20px;
    position: relative;
}

.divider::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 12px;
    background: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-white {
    /* Styles de base */
    display: inline-block;
    padding: 12px 24px;
    background-color: white;
    color: #06c;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
    transition: all 0.3s ease;

    /* Animation combinée */
    animation: bounceAndPulse 2s infinite ease-in-out;
}

/* Effet au survol */
.btn-white:hover {
    animation: bounceAndPulseFast 0.8s infinite ease-in-out;
    background-color: #f0f8ff;
}

/* Définition de l'animation - CORRIGEZ LES NOMS */
@keyframes bounceAndPulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
    }

    25% {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 6px 12px rgb(0 0 0 / 15%);
    }

    50% {
        transform: translateY(0) scale(1.05);
        box-shadow: 0 8px 16px rgb(0 0 0 / 20%);
    }

    75% {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 6px 12px rgb(0 0 0 / 15%);
    }
}

@keyframes bounceAndPulseFast {

    0%,
    100% {
        transform: translateY(0) scale(1.05);
        box-shadow: 0 6px 12px rgb(0 0 0 / 15%);
    }

    50% {
        transform: translateY(-10px) scale(1.1);
        box-shadow: 0 10px 20px rgb(0 0 0 / 25%);
    }
}

/* ========== PRELOADER ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 5px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 15px 0;
    background: rgb(255 255 255 / 95%);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-img {
    width: 100px;

    /* Changé de 60px à 80px */
    height: 100px;

    /* Changé de 60px à 80px */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-img img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 2.0rem;

    /* Augmenté de 1.5rem */
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.logo-subtitle {
    font-size: 1.0rem;

    /* Augmenté de 0.8rem */
    font-weight: 500;
    color: var(--primary);
    white-space: nowrap;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;

    /* Enlève les marges par défaut */
    padding: 0;

    /* Enlève les paddings par défaut */
    justify-content: flex-start;

    /* Aligne les éléments à gauche */
    margin-left: 150px
        /* Ajuste le décalage pour centrer le menu */
    ;
    margin-right: -150px;

    /* Ajuste le décalage pour centrer le menu */
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.2rem;
    position: relative;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}



/* ========== HERO SECTION ========== */

/* Hero Section avec slideshow */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    padding-top: 80px;
    margin-top: 100px;

}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 50%);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgb(0 0 0 / 50%);
}

/* Overlay sombre pour améliorer la lisibilité */
.hero-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 40%);
}

.scroll-down-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: rgb(0 0 0 / 50%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-down-btn.active {
    opacity: 1;
    visibility: visible;
}

.scroll-down-btn i {
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ========== ABOUT SECTION ========== */
.about-section {
    background: var(--white);
}

.about-text {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark);
}

.director-profile {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.director-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.director-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.director-image:hover .director-photo {
    transform: scale(1.05);
}

.director-info {
    flex: 1;
}

.director-name {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.director-title {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.director-bio {
    margin-bottom: 20px;
    color: var(--dark);
}

.signature-img {
    height: 50px;
    margin-top: 20px;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgb(52 152 219 / 10%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 3px;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-icon i {
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-description {
    color: var(--gray);
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-logo .logo-img {
    width: 100px;

    /* Changé de 60px à 80px */
    height: 100px;

    /* Changé de 60px à 80px */
    margin-top: auto;
}

.footer-logo .logo-title {
    color: var(--white);
    font-size: 1.6rem;

    /* Augmenté pour correspondre au header */
}

.footer-logo .logo-subtitle {
    color: rgb(255 255 255 / 80%);
    font-size: 0.8rem;

    /* Augmenté pour correspondre au header */
}

.footer-about-text {
    margin: 20px 0;
    color: rgb(255 255 255 / 70%);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgb(255 255 255 / 10%);
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-hours li {
    margin-bottom: 10px;
    color: rgb(255 255 255 / 70%);
    display: flex;
}

.footer-hours li span {
    display: inline-block;
    width: 150px;
    font-weight: 500;
    color: var(--white);
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: rgb(255 255 255 / 70%);
}



.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgb(255 255 255 / 10%);
    color: rgb(255 255 255 / 50%);
    font-size: 0.9rem;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* ========== ANIMATIONS ========== */
.animate {
    opacity: 0;
}

.animate.animated {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .btn-white {
        animation: bounceAndPulse 2s infinite ease-in-out;
    }
}

/* ========== RESPONSIVE STYLES ========== */

/* Stratégie mobile-first - On part du mobile puis on améliore pour les grands écrans */

/* Grands écrans (≥1200px) - Ajustements spécifiques */
@media (width >=1280px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* Tablettes paysage/petits écrans (992px-1199px) */
@media (width >=1260px) and (width <=1279.99px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .director-profile {
        gap: 30px;
    }

    .hero-slideshow {
        margin-top: 0;
    }
}

/* Tablettes portrait (≤991.98px) - Menu comme sur mobile */
@media (width <=1162.99px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero-slideshow {
        margin-top: 0;
    }

    section {
        padding: var(--section-padding);
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .director-profile {
        flex-direction: column;
    }

    .director-image {
        max-width: 450px;
        margin: 0 auto 30px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Styles du menu mobile pour tablettes portrait */
    .header-inner {
        position: relative;
    }

    /* Bouton menu mobile */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        padding: 0;
        cursor: pointer;
        z-index: 1002;
        background: transparent;
        border: none;
    }

    .mobile-menu-btn .menu-bar {
        display: block;
        width: 100%;
        height: 3px;
        background: #000;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Animation quand le menu est actif */
    .mobile-menu-btn.active .menu-bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .mobile-menu-btn.active .menu-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-btn.active .menu-bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* Navigation mobile */
    .navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: 5px 0 15px rgb(0 0 0 / 10%);
        z-index: 1001;
        transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        padding-top: 80px;
        overflow-y: auto;
    }

    .navigation.active {
        left: 0;
    }

    .navigation ul {
        flex-direction: column;
        gap: 0;
        margin-top: 0;
        padding: 20px;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-link::after {
        display: none;
    }

    /* Overlay quand menu ouvert */
    .navigation-overlay {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgb(0 0 0 / 50%);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .navigation-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Correction pour le header */
    .header {
        padding: 15px 0;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .logo-title {
        font-size: 1.4rem;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }


    /* Hero section */
    .hero {
        min-height: 600px;
        padding-top: 70px;
    }


    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
}

/* Petit mobiles/tablettes (576px-767.98px) */
@media (width <=767.98px) {
    :root {
        --section-padding: 60px 0;
    }


    .hero-slideshow {
        margin-top: 0;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col {
        margin-bottom: 25px;
    }

    .footer-logo .logo-img {
        width: 60px;
        height: 60px;
    }
}

/* Très petits mobiles (≤575.98px) */
@media (width <=575.98px) {
    :root {
        --section-padding: 50px 0;
    }

    .hero-slideshow {
        margin-top: 0;
    }

    /* Layout */
    .container {
        padding: 0 15px;
    }

    /* Typographie */
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Boutons */
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Logo */
    .logo-img {
        width: 50px;
        height: 50px;
    }

    .logo-title {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    /* CTA */
    .cta-title {
        font-size: 1.8rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 50px 0 0;
    }

    .footer-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .footer-logo .logo-img {
        width: 50px;
        height: 50px;
    }
}

/* Particularités très spécifiques */
@media (width <=400px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .logo-img {
        width: 45px;
        height: 45px;
    }

    .hero-slideshow {
        margin-top: 0;
    }
}