/* Help Réparation — couche site au-dessus du design system "Organic" (styles.css).
   Layout, navigation, sections, comparateurs avant/après, responsive. */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(24px, 5vw, 64px);
}

/* ————— Apparition au scroll ————— */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(9px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1),
              transform .8s cubic-bezier(.2,.8,.2,1),
              filter .8s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].is-revealed { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

/* ————— Bande sombre (nav + hero + CTA + footer) ————— */
.dark-band {
  position: relative;
  background: var(--color-neutral-900);
  color: var(--color-bg);
  overflow: hidden;
}
.site-header { padding-bottom: clamp(40px, 6vw, 72px); }
.aurora {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; filter: blur(46px); opacity: .7; pointer-events: none;
}
.halo {
  position: absolute; width: 360px; height: 360px; border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent) 20%, transparent);
  top: -140px; right: -90px; filter: blur(10px);
}

/* ————— Navigation ————— */
.nav-bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 16px 26px;
  padding-block: 20px; flex-wrap: wrap;
}
.nav-brand {
  font-family: var(--font-heading); font-size: 22px;
  color: var(--color-bg); text-decoration: none; margin-right: auto;
}
.nav-links { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.nav-links > a:not(.btn) {
  color: inherit; text-decoration: none; font-size: 15px; opacity: .82;
}
.nav-links > a:not(.btn):hover { opacity: 1; color: var(--color-accent-300); }
.nav-links > a[aria-current="page"] { color: var(--color-accent-300); opacity: 1; }
.nav-links .btn { gap: 8px; }

/* ————— Heros ————— */
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 56px); align-items: center;
  padding-top: clamp(24px, 4vw, 44px);
}
.page-hero {
  position: relative; z-index: 2; max-width: 820px;
  padding-top: clamp(20px, 3vw, 32px);
}
.hero-grid h1, .page-hero h1 { color: var(--color-bg); }
.tag-dark {
  background: color-mix(in srgb, var(--color-accent) 24%, transparent);
  color: var(--color-accent-200);
}
.hero-lead {
  font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6;
  opacity: .82; max-width: 54ch;
}
.hero-checks { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-checks > span {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; opacity: .9;
}
.hero-checks svg { stroke: var(--color-accent-300); flex: none; }

/* Carte formulaire du hero Accueil */
.hero-form-card {
  position: relative; background: var(--color-bg); color: var(--color-text);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg);
}

/* ————— Sections ————— */
.section { padding-block: clamp(56px, 8vw, 90px); }
.section-tight { padding-block: clamp(44px, 6vw, 68px); }
.surface-band { background: var(--color-surface); }

.section-head { margin-bottom: 34px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 40px); margin-top: 14px; }
.section-head-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; flex-wrap: wrap;
}

/* ————— Grilles ————— */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ————— Bandeau clients ————— */
.clients-band { border-bottom: 1px solid var(--color-divider); }
.clients-band .container {
  padding-block: 24px; display: flex; align-items: center;
  gap: 34px; flex-wrap: wrap;
}
.clients-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--color-neutral-600);
}
.client-logo { font-family: var(--font-heading); font-size: 19px; opacity: .7; }

/* ————— Chiffres ————— */
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4vw, 46px);
  color: var(--color-accent-700);
}
.dark-band .stat-value { color: var(--color-accent-300); }
.stat-label { font-size: 14px; color: var(--color-neutral-700); }
.dark-band .stat-label { color: inherit; opacity: .75; }

/* ————— Cartes service ————— */
.icon-circle {
  width: 54px; height: 54px; border-radius: 999px;
  background: var(--color-accent-100); color: var(--color-accent-700);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.service-card { padding: 26px; gap: 14px; background: var(--color-bg); }
.service-card .card-title { font-size: 20px; }
.service-card-lg { padding: 32px; gap: 16px; background: var(--color-surface); }
.service-card-lg .card-title { font-size: 23px; }
.service-card-lg .card-body { font-size: 15px; }
.service-card-lg .icon-circle { width: 56px; height: 56px; }
.check-list {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--color-neutral-700);
}
.check-list > span { display: flex; gap: 9px; align-items: center; }
.check-list svg { stroke: var(--color-accent); flex: none; }

/* ————— Garanties ————— */
.guarantee { }
.guarantee-icon { color: var(--color-accent-2); margin-bottom: 10px; }
.guarantee-title { font-family: var(--font-heading); font-size: 18px; margin-bottom: 4px; }
.guarantee p { margin: 0; font-size: 14px; color: var(--color-neutral-700); }
.guarantee-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--color-bg); border-radius: var(--radius-md); padding: 22px;
}
.guarantee-row > span { color: var(--color-accent-2); flex: none; margin-top: 2px; }

