/* =========================================================================
   THE HOUSE POUR / design system
   Metaphore de nommage : le snug d'un pub.
   comptoir (counter), rail de bar (rail), arriere-bar (backbar),
   bouteille (bottle), tournee (round), sous-bock (coaster), cave (cellar).
   Prefixe unique : .snug-
   Zero requete externe : piles de polices systeme uniquement.
   ========================================================================= */

/* ---------- Reset ---------- */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
img{display:block;max-width:100%;height:auto}
ul,ol{list-style:none}
a{color:inherit;text-decoration:none}
button{font:inherit;background:none;border:none;cursor:pointer}

/* ---------- Variables ---------- */
:root{
  /* fonds et encres */
  --creme:#f8f1e2;
  --creme-profond:#efe4cd;
  --papier:#fffbf2;
  --encre:#2b1f14;
  --encre-douce:#5b4a38;
  --encre-pale:#8a7660;
  --filet:#e3d6bd;
  --filet-clair:#eee4d2;

  /* accents : ambre + un vert sourd */
  --ambre:#d78b12;
  --ambre-clair:#eda52f;
  --ambre-lavis:#fbecd0;
  --ambre-sombre:#a76708;
  --sauge:#54726b;
  --sauge-profonde:#3c5750;
  --sauge-lavis:#e3ebe6;

  /* rayons */
  --rond:16px;
  --rond-large:22px;
  --rond-court:10px;
  --rond-jeton:999px;

  /* ombres, trois niveaux */
  --relief-1:0 2px 6px rgba(59,40,18,.06);
  --relief-2:0 10px 28px rgba(59,40,18,.11);
  --relief-3:0 26px 62px rgba(59,40,18,.17);

  /* mouvements */
  --glisse:.28s cubic-bezier(.4,0,.2,1);
  --glisse-longue:.45s cubic-bezier(.4,0,.2,1);

  /* polices : slab pour les titres, sans ronde pour la lecture */
  --face-slab:Rockwell,"Rockwell Nova",Superclarendon,"Bookman Old Style","Roboto Slab","Zilla Slab",Georgia,serif;
  --face-ronde:"Avenir Next",Avenir,Futura,"Century Gothic","URW Gothic","Trebuchet MS","Segoe UI",sans-serif;

  /* mesures */
  --comptoir:1240px;
  --marge:20px;
}

