/* Google Font Import - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden; /* Empêche le défilement de la page */
}

/* Style pour le sélecteur de langue sur bureau */
.language-selector.desktop-only {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #327a35;
    border-radius: 20px;
    padding: 5px 10px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

@media screen and (max-width: 768px) {
    .language-selector.desktop-only {
        display: none;
    }
}

.language-selector .lang-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.language-selector .lang-link:hover,
.language-selector .lang-link.active {
    background-color: #F2F3AE;
    color: #333;
}

/* Classes utilitaires pour le responsive */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Styles spécifiques pour mobile */
@media screen and (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .header-container {
        position: relative;
        padding-right: 60px; /* Espace pour le sélecteur de langue */
        min-height: 120px; /* Hauteur minimale pour le header */
        display: flex;
        align-items: center;
    }
    
    .language-selector.mobile-only {
        position: absolute;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 15px;
        padding: 5px 5px;
        display: flex;
        flex-direction: column;
        z-index: 1000;
        height: auto;
        box-sizing: border-box;
    }
    
    .language-selector.mobile-only .lang-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 30px;
        border-radius: 15px; /* Même rayon que le fond */
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        color: rgba(255, 255, 255, 0.7);
        margin: 2px 0; /* Espacement entre les boutons */
    }
    
    .language-selector.mobile-only .lang-link:hover {
        color: #fff;
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    .language-selector.mobile-only .lang-link.active {
        background-color: #F2F3AE;
        color: #333;
    }
    
    /* Adaptation pour le mode sombre */
    [data-theme="dark"] .language-selector.mobile-only {
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    [data-theme="dark"] .language-selector.mobile-only .lang-link {
        color: rgba(255, 255, 255, 0.7);
    }
    
    [data-theme="dark"] .language-selector.mobile-only .lang-link:hover {
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    [data-theme="dark"] .language-selector.mobile-only .lang-link.active {
        background-color: #F2F3AE;
        color: #333;
    }

    .logo-container {
        margin: 0 0 0.5rem 0;
    }
    
    .header-logo {
        max-height: 60px;
    }
    
    .title-line1 {
        font-size: 1.5rem !important;
    }
    
    .title-line2 {
        font-size: 1.2rem !important;
    }
}

/* Screen */

.container {
    height: 100vh; /* Hauteur égale à la hauteur de la fenêtre */
    display: flex;
    max-height: 100vh; /* Limite la hauteur maximale */
    min-height: 100vh; /* Force la hauteur minimale */
    overflow: hidden; /* Empêche le débordement */
}

.information{
    width: 50%;
    align-items: center; 
    flex-direction: column;
    display: flex; /* Utilise flexbox pour l'alignement vertical */
    height: 100vh; /* Hauteur égale à la hauteur de la fenêtre */
    overflow: hidden; /* Empêche tout défilement */
    justify-content: space-between; /* Répartit l'espace entre les éléments */
    padding: 0; /* Supprime le padding */
}


/* Screen right*/
.image{
    background: url("../img/plf-foret1.jpg") no-repeat center center;
    background-size: cover; /* Assure que l'image couvre tout le conteneur */
    padding: 0;
    width: 50%;
    height: 100vh; /* Hauteur égale à la hauteur de la fenêtre */
    max-height: 100vh; /* Limite la hauteur maximale */
    min-height: 100vh; /* Force la hauteur minimale */
}

/* Screen left*/

/* Nouveaux styles pour l'en-tête avec logo */
.header-container {
    display: flex;
    align-items: center;
    background-color: #327a35;
    color: #F2F3AE;
    padding: 1rem;
    width: 100%;
}

.logo-container {
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
}

.header-logo {
    max-height: 80px;
    width: auto;
}

.title-container {
    flex: 1;
}

.title-line1 {
    font-size: 2vw;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.title-line2 {
    font-size: 1.5vw;
    font-weight: 600;
    margin: 0.3rem 0 0 0;
    line-height: 1.2;
}

.text {
    margin: 1rem 3rem;
    font-size: 1.5vw;
    text-align: center;
    flex-shrink: 1; /* Permet à cet élément de rétrécir si nécessaire */
}

.p1 {
    margin-bottom: 1rem !important;
    align-items: center;
    display:flex;
}

.p2 {
    font-weight:700;
}

.button{
    font-size: 1.5vw;
    text-align: center;
    background-color: #3a8a3d;
    border-radius : 4px;
    margin: 0 3rem 1rem 3rem;
    padding: 1rem;
    flex-shrink: 0; /* Empêche cet élément de rétrécir */
}
.button:hover{
    background-color: #327a35;
 
}


#understandingModalBtn{
    color: #f4f4f4;
    text-decoration: none;
   
   
}

.logos{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 3rem;
    flex-shrink: 0; /* Empêche cet élément de rétrécir */
}

.logos img {
    max-width: 30%;
    height: auto;
    display: block;
}

.footer{
    padding: 0.5rem 0;
    flex-shrink: 0; /* Empêche cet élément de rétrécir */
}

.mentions {
    text-decoration: none;
    cursor: pointer; /* Curseur de la souris */ 
    justify-content:center;
    display: flex;
}

.copyrigth {
    font-size: 1vw;
    text-align: center;
    
}

/*******************  UNDERSTANDING MODAL **************/

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Fond semi-transparent */
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    border-radius:4px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;
    background-color: #990047!important;
    color: white!important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

#understandingModal{
    height: 100vh;
    z-index:1000;
}


.modal-header{
    background-color: #990047;
    color: white;

}

.modal-title{
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-bottom: solid 1px white;
    text-align: center;
    font-size: 1.5vw;
}

.modal-body1{
    padding:1rem;
}

.affiche{
    height: auto;
    display: flex;
    justify-content: center;
}

.modal-footer{
    margin-top: 1rem;
    border-top: solid 1px white;
    text-align: center;
}

#informationModalBtn{
    text-transform: uppercase;
    margin-top: 1rem;
    text-align: center;
    font-size: 1.4vw;
    background-color: #3a8a3d;
    border-radius : 5px;
    color: white;
    padding: 0.5rem;
    width: 100%;
    border:none
}


/*******************  RGPD  MODAL **************/

.modal-header-RGPD{
    background-color: #990047;
    color: white;
    margin: 1rem;
}


.closeRGPD{
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -1.5rem;
}

.modal-content-RGPD {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    border-radius:4px;
    width: 80%;
    max-width: 50%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;
    background-color: #990047!important;
    color: white!important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-body-RGPD{
    margin: 0 0.5rem;
}

.modal-body-RGPD ul{
    margin-left: 1rem;
}

.modal-body-RGPD h2{
    padding-top: 1rem;
}

#maj{
    padding-top: 1rem;
}

#messageSPW a {
    color: white !important;
}

