/*******************************
    FONTS
********************************/

@font-face{
    font-display:swap;
    font-family:'Roboto';
    font-style:normal;
    font-weight:400;
    src:url('../fonts/roboto-v48-latin-regular.woff2') format('woff2')
}

@font-face{
    font-display:swap;
    font-family:'Roboto';
    font-style:italic;
    font-weight:400;
    src:url('../fonts/roboto-v48-latin-italic.woff2') format('woff2')
}

@font-face{
    font-display:swap;
    font-family:'Roboto';
    font-style:normal;
    font-weight:600;
    src:url('../fonts/roboto-v48-latin-600.woff2') format('woff2')
}

@font-face{
    font-display:swap;
    font-family:'Roboto';
    font-style:italic;
    font-weight:600;
    src:url('../fonts/roboto-v48-latin-600italic.woff2') format('woff2')
}


/*******************************
    CHARTE GRAPHIQUE
********************************/



:root {

    /* Largeur max pour le contenu principal */
    --max-width: 1200px;

    /* Font */
    --font: Roboto, sans-serif;

    /* Fond de page et couleur du texte par défaut */
    --background-color: #FBF1EF;
    --text-color: #373737;
    --text-color2: #888;

    /* Couleurs principales */
    --primary-color : #D58D53;
    --primary-color2: #E5C3A7;
    --primary-color3: #f5dbc6;
    --primary-color4: #c8b8b0;
    --secondary-color: #5f8d7d;
    --secondary-color2: #529980;

    /* Liens */
    --link-color: #40a36d;
    --link-hover-color: #D58D53;

    /* Success */
    --success-background-color: #eafaf1;
    --success-color: #1e8449;
    --success-border-color: #a9dfbf;

    /* Error */
    --error-background-color: #fdedec;
    --error-color: #c0392b;
    --error-border-color: #f5b7b1;

}


/*******************************
    RESET & BASE
********************************/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
    background: url(../images/background-gauche.svg) no-repeat top 120px left -94px fixed,
                url(../images/background-droite.svg) no-repeat bottom -15px right -45px fixed,
                linear-gradient(to right, var(--background-color), #FFF);

    font-family: var(--font);
    font-weight: 400;
    font-style: normal;
}

ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

ul li {
    position: relative;
    padding-left: 20px;
}

ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 10px;
    height: 10px;
    background-color: #D58D53;
    border-radius: 50%;
}

a{
    color: inherit;
    text-decoration: underline;
}

a:hover{
    text-decoration: none;
}

img{
    max-width: 100%;
    height: auto;
}

figure {
    max-width: 350px;
    margin: 30px 0;
    text-align: center;
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    border: 2px solid #f1ebe7;
    float: right;
    margin: 0 0 20px 25px;
}

figure img{
    border-radius: 8px;
    width: 100%;
    height: auto;
}

@media (max-width: 750px){
    figure{
        float: none;
        margin: 20px auto;
    }
}

figcaption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

input, button{
    font-family: inherit;
    font-size: 1rem;
    padding: 5px 10px;
    border: none;
    margin: 5px 0;
    border-radius: 5px;
    text-align: center;
}

input{
    width: 100%;
}

button{
    background-color: transparent;
    cursor: pointer;
    border: 2px solid;
    transition: all 300ms;
}

p{
    margin: 0 0 15px 0;
}



/* Titraille */

