/* ================== STYLE GLOBAL ================== */
body {
    background-color: #253439;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    transition: all 0.3s ease;
}

/* ================== EN-TÊTE ================== */
.header-acceuil {
    background-color: #f3f2ef;
    border-bottom: 1px solid #7c898b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 2rem;
}

.logo {
    width: clamp(60px, 8vw, 120px);
    height: auto;
    display: block;
    z-index: 10;
    transform: translateY(10%);
}

/* ================== NAVIGATION ================== */
nav {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 3em;
    padding-right: 2rem;
    border-bottom: 1px solid #7c898b;
    padding-bottom: 1em;
    margin-top: -2vw;
}

nav a {
    color: #253439;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 1.2em;
}

.page{
    color: #b29e84;
}

nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -4px;
    background: #253439; /* couleur normale */
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
    background: #253439;
}

/* Lien actif (.page) */
nav a.page {
    color: #b29e84; /* texte blanc */
}

nav a.page::after {
    background: #b29e84; /* ligne blanche pour le lien actif */
}

/* ================== COULEUR D’ENTÊTE ================== */
.entete-couleur {
    background-color: #f3f2ef;
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 10vw; 
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #253439;
}

/* ================== TEXTE ================== */

.para1{
    justify-content: flex-start;
    text-align: center;
    color: #f6f4f1;
    padding-top: 1vw;
}

p{
    font-size: 1.25vw;
    line-height: 3vw;
}

/* ================== CORPS DE PAGE ================== */

img{
    max-width: 35%;
    transform: translateY(-8vw);
}

.img\+p {
    display: flex;
    align-items: flex-start;
    /* Supprime toute marge ou padding pour que l'image touche le bord */
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.img\+p img {
    /* L'image prend 50% de la largeur du conteneur parent (.img+p) */
    width: 50%;
    height: auto;
    object-fit: cover;
    /* Aucun espace à droite de l'image ici, l'espace sera géré par la marge du texte */
    margin: 0;
    transform: none;
}

/* ================== FOOTER ================== */

.politique-de-confidentialité{
    display: flex;
    justify-content: flex-end;
    padding-right: 7vw;
    padding-bottom: 2vw;
    color: #f6f4f1;
    transform: translateY(-2vw);
}

/* ================== RESPONSIVE ================== */

/* ====== TABLETTES ====== */
@media (max-width: 1024px) {

    /* HEADER */
    .header-acceuil {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1rem;
    }

    .logo {
        width: 10vw;
        transform: none;
        margin-bottom: 1rem;
    }

    /* NAVIGATION CENTRÉE */
    nav {
        justify-content: center !important;
        align-items: center;
        gap: 2em;
        border: none;
        margin-top: 0;
        padding: 0;
        width: 100%;
    }

    nav a {
        font-size: 1.1em;
    }

    /* TITRE D'EN-TÊTE CENTRÉ */
    .entete-couleur {
        justify-content: center !important;
        align-items: center;
        text-align: center;
        padding: 2vw 5vw;
        font-size: 2.2rem;
        min-height: auto;
    }

    /* CONTENU */
    .img\+p {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .img\+p img {
        width: 70%;
        max-width: 500px;
        margin: 2vw 0;
    }

    .para1 {
        padding: 2vw 5vw;
        font-size: 1.8vw;
        line-height: 3.5vw;
    }

    p {
        font-size: 1.8vw;
        line-height: 3.5vw;
    }

    /* FOOTER */
    .politique-de-confidentialité {
        justify-content: center;
        text-align: center;
        padding-right: 0;
        margin-top: 2vw;
    }
}

/* ====== MOBILES ====== */
@media (max-width: 600px) {

    /* HEADER */
    .header-acceuil {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1rem;
    }

    .logo {
        width: 80px;
        margin-bottom: 1rem;
        transform: none;
    }

    nav {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1em;
        border: none;
        margin: 0;
        padding: 0;
    }

    nav a {
        font-size: 1em;
    }

    /* TITRE D'EN-TÊTE CENTRÉ */
    .entete-couleur {
        display: flex;
        justify-content: center !important;
        align-items: center;
        text-align: center;
        font-size: 6vw;
        padding: 4vw 6vw;
        min-height: auto;
    }

    /* CONTENU EN COLONNE */
    .img\+p {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 4vw;
    }

    .img\+p img {
        width: 85%;
        max-width: 400px;
        margin: 4vw 0;
        transform: none;
    }

    .para1 {
        padding: 0 5vw;
        font-size: 4vw;
        line-height: 6vw;
    }

    p {
        font-size: 4vw;
        line-height: 6vw;
    }

    /* FOOTER CENTRÉ */
    .politique-de-confidentialité {
        justify-content: center;
        text-align: center;
        padding-right: 0;
        margin: 5vw 0;
        font-size: 3.5vw;
    }
}

@media (max-width: 1024px) {
    .header-acceuil{ flex-direction: column !important; align-items: center !important; justify-content: center !important; padding: 1rem !important; }
    nav{ display:flex !important; flex-direction: row !important; justify-content:center !important; align-items:center !important; width:100% !important; margin:0 !important; padding:0 !important; border-bottom:1px solid #7c898b; }
    nav a{ display:inline-block !important; text-align:center !important; padding:0.5rem 0 !important; width:auto !important; }
    .entete-couleur{ display:flex !important; justify-content:center !important; align-items:center !important; text-align:center !important; padding:2vw 5vw !important; width:100% !important; margin:0 auto !important; }
}

@media (max-width: 600px) {
    .header-acceuil{ flex-direction: column !important; align-items: center !important; justify-content: center !important; padding: 1rem !important; }
    nav{ display:flex !important; flex-direction: column !important; justify-content:center !important; align-items:center !important; width:100% !important; margin:0 !important; padding:0 !important; border: none !important; }
    nav a{ display:block !important; width:100% !important; text-align:center !important; padding:0.6rem 0 !important; }
    .entete-couleur{ display:flex !important; justify-content:center !important; align-items:center !important; text-align:center !important; padding:4vw 6vw !important; width:100% !important; margin:0 auto !important; }
}
