/* =====================================================
   ACCOUNT - Mon Compte — Lush Sphere
   Toutes vues : login, register, dashboard, commandes, adresses, infos
===================================================== */

/* =====================================================
   SUPPRESSION TITRE "MON COMPTE" DE WOOCOMMERCE
===================================================== */

.account-login-page .entry-title,
.account-page .entry-title,
.account-login-page h1.page-title,
.account-page h1.page-title,
.woocommerce-account .entry-title,
.woocommerce-account .page-title {
    display: none !important;
}

/* =====================================================
   LOGIN PAGE
===================================================== */

.account-login-page {
    width: 100%;
    min-height: calc(100vh - 130px);
    padding-top: 130px;
    background: var(--color-white, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
}

/* Fenêtre login / register */
.login-window {
    width: 550px;
    border: 1px solid #D4D4D4;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Titre */
.login-title-block {
    padding: 0 10px;
    height: 80px;
    display: flex;
    align-items: center;
}

.login-title {
    font-family: 'El Messiri', serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 32px;
    color: #123524;
    margin: 0;
}

/* ===== CHAMPS LOGIN (border #888888) ===== */

.login-field-wrapper {
    padding: 0 0;
    margin-bottom: 10px;

}

.login-field {
    width: 100%;
    height: 54px;
    border: 1px solid #888888;
    background: transparent;
    padding: 9px 18px;
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    display: block;
}

.login-field::placeholder {
    color: #888888;
}

.login-field:focus {
    border-color: #123524;
}

/* ===== CHAMPS REGISTER (border #D4D4D4 selon Figma) ===== */

.register-inputs {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.register-field-wrapper {
    padding: 0;
}

.register-field {
    border-color: #D4D4D4 !important;
}

.register-field:focus {
    border-color: #123524 !important;
}

/* Bouton login */
.login-btn-wrapper {
    padding: 15px 0;
}

.login-submit:hover {
    background: #5a6239;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.login-submit:active {
    transform: translateY(0);
}

/* Liens secondaires */
.login-links {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-separator {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    color: #888888;
    line-height: 25px;
}

.login-link {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    line-height: 25px;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #123524;
}

.login-link-emphasis {
    font-weight: 600;
    font-size: 18px;
    line-height: 30px;
    color: #123524;
    text-decoration: underline;
}

/* =====================================================
   REGISTER — Checkboxes
===================================================== */

.register-conditions {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.register-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    min-height: 30px;
}

/* Cacher l'input natif — géré par .lush-check-input dans main.css */
.lush-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.register-checkbox-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #555555;
    line-height: 30px;
}

.register-checkbox-text a {
    color: #123524;
    text-decoration: underline;
}

.register-optional {
    color: #888888;
}

/* Bouton S'inscrire : 171×61px selon Figma */
.register-btn-wrapper {
    padding: 10px 0;
}

.register-submit {
    width: 171px;
    height: 61px;
    background: #6B7345;
    border: none;
    color: #ffffff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 25px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease, transform 0.2s ease;
}

.register-submit:hover {
    background: #5a6239;
    transform: translateY(-1px);
}

.register-back {
    padding: 0 0 10px 0;
}

/* Messages WooCommerce */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 12px 16px;
    margin: 10px 0;
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    list-style: none;
}

.woocommerce-error {
    background: #fff5f5;
    border-left: 4px solid #CD4E04;
    color: #CD4E04;
}

.woocommerce-message {
    background: #f0f5f0;
    border-left: 4px solid #123524;
    color: #123524;
}



/* =====================================================
   ACCOUNT PAGE - Layout général
===================================================== */

.account-page {
    width: 100%;
    padding-top: 130px;
    background: #ffffff;
    min-height: calc(100vh - 130px);
}

.account-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 70px 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Titre de bienvenue */
.account-greeting-title {
    font-family: 'El Messiri', serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 52px;
    margin: 0;
    background: linear-gradient(90deg, #123524 0%, #CD4E04 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Layout sidebar + contenu */
.account-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-top: 30px;
    padding-bottom: 30px;
}

.account-form-error {
    display: none;
    font-size: 13px;
    color: var(--color-secondary);
    margin: 4px 0 0;
}

.account-form-field.is-invalid {
    border-color: var(--color-secondary);
}

.account-notice.is-error {
    padding: 14px 20px;
    background: #FFF5F5;
    border-left: 4px solid var(--color-secondary);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: #2B2B2B;
    margin-bottom: 16px;
}

.account-notice.is-success {
    padding: 14px 20px;
    background: #F0F5F0;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: #2B2B2B;
    margin-bottom: 16px;
}


/* =====================================================
   NAVIGATION SIDEBAR — avec animations underline
===================================================== */

.account-nav {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    padding-right: 20px;
    border-right: 1px solid #D4D4D4;
    flex-shrink: 0;
}

.nav-wrapper {
    margin-bottom: 20px;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #2B2B2B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-item-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.account-nav-item:hover .nav-item-icon,
.account-nav-item.active .nav-item-icon {
    opacity: 1;
}

.nav-item-label {
    display: inline-block;
    position: relative;
    padding-bottom: 4px;
}

/* Underline positionné par rapport au label */
.nav-item-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #123524;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover */
.account-nav-item:hover {
    color: #123524;
}

.account-nav-item:hover .nav-item-underline {
    transform: scaleX(1);
}

/* ACTIF = GRAS + VERT + LIGNE */
.account-nav-item.active {
    font-weight: 600;
    color: #123524;
}

.account-nav-item.active .nav-item-underline {
    transform: scaleX(1);
}

/* Déconnexion */
.account-nav-logout {
    color: #555555;
}

.account-nav-logout:hover {
    color: #CD4E04;
}

.account-nav-logout:hover .nav-item-underline {
    background: #CD4E04;
}

/* =====================================================
   ZONE CONTENU
===================================================== */

.account-content {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
}

/* =====================================================
   DASHBOARD - Masonry
===================================================== */

.dashboard-content {
    width: 100%;
}

.dashboard-masonry {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.dashboard-card {
    background: var(--color-white);
    height: 100%;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(18, 53, 36, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 6px 32px rgba(18, 53, 36, 0.12);
}

.card-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grande carte dernière commande */
.card-last-order {
    grid-column: 1 / 3;
    background: #123524;
    color: #ffffff;
}

.card-last-order .card-label {
    color: white;
}

.last-order-number {
    font-family: 'El Messiri', serif;
    font-size: 36px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.1;
}

.last-order-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.last-order-date {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
}

.last-order-status {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.last-order-status.status-delivered  { background: #445E1E; color: #ffffff; }
.last-order-status.status-processing { background: #fffffff5; color: #a4682f; }
.last-order-status.status-shipped { background: #fffffff5; color: #a4682f; }
.last-order-status.status-hold,
.last-order-status.status-pending    { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); }
.last-order-status.status-cancelled  { background: #fffffff5; color: #d92c2c; }

.last-order-total {
    font-family: 'El Messiri', serif;
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
}

.last-order-btn {
    width: fit-content;
    background: #6B7345;
    color: #ffffff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 18px;
    padding: 14px 28px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    margin-top: 8px;
}

.last-order-btn:hover {
    background: #5a6239;
    transform: translateY(-1px);
}

.card-empty .card-empty-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    color: #D4D4D4;
    margin: 0;
}

.card-stat-number {
    font-family: 'El Messiri', serif;
    font-size: 48px;
    font-weight: 500;
    color: #123524;
    line-height: 1;
}

.card-stat-desc {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #555555;
}

.card-address-line {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    color: #333333;
    line-height: 1.5;
}

.card-account-name {
    font-family: 'El Messiri', serif;
    font-size: 22px;
    font-weight: 500;
    color: #123524;
}

.card-account-email {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #555555;
}

.card-link {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #123524;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #CD4E04;
}

/* =====================================================
   ORDERS - Liste commandes
===================================================== */

/* ── Onglets ──────────────────────────────────────── */

.orders-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #D4D4D4;
    margin-bottom: 32px;
    position: relative;
}

/* Indicateur animé sous l'onglet actif */
.orders-tabs::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #6B7345;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.orders-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #888888;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.orders-tab:hover {
    color: #123524;
    transform: translateY(-2px);
}

.orders-tab.is-active {
    color: #123524;
    font-weight: 600;
}

.orders-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #D4D4D4;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.orders-tab.is-active .orders-tab-count {
    background: #123524;
    color: #fff;
    transform: scale(1.1);
}

/* Animation des cartes */
.order-card {
    background: #ffffff;
    border: 1px solid #D4D4D4;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease forwards;
}

.order-card.hiding {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.order-card:hover {
    border-color: #b0b8a0;
    box-shadow: 0 4px 16px rgba(18, 53, 36, 0.06);
    transform: translateY(-2px);
}

/* Animations keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ── Liste cards ──────────────────────────────────── */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Card commande ────────────────────────────────── */

.order-card {
    background: #ffffff;
    border: 1px solid #D4D4D4;
    border-radius: 8px;
    padding: 24px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.order-card:hover {
    border-color: #b0b8a0;
    box-shadow: 0 4px 16px rgba(18, 53, 36, 0.06);
}

/* En-tête */
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.order-card-id {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-card-number {
    font-family: 'Work Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #2B2B2B;
}

.order-card-date {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    color: #888888;
    margin: 0 0 20px;
}

/* Produits dans la card */
.order-card-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F0F0F0;
}

.order-card-item {
    display: flex;
    gap: 14px;
    align-items: center;
}

.order-card-item-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #FAFAF8;
    border: 1px solid #F0F0F0;
}

.order-card-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-card-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.order-card-item-name {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #2B2B2B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-card-item-price {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: #123524;
    font-weight: 600;
}

.order-card-item-qty {
    font-size: 13px;
    color: #888888;
    font-weight: 400;
    margin-left: 4px;
}

.order-card-more {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    color: #888888;
    padding: 6px 0;
}

/* Pied de carte */
.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card-total {
    font-family: 'Work Sans', sans-serif;
    font-size: 20px;
    color: #555555;
}

.order-card-total strong {
    color: #2B2B2B;
    font-weight: 600;
}


.order-card-btn:hover {
    background: #5a6239;
    transform: translateY(-1px);
    color: #ffffff;
}

/* ── Badges statut ────────────────────────────────── */

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.order-status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.order-status-processing {
    background: #EEF3E6;
    color: #4A6B2A;
}

.order-status-shipped {
    background: #e5eff8;
}

.order-status-completed {
    background: #E6F0EC;
    color: #123524;
}

.order-status-on-hold {
    background: #FDF6EC;
    color: #9A6B1A;
}

.order-status-cancelled {
    background: #FEF0EE;
    color: #C0392B;
}

.order-status-pending {
    background: #F5F5F5;
    color: #666666;
}

.order-status-refunded {
    background: #F0EEFA;
    color: #5B3FA6;
}

.order-status-failed {
    background: #FEF0EE;
    color: #C0392B;
}

.order-status-badge--lg {
    font-size: 13px;
    padding: 6px 16px;
}

/* ── Bouton Voir détails ────────────────────────────────────── */

.order-card-btn {
    font-size: 18px;
}

/* ── État vide ────────────────────────────────────── */

.orders-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 20px;
    text-align: center;
}

.orders-empty-icon {
    opacity: 0.4;
}

.orders-empty-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: #555555;
    margin: 0;
}


/* =====================================================
   VIEW ORDER - Détail commande
===================================================== */

.view-order-breadcrumb {
    font-family: 'Work Sans', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 40px 0;
}

.view-order-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.view-order-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.view-order-main {
    flex: 1;
    background: #FAFAF8;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.view-order-number {
    font-family: 'Work Sans', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #808853;
    margin: 0;
}

.view-order-date {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: #555555;
    margin: 0;
}

.view-order-tracking-link {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-order-item {
    display: flex;
    gap: clamp(12px, 2.5vw, 20px);
}

/* Image grande et carrée */
.view-order-item-image {
    width: clamp(90px, 22vw, 200px);
    flex-shrink: 0;
    box-shadow: 0 4px 24px rgb(84 84 84 / 12%);
    border-radius: 12px;
    overflow: hidden;
    background: #FAFAF8;
    border: 1px solid #F0F0F0;
}

.view-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.view-order-item-name {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.view-order-item-price,
.view-order-item-qty {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    margin: 0;
    color: #333333;
}

.view-order-item-separator {
    border: none;
    border-top: 1px solid #D4D4D4;
    margin: 20px 0;
}

.view-order-shipment-group {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.5vw, 20px);
    background: #ffffff;
    border: 1px solid #E8E8E0;
    border-radius: 10px;
    padding: clamp(14px, 3vw, 20px);
}

.view-order-shipment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #E8E8E0;
}

.view-order-shipment-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #6B7345;
}

.view-order-shipment-tracking-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6B7345;
    text-decoration: none;
    border: 1px solid #6B7345;
    border-radius: 20px;
    padding: 4px 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.view-order-shipment-tracking-link:hover {
    background: #6B7345;
    color: #ffffff;
}

.view-order-sidebar {
    width: 288px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.view-order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: #445E1E;
    color: #ffffff;
    font-family: 'Work Sans', sans-serif;
    font-size: 24px;
    font-weight: 400;
}

.view-order-totals-line {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    line-height: 25px;
    display: flex;
    justify-content: space-between;
}

.view-order-total-main {
    font-family: 'Work Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.view-order-total-vat {
    font-size: 13px;
    font-weight: 400;
    color: #555555;
}

.view-order-divider { height: 1px; background: #D4D4D4; }

.view-order-address-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

.view-order-address-block {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.view-order-action-link {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    display: block;
    line-height: 30px;
}

.view-order-action-link:hover {
    color: #123524;
    text-decoration: underline;
}

/* =====================================================
   FORMS EDIT ACCOUNT / ADDRESS
===================================================== */

.account-form-title {
    font-family: 'El Messiri', serif;
    font-size: 38px;
    font-weight: 500;
    color: #123524;
    margin: 0 0 28px;
}

.account-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.account-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-form-group.full-width { grid-column: 1 / -1; }

.account-form-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

select#country,
select#billing_country,
select#state {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) center; 
    padding-right: 45px !important;
}


.account-form-field {
    height: 54px;
    border: 1px solid #888888;
    background: transparent;
    padding: 9px 18px;
    font-family: 'Work Sans', sans-serif;
    color: #2b2b2b;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.3s ease;
}

.account-form-hint {
    font-style: italic;
    font-size: 16px;
}

.account-form-field:focus {
    border-color: #6B7345;
    box-shadow: 
        0 0 0 1px rgba(107, 115, 69, 0.3),
        0 0 0 3px rgba(107, 115, 69, 0.15),
        0 0 0 6px rgba(107, 115, 69, 0.08),
        0 0 0 10px rgba(107, 115, 69, 0.03);
    outline: none;
}

.account-form-password-section {
    margin-top: 24px;
    border: 1px solid #D4D4D4;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 30px;
}

.account-password-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #123524;
    text-align: left;
}

.account-password-toggle-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.account-password-toggle[aria-expanded="true"] .account-password-toggle-icon {
    transform: rotate(180deg);
}

.account-password-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.account-password-fields.is-open {
    max-height: 600px;
    opacity: 1;
    margin-top: 20px;
    padding: 10px;
}

.account-password-fields[hidden] {
    display: none !important;
}

/* =====================================================
   ADDRESSES - CARTES ET MODAL
===================================================== */

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Carte générique */
.address-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(18, 53, 36, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Carte ajouter */
.address-card-add {
    border: 2px dashed #D4D4D4;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.address-card-add:hover {
    border-color: #6B7345;
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(18, 53, 36, 0.12);
}

.address-card-add-icon {
    margin-bottom: 16px;
}

.address-card-add-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #6B7345;
    margin: 0;
}

/* Checkbox par défaut */
.address-card-default {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #D4D4D4;
}

/* En-tête carte */
.address-card-header {
    margin-bottom: 16px;
}

.address-card-title {
    font-family: 'El Messiri', serif;
    font-size: 24px;
    font-weight: 500;
    color: #123524;
    margin: 0;
}

/* Corps carte */
.address-card-body {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
    flex-grow: 1;
}

.address-card-body p {
    margin: 0 0 6px 0;
}

.address-card-body p:last-child {
    margin-bottom: 0;
}

.address-billing-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: #123524;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

/* Footer carte */
.address-card-footer {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #D4D4D4;
}

.address-card-edit-btn {
    flex-grow: 1;
    height: 44px;
    background: transparent;
    border: 1px solid #123524;
    color: #123524;
    font-family: 'Work Sans', sans-serif;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.address-card-edit-btn:hover {
    background: #123524;
    color: #ffffff;
}

.address-card-delete-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid #CD4E04;
    color: #CD4E04;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.address-card-delete-btn:hover {
    background: #CD4E04;
    color: #ffffff;
}

/* =====================================================
   MODAL ADRESSE
===================================================== */

.address-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.address-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.address-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: #FAFAF8;
    border-radius: 8px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.3);
}

.address-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #D4D4D4;
}

.address-modal-title {
    font-family: 'El Messiri', serif;
    font-size: 24px;
    font-weight: 500;
    color: #123524;
    margin: 0;
}

.address-modal-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #888888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.address-modal-close:hover {
    color: #123524;
}

