/* ==========================================================================
   MaQuickPage Landing — Bauhaus Vif (v10)
   Theme    : Bauhaus pop / brutalist-modern
   Palette  : ivoire · Klein blue · safran · blush · anthracite
   Fonts    : Bricolage Grotesque (display) + Space Grotesk (body)
   ========================================================================== */

:root {
  --ivory:       #F4EFE2;
  --ivory-soft:  #FAF6EC;
  --klein:       #002FA7;
  --klein-deep:  #001E70;
  --saffron:     #F4A300;
  --blush:       #F5C2B5;
  --anthracite:  #15130E;
  --black:       #000000;
  --white:       #FFFFFF;
  --border-thin: 1.5px solid var(--anthracite);
  --border-med:  2px solid var(--anthracite);
  --border-thick:3px solid var(--anthracite);
  --shadow-sm:   4px 4px 0 0 var(--anthracite);
  --shadow-md:   6px 6px 0 0 var(--anthracite);
  --shadow-lg:   8px 8px 0 0 var(--anthracite);
  --font-display:'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body:   'Space Grotesk', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
/* Garantit que l'attribut HTML `hidden` ne soit JAMAIS écrasé par des display: flex/grid/block
   (sinon les .hp-modal-step[hidden] resteraient visibles → toutes les réponses s'empilent) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background: var(--ivory);
  color: var(--anthracite);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
button { font-family: inherit; }
::selection { background: var(--saffron); color: var(--anthracite); }

.hp-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .hp-container { padding: 0 20px; } }

/* ===== TYPOGRAPHY ===== */
.hp-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 14px;
  border: var(--border-med);
  background: transparent;
  color: inherit;
}
.hp-h1 {
  font-family: var(--font-display);
  font-size: clamp(54px, 8.5vw, 128px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 24px 0;
}
.hp-h1 em {
  font-style: italic;
  font-weight: 700;
  color: var(--klein);
}
.hp-h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 16px 0 24px;
}
.hp-h2 em, .hp-h2 .hp-accent { font-style: italic; color: var(--klein); }
.hp-h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.hp-p { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; }
.hp-section-sub { max-width: 720px; margin-top: 16px; }
.hp-section-head { margin-bottom: 56px; }

/* ===== BUTTONS — Bauhaus brutalist ===== */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: var(--border-med);
  background: var(--anthracite);
  color: var(--ivory);
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms cubic-bezier(.2,.9,.3,1), box-shadow 180ms;
  white-space: nowrap;
}
.hp-btn:hover, .hp-btn:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.hp-btn:active { transform: translate(0, 0); box-shadow: none; }
.hp-btn-primary   { background: var(--anthracite); color: var(--ivory); }
.hp-btn-secondary { background: var(--saffron);    color: var(--anthracite); }
.hp-btn-lg   { padding: 18px 32px; font-size: 17px; }
.hp-btn-full { width: 100%; }

/* ===== MARQUEE (ticker défilant) ===== */
.hp-marquee {
  background: var(--anthracite);
  color: var(--ivory);
  border-block: var(--border-thick);
  overflow: hidden;
  position: relative;
}
.hp-marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  padding: 14px 0;
  animation: hp-marquee-anim 50s linear infinite;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hp-marquee-track > span { display: inline-flex; align-items: center; gap: 14px; }
.hp-marquee-track > span::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--saffron);
  display: inline-block;
}
@keyframes hp-marquee-anim { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hp-marquee--blue { background: var(--klein); color: var(--ivory); }
.hp-marquee--ivory { background: var(--ivory-soft); color: var(--anthracite); }
@media (prefers-reduced-motion: reduce) { .hp-marquee-track { animation: none; } }

/* ===== NAVBAR (sticky) ===== */
.hp-nav {
  background: var(--ivory);
  border-bottom: var(--border-med);
  position: sticky;
  top: 0;
  z-index: 50;
}
.hp-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hp-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.hp-logo:hover { text-decoration: none; }
.hp-logo-mark {
  width: 36px; height: 36px;
  background: var(--anthracite);
  color: var(--ivory);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  border: var(--border-med);
}
.hp-logo-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
.hp-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--anthracite);
}
.hp-logo-img { display: none; }
.hp-nav-right { display: flex; align-items: center; gap: 28px; }
.hp-nav-link { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--anthracite); }
.hp-nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) {
  .hp-nav-link { display: none; }
  .hp-nav-right { gap: 0; }
  .hp-nav-inner { padding: 12px 20px; }
}

