/* ═══════════════════════════════════════════════════════════════════════════
   TERRARIUM CUSTOMIZER — Lush Sphere
   Design tokens : prototype design_handoff_customizer/customizer/styles.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────────────────── */

:root {
    --cz-bg:           #F5F3EE;
    --cz-bg-aside:     #FAF8F3;
    --cz-fg:           #123524;
    --cz-fg-soft:      rgba(18, 53, 36, 0.6);
    --cz-border:       #E4DFD2;
    --cz-border-soft:  rgba(18, 53, 36, 0.12);
    --cz-orange:       #CD4E04;
    --cz-green:        #6B7345;
    --cz-gold:         #A87D3C;
    --cz-gold-light:   #E8C97A;
    --cz-gold-shimmer: linear-gradient(90deg, #A87D3C 0%, #E8C97A 25%, #F5E6BF 50%, #E8C97A 75%, #A87D3C 100%);
    --cz-radius:       20px;
    --cz-radius-sm:    12px;
    --cz-sans:         'Work Sans', sans-serif;
    --cz-serif:        'El Messiri', serif;
}

/* ── Animations ─────────────────────────────────────────────────────────── */

@keyframes cz-bloom {
    0%   { opacity: 0; transform: translateY(8px) scale(0.85); }
    60%  { opacity: 1; transform: translateY(-2px) scale(1.05); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cz-bloom { animation: cz-bloom 520ms cubic-bezier(.22,.9,.32,1) both; }


@keyframes cz-shimmer-sweep {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes cz-suggest-aura-in {
    0%   { opacity: 0; transform: scale(0.85); }
    40%  { opacity: 1; transform: scale(1.08); }
    100% { opacity: 0.85; transform: scale(1); }
}

@keyframes lush-spin {
    to { transform: rotate(360deg); }
}

/* ── Bouton déclencheur (page produit) ──────────────────────────────────── */

#lush-terrarium-open-btn {
    appearance: none;
    width: 100%;
    margin-top: 12px;
}

/* ── Kit terrarium — mise en page boutons produit ────────────────────────── */

.product-add-to-cart--kit {
    flex-direction: column;
    gap: 12px;
}
.product-add-to-cart--kit #lush-terrarium-open-btn {
    padding: 20px 0;
    margin-top: 0;
}
.lush-kit-secondary {
    display: flex;
    gap: 12px;
    align-items: center;
}
.lush-kit-secondary .cart {
    flex: 1;
    display: flex;
}
.lush-kit-secondary .btn-secondary {
    flex: 1;
    white-space: nowrap;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 768px) {
    .lush-kit-secondary {
        align-items: stretch;
    }
}

/* ── Overlay & modal scaffold ───────────────────────────────────────────── */

.cz-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(15, 24, 18, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease;
}
.cz-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cz-modal {
    width: 100%;
    max-width: 1200px;
    height: 88vh;
    max-height: 920px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--cz-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px -20px rgba(15, 24, 18, 0.45),
                0 0 0 1px rgba(15, 24, 18, 0.08);
    transform: scale(0.97) translateY(20px);
    opacity: 0;
    transition: transform 320ms cubic-bezier(.22,.61,.36,1),
                opacity 280ms ease;
}
.cz-overlay.is-open .cz-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ── Bouton fermeture ───────────────────────────────────────────────────── */

.cz-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(18, 53, 36, 0.08);
    color: var(--cz-fg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-family: var(--cz-serif);
    z-index: 10;
    line-height: 1;
    transition: background 160ms ease, transform 160ms ease;
}
.cz-close-btn:hover {
    background: rgba(18, 53, 36, 0.14);
    transform: rotate(90deg);
}

/* ── Étapes (affichage/masquage) ────────────────────────────────────────── */

.cz-step {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    overflow: hidden;
}
.cz-step:not([hidden]) {
    display: flex;
}

/* ── ÉTAPE 1 ─────────────────────────────────────────────────────────────
   Header fixe en haut + cartes dans zone scrollable en dessous
   ────────────────────────────────────────────────────────────────────────── */

.cz-s1-hdr {
    flex-shrink: 0;
    text-align: center;
    padding: 40px 32px 28px;
    border-bottom: 1px solid var(--cz-border);
}

.cz-s1-eyebrow {
    font-family: var(--cz-sans);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cz-fg);
    opacity: 0.55;
    margin: 0 0 14px;
}

.cz-s1-title {
    font-family: var(--cz-serif);
    font-weight: 500;
    font-size: 38px;
    line-height: 1.1;
    color: var(--cz-fg);
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}

.cz-s1-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    gap: 24px;
    padding: 28px 32px 40px;
    box-sizing: border-box;
    align-items: flex-start;
}

