/*
 * VERSION MOBILE — chargée uniquement sur les écrans de moins de 760 px
 * (attribut media dans les pages). Le desktop n'est pas concerné.
 * Principe : une idée par écran, des carrousels au lieu des grilles,
 * une barre d'action toujours visible.
 */

:root { --gutter: 20px; }
body { font-size: 15px; line-height: 1.6; }
section { padding: 56px 0; }
h1 { font-size: 2.7rem; }
h2 { font-size: 2rem; line-height: 1.1; }
h3 { font-size: 1.4rem; }
.eyebrow { font-size: .64rem; margin-bottom: .8rem; letter-spacing: .2em; }
.lead { font-size: 1rem; }
.btn { padding: .95em 1.4em; font-size: .72rem; }
.section-head { margin-bottom: 28px; gap: 14px; }
.section-head .lead { margin: 0; }
.reveal { transform: translateY(14px); }

/* ---------- Carrousels (glisser du doigt) ---------- */
.m-scroll, .pillars, .gallery, .rooms-grid#featured-rooms, #other-rooms, .biz-grid {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 12px;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 6px;
  scroll-padding: 0 var(--gutter);
}
.pillars::-webkit-scrollbar, .gallery::-webkit-scrollbar, #featured-rooms::-webkit-scrollbar,
#other-rooms::-webkit-scrollbar, .biz-grid::-webkit-scrollbar, .room-gallery::-webkit-scrollbar { display: none; }
.pillars > *, .gallery > *, #featured-rooms > *, #other-rooms > *, .biz-grid > * {
  scroll-snap-align: start;
  flex: 0 0 82%;
}

