/* ==========================================================================
   "Le Millésime" — Charte Graphique
   Inspirée de l'esthétique des grands vins de Bordeaux
   ========================================================================== */

:root {
    /* Palette principale */
    --cuvee:        #800020;   /* Cuvée Rouge — capsule de surbouchage */
    --cuvee-dark:   #5c0017;
    --cuvee-light:  #9a1a35;
    --or:           #CFB53B;   /* Or du Château — dorures de l'étiquette */
    --or-light:     #dcc56a;
    --or-dark:      #b89a28;
    --creme:        #FDF4E3;   /* Crème Verger — papier de l'étiquette */
    --creme-dark:   #f5e8cc;
    --vert:         #2F4F2F;   /* Vert Antique — verre de la bouteille */
    --vert-light:   #3d6b3d;
    --chene:        #1A1A1A;   /* Noir Chêne — vieillissement en barrique */
    --lie:          #D2B48C;   /* Gris Lie — dépôts de lie */
    --lie-light:    #e0c9a6;
    --lie-dark:     #b89b6a;   /* décor uniquement (filets, fonds) : 2,6:1 sur blanc */
    --lie-text:     #7a6440;   /* même teinte, pour le texte : 5,6:1 sur blanc, 5,2:1 sur crème */

    /* Spacing scale (8px base) */
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-6: 48px;
    --sp-8: 64px;
}

/* Liens : couleur de charte (Cuvée Rouge, 10,8:1 sur blanc) au lieu du bleu bootstrap.
   html:root bat le « :root,[data-bs-theme=light] » de bootstrap.min.css (chargé en async).
   Miroir identique dans components/_critical_css.html.twig. */
html:root{--bs-link-color:#800020;--bs-link-color-rgb:128,0,32;--bs-link-hover-color:#5c0017;--bs-link-hover-color-rgb:92,0,23}

/* ==========================================================================
   Typography — Playfair Display (titres) + Lato (corps)
   ========================================================================== */

body {
    font-family: 'Lato','Lato Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* rem : suit la taille de texte choisie dans le navigateur (16 px par défaut) */
    font-size: 1rem;
    color: var(--chene);
    background-color: #faf9f6;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    color: var(--cuvee);
    line-height: 1.3;
}

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 1.875rem; font-weight: 600; }
h3, .h3 { font-size: 1.5rem; font-weight: 600; }
h4, .h4 { font-size: 1.25rem; font-weight: 700; }

/* Annonce titles (H3 in cards) use Noir Chêne */
.annonce-card .card-title {
    color: var(--chene);
}

/* Price always Cuvée Rouge */
.annonce-price,
.annonce-card .card-text.text-wine {
    color: var(--cuvee) !important;
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-weight: 600;
}

/* Small description text */
.text-description {
    color: var(--lie);
    font-size: 0.75rem;
}

/* ==========================================================================
   Utility classes
   ========================================================================== */

.bg-wine {
    background-color: var(--cuvee) !important;
}

.bg-creme {
    background-color: var(--creme) !important;
}

.text-wine {
    color: var(--cuvee) !important;
}

.text-or {
    color: var(--or) !important;
}

.text-vert {
    color: var(--vert) !important;
}

/* Ensure headings inside dark backgrounds stay white */
.bg-wine h1, .bg-wine h2, .bg-wine h3,
.bg-wine h4, .bg-wine h5, .bg-wine h6,
.bg-wine .h1, .bg-wine .h2, .bg-wine .h3,
.bg-wine .h4, .bg-wine .h5, .bg-wine .h6,
.card-header.text-white h1, .card-header.text-white h2,
.card-header.text-white h3, .card-header.text-white h4,
.card-header.text-white h5, .card-header.text-white h6 {
    color: #fff;
}

/* ==========================================================================
   Buttons — Rounded 4px, bold, clean
   ========================================================================== */

/* Primary: Cuvée Rouge fond, texte blanc.
   Taille par les variables --bs-btn-* (et non padding/font-size fixés) pour que
   .btn-lg / .btn-sm s'appliquent ; bordure 2px de la couleur du fond et mêmes
   paddings verticaux = même hauteur qu'un .btn-outline-wine (ou .btn-outline-vert
   en .btn-lg) de même taille, côte à côte (barre de filtres, page annonce, 404).
   Miroir (préfixé html) dans components/_critical_css.html.twig. */
.btn-wine {
    --bs-btn-padding-x: 1.4rem;
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 700;
    --bs-btn-border-width: 2px;
    --bs-btn-border-radius: 4px;
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--cuvee);
    --bs-btn-border-color: var(--cuvee);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--cuvee-dark);
    --bs-btn-hover-border-color: var(--cuvee-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--cuvee-dark);
    --bs-btn-active-border-color: var(--cuvee-dark);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--cuvee);
    --bs-btn-disabled-border-color: var(--cuvee);
    background-color: var(--cuvee);
    border: 2px solid var(--cuvee);
    color: #fff;
    font-family: 'Lato','Lato Fallback', sans-serif;
    letter-spacing: 0.02em;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-wine.btn-lg, .btn-outline-wine.btn-lg { --bs-btn-padding-y: 0.5rem; --bs-btn-padding-x: 1rem; --bs-btn-font-size: 1.25rem; }
.btn-wine.btn-sm, .btn-outline-wine.btn-sm { --bs-btn-padding-y: 0.25rem; --bs-btn-padding-x: 0.5rem; --bs-btn-font-size: 0.875rem; }

.btn-wine:hover, .btn-wine:focus {
    background-color: var(--cuvee-dark);
    border-color: var(--cuvee-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.25);
}

/* Secondary: contour Cuvée Rouge, fond transparent */
.btn-outline-wine {
    --bs-btn-padding-x: 1.3rem;
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-font-weight: 700;
    --bs-btn-border-width: 2px;
    --bs-btn-border-radius: 4px;
    color: var(--cuvee);
    border: 2px solid var(--cuvee);
    background: transparent;
    font-family: 'Lato','Lato Fallback', sans-serif;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-outline-wine:hover, .btn-outline-wine:focus {
    background-color: var(--cuvee);
    border-color: var(--cuvee);
    color: #fff;
}

/* Publish button — Or du Château accent */
.btn-publish {
    background: var(--or) !important;
    color: var(--chene) !important;
    border: none;
    border-radius: 4px;
    padding: 0.55rem 1.5rem !important;
    font-family: 'Lato','Lato Fallback', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.btn-publish:hover {
    background: var(--or-light) !important;
    color: var(--chene) !important;
}

/* ==========================================================================
   Form Fields — Crème Verger fond, Gris Lie bordure, Or focus
   ========================================================================== */

.form-control,
.form-select {
    background-color: var(--creme);
    border: 1px solid var(--lie);
    color: var(--chene);
    font-family: 'Lato','Lato Fallback', sans-serif;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: var(--or);
    box-shadow: 0 0 0 0.2rem rgba(207, 181, 59, 0.25);
    color: var(--chene);
}

/* Anneau or (≈1,9:1 sur crème) trop pâle seul : contour Cuvée au clavier (≥ 3:1). */
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--cuvee);
    outline-offset: 1px;
}

.form-label {
    color: var(--chene);
    font-weight: 700;
    font-size: 0.9rem;
}

/* --lie-text (5,6:1 sur crème) et non --lie (1,97:1) : texte d'exemple lisible.
   Miroir dans le critical CSS. */
::placeholder {
    color: var(--lie-text) !important;
    opacity: 1;
}

/* ==========================================================================
   Navbar — Noir Chêne, filet Cuvée Rouge
   ========================================================================== */

.navbar-wine {
    background: var(--chene);
    border-bottom: 3px solid var(--cuvee);
    padding: 0;
}

.navbar-wine .navbar-brand {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.8rem 0;
    color: #fff !important;
}

.navbar-wine .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: 'Lato','Lato Fallback', sans-serif;
    font-weight: 400;
    padding: 0.8rem 1rem;
    transition: color 0.2s, border-bottom-color 0.2s;
    border-bottom: 2px solid transparent;
}

.navbar-wine .nav-link:hover {
    color: #fff !important;
    border-bottom-color: var(--or);
}

/* Focus clavier visible sur fond sombre (liens, logo, boutons de la barre) */
.navbar-wine .nav-link:focus-visible,
.navbar-wine .navbar-brand:focus-visible,
.navbar-wine .btn:focus-visible,
.navbar-wine .navbar-toggler:focus-visible {
    outline: 2px solid var(--or);
    outline-offset: 2px;
    box-shadow: none;
}

.navbar-wine .search-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.85rem;
}

.navbar-wine .search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.navbar-wine .search-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--or);
    box-shadow: 0 0 0 0.15rem rgba(207, 181, 59, 0.25);
    color: #fff;
}

.navbar-wine .search-form .btn {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.navbar-wine .search-form .btn:hover {
    background: var(--cuvee);
    border-color: var(--cuvee);
    color: #fff;
}

/* ==========================================================================
   Hero Section — Gradient noble
   ========================================================================== */

.hero-section {
    position: relative;
    color: #fff;
    padding: calc(var(--sp-6) + var(--sp-4)) 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 18, 16, 0.62);
    z-index: 1;
}

.hero-section h1 {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
}

.hero-section .lead {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-size: 1.15rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .lead-highlight {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: normal;
    color: #fff;
    opacity: 1;
    margin-top: 0.25rem;
}

.hero-section .form-control-lg {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1rem;
    border-radius: 4px;
}

.hero-section .form-control-lg::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
}

.hero-section .form-control-lg:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--or);
    box-shadow: 0 0 0 0.2rem rgba(207, 181, 59, 0.3);
    color: #fff;
}