/* ————— Méthode ————— */
.step-num { font-family: var(--font-heading); font-size: 46px; color: var(--color-accent-300); }
.surface-band .step-num, .section .step-num.on-light { color: var(--color-accent); font-size: 44px; }
.step-title { font-family: var(--font-heading); font-size: 19px; margin: 6px 0; }
.step p { margin: 0; font-size: 14px; opacity: .75; }
.surface-band .step p { opacity: 1; color: var(--color-neutral-700); }

/* ————— Témoignages ————— */
.stars { display: flex; gap: 2px; color: var(--color-accent); }
.testimonial-card { padding: 30px; gap: 14px; }
.testimonial-card p { margin: 0; font-size: 16px; line-height: 1.6; }

/* ————— Comparateur avant / après ————— */
.ba-frame {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.ba-frame > .ba-layer { position: absolute; inset: 0; }
.ba-clip { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba-badge {
  position: absolute; top: 16px; z-index: 5;
  font-family: var(--font-heading); font-size: 12px; letter-spacing: .08em;
  padding: 5px 12px; border-radius: 999px; color: var(--color-bg);
}
.ba-badge-before { left: 16px; background: color-mix(in srgb, var(--color-text) 80%, transparent); }
.ba-badge-after { right: 16px; background: var(--color-accent); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: var(--color-bg); transform: translateX(-1.5px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-text) 22%, transparent);
  pointer-events: none; z-index: 4;
  display: flex; align-items: center; justify-content: center;
}
.ba-handle > div {
  position: absolute; width: 44px; height: 44px; border-radius: 999px;
  background: var(--color-bg); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; z-index: 6;
}
.ba-caption-title { font-family: var(--font-heading); font-size: 19px; margin-top: 14px; }
.ba-caption-sub { font-size: 14px; color: var(--color-neutral-700); }

/* ————— Emplacements photo (en attendant les vraies images) ————— */
.img-slot {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 16px; color: var(--color-neutral-600); font-size: 12px;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in srgb, var(--color-neutral-500) 10%, transparent) 14px 15px),
    linear-gradient(160deg, var(--color-neutral-200), var(--color-neutral-300));
}
.img-slot svg { opacity: .55; }
.img-slot.img-slot-static { position: static; inset: auto; width: 100%; height: 100%; }
.ba-frame .img-slot-after {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in srgb, var(--color-accent-2-500) 12%, transparent) 14px 15px),
    linear-gradient(160deg, var(--color-accent-2-100), var(--color-accent-2-300));
}
/* Quand les vraies photos arrivent : <img class="img-cover" src="…"> */
.img-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ————— Blob photo (Qui sommes-nous) ————— */
.blob-mask {
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
  border-radius: 42% 58% 55% 45% / 55% 42% 58% 45%;
}
.floating-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--color-bg); color: var(--color-text);
  border-radius: 22px; padding: 15px 20px; box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.floating-badge > div:first-child {
  font-family: var(--font-heading); font-size: 15px; color: var(--color-accent-700);
}
.floating-badge > div:last-child { font-size: 12px; opacity: .7; }

/* ————— CTA sombre ————— */
.cta-band .container {
  padding-block: clamp(48px, 6vw, 72px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--color-bg); font-size: clamp(28px, 3.2vw, 36px); max-width: 22ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-mail { color: var(--color-accent-300); font-size: 15px; text-decoration: none; }

/* ————— Footer ————— */
.site-footer { border-top: 1px solid rgba(245, 234, 216, .14); }
.footer-grid {
  padding-block: clamp(40px, 5vw, 56px);
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px;
}
.footer-brand { font-family: var(--font-heading); font-size: 22px; margin-bottom: 10px; }
.footer-baseline { font-size: 14px; opacity: .72; max-width: 34ch; margin-bottom: 14px; }
.footer-title { font-family: var(--font-heading); font-size: 14px; margin-bottom: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-col a { color: inherit; opacity: .75; text-decoration: none; }
.footer-col a:hover { opacity: 1; color: var(--color-accent-300); }
.footer-col span { opacity: .75; }
.footer-mail { color: var(--color-accent-300); font-size: 14px; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(245, 234, 216, .14); }
.footer-bottom .container {
  padding-block: 18px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 13px; opacity: .6;
}

/* ————— Formulaire contact ————— */
.contact-form-card {
  background: var(--color-surface);
  border-radius: calc(var(--radius-lg) * 1.15);
  padding: clamp(24px, 3vw, 36px);
}
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--color-surface); border-radius: var(--radius-md); padding: 20px;
}
.info-card > span { color: var(--color-accent-700); flex: none; }
.info-card-title { font-family: var(--font-heading); font-size: 17px; }
.form-note { display: none; font-size: 13px; margin-top: 12px; }
.form-note.is-visible { display: block; }
.form-note.ok { color: var(--color-accent-2-700); }
.form-note.err { color: var(--color-accent-700); }

/* ————— Responsive ————— */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-ba { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