/* ---------- En-tête et menu ---------- */
.site-header .wrap { height: 64px; }
.brand-name { font-size: 1.3rem; }
.brand-sub { font-size: .52rem; letter-spacing: .26em; }
.nav { inset: 64px 0 auto 0; height: calc(100svh - 64px); padding: 32px var(--gutter); gap: 0; }
.nav > a:not(.btn):not(.nav-call) { font-family: var(--serif); font-size: 1.8rem; letter-spacing: 0; text-transform: none; padding: 10px 0; width: 100%; border-bottom: 1px solid rgba(235,229,218,.1); opacity: 1; }
.nav > a.active { border-bottom-color: rgba(235,229,218,.1); color: var(--chene); padding-bottom: 10px; }
.nav .btn { width: 100%; justify-content: center; margin-top: 28px; padding: 1.1em; font-size: .78rem; }
.nav .nav-call { display: flex; justify-content: center; width: 100%; padding: 1em; margin-top: 10px; border: 1px solid rgba(235,229,218,.35); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.nav .lang-switch { margin-top: 24px; }

/* ---------- Barre d'action fixe ---------- */
body.has-mbar { padding-bottom: 76px; }
.m-bar {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  gap: 10px; align-items: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(20,19,18,.97); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(235,229,218,.12);
}
.m-bar a { text-decoration: none; }
.m-bar-call { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 18px; border: 1px solid rgba(235,229,218,.35); color: var(--beige); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.m-bar-call svg { width: 18px; height: 18px; }
.m-bar-main { flex: 1; display: flex; align-items: center; justify-content: center; height: 50px; background: var(--beige); color: var(--noir); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.m-bar-price { flex: 0 0 auto; color: var(--beige); line-height: 1.1; }
.m-bar-price strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.m-bar-price small { font-size: .62rem; color: var(--clair-doux); }

/* ---------- Accueil : haut de page ---------- */
.hero { min-height: 100svh; }
.hero .wrap { padding-top: 100px; padding-bottom: 104px; }
.hero h1 { font-size: 3.1rem; margin-bottom: .2em; }
.hero .tagline { font-size: 1.45rem; margin-bottom: 1.6rem; }
.hero .lead, .hero .meta, .hero .btn-row > :nth-child(2) { display: none; }
.hero .btn-row .btn { width: 100%; justify-content: center; }
.hero::after { background: linear-gradient(180deg, rgba(20,19,18,.5) 0%, rgba(20,19,18,.1) 35%, rgba(20,19,18,.88) 100%); }

/* Chiffres : une bande compacte */
.strip { padding: 0 0 8px; }
.figures { grid-template-columns: repeat(4, 1fr); border-top: 0; }
.figure, .figure + .figure { padding: 18px 4px 14px; border-left: 0; text-align: center; }
.figure strong { font-size: 1.7rem; }
.figure span { font-size: .52rem; letter-spacing: .08em; margin-top: 6px; line-height: 1.35; }
.figure:nth-child(3) { padding-left: 4px; }

/* Concept : titre + 3 cartes à faire glisser */
#concept .split > .lead { display: none; }
#concept .split { gap: 0; }
.pillars { margin-top: 24px; }
.pillar { background: var(--beige); border-top: 0; padding: 24px 22px; }
.pillar h3 { font-size: 1.35rem; margin: 6px 0 8px; }
.pillar p { font-size: .9rem; }

/* La maison : une photo, un texte court */
#maison .stack-img .frame.ratio-4-5 { aspect-ratio: 4 / 3; }
#maison [data-i18n="maison.p2"], #maison .checklist li:nth-child(n+4) { display: none; }
#maison .checklist { margin: 16px 0 22px; gap: 8px; font-size: .92rem; }

/* Espaces partagés : galerie à faire glisser, niveaux compacts */
.gallery { grid-auto-rows: auto; }
.gallery figure { height: 62vw; }
.gallery figure, .gallery .g1 { flex: 0 0 82%; }
.levels { margin-top: 32px; }
.level { grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 14px 0; }
.level .lv { font-size: 1.4rem; grid-row: span 2; }
.level h4 { font-size: .9rem; }
.level p { font-size: .84rem; }
.level .rooms { grid-column: 2; font-size: .62rem; }
.note { font-size: .82rem; }

/* Chambres de l'accueil : carrousel des 11 */
#featured-rooms > * { display: flex !important; flex: 0 0 76%; }

/* Cartes chambres (carrousels) */
.room-card .body { padding: 16px 16px 18px; gap: 4px; }
.room-card h3 { font-size: 1.45rem; }
.room-card .view { font-size: .62rem; }
.room-card .specs { font-size: .78rem; gap: 10px; }
.room-card .price { padding-top: 12px; }
.room-card .price strong { font-size: 1.4rem; }
.room-card .price small { font-size: .66rem; }
.room-card .badge { font-size: .56rem; padding: 5px 8px; top: 10px; left: 10px; }

/* Inclus : 2 colonnes, icône + titre */
.included { grid-template-columns: 1fr 1fr; }
.included div { padding: 18px 14px; }
.included h4 { font-size: .84rem; margin: 8px 0 0; line-height: 1.3; }
.included p { display: none; }
#inclus .section-head .lead { font-size: .92rem; }
#inclus .split { margin-top: 40px !important; gap: 8px; }
#inclus [data-i18n="opt.p"] { display: none; }
#inclus h3 { font-size: 1.4rem; }
.m-toggle {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  background: none; border: 1px solid var(--taupe); padding: 14px 16px; cursor: pointer;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.m-toggle::after { content: "+"; font-size: 1.2rem; font-weight: 400; }
.price-list { display: none; margin-top: 4px; }
.price-list.open { display: block; }
.price-list .row { padding: 12px 0; font-size: .9rem; }
.price-list .row strong { font-size: 1.1rem; }

/* Emplacement : adresse + itinéraire, pas de carte */
#emplacement .split > :nth-child(2) { display: none; }
#emplacement .checklist li:nth-child(n+5) { display: none; }
.included .inc-wide p { display: block; font-size: .78rem; margin-top: 4px; }
#emplacement .checklist { margin: 12px 0 22px; font-size: .92rem; }
.address { font-size: 1.35rem; margin-bottom: 14px; }

/* Bloc entreprises de l'accueil : titre + bouton */
section.dark .split.reverse > .frame { display: none; }
section.dark .split.reverse .lead { font-size: .92rem; }

/* Bandeau final */
.cta-band { padding: 64px 0; }
.cta-band .lead { font-size: .92rem; margin-bottom: 22px; }

/* ---------- Pages intérieures ---------- */
.page-hero { padding: 110px 0 44px; }
.page-hero h1 { font-size: 2.4rem; }
.page-hero .lead { font-size: .92rem; }
.page-hero .btn-row > :nth-child(2) { display: none; }

/* Liste des chambres : compacte, photo à gauche */
.filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 14px; font-size: .74rem; }
.filters .sort { flex: 0 0 auto; width: auto; margin-left: 4px; }
.filters .sort span { display: none; }
.filters select { padding: 8px 12px; font-size: .74rem; }
#rooms-list { grid-template-columns: 1fr; gap: 10px; }
#rooms-list .room-card { flex-direction: row; background: var(--lin); border: 1px solid var(--sable); }
#rooms-list .room-card:hover { transform: none; }
#rooms-list .room-card .frame { flex: 0 0 36%; aspect-ratio: auto; min-height: 128px; }
#rooms-list .room-card .badge { font-size: .5rem; padding: 4px 6px; top: 6px; left: 6px; }
#rooms-list .room-card .body { padding: 12px 14px; gap: 2px; min-width: 0; }
#rooms-list .room-card .num { font-size: .58rem; }
#rooms-list .room-card h3 { font-size: 1.3rem; }
#rooms-list .room-card .view { font-size: .58rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#rooms-list .room-card .specs span:nth-child(2) { display: none; }
#rooms-list .room-card .price { padding-top: 6px; border-top: 0; }
#rooms-list .room-card .price strong { font-size: 1.25rem; }
#rooms-list .room-card .price small { display: none; }
body[data-page="chambres"] .beige .lead { display: none; }
body[data-page="chambres"] .beige .checklist { margin: 0; font-size: .9rem; }

/* Fiche chambre */
.room-hero { padding-top: 76px; }
.breadcrumb { margin-bottom: 14px; font-size: .64rem; }
.room-gallery {
  display: flex !important; height: auto; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 0; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none;
}
.room-gallery figure, .room-gallery figure:first-child { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; grid-row: auto; grid-column: auto; }
.m-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 18px; }
.m-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(235,229,218,.3); transition: background .2s, transform .2s; }
.m-dots span.on { background: var(--beige); transform: scale(1.3); }
#room-detail > section:nth-child(2) { padding-top: 32px !important; }
.room-title h1 { font-size: 2.6rem; margin: 6px 0 10px; }
.room-title .lead { font-size: .95rem; }
.spec-row { margin: 20px 0 28px; }
.spec { padding: 12px 10px 12px 0; }
.spec + .spec { padding-left: 12px; }
.spec strong { font-size: 1.2rem; }
.amenities { grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 12px 0 28px; }
.amenities li { font-size: .8rem; gap: 8px; align-items: flex-start; line-height: 1.35; }
.amenities svg { flex-basis: 18px; width: 18px; height: 18px; }
.room-layout { gap: 28px; }
.room-layout > div > p { font-size: .9rem; }
.room-nav { margin-top: 32px; }
.price-card { padding: 24px 20px; }
.price-card .total { font-size: 2.6rem; }
.price-card table, .price-card .btn { display: none; }
.price-card.open table { display: table; }
.price-toggle {
  display: flex; width: 100%; justify-content: space-between; margin-top: 18px;
  background: none; border: 1px solid rgba(235,229,218,.3); color: var(--beige);
  padding: 12px 14px; cursor: pointer; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.price-toggle::after { content: "+"; font-weight: 400; font-size: 1.1rem; line-height: 1; }
.price-card.open .price-toggle::after { content: "−"; }
#other-rooms > * { flex: 0 0 76%; }

/* Entreprises */
.biz-grid { margin-top: 28px; background: none; }
.biz-grid > div { background: var(--anthracite); padding: 24px 20px; }
.biz-grid h4 { font-size: 1.3rem; }
.biz-grid p { font-size: .88rem; }
.profiles li { font-size: .78rem; padding: 6px 12px; }
body[data-page="entreprises"] section:not(.page-hero):not(.dark):not(.cta-band) .split > .frame { display: none; }
.compare th, .compare td { padding: 10px 8px; font-size: .8rem; }

/* Contact */
.contact-layout { gap: 28px; }
.contact-info .item { padding: 14px 0; }
.contact-info .item:last-child { display: none; }
.contact-info a, .contact-info p { font-size: 1.2rem; }
.form { gap: 18px; }

/* Pied de page compact */
.site-footer { padding: 44px 0 24px; }
.footer-grid { gap: 22px; padding-bottom: 28px; }
.footer-grid > div:nth-child(2), .footer-grid > div:nth-child(3) { display: none; }
.site-footer .brand-name { font-size: 1.6rem; }
.footer-bottom { flex-direction: column; gap: 8px; font-size: .72rem; }
.footer-legal a:first-child { margin-left: 0; }

/* Pages légales */
.legal h2 { font-size: 1.5rem; }

/* ---------- Corrections après test Playwright ---------- */
/* 1. Menu ouvert : la barre du bas se cache, le menu défile si besoin */
.menu-open .m-bar { display: none; }
.nav { overflow-y: auto; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }

/* 10. Cibles tactiles plus grandes (44 px minimum) */
.nav .lang-switch { margin-top: 28px; flex-shrink: 0; }
.nav .lang-switch button { min-width: 64px; min-height: 46px; font-size: .78rem; }
.footer-legal { display: flex; flex-wrap: wrap; column-gap: 22px; }
.footer-legal a { margin-left: 0; display: inline-block; padding: 12px 0; }
.breadcrumb a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.link-arrow { display: inline-block; padding-top: 12px; }
.contact-info a { display: inline-block; padding: 8px 0; }
.consent input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 0; }

/* 3. Liste des chambres : filtres sur une ligne, tri visible en dessous */
.filters { flex-wrap: wrap; overflow: visible; margin: 0 0 18px; padding: 0; gap: 8px; }
.chip { padding: 9px 12px; min-height: 40px; }
.filters .sort { width: 100%; margin: 8px 0 0; justify-content: space-between; }
.filters .sort span { display: inline; font-size: .78rem; }
.filters select { min-height: 40px; }

/* Très petits écrans (iPhone SE…) */
@media (max-width: 360px) {
  .filters { gap: 4px; }
  .chip { padding: 9px 7px; font-size: .68rem; letter-spacing: .04em; }
  .m-bar-main { letter-spacing: .08em; font-size: .68rem; }
  .m-bar-call { padding: 0 12px; }
}
