/* ===================================================
   RESET & VARIABLES
=================================================== */
:root{
    --primary:#c41e3a;
    --primary-dark:#9f1730;
    --primary-light:#e63946;

    --secondary:#0f172a;
    --secondary-light:#1e293b;

    --white:#ffffff;

    --gray-50:#f8fafc;
    --gray-100:#f1f5f9;
    --gray-200:#e2e8f0;
    --gray-300:#cbd5e1;
    --gray-500:#64748b;
    --gray-700:#334155;
    --gray-900:#0f172a;

    --shadow-sm:0 4px 10px rgba(0,0,0,.05);
    --shadow-md:0 10px 25px rgba(0,0,0,.08);
    --shadow-lg:0 18px 40px rgba(0,0,0,.12);

    --radius-sm:10px;
    --radius-md:18px;
    --radius-lg:24px;

    --transition:.3s ease;
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:var(--white);
    color:var(--gray-900);
    line-height:1.6;
    overflow-x:hidden;
}

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

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

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

/* ===================================================
   BUTTONS
=================================================== */
.btn-primary,
.btn-outline-primary,
.btn-outline-light{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:none;
    cursor:pointer;
    font-weight:600;
    transition:var(--transition);
    border-radius:50px;
    font-size:.92rem;
}

.btn-primary{
    background:var(--primary);
    color:var(--white);
    padding:13px 28px;
}

.btn-primary:hover{
    background:var(--primary-dark);
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(196,30,58,.25);
}

.btn-outline-primary{
    border:2px solid var(--primary);
    color:var(--primary);
    background:transparent;
    padding:11px 24px;
}

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

