/* ─────────────────────────────────────────────────────────────────────────
   Motel Bellefeuille — feuille de style.

   L'identité ne sort pas de nulle part : elle est tirée de leur propre logo.
   Le médaillon de leur wordmark est un chartreuse olivâtre mesuré à #D2C546,
   et la lettre est une didone à fort contraste. On reprend les deux — Bodoni
   Moda pour l'écho du logo, et ce chartreuse comme unique accent — sur un
   fond crème chaud. Rien d'autre n'est inventé.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --encre:    #17160F;   /* le noir chaud sur lequel leur logo est dessiné */
  --encre-2:  #262115;
  --papier:   #F6F2E8;
  --craie:    #FCFAF4;
  --or:       #D2C546;   /* le médaillon, mesuré au pixel */
  --or-sombre:#8F8524;   /* la même teinte, assombrie pour rester lisible en texte */
  --ombre:    #6B6654;   /* gris biaisé olive, jamais un gris pur */
  --trait:    #E4DECD;
  --libre:    #3C6E52;
  --complet:  #A6442F;

  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --texte:   "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --r: 3px;             /* des angles presque droits : un motel, pas une application */
  --t: .38s cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 17px/1.65 var(--texte);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--encre); color: var(--or); padding: .7rem 1.1rem; border-radius: var(--r); }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--or-sombre); outline-offset: 2px; border-radius: 2px; }

/* ── Boutons ───────────────────────────────────────────────────────────── */
.btn {
  --bg: var(--or); --fg: var(--encre);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--texte); letter-spacing: .02em;
  padding: .95rem 1.5rem; border: 0; border-radius: var(--r);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t), filter var(--t);
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--encre { --bg: var(--encre); --fg: var(--or); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

/* ── Bandeau d'annonce ─────────────────────────────────────────────────── */
.announce { background: var(--encre); color: var(--papier); font-size: 15px; }
.announce .wrap { padding: .65rem 0; display: flex; gap: .6rem; flex-wrap: wrap; }
.announce a { color: var(--or); }

/* ── En-tête ───────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--encre) 92%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid color-mix(in srgb, var(--or) 22%, transparent);
}
.top__row { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 0; }
.brand { flex: 0 0 auto; }
.brand__logo { width: 178px; height: auto; }
.nav { margin-left: auto; display: flex; gap: 1.6rem; }
.nav a {
  color: color-mix(in srgb, var(--papier) 82%, transparent);
  text-decoration: none; font-size: 15px; font-weight: 500;
  padding: .3rem 0; border-bottom: 1px solid transparent; transition: color var(--t), border-color var(--t);
}
.nav a:hover { color: var(--or); border-bottom-color: var(--or); }
.top__cta { padding: .7rem 1.2rem; font-size: 14px; }
.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 4px 0; background: var(--papier); transition: transform var(--t), opacity var(--t); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── L'accueil ─────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--encre); color: var(--papier); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: saturate(.85); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 20% 0%, transparent, color-mix(in srgb, var(--encre) 80%, transparent) 70%),
    linear-gradient(to bottom, color-mix(in srgb, var(--encre) 55%, transparent), var(--encre) 92%);
}
.hero__in { position: relative; padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.hero__logo { width: min(520px, 78vw); height: auto; margin: 0 auto; }
.hero__tag {
  margin: 1.6rem 0 .7rem; font-family: var(--display); font-weight: 500;
  font-size: clamp(1.45rem, 4.2vw, 2.35rem); line-height: 1.2; letter-spacing: .005em;
  color: var(--or);
}
.hero__intro { max-width: 46rem; margin: 0 auto 2rem; color: color-mix(in srgb, var(--papier) 82%, transparent); font-size: 1.02rem; }
.hero__fine { margin: .9rem 0 0; font-size: 14px; color: color-mix(in srgb, var(--papier) 62%, transparent); }

/* La barre de demande rapide */
.quick {
  display: grid; gap: .7rem;
  grid-template-columns: 1fr 1fr .7fr auto;
  align-items: end;
  max-width: 47rem; margin: 0 auto;
  background: color-mix(in srgb, var(--papier) 96%, transparent);
  color: var(--encre);
  padding: 1rem; border-radius: var(--r);
  box-shadow: 0 18px 44px -18px rgb(0 0 0 / .65);
}
.quick__f { display: flex; flex-direction: column; gap: .3rem; text-align: left; min-width: 0; }
.quick__f label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ombre); }
.quick input, .quick select {
  font: 500 15px/1 var(--texte); font-variant-numeric: tabular-nums;
  padding: .72rem .6rem; border: 1px solid var(--trait); border-radius: var(--r);
  background: #fff; color: var(--encre); width: 100%; min-width: 0;
}
.quick__go { height: 43px; }

