:root {
    --rouge-marque: #660601;
    --creme-fond: #FEF5E5;
    --noir-transp: rgba(0, 0, 0, 0.491);
    --rouge-transp: rgba(107, 30, 27, 0.671);
}

body, html {
    margin: 0; padding: 0;
    font-family: 'DM Sans', sans-serif;
    background-color: var(--creme-fond);
    color: var(--rouge-marque);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.navigation-principale {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espace le logo (gauche) et le bouton (droite) */
    padding: 0 5%;
    position: relative; /* Indispensable pour le centrage des liens */
}

.liens-navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Centre parfaitement le bloc peu importe sa taille */
    display: flex;
    gap: 30px;
}

.liens-navigation a {
    text-decoration: none;
    color: var(--rouge-marque);
    font-weight: 500;
}

/* Style du bouton rouge à droite */
.btn-connexion-rouge {
    background-color: var(--rouge-marque);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* --- AJUSTEMENTS RESPONSIVE --- */
@media (max-width: 768px) {
    .liens-navigation {
        position: fixed; /* Repasse en menu classique sur mobile */
        left: 0;
        top: 100px;
        transform: none;
        width: 100%;
        background-color: var(--creme-fond);
        flex-direction: column;
        display: none; /* Géré par le JS avec la classe .active */
        padding: 20px 0;
        text-align: center;
    }

    .liens-navigation.active {
        display: flex;
    }

    .bloc-bouton-droite {
        display: none; /* Cache le bouton du header sur mobile */
    }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .bloc-bouton-droite {
        display: none; /* Cache le bouton de droite sur mobile */
    }

    .burger-menu {
        display: block; /* Affiche le burger */
    }

    .liens-navigation {
        display: none; /* Cache les liens, ils apparaîtront via la classe .active */
        flex-direction: column;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background-color: var(--creme-fond);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .liens-navigation.active {
        display: flex;
    }
    
    .lien-mobile-uniquement {
        display: block !important;
        font-weight: 800 !important;
        margin-top: 10px;
    }
}

/* --- SECTION HERO --- */
.section-hero {
    height: 85vh; 
    background: url('assets/photo_accueil.png') center/cover no-repeat;
    display: flex; align-items: flex-end; padding-left: 5%; padding-bottom: 10vh;
}

.contenu-hero { display: flex; flex-direction: column; align-items: flex-start; }
.boite-rouge { background: var(--rouge-transp); color: white; padding: 8px 20px; margin-bottom: 8px; display: inline-block; }
.boite-noire { background: var(--noir-transp); color: white; padding: 2px 25px; display: inline-block; margin-top: 5px; }
.titre-hero { font-family: 'Gloock', serif; font-size: 5rem; margin: 0; line-height: 1; text-transform: uppercase; }
.sous-titre-hero {
    font-family: 'Gloock', serif;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 1px;
}

/* --- SECTION CONCEPT --- */
.section-concept { padding: 80px 8%; text-align: center; }
.contenu-concept { max-width: 850px; margin: 0 auto; font-size: 1.4rem; line-height: 1.6; }

/* --- SECTION CHOIX (AJUSTÉE) --- */
.split-container {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pousse le contenu vers le bas */
    align-items: center;
    position: relative;
    padding-bottom: 8vh;
}

.love-pane { background-color: var(--rouge-marque); color: var(--creme-fond); }
.friendship-pane { background-color: var(--creme-fond); color: var(--rouge-marque); }

/* TITRE DU HAUT : Légèrement descendu pour respirer */
.side-title {
    position: absolute;
    top: 20px;              /* Descendu de 20px par rapport au bord */
    font-family: 'Gloock', serif;
    font-size: 6rem;
    white-space: nowrap;
    z-index: 10;
    line-height: 1.1;
    margin: 0;
}

.left-align { right: -130px; color: var(--creme-fond); }
.right-align { left: 20px; color: var(--rouge-marque); }

/* CONTENU : Emoji descendu pour éviter la superposition */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 380px;
    z-index: 5;
    text-align: center;
}

.emoji { 
    font-size: 6.5rem;      /* Garde ta taille actuelle */
    margin-bottom: 5px;     /* Garde ton espacement avec le titre */
    
    /* BAISSER UNIQUEMENT L'EMOJI */
    transform: translateY(60px); /* Augmente ce chiffre pour le descendre plus (ex: 60px) */
}

.category-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    
    /* BAISSER UNIQUEMENT LE TITRE */
    transform: translateY(30px); /* Ajuste ce chiffre pour descendre "Amour/Amitié" */
}

.description-split { 
    font-size: 1.1rem; 
    line-height: 1.4; 
    margin-bottom: 30px;
   
}

/* BOUTONS */
.btn {
    padding: 15px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
}

.btn-white { background-color: var(--creme-fond); color: var(--rouge-marque); }
.btn-dark { background-color: var(--rouge-marque); color: white; }

