:root {
    --couleur-principale: #2a3475;
    --couleur-principale-claire: #a8cdee;
    --couleur-secondaire: #dd4347;
    --couleur-secondaire-claire: #f8a1a3;
    --couleur-tertiaire: grey;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

.navbar {
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 80px;
    top: 0;
    left: 0;
    padding: 10px 20px;
    transition: background-color 0.3s ease, padding 0.3s ease;
    z-index: 100;
}

.navbar.transparent {
    background-color: transparent;
    padding: 15px 20px;
}

.navbar.scrolled {
    background-color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    color: white;
    font-size: 24px;
    width: 300px;
    height: 100%;
}

.logo img {
    height: 100%;
}

.navbar.scrolled .logo {
    color: black;
}

.navbar.scrolled .logo img.bleu,
.logo img.blanc {
    display: block;
}

.navbar.scrolled .logo img.blanc,
.logo img.bleu {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s ease;
    border: solid transparent;
}

.navbar.scrolled .nav-links a {
    color: #2a3475;
}

.navbar.scrolled .nav-links a:hover, 
.navbar.scrolled .nav-links a.active {
    color: #2a3475;
    border: solid #2a3475;
    border-radius: 15px;
}

.navbar.transparent .nav-links a:hover, 
.navbar.transparent .nav-links a.active {
    color: white;
    border: solid white;
    border-radius: 15px;
}

.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
}

.menu-icon div {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.navbar.scrolled .menu-icon div {
    background-color: #2a3475;
}

.menu-icon.open div:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
}

.menu-icon.open div:nth-child(2) {
    opacity: 0;
}

.menu-icon.open div:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: calc(100% - 30px);
        background-color: #2a3475;
        position: absolute;
        top: 90px;
        left: 0;
        margin: 0 15px;
        border-radius: 15px;
        padding: 15px 0;
    }

    .navbar.scrolled .nav-links a {
        color: white;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-icon {
        display: flex;
    }

    .img-content {
        top: 90px !important;
        left: 20px !important;
    }

    .img-content h1, .titre h1 {
        font-size: 32px !important;
    }

    .qui-suis-je, .permanences > div:first-child {
        flex-direction: column !important;
        justify-content: normal !important;
    }

    .qui-suis-je img, .qui-suis-je div, .permanences > div > img, .permanences div {
        width: 100% !important;
    }
}

section.img {
    background: url('../ressources/photos/face-AN.png') center/cover no-repeat;
    position: relative;
    width: 100vw;
    height: 90dvh;
    overflow: hidden;
}