.btn-outline-light{
    border:2px solid var(--white);
    color:var(--white);
    background:transparent;
    padding:12px 26px;
}

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

    /* ========== NAVBAR STYLES ========== */
    .navbar {
        background: white;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        height: 70px;
    }
    
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 70px;
    }
    
    /* Logo */
    .nav-logo a {
        display: flex;
        align-items: center;
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: 800;
        color: #0f172a;
        gap: 8px;
    }
    
    .nav-logo a i {
        color: #c41e3a;
        font-size: 1.8rem;
    }
    
    .nav-logo a span span {
        color: #c41e3a;
    }
    
    /* Menu central */
    .nav-menu {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .nav-links {
        display: flex;
        list-style: none;
        gap: 5px;
        margin: 0;
        padding: 0;
    }
    
    .nav-links li a {
        text-decoration: none;
        color: #475569;
        font-size: 0.9rem;
        font-weight: 500;
        padding: 8px 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .nav-links li a:hover {
        color: #c41e3a;
        background: rgba(196, 30, 58, 0.05);
    }
    
    .nav-links li a.active {
        color: #c41e3a;
        background: rgba(196, 30, 58, 0.1);
        font-weight: 600;
    }
    
    .nav-links li a.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 3px;
        background: #c41e3a;
        border-radius: 3px;
    }
    
    /* Boutons à droite */
    .nav-buttons {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .btn-outline-primary {
        text-decoration: none;
        color: #c41e3a;
        border: 2px solid #c41e3a;
        padding: 8px 20px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.85rem;
        transition: all 0.3s ease;
    }
    
    .btn-outline-primary:hover {
        background: #c41e3a;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
    }
    
    .btn-primary {
        text-decoration: none;
        background: #c41e3a;
        color: white;
        padding: 8px 20px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.85rem;
        transition: all 0.3s ease;
    }
    
    .btn-primary:hover {
        background: #a01830;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    }
    
    /* ========== MENU UTILISATEUR CONNECTÉ ========== */
    .user-menu {
        display: flex;
        align-items: center;
        gap: 15px;
        background: #f8fafc;
        padding: 6px 6px 6px 18px;
        border-radius: 50px;
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
    }
    
    .user-menu:hover {
        border-color: #c41e3a;
        box-shadow: 0 2px 10px rgba(196, 30, 58, 0.1);
    }
    
    .user-name {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        color: #0f172a;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .user-name::before {
        content: '';
        width: 35px;
        height: 35px;
        background: linear-gradient(135deg, #c41e3a, #a01830);
        border-radius: 50%;
        display: inline-block;
        /* Alternative avec initiales */
        background-image: none;
    }
    
    /* Version avec avatar/initiales */
    .user-avatar {
        width: 35px;
        height: 35px;
        background: linear-gradient(135deg, #c41e3a, #a01830);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    .user-menu .btn-outline-primary {
        padding: 7px 16px;
        font-size: 0.8rem;
        border-radius: 25px;
        white-space: nowrap;
    }
    
    /* Menu toggle mobile */
    .nav-toggle {
        display: none;
        cursor: pointer;
        font-size: 1.5rem;
        color: #475569;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover {
        background: #f1f5f9;
        color: #c41e3a;
    }
    
    /* ========== RESPONSIVE ========== */
    @media (max-width: 1024px) {
        .nav-menu {
            position: fixed;
            top: 70px;
            left: 0;
            right: 0;
            background: white;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transform: translateY(-150%);
            transition: transform 0.3s ease;
            z-index: 999;
        }
        
        .nav-menu.active {
            transform: translateY(0);
        }
        
        .nav-links {
            flex-direction: column;
            gap: 5px;
        }
        
        .nav-links li a {
            display: block;
            padding: 12px 16px;
            border-radius: 10px;
        }
        
        .nav-toggle {
            display: block;
        }
        
        .user-menu {
            padding: 6px 12px;
        }
        
        .user-name {
            font-size: 0.8rem;
        }
    }
    
    @media (max-width: 768px) {
        .nav-buttons {
            gap: 8px;
        }
        
        .btn-outline-primary, 
        .btn-primary {
            padding: 6px 14px;
            font-size: 0.8rem;
        }
        
        .user-menu {
            padding: 5px 5px 5px 12px;
            gap: 10px;
        }
        
        .user-name {
            font-size: 0.75rem;
        }
        
        .user-name::before {
            width: 30px;
            height: 30px;
        }
        
        .user-menu .btn-outline-primary {
            padding: 5px 12px;
            font-size: 0.75rem;
        }
    }
    
    @media (max-width: 480px) {
        .navbar {
            height: 60px;
        }
        
        .nav-container {
            height: 60px;
        }
        
        .nav-logo a {
            font-size: 1.2rem;
        }
        
        .nav-logo a i {
            font-size: 1.4rem;
        }
        
        .user-menu {
            padding: 4px 4px 4px 10px;
            gap: 8px;
        }
        
        .user-name {
            font-size: 0.7rem;
            max-width: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }



/* ===================================================
   HERO
=================================================== */
.hero{
    position:relative;
    height:92vh;
    min-height:650px;
    margin-top:78px;
    overflow:hidden;
}

.hero-slider,
.hero-slide{
    width:100%;
    height:100%;
}

.hero-slide{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity .7s ease;
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    justify-content:center;
}

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

.hero-slide::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(
        135deg,
        rgba(0,0,0,.75),
        rgba(0,0,0,.45)
    );
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:860px;
    text-align:center;
    padding:20px;
}

.hero-badge{
    display:inline-block;
    background:var(--primary);
    color:var(--white);
    padding:7px 18px;
    border-radius:50px;
    font-size:.8rem;
    font-weight:600;
    margin-bottom:22px;
}

.hero-title{
    font-size:3.4rem;
    line-height:1.15;
    font-weight:800;
    color:var(--white);
    margin-bottom:20px;
}

.hero-highlight{
    color:var(--primary-light);
}

.hero-description{
    color:rgba(255,255,255,.9);
    font-size:1rem;
    max-width:700px;
    margin:auto;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:16px;
    margin-top:32px;
}

.slider-prev,
.slider-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:48px;
    height:48px;
    border-radius:50%;
    background:rgba(255,255,255,.2);
    color:var(--white);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:10;
    transition:var(--transition);
}

.slider-prev{
    left:20px;
}

.slider-next{
    right:20px;
}

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

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

.slider-dot{
    width:10px;
    height:10px;
    border-radius:50px;
    background:rgba(255,255,255,.5);
    cursor:pointer;
    transition:var(--transition);
}

.slider-dot.active{
    width:30px;
    background:var(--primary);
}

/* ===================================================
   SECTION GLOBAL
=================================================== */
section{
    padding:80px 0;
}

.section-header{
    text-align:center;
    margin-bottom:50px;
}

.section-badge{
    display:inline-block;
    background:rgba(196,30,58,.1);
    color:var(--primary);
    padding:6px 15px;
    border-radius:50px;
    font-size:.8rem;
    font-weight:600;
    margin-bottom:14px;
}

.section-title{
    font-size:2.3rem;
    font-weight:800;
    color:var(--gray-900);
    margin-bottom:14px;
}

.section-title span{
    color:var(--primary);
}

.section-description{
    max-width:700px;
    margin:auto;
    color:var(--gray-500);
}

/* ===================================================
   STATS
=================================================== */
.stats{
    background:var(--gray-50);
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.stat-card{
    background:var(--white);
    border-radius:var(--radius-md);
    padding:35px 20px;
    text-align:center;
    box-shadow:var(--shadow-sm);
    transition:var(--transition);
}

.stat-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow-md);
}

.stat-number{
    font-size:2.6rem;
    font-weight:800;
    color:var(--primary);
}

.stat-label{
    color:var(--gray-500);
    margin-top:8px;
    font-size:.92rem;
}

/* =========================
   SECTION ETABLISSEMENTS
========================= */

.featured-etablissements {
    padding: 60px 0;
    overflow: hidden;
}

/* SWIPER */
.etablissementsSwiper {
    padding: 10px 5px 50px;
}


/* CARD */
.etablissement-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    height: auto;
}

.etablissement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* IMAGE */
.etablissement-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.etablissement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

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

/* OVERLAY */
.etablissement-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c41e3a;
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* INFO */
.etablissement-info {
    padding: 22px;
}

.etablissement-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.etablissement-location {
    color: #64748b;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.etablissement-location i {
    color: #c41e3a;
}

/* STATS */
.etablissement-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.etablissement-stats span {
    font-size: 0.85rem;
    color: #475569;
}

.etablissement-stats i {
    color: #c41e3a;
}

/* PAGINATION */
.swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #c41e3a;
}

/* NAVIGATION */
.swiper-button-next,
.swiper-button-prev {
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    color: #c41e3a;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

/* BUTTON */
.featured-btn {
    text-align: center;
    margin-top: 20px;
}

/* MOBILE */
@media (max-width: 768px) {

    .featured-etablissements {
        padding: 40px 0;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

}

/* ===================================================
   MOTIVATION
=================================================== */
.motivation{
    background:var(--gray-50);
}

.motivation-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.motivation-features{
    margin-top:28px;
}

.feature{
    display:flex;
    gap:14px;
    margin-bottom:22px;
}

.feature-icon{
    color:var(--primary);
    font-size:1.3rem;
}

.feature-text{
    color:var(--gray-500);
}

.image-wrapper{
    overflow:hidden;
    border-radius:28px;
    box-shadow:var(--shadow-lg);
}

.image-badge{
    position:absolute;
    left:20px;
    bottom:20px;
    background:var(--white);
    padding:12px 20px;
    border-radius:50px;
    box-shadow:var(--shadow-sm);
    font-weight:700;
}

/* ===================================================
   DOMAINES - IMAGE EN HAUT, TEXTE EN BAS
=================================================== */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.domain-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(196, 30, 58, 0.15);
}

/* Image en haut */
.domain-image {
    height: 180px;
    overflow: hidden;
    background: #f1f5f9;
}

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

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

/* Contenu en bas */
.domain-content {
    padding: 20px;
    background: white;
}

.domain-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
}

.domain-card p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.domain-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.domain-count {
    color: #64748b;
    font-size: 0.75rem;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
}

.domain-link {
    color: #c41e3a;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.domain-link:hover {
    color: #a01830;
    transform: translateX(3px);
}

.domain-link.disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .domains-grid {
        gap: 20px;
    }
    
    .domain-image {
        height: 160px;
    }
    
    .domain-content {
        padding: 15px;
    }
    
    .domain-card h3 {
        font-size: 1rem;
    }
}