.address-modal-form {
    padding: 24px;
}

.address-modal-options {
    margin: 24px 0;
    padding: 16px;
    background: #ffffff;
    border-radius: 4px;
}

.address-modal-footer {
    padding-top: 24px;
    border-top: 1px solid #D4D4D4;
}

.address-modal-footer .btn-primary {
    width: 100%;
    height: 54px;
}

/* ── Modal confirmation suppression ──────────────────────────────────────── */
.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.confirm-modal-box {
    position: relative;
    background: #FAFAF8;
    border-radius: 10px;
    padding: 32px 28px 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    animation: confirmModalIn 0.2s ease;
}

@keyframes confirmModalIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.confirm-modal-title {
    font-family: 'El Messiri', serif;
    font-size: 20px;
    font-weight: 500;
    color: #123524;
    margin: 0 0 10px;
}

.confirm-modal-text {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-modal-actions .btn-secondary {
    padding: 10px 20px;
    font-size: 16px;
}

.btn-danger {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-danger:hover {
    background: #a93226;
}

/* Titres de section Livraison / Facturation dans le modal */
.address-section-title {
    display: block;
    font-family: 'El Messiri', serif;
    font-size: 26px;
    font-weight: 500;
    color: #333;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    margin-top: 4px;
    margin-bottom: 0;
}

.billing-fields-title {
    margin: 24px 0 8px;
}

/* Animation fade modal */
.address-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.address-modal.modal-active {
    opacity: 1;
    pointer-events: all;
}

.address-modal-content {
    transform: translate(-50%, -50%) scale(0.9);
    transition: transform 0.3s ease;
}

.address-modal.modal-active .address-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

/* Bouton loading state */
.btn-primary.btn-loading {
    opacity: 0.6;
    pointer-events: none;
}

.field-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.field-error-message {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

/* =====================================================
   FORM SELECT
===================================================== */

.account-form-select {
    height: 54px;
    border: 1px solid #888888;
    border-radius: 16px;
    background: #ffffff;
    padding: 9px 18px;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: #000000;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: border-color 0.3s ease;
}

.account-form-select:focus {
    border-color: #6B7345;
    box-shadow: 
        0 0 0 1px rgba(107, 115, 69, 0.3),
        0 0 0 3px rgba(107, 115, 69, 0.15),
        0 0 0 6px rgba(107, 115, 69, 0.08),
        0 0 0 10px rgba(107, 115, 69, 0.03);
}


/* =====================================================
   VIEW ORDER — Détail d'une commande
===================================================== */

.view-order-content {
    width: 100%;
}

/* Breadcrumb */
.view-order-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #888888;
    margin-bottom: 28px;
}

.view-order-breadcrumb a {
    color: #6B7345;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-order-breadcrumb a:hover {
    color: #123524;
}

.view-order-breadcrumb-sep {
    color: #D4D4D4;
}

/* Titre */
.view-order-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.view-order-title {
    font-family: 'El Messiri', serif;
    font-size: 28px;
    font-weight: 500;
    color: #123524;
    margin: 0 0 6px;
}

.view-order-date {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #888888;
    margin: 0;
}

/* Layout */
.view-order-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.view-order-main {
    flex: 1;
    min-width: 0;
}

/* Titre de section */
.view-order-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Josefin Sans';
    font-size: 14px;
    font-weight: 600;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 16px;
}

/* Bouton suivi */
.view-order-tracking-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #6B7345;
    color: white;
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.view-order-tracking-btn:hover {
    background: #6B7345;
    color: #ffffff;
}

/* Items */
/* Items – grand format (capture Dribbble) */
.view-order-items {
    display: flex;
    flex-direction: column;
}


.view-order-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}

