/* =========================================================
   ESPACE CLIENT — Mon compte
   Design moderne spa / dashboard
   ========================================================= */

.acc-page {
    background: var(--surface);
    min-height: calc(100vh - 86px);
}

/* ── HERO ── */
.acc-hero {
    background: var(--grad-green);
    padding: 48px 40px 10px;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
}

.acc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 92% 8%, rgba(200,169,122,0.22), transparent 55%),
        radial-gradient(ellipse 40% 50% at 4% 95%, rgba(61,122,90,0.35), transparent 60%);
    pointer-events: none;
}

.acc-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.acc-hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.acc-hero-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.acc-hero-pre {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-label);
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--beige-light);
    font-weight: 400;
    margin-bottom: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(226,208,176,0.22);
    border-radius: 100px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
}

.acc-hero-pre::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--beige);
    box-shadow: 0 0 10px rgba(200,169,122,0.6);
}

.acc-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    color: var(--white);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 10px;
}

.acc-hero h1 em {
    font-style: italic;
    color: var(--beige-light);
}

.acc-hero-sub {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.55);
    max-width: 420px;
    line-height: 1.65;
}

.acc-hero-user {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
}

.acc-hero-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--grad-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--green);
    letter-spacing: 0.04em;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.acc-hero-user-info {
    text-align: left;
}

.acc-hero-user-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}

.acc-hero-user-email {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.02em;
}

/* ── TABS (segment control) ── */
.acc-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.acc-tab {
    background: transparent;
    border: none;
    font-family: 'Jost', 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    padding: 13px 26px;
    cursor: pointer;
    border-radius: 100px;
    transition: color var(--t), background var(--t), box-shadow var(--t), transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.acc-tab svg {
    opacity: 0.6;
    transition: opacity var(--t);
}

.acc-tab:hover {
    color: rgba(255,255,255,0.85);
}

.acc-tab:hover svg { opacity: 1; }

.acc-tab.active {
    color: var(--green);
    background: var(--white);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.acc-tab.active svg { opacity: 1; stroke: var(--green); }

/* ── WRAP ── */
.acc-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 24px 88px;
    font-family: 'Jost', 'DM Sans', sans-serif;
}

/* ── NOTIFICATIONS ── */
.acc-notif {
    border: 1px solid rgba(212,201,176,0.5);
    border-radius: var(--radius-sm);
    background: var(--white);
    padding: 14px 44px 14px 18px;
    margin-bottom: 12px;
    font-size: var(--fs-small);
    font-weight: 400;
    color: var(--text);
    line-height: 1.6;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.acc-notif::before {
    content: '';
    width: 4px;
    align-self: stretch;
    border-radius: 4px;
    background: var(--beige);
    flex-shrink: 0;
}

.acc-notif.success::before { background: var(--green-light); }
.acc-notif.error::before   { background: #c45c5c; }

.acc-notif-close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: var(--surface-soft);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.2s, color 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-notif-close:hover {
    background: var(--beige-pale);
    color: var(--text);
}

/* ── TAB CONTENT ── */
.acc-tab-content {
    display: none;
    animation: accFadeIn 0.45s var(--ease) both;
}

.acc-tab-content.active { display: block; }

@keyframes accFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

/* ── PANEL (formulaire) ── */
.acc-panel {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(212,201,176,0.35);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.acc-panel-body {
    padding: 32px 36px 36px;
}

.acc-panel-head {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--green);
    letter-spacing: 0.02em;
    padding: 28px 36px 0;
    margin-bottom: 8px;
}

.acc-panel-sub {
    font-size: var(--fs-small);
    color: var(--text-muted);
    font-weight: 300;
    padding: 0 36px 24px;
    border-bottom: 1px solid rgba(212,201,176,0.25);
    margin-bottom: 0;
}

.acc-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.acc-label {
    display: block;
    font-size: var(--fs-label);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green-mid);
    font-weight: 500;
    margin-bottom: 9px;
}

.acc-label span { color: var(--beige); opacity: 0.8; }

.acc-field {
    margin-bottom: 20px;
}

.acc-field-control {
    position: relative;
}

.acc-field-control svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--beige);
    pointer-events: none;
    transition: color 0.25s;
}

.acc-panel input[type="text"],
.acc-panel input[type="email"],
.acc-panel input[type="password"] {
    width: 100%;
    background: var(--surface);
    border: 1px solid rgba(212,201,176,0.45);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    padding: 14px 16px 14px 46px;
    outline: none;
    border-radius: var(--radius-sm);
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.acc-panel input:hover {
    border-color: var(--beige);
}

.acc-panel input:focus {
    border-color: var(--green-mid);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(45,90,66,0.08);
}

.acc-panel input:focus + svg,
.acc-field-control:focus-within svg {
    color: var(--green-mid);
}

.acc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--green);
    color: var(--white);
    border: none;
    font-family: inherit;
    font-size: var(--fs-btn);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 16px 32px;
    cursor: pointer;
    border-radius: 100px;
    transition: background var(--t), transform 0.2s, box-shadow var(--t);
    box-shadow: 0 12px 32px -12px rgba(26,58,42,0.45);
    margin-top: 8px;
}

