/* =====================================================================
   L'AMBRE BLANC — PAGES PILIERS SEO
   Palette calée sur la home actuelle (crème/brun/ambre, ancrée terroir)
   plutôt que sur le bleu marine des étiquettes — jugé "prétentieux" par
   rapport au ton chaleureux déjà établi sur le site. Numérotation
   éditoriale et traits fins conservés, recolorés en brun/ambre.
   Couleurs mesurées directement sur la home : fond #F4F1E5, section
   #FAF8F0, texte #2E4277, accent #CB6639.

   IMPORTANT : le thème OceanWP fixe la taille de la racine <html> à 10px
   (au lieu des 16px standards), ce qui casse tout dimensionnement en
   "rem" (1rem devient 10px au lieu de 16px). Tout ce fichier est donc
   volontairement écrit en "px" plutôt qu'en "rem" pour rester prévisible
   quel que soit ce réglage du thème.
   ===================================================================== */

:root {
    --sans: "Spectral", "Spectral", Georgia, serif;
}

.lab-pilier {
    /* palette locale, chaleureuse — remplace le bleu marine de fiche-galerie.css */
    --bg:          #F4F1E5;
    --bg-2:        #FAF8F0;
    --texte:       #2E4277;
    --texte-mute:  rgba(46, 66, 119,.6);
    --accent:      #CB6639;
    --accent-2:    #CB6639;
    --hairline:    rgba(203, 102, 57,.3);
    --lab-lavande: #6E7591; /* brun chaud, remplace la lavande bleu-gris pour rester dans la famille terroir */
    --lab-lavande-soft: rgba(110, 117, 145,.12);
    --lab-carte-bg: rgba(203, 102, 57,.05);
    /* bleu navy des étiquettes Stierkopf (planches anatomiques) — teinte
       relevée directement sur le nom de cuvée "Ìkarus" : #2E4277/#2E4277.
       Réservé aux mêmes usages que sur l'étiquette : le grand titre, les
       éléments décoratifs fins, jamais le texte courant ni les liens. */
    --lab-navy:      #2E4277;
    --lab-navy-soft: rgba(46, 66, 119,.08);

    background: var(--bg);
    color: var(--texte);
    font-family: var(--serif);
    font-size: 18px; /* OceanWP force 14px (et une racine à 10px) : taille de lecture imposée ici, en px */
    line-height: 1.65;
}

/* fil d'Ariane ------------------------------------------------------------ */
.lab-fil {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px clamp(22px, 5vw, 48px) 0;
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--texte-mute);
}
.lab-fil a { color: var(--texte-mute); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.lab-fil a:hover { color: var(--accent); border-color: var(--accent); }

/* en-tête de page pilier, façon cartouche de planche ---------------------- */
.lab-pilier-hero {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 72px clamp(22px, 5vw, 48px) 64px;
    text-align: center;
}
/* petits traits d'angle façon planche scientifique, en lavande — repris des
   4 amorces de cadre visibles sur les étiquettes */
.lab-pilier-hero::before,
.lab-pilier-hero::after {
    content: "";
    position: absolute;
    top: 18px;
    width: 1px;
    height: 22px;
    background: var(--lab-lavande);
    opacity: .55;
}
.lab-pilier-hero::before { left: clamp(22px, 5vw, 48px); }
.lab-pilier-hero::after  { right: clamp(22px, 5vw, 48px); }

.lab-planche-num {
    display: inline-block;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .3em;
    font-size: 11px;
    color: var(--lab-lavande);
    border-top: 1px solid var(--lab-lavande);
    border-bottom: 1px solid var(--lab-lavande);
    padding: 8px 22px;
    margin-bottom: 29px;
    opacity: .85;
}
.lab-pilier-hero h1 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(38px, 6vw, 61px);
    line-height: 1.1;
    margin: 0 0 19px;
    /* navy plutôt que brun : même traitement que le nom de cuvée sur les
       étiquettes Stierkopf ("Ìkarus", "Arianē"...) — le titre devient le
       grand mot-signe de la page, comme sur l'étiquette. */
    color: var(--lab-navy);
}
.lab-pilier-chapo {
    max-width: 58ch;
    margin: 0 auto;
    font-size: clamp(18px, 2.2vw, 21px);
    font-style: italic;
    color: var(--texte-mute);
}