/* ── L'argument direct ─────────────────────────────────────────────────── */
.direct { background: var(--or); color: var(--encre); }
.direct__in { padding: clamp(2.6rem, 5vw, 3.6rem) 0; }
.direct__eyebrow { margin: 0 0 1.4rem; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--encre) 62%, transparent); }
.direct__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.direct__c h2 { font-family: var(--display); font-weight: 700; font-size: 1.32rem; margin-bottom: .45rem; }
.direct__c p { margin: 0; font-size: .97rem; color: color-mix(in srgb, var(--encre) 78%, transparent); }

/* ── L'offre ───────────────────────────────────────────────────────────── */
.promo { padding: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.promo__in { background: var(--encre); color: var(--papier); padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: var(--r); text-align: center; }
.promo__eyebrow { margin: 0 0 .5rem; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--or); }
.promo__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .6rem; }
.promo__text { max-width: 40rem; margin: 0 auto 1.4rem; color: color-mix(in srgb, var(--papier) 80%, transparent); }

/* ── En-têtes de section ───────────────────────────────────────────────── */
.sec__head { margin-bottom: 2.2rem; }
.sec__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.12; }
.sec__sub { margin: .5rem 0 0; color: var(--ombre); }

/* ── Les chambres ──────────────────────────────────────────────────────── */
.rooms { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.rooms__list { display: grid; gap: 1.4rem; }
.room {
  display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: 0;
  background: var(--craie); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
}
.room:hover { box-shadow: 0 14px 34px -22px rgb(23 22 15 / .5); transform: translateY(-2px); }
.room__ph { position: relative; background: var(--encre-2); }
.room__ph img { width: 100%; height: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.room__ph--vide { display: grid; place-items: center; color: color-mix(in srgb, var(--or) 55%, transparent); font-family: var(--display); font-size: 2.6rem; }
.room__body { padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; }
.room__top { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.room__name { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.15; }
.room__price { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.room__price b { display: block; font-size: 1.5rem; font-weight: 700; }
.room__price span { font-size: 12px; color: var(--ombre); letter-spacing: .04em; text-transform: uppercase; }
.room__price--vide { font-size: 14px; color: var(--ombre); max-width: 11rem; }
.room__desc { margin: 0; color: var(--ombre); font-size: .97rem; }
.room__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.tag {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: .3rem .6rem; border-radius: 999px;
  background: color-mix(in srgb, var(--or) 22%, transparent); color: #5C5416;
}
.tag--fume { background: color-mix(in srgb, var(--complet) 14%, transparent); color: var(--complet); }
.tag--complet { background: color-mix(in srgb, var(--complet) 16%, transparent); color: var(--complet); }
.room__go { margin-top: .7rem; align-self: flex-start; }
.rooms__none { color: var(--ombre); font-style: italic; }

/* ── Les services ──────────────────────────────────────────────────────── */
.serv { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--craie); border-block: 1px solid var(--trait); }
.serv__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); background: var(--craie); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; }
/* Bordures portées par les cases, pas par un fond apparent entre elles : la dernière rangée
   incomplète ne laisse plus voir de cellule d'une autre couleur. */
.serv__grid li { padding: 1.25rem 1.3rem; display: flex; align-items: center; gap: .85rem; font-weight: 500; border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); margin: -1px -1px 0 0; }
.serv__dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--or); }

/* ── Aux alentours ─────────────────────────────────────────────────────── */
.near { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.near__grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.near__c { background: var(--craie); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.near__ph { background: var(--encre-2); }
.near__plaque { aspect-ratio: 4/3; background: var(--encre); color: var(--or); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.3rem); font-variant-numeric: tabular-nums; }
.near__plaque span { font-family: var(--texte); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; display: block; text-align: center; margin-top: .3rem; color: color-mix(in srgb, var(--or) 70%, transparent); }
.near__ph img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.near__body { padding: 1.15rem 1.25rem; }
.near__name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.near__dist { font-family: var(--texte); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--or-sombre); }
.near__c p { margin: .4rem 0 0; color: var(--ombre); font-size: .95rem; }

/* ── Les témoignages ───────────────────────────────────────────────────── */
.says { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--craie); border-block: 1px solid var(--trait); }
.says__grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.says__c { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r); padding: 1.6rem 1.5rem; }
.says__q { font-family: var(--display); font-size: 1.14rem; line-height: 1.45; margin: 0 0 .9rem; }
.says__q::before { content: "“"; color: var(--or); font-size: 1.6em; line-height: 0; vertical-align: -.22em; margin-right: .08em; }
.says__a { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ombre); margin: 0; }
.says__r { font-size: 13px; color: var(--ombre); text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ── La demande ────────────────────────────────────────────────────────── */
.book { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--encre); color: var(--papier); }
.book__in { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: start; }
.book__aside .sec__title { color: var(--or); }
.book__aside p { color: color-mix(in srgb, var(--papier) 78%, transparent); }
.book__pts { margin: 1.2rem 0; display: grid; gap: .55rem; }
.book__pts li { position: relative; padding-left: 1.35rem; font-size: .95rem; color: color-mix(in srgb, var(--papier) 78%, transparent); }
.book__pts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--or); }
.book__tel { font-size: .95rem; }
.book__tel a { color: var(--or); font-weight: 600; }