/* Nom produit en grand, El Messiri */
.view-order-item-name {
    font-family: 'El Messiri', serif;
    font-size: 22px;
    font-weight: 500;
    color: #2B2B2B;
    margin: 0;
    line-height: 1.3;
}

.view-order-item-name a {
    color: #123524;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-order-item-name a:hover {
    color: #14613c;
}

.view-order-item-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.view-order-item-meta li {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    color: #888888;
    background: #F5F5F5;
    padding: 2px 8px;
    border-radius: 2px;
}

/* Prix unitaire et quantité sur lignes séparées */
.view-order-item-unit-price,
.view-order-item-qty {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: #888888;
    margin: 0;
}

.view-order-item-unit-price strong,
.view-order-item-qty strong {
    color: #2B2B2B;
    font-weight: 500;
}


.view-order-tracking-btn:hover {
    background: #0d2619;
    color: #ffffff;
    transform: translateY(-1px);
}

.tracking-btn-arrow {
    margin-left: auto;
}

/* Cards sidebar */
.view-order-totals-card,
.view-order-address-card {
    background: #ffffff;
    border: 1px solid #D4D4D4;
    border-radius: 8px;
    padding: 20px;
}

/* Totaux */
.view-order-totals-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.view-order-totals-line {
    display: flex;
    justify-content: space-between;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #555555;
}