/* médaillon circulaire (portrait terroir / geste / amphore) — double
   cerclage (trait fin + halo lavande) comme sur les étiquettes -------------- */
.lab-medaillon-wrap {
    position: relative;
    margin: 0 auto 40px;
    text-align: center;
}
/* grand arc translucide navy derrière le médaillon, écho des deux "C"
   qui se chevauchent derrière le portrait sur les étiquettes Stierkopf */
.lab-medaillon-wrap::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: min(72vw, 520px);
    aspect-ratio: 1/1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 28px solid var(--lab-navy-soft);
    z-index: 0;
    pointer-events: none;
}
.lab-medaillon {
    width: min(64vw, 460px);
    aspect-ratio: 1/1;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow:
        0 0 0 1px var(--hairline),
        0 0 0 10px var(--bg),
        0 0 0 12px var(--lab-navy),
        0 30px 60px rgba(0,0,0,.35);
}
.lab-medaillon img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* surimpression géométrique fine (lignes de plan technique), comme sur les
   étiquettes — générique sur tous les médaillons, sauf variante ci-dessous */
.lab-medaillon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='94' fill='none' stroke='%23b87a28' stroke-width='0.6' opacity='0.4'/%3E%3Cline x1='100' y1='6' x2='100' y2='194' stroke='%23b87a28' stroke-width='0.4' opacity='0.28'/%3E%3Cline x1='6' y1='100' x2='194' y2='100' stroke='%23b87a28' stroke-width='0.4' opacity='0.28'/%3E%3Cline x1='32' y1='32' x2='168' y2='168' stroke='%23b87a28' stroke-width='0.3' opacity='0.2'/%3E%3Cline x1='168' y1='32' x2='32' y2='168' stroke='%23b87a28' stroke-width='0.3' opacity='0.2'/%3E%3C/svg%3E");
    background-size: cover;
}

/* variante page kvevris : amphore esquissée en trait ambre + ligne de sol
   pointillée, comme la photo "amphore enterrée" de la home ---------------- */
.lab-medaillon-overlay-amphore .lab-medaillon::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cline x1='24' y1='60' x2='176' y2='60' stroke='%23c8932f' stroke-width='1' stroke-dasharray='4 4' opacity='0.8'/%3E%3Cellipse cx='100' cy='58' rx='20' ry='7' fill='none' stroke='%23c8932f' stroke-width='1.2' opacity='0.85'/%3E%3Cpath d='M80,60 C80,82 62,96 60,122 C58,150 76,174 100,177 C124,174 142,150 140,122 C138,96 120,82 120,60' fill='none' stroke='%23c8932f' stroke-width='1.2' opacity='0.85'/%3E%3Cline x1='100' y1='177' x2='100' y2='188' stroke='%23c8932f' stroke-width='1' opacity='0.6'/%3E%3C/svg%3E");
    background-size: 66% 66%;
    background-position: center;
    background-repeat: no-repeat;
}

/* petit repère "fig. n" à côté du médaillon, comme la numérotation des
   étiquettes (PL. / fig. / lot) --------------------------------------------- */
.lab-medaillon-fig {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-family: var(--sans);
    font-style: italic;
    font-size: 13px;
    color: var(--accent);
    opacity: .75;
}

.lab-medaillon-legende {
    display: block;
    margin-top: 22px;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: 11px;
    /* navy plutôt que brun : même rôle que la ligne de coordonnées GPS sous
       le nom de cuvée sur les étiquettes ("Stierkopf N48°32'25,78"...") */
    color: var(--lab-navy);
    opacity: .85;
}

/* duo médaillon + texte, en alternance gauche/droite — repris du philo-grid
   / kvevris-grid / lieu-grid de la home, pour casser le déroulé purement
   vertical des pages piliers (audit du 17/09/2026). À utiliser à la place
   d'un <?php lab_pilier_medaillon(); ?> isolé + une <section> qui suit :
   <div class="lab-duo"> ... .lab-duo-visuel (médaillon) ... .lab-duo-texte ... </div>
   Ajouter la classe "lab-duo--inverse" un duo sur deux pour alterner. */