/* ===== HERO ===== */
.hp-hero {
  background: var(--ivory);
  padding: 88px 0 120px;
  border-bottom: var(--border-med);
  position: relative;
  overflow: hidden;
}
.hp-hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hp-hero-bg, .hp-hero-anime { display: none; }
.hp-sub {
  max-width: 740px;
  margin: 24px auto 36px;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.55;
  color: var(--anthracite);
}
.hp-hero-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hp-hero-trust { font-family: var(--font-body); font-size: 14px; color: var(--anthracite); opacity: 0.75; margin: 0; }
@media (max-width: 640px) { .hp-hero { padding: 60px 0 80px; } }

/* ===== COVERAGE — Klein blue ===== */
.hp-coverage {
  background: var(--klein);
  color: var(--ivory);
  padding: 120px 0;
  border-bottom: var(--border-med);
}
.hp-coverage .hp-eyebrow { border-color: var(--ivory); color: var(--ivory); }
.hp-coverage .hp-h2, .hp-coverage .hp-p { color: var(--ivory); }
.hp-coverage .hp-h2 em, .hp-coverage .hp-accent { color: var(--saffron); }
.hp-coverage-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hp-coverage-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hp-coverage-text .hp-p { margin: 0; }
.hp-coverage-img {
  background: var(--ivory);
  border: var(--border-thick);
  padding: 24px;
}
.hp-coverage-img img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .hp-coverage { padding: 80px 0; }
  .hp-coverage-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== HOW IT WORKS — saffron ===== */
