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

   Le rouge vient de leur feuille d'érable, mesuré au pixel sur leur logo :
   #CC2F40. Leur site actuel le pose sur un fond bordeaux à motifs, ce qui
   l'étouffe. Ici il est seul sur un fond clair, et c'est lui qui porte tout.
   Le vert de pin est le second ton : la Mauricie, le Chemin du Roy.

   La typographie est volontairement l'inverse de l'usage courant — un
   grotesque pour les titres, une serif pour le texte courant — parce qu'un
   petit motel familial se lit, il ne s'affiche pas.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --rouge:    #CC2F40;   /* la feuille d'érable, mesurée au pixel */
  --rouge-t:  #A61E2E;   /* la même, assombrie pour rester lisible en texte */
  --encre:    #241B19;   /* un noir chaud, jamais un noir pur */
  --pin:      #2E4A3C;
  --papier:   #FBF7F1;
  --craie:    #FFFFFF;
  --sable:    #F3ECE1;
  --ombre:    #6F6259;   /* gris biaisé vers le brun */
  --trait:    #E7DCCE;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --texte:   "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --r: 10px;
  --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.7 var(--texte);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.12; 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: #fff; padding: .7rem 1.1rem; border-radius: var(--r); }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--rouge-t); outline-offset: 2px; border-radius: 3px; }

