/* ===== Import des fichiers CSS ===== */
@import url('_variables.css');
@import url('_header.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    scroll-padding-top: 100px;
}

html {
    font-size:16px;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1; /* Place le fond derrière tout le contenu */
}

#background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main#contenu {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 190px auto 2rem; /* Marge en haut pour éviter le header */
    text-align: center;
    color: var(--text-color-dark);
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

main#contenu h1 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

main#contenu p {
    font-family: var(--font-text);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
}

main#contenu img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 5px;
}

.cadre, .cadre_bas {
    text-align: center;
    color: var(--text-color-dark);
    position: relative;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
}

.cadre::before,
.cadre::after, 
.cadre_bas::after  {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--text-color-dark);
}

.cadre::before {
    top: 0;
}

.cadre::after, 
.cadre_bas::after  {
    bottom: 0;
}

figure {
    margin-bottom: 1em;
}

figure.side {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    
    main#contenu {
        width: 100%;
        max-width: 100%;
        margin: 50px auto 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    figure.side {
        display: block;
        align-items: center;
    }
    html {
        font-size:14px;
    }
}

@media (max-width: 400px) {
    html {
        font-size:11px;
    }
}