/* Carte de parcours */

.cz-path-card {
    flex: 1;
    min-width: 260px;
    min-height: 420px;
    padding: 48px 40px;
    border-radius: 24px;
    border: 1px solid var(--cz-border);
    background: #FFF;
    color: var(--cz-fg);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: transform 220ms cubic-bezier(.22,.61,.36,1),
                box-shadow 220ms ease,
                border-color 220ms ease,
                background 220ms ease;
    position: relative;
    overflow: hidden;
}
.cz-path-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px -28px rgba(18, 53, 36, 0.35);
    border-color: var(--cz-green);
}

.cz-path-card__eyebrow {
    font-family: var(--cz-sans);
    font-size: 16px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
    margin: 0 0 16px;
}

.cz-path-card__eyebrow-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.cz-path-card__eyebrow-row .cz-path-card__eyebrow {
    margin-bottom: 0;
}

.cz-badge-recommande {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--cz-green);
    color: #FFF;
    font-family: var(--cz-sans);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

.cz-path-card__title {
    font-family: 'El Messiri';
    font-weight: 500;
    font-size: 36px;
    line-height: 1.1;
    text-align: left;
    margin: 24px 0;
    letter-spacing: -0.01em;
    color: var(--cz-fg);
}

.cz-path-card__lede {
    font-family: var(--cz-sans);
    font-size: 15px;
    line-height: 1.55;
    opacity: 0.85;
    max-width: 32ch;
    margin: 0;
    color: var(--cz-fg);
}

.cz-path-card__bottom {
    margin-top: 32px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.cz-path-card__cta {
    font-family: var(--cz-sans);
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cz-fg);
}
.cz-path-card__cta em {
    font-style: normal;
    font-family: var(--cz-serif);
    font-weight: 400;
}

/* ── Header commun aux étapes 2 & 3 ────────────────────────────────────── */

.cz-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid var(--cz-border);
    flex-shrink: 0;
    background: rgba(245, 243, 238, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.cz-nav > :first-child { justify-self: start; }
.cz-nav > :last-child  { justify-self: end; }

.cz-nav-btn {
    appearance: none;
    border: none;
    background: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--cz-fg);
    font-family: var(--cz-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background 160ms ease;
}
.cz-nav-btn:hover { background: rgba(18, 53, 36, 0.06); }
.cz-nav-btn em { font-style: normal; font-family: var(--cz-serif); }

/* Indicateurs d'étapes */

.cz-step-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cz-step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--cz-fg);
    color: var(--cz-fg);
    font-family: var(--cz-sans);
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background 220ms ease, color 220ms ease;
}
.cz-step-dot--active {
    background: var(--cz-fg);
    color: #FFF;
}
.cz-step-dot--done {
    background: var(--cz-fg);
    color: #FFF;
}
.cz-step-dot--dim {
    border-color: rgba(18, 53, 36, 0.3);
    color: rgba(18, 53, 36, 0.3);
    opacity: 0.4;
}

.cz-step-dot-line {
    width: 24px;
    height: 1px;
    background: var(--cz-fg);
    flex-shrink: 0;
}
.cz-step-dot-line--dim {
    background: rgba(18, 53, 36, 0.3);
    opacity: 0.4;
}

.cz-nav-spacer       { width: 92px; flex-shrink: 0; }
.cz-nav-spacer--wide { width: 200px; }

/* ── ÉTAPE 2 — Layout split ─────────────────────────────────────────────── */