section.img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(42, 52, 117, 0.8) 0%, rgba(171, 205, 236, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.img-content {
    top: 50%;
    display: block;
    position: absolute;
    z-index: 6;
    left: 10%;
    color: white;
}

.img-content h1, .titre h1 {
    font-weight: 400;
    font-size: clamp(38px, 5vw, 80px) !important;
    margin: 0;
    line-height: 110%;
}

.img-content .highlight, .titre .highlight {
    font-style: italic;
    font-family: 'Caveat', cursive;
    font-size: larger;
    color: #F7A09A;
}

.img-content .name, .titre .name {
    font-size: larger;
    font-style: italic;
    font-weight: bold;
    color: #2a3475;
}

.profil {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 6;
    height: 80dvh;
}

.qui-suis-je {
    width: 100vw;
    background: #2a3475;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 50px;
    box-sizing: border-box;
}

.qui-suis-je img {
    width: 41.666667%;
    border-radius: .5rem;
}

.qui-suis-je div {
    width: 58.333333%;
    color: white;
}

.qui-suis-je div h2 {
    margin-top: 0px;
    font-family: 'Caveat', cursive;
    font-size: xx-large;
}

.permanences {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    box-sizing: border-box;
    padding: 50px;
    background-color: transparent;
}

.permanences > div:first-child {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    box-sizing: border-box;
    color: #2a3475;
}

.permanences > div:last-child {
    background: #abcdec;
    color: white;
    padding: 15px;
    border-radius: .5rem;
    margin-top: -60px;
    padding-top: 35px;
    z-index: -1;
    width: 80vw;
    box-sizing: border-box;
}

.permanences > div:last-child ul {
    padding-left: 15px;
    margin: 0;
}
.permanences > div:last-child li {
    position: relative;
    list-style: none;
    margin-bottom: 10px;
}
.permanences > div:last-child li::before {
    content: "";
    background-color: #2a3475;
    border-radius: 30px;
    width: 5px;
    height: 100%;
    position: absolute;
    left: -15px;
}

.permanences > div:last-child li p {
    margin: 0;
    color: white;
}
.permanences > div:last-child li p:first-child {
    color: #2a3475;
    font-size: larger;
    font-weight: bold;
}
.permanences > div:last-child li p span {
    font-family: 'Caveat', cursive;
}

.permanences > div > img {
    width: 41.666667%;
    border-radius: .5rem;
}

.permanences > div > div {
    width: 58.333333%;
}

.permanences h2 {
    margin-top: 0px;
    font-family: 'Caveat', cursive;
    font-size: xx-large;
}

.permanence-info {
    color: #2a3475;
    background: white;
    border-radius: 15px;
}

.contact-box {
    color: white; 
    background: #f7a09a; 
    padding: 10px 15px; 
    border-radius: .5rem; 
    display: flex; 
    flex-direction: row; 
    flex-wrap: nowrap; 
    align-items: center; 
    gap: 15px;
    box-sizing: border-box;
}

.contact-box > div {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.contact-box p {
    margin: 0;
}

.contact-box > i {
    font-size: x-large;
}

.contact-box a {
    padding: 5px;
    background: #2a3475;
    border-radius: .5rem;
    text-decoration: none;
    color: white;
    margin-right: 5px;
}

section.lettresInformations {
    background: url('../ressources/photos/face-AN.png') center/cover no-repeat;
    position: relative;
    height: 50dvh;
    overflow: hidden;
}

section.lettresInformations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(42, 52, 117, 0.8) 0%, rgba(171, 205, 236, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

section.lettresInformations > div {
    top: 40%;
    left: 0px;
    transform: translateY(calc(-50% + 55px));
    display: block;
    z-index: 6;
    color: white;
    position: relative;
    width: 100%;
    text-align: center;
    box-sizing: content-box;
}

.lettresInformations {
    padding: 100px 20px;
    text-align: center;
}

.titre {
    width: 100%;
}

.titre h1 {
    font-weight: 400;
    font-size: clamp(38px, 5vw, 80px);
    margin: 0;
}

.titre .highlight {
    font-style: italic;
    font-family: 'Caveat', cursive;
    font-size: larger;
    color: #F7A09A;
}

.titre p {
    margin: 20px 0;
}

.btn-inscription {
    padding: 5px 0;
    text-decoration: none;
    color: #fff;
    border-bottom: 3px solid #f7a09a;
    display: inline-block;
}

.iframe-container {
    width: 90vw;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 5vw;
}

.styled-iframe {
    height: 100%;
    width: 90vw;
    margin-top: -100px;
    z-index: 10;
    border-radius: 15px;
    border: 5px solid white;
    box-sizing: border-box;
}

/* Sélecteur général pour tous les inputs sauf submit et checkbox */

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form input[type="password"],
.form input[type="date"],
.form input[type="file"],
.form input[type="time"],
.form select,
.form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    color: var(--couleur-principale);
    border: 2px solid var(--couleur-principale);
}

/* Style spécifique pour les labels */

.form label, .form h4 {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--couleur-principale);
}

.contact-container {
    width: 100vw;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 100dvh;
    box-sizing: border-box;
    top: -150px;
    position: relative;
    z-index: 15;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
}

.div-page {
    height: 100%;
    width: 90vw;
    margin-top: -100px;
    z-index: 10;
    border-radius: 15px;
    border: 5px solid white;
    box-sizing: border-box;
    background: var(--couleur-principale);
    color: white;
    padding: 15px;
}

/* Carte - Circo */
#map {
    position: relative;
}
.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border-radius: 3px;
    pointer-events: none;
    display: none;
}