/* Composants : mise en page, en-tête, pied de page, boutons, cartes, tableaux */

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
.stack > * + * { margin-top: var(--sp-3); }
.stack-lg > * + * { margin-top: var(--sp-5); }

/* Étiquettes en capitales espacées */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brass-text);
  line-height: 1.3;
}
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 52ch; }
.muted { color: var(--ink-2); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule--brass { border-top-color: var(--brass); width: 3.5rem; border-top-width: 2px; }

.page-head { padding-top: var(--sp-6); padding-bottom: var(--sp-5); }
.page-head h1 { font-size: var(--fs-h2); margin-top: var(--sp-2); }
.page-head .lead { margin-top: var(--sp-3); }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--header-h);
}
.brand {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav { display: none; }
.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: flex;
  align-items: center;
  min-height: var(--btn-h);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.nav__link[aria-current="page"] { font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.7rem;
  height: 2px;
  background: var(--brass);
}
.nav__link:hover { color: var(--brass-text); }
.nav__cta { display: none; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--btn-h);
  padding: 0 1.25rem;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.menu-btn:hover { background: var(--panel); }
.menu-btn__bars { width: 1.25rem; display: grid; gap: 5px; }
.menu-btn__bars span {
  display: block; height: 2px; background: currentColor;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile : panneau sous l'en-tête */
.nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-2) var(--gutter) var(--sp-4);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.nav.is-open .nav__link {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  min-height: 4.25rem;
  border-bottom: 1px solid var(--line);
}
.nav.is-open .nav__link[aria-current="page"] { font-weight: 400; font-style: italic; }
.nav.is-open .nav__link[aria-current="page"]::after { display: none; }
.nav.is-open .nav__cta { display: inline-flex; margin-top: var(--sp-3); width: 100%; }

@media (min-width: 1180px) {
  .menu-btn { display: none; }
  .nav, .nav.is-open {
    display: flex;
    position: static;
    align-items: center;
    gap: var(--sp-4);
    padding: 0;
    border: 0;
    max-height: none;
    overflow: visible;
  }
  .nav__list { flex-direction: row; gap: clamp(1.25rem, 0.5rem + 1.6vw, 2.25rem); }
  .nav .nav__link, .nav.is-open .nav__link {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    font-weight: 500;
    min-height: var(--btn-h);
    border: 0;
  }
  .nav.is-open .nav__link[aria-current="page"] { font-style: normal; font-weight: 600; }
  .nav.is-open .nav__link[aria-current="page"]::after { display: block; }
  .nav__cta, .nav.is-open .nav__cta { display: inline-flex; margin: 0; width: auto; }
}

/* Boutons (≥ 56 px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--btn-h);
  padding: 0.5rem 2rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: #3a3536; border-color: #3a3536; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--panel); border-color: var(--ink); }
.btn--small { padding-inline: 1.5rem; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--panel); border-color: var(--line); color: var(--ink-2); cursor: not-allowed;
}
.btn--light { background: var(--on-denim); color: var(--denim); border-color: var(--on-denim); }
.btn--light:hover { background: #fff; border-color: #fff; }

.btn-round {
  display: inline-grid;
  place-items: center;
  width: var(--btn-h);
  height: var(--btn-h);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  padding: 0;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.btn-round:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.btn-round:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-round svg { width: 1.5rem; height: 1.5rem; }

/* Bouton fixé en bas sur mobile */
.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform var(--t-med) var(--ease);
}
.cta-bar .btn { width: 100%; }
.cta-bar.is-away { transform: translateY(110%); }
@media (min-width: 900px) { .cta-bar { display: none; } }
@media (max-width: 899px) { body.has-cta-bar { padding-bottom: 5.25rem; } }

/* Pied de page */
.site-footer {
  margin-top: var(--sp-7);
  border-top: 1px solid var(--line);
  padding-block: var(--sp-6) var(--sp-5);
}
.site-footer__grid {
  display: grid;
  gap: var(--sp-5);
}
.site-footer__brand { font-family: var(--font-serif); font-size: 2.5rem; line-height: 1; }
.site-footer__zone { margin-top: var(--sp-1); color: var(--ink-2); }
.site-footer__logo { margin-top: var(--sp-3); width: 56px; height: 56px; mix-blend-mode: multiply; }
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: var(--sp-1);
}
.site-footer ul a, .footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}
.site-footer ul a:hover, .footer-link:hover { text-decoration: underline; }
.site-footer__legal {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--fs-small);
}
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Cartes */
.card {
  background: var(--panel);
  border-radius: var(--radius-card);
  padding: var(--sp-4);
}
.card h3 { font-size: var(--fs-h3); }

