    @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

    :root {
        --text-dark: #000000;
        --text-light: #767268;
        --extra-light: #f3f4f6;
        --white: #ffffff;
        --max-width: 1200px;
    }

    * {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .section__container {
        max-width: var(--max-width);
        margin: auto;
        padding: 5rem 1rem;
    }

    .section__subheader {
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-light);
        text-align: center;
    }

    .section__header {
        font-size: 3rem;
        font-weight: 700;
        color: var(--text-dark);
        text-align: center;
    }

    .section__description {
        font-weight: 500;
        color: var(--text-dark);
        line-height: 1.75rem;
        text-align: center;
        padding: 1rem 1rem;
    }

    .btn {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0.5rem 1.5rem;
        outline: none;
        border: none;
        font-size: 1rem;
        font-weight: 500;
        font-family: "Poppins", sans-serif;
        color: var(--white);
        background-color: var(--text-dark);
        border-radius: 5rem;
        transition: 0.3s;
        cursor: pointer;
    }

    .btn:hover {
        background-color: var(--text-light);
    }

    .fleet__images img {
        width: auto;
        height: 260px;
        flex-shrink: 0;
        object-fit: cover;
        border-radius: 1rem;
        box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
    }

    .fleet__wrapper-1 img {
        height: 280px;
    }

    .fleet__wrapper-2 img {
        height: 200px;
    }

    a {
        text-decoration: none;
        transition: 0.3s;
    }

    ul {
        list-style: none;
    }

    html,
    body {
        scroll-behavior: smooth;
    }

    body {
        font-family: "Poppins", sans-serif;
    }

    nav {
        position: fixed;
        isolation: isolate;
        width: 100%;
        z-index: 9;
    }

    .nav__header {
        padding: 1rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: var(--text-dark);
    }

    .nav__logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--white);
    }

    .nav__logo .logo {
        max-width: 160px;
    }

    .nav__menu__btn {
        font-size: 1.5rem;
        color: var(--white);
        cursor: pointer;
    }

    .nav__links {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        background-color: var(--text-dark);
        transition: transform 0.5s;
        z-index: -1;
    }

    .nav__links.open {
        transform: translateY(100%);
    }

    .nav__links a {
        font-weight: 500;
        color: var(--white);
        white-space: nowrap;
    }

    .nav__links a:hover {
        color: var(--text-light)
    }

    header {
        display: grid;
        padding-top: 8rem;
        overflow: hidden;
    }

    .header__image {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .header__image img {
        width: 100%;
        max-width: 750px;
        height: 500px;
        object-fit: contain;
    }

    .header__content {
        padding-block: 2rem 5rem;
        padding-inline: 1rem;
    }

    .header__content h1 {
        margin-bottom: 2rem;
        font-size: 4rem;
        font-weight: 700;
        color: var(--text-dark);
        text-align: center;
        line-height: 4rem;
    }

    .about__container {
        display: grid;
        gap: 2rem;
        overflow: hidden;
    }

    .about__image img {
        width: 100%;
        height: auto;
        margin-inline: auto;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .about__content .section__description {
        margin-block: 1rem;
    }

    .about__btn {
        margin-top: 2rem;
        display: flex;
        justify-content: center;
    }

    .fleet__container {
        padding-block: 5rem;
    }

    .fleet__container :is(.section__subheader, .section__header) {
        padding-inline: 1rem;
    }

    .fleet__container .section__description {
        max-width: 900px;
        margin-inline: auto;
        margin-bottom: 4rem;
        padding-inline: 1rem;
    }

    .fleet__wrapper-1 {
        margin-bottom: 1rem;
    }

    .fleet__wrapper-1,
    .fleet__wrapper-2 {
        overflow-x: hidden;
    }

    .fleet__images {
        width: max-content;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .fleet__wrapper-1 .fleet__images {
        animation: scroll-left 45s linear infinite;
    }

    .fleet__wrapper-2 .fleet__images {
        animation: scroll-right 45s linear infinite;
    }

    .fleet__images img {
        border-radius: 1rem;
        box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
    }

    .fleet-wrapper-1 .fleet__images img {
        max-width: 450px;
    }

    .fleet-wrapper-2 .fleet__images img {
        max-width: 300px;
    }

    @keyframes scroll-left {
        to {
            transform: translateX(calc(-50% - 0.5rem));
        }
    }


    .appartements-section{
        background-color: #ffffff;
        padding: 5rem 1rem;
        max-width: var(--max-width);
        margin: 0 auto;
    }

    .appart__header{
        text-align: center;
        margin-bottom: 3rem;
    }

    .appart__header h2{
        font-size: 2.2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 0.6rem;
    }

    .appart-header p {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
    text-align: center;
    padding: 2rem 2rem;
    }

    .appart-grid {
    display: grid;
    grid-template-columns: minmax(300px, 380px); /* Largeur réduite et optimisée */
    gap: 2.5rem;
    justify-content: center; /* Centrage horizontal critique */
    margin: 0 auto;
    max-width: 850px; /* Contrainte pour centrer sur écran large */
    padding: 0 1rem;
    }

    @media (min-width: 768px) {
        .appart-grid {
            grid-template-columns: repeat(2, minmax(300px, 380px)); /* 2 cartes plus compactes */
            gap: 3rem;
        }
    }


    .appart-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    }

    .carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px 12px 0 0; /* Arrondi cohérent avec la card */
    }

    .carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
    /* Important : pas de gap ici */
    }

    .carousel-track img {
    min-width: 100%;   /* Chaque image prend 100% de la largeur du carousel */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;    /* Empêche les images de rétrécir */
    display: block;    /* Évite l'espace blanc sous les images */
    }

    .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
    z-index: 2;
    color: #1a1a1a;
    }

    .carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    }

    .carousel-btn.prev { left: 12px; }
    .carousel-btn.next { right: 12px; }

    .appart-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    }

    /* Titre propriété */
    .appart-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    }

    .appart-highlight {
    color: #a32a5a;
    font-weight: 700;
    }

    /* Grille caractéristiques */
    .appart-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1rem;
    padding: 0;
    margin: 0;
    }

    .appart-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 400;
    }

    .appart-features li svg {
    flex-shrink: 0;
    color: #6b7280;
    }

    /* Bouton CTA */
    .appart-btn {
    display: block;
    text-align: center;
    background-color: #a32a5a;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: background 0.3s, transform 0.2s;
    }

    .appart-btn:hover {
    background-color: #881f4a;
    transform: translateY(-2px);
    }




    .feature__grid {
        margin-top: 2rem;
        display: grid;
        gap: 1rem;
    }

    .feature__card {
        padding: 1rem;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        border-radius: 1rem;
        border: 2px solid rgba(0, 0, 0, 0.1);
    }

    .feature__card span {
        display: inline-block;
        padding: 5px 11px;
        font-size: 1.5rem;
        color: var(--text-light);
        border-radius: 100%;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .feature__card:nth-child(1) span {
        background-color: #fef2f2;
    }

    .feature__card:nth-child(2) span {
        background-color: #f0fdf4;
    }

    .feature__card:nth-child(3) span {
        background-color: #eff6ff;
    }

    .feature__card:nth-child(4) span {
        background-color: #fefce8;
    }

    .feature__card h4 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-dark);
    }

    @keyframes scroll-right {
        from {
            transform: translateX(calc(-50% - 0.5rem));
        }
    }

    .banner__container {
        background-color: var(--text-dark);
        border-radius: 1.5rem;
    }

    #feature {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 1rem;  /* espace blanc haut et bas */
    }

    .banner__container .section__header {
        max-width: 700px;
        margin-inline: auto;
        margin-bottom: 1rem;
        color: var(--white);
    }

    .banner__container .section__description {
        max-width: 500px;
        margin-inline: auto;
        margin-bottom: 2rem;
        color: white;
    }

    .banner__btn {
        display: flex;
        justify-content: center;
    }

    .banner__btn .btn {
        color: var(--text-dark);
        background-color: var(--white);
    }

    /* RENTALS SECTION */
    .rentals .heading {
        text-align: center;
    }

    .heading p {
        max-width: 550px;
        width: 100%;
        font-size: 0.9rem;
        font-family: "Poppins", sans-serif;
        margin: 1rem auto;
    }

    .rentals-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, auto));
        gap: 1.5rem;
    }

    .rental-box {
        background: #f5f0e6;
        padding: 24px;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 340px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .rental-box img {
        width: 100%;
        height: 130px;
        object-fit: contain;
        margin: 10px 0;
    }

    .price-btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .rental-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }

    .rental-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

    .rental-top h3 {
        background: #ffffff;
        padding: 6px 14px;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: #1a1a1a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .price-btn p {
        font-size: 1.1rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
    }

    .price-btn p span {
        font-size: 0.9rem;
        font-weight: 400;
        color: #666;
        margin-left: 4px;
    }

    .rental-btn {
        background: #1a1a1a;
        color: #ffffff;
        padding: 10px 24px;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 2px solid #1a1a1a;
        cursor: pointer;
        display: inline-block;
    }

    .rental-btn:hover {
        background: #ffffff;
        color: #1a1a1a;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .rental-box h2 {
        font-size: 1.4rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 8px 0 4px 0;
        line-height: 1.2;
    }

    .rental-box h4 {
        font-size: 0.95rem;
        font-weight: 400;
        color: #666;
        margin-bottom: auto;
    
    }

    .rental-top i {
        font-size: 1.3rem;
        color: #999;
        cursor: pointer;
        transition: color 0.3s, transform 0.2s;
    }

    .rental-top i:hover {
        color: #e74c3c;
        transform: scale(1.1);
    }

    /* FOOTER DARK PROFESSIONNEL */
    footer {
        background-color: #0a0a0a;
        color: #ffffff;
        padding: 60px 0 0;
        margin-top: 4rem;
        font-family: "Poppins", sans-serif;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
        padding-left: 3rem; 
    }

    

    .footer-col h2, .footer-col h3 {
        color: #ffffff;
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        letter-spacing: 0.5px;
    }

    .footer-logo {
        font-size: 1.5rem;
        font-weight: 800;
        margin-bottom: 1rem;
        color: #ffffff;
    }

    .footer-address, .footer-list {
        color: #9ca3af;
        font-size: 0.95rem;
        line-height: 1.8;
        list-style: none;
    }

    .footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    }

    /* Ajouter pour séparer jour et heure visuellement */

    .footer-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    }



    .footer-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-links a {
        color: #8b5cf6;
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s;
    }

    .footer-links a:hover {
        color: #ffffff;
        padding-left: 5px;
    }

    .social-links {
        display: flex;
        gap: 12px;
        margin-top: 1.5rem;
    }

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #f97316;
        color: #ffffff;
        border-radius: 50%;
        text-decoration: none;
        font-size: 1.2rem;
        transition: transform 0.3s, background 0.3s;
    }

    .social-links a:hover {
        transform: translateY(-3px);
        background: #ea580c;
    }

    .footer-bottom {
        text-align: center;
        margin-top: 4rem;
        padding: 2rem;
        border-top: 1px solid #1f2937;
        color: #6b7280;
        font-size: 0.9rem;
        background-color: #0a0a0a;
    }

    /* MEDIA QUERIES */
    @media (width > 540px) {
        .header__content h1 {
            font-size: 5rem;
            line-height: 5rem;
        }

        .feature__grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (width > 768px) {
        nav {
            position: static;
            padding: 0.50rem 1rem 1rem;
            max-width: var(--max-width);
            margin-inline: auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .nav__header {
            flex: 1;
            padding: 0;
            background-color: var(--white);
        }

        .nav__logo {
            font-size: 1.2rem;
            color: var(--text-dark);
        }

        .nav__logo .logo {
            max-width: 160px;
            display: block;
        }

        .nav__menu__btn {
            display: none;
        }

        .nav__links {
            position: static;
            width: fit-content;
            padding: 0;
            flex-direction: row;
            background-color: transparent;
            transform: none !important;
        }

        .nav__links a {
            color: var(--text-dark);
        }

        header {
            padding-block: 0 3rem;
            grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--max-width) / 2)) minmax(0, calc(var(--max-width) / 2)) minmax(0, 1fr);
        }

        .header__image {
            grid-column: 3/5;
            position: relative;
            isolation: isolate;
            height: 100%;
            background-image: url("assets/images/header.png");
            background-position: center center;
            background-size: cover;
            background-repeat: no-repeat;
        }

        .header__content {
            grid-area: 1/2/2/3;
            padding-block: 2rem;
        }

        .header__content :is(h1, .section__description) {
            text-align: left;
        }

        .header__content h1 {
            font-size: 3.8rem;
            line-height: 4.2rem;
            font-weight: 600;
        }

        .about__container {
            grid-template-columns: repeat(2, 1fr);
            align-items: center;
        }

        .about__image {
            width: 100%;
            height: 100%;
        }

        .about__image img {
            width: 100%;
            min-height: 550px;
            max-height: 650px;
            object-fit: cover;
        }

        .about__content :is(.section__subheader, .section__header, .section__description) {
            text-align: left;
        }

        .about__btn {
            justify-content: flex-start;
        }

        .fleet-wrapper-1 {
            margin-bottom: 2rem;
        }

        .fleet__images {
            gap: 2rem;
        }

        .fleet__images img {
            border-radius: 1.5rem;
        }

        .feature__container :is(.section__subheader, .section__header, .section__description) {
            text-align: left;
        }

        .fleet__container .section__description {
            max-width: 600px;
        }

        .feature__grid {
            margin-top: 2rem;
            display: grid;
            gap: 1.5rem;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            justify-content: center;
            max-width: 1000px;
            margin-inline: auto;
        }
    }

    
    @media (width > 1024px) {
        .feature__card {
            padding: 1.5rem;
        }
    }

    /* Responsive Footer */
    @media (max-width: 968px) {
        .footer-container {
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
        }
    }

    @media (max-width: 540px) {
        .footer-container {
            grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur petit écran */
            padding: 0 1.5rem;
        }
        
        .feature__grid {
            grid-template-columns: 1fr;
        }
    }


    /* ============================================
   LIGHTBOX GALLERY - ES SAFIR
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

/* Bouton fermeture */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* Compteur */
.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 20px;
}

/* Curseur pointeur sur les images cliquables */
.carousel-track img {
    cursor: zoom-in;
    transition: transform 0.3s;
}

.carousel-track img:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    .lightbox-prev { left: 15px; }
    .lightbox-next { right: 15px; }
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}