/*TEMOIGNAGES*/
/* --- ZONE TÉMOIGNAGES --- */
.zone-temoignages { 
    background-color: var(--rouge-marque); 
    padding: 100px 0; 
    color: white; 
    position: relative; /* Nécessaire pour le positionnement des boutons nav */
}

.titre-temoignages { 
    font-family: 'Gloock', serif; 
    font-size: 3.5rem; 
    margin-bottom: 60px; 
    padding-left: 5%; 
}

.enveloppe-carrousel { 
    position: relative; 
    display: flex; 
    align-items: center; 
    padding: 0 5%; 
    width: 100%;
    box-sizing: border-box;
}

/* --- CARROUSEL ET CARTES --- */
.piste-temoignages { 
    display: flex; 
    gap: 30px; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Cache la barre sur Firefox */
    padding: 50px 10px; 
    width: 100%;
}

.piste-temoignages::-webkit-scrollbar { 
    display: none; /* Cache la barre sur Chrome/Safari */
}

.carte-temoignage { 
    background: #a66361; 
    min-width: 400px; 
    padding: 40px; 
    border-radius: 50px; 
    border: 5px solid var(--creme-fond); 
    position: relative; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    scroll-snap-align: center;
    flex-shrink: 0; /* Empêche l'écrasement des cartes */
}

.avatar-flottant { 
    position: absolute; 
    top: -30px; 
    left: 20px; 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    border: 4px solid var(--creme-fond); 
    background: white; 
    overflow: hidden; 
    z-index: 2;
}

.avatar-flottant img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* --- TEXTES DANS LES CARTES --- */
.note-croissants { 
    margin-top: 30px; /* Augmenté pour descendre l'élément */
    font-size: 1.5rem; 
    margin-bottom: 10px; 
    display: block; /* Sécurité pour être sûr que les marges s'appliquent bien */
}

.nom-utilisateur { 
    font-size: 1.4rem; 
    font-weight: 800; 
    margin-bottom: 15px; 
}

.citation { 
    font-size: 1.1rem; 
    line-height: 1.5; 
    font-weight: 500;
    font-style: italic;
}

/* --- BOUTONS DE NAVIGATION (‹ et ›) --- */
.bouton-nav { 
    background-color: var(--creme-fond); 
    color: var(--rouge-marque); 
    border: none; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    font-size: 2.5rem; 
    font-weight: bold;
    cursor: pointer; 
    z-index: 10; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
}

.bouton-nav:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1); 
}

.precedent { left: 10px; }
.suivant { right: 10px; }

/* --- BOUTON ACTION --- */
.bouton-avis { 
    margin-left: 5%;
    margin-top: 40px;
    background-color: var(--creme-fond); 
    color: var(--rouge-marque); 
    border: none; 
    padding: 15px 40px; 
    border-radius: 50px; 
    font-weight: 800; 
    cursor: pointer; 
    font-size: 1rem;
    transition: background 0.3s;
}

.bouton-avis:hover {
    background-color: white;
}
/* --- MODALE ÉCRIRE UN COMMENTAIRE  --- */

/* Centrage global de la modale */
.superposition-modale { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.85); /* Fond plus sombre pour faire ressortir la modale */
    backdrop-filter: blur(8px); /* Effet de flou en arrière-plan */
    z-index: 9999; 
    justify-content: center; 
    align-items: center; 
    padding: 20px;
}

.modale-feedback { 
    background-color: var(--rouge-marque); 
    width: 100%;
    max-width: 700px; 
    padding: 60px 40px; 
    border-radius: 40px; /* Arrondi cohérent avec tes cartes */
    position: relative; 
    color: white; 
    text-align: center; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(254, 245, 229, 0.1); /* Bordure légère crème */
}

/* Style du titre */
.titre-modale-playfair {
    font-family: 'Gloock', serif;
    font-size: 2.8rem;
    color: var(--creme-fond);
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.2;
}

/* Container du formulaire */
.form-border-box {
    border: 2px solid rgba(254, 245, 229, 0.2);
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
}

/* Alignement Nom / Prénom sur une ligne */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: left;
}

/* Labels stylisés */
.form-group label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--creme-fond);
    margin-bottom: 8px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Inputs et Textarea modernisés */
.form-group input, 
.form-group textarea {
    background: rgba(254, 245, 229, 0.1);
    border: 1px solid rgba(254, 245, 229, 0.2);
    border-radius: 20px;
    padding: 15px 20px;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 100px;
    resize: none;
}

/* Focus : surbrillance crème au clic */
.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    background: rgba(254, 245, 229, 0.2);
    border-color: var(--creme-fond);
}

/* Checkbox et Conditions */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 30px 10px;
    color: var(--creme-fond);
    font-size: 0.9rem;
}

