/* ==========================================================================
   LAYOUT — conteneurs, sections, bandeau démo, header, footer, grilles
   ========================================================================== */

/* --- Conteneurs ----------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.shell--narrow { max-width: var(--shell-narrow); }
.shell--wide { max-width: var(--shell-wide); }

/* --- Sections -------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--sm { padding-block: var(--section-y-sm); }
.section--alt { background: var(--bg-alt); }

.section--deep {
  background: var(--c-wood);
  color: var(--text-on-dark);
}

.section--deep h2,
.section--deep h3,
.section--deep h4 { color: #fdf7ec; }

.section--deep .lead,
.section--deep .muted { color: var(--text-on-dark-muted); }

/* Filet de séparation discret entre deux sections de même fond */
.section--ruled { border-top: 1px solid var(--border-light); }

/* En-tête de section : surtitre, titre, chapeau */
.section-head {
  display: grid;
  gap: var(--sp-4);
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem);
}

.section-head--center {
  justify-items: center;
  text-align: center;
  margin-inline: auto;
}

.section-head--split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
  gap: var(--sp-5);
}

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--gutter);
  }
}

/* --- Bandeau MODÈLE -------------------------------------------------------
   Fixe, toujours visible, sur toutes les pages. C'est le repère principal
   qui signale qu'il s'agit d'une démonstration et non d'un vrai commerce.
   -------------------------------------------------------------------------- */
.demo-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-demo-bar);
  height: var(--demo-bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding-inline: var(--sp-4);
  background: var(--c-terracotta);
  color: #fff5ec;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  /* Fines rayures obliques : le bandeau se lit comme un ruban de chantier,
     donc comme un état provisoire. */
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.07) 0 10px,
    transparent 10px 20px
  );
}

.demo-bar__tag {
  padding: 2px var(--sp-2);
  border: 1px solid rgba(255, 245, 236, 0.5);
  border-radius: var(--radius);
  letter-spacing: 0.2em;
}

.demo-bar__sep {
  opacity: 0.55;
  font-weight: 400;
}

.demo-bar__text { font-weight: 500; letter-spacing: 0.1em; }

@media (max-width: 560px) {
  .demo-bar { font-size: 0.625rem; letter-spacing: 0.1em; }
  .demo-bar__sep { display: none; }
  .demo-bar__text .demo-bar__long { display: none; }
}

/* --- Header ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: var(--demo-bar-h);
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: rgba(250, 244, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 10px 30px -24px rgba(43, 33, 24, 0.5);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  height: var(--header-h);
  max-width: var(--shell-wide);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

/* Le contenu commence sous le bandeau et le header, tous deux fixes. */
.page-body { padding-top: calc(var(--demo-bar-h) + var(--header-h)); }

/* Marque */
.brand {
  display: grid;
  gap: 1px;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.brand__kicker {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-olive);
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 30;
}

/* Navigation */
.nav {
  display: none;
  align-items: center;
  gap: clamp(var(--sp-4), 1.4vw, var(--sp-6));
}

.nav__link {
  position: relative;
  padding-block: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-ink);
  white-space: nowrap;
}

/* Souligné qui se dessine de gauche à droite */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--c-terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--c-terracotta-deep); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.header-phone {
  display: none;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--c-ink);
  white-space: nowrap;
}

.header-phone:hover { color: var(--c-terracotta-deep); }

@media (min-width: 1080px) {
  .nav { display: flex; }
  .header-phone { display: inline-block; }
}

/* Bouton burger */
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--c-ink);
}

.burger__box {
  display: grid;
  gap: 5px;
  width: 20px;
}

.burger__bar {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out),
              opacity var(--dur-fast) linear;
}

.burger[aria-expanded="true"] .burger__bar:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__bar:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Déclaré après les règles du burger, sinon la règle de base l'emporterait
   (même spécificité, c'est la dernière écrite qui gagne). */
@media (min-width: 1080px) {
  .burger { display: none; }
}

/* --- Menu mobile plein écran ---------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: calc(var(--demo-bar-h) + var(--header-h)) 0 0 0;
  z-index: var(--z-menu);
  background: var(--c-cream);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              visibility 0s linear var(--dur);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.mobile-menu__inner {
  display: grid;
  gap: var(--sp-8);
  padding: var(--sp-8) var(--shell-pad) var(--sp-10);
}

.mobile-menu__list { display: grid; }

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
}

.mobile-menu__link .idx {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-terracotta);
}

.mobile-menu__link[aria-current="page"] { color: var(--c-terracotta-deep); }

.mobile-menu__foot {
  display: grid;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

@media (min-width: 1080px) {
  .mobile-menu { display: none; }
}

/* --- Utilitaires -----------------------------------------------------------
   Volontairement peu nombreux : uniquement les rythmes verticaux qui
   reviennent d'une page à l'autre, pour éviter les styles en ligne.
   -------------------------------------------------------------------------- */
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }
.mt-9 { margin-top: var(--sp-9); }
.mt-block { margin-top: clamp(var(--sp-9), 6vw, var(--sp-11)); }

.text-center { text-align: center; }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }

/* Légende sous une image */
.caption {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --- Grilles utilitaires --------------------------------------------------- */
.grid { display: grid; gap: var(--gutter); }
.grid--tight { gap: var(--sp-5); }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 640px) and (max-width: 899px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Bloc texte plus média, alterné */
.split {
  display: grid;
  gap: clamp(var(--sp-6), 4vw, var(--sp-10));
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--media-first > :first-child { order: 2; }
  .split--wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

/* --- Pied de page ---------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--c-wood-deep);
  color: var(--text-on-dark);
  padding-block: var(--section-y-sm) var(--sp-6);
}

.site-footer__grid {
  display: grid;
  gap: var(--sp-8);
}

@media (min-width: 700px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
  }
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: #fdf7ec;
  letter-spacing: -0.015em;
}

.footer-brand__kicker {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-sage);
  margin-bottom: 2px;
}

.footer-brand p {
  margin-top: var(--sp-4);
  max-width: 34ch;
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
}

.footer-title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-terracotta-soft);
  margin-bottom: var(--sp-4);
}

.footer-list {
  display: grid;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
}

.footer-list a {
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-list a:hover { color: #fdf7ec; }

.footer-hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
}

.footer-hours dt { color: #e6dbc9; }
.footer-hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.footer-socials {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-pill);
  color: var(--text-on-dark-muted);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.footer-socials a:hover {
  color: #fdf7ec;
  border-color: var(--c-terracotta-soft);
  transform: translateY(-2px);
}

.site-footer__bottom {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-9);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-dark);
  font-size: var(--fs-xs);
  color: #a2947f;
}

@media (min-width: 800px) {
  .site-footer__bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .site-footer__bottom > :last-child { text-align: right; }
}

/* Mention « modèle » du pied de page, volontairement lisible */
.footer-demo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: #c9b89f;
}

.footer-demo__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-terracotta);
  flex-shrink: 0;
}