.view-order-totals-line--discount span:last-child {
    color: #6B7345;
    font-weight: 600;
}

.view-order-totals-line--tax {
    color: #888;
    font-size: 13px;
}

.view-order-free {
    color: #6B7345;
    font-weight: 600;
}

.view-order-total-final {
    display: flex;
    justify-content: space-between;
    font-family: 'Work Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #2B2B2B;
    margin-bottom: 6px;
}

.view-order-total-vat {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    color: #888888;
    margin: 0;
    text-align: right;
}

/* Adresse */
.view-order-address-block {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #555555;
    line-height: 1.7;
    font-style: normal;
    margin: 0;
}

.view-order-contact {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #555555;
    margin: 0;
    word-wrap: break-word;
    text-wrap: wrap;
}

/* Actions */
.view-order-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.view-order-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
    text-align: center;
    transition: all 0.2s ease;
}

.view-order-action-btn--outline {
    border: 1.5px solid #6B7345;
    color: #6B7345;
    background: transparent;
}

.view-order-action-btn--outline:hover {
    background: #6B7345;
    color: #ffffff;
}

.view-order-action-btn--ghost {
    border: 1.5px solid #D4D4D4;
    color: #555555;
    background: transparent;
}

.view-order-action-btn--ghost:hover {
    border-color: #888888;
    color: #2B2B2B;
}