.cz-s2-content {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ── Aside gauche ───────────────────────────────────────────────────────── */

.cz-s2-aside {
    width: 440px;
    flex-shrink: 0;
    padding: 28px 28px 24px;
    border-right: 1px solid var(--cz-border);
    background: var(--cz-bg-aside);
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
}

.cz-aside-meta {
    flex-shrink: 0;
}
.cz-aside-name {
    font-family: var(--cz-serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--cz-fg);
    letter-spacing: -0.005em;
    margin: 0 0 4px;
}
.cz-aside-diameter {
    font-family: var(--cz-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cz-fg);
    opacity: 0.8;
    margin: 0;
    text-align: center;
}

/* SVG terrarium */

.cz-terrarium-stage {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 4px 0 6px;
    transition: opacity 320ms ease;
}
#cz-terrarium-svg {
    width: 288px;
    height: auto;
    display: block;
}
.cz-terrarium-stage.is-suggesting { opacity: 0.55; }
.cz-plants-wrap.is-suggesting {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Plant slots — pop-in animation */
@keyframes cz-sv-pop {
    0%   { opacity: 0; transform: translateY(6px) scale(0.82); }
    55%  { opacity: 1; transform: translateY(-2px) scale(1.05); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cz-sv-slot {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: 50% 100%;
}
.cz-sv-slot.is-visible {
    animation: cz-sv-pop 420ms cubic-bezier(.22,.9,.32,1) forwards;
}

/* Lush sparkles */
@keyframes cz-sparkle-twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.6) rotate(0deg); }
    50%      { opacity: 1;    transform: scale(1.1) rotate(18deg); }
}
.cz-sparkle {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}
.cz-terrarium-stage.is-lush .cz-sparkle {
    animation: cz-sparkle-twinkle 2400ms ease-in-out infinite;
}
.cz-terrarium-stage.is-lush .cz-sparkle--d1 { animation-delay:  400ms; }
.cz-terrarium-stage.is-lush .cz-sparkle--d2 { animation-delay:  800ms; }
.cz-terrarium-stage.is-lush .cz-sparkle--d3 { animation-delay: 1200ms; }
.cz-terrarium-stage.is-lush .cz-sparkle--d4 { animation-delay: 1600ms; }
.cz-terrarium-stage.is-lush .cz-sparkle--d5 { animation-delay: 2000ms; }
.cz-terrarium-stage.is-lush .cz-sparkle--d6 { animation-delay:  200ms; }
.cz-terrarium-stage.is-lush .cz-sparkle--d7 { animation-delay:  600ms; }
.cz-terrarium-stage.is-lush .cz-sparkle--d8 { animation-delay: 1800ms; }
.cz-terrarium-stage.is-lush .cz-sparkle--d9 { animation-delay: 1000ms; }

/* Compact SVG (step 3) */
.cz-terrarium-compact {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.cz-terrarium-compact svg {
    width: 280px;
    height: auto;
    display: block;
}

/* Barre de progression */

.cz-progress-wrap {
    flex-shrink: 0;
}

.cz-progress-track {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 99px;
    background: rgba(18, 53, 36, 0.08);
    overflow: hidden;
}

.cz-progress-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    border-radius: 99px;
    background: rgba(18, 53, 36, 0.3);
    transition: width 480ms cubic-bezier(.22,.9,.32,1),
                background 320ms ease;
    background-size: 200% 100%;
}
.cz-progress-fill[data-tier="1"] { background: var(--cz-orange); }
.cz-progress-fill[data-tier="2"] { background: var(--cz-green); }
.cz-progress-fill[data-tier="3"] {
    background: var(--cz-gold-shimmer);
    background-size: 200% 100%;
    animation: cz-shimmer-sweep 2400ms linear infinite;
}

.cz-progress-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(245, 243, 238, 0.85);
}

.cz-progress-labels {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    font-family: 'Josefin Sans';;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cz-fg);
}

.cz-progress-label {
    opacity: 0.35;
    font-weight: 500;
    transition: opacity 220ms ease, color 220ms ease, font-weight 220ms ease;
}
.cz-progress-label.is-done   { opacity: 0.3; }
.cz-progress-label.is-active[data-tier="1"] { color: var(--cz-orange); opacity: 1; font-weight: 600; }
.cz-progress-label.is-active[data-tier="2"] { color: var(--cz-green);  opacity: 1; font-weight: 600; }
.cz-progress-label.is-active[data-tier="3"] { color: var(--cz-gold);   opacity: 1; font-weight: 600; }

.cz-progress-count {
    font-family: var(--cz-sans);
    font-weight: 600;
    font-size: 16px;
    color: var(--cz-fg-soft);
    text-align: center;
    margin: 10px 0;
}

/* Carte offre */