.lab-corps-pilier-large { max-width: 1080px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 48px); }
.lab-duo {
    display: grid;
    grid-template-columns: minmax(260px, 460px) 1fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
    margin: 80px 0;
}
.lab-duo--inverse { grid-template-columns: 1fr minmax(260px, 460px); }
.lab-duo--inverse .lab-duo-visuel { order: 2; }
.lab-duo--inverse .lab-duo-texte  { order: 1; }
.lab-duo-visuel .lab-medaillon-wrap { margin: 0; }
.lab-duo-visuel .lab-medaillon { width: 100%; max-width: none; }
.lab-duo-visuel .lab-medaillon-wrap::before { width: 116%; aspect-ratio: 1/1; }
.lab-duo-texte h2 { text-align: left; justify-content: flex-start; }
.lab-duo-texte p { text-align: left; }
@media (max-width: 860px) {
    .lab-duo { grid-template-columns: 1fr; margin: 56px 0; }
    .lab-duo--inverse .lab-duo-visuel,
    .lab-duo--inverse .lab-duo-texte { order: initial; }
    .lab-duo-visuel .lab-medaillon { width: min(74vw, 380px); margin: 0 auto; }
    .lab-duo-visuel .lab-medaillon-wrap { text-align: center; }
}

/* bande pleine largeur, sombre ou claire — reprend l'alternance de la home
   (hero noir → philosophie crème → vignes brun sombre → kvevris beige →
   boutique crème → lieu beige → pied de page noir), qui n'existait pas du
   tout sur les pages piliers (elles restaient toutes sur le même fond
   beige clair). À poser en frère de .lab-corps-pilier, jamais imbriquée
   dedans (elle doit sortir de la colonne centrée à 720px pour être
   vraiment pleine largeur) :
   <section class="lab-bande lab-bande--sombre"><div class="lab-corps-pilier">…</div></section>
   Sur --sombre, le navy prend la place de l'ambre pour les titres/accents
   (point 4 de l'audit du 17/09 : plus de bleu navy, pas seulement en filet). */
