/* =====================================================
   Aleya Corporation — CSS Base
   Foundation only (no design)
===================================================== */

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root */
:root {
    --font-main: 'Montserrat', sans-serif;
}

/* Document */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Body */
body {
    font-family: var(--font-main);
    line-height: 1.5;
    min-height: 100vh;
    background-color: #000362;
}

/* Text elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
}

p {
    max-width: 75ch;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Media */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ul,
ol {
    list-style: none;
}

/* Forms */
input,
button,
textarea,
select {
    font: inherit;
    border: none;
    outline: none;
    background: none;
}

/* Buttons */
button {
    cursor: pointer;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* NAVBAR CONTAINER */
.navbar {
    position: fixed;
    height: 5rem;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
}

/* BLUR + TRANSPARENCE */
.navbar-blur {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(18px);
}

/* CONTENT */
.navbar-content {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 40px;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

/* LOGO */
.navbar-logo img {
    height: 3rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.navbar-logo:hover img {
    opacity: 1;
}

/* LINKS */
.navbar-links {
    display: flex;
    justify-content: center;
    gap: 6rem;
    list-style: none;
}

.navbar-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

.navbar-links a:hover {
    color: white;
}

/* ACCOUNT ICON */
.navbar-account img {
    height: 3rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.navbar-account:hover img {
    opacity: 1;
}

/* ================= BURGER ================= */

.navbar-burger {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

/* les 3 barres */
.navbar-burger span {
    position: absolute;
    width: 26px;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.navbar-burger span:nth-child(1) {
    transform: translateY(-7px);
}

.navbar-burger span:nth-child(2) {
    transform: translateY(0);
}

.navbar-burger span:nth-child(3) {
    transform: translateY(7px);
}

/* animation -> croix */
.navbar-burger.is-open span:nth-child(1) {
    transform: rotate(45deg);
}

.navbar-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.navbar-burger.is-open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* ================= MENU FULLSCREEN ================= */

.navbar-mobile {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(28px);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}

.nav-open .navbar-mobile {
    opacity: 1;
    pointer-events: auto;
}

.navbar-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: center;
}

.navbar-mobile-links a {
    font-size: 24px;
    color: white;
    transition: 0.2s ease;
}

.navbar-mobile-links a:hover {
    transform: scale(1.1);
}

.divider {
    height: 1px;
    width: 200px;
    background: rgba(255, 255, 255, 0.2);
    margin: 10px auto;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {

    .navbar-links {
        display: none;
    }

    .navbar-account {
        display: none;
        /* 👈 cache l’icône compte */
    }

    .navbar-content {
        display: flex;
        justify-content: space-between;
        padding: 0 24px;
    }

    .navbar-burger {
        display: flex;

    }
}

/* IMAGE DE FOND FIXE */
.background {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url("media/user_back.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

@media (max-width: 900px) {
    .background {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 60vh;
        background-image: url("media/user_back.svg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
    }
}

@media (max-width: 530px) {
    .background {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 45vh;
        background-image: url("media/user_back.svg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
    }
}

/* CONTENU QUI SCROLL */
.content {
    position: relative;
    z-index: 1;
    min-height: 200vh;
    /* juste pour tester le scroll */
}

/* FOOTER */
footer {
    background: #222;
    color: white;
    padding: 50px 80px;
    margin-top: 80px;
}

.h4footer {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.col {
    width: 300px;
    margin-bottom: 30px;
}

.col ul {
    list-style: none;
    margin-top: 10px;
}

.col ul li {
    margin: 5px 0;
}

.socials {
    display: flex;
    justify-content: space-between;
    margin-top: 90px;
    gap: 60px;
}

.socials a {
    display: inline-flex;
    line-height: 0;
    flex-shrink: 0;
    /* empêche la réduction */
}

.socials a {
    display: inline-flex;
    /* évite les décalages */
    line-height: 0;
    /* supprime l’espace fantôme sous l’image */
}

.socials img {
    width: 24px;
    height: 24px;
    display: block;
    /* évite le petit espace en bas */
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 30px;
    padding-top: 50px;
    font-size: 12px;
    justify-content: center;
    display: flex;
    text-align: center;
}

/* MOBILE */
@media (max-width: 650px) {

    footer {
        padding: 35px 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .col {
        width: 100%;
        /* une colonne */
    }

    .socials {
        justify-content: center;
        gap: 24px;
        margin-top: 60px;
        margin-bottom: 30px;
    }

    .footer-bottom {
        padding-top: 25px;
        font-size: 11px;
    }

}