/* ── Boutons ───────────────────────────────────────────────────────────── */
.btn {
  --bg: var(--rouge); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--bg); color: var(--fg);
  font: 700 15px/1 var(--display); letter-spacing: .005em;
  padding: .95rem 1.5rem; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t), filter var(--t);
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--encre { --bg: var(--encre); --fg: #fff; }
.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: #fff; }

/* ── En-tête ───────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--trait);
}
.top__row { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 0; }
.brand { flex: 0 0 auto; }
.brand__logo { width: 132px; height: auto; }
.nav { margin-left: auto; display: flex; gap: 1.5rem; }
.nav a {
  color: var(--encre); text-decoration: none;
  font: 600 15px/1 var(--display);
  padding: .4rem 0; border-bottom: 2px solid transparent; transition: color var(--t), border-color var(--t);
}
.nav a:hover { color: var(--rouge-t); border-bottom-color: var(--rouge); }
.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(--encre); 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 { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.hero__in { display: grid; gap: clamp(1.8rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.hero__eyebrow { margin: 0 0 .7rem; font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--rouge-t); }
.hero__tag { font-size: clamp(2.1rem, 5.6vw, 3.6rem); font-weight: 800; letter-spacing: -.015em; margin-bottom: .8rem; }
.hero__intro { color: var(--ombre); max-width: 34rem; }
.hero__pts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.hero__pts li {
  font: 600 14px/1 var(--display);
  background: var(--sable); border: 1px solid var(--trait);
  padding: .55rem .85rem; border-radius: 999px;
}
.hero__note { margin-top: 1.1rem; font-size: .95rem; color: var(--ombre); }
.hero__note b { color: var(--encre); font-family: var(--display); font-size: 1.15rem; }
.hero__media { border-radius: var(--r); overflow: hidden; border: 1px solid var(--trait); background: var(--sable); }
.hero__media img { width: 100%; height: 100%; aspect-ratio: 12 / 7; object-fit: cover; }

/* La barre de demande rapide */
.quick {
  display: grid; gap: .7rem;
  grid-template-columns: 1fr 1fr .7fr auto;
  align-items: end;
  background: var(--craie); border: 1px solid var(--trait);
  padding: 1rem; border-radius: var(--r);
  box-shadow: 0 14px 40px -26px rgb(36 27 25 / .5);
}
.quick__f { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.quick__f label { font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ombre); }
.quick input, .quick select {
  font: 400 15px/1.2 var(--texte); font-variant-numeric: tabular-nums;
  padding: .72rem .6rem; border: 1px solid var(--trait); border-radius: 8px;
  background: var(--craie); color: var(--encre); width: 100%; min-width: 0;
}
.quick__go { height: 44px; }
.quick__fine { margin: .8rem 0 0; font-size: 14px; color: var(--ombre); }

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

/* ── L'offre ───────────────────────────────────────────────────────────── */
.promo { padding: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.promo__in { background: var(--rouge); color: #fff; padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: var(--r); text-align: center; }
.promo__eyebrow { margin: 0 0 .5rem; font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, #fff 78%, transparent); }
.promo__title { 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, #fff 88%, transparent); }

/* ── En-têtes de section ───────────────────────────────────────────────── */
.sec__head { margin-bottom: 2.2rem; }
.sec__title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.012em; }
.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; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.room {
  display: flex; flex-direction: column;
  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 16px 38px -26px rgb(36 27 25 / .55); transform: translateY(-2px); }
.room__ph { background: var(--sable); }
.room__ph img { width: 100%; height: 100%; aspect-ratio: 12 / 7; object-fit: cover; }
.room__ph--vide { aspect-ratio: 12 / 7; display: grid; place-items: center; background: var(--pin); color: color-mix(in srgb, var(--papier) 70%, transparent); font-family: var(--display); font-size: 2.4rem; font-weight: 800; }
.room__body { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.room__top { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.room__name { font-size: 1.3rem; }
.room__price { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.room__price b { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 800; }
.room__price span { font: 600 11px/1 var(--display); color: var(--ombre); letter-spacing: .08em; text-transform: uppercase; }
.room__price--vide { font: 600 13px/1.3 var(--display); color: var(--ombre); }
.room__desc { margin: 0; color: var(--ombre); font-size: .97rem; }
.room__meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .2rem; }
.tag {
  font: 600 12px/1 var(--display); letter-spacing: .01em;
  padding: .35rem .65rem; border-radius: 999px;
  background: var(--sable); color: var(--encre); border: 1px solid var(--trait);
}
.tag--fume { background: #F6E4E2; border-color: #E9C9C4; color: var(--rouge-t); }
.tag--complet { background: #F6E4E2; border-color: #E9C9C4; color: var(--rouge-t); }
.room__go { margin-top: auto; align-self: flex-start; }
.rooms__none { color: var(--ombre); font-style: italic; }

/* ── Ce qui est compris ────────────────────────────────────────────────── */
.serv { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--sable); border-block: 1px solid var(--trait); }
.serv__grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.serv__grid li {
  background: var(--craie); border: 1px solid var(--trait); border-radius: 14px;
  padding: .85rem 1.2rem; display: flex; align-items: center; gap: .75rem;
  font: 600 15px/1.35 var(--display);
}
.serv__dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--rouge); }

/* ── La galerie ────────────────────────────────────────────────────────── */
.gal { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.gal__grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.gal__c { border-radius: var(--r); overflow: hidden; border: 1px solid var(--trait); background: var(--sable); position: relative; }
.gal__c img { width: 100%; height: 100%; aspect-ratio: 12 / 7; object-fit: cover; transition: transform var(--t); }
.gal__c:hover img { transform: scale(1.03); }
.gal__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.8rem .9rem .7rem;
  font: 600 13px/1.3 var(--display); color: #fff;
  background: linear-gradient(to top, rgb(36 27 25 / .78), transparent);
}

/* ── Aux alentours ─────────────────────────────────────────────────────── */
.near { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--sable); border-block: 1px solid var(--trait); }
.near__list { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.near__list li { background: var(--craie); border: 1px solid var(--trait); border-radius: var(--r); padding: 1.15rem 1.3rem; border-left: 3px solid var(--rouge); }
.near__name { font-family: var(--display); font-weight: 700; font-size: 1.08rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.near__dist { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rouge-t); }
.near__list p { margin: .35rem 0 0; color: var(--ombre); font-size: .95rem; }

.events { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--trait); }
.events__t { font-size: 1.35rem; }
.events__sub { margin: .3rem 0 1.1rem; color: var(--ombre); font-size: .95rem; }
.events__list { display: flex; flex-wrap: wrap; gap: .55rem; }
.events__list li {
  font: 600 14px/1 var(--display);
  background: var(--pin); color: var(--papier);
  padding: .6rem .95rem; border-radius: 999px;
}
.events__list li span { opacity: .72; font-weight: 500; }

/* ── 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: #fff; }
.book__aside p { color: color-mix(in srgb, var(--papier) 80%, 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) 80%, transparent); }
.book__pts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); }
.book__tel { font-size: .95rem; }
.book__tel a { color: #fff; font-weight: 600; border-bottom: 1px solid var(--rouge); text-decoration: none; }

.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: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ombre); }
.f__opt { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .85; }
.f input, .f select, .f textarea {
  font: 400 16px/1.45 var(--texte); font-variant-numeric: tabular-nums;
  padding: .75rem .7rem; border: 1px solid var(--trait); border-radius: 8px;
  background: var(--craie); color: var(--encre); width: 100%; min-width: 0;
}
.f textarea { resize: vertical; min-height: 5rem; }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book__err { margin: 0; color: var(--rouge-t); 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(--rouge); color: #fff; padding: clamp(1.8rem, 4vw, 2.6rem); border-radius: var(--r); text-align: center; }
.book__ok h2 { 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: .6rem; }
.know__t { background: var(--sable); border: 1px solid var(--trait); border-radius: var(--r); padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .1rem; }
.know__lab { font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ombre); }
.know__v { font-family: var(--display); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.know__list { margin: 0; }
.know__list dt { font-family: var(--display); font-weight: 700; font-size: 1.12rem; 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: 800; font-size: clamp(1.7rem, 4vw, 2.3rem); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact__big:hover { color: var(--rouge-t); }
.contact__ext { margin-left: .6rem; font-size: 13px; color: var(--ombre); letter-spacing: .04em; text-transform: uppercase; }
.contact__mail { color: var(--rouge-t); font-weight: 600; }
.contact__maps { font-family: var(--display); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--rouge); }
.contact__map { border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; background: var(--sable); }
.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)); }
/* Le logo du motel est dessiné pour un fond clair. Sur le pied de page sombre, on lui
   redonne son fond plutôt que de le laisser s'éteindre. */
.foot__logo { width: 140px; height: auto; display: block; background: var(--papier); padding: .5rem .7rem; border-radius: 8px; box-sizing: content-box; margin-bottom: .9rem; }
.foot__brand p { font-size: .95rem; max-width: 26rem; }
.foot h3 { font-size: 1rem; color: #fff; margin-bottom: .6rem; }
.foot ul { display: grid; gap: .4rem; font-size: .95rem; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__bar {
  margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid color-mix(in srgb, var(--papier) 16%, transparent);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: 13px;
}
.foot__credit a { color: #fff; }

/* ── Mouvement ─────────────────────────────────────────────────────────────
   anim.js pilote l'apparition. Sans JavaScript, avec ?anim=off, ou si le
   visiteur demande moins d'animation, js-anim n'est jamais posée et rien
   n'est masqué.                                                          */
.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; }

.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, .near, .book, .foot { background: none; color: #000; }
  body { background: #fff; color: #000; }
}

/* ── Écrans étroits ────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero__in { grid-template-columns: 1fr; }
  .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(--papier); border-bottom: 1px solid var(--trait);
    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, .quick__go { grid-column: span 2; }
}
@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; }
}
