/* Import police */
@import url('https://fonts.googleapis.com/css?family=Poppins:400,700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    background: #b5ffbb;
}

.site-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: #b5ffbb;
}

.vertical-header {
    position: sticky;
    left: 0;
    top: 0;
    height: 100vh;
    width: 5vw;
    min-width: 180px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 2px 0 10px #a2faaa;
    transition: width 0.4s cubic-bezier(.77,0,.18,1);
    transform: translateX(-100%);
    animation: header-slide-in 1s cubic-bezier(.77,0,.18,1) forwards;
}

@keyframes header-slide-in {
    to { transform: translateX(0); }
}

.header-section {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.77,0,.18,1);
    border: none;
    outline: none;
    user-select: none;
    min-height: 0;
    min-width: 0;
    z-index: 1000;
    width: 100%;
    text-decoration: none;
    padding: 2.2vh 0;
}

.header-section.axel {
    background: #f7acc0;
    color: #d81b60;
}
.header-section.realisations {
    background: #b7f7ff;
    color: #0097a7;
}
.header-section.compte {
    background: #b5ffbb;
    color: #388e3c;
}

/* Hover header : pastel et doux */
.header-section:hover, .header-section:focus {
    width: 100vw;
    z-index: 1000;
    font-size: 2rem;
    box-shadow: 2px 0 24px #9fffa7;
}

.header-section.axel:hover, .header-section.axel:focus {
    background: #f7acc0 !important;
    color: #d81b60 !important;
}
.header-section.realisations:hover, .header-section.realisations:focus {
    background: #b7f7ff !important;
    color: #0097a7 !important;
}
.header-section.compte:hover, .header-section.compte:focus {
    background: #b5ffbb !important;
    color: #388e3c !important;
}

.vertical-header .header-section:not(:hover):not(:focus) {
    width: 100%;
    font-size: 1.5rem;
    z-index: 1000;
}

/* Layout horizontal */
#horizontal-wrapper {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    margin-left: 0;
    gap: 0;
}

.slide {
    min-width: 100vw;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.account-slide {
    background: #b5ffbb;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100vw;
    max-width: 100vw;
    padding: 0;
    margin: 0;
}

.account-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 80vh;
    width: 100vw;
    background: #b5ffbb;
    padding-top: 4vh;
    padding-bottom: 2vh;
    overflow: hidden;
    margin-left: 80px;
}

#account-content {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: none !important;
    transition: none;
    overflow: visible;
}

/* Formulaire sans fond, sans ombre, sans arrondi */
.account-form {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.9em;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    animation: slideInLeft 0.7s cubic-bezier(.77,0,.18,1);
    opacity: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible;
    max-height: 2vh;
}

/* Animation d'entrée pour les formulaires de connexion/inscription */
.account-form {
    animation: fadeInAccountForm 0.7s cubic-bezier(.77,0,.18,1);
    opacity: 1;
}
@keyframes fadeInAccountForm {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Champs du formulaire : fond blanc, bord pastel, effet focus doux */
.account-form input {
    width: 100%;
    padding: 1.2em 1.2em;
    border-radius: 14px;
    border: 1.5px solid #b5ffbb;
    background: #fff;
    color: #388e3c;
    font-size: 1.18rem;
    outline: none;
    transition: border 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 8px #b5ffbb10;
    border-bottom: none !important;
}

.account-form input:focus {
    border: 1.5px solid #388e3c;
    background: #eaffea;
    box-shadow: 0 2px 12px #b5ffbb40;
    border-bottom: none !important;
}

/* Boutons : hover vert pastel original, effet "pop" doux */
.account-form button {
    background: none !important;
    color: #388e3c;
    border: 2px solid #43a047;
    box-shadow: none;
    border-radius: 14px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: 
        background 0.18s, 
        color 0.18s, 
        border 0.18s, 
        box-shadow 0.18s, 
        transform 0.18s;
    margin-top: 0.5em;
    box-shadow: 0 2px 8px #b5ffbb30;
    position: relative;
    overflow: hidden;
}

.account-form button[type="submit"] {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 1em 0;
    border-radius: 14px;
    min-height: 44px;
    min-width: 120px;
    letter-spacing: 1px;
}

/* Bouton switch-link (changer de formulaire) : plus gros, bien visible */
.account-form .switch-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
    color: #43a047;
    background: #b5ffbb;
    border: 2px solid #43a047;
    border-radius: 12px;
    margin: 1.2em 0 0.2em 0;
    padding: 0.8em 0.5em;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border 0.18s, transform 0.18s;
    box-shadow: none;
    outline: none;
    text-decoration: none;
}

