/* =============================================================
   LA BÊLLE POMME — charte Stitch (header/footer + helpers globaux)
   Les couleurs/typo des sections viennent d'Elementor ; ce fichier
   habille l'en-tête, le pied de page, et fournit les formes
   organiques + l'effet « papier » propres à Stitch.
   ============================================================= */
:root {
    --primary: #172c1d;
    --primary-container: #2d4232;
    --on-primary: #ffffff;
    --on-primary-container: #96ae99;
    --secondary: #964828;
    --on-secondary: #ffffff;
    --secondary-fixed: #ffdbce;
    --secondary-fixed-dim: #ffb59a;
    --surface: #fbf9f4;
    --surface-container-low: #f5f3ee;
    --surface-variant: #e4e2dd;
    --on-surface: #1b1c19;
    --on-surface-variant: #434843;
    --outline-variant: #c3c8c1;
    --tertiary-fixed: #eee1cb;
    --font-display: 'Domine', Georgia, serif;
    --font-body: 'Libre Franklin', system-ui, -apple-system, sans-serif;
    --container-max: 1120px;
}

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; vertical-align: middle; }

/* Typo globale + texture papier sur le fond crème (comme la v1 validée) */
body {
    margin: 0;
    font-family: var(--font-body); color: var(--on-surface);
    background-color: var(--surface);
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
}
h1, h2, h3, h4 { font-family: var(--font-display); }

/* --- Grain papier (léger voile global, comme le Stitch) ----------- */
.lbp-grain {
    position: fixed; inset: 0; z-index: 100; pointer-events: none;
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
    opacity: 0.12;
}

/* --- Texture papier par section (effet « overlay » de la v1) -------
   Appliquée à chaque section via la classe CSS « lbp-paper ». Le mélange
   mix-blend-mode: overlay fait réagir la texture avec la couleur de fond
   (crème ou vert) — c'est ce qui rendait joli dans le 1er thème. */
.lbp-paper { position: relative; isolation: isolate; }
.lbp-paper::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
    background-repeat: repeat;
    opacity: 0.85;   /* pose simple, comme la v1 — pas de mix-blend-mode */
}
.lbp-paper > * { position: relative; z-index: 1; }

/* --- HEADER (AppBar fixe) ----------------------------------- */
.lbp-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--primary-container);
    border-bottom: 1px solid rgba(195,200,193,0.3);
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.lbp-header__inner {
    max-width: var(--container-max); margin: 0 auto; padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.lbp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lbp-brand__leaf { color: var(--secondary-fixed-dim); font-size: 24px; line-height: 1; }
.lbp-brand__name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--on-primary); }
.lbp-nav { display: flex; align-items: center; gap: 32px; }
.lbp-nav__menu { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.lbp-nav__menu a {
    color: var(--on-primary); opacity: 0.9; text-decoration: none;
    font-family: var(--font-body); font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em; transition: color .2s, opacity .2s;
}
.lbp-nav__menu a:hover { opacity: 1; color: var(--secondary-fixed-dim); }
.lbp-btn--cta {
    background: var(--secondary); color: var(--on-secondary); text-decoration: none;
    padding: 9px 22px; border-radius: 999px; font-size: 13px; font-weight: 600;
    letter-spacing: 0.04em; transition: opacity .2s; white-space: nowrap;
}
.lbp-btn--cta:hover { opacity: 0.9; }

/* L'en-tête est fixe : pas de bandeau sous le menu. Le hero passe DERRIÈRE
   l'en-tête (comme le Stitch) et gère lui-même son espacement haut. Les pages
   sans hero pleine largeur ajoutent leur propre padding-top dans leur 1ʳᵉ section. */
.lbp-main { padding-top: 0; }

@media (max-width: 880px) {
    .lbp-nav__menu { display: none; }
}

/* --- FOOTER ------------------------------------------------- */
.lbp-footer {
    background: var(--primary-container); color: var(--on-primary);
    border-top: 1px solid var(--outline-variant);
    padding: 40px 20px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.lbp-footer__brand { font-family: var(--font-display); font-size: 24px; color: var(--on-primary); margin: 0; }
.lbp-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 12px 0; }
.lbp-footer__links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 16px; transition: color .2s; }
.lbp-footer__links a:hover { color: var(--secondary-fixed); }
.lbp-footer__copy { color: rgba(255,255,255,0.6); font-size: 13px; margin: 8px 0 0; letter-spacing: 0.04em; }

/* =============================================================
   HELPERS appliqués à des éléments Elementor (via « Classes CSS »)
   ============================================================= */

