:root {
    /* couleur de l'université de tours*/
    --primary-color: #019f9f;
    --secondary-color: #464f66;
    --text-color: #fff;
    --navbar-color: #252b3b;
    --navheight: 80px;
}

body {
    background-color: var(--secondary-color);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    margin: 0;
    text-wrap: wrap;
}
body:has(.plan-clicked) {
    
}
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navbar-color);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid rgba(0, 139, 139, 0.25);
    padding: 18px 60px;
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--navheight);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-content {
    margin-top: var(--navheight);
}

nav a:hover {
    color: var(--text-color);
    border-color: var(--primary-color);
    background: rgba(0, 139, 139, 0.1);
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 400;
    padding: 8px 18px;
    border-radius: 40px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    letter-spacing: 0.03em;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    color: var(--primary-color);
    line-height: 1.2;
}

nav {
    width: 80%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    margin: 0;
    padding: 0;
    width: 100%;
}

.banner {
    color: var(--text-color);
    text-align: center;
    display: flex;
    background-image: url("FMI.JPG");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 500px;
    backdrop-filter: blur(10px);
    border-bottom: #252b3b solid 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.banner-content {
    z-index: 1;
    position: absolute;
    inset: 0;
    margin: auto;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    justify-content: center;
    display: flex;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

/* stack img and p on top*/
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px;
    min-height: 500px;
    height: fit-content;
    display: flex;
    align-items: center;
}

.section-tag {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 14px;
    display: block;
}

.section h2 {
    margin: 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    margin-bottom: 20px;
    color: aliceblue;
}


.fade-up {
    opacity: 0;
    transform: translateY(30px);
    min-width: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: none;
}

.divider {
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    margin-bottom: 36px;
}

footer {
    background: var(--navbar-color);
    border-top: 1px solid rgba(0, 139, 139, 0.2);
    padding: 40px 60px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
}

.primary {
    color: var(--primary-color);
    font-weight: 500;
}

.purple {
    color: #7b68ee;

}

.yellow {
    color: #f0e68c;

}

#programme {
    background: var(--navbar-color);
}

.section-content {
    color: lightgray;
    font-size: 1.2rem;
    min-width: 0;
}

.main-title {
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 3rem);
}

.logo-img {
    width: 10%;
    justify-content: center;
    align-items: center;
    padding-right: 20px;
    margin-left: 0;
    padding-left: 0;
}

.logo {
    width: 100%;
    aspect-ratio: auto;
}

.section-content .image {
    display: flex;
    justify-content: center;
}

.center {
    display: block;
    justify-content: center;
}

.logo-img {
    width:20%;
}

.logo-text {
    width: 50%;
}
.top-bar{
    display: flex;
    align-items: center;
    gap: 20px;
    width: 40%;
    justify-content: space-around;
}
@media (max-width: 768px) {
    header {
        padding: 10px 16px;
        gap: 10px;
    }

    .logo-img {
        width: 40px;
    }

    nav {
        width: 100%;
        margin-left: 0;
    }

    nav ul {
        justify-content: center;
        gap: 2px;
    }

    nav a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .section {
        padding: 28px 16px;
    }

    .top-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 12px 16px;
    }

    .top-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .logo-img {
        width: 50%;
    }

    .logo-text {
        width: 50%;
    }

    nav {
        width: 100%;
        margin-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 8px;
    }

    nav ul {
        justify-content: space-around;
    }

    nav a {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .banner {
        height: 200px;
    }
}
.plan-clicked{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 50%;
    aspect-ratio: 1/1;
    padding-top: 25%;
    padding-bottom: 25%;
    margin: auto;
    z-index: 100;
    backdrop-filter: blur(10px);
}