h1{
    font-size: clamp(2rem, 1.6rem + 1vw, 2.4rem); 
    margin-bottom: 15px; 
    line-height: 1.3;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

h1:before{
    content: '';
    display: block;
    background-color: #FFA840;
    background-size: contain;
    width: 100px;
    height: 4px;
    position: absolute;
    left: 0;
    bottom: 0;
}

h2{ 
    font-size: clamp(1.7rem, 1.4rem + 1vw, 2rem);
    line-height: 1.3;
    font-weight: bold;
    margin: 20px 0 15px 0;
    color: var(--secondary-color);
}

h3{ 
    font-size: clamp(1.3rem, 1rem + 0.5vw, 1.4rem); 
    font-weight: bold;
    margin: 15px 0 10px 0;
    color: var(--primary-color);
}

/* Fil d'ariane */

.Breadcrumb{
    font-size: .85em;
    margin: 0 0 40px 0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.Breadcrumb a:first-of-type:before{
    content: '';
    background: url(../images/home.svg) no-repeat center center;
    background-size: contain;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
    margin-bottom: 5px;
}


/* Mise en ergue d'un passage */

.Exergue{
    background-color: var(--primary-color3);
    border-left: 4px solid #FFA840;
    padding: 15px 20px;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.Exergue p{
    margin: 0;
}


/* Table responsive */

table{
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td{
    border: 1px solid #eed3bd;
    padding: 8px;
}

table td:not(:first-child){
    text-align: center;
}

table td.ok{
    background-color: #9fc5b866;
}

@media (max-width: 600px){

    table thead{
        display: none;
    }

    table, table tbody,
    table tr, table td{
        display: block;
        width: 100%;
    }

    table tr{
        margin-bottom: 15px;
    }

    table td{
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    table td::before{
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }
    
}

/*******************************
    MENU
********************************/

.Nav{
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.Menu-wrapper{
    display: flex;
    align-items: center;
    gap: 10px;
}

.Menu{
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    margin: 0 !important;
}

.Menu-item-link{
    padding: 3px 5px;
    text-decoration: none !important;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: inline-block;
    position: relative;
}

.Menu-item-link:hover:before,
.Menu-item.active .Menu-item-link:before{
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    left:0;
    bottom: 0;
    border-radius: 4px;
    background-color: var(--primary-color);
}

.Menu,
.Menu li {
    padding-left: 0;
}

.Menu li::before {
    display: none;
}

/* Bouton hamburger */

.Menu-hamburger{
    display: none;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: inherit;
    padding: 6px 10px;
    cursor: pointer;
    border: none;
}

.Menu-hamburger-icon{
    width: 24px;
    height: 3px;
    background-color: currentColor;
    position: relative;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
    border-radius: 3px;
}

.Menu-hamburger-icon::before,
.Menu-hamburger-icon::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: currentColor;
    left: 0;
    transition: transform 0.3s;
    border-radius: 3px;
}

.Menu-hamburger-icon::before{
    top: -9px;
}

.Menu-hamburger-icon::after{
    top: 9px;
}

/* État actif - transformation en croix */

.Menu-hamburger--active .Menu-hamburger-icon{
    background-color: transparent;
}

.Menu-hamburger--active .Menu-hamburger-icon::before{
    transform: rotate(45deg);
    top: 0;
}

.Menu-hamburger--active .Menu-hamburger-icon::after{
    transform: rotate(-45deg);
    top: 0;
}

@media (max-width: 1080px){

    .Nav{
        gap: 0;
    }

    .Menu-hamburger{
        display: inline-flex;
    }

    .Menu{
        display: none;
        gap: 12px;
        padding: 10px;
        position: absolute;
        background-color: var(--primary-color2);
        left: 0;
        top: 62px;
        padding: 25px;
        width: 100%;
        text-align: center;
        flex-wrap: wrap;
    }

    .Menu--open{
        display: flex;
    }

}

/*******************************
    ENTETE
********************************/

.Header{
    background-color: var(--primary-color3);
    padding: 10px 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.Header-content{
    margin: 0 auto;
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: space-between;
}

.Header-title{
    font-size: clamp(1rem, 1rem + 1vw, 1.5rem);
    color: var(--header-text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.Header-title-logo{
    transition: transform 3s;
}

.Header-title:hover .Header-title-logo{
    transform: rotate(360deg);
}

@media screen and (max-width: 980px){

    .Header{
        padding: 10px 15px;
    }
    
}

/* Sélecteur de langues */

.LangsSelector{
    background-color: #ffffff88;
    border-radius: 5px;
    padding: 3px 5px;
}

.LangsSelector-select{
    border: 0;
    padding: 5px 0;
    font-size: 1rem;
    background-color: transparent;
}

/*******************************
    MAIN
********************************/

.Main-content{
    max-width: 1500px;
    margin: 80px auto 20px 0;
    padding: 0 25px 0 calc(320px + 2vw);
}

.Main-photo{
    max-width: 150px;
    flex: 1;
    position: fixed;
    left: 100px;
    top: 130px;

}

.Main-photo img{
    border-radius: 50%;
    width: 100%;
    height: auto;
    
}

.Main-photo:before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #eedaca;
    border-radius: 50%;
    top: 20px;
    left: 20px;
    z-index: -1;
}

.Main-photo:after{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #5F8D7D;
    border-radius: 50%;
    top: -5px;
    left: -15px;
    z-index: -1;
}

.Main-content a{
    color: var(--link-color);
    font-weight: bold;
    transition: color 350ms;
}

.Main-content a:hover{
    color: var(--link-hover-color);
}


@media screen and (max-width: 980px){

    .Main-content{
        max-width: 100%;
        margin: 20px auto;
        padding: 0 20px;
    }

    .Main-photo{
        position: relative;
        top: 0;
        left: 0;
        margin: 35px auto;
    }
    
}

/*******************************
    FOOTER
********************************/

.Footer{
    margin-top: 50px;
    background-color: var(--body-background-color);
    color: var(--primary-color);
    font-size: .8em;
    position: relative;
}

.Footer-content{
    padding: 30px 0 50px 0;
    text-align: center;
}

@media (min-width: 981px){

    .Footer-content{
        max-width: 1500px;
        padding: 30px 0 50px calc(320px + 2vw);
        text-align: left;
    }

    .Footer-content:before{
        content: "";
        position: absolute;
        width: 40%;
        height: 2px;
        background-color: var(--primary-color);
        top: 0;
        left: calc(320px + 2vw);
    }

}

/*******************************
    ENCART LM
********************************/

.LMInsert-link{
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: var(--primary-color2);
    line-height: 1.4;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 25px;
    transition: background-color 350ms;
    position: relative;
    margin-top: 140px;
}

.LMInsert-link:hover{
    background-color: var(--primary-color3);
}

.LMInsert-link:before{
    content: '';
    background: url(../images/ampoule.svg) no-repeat center center;
    background-size: contain;
    display: block;
    width: 50%;
    height: 150px;
    position: absolute;
    top: -130px;
    transform: rotate(15deg);
    
}

@media (min-width: 981px){

    .LMInsert-link{
        z-index: 10;
        width: 380px;
        height: 380px;
        position: fixed;
        bottom: -130px;
        left: -80px;
        padding: 25px 60px 100px 100px;
        border-radius: 50%;
        text-align: center;
        transform: rotate(-8deg);
        margin-top: 0;
        
    }

    .LMInsert-link:before{
        display: block;
        width: 390px;
        height: 150px;
        top: -65px;
    }

}

.grid.Guides{
    --cols: 1fr 1fr 1fr;
}

@media screen and (max-width: 1200px){

    .grid.Guides{
        --cols: 1fr 1fr;
    }
    
}

@media screen and (max-width: 700px){

    .grid.Guides{
        --cols: 1fr;
    }
    
}

/*******************************
    CARDS
********************************/


.Card{
    background-color: #fff;
    border: 2px solid var(--primary-color2);
    border-radius: 8px;
    padding: 25px 15px 25px 15px;
    flex: 1;
    transition: transform 0.2s;
    min-width: 200px;
    text-align: center;
    font-size: .9em;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    flex-direction: column;
}

.Card h2{
    margin: 0 0 15px 0;
    font-size: 1.4rem;
}

@media (max-width: 980px){

    /* .Card{
        justify-content: center;
    } */

}

/*******************************
    INDEX
********************************/

.Home-intro h1{
    font-size: clamp(1.6rem, 1rem + 2vw, 4rem);
    line-height: 1.15;
}

/* .Home-intro h1 span:nth-child(1){
    font-size: clamp(2rem, 1.6rem + 1.6vw, 3.2rem);
    display: block;
    color: var(--secondary-color);
} */

.Home-intro h1 span:nth-child(1){
    font-size: clamp(2rem, 1rem + 2vw, 4rem);
    display: block;
    text-transform: uppercase;
    position: relative;
    z-index: 0;
    color: #ffa840;
}

.Home-intro h1:before{
    display: none;
}



.Home-intro h1 span:nth-child(2){
    font-size: clamp(1.3rem, 1rem + 1vw, 2rem);
    line-height: 1.25;
    display: block;
    color: var(--secondary-color);
}


.Home-intro{
    display: flex;
    gap: 50px;
    max-width: 1600px;
    margin: 40px auto 70px auto;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
}

.Home-intro-photo{
    max-width: clamp(200px, 25vw, 450px);
    flex: 1;
    position: relative;
}

.Home-intro-article{
    flex: 1;
    max-width: 800px;
}

.Home-intro-photo img{
    border-radius: 50%;
    width: 100%;
    height: auto;
    
}


.Home-intro-photo:before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color3);
    border-radius: 50%;
    top: 25px;
    left: calc(10px + 1vw);
    z-index: -1;
}

.Home-intro-photo:after{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    top: -5px;
    left: -15px;
    z-index: -1;
}

.Home-intro-photo-overlay{
    position: absolute;
    width: 10%;
    height: 150px; background-color: var(--secondary-color);
    border-radius: 50%; 
    top: 0; 
    right: 0; 
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
}

@media screen and (max-width: 849px){

    .Home-intro{
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
        margin: 0;
    }

    .Home-intro-photo{
        max-width: 300px;
        margin: 40px;
    }

}


/*******************************
    FORMULAIRES
********************************/

.Form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 640px;
    margin-top: 2rem;
    padding: 20px;
    background-color: white;
    border: 2px solid var(--primary-color3);
    border-radius: 8px;
}

/* Ligne à deux colonnes (prénom / nom) */
.Form-row.half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 480px) {
    .Form-row.half {
        grid-template-columns: 1fr;
    }
}

/* Champ individuel */
.Form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.Form-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.Form-required {
    font-size: 0.7rem;
    font-weight: normal;
    color: var(--text-color2);
    vertical-align: super;
    margin-left: 0.2em;
    letter-spacing: 0.01em;
}

.Form-input {
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--primary-color4);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 200ms, box-shadow 200ms;
    width: 100%;
}

.Form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary-color) 20%, transparent);
}