.hero-section .btn-light {
    background: rgba(255, 255, 255, 0.92);
    color: var(--cuvee);
    font-weight: 700;
    border: none;
    border-radius: 4px;
}

.hero-section .btn-light:hover {
    background: #fff;
    color: var(--cuvee-dark);
}

/* ==========================================================================
   Annonce Cards — Layout "Grand Cru"
   Fond blanc, bordure fine Gris Lie, ombre portée, ratio portrait 4:5
   ========================================================================== */

.annonce-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--lie-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.annonce-card:hover {
    box-shadow: 0 8px 24px rgba(128, 0, 32, 0.1);
}

/* Image wrapper — relative positioning for overlays */
.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-wrapper picture {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--creme);
}

.annonce-card .card-img-top {
    width: 100%;
    height: 100%;
    /* cover: edge-to-edge full-bleed card tiles. Safe now that the image variants
       are faithful downscales (the previous crop came from a variant-generation bug,
       fixed in ImageService, not from object-fit). The creme bg above shows only
       while the image loads. Listing-page thumbnails use contain (whole image). */
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Photos au ratio éloigné du cadre 4:5 (paysage, portrait 9:16) : contain pour
   montrer la bouteille entière plutôt qu'un recadrage sévère, sur le fond crème uni
   du <picture> (l'ancien fond flouté de la vignette dessinait des bandes floues
   derrière les photos à fond clair). La classe est posée par _card.html.twig
   d'après width/height stockés en base. */
.card-img-wrapper--contain .card-img-top {
    object-fit: contain;
}

.annonce-card .no-image {
    aspect-ratio: 4 / 5;
    width: 100%;
    background: linear-gradient(135deg, var(--creme), var(--creme-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lie);
    font-size: 3rem;
}

/* Wine type badge — top right */
.badge-wine-type {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(26, 26, 26, 0.78);
    color: #fff;
    font-family: 'Lato','Lato Fallback', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3em 0.6em;
    border-radius: 3px;
}

/* Sold badge — overlay */
.badge-sold {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(26, 26, 26, 0.85) !important;
    color: #fff;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.3em 0.6em;
    border-radius: 3px;
}

/* Card body */
.annonce-card .card-body {
    padding: var(--sp-2);
}

/* Surtitle: VILLE - REGION (lieu de l'annonce) */
.card-surtitle {
    font-family: 'Lato','Lato Fallback', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--lie-text);
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Appellation, juste au-dessus du titre */
.card-appellation {
    font-family: 'Lato','Lato Fallback', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cuvee);
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Card title */
.annonce-card .card-title {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--chene);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

/* Card price row */
.card-price-row {
    text-align: right;
    margin-top: auto;
}

.card-price {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cuvee);
}

.card-price--request {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--lie-text);
}

/* ==========================================================================
   France Map
   ========================================================================== */

.france-map-container {
    max-width: 900px;
    margin: var(--sp-4) auto var(--sp-2);
    padding: 0 var(--sp-2);
}

.france-map-container.map-in-hero {
    margin: 0 auto;
    max-width: 380px;
    padding: 0;
}

.map-in-hero .region-path {
    fill: rgba(255, 255, 255, 0.15);
    stroke: rgba(255, 255, 255, 0.6);
}

.map-in-hero .region-path.has-annonces {
    fill: rgba(255, 255, 255, 0.5);
    stroke: rgba(255, 255, 255, 0.8);
}

.map-in-hero .region-path:hover,
.map-in-hero .region-path.has-annonces:hover {
    fill: var(--or);
    stroke: #fff;
}

.map-in-hero .france-map-overseas {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.map-in-hero .overseas-box {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    min-width: auto;
}

.map-in-hero .overseas-box:hover {
    background: var(--or);
    border-color: var(--or);
}

.france-map-container h2 {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    color: var(--cuvee);
    font-size: 1.5rem;
}

.france-map-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: var(--sp-3);
}

.france-map-metro {
    flex: 1 1 auto;
    max-width: 550px;
    line-height: 0;
}

.france-map-svg {
    display: block;
    width: 100%;
    height: auto;
}

.region-path {
    fill: var(--creme-dark);
    stroke: #fff;
    stroke-width: 2;
    transition: fill 0.3s ease;
    cursor: pointer;
}

.region-path:hover {
    fill: var(--cuvee);
}

.region-path.has-annonces {
    fill: var(--lie);
}

.region-path.has-annonces:hover {
    fill: var(--cuvee);
}

/* Région courante mise en évidence (carte de la page /region/<slug>) */
.region-path.is-current,
.region-path.is-current:hover {
    fill: var(--cuvee);
}

.overseas-box.is-current {
    border-color: var(--cuvee);
    background: var(--creme-dark);
    font-weight: 700;
}

/* Overseas territory boxes */
.france-map-overseas {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.overseas-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.9rem;
    background: var(--creme);
    border: 1px solid var(--lie-light);
    border-radius: 4px;
    text-decoration: none;
    color: var(--chene);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.25s ease, color 0.25s ease;
    min-width: 160px;
}

.overseas-box:hover {
    background: var(--cuvee);
    border-color: var(--cuvee);
    color: #fff;
}

.overseas-count {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Map tooltip */
.map-tooltip {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    background: rgba(26, 26, 26, 0.94);
    color: #fff;
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--or);
}

.map-tooltip-name {
    display: block;
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-weight: 600;
}

.map-tooltip-count {
    display: block;
    font-size: 0.78rem;
    opacity: 0.8;
}

/* Responsive map */
@media (max-width: 600px) {
    .france-map-container { margin-top: var(--sp-3); }
    .france-map-wrapper { flex-direction: column; align-items: center; }
    .france-map-overseas { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .overseas-box { min-width: auto; }
}

/* ==========================================================================
   Image Gallery & Lightbox
   ========================================================================== */

.gallery-main-img {
    max-height: 500px;
    object-fit: contain;
    background: var(--creme);
    border-radius: 4px;
    cursor: pointer;
}

.gallery-thumb-btn {
    width: 80px;
    height: 80px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: var(--creme);
    transition: border-color 0.2s;
}

.gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    /* contain so each thumbnail shows the entire photo (matches the main image
       it opens), instead of a hard square crop of a portrait/landscape shot. */
    object-fit: contain;
    display: block;
}

.gallery-thumb-btn:hover,
.gallery-thumb-btn.active {
    border-color: var(--or);
}

.gallery-placeholder {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--creme), var(--creme-dark));
    border-radius: 4px;
    color: var(--lie);
    font-size: 5rem;
}

/* Native <dialog> lightbox. The dialog fills the viewport; its ::backdrop
   provides the dark scrim. Layout is scoped to [open] so the UA `display:none`
   keeps it hidden when closed. */
.lightbox-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* barre d'adresse mobile : hauteur réellement visible */
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
}