/* Empêcher la rotation en mode paysage */
@media screen and (max-width: 768px) and (orientation: landscape) {
    body {
        width: 100%;
        height: 100%;
        position: fixed;
        transform: rotate(-90deg);
        transform-origin: left top;
        overflow-x: hidden;
        top: 100%;
        left: 0;
    }
}

@media screen and (max-width: 768px) {

 .container{
    flex-direction: column;
 }   

 .title {
    
    padding: 1rem 0.5rem !important;
    font-size: 6vw !important;
 }

 .text {
    margin: 1rem 2rem;
    font-size: 4vw;
    text-align: center;
}

.button {
    font-size: 4vw;
    text-align: center;
    background-color: #3a8a3d;
    border-radius: 4px;
    margin: 0 2rem;
    
}

.copyrigth {
    font-size: 0.9rem;
    text-align: center;
}
 .information{
    width: 100%;
 }

 .image{
    width: 100%;
    display: none;
 }

 .logos{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 2rem;
}

.logos img {
    max-width: 30%;
    height: auto;
    display: block;
}

.modal-content {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #888;
    border-radius: 4px;
    width: 85%;
    max-width: 600px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;
    background-color: #990047 !important;
    color: white !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}


.modal-content-RGPD {
    background-color: #fff;
    margin: 15% auto;
    padding: 10px;
    border: 1px solid #888;
    border-radius: 4px;
    width: 85%;
    max-width: 600px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;
    background-color: #990047 !important;
    color: white !important;
}

#RGPDModalTitle, #ModalLabel{
    font-size: 6vw;
    font-weight: 700;
    padding-bottom: 1rem;
}
 
.closeRGPD {
    margin-top:0;
}

.modal-body-RGPD h2 {
    font-size: 5vw;
}

#informationModalBtn {
    font-size: 4vw;
    margin: 1rem 0;
    width: 100%;
}

p {
    font-size: 0.9rem;
}

#affichesR {
    width: 40%; 
    height: 30%; 
    object-fit: cover; 
}

}