/* Bacchus Agent : feuille des guides pratiques (/guides, /en/guides) */
:root {
  --vin: #33050f; --vin-clair: #5c1422; --vin-nuit: #1f0309; --chair: #ffffff;
  --encre: #2a0910; --gris: #6b5458; --filet: rgba(51, 5, 15, .16); --fond-doux: #faf6f4;
  --titre: "Oswald", "Arial Narrow", sans-serif;
  --logo: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --texte: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:not([data-inscription="ouverte"]) .si-ouverte { display: none !important; }
html[data-inscription="ouverte"] .si-liste { display: none !important; }
body { background: #fff; color: var(--encre); font-family: var(--texte); font-size: 17px; line-height: 1.7; border: 5px solid var(--vin-clair); min-height: 100vh; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 50; background: #fff; color: var(--vin); padding: 10px 14px; font-weight: 600; }
.evitement:focus { top: 12px; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }

/* Bandeau haut (aplat lie-de-vin) */
.g-tete { background: var(--vin); color: var(--chair); padding: 0 24px 56px; }
.g-barre { max-width: 1180px; margin: 0 auto; padding: 28px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.g-marque { font-family: var(--logo); font-weight: 400; font-size: 34px; line-height: .9; text-transform: uppercase; text-decoration: none; transform: scaleX(.84); transform-origin: left center; white-space: nowrap; }
.g-liens { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.g-liens a { font-family: var(--titre); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 9px 11px; }
.g-liens a:hover { background: rgba(255, 255, 255, .14); }
.g-liens .g-bouton { background: rgba(255, 255, 255, .2); }
.g-liens .g-bouton:hover { background: rgba(255, 255, 255, .3); }
.g-entete { max-width: 1180px; margin: 0 auto; padding-top: 56px; }
.g-fil { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; margin-bottom: 18px; }
.g-fil li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.g-fil a { text-decoration: none; }
.g-fil a:hover { text-decoration: underline; }
.g-tete h1 { font-family: var(--titre); font-weight: 200; text-transform: uppercase; font-size: clamp(36px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -.02em; max-width: 920px; overflow-wrap: break-word; hyphens: auto; }
.g-chapeau { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; max-width: 760px; margin-top: 20px; opacity: .92; }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }

/* Corps du guide */
.g-corps { max-width: 1228px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1040px) { .g-corps { grid-template-columns: 250px minmax(0, 720px); justify-content: space-between; } }
.g-sommaire { font-size: 14px; line-height: 1.45; }
.g-sommaire .mono { color: var(--gris); display: block; margin-bottom: 12px; }
.g-sommaire ol { list-style: none; border-left: 1px solid var(--filet); }
.g-sommaire li { margin: 0; }
.g-sommaire a { display: block; padding: 6px 0 6px 14px; text-decoration: none; color: var(--gris); }
.g-sommaire a:hover { color: var(--vin); }
@media (min-width: 1040px) { .g-sommaire > div { position: sticky; top: 24px; } }
@media (max-width: 1039px) { .g-sommaire { border: 1px solid var(--filet); padding: 18px 20px; background: var(--fond-doux); } }

.g-texte { min-width: 0; }
.g-texte > * + * { margin-top: 18px; }
.g-texte h2 { font-family: var(--titre); font-weight: 400; font-size: clamp(25px, 3vw, 32px); line-height: 1.18; letter-spacing: -.005em; color: var(--vin); margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--filet); scroll-margin-top: 20px; }
.g-texte h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.g-texte h3 { font-family: var(--titre); font-weight: 500; font-size: 20px; line-height: 1.3; color: var(--vin); margin-top: 32px; }
.g-texte p, .g-texte li { overflow-wrap: break-word; }
.g-texte ul, .g-texte ol { padding-left: 22px; }
.g-texte li + li { margin-top: 7px; }
.g-texte a { color: var(--vin-clair); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.g-texte a:hover { color: var(--vin); text-decoration-thickness: 2px; }
.g-texte strong { color: var(--vin); font-weight: 600; }
.g-texte small, .g-note { font-size: 14px; color: var(--gris); }
.g-texte sup a { text-decoration: none; font-family: var(--mono); font-size: 11px; padding: 0 2px; }

.g-essentiel { background: var(--fond-doux); border-left: 3px solid var(--vin); padding: 22px 24px; }
.g-essentiel .mono { color: var(--vin); display: block; margin-bottom: 10px; }
.g-essentiel ul { margin: 0; }
.g-attention { border: 1px solid var(--vin-clair); padding: 18px 22px; }
.g-attention .mono { color: var(--vin-clair); display: block; margin-bottom: 6px; }

.g-tableau { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--filet); }
.g-tableau table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.g-tableau th, .g-tableau td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--filet); }
.g-tableau th { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--vin); background: var(--fond-doux); }
.g-tableau tr:last-child td { border-bottom: 0; }
.g-tableau td:first-child strong { white-space: nowrap; }
.g-tableau caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--gris); padding: 10px 14px; }