.lightbox-dialog[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-dialog::backdrop {
    background: rgba(0, 0, 0, 0.94);
}

/* Fallback for pre-<dialog> browsers (degrades to a fixed overlay via [open]). */
.lightbox-dialog:not([open]) { display: none; }
@supports not selector(dialog:modal) {
    .lightbox-dialog[open] {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.94);
        z-index: 9999;
    }
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    cursor: pointer;
    padding: 1rem 0.8rem;
    border-radius: 4px;
    z-index: 10000;
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(128, 0, 32, 0.5);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* ==========================================================================
   Section Headings — Filet Or du Château
   ========================================================================== */

.section-title {
    position: relative;
    display: inline-block;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb-bar {
    background: var(--creme);
    border-bottom: 1px solid var(--lie-light);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\203A";
    content: "\203A" / ""; /* séparateur décoratif : non lu (repli : déclaration au-dessus) */
    color: var(--lie);
}

.breadcrumb-item a {
    color: var(--cuvee);
    text-decoration: none;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus-visible {
    color: var(--cuvee-dark);
    text-decoration: underline;
}

/* Page courante : lien (aria-current) qui garde l'apparence du texte actif */
.breadcrumb-item a[aria-current="page"] {
    color: var(--bs-breadcrumb-item-active-color, #6c757d);
}

/* ==========================================================================
   CTA Section (publish box)
   ========================================================================== */

.cta-publish {
    background: var(--creme);
    border: 1px solid var(--lie-light);
    border-radius: 4px;
    padding: var(--sp-4);
    text-align: center;
}

.cta-publish h3 {
    color: var(--cuvee);
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
}

/* ==========================================================================
   Footer — Noir Chêne, accents Or du Château
   ========================================================================== */

.footer-wine {
    background: var(--chene);
    color: rgba(255, 255, 255, 0.8);
    border-top: 3px solid var(--cuvee);
}

.footer-wine .h5 {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-wine a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-wine a:hover {
    color: #fff;
}

.footer-wine .footer-brand {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.04em;
}

.footer-wine .footer-description {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-wine hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-wine .copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Mentions sur fond noir : le .text-muted global (#595f64, prévu pour fond clair)
   tombait à 2,7:1 ici. rgba(255,255,255,.72) ≈ 9:1 sur Noir Chêne. */
.footer-wine .footer-warning,
.footer-wine .text-muted {
    color: rgba(255, 255, 255, 0.72) !important;
}

/* ==========================================================================
   Search Filters
   ========================================================================== */

.search-filters .form-label {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--chene);
}

.filter-card {
    border: 1px solid var(--lie-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-card .card-header {
    background: var(--cuvee);
    color: #fff;
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
}

.filter-card .card-header h1,
.filter-card .card-header h2,
.filter-card .card-header h3,
.filter-card .card-header h4,
.filter-card .card-header h5,
.filter-card .card-header h6 {
    color: #fff;
}

/* Barre de filtres horizontale (listing + recherche) : repliée = recherche seule,
   les critères avancés se déplient sous la barre via Bootstrap collapse. */
.filter-bar-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-bar-search {
    flex: 1 1 220px;
    min-width: 0;
}

.filter-bar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.filter-bar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3em;
    height: 1.3em;
    padding: 0 0.35em;
    border-radius: 999px;
    background: var(--or);
    color: var(--chene);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.filter-bar-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.filter-bar-toggle[aria-expanded="true"] .filter-bar-chevron {
    transform: rotate(180deg);
}

/* Focus clavier : anneau or doublé d'un liseré Cuvée (l'or seul manque de contraste
   sur fond blanc) */
.filter-bar-toggle:focus-visible,
.filter-bar .btn-wine:focus-visible {
    outline: 2px solid var(--or);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--cuvee);
}

.filter-bar-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    padding-top: 0.9rem;
    margin-top: 0.9rem;
    border-top: 1px solid var(--lie-light);
}

.filter-bar-field .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--chene);
}

.filter-bar-range {
    display: flex;
    gap: 0.5rem;
}

.filter-bar-range .form-control {
    min-width: 0;
}

.filter-bar-reset {
    display: flex;
    align-items: flex-end;
}

.filter-bar-reset .btn-link {
    padding-left: 0;
    color: var(--cuvee);
}

@media (max-width: 576px) {
    .filter-bar-advanced {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Contact Form Card
   ========================================================================== */

.contact-card {
    border: 1px solid var(--lie-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-card .card-header {
    background: var(--cuvee);
    color: #fff;
}

.contact-card .card-header h1,
.contact-card .card-header h2,
.contact-card .card-header h3,
.contact-card .card-header h4,
.contact-card .card-header h5,
.contact-card .card-header h6 {
    color: #fff;
}

/* ==========================================================================
   Annonce Detail page
   ========================================================================== */

.annonce-price {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-size: 1.8rem;
    color: var(--cuvee);
    font-weight: 600;
}

.annonce-description {
    line-height: 1.7;
    color: var(--chene);
    /* URL ou mot très long saisi par un vendeur : jamais de débordement horizontal */
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

/* ==========================================================================
   Show Page — "Grand Cru" Layout
   ========================================================================== */

.show-container {
    padding-top: var(--sp-3);
}

/* Sticky sidebar on desktop */
@media (min-width: 992px) {
    .show-sticky-sidebar {
        position: sticky;
        top: 20px;
    }
}

/* Surtitle (appellation + region) */
.show-surtitle {
    font-family: 'Lato','Lato Fallback', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--lie-text);
    margin-bottom: var(--sp-1);
}

.show-surtitle a {
    color: var(--lie-text);
    text-decoration: none;
    transition: color 0.2s;
}

.show-surtitle a:hover {
    color: var(--cuvee);
}

/* Title */
.show-title {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--chene);
    margin-bottom: var(--sp-1);
    line-height: 1.25;
}

/* Price */
.show-price {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--cuvee);
    margin-bottom: var(--sp-3);
}

.show-price--request {
    font-size: 1.2rem;
    color: var(--lie-text);
}

/* CTA button group */
.show-cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    margin-bottom: var(--sp-3);
}

/* Libellés longs (« Vous avez la même bouteille ? Déposez une annonce ») : lignes
   équilibrées plutôt qu'un mot isolé en seconde ligne (même nombre de lignes : sans CLS) */
.show-cta-group .btn {
    text-wrap: balance;
}

/* Vert Antique outline button */
.btn-outline-vert {
    color: var(--vert);
    border: 2px solid var(--vert);
    background: transparent;
    font-family: 'Lato','Lato Fallback', sans-serif;
    font-weight: 700;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-outline-vert:hover,
.btn-outline-vert:focus {
    background-color: var(--vert);
    border-color: var(--vert);
    color: #fff;
}

/* Wine Specifications Grid */
.wine-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: var(--sp-3);
}

.wine-spec-item {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 10px 12px;
    background: var(--creme);
    border-radius: 4px;
    border: 1px solid var(--lie-light);
}

.wine-spec-item i {
    color: var(--cuvee);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.wine-spec-label {
    display: block;
    font-family: 'Lato','Lato Fallback', sans-serif;
    font-size: 0.78rem;
    color: var(--lie-text);
    line-height: 1.2;
}

.wine-spec-value {
    display: block;
    font-family: 'Lato','Lato Fallback', sans-serif;
    font-weight: 700;
    color: var(--chene);
    font-size: 0.88rem;
    line-height: 1.3;
}

/* Show meta info */
.show-meta {
    margin-bottom: var(--sp-2);
}

/* Seller info card */
.seller-card {
    background: var(--creme);
    border: 1px solid var(--lie-light);
    border-radius: 4px;
    overflow: hidden;
}

.seller-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.seller-card-header > i {
    font-size: 2rem;
    color: var(--cuvee);
}

.seller-name {
    display: block;
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-weight: 600;
    color: var(--chene);
    font-size: 1rem;
}

.seller-meta {
    display: block;
    font-size: 0.78rem;
    color: var(--lie-text);
}

.seller-card-footer {
    padding: 8px 16px;
    border-top: 1px solid var(--lie-light);
    font-size: 0.78rem;
    color: var(--lie-text);
}

.seller-card-footer i {
    margin-right: 4px;
}

/* ==========================================================================
   Le mot du sommelier
   ========================================================================== */

.sommelier-block {
    background: var(--creme);
    border-left: 4px solid var(--or);
    border-radius: 0 8px 8px 0;
    padding: var(--sp-3);
}

.sommelier-title {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cuvee);
    margin-bottom: var(--sp-1);
}

.sommelier-title i {
    color: var(--or);
    margin-right: 6px;
}

.sommelier-text {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--chene);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ==========================================================================
   Mobile Sticky Bottom Bar
   ========================================================================== */

.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border-top: 1px solid var(--lie-light);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    padding: 12px var(--sp-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-bottom-price {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cuvee);
}

/* Add bottom padding on mobile to prevent content behind bar */
@media (max-width: 991.98px) {
    body:has(.mobile-bottom-bar) {
        padding-bottom: 72px;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.5rem; }

    .hero-section h1 { font-size: 2rem; }
    .hero-section .lead { font-size: 1rem; }
    .hero-section .lead-highlight { font-size: 1.2rem; }

    .show-title { font-size: 1.4rem; }
    .show-price { font-size: 1.6rem; }

    .wine-specs-grid { grid-template-columns: 1fr; }

    .lightbox-prev, .lightbox-next {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .btn-publish {
        font-size: 0.8rem;
        padding: 0.4rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section { padding: var(--sp-4) 0; }
    .hero-section h1 { font-size: 1.6rem; }
    .hero-section .lead-highlight { font-size: 1.1rem; }
    .show-title { font-size: 1.25rem; }
}

/* ==========================================================================
   Decorative separator — Or du Château
   ========================================================================== */

.wine-separator {
    border: none;
    border-top: 1px solid var(--lie-light);
    margin: var(--sp-4) 0;
}

/* ==========================================================================
   Contrast fixes — WCAG AA compliance
   ========================================================================== */

.text-muted {
    color: #595f64 !important;
}

/* ==========================================================================
   Wizard Form (multi-step annonce creation)
   ========================================================================== */

.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--sp-3);
    position: relative;
    padding: 0 2rem;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

/* Connector line between steps — behind icons */
.wizard-step::before {
    content: '';
    position: absolute;
    top: 24px;
    left: -50%;
    right: 50%;
    height: 2px;
    background: var(--lie-light);
    z-index: 1;
    transition: background 0.4s ease;
}

.wizard-step:first-child::before { display: none; }

.wizard-step.active::before,
.wizard-step.completed::before {
    background: var(--cuvee);
}

/* Step icon — above connector line */
.wizard-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--lie-text);
    background: var(--creme);
    border: 2px solid var(--lie-light);
    position: relative;
    z-index: 3;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.wizard-step.active .wizard-step-icon {
    color: var(--cuvee);
    background: #fff;
    border-color: var(--cuvee);
}

.wizard-step.completed .wizard-step-icon {
    background: var(--vert);
    border-color: var(--vert);
    color: #fff;
    font-size: 0;
}

.wizard-step.completed .wizard-step-icon::after {
    content: '\2713';
    font-size: 1.2rem;
    color: #fff;
}

.wizard-step-label {
    font-family: 'Lato','Lato Fallback', sans-serif;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--lie-text);
    transition: color 0.3s ease;
}

.wizard-step.active .wizard-step-label {
    color: var(--cuvee);
}

.wizard-step.completed .wizard-step-label {
    color: var(--vert);
}

.wizard-step.completed {
    cursor: pointer;
}

/* Progress bar */
/* Progress bar hidden — step indicators are enough */
.wizard-progress {
    display: none;
}

/* Wizard card */
.wizard-card {
    border: 1px solid var(--lie-light) !important;
    border-top: 3px solid var(--cuvee) !important;
}

/* Panels */
.wizard-panel { display: none; }

.wizard-panel.active {
    display: block;
    animation: wizardFadeIn 0.35s ease;
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--sp-4);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--lie-light);
}

/* Step hint badges */
.wizard-step2-hint,
.wizard-contact-hint {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: var(--creme);
    border: 1px solid var(--lie-light);
    border-radius: 4px;
    font-size: 0.88rem;
    color: var(--chene);
}

.wizard-step2-hint i,
.wizard-contact-hint i {
    font-size: 1.2rem;
    color: var(--vert);
}

/* Millesime input — hide number spinners */
.millesime-input::-webkit-outer-spin-button,
.millesime-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.millesime-input[type=number] {
    -moz-appearance: textfield;
}

/* Image upload drop zone */
.image-dropzone {
    border: 2px dashed var(--lie);
    border-radius: 4px;
    padding: var(--sp-4);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    background: var(--creme);
}

.image-dropzone:hover,
.image-dropzone.dragover {
    border-color: var(--or);
    background: #fff;
}

.image-dropzone i {
    font-size: 2.5rem;
    color: var(--lie);
    margin-bottom: 0.5rem;
    display: block;
}

.image-dropzone p { color: var(--lie-text); margin-bottom: 0.25rem; }
.image-dropzone .text-muted { font-size: 0.8rem; }

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--creme);
}