.lab-bande { padding: 64px 0; }
.lab-bande--claire { background: var(--bg-2); }
.lab-bande--sombre {
    background: linear-gradient(160deg, #1D2B52 0%, #1A2749 42%, #16213F 72%, #1D2B52 100%);
    color: rgba(244, 241, 229,.82);
}
.lab-bande--sombre .lab-pilier-section { border-top-color: rgba(255,255,255,.12); }
.lab-bande--sombre .lab-pilier-section h2 { color: #DB8459; }
.lab-bande--sombre .lab-pilier-section h2::before { background: #DB8459; }
.lab-bande--sombre .lab-pilier-section p { color: rgba(244, 241, 229,.72); }
.lab-bande--sombre .lab-pilier-section p a { color: #7c93d1; }
.lab-bande--sombre .lab-duo-texte h2 { color: #DB8459; }
.lab-bande--sombre .lab-duo-texte p { color: rgba(244, 241, 229,.72); }
.lab-bande--sombre .lab-pullquote blockquote { color: #7c93d1; }
.lab-bande--sombre .lab-pullquote blockquote::before,
.lab-bande--sombre .lab-pullquote blockquote::after { background: #7c93d1; }
.lab-bande--sombre .lab-pullquote figcaption { color: rgba(244, 241, 229,.55); }
.lab-bande--sombre .lab-medaillon-wrap::before { border-color: rgba(124,147,209,.18); }
.lab-bande--sombre .lab-medaillon { box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 0 10px #16213F, 0 0 0 12px #7c93d1, 0 30px 60px rgba(0,0,0,.5); }
.lab-bande--sombre .lab-medaillon-legende { color: #7c93d1; }
.lab-bande--sombre .lab-carte { background: rgba(124,147,209,.08); border-left-color: #7c93d1; }
.lab-bande--sombre .lab-carte h3 { color: rgba(244, 241, 229,.9); }
.lab-bande--sombre .lab-carte p { color: rgba(244, 241, 229,.62); }
.lab-bande--sombre .lab-chiffre { background: rgba(124,147,209,.08); border-top-color: #7c93d1; }
.lab-bande--sombre .lab-chiffre strong { color: #7c93d1; }
.lab-bande--sombre .lab-chiffre span { color: rgba(244, 241, 229,.6); }
.lab-bande--sombre .lab-faq dt { color: rgba(244, 241, 229,.9); }
.lab-bande--sombre .lab-faq dd { color: rgba(244, 241, 229,.62); }
.lab-bande--sombre .lab-maillage a { color: #7c93d1; border-color: #7c93d1; }
.lab-bande--sombre .lab-maillage a:hover { background: #7c93d1; color: #1D2B52; }

/* section numérotée façon légende de planche scientifique ----------------- */
.lab-corps-pilier { max-width: 720px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 48px) 80px; }

.lab-etape-liste {
    counter-reset: etape;
    border-top: 1px solid var(--hairline);
    padding-top: 40px;
    margin: 48px 0;
}
.lab-etape {
    counter-increment: etape;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 5px 19px;
    margin-bottom: 29px;
}
.lab-etape::before {
    content: counter(etape) ".";
    font-family: var(--sans);
    font-size: 18px;
    color: var(--accent);
    line-height: 1.4;
}
.lab-etape h3 { grid-column: 2; margin: 0; font-size: 18px; font-weight: 500; }
.lab-etape p  { grid-column: 2; margin: 5px 0 0; color: var(--texte-mute); font-size: 16px; }

/* cartes à icône, façon "🌿 Zéro intrant · Bio" de la home ------------------ */
.lab-cartes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 40px 0;
}
@media (min-width: 560px) {
    .lab-cartes { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
    .lab-cartes { grid-template-columns: repeat(3, 1fr); }
}
.lab-carte {
    background: var(--lab-carte-bg);
    border-left: 2px solid var(--accent);
    padding: 22px 24px;
}
.lab-carte-icone { display: block; font-size: 26px; margin-bottom: 10px; line-height: 1; }
.lab-carte h3 {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 14px;
    color: var(--texte);
    margin: 0 0 8px;
}
.lab-carte p { margin: 0; font-size: 15px; color: var(--texte-mute); line-height: 1.55; }

/* citation mise en avant, façon aphorisme de la home ----------------------- */
.lab-pullquote {
    margin: 56px 0;
    padding: 0 clamp(10px, 4vw, 40px);
    text-align: center;
}
.lab-pullquote blockquote {
    margin: 0;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.35;
    color: var(--accent);
    position: relative;
}
.lab-pullquote blockquote::before,
.lab-pullquote blockquote::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent);
    opacity: .6;
    margin: 20px auto;
}
.lab-pullquote figcaption {
    margin-top: 12px;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 11px;
    color: var(--texte-mute);
}

/* frise chronologique (histoire du Stierkopf, etc.) ------------------------ */
.lab-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 40px 0;
    border-left: 2px solid var(--hairline);
    padding-left: 28px;
}
.lab-timeline-etape {
    position: relative;
    padding-bottom: 32px;
}
.lab-timeline-etape:last-child { padding-bottom: 0; }
.lab-timeline-etape::before {
    content: "";
    position: absolute;
    left: -33px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--bg);
}
.lab-timeline-annee {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 4px;
}
.lab-timeline-titre {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 13px;
    color: var(--texte);
    margin: 0 0 8px;
}
.lab-timeline-etape p {
    margin: 0;
    font-size: 16px;
    color: var(--texte-mute);
}

/* section prose standard ---------------------------------------------------*/
.lab-pilier-section { border-top: 1px solid var(--hairline); padding-top: 52px; margin: 64px 0; }
.lab-pilier-section h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 17px;
    color: var(--lab-lavande);
    margin: 0 0 22px;
}
/* petit trait de renvoi façon légende de planche, avant chaque titre */
.lab-pilier-section h2::before {
    content: "";
    flex: 0 0 auto;
    width: 26px;
    height: 1px;
    background: var(--lab-lavande);
    opacity: .7;
}
.lab-pilier-section p { margin: 0 0 18px; font-size: 18px; text-align: justify; hyphens: auto; }
.lab-pilier-section p:last-child { margin-bottom: 0; }

/* bande de chiffres clés (8 000 ans, UNESCO…) ----------------------------- */
.lab-chiffres {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: center;
}
@media (min-width: 560px) {
    .lab-chiffres { grid-template-columns: repeat(4, 1fr); }
}
.lab-chiffre {
    background: var(--lab-carte-bg);
    border-top: 2px solid var(--accent);
    padding: 20px 12px;
}
.lab-chiffre strong {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 28px;
    color: var(--accent);
    line-height: 1.2;
}
.lab-chiffre span {
    display: block;
    margin-top: 6px;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 11px;
    color: var(--texte-mute);
}

/* liste d'articles du journal du domaine ----------------------------------- */
.lab-articles { display: flex; flex-direction: column; gap: 40px; }
.lab-article-card { border-bottom: 1px solid var(--hairline); padding-bottom: 40px; }
.lab-article-card:last-child { border-bottom: none; padding-bottom: 0; }
.lab-article-eyebrow {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    color: var(--accent);
    margin: 0 0 8px;
}
.lab-article-card h2 { margin: 0 0 10px; font-size: 26px; font-weight: 500; }
.lab-article-card h2 a { color: var(--texte); text-decoration: none; }
.lab-article-card h2 a:hover { color: var(--accent); }
.lab-article-excerpt { margin: 0 0 12px; font-size: 17px; color: var(--texte-mute); }
.lab-article-lire {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
}
.lab-article-lire:hover { text-decoration: underline; }

/* pagination (paginate_links) ---------------------------------------------- */
.lab-maillage .page-numbers {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    padding: 11px 16px;
}
.lab-maillage .page-numbers.current { background: var(--accent); color: var(--bg); }
.lab-maillage .page-numbers:hover { background: var(--accent); color: var(--bg); }

/* FAQ (support pour FAQPage schema) --------------------------------------- */
.lab-faq dt {
    font-weight: 500;
    font-size: 18px;
    margin: 0 0 6px;
    color: var(--texte);
}
.lab-faq dd {
    margin: 0 0 26px;
    color: var(--texte-mute);
    font-size: 16px;
}
.lab-faq dd:last-child { margin-bottom: 0; }

/* liens de maillage interne (vers les autres piliers / cuvées) ------------ */
.lab-maillage {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 19px;
    justify-content: center;
}
.lab-maillage a {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    padding: 11px 22px;
    transition: background .3s, color .3s;
}
.lab-maillage a:hover { background: var(--accent); color: var(--bg); }

@media (max-width: 600px) {
    .lab-etape { grid-template-columns: 32px 1fr; }
    .lab-pilier-section p { text-align: left; }
}

/* Masque le bandeau de titre par défaut d'OceanWP (header.page-header) sur
   les pages piliers : notre propre en-tête (.lab-pilier-hero) le remplace
   entièrement, avoir les deux crée un doublon disgracieux. */
.page-template-page-kvevris-php .page-header,
.page-template-page-vins-naturels-php .page-header,
.page-template-page-vins-alsace-php .page-header,
.page-template-page-le-lieu-php .page-header {
    display: none;
}

/* Même chose sur les fiches produit : single-product.php affiche déjà son
   propre <h1 class="lab-nom"> — le bandeau de titre d'OceanWP crée un
   second H1 en doublon sur la même page. */
body.single-product .page-header {
    display: none;
}

/* lien discret vers Contact sur les mentions de visite / dégustation ------ */
.lab-pilier a.lab-lien-contact {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--hairline);
}
.lab-pilier a.lab-lien-contact:hover { text-decoration-color: currentColor; }
.lab-pilier .lab-bande--sombre a.lab-lien-contact { color: #DB8459; text-decoration-color: rgba(219, 132, 89,.45); }
.lab-pilier .lab-bande--sombre a.lab-lien-contact:hover { text-decoration-color: currentColor; }
