/* Page d'accueil publique — blanc, orange, bleu nuit. Grille de 8 px, rayons de 5 px. */
:root {
  --hm-orange: #ea580c;
  --hm-orange-dark: #c2410c;
  --hm-orange-soft: #fff4ec;
  --hm-navy: #0f172a;
  --hm-navy-2: #111827;
  --hm-text: #475569;
  --hm-line: #e2e8f0;
  --hm-soft: #f8fafc;
  --hm-radius: 5px;
}

* { box-sizing: border-box; }
.home-page {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--hm-text); background: #fff;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
.hm-hero-grid > *, .hm-steps > *, .hm-examples > *, .hm-features > * { min-width: 0; }
:where(.home-page) :is(h1, h2, h3) { margin: 0; }
.home-page :is(h1, h2, h3) { color: var(--hm-navy); }
:where(.home-page) p { margin: 0; }
.home-page a { text-decoration: none; }
.home-page img { max-width: 100%; height: auto; }
.hm-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hm-narrow { max-width: 760px; }

/* Boutons */
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--hm-radius);
  font: inherit; font-size: 16px; font-weight: 800; color: #fff; background: var(--hm-orange);
  transition: background .15s;
}
.hm-btn:hover { background: var(--hm-orange-dark); color: #fff; }
.hm-btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.hm-btn-lg { height: 56px; padding: 0 32px; font-size: 18px; }
.hm-btn iconify-icon { font-size: 22px; }
.hm-btn:focus-visible, .hm-nav-link:focus-visible, .hm-faq summary:focus-visible { outline: 3px solid rgba(234, 88, 12, .4); outline-offset: 2px; }

/* Header */
.hm-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--hm-line); }
.hm-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.hm-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--hm-navy); }
.hm-logo-img { display: block; width: auto; height: 41px; } /* taille native : pas de flou */
.hm-nav { display: flex; align-items: center; gap: 32px; }
.hm-burger { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; font-size: 24px; color: var(--hm-navy); background: #fff; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); cursor: pointer; }
.hm-burger iconify-icon[hidden], .hm-menu[hidden] { display: none; }
.hm-menu { display: none; }
.hm-menu-link { display: flex; align-items: center; height: 52px; font-size: 16px; font-weight: 600; color: var(--hm-navy); border-top: 1px solid var(--hm-line); }
.hm-menu-link:hover { color: var(--hm-orange); }
.hm-nav-link { font-size: 15px; font-weight: 600; color: var(--hm-navy); }
.hm-nav-link:hover { color: var(--hm-orange); }

/* Hero */
.hm-hero { padding: 104px 0 120px; background: #fff; }
.hm-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
/* Grands écrans : header + hero plus larges, plus d'air entre le texte et le carrousel (le reste de la page garde 1120px) */
@media (min-width: 1280px) {
  .hm-header .hm-container, .hm-hero .hm-container { max-width: 1360px; }
  .hm-hero-grid { grid-template-columns: 1.15fr .85fr; gap: 120px; }
  .hm-reassure { flex-wrap: nowrap; }
  .hm-hero-visual { justify-content: flex-end; }
}
.hm-h1 { max-width: 12ch; font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; }
.hm-lead { margin-top: 32px; max-width: 480px; font-size: 20px; line-height: 1.55; color: #64748b; }
.hm-cta-row { margin-top: 40px; }
.hm-reassure { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 13px; font-weight: 600; color: #475569; }
.hm-reassure li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hm-reassure-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; color: var(--hm-orange); background: #fff7ed; font-size: 14px; }

.hm-hero-visual { position: relative; display: flex; justify-content: center; }
/* Carrousel 3D : 3 cartes, la carte du centre est mise en avant (rotation pilotée par carousel_controller.js) */
.hm-carousel { --w: 280px; position: relative; width: 100%; max-width: 560px; height: calc(var(--w) * 1.39 + 72px); perspective: 1200px; }
.hm-slide {
  position: absolute; top: 0; left: 50%; width: var(--w); margin: 0 0 0 calc(var(--w) / -2); cursor: pointer;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .8s ease;
}
.hm-slide-img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--hm-line); background: #fff; }
.hm-slide[data-pos="center"] { transform: translateX(0) scale(1); z-index: 3; cursor: default; }
.hm-slide[data-pos="right"]  { transform: translateX(74%) rotateY(-32deg) scale(.8); z-index: 1; opacity: .55; }
.hm-slide[data-pos="left"]   { transform: translateX(-74%) rotateY(32deg) scale(.8); z-index: 1; opacity: .55; }
.hm-slide-title {
  margin-top: 24px; text-align: center; font-size: 17px; font-weight: 800; color: var(--hm-navy);
  opacity: 0; transition: opacity .5s ease;
}
.hm-slide[data-pos="center"] .hm-slide-title { opacity: 1; transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .hm-slide, .hm-slide-title { transition: none; } }

/* Sections */
.hm-section { padding: 120px 0; }
.hm-section-soft { background: var(--hm-soft); }
.hm-h2 { font-size: clamp(30px, 3.8vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; text-align: center; }
.hm-sub { margin-top: 16px; text-align: center; color: #64748b; }

/* Étapes */
.hm-steps { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: none; }
.hm-step { position: relative; }
.hm-step:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 64px; right: -32px; height: 1px; background: var(--hm-line); }
.hm-step h3 { margin: 24px 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.hm-step p { color: #64748b; }
.hm-step-num {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--hm-radius); font-size: 17px; font-weight: 800; color: var(--hm-orange); background: var(--hm-orange-soft);
}

/* Exemples */
.hm-examples { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.hm-example { margin: 0; transition: transform .25s; }
.hm-example:hover { transform: translateY(-4px); }
.hm-example-img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--hm-line); background: #fff; }
.hm-example figcaption { margin-top: 24px; text-align: center; font-size: 15px; font-weight: 700; color: var(--hm-navy); }
.hm-browser { overflow: hidden; border-radius: 8px; background: #fff; border: 1px solid var(--hm-line); }
.hm-browser-bar { display: flex; gap: 6px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--hm-line); }
.hm-browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: #e2e8f0; }
.hm-browser-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center; aspect-ratio: 4 / 3; padding: 24px; background: #fff; }
.hm-mock-text { display: grid; gap: 8px; }
.hm-mock-text i { display: block; height: 8px; border-radius: 4px; background: #e2e8f0; }
.hm-mock-text i:nth-child(2), .hm-mock-text i:nth-child(3) { background: #0f172a; }
.hm-mock-text i:first-child { background: var(--tint); }
.hm-mock-text b { display: block; width: 72px; height: 24px; margin-top: 8px; border-radius: var(--hm-radius); background: var(--tint); }
.hm-mock-image {
  display: flex; align-items: center; justify-content: center; align-self: stretch; margin: 16px 0;
  border-radius: var(--hm-radius); font-size: 40px; color: rgba(255, 255, 255, .55);
  background: var(--tint);
}

/* Inclus */
.hm-features { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.hm-feature { display: flex; gap: 16px; }
.hm-chip { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--hm-radius); color: var(--hm-orange); background: var(--hm-orange-soft); font-size: 20px; }
.hm-feature h3 { font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.hm-feature p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: #64748b; }

/* FAQ */
.hm-faq { margin-top: 56px; border-top: 1px solid var(--hm-line); }
.hm-faq details { border-bottom: 1px solid var(--hm-line); }
.hm-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; color: var(--hm-navy); }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 600; color: var(--hm-orange); }
.hm-faq details[open] summary::after { content: "–"; }
.hm-faq details p { padding: 0 40px 24px 0; color: #64748b; }

/* CTA final */
.hm-final { padding: 120px 0; text-align: center; background: var(--hm-navy-2); }
.hm-final h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: #fff; }
.hm-final p { margin: 16px 0 40px; color: #94a3b8; }

/* Footer */
.hm-footer { padding: 32px 0; font-size: 14px; border-top: 1px solid var(--hm-line); }
.hm-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hm-footer .hm-logo { font-size: 17px; }
.hm-footer .hm-logo-img { width: 130px; height: auto; }
.hm-footer a:not(.hm-logo) { font-weight: 600; color: var(--hm-navy); }

/* Mobile */
@media (max-width: 900px) {
  .hm-hero { padding: 48px 0 72px; }
  .hm-h1 { max-width: none; }
  .hm-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hm-carousel { --w: 180px; }
  .hm-steps, .hm-examples, .hm-features { grid-template-columns: 1fr; gap: 32px; }
  .hm-section, .hm-final { padding: 72px 0; }
  .hm-nav-hide { display: none; }
  /* En-tête mobile : logo + « Créer mon site » + burger sur une seule ligne, sans dépassement */
  .hm-header-inner { height: 64px; gap: 8px; }
  .hm-logo { min-width: 0; flex: 0 1 auto; }
  .hm-logo-img { height: 32px; }
  .hm-nav { gap: 8px; flex: none; }
  .hm-nav-cta { height: 36px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .hm-burger { display: inline-flex; }
  .hm-header[data-controller] .hm-menu:not([hidden]) { display: block; border-top: 1px solid var(--hm-line); background: #fff; }
  .hm-step::after { display: none; }
  .hm-btn-lg { width: 100%; box-sizing: border-box; padding: 0 16px; font-size: 16px; white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) { .hm-btn { transition: background .15s, transform .15s; } .hm-btn:hover { transform: translateY(-1px); } }

@media (max-width: 380px) {
  .hm-logo-img { height: 26px; }
  .hm-nav-cta { padding: 0 10px; font-size: 13px; }
  .hm-burger { width: 36px; height: 36px; }
  .hm-btn-lg { font-size: 15px; }
}