/* Tableaux de tarifs */
.price-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius-card); overflow: hidden; }
.price-table caption { text-align: left; padding: 0 0 var(--sp-2); }
.price-table th, .price-table td {
  text-align: left;
  vertical-align: middle;
  padding: 0.75rem var(--sp-3);
  min-height: 3.5rem;
  height: 3.5rem;
  border-bottom: 1px solid var(--line);
}
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th[scope="row"] { font-weight: 500; }
.price-table .num, .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.price-table td.num { font-family: var(--font-serif); font-size: 2.25rem; line-height: 1; }
.price-table .sub { display: block; color: var(--ink-2); font-size: var(--fs-small); font-weight: 400; }
@media (max-width: 640px) {
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tr { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.9rem var(--sp-3); border-bottom: 1px solid var(--line); }
  .price-table tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td { border: 0; padding: 0; height: auto; width: auto; }
  .price-table th[scope="row"] { flex: 1 1 auto; }
  .price-table td.num { text-align: right; }
  .price-table td.detail { flex: 1 0 100%; color: var(--ink-2); font-size: var(--fs-small); }
}

/* Grands liens (contact, réseaux) */
.link-large {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 4.5rem;
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.1;
}
.link-large:hover { color: var(--brass-text); }
.link-large span:last-child { font-family: var(--font-sans); font-size: var(--fs-small); color: var(--ink-2); }

/* Accordéon FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { margin: 0; font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  min-height: 4rem;
  padding: var(--sp-2) 0;
  background: none;
  border: 0;
  text-align: left;
  font-weight: 600;
  font-size: 1.1875rem;
}
.faq-btn:hover { color: var(--brass-text); }
.faq-icon { position: relative; flex: none; width: 1.5rem; height: 1.5rem; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor;
  transition: transform var(--t-med) var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-btn[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-panel { padding: 0 0 var(--sp-3); }
.faq-panel p + p { margin-top: var(--sp-2); }

@media (min-width: 641px) {
  .price-table th[scope="row"] { width: 34%; }
}

/* Réserve de place avant l'arrivée des contenus lus en JSON (évite les sauts de mise en page) */
main { min-height: 100svh; }
[data-rail] { min-height: calc(var(--rail-h) + 9rem); }
@media (max-width: 599px) { .rail--home[data-rail] { min-height: calc(var(--rail-h) + 7rem); } }

/* Contenus lus en JSON : cachés (mais en place) tant que les données ne sont pas là */
html.is-loading main > :not(:first-child),
html.is-loading main .avis-grid, html.is-loading main .avis-score,
html.is-loading .about, html.is-loading .contact { visibility: hidden; }

/* Pied de page : grande signature */
.site-footer__brand { font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4.25rem); letter-spacing: -0.02em; }
.site-footer { background: var(--bg); }
.site-footer__legal { max-width: none; }

/* Menu mobile : panneau plein écran, liens qui apparaissent un à un */
@media (max-width: 1179px) {
  .nav.is-open { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; max-height: none; display: flex; flex-direction: column; justify-content: flex-start; padding-block: var(--sp-3) var(--sp-4); background: var(--bg); }
  .nav.is-open .nav__list li { animation: nav-in 420ms var(--ease) both; }
  .nav.is-open .nav__list li:nth-child(2) { animation-delay: 40ms; }
  .nav.is-open .nav__list li:nth-child(3) { animation-delay: 80ms; }
  .nav.is-open .nav__list li:nth-child(4) { animation-delay: 120ms; }
  .nav.is-open .nav__list li:nth-child(5) { animation-delay: 160ms; }
  .nav.is-open .nav__list li:nth-child(6) { animation-delay: 200ms; }
  .nav.is-open .nav__cta { margin-top: auto; animation: nav-in 420ms var(--ease) 260ms both; }
  html:has(.nav.is-open) { overflow: hidden; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav.is-open .nav__list li, .nav.is-open .nav__cta { animation: none; } }

/* Pied de page : noir studio */
.site-footer { background: var(--ink); color: var(--bg); border-top: 0; margin-top: var(--sp-7); }
.site-footer h2 { color: #cdb98a; }
.site-footer__zone, .site-footer__legal { color: #b8b2ac; }
.site-footer__legal { border-top-color: #3a3637; }
.site-footer :focus-visible { outline-color: var(--bg); }
.site-footer a:hover { color: #e3cf9f; }
.page-home .site-footer, .page-avis .site-footer { margin-top: 0; }