.Form-textarea {
    resize: vertical;
    min-height: 160px;
}

/* État erreur */
.Form-field.error .Form-input {
    border-color: var(--error-color);
}

.Form-field.error .Form-input:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
}

.Form-error {
    font-size: 0.875rem;
    color: var(--error-color);
}

.Form-hint {
    font-size: 0.85rem;
    color: var(--text-color2);
    font-style: italic;
}

/* Case à cocher */
.Form-field.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}

.Form-label-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
}

.Form-label-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--secondary-color);
    cursor: pointer;
}

.Form-field.checkbox.Form-field.error .Form-label-checkbox {
    color: var(--error-color);
}

/* Messages globaux */
.Form-message {
    margin-top: 20px;
    border-radius: 6px;
    font-weight: 600;
}

.Form-message.success {
    color: var(--secondary-color);
}

.Form-message.error {
    color: var(--error-color);
}

/* Bouton d'envoi */
.Form-submit {
    align-self: flex-start;
    padding: 0.7rem 2rem;
    background: var(--secondary-color);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 250ms, transform 100ms;
}

.Form-submit:hover {
    background: color-mix(in srgb, var(--secondary-color2) 80%, #000);
}

.Form-submit:active {
    transform: scale(0.97);
}

/* Pot de miel : invisible pour les humains */
.Form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

@media (max-width: 979px) {
    .Form{
        margin-left: auto;
        margin-right: auto;
    }
}

/*******************************
    ENCARTS LIENS AFFI
********************************/

.AffiLink{
    display: inline-block;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.AffiLink.right{
    float:right;
    margin: 0 0 20px 20px;
}

/*******************************
    MODIFIEURS
********************************/

/* Boutons */

.button, a.button{
    border-radius: 12px;
    padding: 10px 15px;
    background-color: #5F8D7D;
    font-weight: normal;
    color: white;
    transition: background-color 350ms;
    text-decoration: none;
}

.button:hover, a.button:hover{
    background-color: #3a5f52;
    color: white;
}


/* Positionnements */

.center{
    text-align: center;
}



/* GRILLES */

.grid{
    display: grid;
    gap: var(--gap, 15px);
    grid-template-columns: var(--cols, 1fr 1fr);
}

.grid .start{
    justify-self: start;
}

.grid .center{
    justify-self: center;
}

.grid .end{
    justify-self: end;
}

.grid.cols3{
    --cols: 1fr 1fr 1fr;
}

.grid.cols4{
    --cols: 1fr 1fr 1fr 1fr;
}

.grid.cols5{
    --cols: 1fr 1fr 1fr 1fr 1fr;
}

/* GRILLES ET FLEX RWO EN RESPONSIVE */

@media (max-width: 200px) {

    .grid.maxWidth200{
        --cols: 1fr !important;
    }

}

@media (max-width: 400px) {

    .grid.maxWidth400{
        --cols: 1fr !important;
    }

}

@media (max-width: 600px) {

    .grid.maxWidth600{
        --cols: 1fr !important;
    }

}

@media (max-width: 700px) {

    .grid.maxWidth700{
        --cols: 1fr !important;
    }

}

@media (max-width: 800px) {

    .grid.maxWidth800{
        --cols: 1fr !important;
    }

}

@media (max-width: 900px) {

    .grid.maxWidth900{
        --cols: 1fr !important;
    }

}

@media (max-width: 1000px) {

    .grid.maxWidth1000{
        --cols: 1fr !important;
    }

}

/* DIMENSIONS */

.width{
    width: var(--w, auto);
}

.minWidth{
    min-width: var(--min-w, none);
}

.maxWidth{
    max-width: var(--max-w, none);
}

.height{
    height: var(--h, auto);
}

.minHeight{
    min-height: var(--min-h, none);
}

.maxHeight{
    max-height: var(--max-h, none);
}

/* IMPRESSION */

@media print {

    body {
        font-size: 12px;
        color: #000;
        background-color: transparent;
    }

    .noPrint {
        display: none;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    .Header,
    .Footer{
        background-color: transparent;
    }

}