.book__form { background: var(--papier); color: var(--encre); padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r); display: grid; gap: 1rem; }
.f2 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.f { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.f label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ombre); }
.f__opt { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; opacity: .8; }
.f input, .f select, .f textarea {
  font: 400 16px/1.4 var(--texte); font-variant-numeric: tabular-nums;
  padding: .75rem .7rem; border: 1px solid var(--trait); border-radius: var(--r);
  background: #fff; color: var(--encre); width: 100%; min-width: 0;
}
.f textarea { resize: vertical; min-height: 5rem; }
.f input:invalid:not(:placeholder-shown) { border-color: var(--complet); }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book__err { margin: 0; color: var(--complet); font-weight: 600; font-size: .95rem; }
.book__go { justify-self: start; }
.book__fine { margin: 0; font-size: 13px; color: var(--ombre); }
.book__ok { grid-column: 1 / -1; background: var(--or); color: var(--encre); padding: clamp(1.8rem, 4vw, 2.6rem); border-radius: var(--r); text-align: center; }
.book__ok h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: .5rem; }
.book__ok a { font-weight: 700; }

/* ── À savoir ──────────────────────────────────────────────────────────── */
.know { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.know__grid { display: grid; gap: 2.2rem; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); align-items: start; }
.know__times { display: grid; gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; }
.know__t { background: var(--craie); padding: 1.05rem 1.2rem; display: flex; flex-direction: column; gap: .15rem; }
.know__lab { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ombre); }
.know__v { font-family: var(--display); font-weight: 700; font-size: 1.24rem; font-variant-numeric: tabular-nums; }
.know__list { margin: 0; }
.know__list dt { font-family: var(--display); font-weight: 700; font-size: 1.16rem; margin: 1.5rem 0 .25rem; }
.know__list dt:first-child { margin-top: 0; }
.know__list dd { margin: 0; color: var(--ombre); font-size: .97rem; }

/* ── Nous joindre ──────────────────────────────────────────────────────── */
.contact { padding: 0 0 clamp(3rem, 6vw, 4.5rem); }
.contact__grid { display: grid; gap: 2.2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
.contact__addr { font-size: 1.05rem; }
.contact__big { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.3rem); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact__big:hover { color: var(--or-sombre); }
.contact__ext { margin-left: .6rem; font-size: 13px; color: var(--ombre); letter-spacing: .04em; text-transform: uppercase; }
.contact__mail { color: var(--or-sombre); font-weight: 600; }
.contact__maps { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--or); }
.contact__map { border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; background: var(--craie); }
.contact__map iframe { display: block; width: 100%; height: clamp(17rem, 34vw, 23rem); border: 0; }

/* ── Pied de page ──────────────────────────────────────────────────────── */
.foot { background: var(--encre); color: color-mix(in srgb, var(--papier) 76%, transparent); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; }
.foot__grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
.foot__logo { width: 190px; height: auto; margin-bottom: .9rem; }
.foot__brand p { font-size: .95rem; max-width: 26rem; }
.foot h3 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--or); margin-bottom: .6rem; }
.foot ul { display: grid; gap: .4rem; font-size: .95rem; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--or); }
.foot__bar {
  margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid color-mix(in srgb, var(--papier) 14%, transparent);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: 13px;
}
.foot__credit a { color: var(--or); }

/* ── Mouvement ─────────────────────────────────────────────────────────────
   anim.js pilote l'apparition. Sans JS, ou avec ?anim=off, ou si le visiteur
   demande moins d'animation, tout reste visible : les règles ci-dessous ne
   s'appliquent qu'une fois la classe js-anim posée sur <html>.            */
.js-anim [data-reveal]:not([data-revealed]) { opacity: 0; }
.js-anim [data-reveal-group]:not([data-revealed]) > :not([hidden]) { opacity: 0; }
.js-anim [data-reveal="media"]:not([data-revealed]) img { transition: none; }

/* Les masques du titre découpé mot par mot (voir splitWords dans anim.js). */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.w > span { display: inline-block; will-change: transform; }

@media print {
  .top, .burger, .quick, .contact__map, .book__form, .direct { display: none !important; }
  .hero, .serv, .says, .book, .foot { background: none; color: #000; }
  .hero__media, .hero__veil { display: none; }
  body { background: #fff; color: #000; }
}

/* ── Écrans étroits ────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .book__in { grid-template-columns: 1fr; }
  .know__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .top__cta { display: none; }
  .burger { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto; margin: 0;
    display: none; flex-direction: column; gap: 0;
    background: var(--encre); border-bottom: 1px solid color-mix(in srgb, var(--or) 22%, transparent);
    padding: .5rem 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 1.25rem; border-bottom: 0; }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick__f--n { grid-column: span 2; }
  .quick__go { grid-column: span 2; }
  .room { grid-template-columns: 1fr; }
  .room__ph img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 1.75rem, var(--wrap)); }
  .f2 { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .room__price { margin-left: 0; text-align: left; }
}
