/* --- RESET & BASES --- */
* { margin: 0; padding: 0;
     box-sizing: border-box; 
    }
html { scroll-behavior: smooth;

 }
body { font-family: 'Inter', sans-serif; 
    
    color: #333;
     overflow-x: hidden !important; 
    }

/* --- POLICES --- */
h1, h2, h3, h4, .stamp-title, .section-main-title { font-family: 'Permanent Marker', cursive; }
.handwritten, textarea, input, .signature { font-family: 'Caveat', cursive; font-size: 1.5rem; }

/* --- CONFIG GENERALE SECTION --- */
section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* --- BACKGROUNDS --- */
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.overlay-dark { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.2); z-index: -1; }

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 0; width: 100%; height: 90px;
    background: transparent; z-index: 1000;
    display: flex; justify-content: center; align-items: center; padding: 0;
}
nav ul {
    width: 100%; display: flex; justify-content: center; list-style: none; margin: 0; padding: 0;
}
nav ul li {
    width: 20%; display: flex; justify-content: center;
}
nav ul li a {
    display: block; width: 90%; text-align: center;
    color: white; text-decoration: none; font-weight: bold;
    background-color: #4a6fa5; padding: 12px 0; border-radius: 5px;
    transition: 0.3s;
}
nav ul li a:hover { background-color: #3b5c8d; transform: translateY(-2px); }

#check { display: none; }
.checkbtn {
    font-size: 30px; color: white; position: absolute; right: 40px; cursor: pointer; display: none; z-index: 1002;
}

/* --- SECTION 1 : HEADER (LOGO) --- */
.hero-section { position: relative; }
.logo-container {
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo {
    width: 100%; 
    max-width: 500px;
    min-width: 250px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    transform: scale(1.8);
}

/* --- SECTION 2 (INTRO) --- */
.content-box {
    max-width: 800px; padding: 40px; margin: 20px;
    text-align: center; color: white; font-size: 1.2rem; line-height: 1.6; z-index: 1;
}
.glass-effect {
    background: rgba(0, 0, 0, 0.4); border-radius: 15px; border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); backdrop-filter: blur(4px);
}
.signature { margin-top: 30px; color: #f3e5ab; font-size: 2rem; }

/* --- SECTION 3 (A PROPOS) --- */
#apropos { background: url('../img/fond2.png') no-repeat center center/cover; }
.about-layout {
    width: 95%; max-width: 1600px; display: flex; justify-content: space-between; align-items: center; padding-top: 80px;
}
.about-left { width: 55%; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.about-title-img {
    width: 100%; max-width: 600px; transform: scale(1.4); margin-bottom: -25vh; margin-left: 15vw; z-index: 3;
}
.text-block {
    background: rgba(255,255,255,0.92); padding: 60px 40px 40px 40px; box-shadow: 10px 10px 20px rgba(0,0,0,0.2); transform: rotate(-1deg); font-size: 1.1rem; line-height: 1.5; border-radius: 4px;
}
.about-right { width: 70%; display: flex; justify-content: center; align-items: center; }
.about-side-img {
    width: 100%; transform: scale(1.6) rotate(5deg); margin-left: -40vw; margin-bottom: 15vh;
}

/* --- SECTION VIDEO SÉPARATEUR (NEW) --- */
.video-separator {
    width: 100vw; height: 100vh; padding: 0; margin: 0;
}
.full-screen-video {
    width: 100%; height: 100%; object-fit: cover;
}

/* --- SECTION 4 (DESTINATIONS) --- */
#destinations {
    background: url('../img/fond5.png') no-repeat center center/cover; justify-content: flex-start; padding-top: 100px;
}
.section-main-title {
    font-size: 3.5rem; color: #1a4b77; background: rgba(255,255,255,0.8); padding: 10px 30px; border-radius: 10px; margin-bottom: 20px; transform: rotate(-2deg); box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 5; text-align: center;
}
.destination-content {
    flex-grow: 1; width: 100%; display: flex; justify-content: center; align-items: center; padding-bottom: 50px;
}
.dest-img {
    max-width: 90%; max-height: 70vh; width: auto; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* --- SECTION 5 (FORMULES) --- */
#formules {
    background: url('../img/SOMETHING2.png') no-repeat center center/cover; justify-content: flex-start; padding-top: 100px;
}
.formules-container {
    display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; height: 100%; overflow: visible;
}
.formule-img {
    width: 80%; max-width: 900px; height: auto; transform: scale(1.1); margin: -40px 0; position: relative; z-index: 1; cursor: pointer; transition: transform 0.3s;
}
.formule-img:hover { transform: scale(1.25); z-index: 10; }

/* --- SECTION 6 (CONTACT + FOOTER) --- */
.contact-section { background: #e5e5e5; }
.airmail-container { width: 100%; height: 100%; padding: 20px; background: repeating-linear-gradient(45deg, #cc2929, #cc2929 30px, #fdfbf7 30px, #fdfbf7 60px, #1e40af 60px, #1e40af 90px, #fdfbf7 90px, #fdfbf7 120px); }
.enveloppe-interieur {
    width: 100%; height: 100%; background-color: #f3e5ab; padding: 30px 50px; display: flex; flex-direction: column; overflow-y: auto;
}
.env-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.stamp-title { border: 4px double #b91c1c; color: #b91c1c; padding: 10px; font-size: 2rem; transform: rotate(-2deg); }
.timbre-zone { position: relative; transform: rotate(3deg); margin-right: 20px; }
.timbre { width: 80px; height: 100px; background: white; border: 4px dashed #ccc; }
.cachet { position: absolute; top: 30px; left: -30px; width: 80px; height: 80px; border: 3px solid rgba(0,0,0,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: rgba(0,0,0,0.3); transform: rotate(-15deg); text-align: center; font-size: 0.8rem; }
.form-grid { flex-grow: 1; display: flex; gap: 50px; margin-bottom: 30px; }
.inputs-left { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.input-group label { display: block; font-weight: bold; margin-bottom: 5px; font-family: 'Inter', sans-serif; }
.input-group input { width: 100%; background: transparent; border: none; border-bottom: 2px solid #555; font-size: 1.8rem; color: #1a4b77; outline: none; font-family: 'Caveat', cursive; }
.inputs-right { flex: 1; display: flex; flex-direction: column; border-left: 1px dashed #999; padding-left: 40px; }
.inputs-right label { font-weight: bold; font-family: 'Inter', sans-serif; margin-bottom: 10px; }
.lined-textarea { flex-grow: 1; width: 100%; background: transparent; border: none; resize: none; outline: none; font-size: 1.8rem; line-height: 40px; background-image: repeating-linear-gradient(transparent, transparent 39px, #999 40px); background-attachment: local; font-family: 'Caveat', cursive; }
.form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 10px; border-top: 2px solid #333; }
.icons i { font-size: 1.5rem; margin-right: 15px; padding: 10px; border: 2px solid #333; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.icons i:hover { background: #333; color: white; }
button { background: #1a1a1a; color: white; font-family: 'Permanent Marker', cursive; padding: 10px 25px; border: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 1.2rem; transform: rotate(-1deg); }
button:hover { transform: scale(1.05); }

/* --- FOOTER (Intégré dans le formulaire) --- */
/* --- FOOTER (DESIGN PRO) --- */
.contact-footer {
    width: 100%;
    background-color: #1a1a1a; /* Fond très sombre pour le contraste */
    color: #cccccc; /* Texte gris clair pour ne pas agresser les yeux */
    padding: 50px 20px 30px 20px; /* Espacement aéré */
    font-family: 'Inter', sans-serif; /* Police lisible */
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 10;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1); /* Légère ombre vers le haut */
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto; /* Centrage horizontal */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* Espace entre les blocs */
}

/* Bloc des textes informatifs */
.footer-notices {
    opacity: 0.9;
}

.footer-notices p {
    margin-bottom: 10px;
    font-weight: 300; /* Texte fin */
}

/* Séparateur élégant */
.footer-separator {
    width: 60px;
    height: 2px;
    background-color: #b91c1c; /* Rappel du rouge "Poste" */
    border-radius: 2px;
    opacity: 0.7;
}

/* Lien Mentions Légales */
.footer-legal-link a {
    color: #f3e5ab; /* Couleur dorée/crème du site */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.footer-legal-link a:hover {
    color: #fff;
    border-bottom: 1px solid #f3e5ab;
    letter-spacing: 0.5px; /* Petit effet pro au survol */
}

/* Copyright */
.footer-copyright {
    font-size: 0.8rem;
    color: #777; /* Plus discret */
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- RESPONSIVE FOOTER --- */
@media (max-width: 768px) {
    .contact-footer {
        padding: 40px 15px;
        text-align: justify; /* Pour éviter les trous bizarres sur mobile */
    }
    
    .footer-content {
        text-align: center; /* On garde le copyright et lien centrés */
    }
    
    .footer-notices p {
        text-align: center; /* Ou justify selon ta préférence */
        font-size: 0.85rem;
    }
}

/* --- MODALES --- */
.modal {
    display: none; /* Caché par défaut */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8); z-index: 2000;
    justify-content: center; align-items: center;
}
.modal-content {
    background-color: #fff; width: 80%; max-width: 800px; height: 80%;
    border-radius: 10px; padding: 30px; position: relative;
    overflow-y: auto; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    font-family: 'Inter', sans-serif;
}
.close-btn {
    position: absolute; top: 15px; right: 20px;
    font-size: 30px; font-weight: bold; color: #333; cursor: pointer;
}
.close-btn:hover { color: #b91c1c; }

/* Style du texte dans les modales */
.modal-body-text h2 { text-align: center; color: #1a4b77; margin-bottom: 20px; font-size: 2rem; }
.modal-body-text h3 { color: #b91c1c; margin-top: 20px; margin-bottom: 10px; }
.modal-body-text h4 { margin-top: 15px; font-size: 1.1rem; }
.modal-body-text p { margin-bottom: 10px; line-height: 1.6; }
.modal-body-text ul { margin-left: 20px; margin-bottom: 15px; }
.modal-body-text hr { margin: 20px 0; border: 0; border-top: 1px solid #ddd; }
.modal-body-text .price { float: right; color: #4a6fa5; font-weight: bold; }

/* --- RESPONSIVE MOBILE (MAX-WIDTH 950px) --- */
@media (max-width: 950px) {
    .checkbtn { display: block; }
    nav ul {
        position: fixed; width: 100%; height: 100vh;
        background: rgba(44, 62, 80, 0.98); top: 0; left: -100%;
        text-align: center; transition: all 0.5s;
        flex-direction: column; justify-content: center;
        z-index: 1001;
    }
    nav ul li { margin: 20px 0; display: block; width: 100%; }
    nav ul li a { font-size: 1.5rem; display: block; width: 80%; margin: 0 auto; }
    #check:checked ~ ul { left: 0; }

    .about-layout { flex-direction: column; padding-top: 20px; }
    .about-left { width: 95%; margin-top: 60px; }
    .about-title-img { width: 90%; margin-bottom: -20px; margin-left: 0; }
    .text-block {padding: 60px 20px 20px 20px; }
    .about-right { width: 90%; margin-top: 20px; }
    .about-side-img { width: 100%; margin-left: 0; }

    #destinations { padding-top: 80px; }
    .section-main-title { font-size: 2.5rem; width: 90%; }
    .dest-img { width: 95%; max-height: 60vh; }

    #formules {
        padding-top: 80px;
        justify-content: flex-start; /* Aligne tout vers le haut */
        gap: 0; /* Supprime les écarts flexibles */
        overflow: visible !important; 
    }

    /* On remonte le titre et on réduit sa marge du bas */
    #formules .section-main-title {
        font-size: 2.5rem;
        width: 90%;
        margin-bottom: -10px; /* Colle le titre à la première image */
        z-index: 20; /* Le titre passe devant les images */
        position: relative;
    }

    .formules-container {
        height: auto;
        padding-bottom: 0; /* Supprime le padding du bas */
        margin-bottom: -40px; /* FAIT REMONTER le bloc suivant (gros rapprochement) */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .formule-img {
        width: 85%; /* Léger zoom pour manger les bords */
        height: auto;
        margin-bottom: 0;
        /* Marge négative en haut pour coller à l'élément précédent */
        margin-top: -20px;
    }

    .formule2 {
        position: relative;
        top: -360px; /* Remonte la deuxième image pour réduire l'espace */
        z-index: 1000;
    }




    .form-grid { flex-direction: column; gap: 20px; }
    .inputs-right { border-left: none; padding-left: 0; border-top: 1px dashed #999; padding-top: 20px; }
    .env-header { flex-direction: column; gap: 10px; align-items: center; }
    .timbre-zone { margin-right: 0; }

    /* Modal Mobile */
    .modal-content { width: 95%; height: 90%; padding: 20px; }
    .price { float: none; display: block; margin-top: 5px; }

        .intro-section {
        /* On retire la hauteur fixe de 100vh pour laisser la place au texte */
        height: auto; 
        min-height: 100vh; /* Au minimum la taille de l'écran */
        padding: 80px 0; /* Un peu d'espace haut/bas pour ne pas coller aux bords */
    }

    .content-box {
        width: 90%; /* Plus large sur mobile */
        max-width: 100%;
        padding: 25px; /* On réduit le padding (c'était 40px) */
        margin: 0 auto; /* Centrage */
        
        /* Réduire la police pour que ça rentre mieux */
        font-size: 0.95rem; 
        line-height: 1.4; 
    }

    .signature {
        font-size: 1.3rem; /* Signature un peu plus petite aussi */
        margin-top: 20px;
    }

     #apropos {
        height: auto; /* Permet à la section de s'agrandir */
        min-height: 100vh;
        padding-bottom: 60px; /* Marge en bas pour ne pas coller l'image au bord */
    }

    .about-layout {
        padding-top: 100px; /* Espace pour ne pas être caché par la nav */
        padding-bottom: 20px;
        gap: 20px; /* Espace entre les blocs */
    }

    .text-block {
        width: 90%; /* Largeur adaptée */
        margin: 0 auto; /* Centrage */
        font-size: 0.95rem;
        line-height: 1.4;
        
        
        /* On réduit les espaces internes et la police */
        padding: 30px 20px; 
        font-size: 0.95rem; 
        line-height: 1.4;
    }
    
    /* Petit ajustement pour que l'image titre ne mange pas trop le texte */
    .about-title-img {
                width: 90%;
        /* C'était -20px. On passe à -70px pour que l'image chevauche le papier */
        margin-bottom: -70px; 
        margin-left: 0;
        position: relative;
        z-index: 5; /* Important : l'image passe AU-DESSUS du papier */
    }
    .video-separator, .full-screen-video {
        height: auto; /* Permet à la vidéo de s'adapter */
        min-height: 300px; /* Hauteur minimale pour visibilité */
    }

        #contact {
        height: auto; /* Laisse la section grandir */
        min-height: 100vh;
    }

    .airmail-container {
        /* On réduit la bordure rayée sur mobile pour gagner de la place */
        padding: 10px; 
    }

    .enveloppe-interieur {
        padding: 20px 15px; /* Moins de marge interne */
        height: auto; /* Laisse l'enveloppe s'allonger */
        overflow: visible; /* Évite la double barre de scroll */
    }

    /* Réorganisation du header de l'enveloppe (Titre + Timbre) */
    .env-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }

    .timbre-zone {
        margin-right: 0;
        transform: rotate(0deg); /* On remet le timbre droit pour gagner de la place */
    }

    /* Formulaire en colonne */
    .form-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 20px;
    }

    .inputs-right {
        border-left: none; /* On enlève la ligne verticale */
        border-top: 2px dashed #ccc; /* On met une ligne horizontale */
        padding-left: 0;
        padding-top: 30px;
    }

    /* Ajustement des champs pour éviter le zoom auto sur iPhone */
    .input-group input, 
    .lined-textarea {
        font-size: 1.2rem; /* Taille plus raisonnable sur mobile */
        width: 100%;
    }

    /* Ajustement du bouton envoyer */
    .form-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    button {
        width: 100%; /* Bouton pleine largeur facile à cliquer */
        justify-content: center;
    }

}