/* ==================================================================
   ESPACE INTERNE AMU - Bouton header + Overlay + Badge
   ================================================================== */

/* BOUTON HEADER */
.auth-interne {
    display: flex;
    align-items: center;
}

/* BOUTON CADENAS - MEME STYLE QUE .loupe */
.cadenas button {
    display: flex;
    flex-wrap: nowrap;
    height: 70px;
    padding: 20px;
    background: none;
    position: relative;
    overflow: hidden;
    color: black;
    transition: color 0.4s ease;
    border: 0;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.cadenas svg {
    height: 40px;
    width: 28px;
    display: block;
    flex-shrink: 0;
}

#cadenas {
    cursor: pointer;
}
#opencadenas {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
#gauchecadenas {
    stroke-dasharray: 170.962;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
#cadenas:hover #opencadenas {
    transform: translateY(-38px);
}
#cadenas:hover #gauchecadenas {
    stroke-dashoffset: 170.962;
}

/* =============================================================================
   AUTH DROPDOWN
   ========================================================================== */
.auth-dropdown {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    background: #7d42f3;
    height: 430px;
    width: 100%;
    z-index: 499;
}
.auth-dropdown.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-dropdown-form, .auth-dropdown-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 500px;
    padding: 0 40px;
    justify-content: center;
}
.auth-label {
    font-family: 'AMUMonumentGrotesk-Bold';
    font-size: 20px;
    color: #fff;
    margin: 0;
}
.auth-desc {
    font-family: 'AMUMonumentGrotesk-RegularItalic';
    font-size: 14px;
    color: #fff;
    margin: 0;
    text-align: center;
    text-wrap: balance;
}
.auth-input {
    outline: none;
    padding: 10px;
    font-family: 'AMUMonumentGrotesk-RegularItalic';
    background: none;
    text-align: center;
    width: 100%;
    border-bottom: 0.5px solid black;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    font-size: 16px;
    color: #fff;
}
.auth-input::placeholder {
    color: rgba(255,255,255,0.6);
}
.auth-error {
    font-size: 12px;
    color: #ffcccc;
    margin: 0;
    min-height: 16px;
}
.auth-submit-btn {
    font-family: 'AMUMonumentGrotesk-Bold';
    font-size: 14px;
    background: #fff;
    color: #9966ff;
    border: none;
    padding: 10px 24px;
    cursor: pointer;
}

/* FORMULAIRE/SUCCES - BASCULE VIA CLASSES */
.auth-dropdown-form.hidden {
    display: none;
}
.auth-dropdown-success {
    display: none;
}
.auth-dropdown-success.visible {
    display: flex;
}

/* QUAND LA PAGE EST SCROLLEE */
.auth-dropdown.scrolled {
    position: fixed;
    top: 70px;
    height: 70px;
}
.auth-dropdown.scrolled .auth-dropdown-form,
.auth-dropdown.scrolled .auth-dropdown-success {
    flex-direction: row;
    gap: 10px;
    padding: 0 20px;
}

/* BADGE INTERNE SUR LES ARTICLES */
.badge-interne {
    display: inline-block;
    padding: 2px 8px;
    background: #e6a817;
    color: #fff;
    font-family: 'AMUMonumentGrotesk-Bold';
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 6px;
}

/* MENU BURGER - FORCER ALIGNEMENT GAUCHE COMME LES AUTRES ITEMS */
#menuAuthBtn {
    text-align: left !important;
}

/* RESPONSIVE MOBILE */
@media only screen and (max-width: 800px) {
    .auth-dropdown {
        height: calc(100svh - 70px);
    }
    .auth-dropdown-form,
    .auth-dropdown-success {
        height: calc(100svh - 70px);
    }
}
