/* ========================================== */
/* 1. RÉINITIALISATION ET BASE                */
/* ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body.modal-open {
    overflow: hidden;
}

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

/* ========================================== */
/* 2. NAVIGATION (NAVBAR)                     */
/* ========================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #357abd;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
}

/* Groupe Droit (Menu + Langue) */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-left: auto;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover, 
.nav-link.active {
    color: #357abd !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #357abd;
    transition: width 0.3s ease;
}

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

/* Sélecteur de langue */
.language-selector {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
}

.language-selector select {
    border: none;
    background: transparent;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    font-size: 0.85rem;
}

.language-selector i {
    color: #666;
    margin-right: 6px;
}

/* Hamburger mobile view icon framework */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 2001; 
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

/* Animation de l'icône Hamburger quand elle est active */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================== */
/* 3. HERO SECTION                            */
/* ========================================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1920') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    padding: 15px 40px;
    font-size: 1.2rem;
    background: #357abd;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(53, 122, 189, 0.4);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
    color: white;
    font-size: 2rem;
}

/* ========================================== */
/* 4. PRODUITS                                */
/* ========================================== */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #333;
}

.produits {
    background: #f8f9fa;
}

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

.produit-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.produit-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.produit-info {
    padding: 1.5rem;
}

.prix {
    font-size: 2rem;
    font-weight: bold;
    color: #357abd;
    margin: 1rem 0;
}

.btn-produit {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #357abd;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-produit:hover {
    background: #2a6196;
}

/* ========================================== */
/* 5. FENÊTRE VOLANTE (MODAL VOYAGE)          */
/* ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #fff;
    margin: 5vh auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    position: relative;
    animation: modalSlide 0.4s ease-out;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 25px; top: 15px;
    font-size: 35px; color: #999; cursor: pointer;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.registration-form {
    background: #f2f7fd;
    padding: 25px;
    border-radius: 15px;
}

.registration-form input, .registration-form select, .registration-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.form-group-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-submit-modal {
    width: 100%;
    padding: 15px;
    background: #357abd;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* ========================================== */
/* 5.2. LIGHTBOX DE LA GALERIE (ZOOM IMAGE)    */
/* ========================================== */
#galleryModal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2100;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

#galleryExpandedImg {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 85%;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    object-fit: contain;
    animation: modalSlide 0.3s ease-out;
}

.close-gallery {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    user-select: none;
}

.close-gallery:hover {
    color: #357abd;
    transform: scale(1.15);
}

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

/* ========================================== */
/* 6. GALERIE                                 */
/* ========================================== */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.galerie-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

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

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

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

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

/* ========================================== */
/* 7. CONTACT (ARRANGÉ ET PROPRE)             */
/* ========================================== */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-item i {
    font-size: 2rem;
    color: #357abd;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Formulaire de Contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #357abd;
}

.btn-submit {
    padding: 16px;
    background: #357abd;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* ========================================== */
/* 8. FOOTER ET ANIMATIONS                    */
/* ========================================== */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

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

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

/* ========================================== */
/* 9. RESPONSIVE                              */
/* ========================================== */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-right-group {
        margin-left: auto;
        gap: 1rem;
    }
    
    .hamburger {
        display: flex;
    }

    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        padding-top: 90px; 
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        width: 50%; 
        max-width: 300px;
        height: 100vh;
        text-align: left;
        padding-left: 40px;
        transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        box-shadow: 5px 0 25px rgba(0,0,0,0.15);
        z-index: 2000; 
        gap: 2.5rem;
    }

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

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
    }

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

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

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

    #galleryExpandedImg {
        max-width: 95%;
        max-height: 75%;
    }

    .close-gallery {
        top: 15px;
        right: 20px;
        font-size: 38px;
    }
}