.account-form .switch-link:hover, .account-form .switch-link:focus {
    background: #43a047;
    color: #fff;
    border: 2px solid #388e3c;
    transform: scale(1.04);
}

/* Réduit le bouton submit par défaut */
.account-form button[type="submit"] {
    min-width: 160px;
    max-width: 100%;
}

.account-form button:hover {
    background: none !important;
    color: #009e60;
    border-color: #96fd9f;
    box-shadow: 0 4px 24px #b5ffbb80, 0 0 0 4px #eaffea80 inset;
    transform: scale(1.06) rotate(-2deg);
}

.account-form .switch-link {
    color: #388e3c;
    font-size: 1.08rem;
    text-align: center;
    margin-top: 1.2em;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    outline: none;
    padding: 0;
    transition: color 0.18s, background 0.18s, transform 0.18s;
    font-weight: 700;
}

.account-form .switch-link:hover {
    color: #009e60;
    background: #eaffea;
    border-radius: 8px;
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 2px 12px #b5ffbb40;
}

/* Ajoute un titre court au-dessus du formulaire */
.account-form-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #388e3c;
    margin-bottom: 1.2em;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 8px #b5ffbb40;
    animation: fadeInDown 0.7s;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px);}
    to { opacity: 1; transform: translateY(0);}
}

.account-message {
    color: #d81b60;
    font-size: 1.15rem;
    margin-bottom: 1em;
    text-align: center;
}

.account-success {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 1.5em;
    color: #388e3c;
    font-size: 1.15rem;
    text-align: center;
    font-weight: 600;
}

/* User Info Header - collé à droite du header vertical, vert pastel */
#user-info-header {
    /* Header nom/prénom/rôle, modifiez ici pour la couleur et le décalage */
    position: fixed;
    top: 10px;
    left: 80px;
    right: auto;
    z-index: -1; /* Sous le header */
    background: none;
    border: none;
    box-shadow: none;
    padding: 32px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1em;
    min-width: 0;
    min-height: 0;
    margin-left: 200px;
    letter-spacing: 0.5px;
    font-family: 'Poppins',sans-serif;
    transition: margin-left 0.2s;
}

@media (max-width: 900px) {
    #user-info-header {
        margin-left: 32vw;
    }
}

#user-info-header .user-prenom {
    /* Couleur vert pastel prénom */
    color: #388e3c !important;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

#user-info-header .user-nom {
    /* Couleur vert pastel nom */
    color: #388e3c !important;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

#user-info-header .user-role {
    /* Couleur vert pastel rôle */
    color: #43a047 !important;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    #user-info-header {
        margin-left: calc(18vw + 8px);
    }
}

/* Couleurs vert pastel pour les textes */
#user-info-header .user-prenom {
    font-size: 2.7rem;
    font-weight: 900;
    color: #388e3c;
    letter-spacing: 2px;
    line-height: 1.05;
    display: inline-block;
    margin-right: 0.12em;
    text-shadow: 0 2px 8px #b5ffbb40;
}
#user-info-header .user-nom {
    font-size: 2.7rem;
    font-weight: 900;
    color: #388e3c;
    letter-spacing: 2px;
    line-height: 1.05;
    display: inline-block;
    text-shadow: 0 2px 8px #b5ffbb40;
}
#user-info-header .user-role {
    font-size: 1.5rem;
    font-weight: 900;
    color: #43a047; /* vert pastel foncé */
    letter-spacing: 2px;
    margin-top: 0.1em;
    display: block;
    line-height: 1.1;
    text-shadow: 0 2px 8px #b5ffbb60;
    background: #eaffea;
    border-radius: 10px;
    padding: 0.2em 1em;
}

