@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;700&display=swap');

/* Montserrat pour le texte */
.montserrat-regular {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 160%;
}

@media screen and (max-width: 1023px) {
    .montserrat-regular {
        font-size: 14px !important;
        line-height: 130% !important;
    }
}

.montserrat-bold {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/* Bebas Neue pour les titres */
.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 100px;
  line-height: 100%;
}

@media screen and (max-width: 1023px) {
    .bebas-neue-regular {
        font-size: 70px !important;
        line-height: 80% !important;
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables de couleurs */
:root {
    --color-cream: #F5F0E8;
    --color-burgundy: #562f3a;
    --color-burgundy-dark: #4A2D2D;
    --color-text: #4A2D2D;
}

/* Container principal */
.allure-libre-container {
    display: flex;
    width: 100%;
    min-height: 500px;
    font-family: 'Montserrat', sans-serif;
}

@media screen and (max-width: 1023px) {
    .allure-libre-container {
        flex-direction: column;
        min-height: auto;
    }
}

/* Section gauche - Contenu texte */
.allure-libre-left {
 width: 50%;  /* AJOUTE CECI */
    flex: none;  /* REMPLACE flex: 1 */
    background-color: var(--color-cream);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 60px 80px 30px 30px;
    text-align: right;
}

@media screen and (max-width: 1023px) {
    .allure-libre-left {
   width: 100%;
        padding: 20px 20px !important;
        align-items: flex-end !important;      /* Aligné à droite */
        text-align: right !important;          /* Texte à droite */
        justify-content: center;
    }
}

.allure-libre-right {
    width: 50%;
    flex: none;
    background-color: var(--color-burgundy);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    aspect-ratio: 962 / 930;
}

@media screen and (max-width: 1023px) {
    .allure-libre-right {
        width: 100%;
        padding: 40px 20px;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
}

.allure-libre-content {
    max-width: 420px;
}

@media screen and (max-width: 1023px) {
    .allure-libre-content {
        max-width: 100%;
    }
}

/* Titre principal */
.allure-libre-title {
    color: #562F3A !important;
    font-family: 'Bebas Neue', sans-serif;
    margin-bottom: 30px;
    text-transform: uppercase;
}

@media screen and (max-width: 1023px) {
    .allure-libre-title {
       margin-bottom: 15px !important;
    }
}


/* Texte descriptif */
.allure-libre-text {
    font-family: "Montserrat", sans-serif;;
    color: var(--color-text);
    margin-bottom: 20px;
    max-width: 270px;  /* AJOUTE CECI - ajuste la valeur selon tes besoins */
}

@media screen and (max-width: 1023px) {
    .allure-libre-text {
    margin-bottom: 0px !important;
    max-width: 265px !important; 
}
}

.allure-libre-text p {
    margin-bottom: 20px;
}

@media screen and (max-width: 1023px) {
    .allure-libre-text p {
    margin-bottom: 10px !important;
}
}

.allure-libre-text p:last-child {
    margin-bottom: 0;
}

/* CTA - Call to Action */
.allure-libre-cta {
    display: inline-block;
    margin-top: 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px !important;
    text-transform: uppercase;
    color: var(--color-burgundy);
    text-decoration: underline !important;
    border-bottom: 1px solid var(--color-burgundy); 
    text-underline-offset: 4px;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

@media screen and (max-width: 1023px) {
    .allure-libre-cta {
        margin-top: 10px!important;
     font-size: 14px !important;
    }
}

.allure-libre-cta:hover {
    opacity: 0.7;
}

/* Section droite - Image/GIF */
.allure-libre-right {
    flex: 1;
    background-color: var(--color-burgundy);
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* Container de l'image/GIF */
.allure-libre-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.allure-libre-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .allure-libre-container {
        flex-direction: column;
        min-height: auto;
    }

    .allure-libre-left {
        padding: 50px 30px;
        align-items: center;
        text-align: center;
    }

    .allure-libre-title {
        font-size: 80px;
    }

    .allure-libre-text {
        font-size: 14px;
    }

    .allure-libre-right {
        min-height: 400px;
    }
}

@media screen and (max-width: 480px) {
    .allure-libre-left {
        padding: 40px 20px;
    }

    .allure-libre-title {
        font-size: 56px;
    }

    .allure-libre-text {
        font-size: 14px;
    }

    .allure-libre-cta {
        font-size: 14px;
    }

    .allure-libre-right {
        min-height: 350px;
    }
}

