/* --- HEADER --- */
.header-spacer {
    display: none;
}

.nav-container {
    display: flex;
    padding: 0.5rem 1rem;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 107px;
}

/* ==========================================
   GESTION DES IMAGES SELON LE THÈME
   ========================================== */
.img-theme-dark {
    display: none;
}

[data-theme="dark"] .img-theme-light {
    display: none;
}

[data-theme="dark"] .img-theme-dark {
    display: block;
}

.text-description {
    display: none;
}

#main-nav {
    display: none;
}

@media screen and (min-width: 784px) {
    .header-spacer {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        aspect-ratio: 784/32;
        padding-right: 2rem;
        background-color: var(--primary-orange);
    }

    .nav-container {
        padding: 20px 32px
    }

    .logo {
        width: 150px;
    }

    .text-description {
        display: block;
        width: 216px;
    }

    .img-theme-dark {
        width: 100%;
    }

    #main-nav {
        display: flex;
        gap: 10px;
        font-size: 0.625rem;
    }
}

@media screen and (min-width: 1440px) {
    .header-spacer {
        padding-right: calc(var(--layout-gutter) + 10px);
        max-height: 80px;
    }

    .nav-container {
        height: 160px;
        padding-right: calc(var(--layout-gutter) + 10px);
        padding-left: calc(var(--layout-gutter) + 10px);
    }

    .logo {
        width: 213px;
    }

    .text-description {
        width: 346px;
    }

    .text-description img {
        width: 100%;
    }

    #main-nav {
        gap: 50px;
        font-size: 1.25rem;
    }
}

/* --- BANNIÈRE MARQUE (Wave + Mascotte) --- */
.brand-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 375/83;
    background-image: url("../img/background-wave.svg");
    background-size: 100% auto;
    background-position: bottom center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

img.banner-mascot {
    margin: 10px 0 0 27px;
    position: relative;
    z-index: 10;
}

.text-mobile {
    font-weight: bold;
    font-size: 22px;
    color: var(--text-principal);
    padding-right: 30px;
}

.text-tablet,
.text-desktop {
    display: none;
}

@media screen and (min-width: 579px) {
    img.banner-mascot {
        margin: 25px 0 0 42px;
        width: 114px;
        height: auto;
    }
}

@media screen and (min-width: 784px) {
    img.banner-mascot {
        margin: 40px 0 0 57px;
        width: 137px;
        height: auto;
    }

    .text-mobile,
    .text-desktop {
        display: none;
    }

    .text-tablet {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--text-principal);
        margin: 0 57px 0 0;
        height: auto;
        justify-content: center;
        line-height: 1.2;
    }
}

@media screen and (min-width: 1440px) {
    .banner-content {
        padding-right: calc(var(--layout-gutter) + 72px);
        padding-left: calc(var(--layout-gutter) + 72px);
    }

    img.banner-mascot {
        width: 342px;
        margin: 35px 0 0;
    }

    .text-mobile,
    .text-tablet {
        display: none;
    }

    .text-desktop {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        color: var(--text-principal);
        font-size: 1.375rem;
        font-weight: 600;
        max-width: 902px;
    }

    .text-desktop span:first-child {
        font-size: 4rem;
        font-weight: 700;
    }

    .text-desktop span:last-child {
        text-align: center;
    }
}

/* --- APP CONTENT (Zone dynamique) --- */
#app-content {
    margin-top: 1.25rem;
}

.page-header {
    position: relative;
    display: flex;
    justify-content: center;
}

.page-header img {
    width: 242px;
    height: auto;
}

.page-header h1 {
    position: absolute;
    top: calc(50% + 10px);
    left: calc(50% + 10px);
    transform: translate(-50%, -50%);
    color: var(--text-principal);
    font-size: 1.25rem;
    font-weight: 700;
}

@media screen and (min-width: 1440px) {
    .page-header img {
        width: 346px;
        height: auto;
    }


    .page-header h1 {
        top: calc(50% + 14px);
        left: calc(50% + 15px);
        font-size: 1.875rem;
    }


}

/* --- FOOTER --- */
.orange-bar {
    width: 100%;
    height: 1rem;
    background-color: var(--primary-orange);
    margin-top: 1.25rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

ul.footer-nav {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
}

.mentions {
    text-align: center;
}

.mentions a:first-child {
    margin-right: 0.625rem;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding-bottom: 0.625rem;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.15);
}

.social-icons a:active {
    transform: translateY(-2px) scale(1.05);
}

.social-icons a img {
    height: 1.25rem;
}

.copyright {
    text-align: center;
}

ul.footer-nav,
.mentions,
.copyright {
    font-weight: 400;
    font-size: 0.75rem;
}

@media screen and (min-width: 784px) {
    .orange-bar {
        height: 2rem;
        margin-top: 2rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.25rem 2rem;
        margin-top: 0;
    }

    ul.footer-nav {
        flex-direction: column;
        align-items: center;
        order: 3;
    }

    .social-icons a img {
        height: 1.875rem;
    }

    .mentions {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.625rem;
    }

    .copyright {
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

    .copyright-symbol {
        font-size: 1.125rem;
        font-weight: 700;
    }

    .copyright-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (min-width: 1440px) {
    .orange-bar {
        height: 3.125rem;
        margin-top: 3.125rem;
    }

    .footer-content {
        padding: 1.75rem calc(var(--layout-gutter) + 10px);
    }

    .mentions {
        gap: 1.25rem;
    }

    .social-icons a img {
        height: 3.125rem;
    }

    .copyright {
        gap: 0.625rem;
    }

    .copyright-text {
        flex-direction: row;
    }

    ul.footer-nav,
    .mentions,
    .copyright {
        font-size: 1.125rem;
    }
}