.view-order-error {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    color: #C0392B;
    padding: 16px;
    background: #FEF0EE;
    border-left: 4px solid #C0392B;
    border-radius: 2px;
}

/* ============================================
   MES RETOURS — Mon Compte
============================================ */


.lush-returns-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ─── EN-TÊTE ─────────────────────────────── */

.returns-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.returns-new-btn {
    flex-shrink: 0;
    padding: 10px 28px;
    font-size: 18px;
}

/* ─── ÉTAT VIDE ───────────────────────────── */

.returns-empty {
    text-align: center;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: var(--color-cream);
    border-radius: var(--radius-md);
}

.returns-empty-icon {
    opacity: 0.6;
}

.returns-empty-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: var(--color-gray-text);
    margin: 0;
}

/* ─── ONGLETS ─────────────────────────────── */

.returns-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0;
}

.returns-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.returns-tab:hover {
    color: var(--color-primary-dark);
    background: var(--color-cream);
}

.returns-tab.is-active {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

.returns-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--color-cream);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gray-text);
}

.returns-tab.is-active .returns-tab-count {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ─── LISTE ───────────────────────────────── */

.returns-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ─── CARTE RETOUR ────────────────────────── */

.return-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0px 1px 4px rgba(18, 53, 36, 0.15);
    transition: box-shadow 0.2s ease;
}

