/* La Boutique du Pont — granite, Tarn, genêt */
:root {
  --paper: #F6F1E6;
  --paper-2: #EDE5D3;
  --ink: #22262A;
  --ink-2: #4A5258;
  --granite: #A69E8E;
  --tarn: #2F6B74;
  --tarn-l: #6FA6A8;
  --genet: #F2C94C;
  --chataigne: #8C4F2B;
  --rose: #E58FA8;
  --line: rgba(34, 38, 42, .14);
  --r: 22px;
  --shadow: 0 1px 2px rgba(34,38,42,.06), 0 12px 32px -12px rgba(34,38,42,.22);
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--tarn); outline-offset: 3px; border-radius: 6px; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sun { background: var(--genet); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(180,130,0,.7); }
.btn-sun:hover { background: #F5D266; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #33393E; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-line-light { border-color: rgba(246,241,230,.5); color: var(--paper); }
.btn-line-light:hover { background: var(--paper); color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }

/* ---------- en-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 241, 230, .86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-txt b { font: 400 19px/1.1 var(--serif); }
.brand-txt small { font-size: 12.5px; color: var(--ink-2); letter-spacing: .02em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15.5px; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--genet); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- héro ---------- */
.hero { padding: 40px 0 56px; }
.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--tarn); margin-bottom: 18px; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--genet); box-shadow: 0 0 0 4px rgba(242,201,76,.3); }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--tarn); background: linear-gradient(transparent 68%, rgba(242,201,76,.55) 68% 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 34em; margin-bottom: 26px; }