/* ===================================================
   WHY US
=================================================== */
.why-us{
    background:var(--gray-50);
}

.why-us-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.why-card{
    background:var(--white);
    padding:35px 25px;
    border-radius:22px;
    text-align:center;
    transition:var(--transition);
}

.why-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow-md);
}

.why-icon{
    color:var(--primary);
    font-size:2.3rem;
    margin-bottom:18px;
}

.why-card p{
    color:var(--gray-500);
    font-size:.92rem;
}

/* ===================================================
   CTA
=================================================== */
.cta-big{
    background:linear-gradient(
        135deg,
        var(--secondary),
        #050816
    );
    text-align:center;
    color:var(--white);
}

.cta-big h2{
    font-size:2.4rem;
    margin-bottom:14px;
}

.cta-big span{
    color:var(--primary-light);
}

.cta-big p{
    opacity:.9;
}

.cta-big-buttons{
    display:flex;
    justify-content:center;
    gap:16px;
    margin-top:30px;
}

/* ===================================================
   FOOTER
=================================================== */
.footer{
    background:var(--secondary);
    color:#94a3b8;
    padding:70px 0 20px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1.5fr;
    gap:40px;
    margin-bottom:40px;
}

.footer-brand h2{
    color:var(--white);
    margin-bottom:14px;
}