.return-card:hover {
    box-shadow: var(--shadow-md);
}

.return-card-main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
}

/* Miniatures */
.return-card-thumbs {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.return-card-thumbs img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.return-card-more {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gray);
}

/* Infos texte */
.return-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.return-card-number {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-black);
}

.return-card-order,
.return-card-date {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    color: var(--color-gray-text);
}

.return-card-order a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.return-card-order a:hover {
    opacity: 0.7;
}

/* Statut + montant */
.return-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

/* Badges de statut */
.return-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.return-status-badge.status-pending {
    background: #FFF8E1;
    color: #F57F17;
}

.return-status-badge.status-approved {
    background: #E8F5E9;
    color: #2E7D32;
}

.return-status-badge.status-refused {
    background: #FFF5F5;
    color: #C62828;
}

.return-status-badge.status-received {
    background: #E8F4FD;
    color: #1565C0;
}

.return-status-badge.status-refunded {
    background: #EEF1E6;
    color: var(--color-primary);
}

/* Montant */
.return-card-amount {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.return-card-amount.is-manual {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-gray);
    font-style: italic;
}

/* ─── PIED DE CARTE ───────────────────────── */

.return-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 24px;
    background: var(--color-cream);
    border-top: 1px solid var(--color-border);
}

.return-card-rma {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    color: var(--color-gray-text);
}

.return-card-rma strong {
    color: var(--color-black);
    font-weight: 600;
}

.return-card-receipt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.return-card-receipt:hover {
    opacity: 0.7;
}


/* =====================================================
   MES PRÉFÉRENCES DE COMMUNICATION
===================================================== */

.newsletter-preferences-title {
    font-family: 'El Messiri', serif;
    font-size: 38px;
    font-weight: 500;
    color: #123524;
    margin: 0 0 28px;
}

.newsletter-preferences-intro {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.newsletter-preferences-form {
    max-width: 600px;
}

.newsletter-checkbox-wrapper {
    margin-bottom: 30px;
}

.newsletter-submit-btn:hover {
    background: #5a6239;
    transform: translateY(-1px);
}


/* =====================================================
   MES COUPONS - Voucher Design avec découpe
===================================================== */

.coupons-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 30px;
}

.coupon-info-text {
    font-size: 16px;
}

.voucher-coupon {
    width: 100%;
    max-width: 650px;
    height: 250px;
    border-radius: 12px;
    overflow: visible; /* Important pour voir la partie qui se penche */
    margin: 0 auto 40px; /* Margin bottom pour l'espace de l'animation */
    filter: drop-shadow(0 4px 12px rgba(18, 53, 36, 0.15));
    display: flex;
    align-items: stretch;
    position: relative;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.voucher-coupon:hover {
    filter: drop-shadow(0 6px 16px rgba(18, 53, 36, 0.25));
}

/* Fond avec encoches */
.voucher-coupon::before,
.voucher-coupon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: -1;
    border-radius: 12px 0 0 12px;
}

