/* ═══════════════════════════════════════════════════════════════ */
/*  MaCave — Feuille de style centralisée                         */
/*  Organisation : Base → Layout → Composants → Pages spécifiques */
/* ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   VARIABLES & RESET
   ───────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ─────────────────────────────────────────────
   BASE
   ───────────────────────────────────────────── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1a1118;
    color: #e8ddd5;
    min-height: 100vh;
    /* Espace navbar bas (mobile) + safe-area iPhone */
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 8px);
}

/* ─────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────── */
header {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #3a2a30;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header h1 { font-size: 1.4rem; color: #c4956a; }
.header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.header-code {
    font-size: 0.7rem;
    color: #9a8b8e;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}
.header-code:hover { color: #c4956a; background: #261d23; }
.header-code .code-value {
    font-family: monospace;
    font-weight: 600;
    letter-spacing: 1px;
}
.header-logout {
    font-size: 0.75rem;
    color: #9a8b8e;
    text-decoration: none;
}
.header-logout:hover { color: #c4956a; }

/* Modale code de cave */
.code-tooltip {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 5, 8, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.code-tooltip.active { display: flex; }
.code-tooltip-box {
    background: #261d23;
    border: 1px solid #4a3a40;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 320px;
    width: 90%;
}
.code-tooltip-box .code-big {
    font-size: 1.6rem;
    font-weight: 700;
    color: #c4956a;
    letter-spacing: 2px;
    font-family: monospace;
    margin: 0.8rem 0;
}
.code-tooltip-box .code-hint {
    font-size: 0.8rem;
    color: #9a8b8e;
    line-height: 1.5;
}
.code-tooltip-box .btn-copy {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: #332a30;
    border: 1px solid #4a3a40;
    border-radius: 6px;
    color: #c4956a;
    cursor: pointer;
    font-size: 0.85rem;
}
.code-tooltip-box .btn-copy:hover { background: #4a3a40; }

/* ─────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────── */
.container { max-width: 700px; margin: 0 auto; padding: 1.2rem; }

.action-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.action-bar .btn {
    flex: 1 1 0;
    text-align: center;
}

/* ─────────────────────────────────────────────
   CARTE
   ───────────────────────────────────────────── */
.card {
    background: #261d23;
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────
   FORMULAIRES
   ───────────────────────────────────────────── */
label {
    display: block;
    font-size: 0.8rem;
    color: #9a8b8e;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}
input, select, textarea {
    width: 100%;
    padding: 0.7rem;
    background: #332a30;
    border: 1px solid #4a3a40;
    border-radius: 6px;
    color: #e8ddd5;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-family: inherit;
}
textarea { resize: vertical; min-height: 60px; }
input:focus, textarea:focus { outline: none; border-color: #c4956a; }

/* Supprimer la croix native des champs search */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* ─────────────────────────────────────────────
   BOUTONS
   ───────────────────────────────────────────── */
.btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: #8b5e3c;
    color: #e8ddd5;
    border: 1px solid #8b5e3c;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
}
.btn:hover { background: #c4956a; color: #1a1118; border-color: #c4956a; }
.btn-outline {
    background: transparent;
    border-color: #8b5e3c;
    color: #c4956a;
}

/* Boutons d'action secondaires (Estimer / Modifier / Supprimer) */
.action-btn {
    flex: 1;
    padding: 0.6rem;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    display: inline-block;
}
.action-estimate {
    background: #2a2518;
    color: #c4956a;
    border: 1px solid #4a3a20;
}
.action-estimate:hover { background: #3a3520; }
.action-edit {
    background: #1e2a33;
    color: #6ab5e8;
    border: 1px solid #2a3a48;
}
.action-edit:hover { background: #2a3a48; }
.action-delete {
    background: #2a1a1a;
    color: #9a6b6b;
    border: 1px solid #3a2525;
    width: 100%;
    font-size: 0.8rem;
}
.action-delete:hover { background: #3a2525; color: #c85a5a; }

/* ─────────────────────────────────────────────
   RÉSULTATS / LISTE BOUTEILLES
   ───────────────────────────────────────────── */
.result {
    background: #261d23;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.6rem;
}
.result .price { font-size: 1.5rem; color: #c4956a; font-weight: bold; }
.result .source { font-size: 0.75rem; color: #9a8b8e; text-transform: uppercase; }
.result a { color: #c4956a; font-size: 0.85rem; word-break: break-all; }

/* Flash messages */
.flash { padding: 0.7rem; border-radius: 6px; margin-bottom: 1rem; background: rgba(181,68,68,0.2); }
.flash.success { background: rgba(106,154,91,0.2); }

/* ─────────────────────────────────────────────
   SÉLECTEUR DE QUANTITÉ (global)
   ───────────────────────────────────────────── */
.qty-selector {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #4a3a40;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}
.qty-selector button {
    width: 44px; height: 44px;
    background: #332a30;
    color: #c4956a;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.qty-selector button:hover { background: #4a3a40; }
.qty-selector button:active { background: #8b5e3c; }
.qty-selector input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #4a3a40;
    border-right: 1px solid #4a3a40;
    border-radius: 0;
    margin: 0;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: bold;
}

/* ─────────────────────────────────────────────
   BADGES MATURITÉ
   ───────────────────────────────────────────── */
.maturity {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}
.maturity-young { background: #3a3520; color: #e8c840; }
.maturity-ready { background: #1e3320; color: #6abf5b; }
.maturity-peak  { background: #1a2e33; color: #40c8e8; }
.maturity-past  { background: #331a1a; color: #c85a5a; }

/* ─────────────────────────────────────────────
   TAG APPELLATION / COULEUR
   ───────────────────────────────────────────── */
.tag-appellation {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #2a2435;
    color: #b8a0d0;
    border: 1px solid #3a3045;
    white-space: nowrap;
}

/* ─────────────────────────────────────────────
   BARRE DE NAVIGATION — MOBILE (défaut)
   ───────────────────────────────────────────── */
/* MOBILE : nav fixée en haut */
.bottom-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1118;
    border-bottom: 1px solid #3a2a30;   /* bas au lieu de haut */
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 56px;
    z-index: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);  /* ombre vers le bas */
}

body {
    /* Compenser la nav fixée en haut + le header */
    padding-top: calc(56px + 53px);   /* nav + header */
    padding-bottom: 1rem;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #9a8b8e;
    font-size: 0.65rem;
    font-weight: 600;
    gap: 0.2rem;
    position: relative;
    padding: 0.4rem 0.6rem;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    flex: 1;
    max-width: 100px;
}
.nav-item:hover,
.nav-item.active { color: #c4956a; }
.nav-icon {
    font-size: 1.3rem;
    line-height: 1;
}
.nav-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    background: #8b5e3c;
    color: #e8ddd5;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* DESKTOP : nav en haut, centrée sous le header */
@media (min-width: 768px) {
    body {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .bottom-nav {
        position: static;
        margin: 0 auto 1rem;
        max-width: 460px;
        height: auto;
        padding: 0.3rem;
        border-bottom: none;
        border: 1px solid #3a2a30;
        border-radius: 12px;
        background: #261d23;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        gap: 0.3rem;
    }
    .nav-item {
        flex-direction: row;
        gap: 0.4rem;
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        border-radius: 8px;
        max-width: none;
        flex: 0 1 auto;
    }
    .nav-item.active { background: #332a30; }
    .nav-item:hover  { background: #2e242a; }
    .nav-icon { font-size: 1.1rem; }
    .nav-badge { position: static; margin-left: 0.1rem; }
}

/* ─────────────────────────────────────────────
   TOAST NOTIFICATION
   ───────────────────────────────────────────── */
.toast-container {
    position: fixed;
    /* Au-dessus de la navbar + safe-area iPhone */
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}
@media (min-width: 768px) {
    .toast-container {
        bottom: auto;
        top: 5rem;
        right: 1.5rem;
        left: auto;
        transform: none;
        width: auto;
    }
}
.toast {
    background: #261d23;
    border: 1px solid #4a3a40;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }
.toast-text {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    text-align: center;
}
.toast-actions { display: flex; gap: 0.5rem; }
.toast-btn {
    flex: 1;
    padding: 0.6rem;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.toast-btn-primary { background: #8b5e3c; color: #e8ddd5; }
.toast-btn-primary:hover { background: #c4956a; color: #1a1118; }
.toast-btn-secondary { background: #332a30; color: #9a8b8e; }
.toast-btn-secondary:hover { background: #4a3a40; color: #e8ddd5; }

/* ─────────────────────────────────────────────
   FILTRES & TRI (cave.html)
   ───────────────────────────────────────────── */
.filter-bar { margin-bottom: 0.8rem; }
.filter-bar label { margin-bottom: 0.4rem; }
.filter-row {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #332a30;
    color: #9a8b8e;
    border: 1px solid #4a3a40;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: all 0.15s;
    flex-shrink: 0;
}
.chip:hover { border-color: #c4956a; }
.chip.active { background: #8b5e3c; color: #e8ddd5; border-color: #8b5e3c; }
.chip .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.sort-bar {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 1rem;
}
.sort-bar select {
    flex: 1;
    margin-bottom: 0;
    padding: 0.5rem;
    font-size: 0.85rem;
}
.sort-dir {
    width: 44px; height: 38px;
    background: #332a30;
    border: 1px solid #4a3a40;
    border-radius: 6px;
    color: #c4956a;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sort-dir:hover { border-color: #c4956a; }
.bottle-count {
    text-align: center;
    font-size: 0.8rem;
    color: #9a8b8e;
    margin-bottom: 0.5rem;
}

/* ─────────────────────────────────────────────
   MODAL DE CHARGEMENT
   ───────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 8, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #261d23;
    border: 1px solid #4a3a40;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 300px;
    width: 90%;
}
.modal-box .spinner-dots { margin: 1rem 0 0.5rem; }
.modal-box .spinner-dots span {
    display: inline-block;
    width: 10px; height: 10px;
    background: #c4956a;
    border-radius: 50%;
    margin: 0 4px;
    animation: bounce 1.4s infinite ease-in-out;
}
.modal-box .spinner-dots span:nth-child(2) { animation-delay: 0.2s; }
.modal-box .spinner-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
.modal-box .modal-text { color: #9a8b8e; font-size: 0.9rem; }

/* ─────────────────────────────────────────────
   PAGE VIDE
   ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    color: #9a8b8e;
    padding: 3rem 1rem;
}
.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    opacity: 0.5;
}
.empty-state p { font-size: 0.9rem; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════ */
/*  COMPOSANTS SPÉCIFIQUES AUX PAGES                             */
/* ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   CAVE — Boutons actions bouteille
   ───────────────────────────────────────────── */
.bottle-row { cursor: pointer; }
.bottle-actions {
    display: none;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #3a2a30;
}
.bottle-row.open .bottle-actions { display: flex; }

/* Quantité rapide +/- (dans la liste cave) */
.qty-quick {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #4a3a40;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.qty-btn {
    width: 36px; height: 36px;
    background: #332a30;
    color: #c4956a;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.qty-btn:hover { background: #4a3a40; }
.qty-btn:active { background: #8b5e3c; }
.qty-val {
    width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #c4956a;
    /* Séparateur à droite uniquement (vers le bouton +) */
    border-right: 1px solid #4a3a40;
    line-height: 36px;
}

/* Bouton Boire 🍷 avec confirmation ✓/✗ */
.drink-btn {
    width: 40px; height: 40px;
    background: #2a1a20;
    border: 1px solid #4a3a40;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.drink-btn:hover { background: #3a2a30; border-color: #c4956a; }
.drink-confirm {
    display: flex;
    gap: 2px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #4a3a40;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
.drink-yes, .drink-no {
    width: 36px; height: 40px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.drink-yes { background: #1e3320; color: #6abf5b; }
.drink-yes:hover { background: #2a4a30; }
.drink-no { background: #331a1a; color: #c85a5a; }
.drink-no:hover { background: #4a2525; }

/* ─────────────────────────────────────────────
   CAVE — Suggestions appellation (filtre)
   ───────────────────────────────────────────── */
.suggestions-box {
    display: none;
    position: absolute;
    left: 0; right: 0;
    background: #332a30;
    border: 1px solid #4a3a40;
    border-radius: 0 0 6px 6px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
}
.suggestions-box.active { display: block; }
.suggestion-item {
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #e8ddd5;
}
.suggestion-item:hover { background: #4a3a40; }
.suggestion-item .count { float: right; color: #9a8b8e; font-size: 0.75rem; }

/* ─────────────────────────────────────────────
   BOTTLE_EDIT — Validation appellation
   ───────────────────────────────────────────── */
.validation-ok {
    background: #1e2e1e;
    border: 1px solid #2a3a2a;
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: #6abf5b;
}
.validation-warn {
    background: #2e2a1e;
    border: 1px solid #3a3520;
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: #e8c840;
}
.validation-warn .suggestion {
    color: #c4956a;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}
.validation-fill {
    font-size: 0.75rem;
    color: #9a8b8e;
    margin-top: 0.3rem;
}

/* ─────────────────────────────────────────────
   BOTTLE_EDIT — Autocomplétion domaine
   ───────────────────────────────────────────── */
.vin-suggestions {
    display: none;
    position: absolute;
    left: 0; right: 0;
    background: #332a30;
    border: 1px solid #4a3a40;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 20;
}
.vin-suggestions.active { display: block; }
.vin-suggestion {
    padding: 0.7rem;
    cursor: pointer;
    border-bottom: 1px solid #2a2226;
}
.vin-suggestion:last-child { border-bottom: none; }
.vin-suggestion:hover { background: #4a3a40; }
.vin-suggestion .vin-domaine { font-weight: 600; color: #e8ddd5; font-size: 0.9rem; }
.vin-suggestion .vin-cuvee  { color: #c4956a; font-size: 0.85rem; }
.vin-suggestion .vin-details { color: #9a8b8e; font-size: 0.75rem; margin-top: 0.15rem; }

/* ─────────────────────────────────────────────
   CONFIRM / BOTTLE_EDIT — Candidats reconnus
   ───────────────────────────────────────────── */
.candidat-item {
    background: #332a30;
    border: 1px solid #4a3a40;
    border-radius: 8px;
    padding: 0.7rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}
.candidat-item:hover { border-color: #6abf5b; }
.candidat-item.selected { border-color: #6abf5b; background: #1e2e1e; }
.candidat-nom { font-weight: 600; font-size: 0.9rem; color: #e8ddd5; }
.candidat-details { font-size: 0.8rem; color: #9a8b8e; margin-top: 0.15rem; }
.candidat-prix {
    position: absolute;
    top: 0.7rem; right: 0.7rem;
    font-weight: 700;
    color: #c4956a;
    font-size: 0.95rem;
}

/* ─────────────────────────────────────────────
   SCAN — Zones de photo
   ───────────────────────────────────────────── */
.scan-zone {
    background: #332a30;
    border: 2px dashed #4a3a40;
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.scan-zone:hover { border-color: #c4956a; }
.scan-zone.done {
    border-style: solid;
    border-color: #6abf5b;
    background: #1e2e1e;
}
.scan-icon { font-size: 2rem; margin-bottom: 0.3rem; }
.scan-label { font-weight: 600; font-size: 0.95rem; }
.scan-hint { font-size: 0.75rem; color: #9a8b8e; margin-top: 0.2rem; }
.scan-status { font-size: 0.8rem; margin-top: 0.4rem; color: #6abf5b; }

/* ─────────────────────────────────────────────
   HISTORIQUE — Cartes dégustations
   ───────────────────────────────────────────── */
.historique-card { cursor: default; }
.score-display {
    display: flex;
    gap: 0.15rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
}
.star-small { font-size: 1rem; color: #4a3a40; }
.star-small.active { color: #c4956a; }

/* Axes mini (lecture seule) */
.axes-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: 0.6rem;
    padding: 0.5rem;
    background: #1e171c;
    border-radius: 6px;
}
.axis-mini { display: flex; align-items: center; gap: 0.3rem; }
.axis-mini-label {
    font-size: 0.65rem;
    color: #7a6a6e;
    width: 50px;
    text-align: right;
    text-transform: uppercase;
}
.axis-mini-dots { display: flex; gap: 3px; }
.mini-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #3a2a30;
    display: inline-block;
}
.mini-dot.filled { background: #c4956a; }

/* ─────────────────────────────────────────────
   NOTE_EDIT — Interface de notation
   ───────────────────────────────────────────── */
.close-btn {
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid #4a3a40;
    border-radius: 6px;
    color: #9a8b8e;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-btn:hover { color: #e8ddd5; border-color: #c4956a; }

/* Étoiles */
.stars-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem 0;
}
.star {
    font-size: 2.2rem;
    background: none;
    border: none;
    color: #4a3a40;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    padding: 0;
    line-height: 1;
}
.star:hover { transform: scale(1.15); }
.star.active { color: #c4956a; }

/* Axes pastilles */
.axis-hint {
    font-size: 0.75rem;
    color: #6a5a5e;
    text-align: center;
    margin-bottom: 1rem;
}
.axis-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}
.axis-label-left, .axis-label-right {
    font-size: 0.7rem;
    color: #7a6a6e;
    width: 70px;
    flex-shrink: 0;
}
.axis-label-left  { text-align: right; }
.axis-label-right { text-align: left; }
.axis-dots {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}
.dot-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid #4a3a40;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}
.dot-btn:hover { border-color: #c4956a; background: rgba(196, 149, 106, 0.1); }
.dot-btn.active { background: #c4956a; border-color: #c4956a; }
.axis-name {
    text-align: center;
    font-size: 0.7rem;
    color: #6a5a5e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────
   LISTE D'ACHAT
   ───────────────────────────────────────────── */
.liste-item.achete { opacity: 0.6; }