/* ==========================================================================
   Panneau latéral — Mon compte
   ========================================================================== */

.account-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(var(--light-pink-rgb), 0.8);
    z-index: 199;
    visibility: hidden;
    pointer-events: none;
}

.account-panel-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
    cursor: none;
}

/* Curseur custom sur les overlays */
.cursor-close {
    position: fixed;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transition:
        opacity 0.2s ease,
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.cursor-close.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.account-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100%;
    background-color: var(--light-pink);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    overflow-y: hidden;
    border-left: 4px solid white;
}

.account-panel.is-open {
    transform: translateX(0);
}

.account-panel-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brown);
    padding: 0;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.account-panel-close:hover {
    background-color: var(--cream-dark);
}

.account-panel-close svg {
    width: 20px;
    height: 20px;
}

.account-panel-inner {
    padding: 10rem 0 4rem;
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
}

.account-panel-title {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3rem;
    padding-left: 4rem;
}

.account-panel-greeting {
    font-size: 4rem;
    font-weight: 600;
    padding: 0 0 1.8rem 4rem;
}

/* Formulaire de connexion */

.account-panel #loginform {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 4rem;
}

.account-panel #loginform > p {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
}

.account-panel #loginform label {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.01rem;
    text-transform: uppercase;
}

.account-panel #loginform label:hover {
    color: var(--blue);
    cursor: pointer;
}

.login-remember label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-panel #loginform input[type="text"],
.account-panel #loginform input[type="password"] {
    width: 100%;
    padding: 1.4rem 1.6rem;
    border: 1px solid var(--border);
    background: white;
    font-size: 1.25rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.account-panel #loginform input[type="text"]:focus,
.account-panel #loginform input[type="password"]:focus {
    border-color: var(--brown);
}

.account-panel #loginform .forgetmenot {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
}

.account-panel #loginform .forgetmenot label {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.account-panel #loginform .submit {
    margin-top: 0.5rem;
}

.account-panel #loginform input[type="submit"] {
    width: 100%;
    padding: 1.7rem 2.8rem;
    background-color: var(--blue);
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.25s ease;
}

.account-panel #loginform input[type="submit"]:hover {
    background-color: var(--blue-hover);
}

.account-panel-forgot,
.account-panel-register {
    font-size: 1.05rem;
    margin-top: 2rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: 500;
}

.account-panel-forgot a:hover {
    color: var(--blue);
}

/* Message d'erreur login */

.account-panel #loginform > p.account-panel-error {
    display: none;
    padding: 1.35rem 1.5rem;
    background-color: var(--terracotta-light);
    border-left: 3px solid var(--terracotta);
    color: var(--terracotta);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.account-panel #loginform input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: wait;
}



.password-toggle-wrapper {
    position: relative;
}

.password-toggle-wrapper input {
    padding-right: 4.5rem !important;
}

.password-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brown-mid);
    padding: 0;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover,
input#user_pass:focus + .password-toggle-btn {
    color: var(--brown);
}

.password-toggle-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.password-toggle-btn .icon-eye-off { display: none; }

.password-toggle-btn.is-visible .icon-eye { display: none; }
.password-toggle-btn.is-visible .icon-eye-off { display: block; }

.account-panel-nav {
    padding: 0 4rem;
}

.account-panel-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.account-panel-link {
    display: block;
    padding: 1.8rem 0;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease, padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-panel-nav ul > li:last-child .account-panel-link {
    border-bottom: none;
}

.account-panel-nav ul > li:first-child .account-panel-link:hover {
    color: #3a9bd5;
}

.account-panel-nav ul > li:nth-child(2) .account-panel-link:hover {
    color: #2ec4b6;
}

.account-panel-nav ul > li:nth-child(3) .account-panel-link:hover {
    color: #f4a261;
}

.account-panel-nav ul > li:nth-child(4) .account-panel-link:hover {
    color: #e76f51;
}

.account-panel-nav ul > li:nth-child(5) .account-panel-link:hover {
    color: #f7c59f;
}

.account-panel-link:hover {
    padding-left: 2rem;
}

.account-panel-link--logout {
    color: var(--terracotta);
}

.account-panel-link--logout:hover {
    color: var(--terracotta);
    opacity: 0.75;
}

.account-panel #loginform > p.login-remember {
    margin-bottom: 1rem;
}

.account-panel-flower {
    position: absolute;
    bottom: -15px;
    right: 10px;
    width: 120px;
    height: auto;
}

.account-panel-description {
	padding: 0 4rem;
	font-size: 1.25rem;
	line-height: 1.5;
	font-weight: 500;
	margin-bottom: 2rem;
}

.wc-block-cart .wc-block-cart__totals-title {
	font-size: 1.25rem;
	padding: 8px 16px 6px 0;
}