/* ---------- Base ---------- */
body{
  font-family:var(--face-ronde);
  background:var(--creme);
  color:var(--encre);
  line-height:1.68;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

h1,h2,h3,h4{font-family:var(--face-slab);font-weight:700;line-height:1.14;letter-spacing:-.005em}
h1{font-size:clamp(36px,5vw,60px)}
h2{font-size:clamp(28px,3.6vw,44px)}
h3{font-size:clamp(20px,2.2vw,27px);line-height:1.22}
h4{font-size:clamp(17px,1.6vw,20px);line-height:1.3}

::selection{background:rgba(215,139,18,.24);color:var(--encre)}

a:focus-visible,button:focus-visible{
  outline:3px solid var(--ambre);
  outline-offset:3px;
  border-radius:6px;
}

.snug-invisible{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.snug-saut{
  position:absolute;left:16px;top:-120%;z-index:999;
  background:var(--encre);color:var(--creme);
  padding:12px 22px;border-radius:0 0 var(--rond-court) var(--rond-court);
  font-size:14px;font-weight:600;transition:top var(--glisse);
}
.snug-saut:focus{top:0}

/* ---------- Comptoir : conteneur centre ---------- */
.snug-counter{
  width:100%;max-width:var(--comptoir);
  margin:0 auto;padding:0 var(--marge);
}
@media(min-width:768px){:root{--marge:32px}}
@media(min-width:1200px){:root{--marge:40px}}

/* ---------- Rythme de service (sections) ---------- */
.snug-service{padding:80px 0}
@media(min-width:900px){.snug-service{padding:120px 0}}
.snug-service--creme{background:var(--creme-profond)}
.snug-service--papier{background:var(--papier)}
.snug-service--serre{padding:64px 0}
@media(min-width:900px){.snug-service--serre{padding:88px 0}}

/* ---------- Ardoise : etiquette de section ---------- */
.snug-slate{
  display:inline-flex;align-items:center;gap:12px;
  font-family:var(--face-ronde);
  font-size:12px;font-weight:700;
  letter-spacing:.19em;text-transform:uppercase;
  color:var(--sauge-profonde);
  margin-bottom:16px;
}
.snug-slate::before{
  content:"";width:34px;height:3px;border-radius:3px;
  background:linear-gradient(90deg,var(--ambre),var(--ambre-clair));
}
.snug-slate--ambre{color:var(--ambre-sombre)}
.snug-slate--ambre::before{background:var(--sauge)}

.snug-service__tete{max-width:720px;margin-bottom:44px}
.snug-service__tete h2{margin-bottom:14px}
.snug-service__chapo{color:var(--encre-douce);font-size:clamp(16px,1.5vw,19px)}
@media(min-width:900px){.snug-service__tete{margin-bottom:56px}}

/* ---------- Rail : en-tete + navigation ---------- */
.snug-rail{
  position:sticky;top:0;z-index:60;
  background:rgba(248,241,226,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--filet);
  box-shadow:var(--relief-1);
}
.snug-rail__inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;padding:16px 0;flex-wrap:wrap;
}
.snug-rail__mark{display:flex;flex-direction:column;gap:2px;min-width:0}
.snug-rail__nom{
  font-family:var(--face-slab);font-weight:700;
  font-size:clamp(21px,2.6vw,27px);line-height:1.05;
  color:var(--encre);letter-spacing:-.01em;
}
.snug-rail__nom em{font-style:normal;color:var(--ambre-sombre)}
.snug-rail__ligne{
  font-size:11.5px;letter-spacing:.15em;text-transform:uppercase;
  color:var(--encre-pale);font-weight:600;
}
.snug-rail__routes{
  display:flex;flex-wrap:wrap;align-items:center;gap:4px;
}
.snug-rail__route{
  display:inline-block;padding:9px 14px;border-radius:var(--rond-court);
  font-size:14.5px;font-weight:600;color:var(--encre-douce);
  transition:color var(--glisse),background var(--glisse);
  position:relative;
}
.snug-rail__route:hover{color:var(--encre);background:var(--ambre-lavis)}
.snug-rail__route.is-pouring{color:var(--ambre-sombre)}
.snug-rail__route.is-pouring::after{
  content:"";position:absolute;left:14px;right:14px;bottom:3px;
  height:3px;border-radius:3px;background:var(--ambre);
}
@media(max-width:767px){
  .snug-rail__inner{padding:14px 0 10px}
  .snug-rail__routes{gap:2px;overflow-x:auto;width:100%;padding-bottom:4px;flex-wrap:nowrap}
  .snug-rail__route{white-space:nowrap;padding:8px 11px;font-size:14px}
}

/* ---------- Taproom : heros pleine largeur ---------- */
.snug-taproom{
  position:relative;isolation:isolate;
  min-height:clamp(250px,30vh,280px);
  display:flex;align-items:flex-end;
  overflow:hidden;
}
.snug-taproom__photo{
  position:absolute;inset:0;z-index:0;
  width:100%;height:100%;object-fit:cover;
}
.snug-taproom__voile{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(28,18,8,.34) 0%,rgba(28,18,8,.52) 46%,rgba(24,15,6,.86) 100%);
}
.snug-taproom__inner{position:relative;z-index:2;padding-top:22px;padding-bottom:20px}
@media(min-width:900px){.snug-taproom__inner{padding-top:26px;padding-bottom:22px}}
.snug-taproom__kicker{
  display:inline-flex;align-items:center;gap:10px;
  font-size:12px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  color:#f6d79a;margin-bottom:10px;
}
.snug-taproom__kicker::before{
  content:"";width:30px;height:3px;border-radius:3px;background:var(--ambre-clair);
}
.snug-taproom h1{
  color:#fdf6e8;max-width:26ch;text-shadow:0 2px 22px rgba(20,12,4,.45);
  font-size:clamp(30px,3.2vw,40px);
}
.snug-taproom h1 em{font-style:normal;color:var(--ambre-clair)}
.snug-taproom__lede{
  margin-top:10px;max-width:105ch;
  color:#efe2cd;font-size:clamp(15px,1.35vw,17px);line-height:1.6;
}

/* Jiggers : les trois chiffres du heros, en bande fine */
.snug-jiggers{
  display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;
}
@media(min-width:620px){.snug-jiggers{gap:12px}}
.snug-jigger{
  display:flex;align-items:baseline;gap:9px;flex:0 1 auto;
  background:rgba(255,250,240,.1);
  border:1px solid rgba(246,215,154,.3);
  border-radius:var(--rond);
  padding:7px 14px;
  backdrop-filter:blur(6px);
}
.snug-jigger__num{
  font-family:var(--face-slab);font-weight:700;
  font-size:clamp(18px,1.7vw,21px);line-height:1.15;color:var(--ambre-clair);
  white-space:nowrap;
}
.snug-jigger__note{
  font-size:12.5px;line-height:1.3;
  color:#e6d8c1;
}