.cz-offer-card[hidden] { display: none; }
.cz-offer-card {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(205, 78, 4, 0.06);
    border: 1px solid rgba(205, 78, 4, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    transition: background 240ms ease, border-color 240ms ease;
}
.cz-offer-card.is-unlocked {
    background: rgba(107, 115, 69, 0.08);
    border-color: rgba(107, 115, 69, 0.3);
}

.cz-offer-icon-wrap {
    width: 36px;
    align-self: stretch;
    border-radius: 8px;
    border: 1.4px dashed var(--cz-orange);
    color: var(--cz-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 240ms ease, border-color 240ms ease, color 240ms ease;
}
.cz-offer-card.is-unlocked .cz-offer-icon-wrap {
    background: var(--cz-green);
    border: none;
    color: #FFF;
}

#cz-offer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.cz-offer-icon-wrap svg {
    display: block;
}

.cz-offer-text { flex: 1; min-width: 0; }

.cz-offer-status {
    font-family: var(--cz-sans);
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cz-orange);
    font-weight: 600;
    opacity: 0.85;
    margin: 0;
    transition: color 240ms ease;
}
.cz-offer-card.is-unlocked .cz-offer-status { color: var(--cz-green); }

.cz-offer-msg {
    font-family: var(--cz-sans);
    font-size: 13px;
    line-height: 1.35;
    color: var(--cz-fg);
    margin: 2px 0 0;
}

/* Suggérer — FAB flottant */

.cz-plants-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cz-suggest-area {
    position: absolute;
    bottom: 24px;
    right: 28px;
    z-index: 20;
}

/* Barre de progression collante (mobile, top de cz-plants-wrap) */
.cz-s2-progress-sticky {
    display: none;
}

.cz-suggest-fab {
    appearance: none;
    border: none;
    background: linear-gradient(90deg,
        #E2CC8E 0%,
        #EDD9A5 30%,
        #F2E4B8 50%,
        #EDD9A5 70%,
        #E2CC8E 100%
    );
    background-size: 250% 100%;
    animation: cz-fab-shimmer 7200ms ease-in-out infinite;
    color: #6B7345;
    cursor: pointer;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(168, 125, 60, 0.22);
    transition: max-width 320ms cubic-bezier(.22,.9,.32,1),
                gap 320ms cubic-bezier(.22,.9,.32,1),
                padding 320ms cubic-bezier(.22,.9,.32,1),
                box-shadow 220ms ease;
    white-space: nowrap;
}
@keyframes cz-fab-shimmer {
    0%, 100% { background-position:   0% center; }
    50%       { background-position: 100% center; }
}
.cz-suggest-fab:hover,
.cz-suggest-fab:focus-visible {
    max-width: 260px;
    gap: 8px;
    padding: 0 20px 0 16px;
    box-shadow: 0 8px 20px rgba(168, 125, 60, 0.30);
}
.cz-suggest-fab:active { transform: scale(0.97); }

.cz-suggest-fab__icon {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cz-suggest-fab__star {
    display: block;
    animation: cz-star-pulse 2.4s ease-in-out infinite;
}
.cz-suggest-fab__star-sm {
    position: absolute;
    top: -3px;
    right: -4px;
    display: block;
    animation: cz-star-pulse 2.4s ease-in-out infinite;
    animation-delay: -1.2s;
    opacity: 0.75;
}
@keyframes cz-star-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.9; }
    50%       { transform: scale(1.22); opacity: 1;   }
}
.cz-suggest-fab:hover .cz-suggest-fab__star,
.cz-suggest-fab:focus-visible .cz-suggest-fab__star {
    animation: none;
    transform: scale(1);
    opacity: 1;
}

.cz-suggest-fab__label {
    font-family: var(--cz-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #123524;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 320ms cubic-bezier(.22,.9,.32,1),
                opacity 200ms ease 80ms;
}
.cz-suggest-fab:hover .cz-suggest-fab__label,
.cz-suggest-fab:focus-visible .cz-suggest-fab__label,
.cz-suggest-fab.is-expanded .cz-suggest-fab__label {
    max-width: 220px;
    opacity: 1;
}
.cz-suggest-fab.is-expanded {
    max-width: 260px;
    gap: 8px;
    padding: 0 20px 0 16px;
    box-shadow: 0 8px 20px rgba(168, 125, 60, 0.30);
}

.cz-reset-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--cz-fg-soft);
    font-family: var(--cz-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px;
    width: 100%;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 160ms ease;
}
.cz-reset-btn:hover { color: var(--cz-fg); }

