/* ============ TOKENS ============ */
:root {
  --navy: #1b3a6b;
  --navy-2: #10233f;
  --orange: #f4791f;
  --orange-2: #ffa552;
  --cream: #fbf5ec;
  --sand: #fbf3e8;
  --white: #ffffff;
  --slate: #5b6472;
  --ink: #221c14;

  /* soft tinted chips, à la Alan (icônes dans un carré arrondi coloré) */
  --chip-peach: #fce6d2;
  --chip-blue: #e4ecf7;

  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-btn: 14px;
  --radius-chip: 16px;
  --shadow: 0 12px 32px rgba(27, 58, 107, 0.08);
  --shadow-soft: 0 4px 14px rgba(27, 58, 107, 0.06);

  --font-display: "Fredoka", ui-rounded, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
[id] {
  scroll-margin-top: 100px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}
h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
}
h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
  color: var(--slate);
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow {
  max-width: 760px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.text-orange {
  color: var(--orange);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(244, 121, 31, 0.28);
}
.btn-primary:hover {
  background: #e06a12;
  transform: translateY(-2px);
}
.btn-pill {
  padding: 16px 30px;
  border-radius: var(--radius-btn);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid #ddd4c6;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
}
.btn-ghost:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 58, 107, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  display: block;
  width: auto;
  height: 34px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.main-nav {
  display: flex;
  gap: 30px;
}
.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.97rem;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.2s ease;
}
.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(680px, calc(100svh - 76px));
  padding: 80px 0 96px;
  overflow: hidden;
  background: var(--navy-2);
}
/* Full-bleed looping video behind the copy */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgb(0 0 0 / 0.5) 0%,
    rgba(0, 0, 0, 0.2) 45%,
    rgb(0 0 0 / 0%) 100%
  );
}
.hero-inner {
  width: 100%;
}
.hero-copy {
  max-width: 620px;
}
.hero h1 {
  color: var(--white);
}
.hero-sub,
.hero .form-hint {
  color: rgba(255, 255, 255, 0.85);
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--orange);
  margin: 0 0 14px;
}
.eyebrow-light {
  color: var(--orange-2);
}
.hero-sub {
  font-size: 1.12rem;
  max-width: 480px;
}

.hero-form {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow);
  border: 1px solid #efe8dc;
  max-width: 480px;
  margin-top: 8px;
}
.hero-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: transparent;
  border-radius: 10px;
}
.hero-form input:focus-visible {
  outline: 2px solid var(--orange);
}
.form-hint {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 10px;
}

/* ============ SECTIONS ============ */
.section {
  padding: 96px 0;
}
.section-tint {
  background: var(--sand);
}
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-sub {
  font-size: 1.1rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: none;
  position: relative;
}
.step {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid #f1ebe0;
  position: relative;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-chip);
  background: var(--chip-peach);
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.95rem;
  margin: 0;
}

/* Fiches */
.fiche {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.fiche-reverse .fiche-copy {
  order: 2;
}
.fiche-reverse .fiche-visual {
  order: 1;
}
.fiche-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.fiche-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.list-intro {
  font-weight: 600;
  color: var(--navy);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-size: 0.98rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pull-quote {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.15rem;
  border-left: 4px solid var(--orange);
  padding-left: 18px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.stat {
  background: var(--chip-blue);
  border: 1px solid rgba(27, 58, 107, 0.06);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
}
.stat:nth-child(odd) {
  background: var(--chip-peach);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
.stat-text {
  font-size: 0.88rem;
  margin: 0;
  color: var(--slate);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid #f1ebe0;
}
.review-stars {
  color: var(--orange);
  margin: 0 0 12px;
  letter-spacing: 2px;
}
.review-text {
  font-size: 0.98rem;
  color: var(--ink);
  font-style: italic;
}
.review-author {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.fictif-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 24px;
}

/* FAQ — minimal, à la Alan : liste avec séparateurs fins, pas de cartes */
.accordion {
  display: flex;
  flex-direction: column;
}
.accordion-extra {
  display: flex;
  flex-direction: column;
}
.accordion-extra[hidden] {
  display: none;
}
.accordion-item {
  border-bottom: 1px solid #ece4d6;
}
.accordion-item summary {
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion-item summary::-webkit-details-marker {
  display: none;
}
.accordion-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-chip);
  background: var(--chip-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231B3A6B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}
.accordion-item[open] summary::after {
  transform: rotate(180deg);
}
.accordion-item p {
  padding: 0 0 22px;
  margin: 0;
  font-size: 0.97rem;
  max-width: 640px;
}
#faqToggle {
  align-self: center;
  margin-top: 24px;
}

/* Contact */
.contact-section {
  background: var(--sand);
}
.contact-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 52px;
  box-shadow: var(--shadow);
}
.contact-call {
  border-right: 1px solid rgba(27, 58, 107, 0.1);
  padding-right: 40px;
}
.phone-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  text-decoration: none;
  margin: 10px 0 6px;
}
.phone-note {
  font-size: 0.88rem;
}
.contact-form h3 {
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-60-40 {
  grid-template-columns: 3fr 2fr;
}
.form-row[hidden] {
  display: none;
}
.field-optional {
  font-weight: 400;
  color: var(--slate);
}

/* Steps: all visible without JS, one at a time once script.js adds .is-wizard */
.form-step {
  border: 0;
  margin: 0 0 8px;
  padding: 0;
  min-width: 0;
}
.form-step + .form-step {
  margin-top: 16px;
}
.is-wizard .form-step + .form-step {
  margin-top: 0;
}
.form-step:focus {
  outline: none;
}
.form-step legend {
  padding: 0;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
}
.form-progress {
  margin-bottom: 22px;
}
.form-progress-label {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
}
.form-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--chip-peach);
  overflow: hidden;
}
.form-progress-bar span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--orange);
  border-radius: inherit;
  transition: width 0.3s ease;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.form-actions #formPrev {
  margin-right: auto;
}
.form-actions .btn[hidden] {
  display: none;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #e3d8c6;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--cream);
  resize: vertical;
}
.field select {
  appearance: none;
  padding-right: 40px;
  color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b3a6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--orange);
}
.form-success {
  margin-top: 14px;
  color: #2a6b45;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-error {
  margin-top: 14px;
  color: #b3261e;
  font-weight: 600;
  font-size: 0.95rem;
}
.field-error {
  margin-top: 6px;
  color: #b3261e;
  font-size: 0.85rem;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b3261e;
}
.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-2);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 30px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* The logo SVG is single-colour navy: flatten it to white on the dark footer */
.footer-brand .brand-mark {
  filter: brightness(0) invert(1);
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 10px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.footer-nav a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-nav a:hover,
.footer-legal a:hover {
  color: #fff;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}
.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 24px 0 0;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(27, 58, 107, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  .main-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 980px) {
  .hero-bg::after {
    background: rgba(0, 0, 0, 0.1);
  }
  .fiche {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .fiche-reverse .fiche-copy {
    order: 1;
  }
  .fiche-reverse .fiche-visual {
    order: 2;
  }
  .fiche-visual svg {
    max-width: 240px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .contact-call {
    border-right: none;
    border-bottom: 1px solid rgba(27, 58, 107, 0.1);
    padding-right: 0;
    padding-bottom: 28px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .header-actions .btn-pill {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-form {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }
  .hero-form .btn {
    width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