/* La section qui suit directement le heros remonte vers le premier ecran :
   l'acheteur doit voir la grille des rubriques sans derouler. */
.snug-taproom + .snug-service{padding-top:26px}
@media(min-width:900px){.snug-taproom + .snug-service{padding-top:30px}}
.snug-taproom + .snug-service .snug-service__tete{margin-bottom:20px;max-width:900px}
.snug-taproom + .snug-service .snug-service__tete h2{font-size:clamp(24px,2.4vw,31px);margin-bottom:6px}
.snug-taproom + .snug-service .snug-slate{margin-bottom:8px}
.snug-taproom + .snug-service .snug-service__chapo{font-size:clamp(15px,1.3vw,16.5px);line-height:1.5}
@media(min-width:900px){.snug-taproom + .snug-service .snug-service__tete{margin-bottom:22px}}
/* Tuiles de rubrique en bandeau large : la rangee entiere tient dans le premier ecran. */
.snug-taproom + .snug-service .snug-bottle__shot{aspect-ratio:22/10}
.snug-taproom + .snug-service .snug-bottle__body{padding:18px 22px 20px}

/* ---------- Backbar : grille des rubriques ---------- */
.snug-backbar{
  display:grid;gap:24px;grid-template-columns:1fr;
}
@media(min-width:600px){.snug-backbar{grid-template-columns:repeat(2,1fr);gap:28px}}
@media(min-width:1000px){.snug-backbar{grid-template-columns:repeat(3,1fr);gap:32px}}

.snug-bottle{
  display:flex;flex-direction:column;
  background:var(--papier);
  border:1px solid var(--filet);
  border-radius:var(--rond-large);
  overflow:hidden;
  box-shadow:var(--relief-1);
  transition:transform var(--glisse),box-shadow var(--glisse),border-color var(--glisse);
}
.snug-bottle:hover{transform:translateY(-6px);box-shadow:var(--relief-3);border-color:var(--ambre)}
.snug-bottle__shot{
  aspect-ratio:1/1;width:100%;object-fit:cover;
  transition:transform var(--glisse-longue);
}
.snug-bottle:hover .snug-bottle__shot{transform:scale(1.045)}
.snug-bottle__cadre{overflow:hidden;background:var(--creme-profond)}
.snug-bottle__body{padding:24px 24px 26px;display:flex;flex-direction:column;flex:1}
.snug-bottle__name{margin-bottom:10px}
.snug-bottle__name a{transition:color var(--glisse)}
.snug-bottle:hover .snug-bottle__name a{color:var(--ambre-sombre)}
.snug-bottle__note{color:var(--encre-douce);font-size:15.5px;flex:1}
.snug-bottle__more{
  margin-top:18px;display:inline-flex;align-items:center;gap:8px;
  font-size:13.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--sauge-profonde);transition:gap var(--glisse),color var(--glisse);
}
.snug-bottle__more::after{content:"›";font-size:19px;line-height:1}
.snug-bottle:hover .snug-bottle__more{gap:12px;color:var(--ambre-sombre)}

/* ---------- Tab : le flux d'articles date ---------- */
.snug-tab{display:grid;gap:22px;grid-template-columns:1fr}
@media(min-width:640px){.snug-tab{grid-template-columns:repeat(2,1fr);gap:26px}}
@media(min-width:1040px){.snug-tab{grid-template-columns:repeat(3,1fr);gap:30px}}

