/* Agrandir la section entête spécifiquement sur la page d'accueil */

/* Map tile filter for blue aesthetics (Positron base) */
.map-tiles-blue {
    /* More natural, slightly less saturated blue without making it so dark */
    filter: sepia(0.6) hue-rotate(180deg) saturate(1.8) brightness(1.0) contrast(1.05);
}

#home .section.entete {
    margin-top: 150px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}
#home .section.entete > div:first-child {
    display: flex;
    flex-flow: column nowrap;
}

#home .section.entete h2 {
    font-size: 2.5rem;
}
#home .section.entete h2 small {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
#home .section.entete .card.--illustrated {
    padding-right: 125px;
    border-top-left-radius: 0;
}
#home .section.entete .card.--illustrated::after {
    top: 80px; /* Moves the illustrated image down */
}
#home .section.entete .card.--illustrated p {
    max-width: 800px;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* -------------------------------------
   ACOLAD Form Search
---------------------------------------- */
#home .section.entete .form.--rechercher {
    display: inline-flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    background-color: #454796;
    align-self: flex-end;
    gap: 16px;
    height: 60px;
    font-weight: 500;
    padding: 0 2.25rem;
    margin-right: 1.375rem;
    border-radius: 48px;
    border-top-left-radius: 0;
    color: #ffffff;
}
#home .section.entete .form.--rechercher label {
    font-size: 1.2rem;
    display: block;
    color: #ffffff;
    margin-bottom: 0;
}
#home .section.entete .form.--rechercher .input-group {
    display: flex;
    border: 2px solid #ffffff;
    border-radius: 99999px;
    padding-left: 16px;
    align-items: center;
}
#home .section.entete .form.--rechercher .input-group input {
    background: transparent;
    color: #fff;
    border: none;
    outline: none;
    font-size: 1.15rem;
    padding: 8px 16px;
}
#home .section.entete .form.--rechercher .input-group input::placeholder {
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
}
#home .section.entete .form.--rechercher .input-group button.btn.--reverse {
    font-size: 1.15rem;
    padding: 10px 28px;
    background-color: #ffffff;
    color: #454796;
    border-radius: 99999px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin: 2px;
}
#home .section.entete .form.--rechercher .input-group button.btn.--reverse:hover {
    background-color: #f0f0f0;
}

/* -------------------------------------
   ACOLAD Amibe
---------------------------------------- */
#home .section.entete .amibe {
    position: relative;
    width: 376px;
    height: 357px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    flex: 0 0 376px;
    top: -50px;
    left: 77px;
    transform: scale(1.15);
    transform-origin: top right;
}
#home .section.entete .amibe img {
    width: 60px;
    height: 60px;
}
#home .section.entete .amibe > a {
    position: absolute;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
    row-gap: 5px;
    font-size: 0.875rem;
    color: #ffffff;
    text-decoration: none;
}
#home .section.entete .amibe > a:hover {
    opacity: 0.8;
}
#home .section.entete .amibe.--top-right {
    background-image: url("../../svgs/picto-amibe-color.svg");
    background-repeat: no-repeat;
    background-position: top left;
    background-size: cover;
}
#home .section.entete .amibe.--top-right > a:nth-child(1) {
    top: 35px;
    left: 40px;
}
#home .section.entete .amibe.--top-right > a:nth-child(2) {
    top: 176px;
    right: 112px;
}

/* -------------------------------------
   Mobile Responsiveness
---------------------------------------- */
@media screen and (max-width: 767px) {
    #home .section.entete {
        margin-top: 80px;
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }

    #home .section.entete h2 {
        font-size: 1.75rem;
        text-align: center;
    }

    #home .section.entete h2 small {
        font-size: 1.15rem;
    }

    #home .section.entete .card.--illustrated {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
        text-align: center;
    }

    #home .section.entete .card.--illustrated::after {
        display: none; /* Hide illustrative image on small screens to save space */
    }

    #home .section.entete .card.--illustrated p {
        font-size: 1rem;
        line-height: 1.5;
    }

    #home .section.entete .form.--rechercher {
        width: 100%;
        height: auto;
        flex-direction: column;
        padding: 1rem;
        margin-right: 0;
        align-self: center;
        margin-top: 2rem;
        border-radius: 24px;
    }

    #home .section.entete .form.--rechercher label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    #home .section.entete .form.--rechercher .input-group {
        width: 100%;
    }

    #home .section.entete .form.--rechercher .input-group input {
        width: 100%;
        font-size: 1rem;
        padding: 6px 12px;
    }

    #home .section.entete .amibe {
        display: none; /* Hide amibe on mobile to prevent layout issues */
    }

    .section.carrousel {
        margin-top: 2rem;
    }

    .section.map {
        margin-top: 40px !important;
    }

    .section.map h1 {
        font-size: 2rem;
    }

    #carte-alumni {
        height: 300px !important;
        width: 100% !important;
        margin-top: 20px !important;
    }

    .section.map .amibe {
        display: none;
    }
}
