/* ============================================================
   MminiHouse — design system « Alpine White » (galerie neutre)
   Palette : fond #FFFFFF · encre #33415C · neutre #95A5A6 · accent #C0392B
   Typographies : Cormorant Garamond (titres) + Jost (corps)
   ============================================================ */

:root {
  --white: #FFFFFF;
  --ink: #33415C;
  --ink-deep: #26334C;
  --muted: #95A5A6;
  --accent: #C0392B;
  --accent-dark: #A93024;
  --surface: #F1F5F9;
  --surface-warm: #F7F4EF;
  --hairline: rgba(51, 65, 92, 0.14);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Century Gothic", sans-serif;
  --radius: 6px;
  --shadow-card: 0 1px 2px rgba(38, 51, 76, 0.06), 0 10px 28px -18px rgba(38, 51, 76, 0.35);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typographie ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: 1.14rem; color: var(--ink-deep); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ink:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(38, 51, 76, 0.5); }
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.logo-mark { flex: none; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.nav-item { position: relative; }
.nav-dropdown-toggle .chev { transition: transform 0.2s ease; }
.nav-dropdown-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline);
  transform: translateX(-50%) rotate(45deg);
}
.nav-dropdown a {
  padding: 9px 12px;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 4px;
  color: var(--ink);
  white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--surface); color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-cta[aria-current="page"]::after { display: none; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 68px 0 0;
  background: #fff;
  z-index: 55;
  overflow-y: auto;
  padding: 18px 24px 40px;
  display: flex;
  flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-link {
  padding: 13px 4px;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
.mobile-link.mobile-sub { padding-left: 18px; font-weight: 400; color: var(--ink-deep); }
.mobile-group-label {
  margin: 20px 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 51, 76, 0.18) 0%, rgba(30, 41, 61, 0.42) 55%, rgba(24, 33, 49, 0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 84px;
}
.hero-eyebrow {
  color: #F3C7C0;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 16px;
}
.hero-title {
  color: #fff;
  max-width: 15ch;
  text-shadow: 0 2px 22px rgba(20, 28, 42, 0.45);
  margin-bottom: 18px;
}
.hero-lede {
  max-width: 56ch;
  font-size: 1.13rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* cascade d'entrée du hero */
.hero .rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero .rise:nth-child(2) { animation-delay: 0.12s; }
.hero .rise:nth-child(3) { animation-delay: 0.24s; }
.hero .rise:nth-child(4) { animation-delay: 0.36s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .rise { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* révélations au scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--surface); }
.section-warm { background: var(--surface-warm); }
.section-head { max-width: 640px; margin-bottom: 42px; }

/* ---------- Bandeau chiffres ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat-item {
  padding: 34px 26px;
  border-right: 1px solid var(--hairline);
}
.stat-item:last-child { border-right: 0; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.9rem; color: var(--ink-deep); margin: 0; }

/* ---------- Cartes modèles / guides ---------- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.model-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.model-card-media { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.model-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.model-card h3 { margin-bottom: 8px; transition: color 0.2s ease; }
.model-card:hover h3 { color: var(--accent); }
.model-card p { font-size: 0.95rem; color: var(--ink-deep); flex: 1; }
.model-stats {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 0.86rem;
  color: var(--muted);
}
.model-stats strong { color: var(--ink); font-weight: 600; }
.model-stats .price { color: var(--accent); font-weight: 600; }
.card-more {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Tableau comparateur ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 760px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.compare-table thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.compare-table tbody th {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: var(--surface); }
.compare-table .price-cell { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- Colonne éditoriale ---------- */
.editorial {
  max-width: 72ch;
  margin: 0 auto;
}
.editorial h2 { margin-top: 2.2em; }
.editorial h3 { margin-top: 1.6em; }
.editorial ul { padding-left: 1.2em; }
.editorial li { margin-bottom: 0.5em; }
.editorial img { border-radius: var(--radius); margin: 2em 0; }
.editorial figure { margin: 2em 0; }
.editorial figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

/* encadrés */
.callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 1.8em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-ink {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.94);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 2em 0;
}
.callout-ink h3 { color: #fff; margin-bottom: 10px; }
.callout-ink p:last-child { margin-bottom: 0; }

.external-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.external-link:hover { color: var(--accent-dark); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-q:hover { color: var(--accent); }
.faq-q .chev { flex: none; transition: transform 0.25s ease; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 4px 22px; max-width: 68ch; }
.faq-a[hidden] { display: none; }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 90px 0;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255, 255, 255, 0.85); max-width: 54ch; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.85);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 56px;
}
.logo-footer .logo-word { color: #fff; }
.footer-tagline {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom p { margin: 0; }

/* ---------- Divers ---------- */
.breadcrumb {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 22px 0 0;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.page-hero {
  background: var(--surface);
  padding: 72px 0 64px;
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 60ch; }

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .mobile-toggle { display: flex; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .hero { min-height: 88svh; }
  .hero-content { padding-bottom: 60px; }
}