.hp-how {
  background: var(--saffron);
  color: var(--anthracite);
  padding: 120px 0;
  border-bottom: var(--border-med);
}
.hp-how .hp-section-head { text-align: center; }
.hp-how .hp-section-head > * { margin-left: auto; margin-right: auto; }
.hp-how .hp-eyebrow { background: var(--saffron); }
.hp-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hp-how-card {
  background: var(--ivory);
  border: var(--border-thick);
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 200ms, box-shadow 200ms;
}
.hp-how-card:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-md); }
.hp-how-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.hp-how-num {
  font-family: var(--font-display);
  font-size: clamp(72px, 8vw, 110px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--klein);
  letter-spacing: -0.04em;
}
.hp-how-img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 8px;
  /* Les WebP existants ont un fond blanc + ombre subtile — pas d'alpha.
     multiply fait disparaître le blanc dans l'ivoire de la card et garde l'or visible. */
  mix-blend-mode: multiply;
}
.hp-how-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.hp-how-card .hp-p { margin: 0; }
@media (max-width: 900px) {
  .hp-how { padding: 80px 0; }
  .hp-how-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== STACK — anthracite ===== */
.hp-stack {
  background: var(--anthracite);
  color: var(--ivory);
  padding: 120px 0;
  border-bottom: var(--border-med);
}
.hp-stack .hp-eyebrow { border-color: var(--ivory); color: var(--ivory); }
.hp-stack .hp-h2 { color: var(--ivory); }
.hp-stack .hp-h2 em, .hp-stack .hp-accent { color: var(--saffron); }
.hp-stack .hp-p { color: var(--ivory); opacity: 0.85; }
.hp-stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.hp-stack-item {
  background: var(--klein-deep);
  border: 1.5px solid rgba(244, 239, 226, 0.18);
  border-left: 4px solid var(--saffron);
  padding: 28px 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hp-stack-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin-bottom: 4px;
  /* Les pictos or sont sur fond transparent (PNG/WebP avec alpha) — pas besoin de blend */
}
.hp-stack-item strong { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.hp-stack-item p { font-size: 14.5px; line-height: 1.55; margin: 0; opacity: 0.85; }
@media (max-width: 720px) {
  .hp-stack { padding: 80px 0; }
  .hp-stack-grid { grid-template-columns: 1fr; }
}

/* ===== PRICING — blush ===== */
.hp-pricing {
  background: var(--blush);
  color: var(--anthracite);
  padding: 120px 0;
  border-bottom: var(--border-med);
}
.hp-pricing .hp-section-head { text-align: center; }
.hp-pricing .hp-section-head > * { margin-left: auto; margin-right: auto; }
.hp-pricing .hp-eyebrow { background: var(--blush); }
.hp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 48px;
}
.hp-plan {
  background: var(--ivory);
  border: var(--border-thick);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 200ms, box-shadow 200ms;
}
.hp-plan:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-md); }
.hp-plan-popular { background: var(--anthracite); color: var(--ivory); transform: translateY(-20px); }
.hp-plan-popular:hover { transform: translate(-4px, -24px); box-shadow: var(--shadow-md); }
.hp-plan-badge {
  position: absolute;
  top: -18px;
  left: 24px;
  padding: 6px 14px;
  background: var(--saffron);
  color: var(--anthracite);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: var(--border-med);
}
.hp-plan-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}
.hp-plan-price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0; }
.hp-plan-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hp-plan-popular .hp-plan-amount { color: var(--saffron); }
.hp-plan-period { font-family: var(--font-body); font-weight: 500; font-size: 14px; opacity: 0.7; }
.hp-plan-desc { margin: 0; font-size: 15px; opacity: 0.85; }
.hp-plan-feats { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.hp-plan-feats li { font-size: 14.5px; display: flex; gap: 8px; }
.hp-plan-feats li::before { content: '✓'; color: var(--saffron); font-weight: 700; }
.hp-pricing-cta { text-align: center; margin: 56px 0 8px; }
.hp-pricing-fineprint { text-align: center; font-size: 13px; opacity: 0.7; margin: 8px 0 0; }
@media (max-width: 900px) {
  .hp-pricing { padding: 80px 0; }
  .hp-pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .hp-plan-popular { transform: translateY(0); }
  .hp-plan-popular:hover { transform: translate(-4px, -4px); }
}

/* ===== FAQ — ivoire ===== */
.hp-faq {
  background: var(--ivory);
  color: var(--anthracite);
  padding: 120px 0;
  border-bottom: var(--border-med);
}
.hp-faq .hp-section-head { text-align: center; }
.hp-faq .hp-section-head > * { margin-left: auto; margin-right: auto; }
.hp-faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hp-faq-item { border: var(--border-med); background: var(--white); }
.hp-faq-item[open] { border-color: var(--klein); }
.hp-faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.3vw, 19px);
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hp-faq-item summary::-webkit-details-marker { display: none; }
.hp-faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: var(--klein);
  flex-shrink: 0;
}
.hp-faq-item[open] summary::after { content: '−'; }
.hp-faq-item p {
  padding: 0 24px 22px;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  opacity: 0.85;
}
.hp-faq-item p a { color: var(--klein); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .hp-faq { padding: 80px 0; } }