.form-checkbox input {
    accent-color: var(--creme-fond);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Bouton Envoyer (Pillule Beige) */
.btn-beige-pill {
    background-color: var(--creme-fond);
    color: var(--rouge-marque);
    border: none;
    padding: 18px 60px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-beige-pill:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Croix de fermeture */
.croix-fermer {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--creme-fond);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Logo en haut à gauche de la modale */
/* Force le logo à ne pas dépasser une certaine hauteur */
.image-logo {
    height: 70px;      /* Ajustez cette valeur selon vos goûts */
    width: auto;       /* Garde les proportions intactes */
    display: block;
}
.marque-logo {
    display: flex;
    align-items: center;
    height: 100%;
}
.logo-top-left {
    position: absolute;
    top: 30px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-top-left img { height: 40px; }
.logo-top-left p { 
    font-size: 0.7rem; 
    line-height: 1; 
    text-align: left; 
    font-weight: 800;
}
/* --- ÉTAPE SUCCÈS (APRÈS ENVOI) --- */

#etapeSucces {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease forwards; /* Petit effet d'apparition */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-confirmation {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--creme-fond);
    margin: 20px auto 40px auto;
    max-width: 80%;
    opacity: 0.9;
}

/* Conteneur des boutons de succès */
.success-buttons {
    display: flex;
    flex-direction: column; /* Boutons les uns sous les autres sur mobile */
    align-items: center;
    gap: 15px;
}

/* Bouton secondaire (Fermer la fenêtre) */
.btn-outline-white {
    background: transparent;
    border: 2px solid var(--creme-fond);
    color: var(--creme-fond);
    padding: 15px 40px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: fit-content;
}

.btn-outline-white:hover {
    background: var(--creme-fond);
    color: var(--rouge-marque);
}

/* Ajustement pour le bouton Réserver (déjà existant en beige) */
#btnReserver {
    margin-bottom: 5px; /* Petit espace supplémentaire */
}

.burger-menu {
    display: none; /* Caché par défaut sur PC */
    background: none;
    border: none;
    color: var(--rouge-marque);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.lien-mobile-uniquement {
    display: none; /* Caché par défaut sur PC */
}


/* RESPONSIVE (TABLETTES)*/
   @media (max-width: 1024px) {
    .side-title { font-size: 4rem; }
    .left-align { right: -50px; }
}

/*RESPONSIVE (MOBILES) */
@media (max-width: 768px) {
    
    /* 1. NAVIGATION & BURGER */
    .icone-profil-desktop { display: none !important; }
    .burger-menu { display: block; }

    .liens-navigation {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100px; 
        left: 0;
        width: 100%;
        background-color: var(--creme-fond);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .liens-navigation.active { display: flex; }
    .liens-navigation a { margin: 15px 0; font-size: 1.2rem; display: block; }

    .lien-mobile-uniquement {
        display: block;
        font-weight: 800;
        border-top: 1px solid rgba(102, 6, 1, 0.1);
        padding-top: 15px;
        color: var(--rouge-marque);
    }

    /* 2. SECTION HERO */
    .section-hero { align-items: center; padding-left: 0; text-align: center; justify-content: center; }
    .contenu-hero .boite-rouge:first-child { margin-top: 300px !important; }
    .titre-hero { font-size: 2.5rem !important; }
    .sous-titre-hero, .phrase-hero { font-size: 1.1rem !important; }

    /* 3. SECTION CHOIX (SPLIT) */
    .split-container { flex-direction: column; height: auto; }
    .pane { 
        min-height: 80vh; 
        padding: 40px 20px;
        justify-content: center; 
    }
    .side-title { 
        position: relative; top: 0; left: 0; right: 0;
        font-size: 2.2rem; text-align: center; margin-bottom: 20px;
        white-space: normal; line-height: 1.2;
    }
    .left-align, .right-align { color: inherit; }
    .content { max-width: 100%; }
    .emoji, .category-title { transform: translateY(0); }
    .emoji { font-size: 4rem; margin-bottom: 10px; }
    .category-title { font-size: 2.2rem; margin-bottom: 15px; }
    .description-split { margin-bottom: 25px; font-size: 1rem; }

    /* 4. TÉMOIGNAGES */
    .bouton-nav { display: none; } 
    .titre-temoignages { text-align: center; padding-left: 0; font-size: 2.2rem; }
    .carte-temoignage { min-width: 300px; padding: 30px; }

    /* 5. MODALE */
    .form-row { flex-direction: column; gap: 0; }
    .modale-feedback { padding: 40px 20px; width: 90%; }
}

@media (max-width: 768px) {
    /* Cache le bouton de droite pour ne pas faire de doublon */
    .utilisateur-bouton-desktop { 
        display: none !important; 
    }

    /* Affiche le lien spécial dans le menu burger */
    .lien-mobile-uniquement {
        display: block !important;
        font-weight: 800;
        border-top: 1px solid rgba(102, 6, 1, 0.1);
        padding-top: 15px;
        margin-top: 10px;
    }
}