/* Centrage du formulaire et du contenu */
.account-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 80vh;
    width: 100vw;
    background: #b5ffbb;
    padding-top: 4vh;
    padding-bottom: 2vh;
    overflow: hidden;
    margin-left: 80px;
}

#account-content {
    width: 100%;
    max-width: 520px;
    margin-bottom: 300px;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: none !important;
    transition: none;
    overflow: visible;
}

/* Formulaire centré, pas de scroll horizontal */
.account-form {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.9em;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    animation: slideInLeft 0.7s cubic-bezier(.77,0,.18,1);
    opacity: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible;
}

/* Disposition verticale et espacée des boutons d'action */
.account-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.3em;
    width: 100%;
    margin: 2em 0 0 0;
}
.account-actions button, .account-actions a {
    width: 100%;
    max-width: 340px;
    margin: 0;
    box-sizing: border-box;
}

/* Boutons d'action (connecté) : fond vert pastel, hover vert foncé, style arrondi */
.account-actions button, .account-actions a {
    background: #b5ffbb !important;
    color: #2e7030;
    border: 2.5px solid #43a047;
    border-radius: 2em;
    padding: 1.2em 2.5em;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s cubic-bezier(.77,0,.18,1), box-shadow 0.18s, background 0.18s, color 0.18s;
    box-shadow: 0 4px 18px #b5ffbb60;
    min-width: 120px;
    text-align: center;
    letter-spacing: 1.5px;
    outline: none;
}
.account-actions button:hover, .account-actions a:hover {
    background: #43a047 !important;
    color: #fff !important;
    border-color: #388e3c;
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 6px 24px #b5ffbb80, 0 0 0 4px #eaffea80 inset;
}

/* Toujours afficher le texte géant penché à 90° */
.section-title-giant {
    font-size: 7vw;
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
    position: absolute;
    left: 0;
    top: 50%;
    width: 70vh;
    height: 70vh;
    transform: translate(-80px, -50%) rotate(-90deg);
    transform-origin: center center;
    margin: 0;
    line-height: 1;
    z-index: 10;
    pointer-events: none;
    opacity: 0.18;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Masque la barre de scroll horizontal sur la page compte */
body, html, #horizontal-wrapper {
    overflow-x: hidden !important;
}

/* Remonte le bouton switch-link juste sous le bouton submit */
.account-form .switch-link {
    display: block;
    width: 100%;
    margin-top: 0.5em;
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1em;
    border-radius: 12px;
    letter-spacing: 1px;
    color: #009e60;
    background: #eaffea;
    box-shadow: 0 2px 8px #b5ffbb30;
    text-align: center;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
    position: static;
}

/* Responsive corrections */
@media (max-width: 900px) {
    .section-title-giant {
        font-size: 2.5rem !important;
        width: 100vw !important;
        height: auto !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        position: static !important;
        margin: 0 0 1em 0 !important;
        text-align: center !important;
        display: block !important;
        opacity: 0.18;
    }
    .account-actions button, .account-actions a {
        min-width: 100px;
        font-size: 1rem;
        padding: 0.7em 1.2em;
    }
    .account-form {
        max-width: 95vw;
        font-size: 0.97rem;
        padding: 0.3em 0.1em;
        gap: 0.7em;
    }
    .account-form .switch-link {
        font-size: 1rem;
        padding: 0.7em ;
        margin-top: 0.5em;
    }
}
@media (max-width: 600px) {
    .section-title-giant {
        font-size: 1.3rem !important;
    }
    .account-actions button, .account-actions a {
        font-size: 0.95rem;
        padding: 0.5em 0.7em;
    }
    .account-form {
        max-width: 99vw;
        font-size: 0.93rem;
        padding: 0.1em 0.05em;
        gap: 0.5em;
    }
    .account-form .switch-link {
        font-size: 0.95rem;
        padding: 0.5em 0;
    }
}