/* ===== TRUST — Klein blue ===== */
.hp-trust {
  background: var(--klein);
  color: var(--ivory);
  padding: 56px 0;
  border-bottom: var(--border-med);
}
.hp-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.hp-trust-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 3px solid var(--saffron);
  padding-left: 20px;
}
.hp-trust-item strong { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.hp-trust-item span { font-family: var(--font-body); font-size: 13.5px; opacity: 0.85; }
@media (max-width: 720px) { .hp-trust-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ===== FOOTER — anthracite ===== */
.hp-footer { background: var(--anthracite); color: var(--ivory); padding: 64px 0 32px; }
.hp-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.hp-footer-brand { display: flex; flex-direction: column; gap: 12px; }
.hp-footer-brand strong { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.hp-footer-brand p { font-size: 14px; opacity: 0.7; max-width: 320px; margin: 0; }
.hp-footer-logo {
  width: 48px; height: 48px;
  background: var(--ivory);
  color: var(--anthracite);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  border: var(--border-med);
  border-color: var(--ivory);
}
.hp-footer img.hp-footer-logo { display: none; }
.hp-footer-links { display: flex; flex-direction: column; gap: 8px; }
.hp-footer-links h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 12px;
  opacity: 0.6;
}
.hp-footer-links a, .hp-footer-links span { font-size: 14.5px; color: var(--ivory); opacity: 0.85; }
.hp-footer-links a:hover { color: var(--saffron); text-decoration: none; opacity: 1; }
.hp-footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(244, 239, 226, 0.15);
  font-size: 12.5px;
  opacity: 0.6;
}
@media (max-width: 720px) { .hp-footer-top { grid-template-columns: 1fr; gap: 32px; } }

/* ===== MODAL ===== */
.hp-modal {
  position: fixed;
  inset: 0;
  background: rgba(21, 19, 14, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.hp-modal[hidden] { display: none; }
.hp-modal-card {
  background: var(--ivory);
  border: var(--border-thick);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  position: relative;
}
.hp-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: var(--anthracite);
  color: var(--ivory);
  border: var(--border-med);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hp-modal-close:hover { background: var(--klein); }
.hp-modal-step { display: flex; flex-direction: column; gap: 14px; }
.hp-modal-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.15; margin: 0; }
.hp-modal-sub { font-size: 15px; opacity: 0.85; margin: 0 0 12px; line-height: 1.5; }
.hp-form { display: flex; flex-direction: column; gap: 18px; }
.hp-field { display: flex; flex-direction: column; gap: 6px; }
.hp-field-label { font-family: var(--font-body); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.hp-input {
  border: var(--border-med);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color 200ms;
}
.hp-input:focus { border-color: var(--klein); border-width: 2.5px; }
.hp-field-help { font-size: 13px; opacity: 0.65; }
.hp-tuto summary { font-family: var(--font-body); font-weight: 500; font-size: 14px; cursor: pointer; padding: 8px 0; color: var(--klein); }
.hp-tuto-body { padding: 16px 0; display: flex; flex-direction: column; gap: 16px; }
.hp-tuto-steps { padding-left: 20px; font-size: 14.5px; }
.hp-tuto-steps li { margin-bottom: 8px; }
.hp-tuto-img { border: 1.5px solid var(--anthracite); width: 100%; }
.hp-form-error { background: var(--blush); border: var(--border-med); padding: 12px 14px; font-size: 14px; }
.hp-form-fineprint { font-size: 13px; opacity: 0.7; margin: 0; line-height: 1.5; }
.hp-form-fineprint a { color: var(--klein); text-decoration: underline; }
.hp-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--anthracite);
  border-top-color: var(--saffron);
  border-radius: 50%;
  margin: 8px auto;
  animation: hp-spin 1s linear infinite;
}
@keyframes hp-spin { to { transform: rotate(360deg); } }
.hp-success-icon, .hp-info-icon {
  width: 56px; height: 56px;
  background: var(--saffron);
  border: var(--border-med);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  margin: 8px auto;
}
.hp-info-icon { background: var(--blush); }
.hp-found-extra { font-size: 13.5px; opacity: 0.7; text-align: center; margin: 0; }

/* ===== Responsive global ===== */
@media (max-width: 480px) {
  .hp-h1 { font-size: clamp(40px, 12vw, 56px); }
  .hp-h2 { font-size: clamp(32px, 9vw, 44px); }
  .hp-btn { padding: 12px 20px; font-size: 15px; }
  .hp-btn-lg { padding: 14px 24px; font-size: 16px; }
}

@media print { .hp-marquee, .hp-modal, .hp-nav { display: none; } }