.image-preview-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-btn {
    position: absolute;
    top: 4px; right: 4px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1;
}

.image-preview-item .remove-btn:hover {
    background: var(--cuvee);
}

.image-preview-item .rotate-btn {
    position: absolute;
    bottom: 4px; right: 4px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1;
}

.image-preview-item .rotate-btn:hover {
    background: var(--cuvee);
}

@media (max-width: 576px) {
    .image-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .wizard-steps { padding: 0 0.5rem; }
    .wizard-step-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .wizard-step-label { font-size: 0.65rem; }
    .wizard-step::before { top: 20px; }
}

/* ==========================================================================
   Wine detail badges — Vert Antique
   ========================================================================== */

.wine-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.badge.bg-wine-detail {
    background-color: rgba(47, 79, 47, 0.1);
    color: var(--vert);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.35em 0.65em;
    border: 1px solid rgba(47, 79, 47, 0.25);
    border-radius: 4px;
}

/* ==========================================================================
   Social sharing
   ========================================================================== */

.social-sharing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.social-sharing .btn {
    border-radius: 50%;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
}

.social-sharing .copy-feedback {
    font-size: 0.8rem;
    color: var(--vert);
    font-weight: 600;
}

/* ==========================================================================
   Alert subscription form
   ========================================================================== */

.alert-subscribe-card {
    border: 2px dashed var(--or);
    border-radius: 4px;
    background: var(--creme);
    padding: var(--sp-3);
}

.alert-subscribe-card h5 {
    color: var(--cuvee);
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
}

/* ==========================================================================
   Alert styling
   ========================================================================== */

.alert-wine {
    background-color: var(--creme);
    border-color: var(--lie-light);
    color: var(--cuvee-dark);
}

/* ==========================================================================
   Wine Autocomplete Dropdown
   ========================================================================== */

[data-controller="wine-autocomplete"] {
    position: relative;
}

.wine-autocomplete-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid var(--lie-light);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    max-height: 400px;
    overflow-y: auto;
}

.wine-autocomplete-dropdown.open {
    display: block;
}

.wine-autocomplete-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid #f0ece4;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background .15s;
}

.wine-autocomplete-item:last-child {
    border-bottom: none;
}

.wine-autocomplete-item:hover,
.wine-autocomplete-item.highlighted {
    background: var(--creme);
}

.wine-autocomplete-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.wine-autocomplete-name {
    font-weight: 600;
    color: var(--chene);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wine-autocomplete-region {
    font-size: .82rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wine-autocomplete-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.wine-autocomplete-stars {
    color: var(--or);
    font-size: .8rem;
    white-space: nowrap;
}

.wine-autocomplete-stars small {
    color: #999;
    margin-left: 2px;
}

.wine-autocomplete-grapes {
    font-size: .75rem;
    color: var(--vert);
    background: rgba(47,79,47,.08);
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

/* Wine match badge */
.wine-match-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-top: 8px;
    background: rgba(47,79,47,.06);
    border: 1px solid rgba(47,79,47,.15);
    border-radius: 6px;
    font-size: .88rem;
    color: var(--vert);
}

.wine-match-badge .bi-check-circle-fill {
    color: var(--vert);
    flex-shrink: 0;
}

.wine-match-label {
    flex: 1;
    font-weight: 500;
}

.wine-match-clear {
    border: none;
    background: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.wine-match-clear:hover {
    color: var(--cuvee);
}

/* ==========================================================================
   Wine Chips (Grapes & Food Pairings)
   ========================================================================== */

.wine-chips-section {
    margin-top: 16px;
}

.wine-chips-title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--chene);
    margin-bottom: 8px;
    font-family: 'Lato','Lato Fallback', sans-serif;
}

.wine-chips-title i {
    color: var(--vert);
    margin-right: 4px;
}

.wine-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wine-chip {
    display: inline-block;
    padding: 3px 10px;
    font-size: .8rem;
    border-radius: 20px;
    background: rgba(47,79,47,.08);
    color: var(--vert);
    border: 1px solid rgba(47,79,47,.12);
}

.wine-chip--food {
    background: rgba(207,181,59,.08);
    color: var(--lie-text);
    border-color: rgba(207,181,59,.15);
}

.wine-chip--link {
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.wine-chip--link:hover {
    background: rgba(47,79,47,.16);
    border-color: rgba(47,79,47,.25);
    color: var(--vert);
}

.wine-chip--vintage {
    background: rgba(128,0,32,.06);
    color: var(--cuvee);
    border-color: rgba(128,0,32,.12);
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Wine Fiche Page
   ========================================================================== */

.wine-fiche-container {
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-8);
}

.wine-fiche-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.text-or {
    color: var(--or) !important;
}

.wine-fiche-rating-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--chene);
    margin-left: 4px;
}

.wine-fiche-rating-count {
    font-size: .85rem;
    color: #888;
}

/* Annonces list in fiche */
.wine-fiche-annonces-header h2 {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, serif;
    color: var(--cuvee);
}

.wine-fiche-annonces-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #f0ece4;
    border: 1px solid #f0ece4;
    border-radius: 8px;
    overflow: hidden;
}

.wine-fiche-annonce-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #fff;
    text-decoration: none;
    color: var(--chene);
    transition: background .15s;
}

.wine-fiche-annonce-item:hover {
    background: var(--creme);
    color: var(--chene);
}

.wine-fiche-annonce-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wine-fiche-annonce-title {
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wine-fiche-annonce-vintage {
    font-size: .8rem;
    color: #888;
}

.wine-fiche-annonce-price {
    font-weight: 700;
    color: var(--cuvee);
    white-space: nowrap;
    margin-left: 12px;
}

/* No annonces state */
.wine-fiche-no-annonces {
    text-align: center;
    padding: var(--sp-4) var(--sp-2);
    background: var(--creme);
    border-radius: 8px;
}

.wine-fiche-no-annonces i {
    font-size: 2rem;
    color: var(--lie);
}

.wine-fiche-no-annonces p {
    color: #888;
    margin: var(--sp-1) 0 var(--sp-2);
}

/* Similar wines */
.wine-fiche-similar-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #f0ece4;
    border: 1px solid #f0ece4;
    border-radius: 8px;
    overflow: hidden;
}

.wine-fiche-similar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    text-decoration: none;
    color: var(--chene);
    transition: background .15s;
}

.wine-fiche-similar-item:hover {
    background: var(--creme);
    color: var(--chene);
}

.wine-fiche-similar-name {
    font-size: .88rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wine-fiche-similar-rating {
    font-size: .82rem;
    white-space: nowrap;
    margin-left: 8px;
}

/* Wine fiche link on annonce show */
.wine-fiche-link .btn {
    font-size: .85rem;
}

/* ==========================================================================
   Grape Pages
   ========================================================================== */

.grape-wines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.grape-wine-card {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f0ece4;
    border-radius: 8px;
    text-decoration: none;
    color: var(--chene);
    transition: border-color .15s, box-shadow .15s;
}

.grape-wine-card:hover {
    border-color: var(--lie);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    color: var(--chene);
}

.grape-wine-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.grape-wine-name {
    font-weight: 600;
    font-size: .92rem;
}

.grape-wine-rating {
    font-size: .82rem;
    white-space: nowrap;
}

.grape-wine-card-meta {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    font-size: .8rem;
    color: #888;
}

.grape-wine-type {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: .75rem;
}

.grape-wine-type--rouge { background: rgba(128,0,32,.08); color: var(--cuvee); }
.grape-wine-type--blanc { background: rgba(207,181,59,.1); color: var(--or-dark); }
.grape-wine-type--rosé { background: rgba(255,182,193,.2); color: #c4556e; }
.grape-wine-type--effervescent { background: rgba(47,79,47,.06); color: var(--vert); }

/* Grape index page */
.grape-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.grape-index-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #f0ece4;
    border-radius: 8px;
    text-decoration: none;
    color: var(--chene);
    transition: border-color .15s;
}

.grape-index-card:hover {
    border-color: var(--vert);
    color: var(--chene);
}

.grape-index-name {
    font-weight: 600;
    font-size: .92rem;
}

.grape-index-count {
    font-size: .78rem;
    color: #888;
}

/* ==========================================================================
   Homepage Grapes Section
   ========================================================================== */

.home-grapes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-grape-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #f0ece4;
    border-radius: 20px;
    text-decoration: none;
    color: var(--vert);
    font-size: .88rem;
    font-weight: 500;
    transition: border-color .15s, background .15s;
}

.home-grape-chip:hover {
    border-color: var(--vert);
    background: rgba(47,79,47,.04);
    color: var(--vert);
}

.home-grape-count {
    font-size: .72rem;
    font-weight: 400;
    background: rgba(47,79,47,.08);
    color: var(--vert);
    padding: 1px 6px;
    border-radius: 10px;
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    margin: 0;
    width: 100%;
    max-width: none;
    border: 0;
    border-top: 2px solid var(--cuvee);
    background: #fff;
    color: #333;
    box-shadow: 0 -4px 20px rgba(0,0,0,.12);
    padding: 1rem 0;
}