/* ── Grille de plantes (droite step 2) ──────────────────────────────────── */

.cz-s2-main {
    flex: 1;
    padding: 28px 32px;
    overflow-y: auto;
}

/* Section "guidé" */
.cz-plant-group {
    margin-bottom: 32px;
    transition: opacity 240ms ease;
}
.cz-plant-group--locked {
    opacity: 0.25;
    pointer-events: none;
}
.cz-plant-group--done {
    opacity: 1;
}

.cz-group-bubble {
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #2F5C6E;
    border-radius: 99px;
    font-family: var(--cz-sans);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    width: fit-content;
    /* état caché */
    max-height: 0;
    padding: 0 16px;
    margin-bottom: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition:
        max-height   0.30s cubic-bezier(.22,.9,.32,1),
        padding      0.30s cubic-bezier(.22,.9,.32,1),
        margin       0.30s cubic-bezier(.22,.9,.32,1),
        opacity      0.26s cubic-bezier(.22,.9,.32,1),
        transform    0.26s cubic-bezier(.22,.9,.32,1);
}
.cz-plant-group--active .cz-group-bubble {
    max-height: 60px;
    padding: 7px 16px;
    margin-bottom: 14px;
    opacity: 1;
    transform: translateX(0);
}
.cz-plant-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.cz-plant-group__title-wrap {
    flex: 1;
    min-width: 0;
}
.cz-plant-group__title {
    font-family: var(--cz-serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--cz-fg);
    letter-spacing: -0.005em;
    margin: 0;
}
.cz-plant-group__count {
    font-family: var(--cz-sans);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cz-fg-soft);
    white-space: nowrap;
}

/* Grille */
.cz-plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

/* ── Carte plante ───────────────────────────────────────────────────────── */

.cz-plant-card {
    background: #FFF;
    border: 1.5px solid var(--cz-border);
    border-radius: 16px;
    padding: 14px;
    transition: border-color 200ms cubic-bezier(.22,.61,.36,1),
                background 200ms ease;
    color: var(--cz-fg);
    position: relative;
}
.cz-plant-card.is-selected {
    background: #F5F8F0;
    border-color: var(--cz-green);
    border-width: 1.5px;
}
.cz-plant-card.is-out-of-stock {
    opacity: 0.45;
    pointer-events: none;
}
.cz-plant-card.is-low-stock .cz-plant-card__photo {
    outline: 1.5px solid var(--cz-orange);
    outline-offset: -1.5px;
}

.cz-stock-badge {
    position: absolute;
    bottom: 7px;
    left: 7px;
    right: 7px;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: var(--cz-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.3;
    pointer-events: none;
}
.cz-stock-badge--out {
    background: rgba(18, 53, 36, 0.78);
    color: #fff;
}
.cz-stock-badge--low {
    background: rgba(205, 78, 4, 0.88);
    color: #fff;
}

.cz-plant-card__photo {
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--cz-border);
    margin-bottom: 10px;
    position: relative;
}
.cz-pswp-plant {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}
.cz-pswp-plant img,
.cz-plant-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cz-plant-card__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(18, 53, 36, 0.3);
    font-size: 32px;
    font-family: var(--cz-serif);
}

/* Badge sélection (checkmark) */
.cz-plant-card__check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cz-green);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--cz-serif);
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 160ms ease,
                transform 200ms cubic-bezier(.34, 1.56, .64, 1);
}
.cz-plant-card.is-selected .cz-plant-card__check {
    opacity: 1;
    transform: scale(1);
}

/* Texte */
.cz-plant-card__name {
    font-family: var(--cz-serif);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    color: var(--cz-fg);
    margin: 0;
}
.cz-plant-card__sub {
    font-family: var(--cz-sans);
    font-style: italic;
    font-size: 14px;
    color: var(--cz-fg-soft);
    margin: 3px 0 0;
}

/* Prix + bouton */
.cz-plant-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.cz-plant-card__price {
    font-family: var(--cz-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--cz-fg);
}