/* Eyebrow : petit intertitre terracotta avec trait (Stitch) */
.lbp-eyebrow .elementor-heading-title,
.lbp-eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; font-size: 13px !important; color: var(--secondary) !important; }
.lbp-eyebrow .elementor-heading-title::before {
    content: ''; display: inline-block; width: 48px; height: 1px;
    background: var(--secondary); vertical-align: middle; margin-right: 12px;
}

/* Forme organique « asymétrique » des cartes pépinière (Stitch) */
.lbp-asym img { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }

/* Grande forme organique de la section « Venez nous voir » */
.lbp-organic img { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }

/* Carte (valeurs / pépinière) : léger contour + ombre douce */
.lbp-card { border: 1px solid rgba(195,200,193,0.4); border-radius: 12px; box-shadow: 0 10px 40px -10px rgba(78,70,54,0.10); background: var(--surface-container-low); }

/* Puce « chip » sous les cartes pépinière */
.lbp-chip {
    display: inline-block; padding: 5px 14px; border-radius: 999px;
    background: var(--surface-variant); color: var(--on-surface-variant);
    font-size: 13px; font-weight: 600;
}

/* Icône de carte « valeur » (Material Symbols, terracotta) */
.lbp-vicon { font-family: 'Material Symbols Outlined'; font-size: 34px; color: var(--secondary); line-height: 1; }

/* Liste des points forts (section brebis) */
.lbp-feats { list-style: none; margin: 8px 0 0; padding: 0; }
.lbp-feats li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.lbp-feats li::before {
    content: 'check_circle'; font-family: 'Material Symbols Outlined';
    position: absolute; left: 0; top: 1px; color: var(--secondary-fixed-dim); font-size: 20px;
}

/* =============================================================
   COMPOSANTS DES AUTRES PAGES (article, brebis, catalogue, contact)
   ============================================================= */

/* Sous-titres (h4) dans les blocs de texte d'article */
.elementor-widget-text-editor h4 { font-family: var(--font-display); color: var(--primary); font-size: 19px; margin: 18px 0 6px; }

/* Carte CTA (« Prêt à planter », « Réserver un colis »…) */
.lbp-cta { background: var(--surface); border: 1px solid var(--outline-variant); border-radius: 24px; box-shadow: 0 10px 40px -10px rgba(78,70,54,0.10); text-align: center; }

/* Tables catalogue (Variété | Description | Disponible sur) */
.lbp-cat table { width: 100%; border-collapse: collapse; background: #ffffff; border: 1px solid var(--outline-variant); border-radius: 16px; overflow: hidden; }
.lbp-cat thead th { text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-surface-variant); background: var(--surface-container-high); padding: 14px 18px; border-bottom: 1px solid var(--outline); }
.lbp-cat td { padding: 14px 18px; border-bottom: 1px solid var(--outline-variant); vertical-align: top; font-size: 15px; color: var(--on-surface-variant); }
.lbp-cat td:first-child { font-family: var(--font-display); color: var(--primary); min-width: 12ch; }
.lbp-cat tbody tr:last-child td { border-bottom: 0; }
.lbp-cat td em { color: var(--on-surface); font-style: italic; }

/* Formulaire de contact (visuel — brancher un plugin de formulaire pour l'envoi) */
.lbp-form { display: flex; flex-direction: column; gap: 18px; background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-radius: 24px; padding: 32px; height: 100%; }
.lbp-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--on-surface-variant); }
.lbp-form input, .lbp-form textarea { width: 100%; background: var(--surface); border: 1px solid var(--outline-variant); padding: 14px 20px; font-family: var(--font-body); font-size: 15px; color: var(--on-surface); }
.lbp-form input { border-radius: 999px; }
.lbp-form textarea { border-radius: 20px; resize: vertical; }
.lbp-form button { align-self: flex-start; background: var(--secondary); color: #fff; border: 0; border-radius: 999px; padding: 14px 32px; font-family: var(--font-display); font-weight: 600; cursor: pointer; }

/* Carte info contact (vert foncé) */
.lbp-info { background: var(--primary-container); color: #fff; border-radius: 24px; padding: 32px; height: 100%; }
.lbp-info h3 { color: var(--primary-fixed-dim); font-size: 18px; margin: 22px 0 8px; font-family: var(--font-display); }
.lbp-info h3:first-child { margin-top: 0; }
.lbp-info a { color: var(--secondary-fixed); text-decoration: none; }
.lbp-info p { color: rgba(255,255,255,0.85); margin: 0; line-height: 1.7; }

/* Marchés & foires (chips) */
.lbp-markets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.lbp-chip-list { background: var(--surface); border: 1px solid var(--outline-variant); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