.cookie-banner:not([open]) { display: none; }

.cookie-banner-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1 1 300px;
}

.cookie-banner p {
    margin: 0;
    font-size: .9rem;
    color: #333;
}

.cookie-banner-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.cookie-banner .btn {
    white-space: nowrap;
    font-size: .85rem;
    padding: .4rem 1rem;
}

/* ==========================================================================
   Age gate overlay
   ========================================================================== */
.age-gate-dialog {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 480px;
    width: calc(100% - 2rem);
    color: inherit;
    overflow: visible;
}

.age-gate-dialog::backdrop {
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(6px);
}

.age-gate-modal {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.age-gate-title {
    font-family: 'Playfair Display','Playfair Fallback', Georgia, 'Times New Roman', serif;
    color: var(--cuvee);
    font-size: 1.5rem;
    margin-bottom: .75rem;
}

.age-gate-message {
    font-size: .95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: .5rem;
}

.age-gate-warning {
    font-size: .85rem;
    color: var(--cuvee);
    margin-bottom: 1.5rem;
}

.age-gate-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.age-gate-actions .btn-wine {
    font-size: 1rem;
    padding: .65rem 1.5rem;
}

.age-gate-actions .btn-outline-secondary {
    font-size: .85rem;
}

/* ==========================================================================
   Form validation feedback — only after interaction (:user-invalid).
   Scoped to forms marked [data-validate] so it never doubles up with the
   custom wizard validation. .is-user-invalid/.is-user-valid are the JS fallback
   classes for browsers without :user-invalid.
   ========================================================================== */
/* :is() et non une liste : un sélecteur non reconnu (:user-invalid sur un vieux
   navigateur) invaliderait toute la liste, repli .is-user-invalid compris. */
form[data-validate] :is(input, select, textarea):is(:user-invalid, .is-user-invalid) {
    border-color: var(--bs-danger, #dc3545);
    background-color: rgba(220, 53, 69, .06);
}

form[data-validate] :is(input, select, textarea):is(:user-valid, .is-user-valid):not(.is-user-invalid) {
    border-color: var(--vert, #2F4F2F);
}

/* Texte d'erreur inséré par assets/form_validation.js : l'erreur n'est jamais portée
   par la seule couleur. */
.field-error {
    margin-top: .25rem;
    font-size: .875rem;
    font-weight: 700;
    color: #b02a37;
}

/* ==========================================================================
   Contact security hint
   ========================================================================== */
.contact-security-hint {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    background: rgba(47,79,47,.06);
    border-left: 3px solid var(--vert);
    padding: .6rem .8rem;
    border-radius: 4px;
    color: #555;
}

.contact-security-hint i {
    color: var(--vert);
    font-size: 1rem;
    margin-top: 1px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    --bs-pagination-color: var(--cuvee);
    --bs-pagination-bg: #fff;
    --bs-pagination-border-color: var(--lie-light);
    --bs-pagination-hover-color: var(--cuvee-dark);
    --bs-pagination-hover-bg: var(--creme);
    --bs-pagination-hover-border-color: var(--lie);
    --bs-pagination-focus-color: var(--cuvee-dark);
    --bs-pagination-focus-bg: var(--creme);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(128, 0, 32, 0.25);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--cuvee);
    --bs-pagination-active-border-color: var(--cuvee);
    --bs-pagination-disabled-color: var(--lie);
    --bs-pagination-disabled-bg: #faf9f6;
    --bs-pagination-disabled-border-color: var(--lie-light);
}

.page-link {
    font-family: 'Lato','Lato Fallback', sans-serif;
    font-weight: 700;
    color: var(--bs-pagination-color);
}

/* ==========================================================================
   Barcode Scanner
   ========================================================================== */

.barcode-scanner-container video {
    max-height: 250px;
    object-fit: cover;
    border: 2px solid var(--lie-light);
}

/* ==========================================================================
   Error Pages (404, 403, 500, generic)
   ========================================================================== */

.error-page {
    padding: var(--sp-8) 0;
    min-height: 55vh;
    display: flex;
    align-items: center;
}

.error-code {
    font-family: 'Playfair Display','Playfair Fallback', serif;
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 600;
    line-height: 1;
    color: var(--creme-dark);
    letter-spacing: -0.03em;
    margin-bottom: var(--sp-1);
}

.error-icon {
    font-size: 3rem;
    color: var(--cuvee);
    margin-bottom: var(--sp-3);
}

.error-heading {
    font-family: 'Playfair Display','Playfair Fallback', serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    color: var(--chene);
    margin-bottom: var(--sp-2);
}

.error-lead {
    font-size: 1.125rem;
    color: #555;
    max-width: 480px;
    margin: 0 auto var(--sp-3);
    line-height: 1.6;
}

.error-suggestion {
    background: var(--creme);
    border-left: 4px solid var(--or);
    border-radius: 0 6px 6px 0;
    padding: var(--sp-2) var(--sp-3);
    margin-bottom: var(--sp-4);
    display: inline-block;
    text-align: left;
    color: #555;
    font-size: 0.95rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    justify-content: center;
}

/* Paragraphes d'intro SEO (liste, région, cépage, fiche vin, dépôt) */
.seo-intro {
    color: #5f5a50;
    line-height: 1.7;
    max-width: 72ch;
}

/* Listing pleine largeur : intro sur toute la largeur, sans le cap 72ch du
   .seo-intro (qui date de la mise en page sidebar et reste utilisé ailleurs).
   Doit rester APRÈS .seo-intro (même spécificité, la dernière règle gagne). */
.seo-intro--full {
    max-width: none;
}

.wine-seo-intro {
    color: #5f5a50;
    line-height: 1.7;
    margin-bottom: var(--sp-3);
}

/* ==========================================================================
   Reduced motion — respect the user's OS "reduce motion" preference (WCAG 2.3.3).
   Near-instant transitions/animations and no smooth scrolling.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Articles éditoriaux (guides, domaines, appellations, cépages)
   Miroir critique (components/_critical_css.html.twig, règles identiques) :
   .article-header, .article-meta, .article-lead, .article-prose (+ h2, h3,
   table, th/td, thead th, ul/ol, li), .article-prose-table, .article-quick,
   .article-quick-list (+ a, .article-quick-cta), .article-card, .article-card-type, .article-card-title.
   ========================================================================== */
/* Largeurs en rem / em et non en ch : « ch » dépend de la police réellement chargée, la
   colonne changeait de largeur (624 puis 668 px) à l'arrivée de Lato, d'où un saut de page. */
.article-header { max-width: 41.75rem; }
.article-meta { color: #6c665b; font-size: .875rem; margin-bottom: 1rem; }
.article-lead { font-size: 1.125rem; line-height: 1.7; color: #3f3a33; max-width: 41.75rem; }
.article-prose { max-width: 41.75rem; line-height: 1.75; }
.article-prose h2 { font-size: 1.5rem; margin-top: 2.25rem; margin-bottom: .75rem; }
.article-prose h3 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: .5rem; }
.article-prose table { width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; font-size: .95rem; }
.article-prose th, .article-prose td { border-bottom: 1px solid #e5ded3; padding: .5rem .6rem; text-align: left; vertical-align: top; }
.article-prose thead th { background: #f6f1ea; color: var(--cuvee); }
.article-prose-table { overflow-x: auto; }
.article-prose ul, .article-prose ol { padding-left: 1.25rem; }
.article-prose li { margin-bottom: .35rem; }
.article-price-box { background: #f6f1ea; border-radius: .5rem; padding: 1rem 1.25rem; max-width: 41.75rem; }
.article-price-box dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin: 0; }
.article-price-box dt { font-size: .8rem; color: #6c665b; font-weight: 400; }
.article-price-box dd { font-size: 1.15rem; font-weight: 700; color: var(--cuvee); margin: 0; }
/* FAQ : questions en h3 (.article-faq-q), règles dans le bloc « correctifs de la revue du 16/11/2026 » */
.article-sources li { font-size: .9rem; overflow-wrap: anywhere; }
.article-card { display: block; height: 100%; padding: 1rem 1.25rem; border: 1px solid #e5ded3; border-radius: .5rem; color: inherit; text-decoration: none; background: #fff; }
.article-card:hover, .article-card:focus-visible { border-color: var(--cuvee); }
.article-card-type { font-size: .8rem; color: #6c665b; }
.article-card-title { font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif; font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--cuvee); margin: .25rem 0 .35rem; }

/* --------------------------------------------------------------------------
   Pages listes des articles : correctifs de la revue du 16/11/2026
   (/guides, /domaines, /appellations ; gabarit article/index.html.twig).
   Miroir critique : tout ce bloc sauf les règles de survol et de focus.
   -------------------------------------------------------------------------- */
/* Rangée de rubriques sous l'introduction : liens de navigation, 44 px de haut au doigt */
.hub-tabs { margin: 0 0 1.5rem; }
.hub-tabs-list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.hub-tab { display: flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .25rem .75rem; border-bottom: 2px solid #e5ded3; color: #3f3a33; text-decoration: none; }
.hub-tab[aria-current="page"] { border-bottom-color: var(--cuvee); color: var(--cuvee); font-weight: 700; }
.hub-tab-count { font-size: .8rem; font-weight: 400; color: #6c665b; }
@media (min-width: 576px) { .hub-tabs-more { margin-left: 1.25rem; } }
.hub-tab:hover { border-bottom-color: var(--cuvee); color: var(--cuvee); }
.hub-tab:focus-visible { outline: 2px solid var(--cuvee); outline-offset: -2px; }
/* Grille des cartes : 6 pistes, une carte en occupe 6 (mobile), 3 (576 px) ou 2 (1200 px :
   en dessous, trois colonnes seraient trop étroites pour un extrait de 3 lignes).
   .acl-* : cartes élargies pour qu'aucune rangée ne reste incomplète (calcul dans le gabarit). */
.article-card-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.article-card-list > li { grid-column: span 6; min-width: 0; }
@media (min-width: 576px) {
  .article-card-list > li { grid-column: span 3; }
  .article-card-list > .acl-sm-full { grid-column: span 6; }
}
@media (min-width: 1200px) {
  .article-card-list > li, .article-card-list > .acl-sm-full { grid-column: span 2; }
  .article-card-list > .acl-lg-half { grid-column: span 3; }
  .article-card-list > .acl-lg-wide { grid-column: span 4; }
  .article-card-list > .acl-lg-full { grid-column: span 6; }
}
/* Carte : <article> en colonne, titre h2 dont le lien couvre toute la carte (::after),
   extrait limité à 3 lignes, ligne d'information calée en bas. Une vignette facultative
   peut précéder le titre (lot images). */
.article-card-list .article-card { position: relative; display: flex; flex-direction: column; }
.article-card-list .article-card-type { margin: 0 0 .25rem; }
.article-card-list .article-card-title { margin: 0 0 .35rem; }
.article-card-link { color: inherit; text-decoration: none; }
.article-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.article-card-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0 0 .6rem; font-size: .875rem; line-height: 1.5; color: #6c665b; }
.article-card-meta { display: flex; flex-wrap: wrap; gap: 0 1rem; margin: auto 0 0; font-size: .8rem; line-height: 1.5; color: #6c665b; }
.article-card-list .article-card:hover .article-card-link, .article-card-link:focus-visible { text-decoration: underline; text-underline-offset: .15em; }
.article-card-list .article-card:focus-within { border-color: var(--cuvee); }
.article-card:has(.article-card-link:focus-visible) { outline: 2px solid var(--cuvee); outline-offset: 2px; }
/* Guide mis en avant (première carte de /guides) : plus de corps sur grand écran */
@media (min-width: 992px) {
  .article-card-list .article-card--featured { padding: 1.5rem 1.75rem; }
  .article-card--featured .article-card-title { font-size: 1.6rem; margin-bottom: .5rem; }
  .article-card--featured .article-card-excerpt { max-width: 41.75rem; font-size: 1rem; line-height: 1.6; }
}
/* Fin de page : dépôt d'annonce et lien vers les annonces */
.hub-outro { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin: 0 0 1rem; padding: 1.25rem 1.5rem; border-radius: .5rem; background: #f6f1ea; }
.hub-outro-text { flex: 1 1 20rem; }
.hub-outro-title { margin: 0 0 .25rem; font-size: 1.25rem; }
.hub-outro-text p { margin: 0; color: #3f3a33; }
.hub-outro-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
/* Fin du bloc « pages listes des articles » */
/* Encart « accès rapide » des fiches domaine et appellation (sous le chapô) */
.article-quick { max-width: 41.75rem; margin: 0 0 1.5rem; padding: .75rem 1rem; background: #f6f1ea; border-radius: .5rem; }
.article-quick-list { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.article-quick-list a { color: var(--cuvee); font-weight: 700; text-decoration: none; }
.article-quick-list a:hover, .article-quick-list a:focus-visible { text-decoration: underline; }
.article-quick-list .article-quick-cta { display: inline-block; padding: .35rem .9rem; border-radius: 4px; background: var(--cuvee); color: #fff; }
.article-quick-list .article-quick-cta:hover, .article-quick-list .article-quick-cta:focus-visible { background: var(--cuvee-dark); text-decoration: none; }
/* Cibles des ancres de l'encart et du sommaire : le header est sticky. Le dégagement est
   posé une fois pour toutes par html { scroll-padding-top } (bloc « correctifs de la revue
   du 16/11/2026 ») ; ne pas remettre de scroll-margin-top ici, les deux s'additionnent. */

/* Grand écran : le texte garde sa taille (16 px) et sa longueur de ligne (41.75rem) ; le
   grossissement avec la largeur d'écran a été retiré le 16/11/2026 à la demande d'Adrien.
   Tableaux, encarts et cartes d'annonces s'étendent sur toute la colonne. Miroir critique. */
@media (min-width: 992px) {
  .article-main :is(div, section).article-prose { max-width: none; }
  .article-main :is(p, aside).article-prose { max-width: 41.75rem; }
  .article-main .article-prose > :is(p, ul, ol, dl, h2, h3, h4, blockquote) { max-width: 41.75rem; }
  .article-main .article-lead { font-size: 1.125em; max-width: 41.75rem; }
  .article-main .article-prose h2 { font-size: 1.5em; }
  .article-main .article-prose h3 { font-size: 1.2em; }
  .article-main .article-prose table { font-size: .95em; }
  .article-main :is(.article-quick, .article-price-box) { max-width: none; }
}
/* Tableaux larges des guides (mobile) : ombre sur le bord qui défile encore, indice de
   défilement horizontal. Ombres « scroll » masquées par des caches « local » qui suivent
   le contenu. Purement décoratif (aucun effet de mise en page) : hors critical CSS. */
.article-prose-table {
    background:
        linear-gradient(to right, #faf9f6 30%, rgba(250, 249, 246, 0)) left center / 2.5rem 100% no-repeat local,
        linear-gradient(to left, #faf9f6 30%, rgba(250, 249, 246, 0)) right center / 2.5rem 100% no-repeat local,
        radial-gradient(farthest-side at 0 50%, rgba(26, 26, 26, .3), rgba(26, 26, 26, 0)) left center / 1.25rem 100% no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, rgba(26, 26, 26, .3), rgba(26, 26, 26, 0)) right center / 1.25rem 100% no-repeat scroll;
}
/* Colonne latérale collante des articles (desktop ≥ 992 px ; masquée en dessous).
   Miroir identique dans le critical CSS (au-dessus de la ligne de flottaison : anti-CLS). */
/* Colonnes collées à gauche (alignées sur le fil d'Ariane), écart fixe : avec space-between,
   un grand écran laissait ~340 px vides entre le texte et la colonne latérale. */
@media (min-width: 992px) { .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 20rem); justify-content: start; column-gap: clamp(3rem, 4vw, 4rem); align-items: start; } }
/* Sous 992 px : seuls les « Guides pratiques » restent, après l'article (la partie CTA +
   sommaire, .article-aside-track, est masquée : le sommaire est repris sous le chapô).
   À partir de 992 px : la colonne prend la hauteur de l'article ; CTA et sommaire sont
   collants dans .article-aside-track, les guides restent en bas de colonne, hors de la
   partie collante (elle tient ainsi dans l'écran). */
.article-aside { max-width: 41.75rem; margin-bottom: 3rem; }
.article-aside-track { display: none; }
@media (min-width: 992px) {
  .article-aside { display: flex; flex-direction: column; gap: 1rem; align-self: stretch; max-width: none; margin-bottom: 0; }
  .article-aside-track { display: block; flex: 1 1 auto; }
  .article-aside-sticky { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 5rem; max-height: calc(100vh - 6rem); max-height: calc(100dvh - 6rem); overflow-y: auto; }
}
.article-aside-box { padding: 1rem 1.1rem; border: 1px solid #e5ded3; border-radius: .5rem; background: #fff; }
.article-aside-box--cta { background: #f6f1ea; border-color: #f6f1ea; }
.article-aside-title { font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif; font-size: 1.05rem;font-weight:600; line-height: 1.3; color: var(--cuvee); margin-bottom: .6rem; }
.article-aside-list { margin: 0; padding-left: 1.1rem; font-size: .9rem; line-height: 1.45; }
.article-aside-list li { margin-bottom: .4rem; }
.article-aside-list a { text-decoration: none; }
.article-aside-list a:hover, .article-aside-list a:focus-visible { text-decoration: underline; }
.archive-table td, .archive-table th { font-size: .9rem; }

/* --------------------------------------------------------------------------
   Articles : correctifs de la revue du 16/11/2026
   (gabarits article/show, _content, _toc_list, _prices, _annonces, _archives, _related).
   Miroir critique : les règles marquées « critique » (visibles au premier écran) ont
   leur copie dans components/_critical_css.html.twig, bloc du même nom. Les autres sont
   sous la ligne de flottaison ou ne décrivent qu'un état d'interaction.
   -------------------------------------------------------------------------- */

/* Ancres et éléments focalisés jamais cachés sous l'en-tête collant (tabulation arrière
   comprise). Remplace les scroll-margin-top des titres : les deux s'additionneraient. */
html { scroll-padding-top: 5rem; }

/* Focus clavier visible sur les boutons bordeaux (le seul changement de fond était à 1,3:1).
   La barre de navigation et la barre de filtres gardent leurs règles, plus précises. */
.btn-wine:focus-visible, .btn-outline-wine:focus-visible { outline: 2px solid var(--cuvee); outline-offset: 2px; }

/* Lien d'évitement : affiché par-dessus la page, sans pousser l'en-tête de 25 px */
.visually-hidden-focusable:focus { position: fixed; top: .5rem; left: .5rem; z-index: 1100; padding: .5rem 1rem; border-radius: 4px; background: #fff; color: var(--cuvee); outline: 2px solid var(--cuvee); outline-offset: 2px; }

/* Téléphone : titre et chapô un peu moins hauts, l'encart d'accès rapide remonte. Critique. */
@media (max-width: 575.98px) {
  .article-header h1 { font-size: 1.75rem; }
  .article-lead { font-size: 1.0625rem; line-height: 1.6; }
}

/* Tablette (768 à 991 px) : texte à 18 px dans la colonne de 668 px, soit 80 à 85 caractères
   par ligne au lieu de 93 à 96. Tailles en em, comme à partir de 992 px. Critique. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .article-main { font-size: 1.125rem; }
  .article-main .article-lead { font-size: 1.125em; }
  .article-main .article-prose h2 { font-size: 1.5em; }
  .article-main .article-prose h3 { font-size: 1.2em; }
  .article-main .article-prose table { font-size: .95em; }
}

/* Encart d'accès rapide sous 992 px : liens de 44 px de haut au doigt. Critique. */
@media (max-width: 991.98px) {
  .article-quick-list { row-gap: 0; }
  .article-quick-list a, .article-quick-list .article-quick-cta { display: inline-flex; align-items: center; gap: .35em; min-height: 2.75rem; }
  .article-quick-item-cta { margin: .25rem 0; }
}
/* Téléphone : une entrée par ligne. En rangée, deux entrées courtes tenaient ou non sur la
   même ligne selon la police chargée (saut de 44 px à l'arrivée de Lato). Critique. */
@media (max-width: 575.98px) { .article-quick-list { flex-direction: column; align-items: flex-start; } }

/* Sommaire repliable sous le chapô, sous 992 px (<details>, sans JS). Critique, y compris
   le masquage à partir de 992 px (sinon il apparaîtrait un instant sur ordinateur). */
.article-toc-mobile { max-width: 41.75rem; margin: 0 0 1.5rem; border: 1px solid #e5ded3; border-radius: .5rem; background: #fff; font-size: 1rem; }
.article-toc-mobile summary { padding: .7rem 1rem; font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif; font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--cuvee); cursor: pointer; }
.article-toc-mobile summary:focus-visible { outline: 2px solid var(--cuvee); outline-offset: 2px; border-radius: .5rem; }
.article-toc-mobile .article-aside-list { padding: 0 1rem .5rem 2.2rem; }
.article-toc-mobile .article-aside-list li { margin: 0; }
.article-toc-mobile .article-aside-list a { display: block; padding: .75rem 0; }
@media (min-width: 992px) { .article-toc-mobile { display: none; } }
/* Écran peu haut (portable 1280 x 720) : la partie collante de la colonne latérale (CTA +
   sommaire) se resserre pour tenir sans défiler. Critique. */
@media (min-width: 992px) and (max-height: 760px) {
  .article-aside-sticky { gap: .6rem; }
  .article-aside-sticky .article-aside-box { padding: .7rem 1rem; }
  .article-aside-sticky .article-aside-list li { margin-bottom: .2rem; }
}
/* « Guides pratiques » en fin d'article sous 992 px : liens de 44 px de haut au doigt */
@media (max-width: 991.98px) {
  .article-aside > .article-aside-box .article-aside-list li { margin: 0; }
  .article-aside > .article-aside-box .article-aside-list a { display: block; padding: .75rem 0; }
}

/* Sommaire : section en cours (aria-current posé par le contrôleur Stimulus « toc »).
   Filet à gauche de l'entrée : ni la graisse ni la largeur du texte ne changent. */
.article-aside-list li { position: relative; }
.article-aside-list a[aria-current]::before { content: ""; position: absolute; top: .15em; bottom: .15em; left: -2.2rem; width: 3px; border-radius: 0 2px 2px 0; background: var(--cuvee); }

/* Grand écran. Critique (premier intertitre, premier tableau et encart sont dans le premier écran). */
@media (min-width: 992px) {
  /* Rythme vertical en em : il suit le texte, qui grandit avec l'écran */
  .article-main .article-prose > :is(p, ul, ol) { margin-bottom: 1em; }
  .article-main .article-prose h2 { margin-top: 2em; margin-bottom: .5em; }
  .article-main .article-prose h3 { margin-top: 1.5em; margin-bottom: .4em; }
  /* Tableaux de 3 colonnes au plus : même largeur que les paragraphes (étirés sur toute la
     colonne, ils dépassaient le texte de 200 px) ; à 2 colonnes, intitulés à 30 %. À partir
     de 4 colonnes : toute la colonne. */
  .article-main .article-prose > .article-prose-table:not(:has(tr > :nth-child(4))) { max-width: 41.75rem; }
  .article-main .article-prose > .article-prose-table:not(:has(tr > :nth-child(3))) :is(th, td):first-child { width: 30%; }
  .article-main .article-prose > .article-faq { max-width: 41.75rem; }
  /* Bouton de dépôt de l'encart : la colonne latérale en porte déjà un à cette largeur */
  .article-quick-item-cta { display: none; }
}
/* Légende de tableau (<caption> saisie dans le contenu) : au-dessus, alignée à gauche. Critique. */
.article-prose caption { caption-side: top; padding: 0 0 .5rem; text-align: left; font-size: .875em; color: #6c665b; }
/* Intitulé de ligne (<th scope="row"> saisi dans le contenu) : même graisse que les cellules */
.article-prose tbody th { font-weight: 400; }

/* Téléphone : un tableau de 4 colonnes ou plus défile franchement au lieu de s'écraser à
   un mot par ligne (la ligne d'en-tête fait foi, pas un éventuel th de ligne). */
@media (max-width: 767.98px) {
  .article-prose-table table:has(tr:first-child > :nth-child(4)) { min-width: 36rem; }
  .article-prose-table table:has(tr:first-child > :nth-child(5)) { min-width: 44rem; }
}

/* Titres des blocs propres au site (prix, annonces en cours, à lire aussi) : taille des
   intertitres du corps. « Sources » (h2.h5) redevient un titre secondaire à toutes les largeurs. */
.article-section-title { font-size: 1.5rem; margin: 0 0 .75rem; }
@media (min-width: 768px) { .article-main .article-section-title { font-size: 1.5em; } }
.article-prose h2.h5 { font-size: 1.1em; margin-top: 1.5rem; }

/* Encadré des prix : 2 colonnes jusqu'à 320 px de large, valeurs alignées en bas quand
   un libellé passe sur deux lignes, unité écrite sous les chiffres. */
.article-price-box dl { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
.article-price-box dl > div { display: flex; flex-direction: column; min-width: 0; }
.article-price-box dd { margin-top: auto; overflow-wrap: anywhere; }
.article-price-unit { margin: .75rem 0 0; font-size: .875em; color: #3f3a33; }
@media (min-width: 992px) {
  .article-main .article-price-box dt { font-size: .75em; }
  .article-main .article-price-box dd { font-size: 1.25em; }
}

/* Blocs rendus dans l'article mais faits de cartes ou de tableaux (annonces en cours,
   anciennes annonces, à lire aussi) : leur contenu reste à 1rem quand le texte grandit. */
@media (min-width: 768px) { .article-main .article-extra > :not(h2) { font-size: 1rem; } }
/* Une ou deux annonces sans photo : illustration de remplacement moins haute (4/3 au lieu
   de 4/5), la carte isolée ne domine plus la section. */
@media (min-width: 768px) { .article-annonces .row:not(:has(> :nth-child(3))):not(:has(picture)) .placeholder-image { aspect-ratio: 4 / 3; } }
.article-related .article-card-list { margin-bottom: 0; }
.article-annonces-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.article-annonces-links a { display: inline-flex; align-items: center; gap: .35em; min-height: 2.75rem; font-weight: 700; text-decoration: none; }
.article-annonces-links a:hover, .article-annonces-links a:focus-visible { text-decoration: underline; }

/* FAQ : chaque question est un h3 qui garde l'aspect d'une question (texte courant, gras),
   séparée de la précédente par un filet pour être repérée au défilement. */
.article-prose .article-faq .article-faq-q { margin: 0 0 .25rem; padding-top: 1.25rem; font-family: 'Lato', 'Lato Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 1.0625em; font-weight: 700; line-height: 1.5; color: inherit; text-wrap: pretty; }
.article-prose .article-faq .article-faq-a + .article-faq-q { margin-top: 1.25rem; border-top: 1px solid #e5ded3; }
.article-prose .article-faq .article-faq-a { margin: 0; line-height: 1.7; }

/* Impression d'un article : le texte, ses tableaux et ses sources (avec leur adresse) ;
   ni navigation, ni boutons, ni annonces. */
@media print {
  body:has(.article-layout) :is(header.sticky-top, .breadcrumb-bar, footer, .cta-publish, .alert-dismissible, dialog),
  .article-quick, .article-toc-mobile, .article-aside, .article-annonces, .article-archives, .article-related { display: none !important; }
  html body:has(.article-layout) { background: #fff; color: #000; font-size: 11pt; }
  body:has(.article-layout) main { padding: 0 !important; }
  .article-layout { display: block; }
  .article-main { font-size: 11pt; }
  /* !important : les plafonds de largeur d'écran (41.75rem, 41.75rem) ont des sélecteurs plus précis */
  .article-main :is(.article-header, .article-lead, .article-prose, .article-price-box),
  .article-main .article-prose > * { max-width: none !important; }
  .article-main .article-hero, .article-main .article-prose > .article-figure { max-width: 55% !important; }
  .article-main .article-lead, .article-main .article-prose { color: #000; }
  .article-main :is(h1, h2, h3) { break-after: avoid; }
  .article-main :is(table, figure, .article-price-box, .article-faq-a) { break-inside: avoid; }
  .article-prose-table { overflow: visible; background: none; }
  .article-main a { color: inherit; }
  .article-sources a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
/* Fin du bloc « Articles : correctifs de la revue du 16/11/2026 » */

/* ==========================================================================
   Articles : images (image de tête, figures du texte, vignettes des listes)
   Fichiers et fiches : content/articles/README.md, section « Images ».
   Miroir critique (components/_critical_css.html.twig, règles identiques) :
   la règle de sécurité, .article-hero (+ img, figcaption, bloc 992 px),
   .article-credit et .article-card-media. Les figures du texte, toujours sous
   la ligne de flottaison, ne sont qu'ici.
   Largeurs en rem / em / % et jamais en ch ; l'attribut sizes (px et vw) est
   calculé dans ArticleExtension::PHOTO_SIZES et CARD_SIZES : à tenir d'accord.
   ========================================================================== */
/* Sécurité : aucune image ne déborde de sa colonne, d'où qu'elle vienne */
.article-prose img, .article-lead img, .article-hero img { max-width: 100%; height: auto; }
/* Image de tête : colonne de texte, ratio 3:2 réservé avant le chargement (width/height
   + aspect-ratio), fond d'attente de la couleur des encarts */
.article-hero { max-width: 41.75rem; margin: 0 0 1.5rem; }
.article-hero img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .5rem; background: #f6f1ea; }
.article-hero figcaption, .article-figure figcaption { margin-top: .5rem; font-size: .8125rem; line-height: 1.45; color: #6c665b; }
/* Place réservée sous l'image de tête (miroir critique) : la légende change de nombre de
   lignes à l'arrivée de Lato, ce qui poussait le chapô. */
/* Police système : le crédit ne se recompose pas à l'arrivée de Lato (aucun décalage). */
.article-hero figcaption { min-height: 4.35em; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; }
@media (min-width: 576px) { .article-hero figcaption { min-height: 2.9em; } }
.article-credit { font-size: .75rem; }
.article-credit a { color: inherit; }
/* Figures du texte (marqueur [[image:clé]] rendu par article/_figure.html.twig) */
.article-figure { margin: 1.75rem 0; }
.article-figure img { display: block; border-radius: .5rem; }
.article-figure--schema img { border-radius: 0; }
/* Schéma composé en hauteur : limité en largeur, sinon il occuperait deux écrans */
.article-figure--portrait img { max-width: min(100%, 30rem); }
.article-figure-missing { max-width: 41.75rem; }
@media (min-width: 992px) {
  /* Même plafond que les paragraphes : 41.75rem */
  .article-main .article-hero { max-width: 41.75rem; }
  .article-main .article-prose > .article-figure { max-width: 41.75rem; }
}
/* Vignette d'une carte de liste : bord à bord en haut de la carte (marges négatives =
   padding de .article-card), ratio 3:2 réservé ; cartes élargies (.acl-*) : image plus
   panoramique, pour que la carte ne double pas de hauteur */
.article-card-media { display: block; margin: -1rem -1.25rem .85rem; }
.article-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: calc(.5rem - 1px) calc(.5rem - 1px) 0 0; background: #f6f1ea; }
@media (min-width: 576px) and (max-width: 1199.98px) { .acl-sm-full .article-card-media img { aspect-ratio: 21 / 9; } }
@media (min-width: 992px) { .article-card--featured .article-card-media { margin: -1.5rem -1.75rem 1rem; } }
@media (min-width: 1200px) {
  .acl-lg-half .article-card-media img { aspect-ratio: 16 / 9; }
  .acl-lg-wide .article-card-media img { aspect-ratio: 21 / 9; }
  .acl-lg-full .article-card-media img { aspect-ratio: 3 / 1; }
}
.article-list-credits { margin: -1rem 0 2rem; font-size: .75rem; line-height: 1.5; color: #6c665b; }
.article-list-credits a { color: inherit; }

/* ==========================================================================
   Passe modern-web-guidance (2026-11). Les règles marquées « critique » ont un
   miroir dans templates/components/_critical_css.html.twig.
   ========================================================================== */

/* Cartes d'annonce : un seul lien (titre), étendu à la carte. Critique. */
.annonce-card .card-title a { color: inherit; text-decoration: none; }
.annonce-card .badge-sold,
.annonce-card .badge-wine-type { pointer-events: none; }
.annonce-card:has(.stretched-link:focus-visible) {
    outline: 2px solid var(--cuvee);
    outline-offset: 2px;
}
.annonce-card .stretched-link:focus-visible { outline: none; }

/* Navigation : page courante signalée autrement que par la couleur. Critique. */
/* [aria-current] : « page » sur la page elle-même, « true » sur « Guides » pour toute la
   section éditoriale (/domaines, /appellations, articles). */
.navbar-wine .nav-link[aria-current] { border-bottom-color: var(--or); color: #fff !important; }
.btn-publish[aria-current="page"] { box-shadow: 0 0 0 2px #fff; }

/* Titres équilibrés (critique), prose sans mot orphelin. */
h1, h2, h3, .h1, .h2, .h3 { text-wrap: balance; }
.article-prose :is(p, li), .article-lead, .seo-intro p { text-wrap: pretty; }

/* Recherche : élément <search> (bloc), champs prix / millésime groupés. Critique. */
search { display: block; }
fieldset.filter-bar-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-bar-field legend { float: none; width: auto; padding: 0; line-height: inherit; }

/* Galerie : image principale dans un vrai bouton. Critique. */
.gallery-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; }
.gallery-zoom:focus-visible { outline: 3px solid var(--cuvee); outline-offset: 3px; }
/* Miniature active : bordure or épaissie + coche (pas seulement une couleur) */
.gallery-thumb-btn { position: relative; }
.gallery-thumb-btn[aria-current="true"] { border-width: 3px; border-color: var(--or); }
.gallery-thumb-btn[aria-current="true"]::after {
    content: "\2713" / "";
    position: absolute; right: 2px; bottom: 2px;
    width: 1.1rem; height: 1.1rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--cuvee); color: #fff; font-size: .7rem; line-height: 1;
}

/* Fenêtres <dialog> (contact, signalement) : remplacent les modales Bootstrap. */
.vmv-dialog {
    width: min(500px, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    color: var(--chene);
    overflow-y: auto;
}
.vmv-dialog::backdrop { background: rgba(26, 26, 26, .6); }
.vmv-dialog-header {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem;
    position: sticky; top: 0; z-index: 1;
}
html .vmv-dialog-title { margin: 0; font-size: 1.25rem; color: #fff; }
.vmv-dialog-body { padding: 1.25rem; }
.vmv-dialog-footer { display: flex; justify-content: flex-end; gap: .5rem; padding: 0 1.25rem 1.25rem; }
/* Ouverture / fermeture animées (top layer), désactivées en mouvement réduit. */
@media (prefers-reduced-motion: no-preference) {
    .vmv-dialog { transition: opacity .2s, translate .2s, overlay .2s allow-discrete, display .2s allow-discrete; }
    .vmv-dialog:not([open]) { opacity: 0; translate: 0 1rem; }
    @starting-style { .vmv-dialog[open] { opacity: 0; translate: 0 1rem; } }
}

/* Défilement de la page bloqué sous une fenêtre modale sans toucher à body
   (pas de saut de barre de défilement) : overscroll-behavior. */
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { overflow: hidden; overscroll-behavior: contain; }

/* FAQ : réponses en hidden="until-found" (Ctrl+F). Le [hidden]{display:none!important}
   de Bootstrap empêcherait la recherche ; until-found masque par content-visibility. */
.accordion-collapse[hidden="until-found"] { display: block !important; }

/* Choix exclusifs en pastilles (couleur, type) : radios natifs .btn-check */
.choice-pills legend { float: none; font-size: .9rem; font-weight: 700; color: var(--chene); }
.choice-pills-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-check:checked + .btn-outline-wine { background: var(--cuvee); border-color: var(--cuvee); color: #fff; }
.btn-check:focus-visible + .btn { outline: 2px solid var(--cuvee); outline-offset: 2px; }

/* Dépôt : indicateur d'étapes en liste ordonnée, étapes terminées cliquables */
ol.wizard-steps { list-style: none; margin: 0 0 var(--sp-3); }
.wizard-step-btn {
    display: flex; flex-direction: column; align-items: center;
    padding: 0; border: 0; background: none; color: inherit; font: inherit;
}
.wizard-step-btn:disabled { cursor: default; opacity: 1; }
.wizard-step-btn:not(:disabled) { cursor: pointer; }
.wizard-step-btn:focus-visible { outline: 2px solid var(--cuvee); outline-offset: 4px; border-radius: 4px; }
/* Photos : le vrai champ fichier est masqué ; son focus se voit sur la zone de dépôt */
.photo-field:has(input[type="file"]:focus-visible) .image-dropzone { outline: 3px solid var(--cuvee); outline-offset: 2px; }
.image-preview-grid { padding: 0; }

/* Champs obligatoires : astérisque visuel (classe « required » posée par Symfony) */
.form-label.required::after,
.form-check-label.required::after { content: " *" / ""; color: #b02a37; }

/* Zones de texte qui s'agrandissent avec le contenu (ignoré ailleurs que Chromium) */
textarea.form-control { field-sizing: content; min-block-size: 4lh; max-block-size: 15lh; }

/* Autocomplétion des vins : options (role=option) */
.wine-autocomplete-item { cursor: pointer; }

/* Mode Contraste élevé (Windows) : focus visible même là où Bootstrap ne met qu'une ombre */
@media (forced-colors: active) {
    :focus-visible { outline: 2px solid Highlight !important; outline-offset: 2px; }
    .btn-check:checked + .btn { outline: 2px solid Highlight; }
}

/* Carte des régions : infobulle masquée par l'attribut hidden */
.map-tooltip[hidden] { display: none; }

/* Comment ça marche : trois étapes en liste, alignées à gauche, filet au-dessus */
html .how-steps h2 { font-size: 1.25rem; margin-bottom: .5rem; padding-top: var(--sp-2); border-top: 2px solid var(--cuvee); }
