/* Le Refuge · Philippeville
   Couleurs tirées du logo : crème et brun, plus la lueur des guirlandes. */

:root {
  --creme: #fbf3e2;
  --creme-fonce: #f3e8d0;
  --brun: #542a14;
  --brun-doux: #7a5237;
  --nuit: #170e09;
  --nuit-2: #24160d;
  --lueur: #e9b56a;
  --filet: rgba(84, 42, 20, .28);

  --serif: "Alegreya", "Iowan Old Style", Georgia, serif;
  --caps: "Josefin Sans", "Gill Sans", "Trebuchet MS", sans-serif;

  --marge: clamp(20px, 5vw, 64px);
  --doux: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--brun);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05vw + 13px, 20px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

::selection { background: var(--brun); color: var(--creme); }

:focus-visible { outline: 2px solid var(--lueur); outline-offset: 4px; border-radius: 2px; }

/* ───────── Neige ───────── */

#neige {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  pointer-events: none;
}

/* ───────── Barre ───────── */

.barre {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--marge);
  font-family: var(--caps);
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--creme);
  transition: background-color .5s var(--doux), padding .5s var(--doux), box-shadow .5s var(--doux);
}
.barre.posee {
  padding-block: 12px;
  background: rgba(23, 14, 9, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(251, 243, 226, .08);
}
.barre a { text-decoration: none; padding: 6px 0; position: relative; }
.barre-nom {
  font-weight: 600;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .5s var(--doux), transform .5s var(--doux);
}
.barre.posee .barre-nom { opacity: 1; transform: none; }
.barre nav { display: flex; gap: clamp(16px, 3vw, 36px); margin-left: auto; }
.barre nav a::after {
  content: "";
  position: absolute;
  left: 0; right: .22em; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--doux);
}
.barre nav a:hover::after, .barre nav a:focus-visible::after { transform: scaleX(1); }

/* ───────── Accueil ───────── */

.accueil {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px var(--marge) clamp(150px, 22vh, 240px);
  color: var(--creme);
  text-align: center;
  background:
    radial-gradient(90% 55% at 50% 100%, rgba(233, 181, 106, .20), transparent 70%),
    radial-gradient(60% 40% at 50% 38%, rgba(122, 82, 55, .22), transparent 70%),
    linear-gradient(180deg, #100a07 0%, var(--nuit) 45%, var(--nuit-2) 100%);
  overflow: hidden;
  isolation: isolate;
}

.guirlande {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 150px;
  overflow: visible;
  z-index: 1;
}
.guirlande path { fill: none; stroke: rgba(251, 243, 226, .22); stroke-width: 1; }
.guirlande circle {
  fill: var(--lueur);
  filter: drop-shadow(0 0 5px rgba(233, 181, 106, .9)) drop-shadow(0 0 14px rgba(233, 181, 106, .45));
  animation: scintille 4.5s ease-in-out infinite;
}
@keyframes scintille {
  0%, 100% { opacity: 1; }
  45% { opacity: .45; }
  60% { opacity: .9; }
}

.accueil-contenu { position: relative; z-index: 3; width: 100%; max-width: 720px; }

.surtitre, .etiquette {
  font-family: var(--caps);
  font-size: clamp(11px, .3vw + 10px, 13px);
  letter-spacing: .34em;
  text-transform: uppercase;
}
.surtitre { color: var(--lueur); padding-left: .34em; }

.accueil h1 { margin: clamp(22px, 4vh, 40px) auto clamp(20px, 3.5vh, 34px); width: min(480px, 80vw, 50vh); min-width: 240px; }
.accueil h1 img { width: 100%; }

.accroche {
  font-style: italic;
  font-size: clamp(20px, 1.2vw + 15px, 27px);
  line-height: 1.3;
  color: rgba(251, 243, 226, .9);
}

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(28px, 5vh, 44px); }

