:root {
    --background-color: #ffffff;
    --text-color: black;
    --primary-color: #073557;
    --secondary-color: #3e769f;
    --tertiary-color: #d4f7ff;
    --footer-bg-color: #d5e7e8;
    --weak-links-color: dimgrey;
    --font-family: Verdana, Geneva, Tahoma, sans-serif;
    --header-height: min(15vh, 200px);
    --header-background: url('../img/blue.jpg') no-repeat center center;
    --header-z-index: 1000; 
    --button-width: 100%;
    --button-max-width: 300px;
    --footer-height: 60px
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color) !important;
    font-family: var(--font-family);
}

.fade-line {
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-color), white);
    margin: 20px 0; /* Adjust as necessary */
}

/*EN-TÊTE*/

header {
    height: var(--header-height);
    width: 100%;
    background: var(--header-background);
    background-size: cover;
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: var(--header-z-index);
}

.header-container {
    position: relative;
    display: flex;
    padding: 0px 10vw;
    width: 100%;    
}

/*MAIN */

.main-container {
    width: 100%;
    padding-top: calc( var(--header-height) + 1vw);
    padding-bottom: calc( var(--footer-height) + 1vw);
    padding-left: 20vw;
    padding-right: 20vw;
    display: flex;
    justify-content: center;
    align-items: left;
    flex-direction: column;
    box-sizing: border-box;
    font-family: var(--font-family);
    font-size: large;
    text-align: left;
}

.main-apropos {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.text-apropos {
    width: 55%;
    padding-right: 20px;
}

.main-valeurs {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.text-valeurs {
    width: 55%;
    padding-left: 20px;
}

.main-medias {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.text-medias {
    width: 50%;
    padding-right: 20px;
}

.main-fondateur {
    width: 100%;
    padding-top: 1.5em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.text-fondateur {
    width: 80%;
    padding-left: 20px;
}

.section {
    display: block;
    position: relative;
    top: calc(-1 * (var(--header-height) + 30px));
    visibility: hidden;
}

/* LISTS */

ul.none {
    list-style-type: none;
}

li.margin {
    margin-top: 20px;
}

/* TITLES */

h1.h1-style {
    margin-bottom: 20px;
    font-size: max(24px, 2em);
    text-align: center;
    color: var(--primary-color);
    font-family: Verdana, sans-serif;
    font-weight: bold;
}

h2.h2-style {
    margin-bottom: 15px;
    font-size: max(18px, 1.5em);
    text-align: left;
    color: var(--secondary-color);
    font-family: Verdana, sans-serif;
    font-weight: bold;
}

h3.h3-style, .h3-style {
    font-size: max(10px, 1em);
    text-align: left;
    color: var(--secondary-color);
    font-family: Verdana, sans-serif;
    font-weight: bold;
    margin-block-start:0em;
    margin-block-end:0em;
}

/* PODCAST */

.podcast-embed {
    border-radius: 12px;
    width: min(90vw, 600px);
    height: 200px;
    border: none;
}

/* BUTTONS */

.button-container {
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: column;
    width: 100%;
}

button {
    margin: 10px 10px;
    padding: 5px;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 100px;
    height: 70px;
}

button:hover {
    background-color: var(--tertiary-color);
}

/* LINKS */

.nav-links {
    align-self: flex-end;
    padding-left: 5vw;
    padding-right: 1vw;
    gap: 20px;
    z-index: calc(var(--header-z-index) + 2);
}

.nav-button.active {
    background-color: white;
    color: var(--primary-color);
}

.nav-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: max(1.3vw, 10px);
    border: none;
    flex: auto;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px 5px 0px 0px;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: var(--secondary-color);
    color: white;
}

.strong-links {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.strong-links:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.soft-links {
    color: black;
    font-weight: normal;
    text-decoration: none;
    transition: color 0.3s ease;
}

.soft-links:hover {
    color: var(--weak-links-color);
    text-decoration: underline;
}

/* IMAGES */

.picto{
    width: 30px;
    aspect-ratio: 1 / 1;
}

.logo-container{
    position: absolute;
    right: 10vw;
    top: 1vw;
    z-index: calc(var(--header-z-index) + 1);
}

.logo {
    max-height: calc(var(--header-height) - 3vw);
    max-width: 30vw;
    aspect-ratio: auto;
}

.portrait {
    width: 15%;
}

.img-apropos {
    width: 45%;
    border-radius: 300px;
}

.img-valeurs {
    width: 45%;
    border-radius: 300px;
}

/* FOOTER */

footer.footer-container {
    position: fixed;
    bottom: 0;
    height: var(--footer-height);
    width: 100%;
    background-color: var(--footer-bg-color);
    padding-left: 10vw;
    padding-right: 10vw;
    align-content: center;
    font-family: var(--font-family);
    font-size: small;
    justify-content: center;
}

.footer-links a {
    display: inline-flex;
    padding-right: 1vw;
    color: var(--weak-links-color);
    gap: 20px;
}

@media (max-width: 900px) {
    .main-apropos {
        flex-direction: column;
        align-items: flex-start;
    }

    .text-apropos {
        width: 100%;
        margin-bottom: 20px;
        padding-right: 0px;
    }

    .img-apropos {
        width: 100%;
    }

    .main-valeurs {
        flex-direction: column;
        align-items: flex-start;
    }

    .text-valeurs {
        width: 100%;
        margin-top: 20px;
        padding-left: 0px;
    }

    .img-valeurs {
        width: 100%;
    }

    .main-medias {
        flex-direction: column;
        align-items: flex-start;
    }

    .text-medias, .podcast-embed {
        width: 100%;
        margin-bottom: 20px;
        padding-right: 0px;
    }

    .podcast-embed {
        margin-bottom: 0;
    }

    .main-fondateur {
        flex-direction: column;
        align-items: flex-start;
    }

    .text-fondateur {
        width: 100%;
        margin-bottom: 20px;
        padding-left: 0px;
    }

    .portrait {
        width: 100%;
    }
}