.voucher-coupon::before {
    left: 0;
    background: linear-gradient(135deg, #F5F3EE 0%, #FAFAF8 100%);
    background-image: 
        radial-gradient(circle at 0 50%, transparent 28px, #F5F3EE 29px),
        linear-gradient(135deg, #F5F3EE 0%, #FAFAF8 100%);
}

.voucher-coupon::after {
    right: 0;
    border-radius: 0 12px 12px 0;
}

/* Sections du voucher */
.voucher-coupon > div {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Partie gauche : Branding */
.voucher-left {
    width: 18%;
    min-width: 80px;
    border-right: 2px dashed rgba(107, 115, 69, 0.3);
    background: linear-gradient(135deg, #F5F3EE 0%, #FAFAF8 100%);
    border-radius: 12px 0 0 12px;
}

.voucher-brand {
    transform: rotate(-90deg);
    white-space: nowrap;
    font-family: 'Lexend Giga';
    font-weight: 500;
    font-size: 20px;
    color: #123524;
}

/* Partie centrale : Contenu */
.voucher-center {
    flex-grow: 1;
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #FAFAF8 0%, #F5F3EE 100%);
}

.voucher-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.voucher-copy-btn {
    display: flex;
    gap: 10px;
    font-size: 18px;
    padding: 10px 45px;
}

.voucher-discount {
    background: #123524;
    color: #F5F3EE;
    padding: 8px 24px;
    font-family: 'El Messiri', serif;
    font-size: 3rem;
    font-weight: 500;
    white-space: nowrap;
    margin: 0;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(18, 53, 36, 0.2);
}

.voucher-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #6B7345;
    margin: 0;
}

.voucher-validity {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #555555;
}

.voucher-status {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-top: 8px;
}

.voucher-status-used {
    background: #E0E0E0;
    color: #666666;
}

.voucher-status-expired {
    background: #FFE5E0;
    color: #CD4E04;
}

.voucher-copy-btn:hover {
    background: #5a6239;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(107, 115, 69, 0.4);
}

/* Partie droite : Code barcode - ANIMATION DÉTACHEMENT */
.voucher-right {
    width: 140px;
    background: linear-gradient(135deg, #FAFAF8 0%, #F5F3EE 100%);
    background-image: 
        radial-gradient(circle at 100% 50%, transparent 28px, rgba(255, 255, 255, 0.9) 29px),
        linear-gradient(135deg,#ffffff00);
    border-radius: 0 12px 12px 0;
    border-left: 2px dashed rgba(107, 115, 69, 0.3);
    transform-origin: left center;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Détachement : valide au hover (voucher-cut) + utilisé (voucher-used) */
.voucher-coupon.voucher-cut .voucher-right,
.voucher-coupon.voucher-used .voucher-right {
    transform:
        perspective(1000px)
        rotateX(12deg)
        rotateY(5deg)
        rotateZ(10deg)
        translateX(20px)
        translateY(0px)
        translateZ(30px);
    filter: drop-shadow(4px 12px 16px rgba(0, 0, 0, 0.3));
}

/* Ligne pointillée affaiblie quand détaché */
.voucher-coupon.voucher-cut .voucher-center,
.voucher-coupon.voucher-used .voucher-center,
.voucher-coupon.voucher-expired .voucher-center {
    border-right: 2px dashed rgba(107, 115, 69, 0.15);
}

.voucher-barcode {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    transform: rotate(-90deg);
    white-space: nowrap;
    color: #123524;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.8s ease;
}

/* États utilisé/expiré : grisé, non interactif */
.voucher-coupon.voucher-used,
.voucher-coupon.voucher-expired {
    filter: grayscale(100%) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    cursor: default;
}

.voucher-coupon.voucher-used .voucher-left,
.voucher-coupon.voucher-used .voucher-center {
    background: linear-gradient(135deg, #E5E5E5 0%, #F0F0F0 100%);
}

.voucher-coupon.voucher-expired .voucher-left,
.voucher-coupon.voucher-expired .voucher-center {
    background: linear-gradient(135deg, #F5E5E0 0%, #FAF0ED 100%);
}


/* FIX - Neutraliser wrapper WooCommerce Mes Coupons */

.account-content > .woocommerce {
    all: unset;
    display: block;
    width: 100%;
}

.account-content .woocommerce-notices-wrapper:empty {
    display: none;
}

.account-content .woocommerce-MyAccount-content {
    all: unset;
    display: block;
    width: 100%;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {
    .view-order-layout {
        flex-direction: column;
    }

    .view-order-sidebar {
        width: 100%;
    }

    .view-order-heading {
        flex-direction: column;
        gap: 12px;
    }
}


/* =======================================================================================================================================================================================
   RESPONSIVE MOBILE
========================================================================================================================================================================================== */

@media (max-width: 768px) {
    
    /* LOGIN PAGE */
    .account-login-page {
        padding-top: 220px;
        min-height: calc(100vh - 80px);
    }
    
    .login-page-wrapper {
        padding: 30px 20px;
    }
    
    .login-window {
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }
    
    .login-title {
        font-size: 24px;
        line-height: 28px;
    }
    
    /* ACCOUNT PAGE */

    .page-content {
        width: auto;
    }

    .account-page {
        padding-top: 220px;
        min-height: calc(100vh - 80px);
    }
    
    .account-wrapper {
        padding: 0 24px;
        gap: 20px;
    }
    
    .account-greeting-title {
        font-size: 36px;
        line-height: 38px;
    }
    
    /* LAYOUT */
    .account-layout {
        flex-direction: column;
        gap: 30px;
        padding-top: 20px;
    }


    /* NAVIGATION — scroll horizontal en pills */
    .account-nav {
        flex-direction: row;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #E8E8E8;
        padding-right: 0;
        padding-bottom: 16px;
        padding-left: 0;
        align-self: auto;
        overflow-x: auto;
        gap: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .account-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-wrapper {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .account-nav-item {
        white-space: nowrap;
        padding: 8px 14px;
        border-radius: 24px;
        border: 1.5px solid #D4D4D4;
        font-size: 14px;
        margin-bottom: 0;
        gap: 6px;
        color: #444;
        background: #fff;
    }

    .account-nav-item.active {
        background: #123524;
        border-color: #123524;
        color: #fff;
        font-weight: 600;
    }

    .account-nav-item.active .nav-item-icon {
        opacity: 1;
    }

    .account-nav-logout {
        background: #c0392b;
        border-color: #c0392b;
        color: #fff;
    }

    .account-nav-logout .nav-item-icon {
        opacity: 1;
        color: #fff;
    }

    .account-nav-logout.active,
    .account-nav-logout:hover {
        background: transparent;
        color: #CD4E04;
        border-color: #CD4E04;
    }

    /* Masquer l'underline animé sur mobile (remplacé par le fond de pill) */
    .nav-item-underline {
        display: none;
    }
    
    /* CONTENT */
    .account-content {
        padding: 0;
        width: 100%;
    }

    /* MES COUPONS */
    .orders-empty-state {
        padding: 50px 20px;
    }
    .voucher-coupon {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        height: auto;
        min-height: 300px;
        overflow: visible;
        margin-bottom: 80px; /* Plus d'espace pour le détachement */
    }
    
    .voucher-left {
        width: 100%;
        border-right: none;
        border-bottom: 2px dashed rgba(107, 115, 69, 0.3);
        padding: 16px;
        border-radius: 12px 12px 0 0;
    }
    
    .voucher-brand {
        transform: rotate(0deg);
    }
    
    .voucher-center {
        padding: 20px;
        border-radius: 0;
    }
    
    .voucher-right {
        width: 100%;
        background-image: 
            radial-gradient(circle at 50% 100%, transparent 28px, rgba(255, 255, 255, 0.9) 29px),
            linear-gradient(135deg, transparent);
        padding: 20px;
        height: 90px;
        border-radius: 0 0 12px 12px;
        transform-origin: top center;
        border-top: 2px dashed rgba(107, 115, 69, 0.3);
        border-left: none;
    }
    
    .voucher-coupon.voucher-cut .voucher-right,
    .voucher-coupon.voucher-used .voucher-right {
        transform:
            perspective(800px)
            rotateX(-18deg)
            rotateZ(-6deg)
            translateY(25px)
            translateX(10px);
    }

    .voucher-coupon.voucher-cut .voucher-center,
    .voucher-coupon.voucher-used .voucher-center,
    .voucher-coupon.voucher-expired .voucher-center {
        border-bottom: 2px dashed rgba(107, 115, 69, 0.15);
        border-right: none;
    }
    
    .voucher-barcode {
        transform: rotate(0deg);
        font-size: 1.3rem;
    }

    .voucher-coupon::before {
        left: 0;
        background: none;
        background-image: none;
    }
    
    /* DASHBOARD */
    .dashboard-masonry {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-last-order {
        grid-column: 1;
    }
    
    .dashboard-card {
        padding: 20px;
    }
    
    .card-stat-number {
        font-size: 36px;
    }
    
    /* ORDERS */
    .orders-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .orders-table {
        font-size: 11px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    /* VIEW ORDER */
    .view-order-breadcrumb {
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .view-order-layout {
        flex-direction: column;
        gap: 20px;
    }

    .view-order-title {
        padding: 20px 0;
        text-align: left;
    }

    .view-order-main {
        padding: 12px;
    }

    .view-order-number {
        font-size: 24px;
    }

    .view-order-sidebar {
        width: 100%;
        padding: 15px;
    }

    .view-order-status-badge {
        font-size: 18px;
        padding: 10px 16px;
    }

    .btn-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    /* FORMS */
    .account-form-title {
        font-size: 32px;
        margin: 40px 0;
        padding: 0;
        width: 100%;
    }
    
    .account-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .account-form-group.full-width {
        grid-column: 1;
    }

    .account-password-fields.is-open {
        display: flex;
        flex-direction: column;
    }
    
    /* ADDRESSES */
    .addresses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .address-card {
        padding: 20px;
    }
    
    .address-card-add {
        min-height: 180px;
    }
    
    /* MODAL */
    .address-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .address-modal-header {
        padding: 20px;
    }
    
    .address-modal-title {
        font-size: 20px;
    }
    
    .address-modal-form {
        padding: 20px;
    }
    
    .address-modal-footer {
        padding-top: 20px;
    }

    /* ORDERS */

    .orders-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .orders-tabs::-webkit-scrollbar {
        display: none;
    }

    .order-card-id svg {
        display: none;
    }

    .orders-tab {
        padding: 10px 14px;
        font-size: 13px;
    }

    .order-card {
        padding: 16px;
    }

    .order-card-item-image {
        width: 52px;
        height: 52px;
    }

    .order-card-footer {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

    .order-card-btn {
        width: 100%;
        justify-content: center;
    }

    /* MES RETOURS */
    
    .returns-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .returns-new-btn {
        width: 100%;
        justify-content: center;
    }

    .returns-tabs {
        gap: 4px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .returns-tabs::-webkit-scrollbar {
        display: none;
    }

    .returns-tab {
        padding: 8px 14px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .return-card {
        border-radius: 16px;
    }

    .return-card-main {
        flex-wrap: wrap;
        gap: 14px;
        padding: 16px;
    }

    .return-card-thumbs img {
        width: 48px;
        height: 48px;
    }

    .return-card-right {
        align-items: flex-start;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .return-card-footer {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

}

/* =====================================================
   GOOGLE SIGN-IN BUTTON
===================================================== */

.login-google-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 0px;
}

.login-divider-text {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.login-divider-text::before,
.login-divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #D4D4D4;
}

.login-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border: 1px solid #D4D4D4;
    border-radius: 4px;
    background: #ffffff;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #3c4043;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.login-google-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    color: #3c4043;
}

/* =====================================================
   GOOGLE CONSENT PAGE
===================================================== */

.google-consent-window {
    gap: 0;
}

.google-consent-subtitle {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: #555555;
    margin: 0 0 20px;
    padding: 0 2px;
}

.google-consent-form .register-conditions {
    margin-bottom: 8px;
}