/*
 * Notre Histoire — Feuille de style dédiée
 *
 * @file        assets/css/notre-histoire.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 réutilisées : .ll-guide-*)
 * @used-by     inc/setup.php — enqueue conditionnel sur is_page_template('page-notre-histoire.php')
 *
 * Ce fichier complète (sans surcharger) guide-tailles.css.
 * Les classes .ll-guide-* (layout, sidebar, sections, pills, tip, gift-grid, cta)
 * sont réutilisées telles quelles depuis guide-tailles.css.
 * Seuls les composants propres à la page Histoire sont définis ici.
 *
 * Organisation :
 *   1. Hero — variante Notre Histoire
 *   2. Photo placeholders (portrait, wide, duo)
 *   3. Bloc texte narratif
 *   4. Grille de valeurs
 *   5. Étapes de création (réutilise .ll-guide-step)
 *   6. Comment / How block
 *   7. Lien inline
 *   8. Responsive — tablet & mobile
 *
 * Règle absolue : aucune valeur en dur — uniquement var(--*) de main.css
 */

/* ====================================================================
   1. HERO — VARIANTE NOTRE HISTOIRE
   Étend .ll-page-header sans modifier le composant global
   ==================================================================== */

.ll-page-header--notre-histoire {
    background: linear-gradient(
        160deg,
        var(--rose-50) 0%,
        var(--warm-white) 60%
    );
    text-align: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Décoration floue derrière le titre — ton doux et féminin */
.ll-page-header--notre-histoire::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--rose-100) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
}

.ll-page-header--notre-histoire .ll-container {
    position: relative;
    z-index: 1;
}

.ll-page-header--notre-histoire .ll-eyebrow {
    color: var(--rose-600);
}

.ll-page-header--notre-histoire .ll-page-header__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-dark);
    margin: var(--space-xs) 0 var(--space-sm);
}

.ll-page-header--notre-histoire .ll-page-header__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto var(--space-md);
    font-style: italic;
    line-height: 1.6;
}

/* ====================================================================
   2. PHOTO PLACEHOLDERS
   Zones destinées à recevoir des <img> — conserver les dimensions
   lors du remplacement de la photo.
   ==================================================================== */

.ll-histoire-photo {
    margin: var(--space-xl) 0;
}

/* ── Figure caption ── */
.ll-histoire-photo__caption {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-xs);
    font-style: italic;
}

/* ── Placeholder générique ── */
.ll-histoire-photo__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--rose-50);
    border: 2px dashed var(--rose-200);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    color: var(--rose-400);
    text-align: center;
    transition: border-color var(--transition-base), background var(--transition-base);
}

.ll-histoire-photo__placeholder:hover {
    border-color: var(--rose-400);
    background: var(--rose-100);
}

.ll-histoire-photo__icon {
    opacity: .6;
}

.ll-histoire-photo__label {
    font-weight: 600;
    font-size: 15px;
    color: var(--rose-600);
    margin: 0;
}

.ll-histoire-photo__sublabel {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    max-width: 380px;
}

/* ── Variante portrait (colonne) ── */
.ll-histoire-photo--portrait .ll-histoire-photo__placeholder {
    min-height: 380px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Variante portrait alignée à droite (float) ── */
.ll-histoire-photo--portrait.ll-histoire-photo--right {
    float: right;
    margin-left: var(--space-xl);
    margin-bottom: var(--space-lg);
    max-width: 340px;
}

/* ── Variante large (pleine largeur) ── */
.ll-histoire-photo--wide .ll-histoire-photo__placeholder {
    min-height: 320px;
    width: 100%;
}

/* ── Variante duo (deux carrés côte à côte) ── */
.ll-histoire-photo--duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.ll-histoire-photo__half .ll-histoire-photo__placeholder {
    min-height: 240px;
    height: 100%;
    width: 100%;
}

/* ── Image réelle (remplace le placeholder) ── */
.ll-histoire-photo img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    object-fit: cover;
}

.ll-histoire-photo--portrait img {
    max-width: 380px;
    margin: 0 auto;
}