.footer-brand span{
    color:var(--primary);
}

.footer-brand p{
    font-size:.9rem;
}

.footer-social{
    display:flex;
    gap:14px;
    margin-top:20px;
}

.footer-social a{
    color:#94a3b8;
    font-size:1.1rem;
    transition:var(--transition);
}

.footer-social a:hover{
    color:var(--primary);
}

.footer-links h4{
    color:var(--white);
    margin-bottom:18px;
}

.footer-links li{
    margin-bottom:10px;
}

.footer-links a{
    color:#94a3b8;
    transition:var(--transition);
}

.footer-links a:hover{
    color:var(--primary);
}

.newsletter-form{
    display:flex;
    margin-top:16px;
}

.newsletter-form input{
    flex:1;
    border:none;
    outline:none;
    padding:14px 16px;
    border-radius:40px 0 0 40px;
    background:rgba(255,255,255,.08);
    color:var(--white);
}

.newsletter-form button{
    border:none;
    background:var(--primary);
    color:var(--white);
    padding:0 22px;
    border-radius:0 40px 40px 0;
    cursor:pointer;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.08);
    padding-top:20px;
    text-align:center;
    font-size:.8rem;
}

/* ===================================================
   CHAT
=================================================== */
.chat-bubble{
    position:fixed;
    right:25px;
    bottom:25px;
    z-index:999;
    background:var(--primary);
    border-radius:50px;
    padding:12px 18px;
    display:flex;
    align-items:center;
    gap:12px;
    cursor:pointer;
    box-shadow:var(--shadow-lg);
    transition:var(--transition);
}

.chat-bubble:hover{
    transform:scale(1.05);
}

.chat-bubble-icon i{
    color:var(--white);
    font-size:1.4rem;
}

.chat-bubble-preview strong{
    color:var(--white);
    font-size:.82rem;
}