.cz-plant-card__add {
    appearance: none;
    border: none;
    padding: 8px 16px;
    border-radius: 99px;
    background: var(--cz-fg);
    color: #FFF;
    font-family: var(--cz-sans);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 500;
    transition: transform 160ms ease;
}
.cz-plant-card__add:hover { transform: scale(1.04); }
.cz-plant-card__add:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* Compteur quantité */
.cz-plant-card__qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 53, 36, 0.06);
    border-radius: 99px;
    padding: 4px;
    justify-content: space-between;
}
.cz-qty-btn {
    appearance: none;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #FFF;
    color: var(--cz-fg);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 160ms ease;
}
.cz-qty-btn:hover { background: rgba(18, 53, 36, 0.08); }
.cz-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.cz-qty-num {
    font-family: var(--cz-serif);
    font-weight: 600;
    font-size: 14px;
    min-width: 18px;
    text-align: center;
    color: var(--cz-fg);
}

/* ── Footer commun (step 2) ─────────────────────────────────────────────── */

.cz-s2-ftr {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    padding: 18px 28px;
    border-top: 1px solid var(--cz-border);
    flex-shrink: 0;
    background: rgba(245, 243, 238, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cz-ftr-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.cz-ftr-total { text-align: right; }
.cz-ftr-total-label {
    font-family: var(--cz-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cz-fg);
    opacity: 0.55;
    margin: 0;
}
.cz-ftr-total-price {
    font-family: var(--cz-sans);
    font-size: 22px;
    font-weight: 500;
    color: var(--cz-fg);
    margin: 2px 0 0;
}

.cz-next-btn {
    appearance: none;
    border: none;
    padding: 15px 28px;
    border-radius: var(--cz-radius);
    background: var(--cz-fg);
    color: #FFF;
    font-family: var(--cz-sans);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 160ms ease, background 160ms ease;
    white-space: nowrap;
}
.cz-next-btn:not(:disabled):hover { transform: translateY(-1px); }
.cz-next-btn:disabled {
    background: rgba(18, 53, 36, 0.15);
    color: rgba(18, 53, 36, 0.4);
    cursor: not-allowed;
}
.cz-next-btn em { font-style: normal; font-family: var(--cz-serif); }

/* ── ÉTAPE 3 ─────────────────────────────────────────────────────────────
   Récapitulatif : main (1fr) + aside (420px)
   ────────────────────────────────────────────────────────────────────────── */

.cz-s3-content {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Main recap */

.cz-s3-main {
    flex: 1;
    min-width: 0;
    padding: 40px 48px;
    overflow-y: auto;
    max-width: 760px;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 24, 18, 0.15) transparent;
}
.cz-s3-main::-webkit-scrollbar { width: 2px; }
.cz-s3-main::-webkit-scrollbar-track { background: transparent; }
.cz-s3-main::-webkit-scrollbar-thumb { background: rgba(15, 24, 18, 0.15); border-radius: 99px; }
.cz-s3-main::-webkit-scrollbar-thumb:hover { background: rgba(15, 24, 18, 0.3); }


.cz-s3-title {
    font-family: var(--cz-serif);
    font-size: 40px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--cz-fg);
    letter-spacing: -0.01em;
    margin: 0 0 28px;
}

/* Section plantes récap */

.cz-recap-section {
    background: #FFF;
    border: 1px solid var(--cz-border);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
}

.cz-recap-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}
.cz-recap-section__title {
    font-family: var(--cz-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--cz-fg);
    margin: 0;
}
.cz-recap-section__subtotal {
    font-family: var(--cz-sans);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cz-fg-soft);
}

.cz-recap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cz-recap-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--cz-border);
}
.cz-recap-item:last-child { border-bottom: none; }

.cz-recap-item__photo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--cz-border);
    flex-shrink: 0;
    display: block;
}
.cz-recap-item__photo-ph {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--cz-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(18, 53, 36, 0.3);
    font-size: 20px;
    font-family: var(--cz-serif);
}

.cz-recap-item__info { flex: 1; min-width: 0; }
.cz-recap-item__name {
    font-family: var(--cz-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--cz-fg);
    margin: 0;
}
.cz-recap-item__name span { opacity: 0.6; }
.cz-recap-item__sub {
    font-family: var(--cz-sans);
    font-size: 14px;
    font-style: italic;
    color: var(--cz-fg-soft);
    margin: 2px 0 0;
}

.cz-recap-item__price {
    font-family: var(--cz-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--cz-fg);
    flex-shrink: 0;
}