.ll-histoire-photo--portrait.ll-histoire-photo--right img {
    max-width: 100%;
}

/* ====================================================================
   3. BLOC TEXTE NARRATIF
   ==================================================================== */

.ll-histoire-text-block {
    line-height: 1.8;
    color: var(--text-body);
    overflow: hidden; /* contient le float des photos portrait--right */
}

.ll-histoire-text-block p {
    margin: 0 0 var(--space-md);
}

.ll-histoire-text-block p:last-child {
    margin-bottom: 0;
}

.ll-histoire-text-block strong {
    color: var(--text-dark);
    font-weight: 600;
}

.ll-histoire-text-block em {
    color: var(--rose-600);
    font-style: italic;
}

/* ====================================================================
   4. GRILLE DE VALEURS
   ==================================================================== */

.ll-histoire-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.ll-histoire-value-item {
    background: var(--color-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.ll-histoire-value-item:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.ll-histoire-value-item__icon {
    display: block;
    font-size: 32px;
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.ll-histoire-value-item__title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 var(--space-xs);
}

.ll-histoire-value-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ====================================================================
   5. ÉTAPES DE CRÉATION
   Réutilise .ll-guide-step — pas de redéfinition sauf le wrapper ol
   ==================================================================== */

.ll-histoire-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0 0;
}

/* ====================================================================
   6. BLOC "COMMENT" — How block
   ==================================================================== */

.ll-histoire-how {
    background: var(--color-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.ll-histoire-how__title {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--text-dark);
    margin: 0 0 var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

/* ====================================================================
   7. LIEN INLINE
   ==================================================================== */

.ll-histoire-inline-link {
    color: var(--rose-600);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color var(--transition-base);
}

.ll-histoire-inline-link:hover {
    color: var(--rose-700);
}

/* ====================================================================
   8. RESPONSIVE — TABLET & MOBILE
   Breakpoints alignés avec guide-tailles.css
   ==================================================================== */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {

    /* Layout sidebar → colonne unique (hérite de .ll-guide-layout) */
    /* Repris automatiquement depuis guide-tailles.css */

    /* Hero */
    .ll-page-header--notre-histoire {
        padding: var(--space-2xl) 0 var(--space-xl);
    }

    /* Float portrait annulé */
    .ll-histoire-photo--portrait.ll-histoire-photo--right {
        float: none;
        margin-left: 0;
        max-width: 100%;
    }

    .ll-histoire-photo--portrait .ll-histoire-photo__placeholder {
        max-width: 100%;
    }

    /* Grille valeurs : 2 colonnes maintenues */
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {

    /* Hero sous-titre */
    .ll-page-header--notre-histoire .ll-page-header__subtitle {
        font-size: 15px;
    }

    /* Photos placeholders : hauteurs réduites */
    .ll-histoire-photo--wide .ll-histoire-photo__placeholder {
        min-height: 200px;
    }

    .ll-histoire-photo--portrait .ll-histoire-photo__placeholder {
        min-height: 220px;
    }

    .ll-histoire-photo__half .ll-histoire-photo__placeholder {
        min-height: 160px;
    }

    /* Grille valeurs : 1 colonne */
    .ll-histoire-values-grid {
        grid-template-columns: 1fr;
    }

    /* How block : padding réduit */
    .ll-histoire-how {
        padding: var(--space-lg) var(--space-md);
    }

    .ll-histoire-how__title {
        font-size: 17px;
    }

    /* Duo : 1 colonne */
    .ll-histoire-photo--duo {
        grid-template-columns: 1fr;
    }

    /* Taille des sublabels masquée pour gagner de la place */
    .ll-histoire-photo__sublabel {
        display: none;
    }
}

/* ── Très petit mobile (≤ 480px) ── */
@media (max-width: 480px) {

    /* Section numéro masqué (cohérence avec guide-tailles.css) */
    .ll-guide-section__number {
        display: none;
    }

    /* CTA : boutons pleine largeur (hérite de guide-tailles.css) */
}
