/* --- Réinitialisation de base et police --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    background: linear-gradient(135deg, #4b0082, #2a2a72, #a83279);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Classe "Glassy" (Glassmorphisme) --- */
.glassy {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

/* --- Barre de Navigation --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.navbar .logo img {
    height: 180px; /* Votre nouvelle taille */
    width: auto;
    display: block; 
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #f0f0f0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #ffffff;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Sélecteur de langue */
.lang-switcher {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 2.5rem;
}

.lang-switcher li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lang-switcher li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-switcher li a.active {
    color: #ffffff;
    font-weight: 700;
}

/* --- NOUVEAU : Système de menu Hamburger --- */
.nav-toggle {
    display: none; /* Caché par défaut */
}

.hamburger-menu {
    display: none; /* Caché sur ordinateur */
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-menu .line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* --- Section Héros (Accueil) --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    padding-top: 100px; /* Espace pour la navbar fixe */
}

.hero-content {
    max-width: 700px;
}

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

.hero-content p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Contenu des sections --- */
.content-section {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.content-box {
    width: 90%;
    max-width: 1000px;
    padding: 2.5rem 3rem;
}

.content-box h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Section "Nos Produits" */
.product {
    text-align: center;
}

.product-logo {
    height: 200px; /* Votre nouvelle taille */
    width: auto;
    margin-bottom: 1.5rem; /* Espace sous le logo */
}

.product h3 {
    font-size: 1.8rem;
    color: #f9c5b2;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product p {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.status-badge {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(249, 119, 78, 0.2);
    border: 1px solid rgba(249, 119, 78, 0.5);
    color: #f9c5b2;
    border-radius: 20px;
    font-weight: 500;
}

/* Section "A propos" */
#a-propos p {
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.7;
}

/* Carte Fondateur */
.founder-card {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.founder-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    object-fit: cover;
}

.founder-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.founder-card strong {
    font-size: 1rem;
    font-weight: 500;
    color: #f9c5b2;
}

.founder-description {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 550px;
    margin: 1.5rem auto 0;
    text-align: justify;
}

/* Bouton de contact du profil */
.profile-contact-btn {
    margin-top: 2.5rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.form-group {
    display: flex;
    gap: 1.5rem;
}

.form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    flex-basis: 100%;
}

.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.contact-form input,
.contact-form textarea {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transition: background 0.3s, border 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* --- Boutons --- */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-form .cta-button {
    width: 100%;
}

/* --- Pied de page (Footer) --- */
.footer {
    width: 100%;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
}


/* --- ================================== --- */
/* --- NOUVEAU DESIGN RESPONSIVE (MOBILE) --- */
/* --- ================================== --- */

/* Nous utilisons 900px comme point de rupture pour le menu */
@media (max-width: 900px) {
    
    .navbar {
        padding: 1rem 1.5rem; /* Réduit le padding de la nav */
    }

    /* Affiche l'icône hamburger */
    .hamburger-menu {
        display: flex;
        z-index: 1002; /* Doit être au-dessus du menu */
    }

    /* Style du menu déroulant (caché par défaut) */
    .nav-right {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px; /* Largeur du menu */
        height: 100%;
        
        /* Un fond "glassy" plus foncé pour le contraste */
        background: rgba(25, 2, 40, 0.8);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(255, 255, 255, 0.1);

        z-index: 1001;
        
        /* Réorganise les liens verticalement */
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 7rem 2rem;
        gap: 2rem;

        /* Caché par défaut (hors de l'écran) */
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    /* AFFICHE LE MENU quand la case est cochée */
    .nav-toggle:checked ~ .nav-right {
        transform: translateX(0);
    }
    
    /* Animation de l'icône Hamburger -> (X) */
    .nav-toggle:checked ~ .hamburger-menu .line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    .nav-toggle:checked ~ .hamburger-menu .line:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked ~ .hamburger-menu .line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Style des liens dans le menu mobile */
    .nav-links {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }
    .nav-links li a::after {
        display: none; /* Cache la petite ligne de survol */
    }

    .lang-switcher {
        flex-direction: column;
        gap: 1.5rem;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding-left: 0;
        padding-top: 2rem;
        width: 100%;
    }
}

/* Ajustements pour les écrans plus petits */
@media (max-width: 768px) {
    
    /* On enlève le padding-top, la nav est fine maintenant */
    .hero {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .content-box {
        padding: 2rem 1.5rem;
    }

    .content-box h2 {
        font-size: 2rem;
    }

    /* Formulaire sur mobile */
    .form-group {
        flex-direction: column;
        gap: 1.5rem;
    }
}