.card-info { background: #fff; border-radius: var(--r); padding: 20px 22px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 540px; }
.ci-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--granite); }
.badge.ouvert { background: #DDEEE6; color: #1F5A45; }
.badge.ouvert::before { background: #2E9B6E; box-shadow: 0 0 0 0 rgba(46,155,110,.6); animation: pouls 2s infinite; }
.badge.ferme { background: #F4E3DC; color: #8A3B22; }
.badge.ferme::before { background: #C2554A; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(46,155,110,.55); } 70% { box-shadow: 0 0 0 8px rgba(46,155,110,0); } 100% { box-shadow: 0 0 0 0 rgba(46,155,110,0); } }
.ci-note { font-size: 15px; color: var(--ink-2); }
.ci-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.ci-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; }
.ci-list svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--tarn); }
.ci-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-art { margin: 0; }
.scene { width: 100%; height: auto; display: block; border-radius: 28px; box-shadow: var(--shadow); }
.hero-art figcaption { font-size: 14px; color: var(--ink-2); margin-top: 12px; text-align: center; font-style: italic; }
.scene .eau path { stroke-dasharray: 26 14; animation: eau 6s linear infinite; }
.scene .eau path:nth-child(2n) { animation-duration: 8s; animation-direction: reverse; }
@keyframes eau { to { stroke-dashoffset: -80; } }
.scene .aiguilles { transform-origin: 245px 276px; }

/* ---------- bandeau ---------- */
.bande { background: var(--ink); color: var(--paper); }
.bande-in { display: flex; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding: 16px 0; font-size: 15.5px; }
.bande-in span { display: inline-flex; align-items: center; gap: 6px; }
.bande-in b { color: var(--genet); font-weight: 700; }

/* ---------- sections ---------- */
.sec { padding: 96px 0; }
.sec-tint { background: var(--paper-2); }
.sec-ink { background: var(--ink); color: var(--paper); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.kicker { font-family: "Caveat", cursive; font-size: 27px; line-height: 1; color: var(--chataigne); margin-bottom: 10px; }
.sec-ink .kicker { color: var(--genet); }
.sec h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 14px; }
.sec-lede { font-size: 18.5px; color: var(--ink-2); }
.hint { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.lien { font-weight: 600; color: var(--tarn); text-decoration: none; border-bottom: 2px solid rgba(47,107,116,.25); padding-bottom: 2px; }
.lien:hover { border-color: var(--tarn); }

/* rayons */
.rayons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rayon { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(34,38,42,.05); transition: transform .25s ease, box-shadow .25s ease; }
.rayon:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rayon .ph { aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--paper-2); }
.rayon .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rayon:hover .ph img { transform: scale(1.04); }
.rayon-txt { padding: 20px 22px 24px; }
.rayon h3 { font-size: 25px; margin-bottom: 8px; }
.rayon p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* galerie */
.galerie {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(16px, calc((100vw - 1180px) / 2)) 18px;
  scroll-padding-inline: max(16px, calc((100vw - 1180px) / 2));
  scrollbar-width: none;
}
.galerie::-webkit-scrollbar { display: none; }
.g-item { flex: none; width: clamp(220px, 26vw, 320px); aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 18px; overflow: hidden; scroll-snap-align: start; cursor: zoom-in; background: var(--paper); box-shadow: 0 1px 2px rgba(34,38,42,.08); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-ctrl { display: flex; gap: 10px; justify-content: flex-end; }
.rond { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background-color .18s, color .18s; }
.rond:hover { background: var(--ink); color: var(--paper); }
.rond svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.lb { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.lb::backdrop { background: rgba(20,22,24,.86); }
.lb img { max-height: 88vh; width: auto; border-radius: 16px; }
.lb-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }

/* Evelyne */
.evelyne { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.ev-art svg { width: 100%; max-width: 420px; margin-inline: auto; display: block; }
.ev-art .hand { font-family: "Caveat", cursive; font-size: 40px; fill: var(--chataigne); }
.ev-txt p { font-size: 18px; color: var(--ink-2); max-width: 36em; }
.ev-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* avis */
.avis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.avi { margin: 0; background: #fff; border-radius: var(--r); padding: 26px 26px 22px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.avi-big { grid-row: span 2; background: var(--tarn); color: #fff; border: 0; justify-content: center; }
.avi-big blockquote { font: 400 clamp(22px, 2.2vw, 27px)/1.35 var(--serif); }
.avi-big .stars { color: var(--genet); }
.avi.avi-big figcaption { color: rgba(255,255,255,.85); }
.stars { color: #D9A400; letter-spacing: 3px; font-size: 18px; margin-bottom: 12px; }
.avi blockquote { margin: 0 0 16px; font-size: 16.5px; flex: 1; }
.avi figcaption { font-weight: 700; font-size: 15px; color: var(--ink-2); }

/* village */
.village { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.vi-txt > p { font-size: 18px; color: var(--ink-2); }
.puces { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.puces li { padding: 14px 18px; background: #fff; border-radius: 14px; border: 1px solid var(--line); font-size: 16.5px; }
.puces b { color: var(--tarn); }
.vi-ph { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); max-width: 460px; justify-self: end; aspect-ratio: 4 / 5; }
.vi-ph img { width: 100%; height: 100%; object-fit: cover; }

/* infos */
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.infos address { font-style: normal; font-size: 18px; margin: 6px 0 26px; line-height: 1.55; }
.horaires { width: 100%; border-collapse: collapse; font-size: 16.5px; margin-bottom: 14px; }
.horaires th, .horaires td { text-align: left; padding: 11px 12px; border-bottom: 1px solid rgba(246,241,230,.14); font-weight: 400; }
.horaires th { width: 38%; font-weight: 600; }
.horaires td { color: rgba(246,241,230,.82); }
.horaires tr.auj { background: rgba(242,201,76,.14); }
.horaires tr.auj th { color: var(--genet); }
.horaires tr.auj th::after { content: " · aujourd'hui"; font-weight: 400; font-size: 14px; color: rgba(246,241,230,.7); }
.petit { font-size: 14.5px; color: rgba(246,241,230,.68); }
.in-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.carte { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1; background: #2B3034; }
.carte iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75) contrast(1.02); }
.carte-lien { position: absolute; left: 14px; bottom: 14px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 9px 14px; border-radius: 999px; box-shadow: var(--shadow); }

/* pied */
.foot { padding: 44px 0 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.foot-in { display: grid; gap: 14px; }
.foot p { margin: 0; }
.foot a { color: var(--ink); }
.credit { font-size: 13.5px; }

/* dock mobile */
.dock { display: none; }

/* apparitions */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.vu { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 640px; }
  .rayons { grid-template-columns: repeat(2, 1fr); }
  .avis { grid-template-columns: repeat(2, 1fr); }
  .avi-big { grid-column: span 2; grid-row: auto; }
  .evelyne, .village, .infos { grid-template-columns: 1fr; gap: 40px; }
  .vi-ph { justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; padding-bottom: 74px; }
  .top-in { height: 64px; }
  .top .btn span { display: none; }
  .top .btn { width: 44px; padding: 0; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-txt b { font-size: 17.5px; }
  .hero { padding: 22px 0 40px; }
  .hero h1 { font-size: 40px; }
  .lede { font-size: 17.5px; margin-bottom: 20px; }
  .card-info { padding: 16px 16px 18px; }
  .ci-btns .btn { flex: 1 1 140px; }
  .sec { padding: 68px 0; }
  .sec-head { margin-bottom: 30px; }
  .rayons { grid-template-columns: 1fr; gap: 18px; }
  .avis { grid-template-columns: 1fr; }
  .avi-big { grid-column: auto; }
  .bande-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 14.5px; line-height: 1.35; }
  .bande-in span { display: block; }
  .horaires { font-size: 15px; }
  .horaires th, .horaires td { padding: 10px 6px; }
  .horaires th { width: 30%; }
  .horaires td { white-space: nowrap; }
  .horaires tr.auj th::after { content: none; }
  .g-ctrl { display: none; }
  .g-item { width: 72vw; }
  .ev-art svg { max-width: 260px; }
  .in-btns .btn { flex: 1 1 140px; }
  .dock {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
    background: var(--ink); border-radius: 18px; padding: 6px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
  }
  .dock a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; color: var(--paper); text-decoration: none; font-size: 13px; font-weight: 600; border-radius: 12px; }
  .dock a:first-child { background: var(--genet); color: var(--ink); }
  .dock svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