/* Ligne réduction / offerte */
.cz-recap-item--offer {
    color: var(--cz-green);
}
.cz-recap-item--offer .cz-recap-item__name {
    font-style: italic;
    color: var(--cz-green);
}
.cz-recap-item--offer .cz-recap-item__price {
    color: var(--cz-green);
}
.cz-recap-item__icon {
    width: 48px;
    display: flex;
    text-align: center;
    font-size: 18px;
    color: var(--cz-green);
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
}

/* Ligne kit terrarium */

.cz-recap-kit {
    background: #FFF;
    border: 1px solid var(--cz-border);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cz-recap-kit__name {
    font-family: var(--cz-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--cz-fg);
    margin: 0;
}
.cz-recap-kit__sub {
    font-family: var(--cz-sans);
    font-size: 12px;
    font-style: italic;
    color: var(--cz-fg-soft);
    margin: 2px 0 0;
}
.cz-recap-kit__price {
    font-family: var(--cz-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--cz-fg);
    flex-shrink: 0;
}

/* Aside recap (colonne droite) */

.cz-s3-aside {
    width: 420px;
    flex-shrink: 0;
    padding: 40px 32px;
    border-left: 1px solid var(--cz-border);
    background: var(--cz-bg-aside);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 24, 18, 0.15) transparent;
}
.cz-s3-aside::-webkit-scrollbar { width: 2px; }
.cz-s3-aside::-webkit-scrollbar-track { background: transparent; }
.cz-s3-aside::-webkit-scrollbar-thumb { background: rgba(15, 24, 18, 0.15); border-radius: 99px; }
.cz-s3-aside::-webkit-scrollbar-thumb:hover { background: rgba(15, 24, 18, 0.3); }

/* Terrarium compact */
.cz-terrarium-compact {
    flex-shrink: 0;
}

/* Ventilation prix */

.cz-breakdown {
    padding: 18px;
    background: #FFF;
    border: 1px solid var(--cz-border);
    border-radius: 16px;
    flex-shrink: 0;
}

.cz-breakdown-promo-hint {
    font-family: var(--cz-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--cz-orange);
    background: rgba(205, 78, 4, 0.06);
    border: 1px solid rgba(205, 78, 4, 0.2);
    border-radius: 10px;
    padding: 9px 12px;
    margin: 0 0 10px;
}

.cz-breakdown-row {
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    font-family: var(--cz-sans);
    font-size: 16px;
    color: var(--cz-fg);
}
.cz-breakdown-row span:first-child { opacity: 0.75; }
.cz-breakdown-row strong {
    font-family: var(--cz-sans);
    font-size: 16px;
    font-weight: 500;
}
.cz-breakdown-row--accent { color: var(--cz-green); }
.cz-breakdown-row--accent strong { color: var(--cz-green); }

.cz-breakdown-total {
    border-top: 1px solid var(--cz-border);
    margin-top: 10px;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.cz-breakdown-total span {
    font-family: var(--cz-sans);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cz-fg);
    opacity: 0.65;
}
.cz-breakdown-total strong {
    font-family: var(--cz-sans);
    font-size: 26px;
    font-weight: 500;
    color: var(--cz-fg);
}

.cz-s3-tier-badge {
    align-self: center;
    font-family: var(--cz-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 99px;
    transition: background 240ms ease, color 240ms ease;
}
.cz-s3-tier-badge:empty { display: none; }
.cz-s3-tier-badge[data-tier="1"] { background: rgba(18,53,36,0.08);   color: var(--cz-fg); }
.cz-s3-tier-badge[data-tier="2"] { background: rgba(107,115,69,0.15); color: #4A5030; }
.cz-s3-tier-badge[data-tier="3"] { background: rgba(232,201,122,0.28); color: #7A6020; }

.cz-s3-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(232, 201, 122, 0.12);
    border: 1px solid rgba(232, 201, 122, 0.7);
    font-weight: 500;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: var(--cz-sans);
    font-size: 14px;
    line-height: 1.55;
    color: #7A6020;
    flex-shrink: 0;
    margin-top: 8px;
}
.cz-s3-warning svg { flex-shrink: 0; margin-top: 1px; }

/* ── Toast confirmation ─────────────────────────────────────────────────── */

.cz-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cz-fg);
    color: #FFF;
    padding: 16px 24px;
    border-radius: 99px;
    font-family: var(--cz-sans);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: cz-bloom 320ms cubic-bezier(.22,.61,.36,1) both;
}
.cz-toast__check { color: #A8B98C; font-size: 16px; }

/* Scroll lock */
html.cz-modal-open,
body.cz-modal-open { overflow: hidden; }

.cz-overlay { overscroll-behavior: none; }

/* ── Spinner (chargement AJAX) ──────────────────────────────────────────── */

.cz-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--cz-border);
    border-top-color: var(--cz-fg);
    border-radius: 50%;
    animation: lush-spin 0.65s linear infinite;
    margin: 64px auto;
    display: block;
}

