/* ================== POLICES ================== */
@font-face {
    font-family: 'Gogh';
    src: url('fonts/Gogh-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Acumin';
    src: url('fonts/Acumin-VariableConcept.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ================== GLOBAL ================== */
body {
    margin: 0;
    font-family: 'Acumin', sans-serif;
    background: #F7F4ED;
    scroll-behavior: smooth;
}

/* ================== HEADER ================== */
#header-container {
    position: relative;
    text-align: center;
    background: #fff;
    z-index: 1;
}

#header-container img {
    width: 1000px;
    max-width: 95%;
    transition: transform 0.4s ease;
}

#header-container img:hover {
    transform: scale(1.15);
}

#header-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 200%;
    background-image: url('illustrations/image-gauche4.png');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

/* ================== MENU ================== */
#main-nav {
    margin: 20px auto;
    text-align: center;
    width: fit-content;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}

#main-nav.rounded {
    background: transparent;
    border-radius: 50px;
    padding: 10px 20px;
}

#main-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.nav-logo {
    display: none;
    height: 70px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

#main-nav.sticky .nav-logo {
    display: block;
}

#main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 15px;
    justify-content: center;
    position: relative;
}

#main-nav li {
    position: relative;
}

#main-nav a {
    text-decoration: none;
    font-family: 'Gogh', sans-serif;
    font-weight: 800;
    font-size: 16px;
    padding: 10px 20px;
    color: #000;
    display: inline-block;
    border-radius: 50px;
    background: #fff;
    border: 2px solid #000;
    transition: all 0.3s ease;
}

#main-nav.sticky a {
    border-radius: 0;
}

#main-nav a:hover {
    background: #ff0000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1002;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #000;
}

/* Responsive menu */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    #main-nav ul {
        flex-direction: column;
        display: none;
        width: 100%;
        gap: 10px;
        padding: 10px 0;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1000;
    }

    #main-nav ul.show {
        display: flex;
    }

    #main-nav a {
        border-radius: 0;
        margin: 0 10px;
    }
}

/* ================== SECTIONS ENCADRÉES ================== */
.section-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    max-width: 900px;
    margin: 50px auto;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

.section-box h1,
.section-box h2 {
    margin-top: 0;
    font-family: 'Gogh', sans-serif;
}

/* ================== FIGURES ET LÉGENDES ================== */
figure {
    position: relative;
    display: block;
    margin: 20px auto;
    text-align: center;
}

figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

figcaption {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 14px;
    text-align: center;
    border-radius: 0;
    width: auto;
}

/* ================== PROFESSEURS ================== */
.teacher .teacher-image {
    width: 25%;
    max-width: 225px;
    margin: 0 auto 20px auto;
    position: relative;
}

.teacher .teacher-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.teacher .text {
    max-width: 600px;
    margin: 0 auto 40px auto;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .teacher .teacher-image {
        width: 50%;
        max-width: 300px;
    }
}

/* ================== ACTUALITÉS / LOGO ================== */
.actualites-image {
    width: 25%;
    max-width: 225px;
    margin: 20px auto;
    position: relative;
}

.actualites-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ================== FORMULAIRE CONTACT ================== */
form {
    max-width: 700px;
    margin: 30px auto;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #008BCF;
    box-shadow: 0 0 5px rgba(0,139,207,0.3);
}

textarea {
    resize: vertical;
}

form button {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #008BCF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

form button:hover {
    background-color: #005f8c;
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    form {
        padding: 15px;
    }
    form button {
        width: 100%;
    }
}

/* ================== NEUTRALISATION ANCIENS ENCADRES ================== */
.grey-box,
main {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ================== FOOTER ================== */
#footer-container {
    font-family: 'Arial', sans-serif;
}

#footer-top {
    background: #008BCF;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

#footer-bottom-strip {
    width: 100%;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 20px 60px 20px;
    box-sizing: border-box;
}

#footer-bottom-strip .footer-content {
    max-width: 900px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

#footer-bottom-strip .footer-circle {
    margin-top: 10px;
    height: 50px;
}