.chat-bubble-preview p{
    color:rgba(255,255,255,.8);
    font-size:.72rem;
}

.chat-badge{
    position:absolute;
    top:-4px;
    right:-4px;
    width:18px;
    height:18px;
    border-radius:50%;
    background:var(--white);
    color:var(--primary);
    font-size:.65rem;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

/* ===================================================
   SEARCH MODAL
=================================================== */
.search-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.8);
    z-index:1200;
    display:none;
    align-items:center;
    justify-content:center;
}

.search-modal-content{
    width:90%;
    max-width:760px;
    background:var(--white);
    border-radius:28px;
    overflow:hidden;
    animation:fadeIn .3s ease;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:scale(.95);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

.search-modal-header{
    padding:24px 28px;
    border-bottom:1px solid var(--gray-200);
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.search-modal-close{
    background:none;
    border:none;
    font-size:1.8rem;
    cursor:pointer;
}

.search-modal-body{
    padding:28px;
}

.search-filters{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.filter-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.filter-group.full-width{
    grid-column:span 2;
}

.filter-group label{
    font-size:.88rem;
    font-weight:600;
    color:var(--gray-700);
}

.filter-input{
    border:1px solid var(--gray-200);
    border-radius:12px;
    padding:12px 14px;
    outline:none;
    transition:var(--transition);
}

.filter-input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(196,30,58,.1);
}

.search-buttons{
    display:flex;
    justify-content:flex-end;
    gap:14px;
    margin-top:24px;
}

/* ===================================================
   UTILITIES
=================================================== */
.text-center{
    text-align:center;
}

.mt-4{
    margin-top:30px;
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media(max-width:992px){

    .hero-title{
        font-size:2.6rem;
    }

    .stats-grid,
    .why-us-grid{
        grid-template-columns:repeat(2,1fr);
    }

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

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

@media(max-width:768px){

    .container{
        padding:0 20px;
    }

    .nav-toggle{
        display:block;
    }

    .nav-menu{
        position:fixed;
        top:74px;
        left:-100%;
        width:75%;
        height:100vh;
        background:var(--white);
        flex-direction:column;
        justify-content:flex-start;
        padding:40px 25px;
        transition:var(--transition);
        box-shadow:0 10px 30px rgba(0,0,0,.08);
    }

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

    .nav-links{
        flex-direction:column;
        align-items:flex-start;
        gap:22px;
    }

    .nav-buttons{
        flex-direction:column;
        width:100%;
        margin-top:30px;
    }

    .hero{
        min-height:580px;
        height:88vh;
    }

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

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

    .stats-grid,
    .why-us-grid{
        grid-template-columns:1fr;
    }

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

    .filter-group.full-width{
        grid-column:span 1;
    }

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

    .slider-prev,
    .slider-next{
        display:none;
    }
}

@media(max-width:480px){

    .hero-title{
        font-size:1.7rem;
    }

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

    .chat-bubble-preview{
        display:none;
    }

    .chat-bubble{
        padding:14px;
        border-radius:50%;
    }
}

.swiper,
.swiper-wrapper,
.swiper-slide {
    height: auto !important;
}

.etablissementsSwiper {
    overflow: hidden;
    padding-bottom: 20px !important;
}

.swiper-wrapper {
    align-items: flex-start !important;
}

.swiper-slide {
    display: flex;
}

.etablissement-card {
    height: auto !important;
    width: 100%;
}


/* ========== STYLES CHAT FLOTTANT ========== */
    .chat-floating-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 65px;
        height: 65px;
        border-radius: 50%;
        background: linear-gradient(135deg, #c41e3a, #a01830);
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
        transition: all 0.3s ease;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: pulse 2s infinite;
    }
    
    .chat-floating-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(196, 30, 58, 0.6);
    }
    
    .chat-tooltip {
        position: absolute;
        right: 75px;
        background: #1e293b;
        color: white;
        padding: 8px 15px;
        border-radius: 50px;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        pointer-events: none;
        font-family: 'Inter', sans-serif;
    }
    
    .chat-tooltip::after {
        content: '';
        position: absolute;
        right: -8px;
        top: 50%;
        transform: translateY(-50%);
        border-left: 8px solid #1e293b;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
    }
    
    .chat-floating-btn:hover .chat-tooltip {
        opacity: 1;
        visibility: visible;
        right: 80px;
    }
    
    .chat-notification-badge {
        position: absolute;
        top: -3px;
        right: -3px;
        background: #00b4d8;
        color: white;
        border-radius: 50%;
        width: 14px;
        height: 14px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: blink 1.5s infinite;
    }
    
    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4); }
        70% { box-shadow: 0 0 0 12px rgba(196, 30, 58, 0); }
        100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0); }
    }
    
    @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
    }
    
    /* Modal Chat */
    .chat-modal {
        display: none;
        position: fixed;
        bottom: 110px;
        right: 30px;
        width: 380px;
        height: 520px;
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        z-index: 10000;
        overflow: hidden;
        font-family: 'Inter', sans-serif;
    }
    
    .chat-modal.show {
        display: block;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .chat-modal-content {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .chat-modal-header {
        background: linear-gradient(135deg, #1e293b, #0f172a);
        color: white;
        padding: 18px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .chat-header-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .chat-header-info i {
        font-size: 32px;
        background: rgba(255,255,255,0.2);
        padding: 8px;
        border-radius: 12px;
    }
    
    .chat-header-info h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }
    
    .chat-header-info p {
        margin: 4px 0 0;
        font-size: 11px;
        opacity: 0.8;
    }
    
    .chat-close {
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.3s;
    }
    
    .chat-close:hover {
        opacity: 1;
    }
    
    .chat-modal-body {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        background: #f8fafc;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .chat-message {
        display: flex;
        gap: 10px;
        animation: fadeIn 0.3s ease;
    }
    
    .chat-message.user {
        justify-content: flex-end;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
        background: linear-gradient(135deg, #c41e3a, #a01830);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .message-avatar i {
        color: white;
        font-size: 18px;
    }
    
    .message-bubble {
        max-width: 70%;
        padding: 10px 14px;
        background: white;
        border-radius: 15px;
        font-size: 13px;
        line-height: 1.5;
        color: #1e293b;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    
    .user-bubble {
        background: linear-gradient(135deg, #c41e3a, #a01830);
        color: white;
    }
    
    .chat-modal-footer {
        border-top: 1px solid #e2e8f0;
        background: white;
    }
    
    .chat-options {
        display: flex;
        gap: 8px;
        padding: 12px 15px;
        overflow-x: auto;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .chat-option-btn {
        background: #f1f5f9;
        border: none;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 11px;
        cursor: pointer;
        transition: all 0.3s;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .chat-option-btn i {
        font-size: 10px;
    }
    
    .chat-option-btn:hover {
        background: #c41e3a;
        color: white;
    }
    
    .chat-input-area {
        display: flex;
        gap: 10px;
        padding: 15px;
    }
    
    .chat-input-area input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid #e2e8f0;
        border-radius: 25px;
        outline: none;
        font-size: 13px;
    }
    
    .chat-input-area input:focus {
        border-color: #c41e3a;
    }
    
    .chat-input-area button {
        background: #c41e3a;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .chat-input-area button:hover {
        background: #a01830;
        transform: scale(1.05);
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @media (max-width: 768px) {
        .chat-modal {
            width: calc(100vw - 40px);
            right: 20px;
            bottom: 90px;
            height: 480px;
        }
        
        .chat-floating-btn {
            bottom: 20px;
            right: 20px;
            width: 55px;
            height: 55px;
            font-size: 24px;
        }
        
        .chat-tooltip {
            display: none;
        }
    }