/* ── Message vide ────────────────────────────────────────────────────────── */

.cz-empty {
    font-family: var(--cz-sans);
    font-size: 14px;
    color: var(--cz-fg-soft);
    text-align: center;
    padding: 32px 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

    /* Modal — bottom sheet */
    .cz-overlay { align-items: flex-end; padding: 0; }
    .cz-modal {
        max-width: 100%;
        height: 92dvh;
        max-height: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        opacity: 1;
    }
    .cz-overlay.is-open .cz-modal { transform: translateY(0); }

.cz-step-dots { display: none; }
    .cz-nav {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0;
        padding: 12px 14px;
    }
    .cz-nav > :first-child { justify-self: start; }
    .cz-nav-spacer { display: none; }

    /* Étape 1 */
    .cz-s1-hdr { padding: 24px 16px 20px; }
    .cz-s1-title { font-size: 28px; }
    .cz-s1-body { flex-direction: column; padding: 16px 16px 32px; }
    .cz-path-card { flex: 0 0 auto; min-width: 0; width: 100%; min-height: auto; padding: 30px; }
    .cz-path-card__title { font-size: 26px; line-height: 1.15; padding: 10px 0;}
    .cz-path-card__bottom { margin-top: 16px; }

    /* Étape 2 — layout colonne */
    .cz-s2-content { flex-direction: column; overflow-y: auto; }
    .cz-s2-aside { width: 100%; flex-shrink: 0; border-right: none; border-bottom: 1px solid var(--cz-border); }
    .cz-aside-name { padding: 10px; margin: 0; }
    #cz-step-2 .cz-terrarium-stage { display: none !important; }
    .cz-s2-aside .cz-progress-wrap,
    .cz-s2-aside .cz-progress-count { display: none; }
    .cz-plants-wrap { flex: none; }
    .cz-s2-main { flex: none; overflow-y: visible; padding: 16px; }
    .cz-s2-progress-sticky {
        display: block;
        position: sticky;
        top: 0;
        z-index: 15;
        background: var(--cz-bg);
        border-bottom: 1px solid var(--cz-border);
        padding: 10px 16px 8px;
    }
    .cz-progress-sticky-title {
        font-family: 'Josefin sans';
        font-size: 12px;
        font-weight: 600;
        text-align: center;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--cz-fg);
        opacity: 0.5;
        margin: 0 0 6px;
    }
    .cz-s2-progress-sticky .cz-progress-track { height: 6px; }
    .cz-s2-progress-sticky .cz-progress-labels { margin-top: 5px; }
    .cz-s2-progress-sticky .cz-progress-label { font-size: 11px; }
    .cz-suggest-area { position: sticky; bottom: 20px; align-self: flex-end; margin-right: 16px; }
    .cz-ftr-right { gap: 12px; }
    .cz-plant-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .cz-plant-card { display: flex; flex-direction: column; justify-content: space-between; }
    .cz-plant-card__actions { flex-direction: column; align-items: stretch; gap: 8px; }
    .cz-plant-card__price { align-self: flex-start; }
    .cz-plant-card__add { width: 100%; }

    /* Étape 3 — layout colonne */
    .cz-s3-content { flex-direction: column; overflow-y: auto; overflow-x: hidden; }
    .cz-s3-main { flex: none; overflow-y: visible; }
    .cz-s3-aside { width: 100%; border-left: none; border-top: 1px solid var(--cz-border); overflow-y: visible; padding: 16px; }
    .cz-terrarium-compact svg { width: 250px; }
    .cz-s3-main { padding: 20px 16px; }
    .cz-recap-item { gap: 10px; }
    .cz-recap-item__name { font-size: 16px; }
    .cz-recap-item__photo,
    .cz-recap-item__photo-ph,
    .cz-recap-item__icon { width: 36px; height: 36px; }
    .cz-breakdown-total strong { font-size: 20px; }
    .cz-s3-warning { margin-bottom: 40px;}
}
