/* ================== 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: 11.5%;
    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 + LOGO */
    .header-acceuil {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1rem 0 !important;
        text-align: center !important;
    }

    .logo {
        width: 120px !important;
        transform: none !important;
        margin-bottom: 1rem !important;
    }

    /* NAV - CENTRÉE COMME PAGE SALON */
    nav {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        padding: 0 !important;
        margin: 0 auto !important;
        border: none !important;
        width: 100% !important;
        text-align: center !important;
    }

    nav a {
        font-size: 1.1rem !important;
        text-align: center !important;
    }

    /* TITRE */
    .entete-couleur {
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 2rem 1rem !important;
        font-size: 2.2rem !important;
    }

    /* IMAGE + TEXTE */
    .img\+p {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 3rem !important;
    }

    .img\+p img {
        width: 70% !important;
        margin: 1.5rem auto !important;
        transform: none !important;
    }

    .para1,
    p {
        width: 100% !important;
        font-size: 1.8rem !important;
        line-height: 1.5 !important;
        text-align: center !important;
        padding: 0 !important;
    }

    /* FOOTER */
    .politique-de-confidentialité {
        text-align: center !important;
        margin: 2rem auto !important;
        padding: 0 !important;
        width: 100% !important;
    }
}

/* MOBILES */
@media (max-width: 600px) {

    /* LOGO */
    .logo {
        width: 95px !important;
    }

    /* NAV */
    nav {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    nav a {
        font-size: 1rem !important;
    }

    /* TITRE */
    .entete-couleur {
        font-size: 7vw !important;
        padding: 2rem 1rem !important;
    }

    /* CONTENU */
    .img\+p img {
        width: 85% !important;
    }

    .para1,
    p {
        font-size: 4vw !important;
        line-height: 6vw !important;
    }

    /* FOOTER */
    .politique-de-confidentialité {
        font-size: 3.5vw !important;
    }
}

.img+p {
  margin-left: auto;
  margin-right: auto;
}

/* --- Base Reset & Fluidité --- */
* {
    box-sizing: border-box;
}

html {
    font-size: 100%; /* Base 16px */
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Structure Mobile (Défaut) --- */
.container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Empilement vertical */
    gap: 1.5rem;
}

.politique-confidentialite {
    /* Centrage robuste pour la version mobile */
    text-align: center; /* Centre le texte */
    max-width: 400px; /* Limite la largeur du bloc */
    margin: 2rem auto; /* Centre le bloc lui-même */
    justify-content: center;
}

.grid-system {
    display: grid;
    grid-template-columns: 1fr; /* 1 colonne */
    gap: 1rem;
}

/* --- Tablette (Breakpoint: 768px) --- */
@media screen and (min-width: 768px) {
    html {
        font-size: 112.5%;
    }

    .container {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 720px;
    }

    .politique-confidentialite {
        /* Rétablissement des styles pour les écrans larges */
        text-align: left; /* Rétablit l'alignement à gauche */
        max-width: none; /* Supprime la limitation de largeur */
        margin: 2rem 0; /* Supprime la marge automatique */
    }

    .grid-system {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    }

    .nav-menu {
        display: flex;
        justify-content: space-between;
    }
}

/* --- Desktop (Breakpoint: 1024px) --- */
@media screen and (min-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0;
    }

    .grid-system {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
        gap: 2rem;
    }
}

/* --- Large Desktop (Breakpoint: 1200px) --- */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}