.bouton {
  display: inline-block;
  padding: 15px 28px 13px;
  border: 1px solid rgba(251, 243, 226, .5);
  border-radius: 2px;
  font-family: var(--caps);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--creme);
  transition: background-color .4s var(--doux), color .4s var(--doux), border-color .4s var(--doux), transform .4s var(--doux);
}
.bouton:hover { background: rgba(251, 243, 226, .1); border-color: var(--creme); transform: translateY(-2px); }
.bouton.plein { background: var(--creme); border-color: var(--creme); color: var(--brun); }
.bouton.plein:hover { background: #fff; border-color: #fff; }

/* Entrée en scène au chargement */
.entree { opacity: 0; transform: translateY(18px); animation: entre 1.3s var(--doux) forwards; }
.e1 { animation-delay: .25s; }
.e2 { animation-delay: .45s; }
.e3 { animation-delay: .8s; }
.e4 { animation-delay: 1s; }
@keyframes entre { to { opacity: 1; transform: none; } }

/* Crêtes et sapins */
.cretes {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: clamp(120px, 20vh, 220px);
  z-index: 2;
}
.crete.c1 { fill: #2b1a10; }
.crete.c2 { fill: #3a2315; }
.crete.c3 { fill: var(--creme); }

.sapins {
  position: absolute;
  inset: auto 0 clamp(12px, 2.6vh, 28px) 0;
  z-index: 2;
  height: clamp(50px, 9vh, 96px);
  pointer-events: none;
}
.sapins svg { position: absolute; bottom: 0; height: 100%; width: auto; fill: #20130b; }
.sapins svg:nth-child(1) { left: 3%; height: 92%; }
.sapins svg:nth-child(2) { left: 8%; height: 62%; bottom: -4%; }
.sapins svg:nth-child(3) { left: 14.5%; height: 78%; bottom: 4%; }
.sapins svg:nth-child(4) { right: 21%; height: 55%; bottom: 2%; }
.sapins svg:nth-child(5) { right: 13%; height: 100%; bottom: 6%; }
.sapins svg:nth-child(6) { right: 7.5%; height: 70%; }
.sapins svg:nth-child(7) { right: 2%; height: 84%; bottom: 8%; }

/* ───────── Présentation ───────── */

.presentation { padding: clamp(56px, 9vw, 120px) var(--marge) clamp(64px, 9vw, 120px); }

.colonne { max-width: 760px; margin: 0 auto; text-align: center; }

.etiquette { color: var(--brun-doux); padding-left: .34em; }

.grand-texte {
  margin-top: 22px;
  font-size: clamp(27px, 2.4vw + 17px, 46px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.texte { margin: 26px auto 0; max-width: 600px; color: var(--brun-doux); text-wrap: pretty; }

.devise {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 40px;
  font-family: var(--caps);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.devise i { width: 28px; height: 1px; background: var(--filet); }

.vitrine {
  max-width: 1240px;
  margin: clamp(48px, 7vw, 88px) auto 0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(84, 42, 20, .55);
}
.vitrine img { width: 100%; transform: scale(1.06); transition: transform 2.4s var(--doux); }
.vitrine.vu img { transform: none; }

/* ───────── La carte ───────── */

.carte {
  position: relative;
  padding: clamp(40px, 6vw, 72px) var(--marge) clamp(72px, 9vw, 120px);
}

.carte-entete, .infos-entete { text-align: center; }

h2 {
  margin-top: 14px;
  font-size: clamp(38px, 3.6vw + 20px, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.carte-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 88px);
  max-width: 1080px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  align-items: start;
}
.carte-col { display: grid; gap: clamp(36px, 4vw, 52px); }

.rubrique h3 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  font-family: var(--caps);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.rubrique h3::after { content: ""; flex: 1; height: 1px; background: var(--filet); transform: translateY(-2px); }
.rubrique h3.centre { justify-content: center; margin-bottom: 6px; padding-left: .3em; }
.rubrique h3.centre::after { display: none; }

.encadre {
  padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 32px) clamp(24px, 3vw, 34px);
  border: 1px solid var(--brun);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
}
.note { margin-bottom: 22px; text-align: center; font-style: italic; font-size: .9em; color: var(--brun-doux); }

.plat + .plat { margin-top: 20px; }
.plat-ligne { display: flex; align-items: baseline; gap: 10px; }
.plat h4 { font-size: 1.12em; font-weight: 700; line-height: 1.25; }
.plat-ligne i {
  flex: 1;
  min-width: 24px;
  height: 1px;
  transform: translateY(-4px);
  background-image: radial-gradient(circle, var(--brun) .6px, transparent .9px);
  background-size: 5px 1px;
  background-repeat: repeat-x;
  opacity: .55;
}
.plat b { font-weight: 700; font-size: 1.05em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.plat p { margin-top: 2px; font-size: .92em; color: var(--brun-doux); padding-right: 3.2em; }
.plat .option { font-style: italic; }

.carte-pied {
  margin-top: clamp(40px, 5vw, 60px);
  text-align: center;
  font-style: italic;
  font-size: .88em;
  color: var(--brun-doux);
}

/* Poteau indicateur */
.poteau {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin: clamp(56px, 7vw, 88px) auto 0;
  padding: 14px 0 46px;
}
.mat {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 12px;
  margin-left: -6px;
  border-radius: 3px 3px 0 0;
  background: var(--brun);
}
.planche {
  position: relative;
  padding: 9px 20px 6px;
  border-radius: 3px;
  background: var(--brun);
  color: var(--creme);
  font-family: var(--caps);
  font-size: clamp(12px, .4vw + 10.5px, 15px);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgba(84, 42, 20, .7);
  transition: transform .6s var(--doux);
}
.planche small { font-size: .82em; font-weight: 400; letter-spacing: .12em; opacity: .85; margin: 0 .3em; }
.planche em { font-style: normal; font-family: var(--serif); letter-spacing: 0; }
.p1 { transform: rotate(-2.2deg) translateX(14px); }
.p2 { transform: rotate(1.6deg) translateX(-18px); }
.p3 { transform: rotate(-1.2deg) translateX(8px); }
.poteau:hover .p1 { transform: rotate(-.6deg) translateX(18px); }
.poteau:hover .p2 { transform: rotate(.4deg) translateX(-22px); }
.poteau:hover .p3 { transform: rotate(-.3deg) translateX(12px); }

/* ───────── Infos ───────── */

.infos {
  position: relative;
  padding: clamp(130px, 14vw, 190px) var(--marge) clamp(64px, 8vw, 104px);
  color: var(--creme);
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(233, 181, 106, .10), transparent 70%),
    linear-gradient(180deg, var(--nuit-2), var(--nuit));
}
.congere { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(44px, 6vw, 90px); }
.congere path { fill: var(--creme); }

.infos .etiquette { color: var(--lueur); }
.infos h2 { font-weight: 500; font-size: clamp(32px, 3vw + 16px, 56px); }

.infos-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1080px;
  margin: clamp(44px, 6vw, 76px) auto 0;
  border-top: 1px solid rgba(251, 243, 226, .16);
}
.info { padding: clamp(26px, 3vw, 40px) clamp(18px, 3vw, 40px) 0; }
.info + .info { border-left: 1px solid rgba(251, 243, 226, .16); }
.info:first-child { padding-left: 0; }
.info:last-child { padding-right: 0; }
.info h3 {
  margin-bottom: 16px;
  font-family: var(--caps);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--lueur);
}
.info p { color: rgba(251, 243, 226, .86); text-wrap: pretty; }

.heures { margin-top: 12px; }
.heures div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid rgba(251, 243, 226, .12);
}
.heures dt { font-style: italic; color: rgba(251, 243, 226, .7); }
.heures dd { font-variant-numeric: lining-nums tabular-nums; font-weight: 500; }

.lien {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 3px;
  font-family: var(--caps);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .45s var(--doux), color .3s;
}
.lien::after { content: "→"; margin-left: .5em; font-family: var(--serif); letter-spacing: 0; display: inline-block; transition: transform .45s var(--doux); }
.lien:hover { color: var(--lueur); }
.lien:hover::after { transform: translateX(5px); }

/* ───────── Pied ───────── */

.pied {
  padding: 44px var(--marge) 40px;
  background: var(--nuit);
  color: rgba(251, 243, 226, .55);
  text-align: center;
  border-top: 1px solid rgba(251, 243, 226, .08);
}
.pied img { width: 150px; margin: 0 auto 22px; opacity: .9; }
.pied p { font-family: var(--caps); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.9; }

/* ───────── Révélations au défilement ───────── */

.js .revele { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--doux), transform 1.1s var(--doux); transition-delay: var(--retard, 0s); }
.js .revele.vu { opacity: 1; transform: none; }
.js .poteau.revele { transform: translateY(22px); }

/* ───────── Petits écrans ───────── */

@media (max-width: 820px) {
  .carte-grille { grid-template-columns: 1fr; max-width: 560px; }
  .infos-grille { grid-template-columns: 1fr; max-width: 560px; }
  .info, .info:first-child, .info:last-child { padding: 28px 0; }
  .info + .info { border-left: 0; border-top: 1px solid rgba(251, 243, 226, .16); }
  .vitrine img { aspect-ratio: 4 / 3; object-fit: cover; }
}

@media (max-width: 560px) {
  .barre { justify-content: center; letter-spacing: .16em; font-size: 11.5px; }
  .barre-nom { display: none; }
  .barre nav { margin: 0; gap: 20px; }
  .accueil { padding-top: 110px; }
  .actions { flex-direction: column; align-items: center; }
  .bouton { width: min(100%, 280px); }
  .plat p { padding-right: 0; }
  .surtitre { font-size: 10.5px; letter-spacing: .24em; padding-left: .24em; white-space: nowrap; }
  .devise { font-size: 11px; letter-spacing: .2em; gap: 10px; flex-wrap: nowrap; }
  .devise i { width: 12px; }
  .sapins svg:nth-child(2), .sapins svg:nth-child(4), .sapins svg:nth-child(6) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entree, .js .revele { opacity: 1; transform: none; animation: none; transition: none; }
  .guirlande circle { animation: none; }
  .vitrine img { transform: none; transition: none; }
  #neige { display: none; }
}