.acc-btn:hover {
    background: var(--green-light);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -14px rgba(26,58,42,0.55);
}

.acc-btn:active { transform: translateY(0); }

/* ── RÉSERVATIONS HEADER ── */
.acc-res-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.acc-sec-head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.acc-sec-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 400;
    color: var(--green);
    letter-spacing: 0.02em;
}

.acc-sec-count {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--beige);
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(200,169,122,0.12);
    border-radius: 100px;
}

.acc-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-beige);
    color: var(--green);
    border: none;
    font-family: inherit;
    font-size: var(--fs-btn);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 13px 24px;
    text-decoration: none;
    border-radius: 100px;
    transition: transform 0.2s, box-shadow var(--t);
    box-shadow: 0 10px 28px -12px rgba(200,169,122,0.55);
    white-space: nowrap;
}

.acc-btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -10px rgba(200,169,122,0.65);
}

/* ── GRILLE CARTES ── */
.acc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.acc-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(212,201,176,0.35);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}

.acc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.acc-card.past {
    opacity: 0.72;
}

.acc-card.past:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
}

.acc-card-top {
    padding: 22px 22px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(180deg, rgba(245,239,228,0.45) 0%, transparent 100%);
    border-bottom: 1px solid rgba(212,201,176,0.2);
}

.acc-card-service {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--green);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    line-height: 1.2;
}

.acc-card-cat {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.acc-badge {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 100px;
    flex-shrink: 0;
    white-space: nowrap;
}

.acc-badge.waiting { background: #fdf5e8; color: #8a6c3a; border: 1px solid rgba(200,169,122,0.35); }
.acc-badge.confirm { background: #eaf3ec; color: #1a3a2a; border: 1px solid rgba(45,90,66,0.25); }
.acc-badge.cancel  { background: #fdf0f0; color: #7a3030; border: 1px solid rgba(192,144,144,0.35); }
.acc-badge.done    { background: #f0f3f0; color: #4a5a4a; border: 1px solid rgba(176,184,176,0.35); }

.acc-card-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 6px 0;
}

.acc-info-item {
    padding: 14px 22px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.acc-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--beige);
}

.acc-info-lbl {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 3px;
}

.acc-info-val {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text);
}

.acc-info-val.gold {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: var(--green);
    font-weight: 500;
}

.acc-card-notes {
    padding: 14px 22px;
    margin: 0 16px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: var(--fs-small);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.65;
    font-style: italic;
}

.acc-card-footer {
    padding: 14px 22px;
    border-top: 1px solid rgba(212,201,176,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--surface);
    margin-top: auto;
}

.acc-cancel-hint {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 400;
}

.acc-btn-cancel {
    background: var(--white);
    border: 1px solid rgba(192,144,144,0.45);
    color: #7a3030;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 100px;
    transition: background 0.2s, transform 0.2s;
}

.acc-btn-cancel:hover {
    background: #fdf0f0;
    transform: translateY(-1px);
}

/* ── EMPTY STATE ── */
.acc-empty {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px dashed rgba(200,169,122,0.45);
    padding: 64px 32px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.acc-empty::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 50% 0%, rgba(200,169,122,0.08), transparent 70%);
    pointer-events: none;
}

.acc-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(200,169,122,0.15) 0%, rgba(245,239,228,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--beige);
    position: relative;
    z-index: 1;
}

.acc-empty h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.75rem;
    color: var(--green);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.acc-empty p {
    font-size: var(--fs-body);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.acc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green);
    color: var(--white);
    border: none;
    font-family: inherit;
    font-size: var(--fs-btn);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 100px;
    transition: background var(--t), transform 0.2s, box-shadow var(--t);
    box-shadow: 0 12px 32px -12px rgba(26,58,42,0.45);
    position: relative;
    z-index: 1;
}

.acc-btn-primary:hover {
    background: var(--green-light);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -14px rgba(26,58,42,0.55);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .acc-hero {
        padding: 36px 20px 10px;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }

    .acc-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .acc-hero-user {
        width: 100%;
    }

    .acc-tabs {
        width: 100%;
        display: flex;
    }

    .acc-tab {
        flex: 1;
        justify-content: center;
        padding: 12px 14px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .acc-tab span { display: none; }

    .acc-wrap {
        padding: 44px 16px 72px;
    }

    .acc-two-col {
        grid-template-columns: 1fr;
    }

    .acc-panel-body,
    .acc-panel-head,
    .acc-panel-sub {
        padding-left: 22px;
        padding-right: 22px;
    }

    .acc-panel-head { padding-top: 22px; }

    .acc-grid {
        grid-template-columns: 1fr;
    }

    .acc-res-head {
        flex-direction: column;
        align-items: stretch;
    }

    .acc-btn-new {
        justify-content: center;
    }

    .acc-empty {
        padding: 48px 24px;
    }
}