.snug-round{
  display:flex;flex-direction:column;
  background:var(--papier);
  border:1px solid var(--filet-clair);
  border-radius:var(--rond-large);
  overflow:hidden;
  box-shadow:var(--relief-1);
  transition:transform var(--glisse),box-shadow var(--glisse);
}
.snug-round:hover{transform:translateY(-5px);box-shadow:var(--relief-2)}
.snug-round__cadre{position:relative;overflow:hidden;background:var(--creme-profond)}
.snug-round__coaster{
  aspect-ratio:1/1;width:100%;object-fit:cover;
  transition:transform var(--glisse-longue);
}
.snug-round:hover .snug-round__coaster{transform:scale(1.04)}
.snug-round__chip{
  position:absolute;left:14px;top:14px;
  background:var(--ambre);color:#2b1f14;
  font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  padding:6px 12px;border-radius:var(--rond-jeton);
  box-shadow:var(--relief-1);
}
.snug-round__chip--sauge{background:var(--sauge);color:#fffbf2}
.snug-round__body{padding:20px 22px 24px;display:flex;flex-direction:column;flex:1}
.snug-round__when{
  font-size:12.5px;font-weight:700;letter-spacing:.1em;
  color:var(--encre-pale);margin-bottom:9px;
  font-variant-numeric:tabular-nums;
}
.snug-round__title{font-size:clamp(18px,1.9vw,21px);line-height:1.25;margin-bottom:9px}
.snug-round__title a{transition:color var(--glisse)}
.snug-round:hover .snug-round__title a{color:var(--ambre-sombre)}
.snug-round__lede{font-size:15px;color:var(--encre-douce);flex:1}

/* Variante liste, utilisee sur les pages de rubrique */
.snug-tab--liste{grid-template-columns:1fr;gap:20px}
@media(min-width:760px){.snug-tab--liste{grid-template-columns:1fr}}
.snug-tab--liste .snug-round{flex-direction:row;align-items:stretch}
.snug-tab--liste .snug-round__cadre{flex:0 0 clamp(120px,26vw,230px)}
.snug-tab--liste .snug-round__coaster{height:100%;aspect-ratio:1/1}
.snug-tab--liste .snug-round__chip{position:static;display:inline-block;margin-bottom:10px;box-shadow:none}
.snug-tab--liste .snug-round__body{padding:20px 24px}
@media(max-width:560px){
  .snug-tab--liste .snug-round{flex-direction:column}
  .snug-tab--liste .snug-round__cadre{flex:none}
  .snug-tab--liste .snug-round__coaster{aspect-ratio:16/10}
}

/* ---------- Trail : fil d'Ariane ---------- */
.snug-trail{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  font-size:13px;color:var(--encre-pale);
  padding:22px 0 0;
}
.snug-trail a{transition:color var(--glisse)}
.snug-trail a:hover{color:var(--ambre-sombre)}
.snug-trail span{opacity:.5}
.snug-trail strong{color:var(--encre-douce);font-weight:600}

/* ---------- Fronton : entete des pages interieures ---------- */
.snug-fronton{
  background:linear-gradient(180deg,var(--creme-profond) 0%,var(--creme) 100%);
  border-bottom:1px solid var(--filet);
  padding:0 0 56px;
}
.snug-fronton__inner{max-width:800px;padding-top:26px}
.snug-fronton h1{margin-bottom:18px}
.snug-fronton__meta{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  margin-bottom:20px;
}
.snug-fronton__intro p{color:var(--encre-douce);font-size:clamp(16px,1.6vw,19px);margin-bottom:14px}
.snug-fronton__intro p:last-child{margin-bottom:0}
@media(min-width:900px){.snug-fronton{padding-bottom:72px}}

.snug-marque{
  display:inline-block;background:var(--ambre-lavis);color:var(--ambre-sombre);
  border:1px solid rgba(215,139,18,.3);
  font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  padding:6px 13px;border-radius:var(--rond-jeton);
}
.snug-marque--sauge{background:var(--sauge-lavis);color:var(--sauge-profonde);border-color:rgba(84,114,107,.28)}
.snug-date{
  font-size:13px;font-weight:700;letter-spacing:.09em;color:var(--encre-pale);
  font-variant-numeric:tabular-nums;
}

/* ---------- Sheet : corps d'article ---------- */
.snug-sheet{
  max-width:760px;margin:0 auto;padding:64px 0 24px;
  font-size:17.5px;
}
@media(min-width:900px){.snug-sheet{padding:80px 0 32px}}
.snug-sheet p{margin-bottom:22px;color:#3a2b1d}
.snug-sheet h2{margin:48px 0 16px}
.snug-sheet h3{margin:34px 0 12px}
.snug-sheet h2:first-child,.snug-sheet h3:first-child{margin-top:0}
.snug-sheet strong{font-weight:700;color:var(--encre)}
.snug-sheet a{
  color:var(--ambre-sombre);font-weight:600;
  border-bottom:2px solid rgba(215,139,18,.35);
  transition:border-color var(--glisse),background var(--glisse);
}
.snug-sheet a:hover{border-color:var(--ambre);background:var(--ambre-lavis)}
.snug-sheet ul{margin:0 0 24px}
.snug-sheet ul li{
  position:relative;padding:9px 0 9px 30px;
  border-bottom:1px solid var(--filet-clair);color:#3a2b1d;
}
.snug-sheet ul li::before{
  content:"";position:absolute;left:4px;top:19px;
  width:9px;height:9px;border-radius:50%;background:var(--ambre);
}

.snug-steps{counter-reset:snugstep;margin:0 0 26px}
.snug-steps li{
  counter-increment:snugstep;position:relative;
  padding:14px 0 14px 52px;border-bottom:1px solid var(--filet-clair);
  color:#3a2b1d;
}
.snug-steps li::before{
  content:counter(snugstep);
  position:absolute;left:0;top:12px;
  width:34px;height:34px;border-radius:50%;
  background:var(--sauge);color:#fffbf2;
  font-family:var(--face-slab);font-weight:700;font-size:15px;
  display:flex;align-items:center;justify-content:center;
}

.snug-pull{
  margin:38px 0;padding:26px 28px;
  background:var(--ambre-lavis);
  border-left:5px solid var(--ambre);
  border-radius:0 var(--rond) var(--rond) 0;
  font-family:var(--face-slab);font-size:clamp(19px,2.1vw,23px);
  line-height:1.42;color:var(--encre);
  box-shadow:var(--relief-1);
}

.snug-note{
  margin:34px 0;padding:24px 26px;
  background:var(--sauge-lavis);
  border:1px solid rgba(84,114,107,.24);
  border-radius:var(--rond);
}
.snug-note h4{margin-bottom:9px;color:var(--sauge-profonde)}
.snug-note p:last-child{margin-bottom:0}

.snug-plate{margin:38px 0}
.snug-plate img{border-radius:var(--rond);box-shadow:var(--relief-2);width:100%}
.snug-plate figcaption{
  margin-top:12px;font-size:13.5px;color:var(--encre-pale);
  padding-left:14px;border-left:3px solid var(--ambre);
}

.snug-signature{
  margin-top:44px;padding-top:24px;border-top:1px solid var(--filet);
  font-size:14px;color:var(--encre-pale);
}

/* ---------- Nextround : suite de lecture ---------- */
.snug-nextround{
  display:grid;gap:18px;grid-template-columns:1fr;
  margin-top:12px;
}
@media(min-width:760px){.snug-nextround{grid-template-columns:repeat(3,1fr);gap:22px}}
.snug-nextround__lien{
  display:block;background:var(--papier);
  border:1px solid var(--filet);border-radius:var(--rond);
  padding:20px 22px;box-shadow:var(--relief-1);
  transition:transform var(--glisse),box-shadow var(--glisse),border-color var(--glisse);
}
.snug-nextround__lien:hover{transform:translateY(-4px);box-shadow:var(--relief-2);border-color:var(--ambre)}
.snug-nextround__quoi{
  display:block;font-size:11.5px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--sauge-profonde);margin-bottom:8px;
}
.snug-nextround__titre{font-family:var(--face-slab);font-weight:700;font-size:18px;line-height:1.25}

/* ---------- Cellar : pied de page ---------- */
.snug-cellar{
  background:var(--encre);color:#e2d5c1;
  padding:64px 0 30px;
}
.snug-cellar__grid{
  display:grid;gap:38px;grid-template-columns:1fr;margin-bottom:44px;
}
@media(min-width:640px){.snug-cellar__grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1000px){.snug-cellar__grid{grid-template-columns:1.7fr 1fr 1fr 1fr;gap:44px}}
.snug-cellar__nom{
  font-family:var(--face-slab);font-weight:700;font-size:24px;color:#fdf6e8;margin-bottom:12px;
}
.snug-cellar__nom em{font-style:normal;color:var(--ambre-clair)}
.snug-cellar__mot{font-size:14.5px;color:#b8a68f;max-width:36ch;line-height:1.7}
.snug-cellar h4{
  font-family:var(--face-ronde);font-size:12px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;color:#fdf6e8;margin-bottom:16px;
}
.snug-cellar__shelf li{margin-bottom:10px}
.snug-cellar__shelf a{
  font-size:14.5px;color:#b8a68f;transition:color var(--glisse);
}
.snug-cellar__shelf a:hover{color:var(--ambre-clair)}
.snug-cellar__foot{
  border-top:1px solid rgba(253,246,232,.12);padding-top:24px;
  display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;
  font-size:13px;color:#95826c;
}
.snug-cellar__foot p{max-width:62ch}

/* ---------- Preferences systeme ---------- */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
}
@media(pointer:coarse){
  .snug-rail__route,.snug-cellar__shelf a{min-height:44px;display:flex;align-items:center}
}
@media print{
  .snug-rail,.snug-cellar,.snug-nextround,.snug-taproom__voile{display:none}
  body{background:#fff}
}