.g-etapes { list-style: none; padding-left: 0 !important; counter-reset: etape; }
.g-etapes > li { counter-increment: etape; position: relative; padding-left: 48px; }
.g-etapes > li + li { margin-top: 16px; }
.g-etapes > li::before { content: counter(etape, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 13px; color: #fff; background: var(--vin); width: 32px; height: 26px; display: grid; place-items: center; }

.g-faq details { border-top: 1px solid var(--filet); padding: 14px 0; }
.g-faq details:last-child { border-bottom: 1px solid var(--filet); }
.g-faq summary { cursor: pointer; font-weight: 600; color: var(--vin); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; font-family: var(--mono); flex: none; }
.g-faq details[open] summary::after { content: "−"; }
.g-faq details p { margin-top: 10px; }

.g-bacchus { background: var(--vin); color: var(--chair); padding: 28px 28px 30px; margin-top: 52px !important; }
.g-bacchus h2 { color: var(--chair); border-top: 0; margin-top: 0; padding-top: 0; }
.g-bacchus p, .g-bacchus li { opacity: .94; }
.g-bacchus ul { margin-top: 14px; }
.g-bacchus a { color: var(--chair); }
.g-bacchus .g-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.g-bacchus .g-note { color: var(--chair); opacity: .9; margin-top: 14px; }
.g-bouton-plein { display: inline-flex; align-items: center; min-height: 46px; padding: 12px 18px; background: #fff; color: var(--vin) !important; font-family: var(--titre); font-weight: 500; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important; }
.g-bouton-plein:hover { background: #f1e6e8; }
.g-bouton-voile { display: inline-flex; align-items: center; min-height: 46px; padding: 12px 18px; border: 1px solid rgba(255, 255, 255, .55); font-family: var(--titre); font-weight: 500; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important; }
.g-bouton-voile:hover { background: rgba(255, 255, 255, .12); }

.g-sources ol { padding-left: 22px; font-size: 15px; line-height: 1.55; }
.g-sources li { overflow-wrap: anywhere; }
.g-avertissement { font-size: 14px; color: var(--gris); border-top: 1px solid var(--filet); padding-top: 16px; }

/* Autres guides */
.g-autres { max-width: 1228px; margin: 0 auto; padding: 20px 24px 80px; }
.g-autres h2 { font-family: var(--titre); font-weight: 300; font-size: clamp(24px, 3vw, 30px); color: var(--vin); margin-bottom: 20px; }
.g-cartes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.g-cartes a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 22px 22px; border: 1px solid var(--filet); text-decoration: none; transition: border-color .2s, background .2s; }
.g-cartes a:hover { border-color: var(--vin); background: var(--fond-doux); }
.g-cartes .mono { color: var(--gris); }
.g-cartes b { font-family: var(--titre); font-weight: 500; font-size: 19px; line-height: 1.25; color: var(--vin); }
.g-cartes span:last-child { font-size: 15px; line-height: 1.5; color: var(--gris); }

/* Sommaire de la rubrique */
.g-index { max-width: 1228px; margin: 0 auto; padding: 56px 24px 30px; }
.g-groupe + .g-groupe { margin-top: 48px; }
.g-groupe h2 { font-family: var(--titre); font-weight: 300; font-size: clamp(24px, 3vw, 30px); color: var(--vin); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--filet); }
.g-index-note { max-width: 760px; color: var(--gris); font-size: 15px; margin-top: 44px; }

/* Pied */
.g-pied { background: var(--vin); color: var(--chair); padding: 40px 24px 46px; }
.g-pied > div { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; opacity: .85; }
.g-pied a { text-decoration: none; }
.g-pied a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  body { border-width: 3px; font-size: 16px; }
  .g-tete { padding: 0 16px 42px; }
  .g-barre { padding-top: 20px; }
  .g-marque { font-size: 28px; }
  .g-liens a { padding: 8px 8px; font-size: 12px; letter-spacing: .06em; }
  .g-liens .g-masque-tel { display: none; }
  .g-entete { padding-top: 38px; }
  .g-corps { padding: 36px 16px 30px; gap: 28px; }
  .g-bacchus { padding: 22px 18px 24px; margin-left: -4px; margin-right: -4px; }
  .g-autres, .g-index { padding-left: 16px; padding-right: 16px; }
  .g-pied { padding: 32px 16px 38px; }
  .g-etapes > li { padding-left: 42px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { border: 0; }
  .g-tete { background: #fff; color: #000; padding-bottom: 20px; }
  .g-liens, .g-sommaire, .g-autres, .g-pied, .g-bacchus .g-actions { display: none; }
  .g-bacchus { background: #fff; color: #000; border: 1px solid #000; }
}
