/* =================================================================
   Mode cuisine — CSS dédié (layout plein écran, grands textes)
================================================================= */

.cook-mode {
    background: #111;
    color: #f0f0ec;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.cook-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: #1a1a18;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.cook-back {
    color: rgba(255,255,255,.6);
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
}

.cook-back:hover { color: #fff; }

.cook-title {
    flex: 1;
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-heading);
    color: #fff;
}

.cook-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cook-progress {
    font-size: 0.85rem;
    color: rgba(255,255,255,.5);
    font-variant-numeric: tabular-nums;
}

/* Barre de progression */
.cook-progress-bar {
    height: 3px;
    background: #333;
    flex-shrink: 0;
}

.cook-progress-fill {
    height: 100%;
    background: var(--color-primary);
    transition: width 300ms ease;
}

/* Body principal */
.cook-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Sidebar ingrédients */
.cook-ingredients {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: min(320px, 85vw);
    background: #1e1e1c;
    border-right: 1px solid #333;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 300ms ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.cook-ingredients.is-open { transform: translateX(0); }

.cook-ingredients-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    background: #1e1e1c;
}

.cook-ingredients-header h2 { color: #fff; font-size: 1.1rem; }

.cook-ingredients-list {
    list-style: none;
    padding: 0.5rem 0;
}

.cook-ingredients-list li {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #2a2a28;
    cursor: pointer;
    transition: opacity 200ms, text-decoration 200ms;
    font-size: 1.05rem;
}

.cook-ingredients-list li.is-checked {
    opacity: 0.4;
    text-decoration: line-through;
}

.cook-ing-qty {
    color: var(--color-accent);
    font-weight: 700;
    white-space: nowrap;
    min-width: 60px;
}

.cook-ing-name { color: #f0f0ec; }

/* Zone étape */
.cook-step-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 4rem);
    overflow-y: auto;
}

.cook-step {
    max-width: 720px;
    width: 100%;
    text-align: center;
}

.cook-step-number {
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.cook-step-text {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    line-height: 1.6;
    color: #f0f0ec;
    font-weight: 500;
}

/* Écran de fin */
.cook-finish {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.finish-icon { font-size: 5rem; }

.cook-finish h2 {
    font-size: 2.5rem;
    color: #fff;
    font-family: var(--font-heading);
}

.cook-finish p { color: rgba(255,255,255,.6); }

/* Transitions Alpine */
.step-enter { transition: opacity 300ms, transform 300ms; }
.step-enter-start { opacity: 0; transform: translateX(30px); }
.step-enter-end   { opacity: 1; transform: translateX(0); }

/* Nav de navigation */
.cook-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #1a1a18;
    border-top: 1px solid #333;
    flex-shrink: 0;
}

.cook-btn {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255,255,255,.15);
    background: transparent;
    color: #fff;
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: background 200ms, border-color 200ms, transform 80ms;
    white-space: nowrap;
}

.cook-btn:hover:not(:disabled) { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.cook-btn:active:not(:disabled) { transform: scale(0.97); }
.cook-btn.is-disabled { opacity: 0.3; cursor: not-allowed; }

.cook-btn-next {
    background: var(--color-primary);
    border-color: var(--color-primary);
    justify-self: end;
    width: 100%;
}

.cook-btn-next:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }

.cook-btn-finish {
    background: #2d6a4f;
    border-color: #2d6a4f;
}

.cook-btn-ingredients { justify-self: center; }

@media (max-width: 480px) {
    .cook-nav { gap: 0.5rem; }
    .cook-btn { padding: 0.85rem 0.75rem; font-size: 0.9rem; }
    .cook-step-text { font-size: 1.25rem; }
}
