/*
 * Entretien des bijoux — Feuille de style dédiée
 *
 * @file        assets/css/entretien-bijoux.css
 * @package     LovelyLili
 * @version     1.0.0
 * @guide-step  Étape 8 — Pages custom (hors WooCommerce)
 * @depends     assets/css/main.css (tokens CSS — chargé avant)
 *              assets/css/guide-tailles.css (classes partagées réutilisées)
 * @used-by     inc/setup.php — enqueue conditionnel sur
 *              is_page_template('page-entretien-bijoux.php')
 *
 * Organisation :
 *   1. Hero — surcharge couleur spécifique à cette page
 *   2. Intro éditoriale
 *   3. Badges de difficulté / résistance
 *   4. Alerte matière fragile
 *   5. Verdict À faire / À éviter
 *   6. Tableau récapitulatif
 *   7. Responsive — tablet & mobile
 *
 * IMPORTANT : Ce fichier ne redéfinit PAS les classes partagées de
 * guide-tailles.css (.ll-guide-layout, .ll-guide-section, .ll-guide-tip,
 * .ll-guide-step, .ll-guide-table, .ll-guide-cta, etc.) — il les étend.
 * Ne charger les deux fichiers ensemble QUE sur cette page template.
 */

/* ====================================================================
   1. HERO — Couleur d'accent spécifique à la page entretien
   ==================================================================== */

/*
 * Réutilise la structure de .ll-page-header définie dans main.css ou
 * guide-tailles.css. On surcharge uniquement l'arrière-plan dégradé
 * pour différencier visuellement les deux guides.
 */
.ll-page-header--entretien {
    background: linear-gradient(
        135deg,
        var(--rose-50)  0%,
        var(--gold-50)  40%,
        var(--linen)    100%
    );
}

/* ====================================================================
   2. INTRO ÉDITORIALE
   ==================================================================== */

.ll-entretien-intro {
    background: var(--color-surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--rose-300);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.ll-entretien-intro p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-body);
    margin-bottom: var(--space-sm);
}

.ll-entretien-intro p:last-child {
    margin-bottom: 0;
}

/* ====================================================================
   3. BADGES — Difficulté d'entretien / Fréquence / Résistance eau
   ==================================================================== */

.ll-entretien-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
}

.ll-entretien-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    line-height: 1.4;
    white-space: nowrap;
}

/* Variante : Facile / Bonne résistance */
.ll-entretien-badge--green {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

/* Variante : Fréquence / informatif */
.ll-entretien-badge--blue {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* Variante : Modéré / attention */
.ll-entretien-badge--orange {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

/* Variante : Danger / incompatible eau */
.ll-entretien-badge--red {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* Variante : Accent doré */
.ll-entretien-badge--gold {
    background: var(--gold-50);
    color: #78350f;
    border-color: var(--gold-100);
}

/* ====================================================================
   4. ALERTE MATIÈRE FRAGILE
   ==================================================================== */

.ll-entretien-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #f97316;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.ll-entretien-alert__icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ll-entretien-alert strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #9a3412;
    margin-bottom: 6px;
}

.ll-entretien-alert p {
    font-size: 14px;
    line-height: 1.6;
    color: #7c2d12;
    margin: 0;
}

/* ====================================================================
   5. VERDICT — À faire / À éviter
   ==================================================================== */

.ll-entretien-verdict {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.ll-entretien-verdict__col {
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid transparent;
}

/* Colonne "À faire" — tonalité verte */
.ll-entretien-verdict__col--do {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* Colonne "À éviter" — tonalité rose/rouge */
.ll-entretien-verdict__col--dont {
    background: #fef2f2;
    border-color: #fecaca;
}

.ll-entretien-verdict__title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ll-entretien-verdict__col--do .ll-entretien-verdict__title {
    color: #166534;
}

.ll-entretien-verdict__col--dont .ll-entretien-verdict__title {
    color: #991b1b;
}

.ll-entretien-verdict__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ll-entretien-verdict__list li {
    font-size: 14px;
    line-height: 1.55;
    padding-left: 20px;
    position: relative;
}

/* Puce checkmark "À faire" */
.ll-entretien-verdict__col--do .ll-entretien-verdict__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
    top: 1px;
}

/* Puce croix "À éviter" */
.ll-entretien-verdict__col--dont .ll-entretien-verdict__list li::before {
    content: '✕';
    position: absolute;
    left: 0;
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
    top: 1px;
}

/* ====================================================================
   6. TABLEAU RÉCAPITULATIF — Toutes matières
   ==================================================================== */

.ll-entretien-recap__title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: var(--space-xl) 0 var(--space-md);
}

/* Cellules de compatibilité colorées */
.ll-entretien-cell--yes {
    color: #166534;
    font-weight: 600;
    font-size: 13px;
}

.ll-entretien-cell--warn {
    color: #92400e;
    font-weight: 600;
    font-size: 13px;
}

.ll-entretien-cell--no {
    color: #991b1b;
    font-weight: 600;
    font-size: 13px;
}

/* Colonne en-tête de ligne (matière) */
.ll-entretien-table-recap th[scope="row"] {
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    background: var(--color-surface);
}

/* ====================================================================
   7. RESPONSIVE — Tablet (≤ 1024px) · Mobile (≤ 768px)
   ==================================================================== */

/* ── Tablet ── */
@media (max-width: 1024px) {

    /* Verdict : reste en deux colonnes mais réduit */
    .ll-entretien-verdict {
        gap: var(--space-sm);
    }

    /* Badges : peuvent wraper */
    .ll-entretien-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {

    /* Intro */
    .ll-entretien-intro {
        padding: var(--space-md);
        margin-bottom: var(--space-xl);
    }

    .ll-entretien-intro p {
        font-size: 14px;
    }

    /* Badges : scroll horizontal si nécessaire */
    .ll-entretien-badge-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-left:  -24px;
        margin-right: -24px;
        padding-left:  24px;
        padding-right: 24px;
        width: calc(100% + 48px);
        box-sizing: border-box;
        padding-bottom: 4px;
        margin-bottom: var(--space-lg);
    }

    .ll-entretien-badge-row::-webkit-scrollbar { display: none; }

    /* Verdict : empilé en 1 colonne */
    .ll-entretien-verdict {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .ll-entretien-verdict__col {
        padding: var(--space-md);
    }

    .ll-entretien-verdict__list li {
        font-size: 13px;
    }

    /* Alerte */
    .ll-entretien-alert {
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .ll-entretien-alert strong {
        font-size: 13px;
    }

    .ll-entretien-alert p {
        font-size: 13px;
    }

    /* Tableau récap : scroll horizontal */
    .ll-entretien-table-recap {
        font-size: 12px;
        min-width: 560px;
    }

    .ll-entretien-recap__title {
        font-size: 17px;
        margin: var(--space-lg) 0 var(--space-sm);
    }

    /* Cellules recap */
    .ll-entretien-cell--yes,
    .ll-entretien-cell--warn,
    .ll-entretien-cell--no {
        font-size: 11px;
        white-space: nowrap;
    }
}

/* ── Très petit mobile (≤ 480px) ── */
@media (max-width: 480px) {

    .ll-entretien-verdict__title {
        font-size: 14px;
    }

    .ll-entretien-verdict__col {
        padding: var(--space-sm) var(--space-md);
    }
}