/* =========================================================
   HOSTLY — STYLE COMMUN
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
body { overflow-x: clip; }

:root {
  /* ── Palette Sable & Marine (nouvelle) ──
     Ancienne palette :
     --navy: #0B1B3B / --blue: #3B5BDB / --bg: #FFFFFF / --bg-soft: #F8FAFD
     --text-soft: #5A6B8C / --text-mute: #8A96B1 / --line: #E6EBF5
  */
  --navy:        #1B2F4B;
  --navy-deep:   #111E30;
  --navy-soft:   #2A4060;
  --blue:        #C4704F;
  --blue-text:   #8B4A2E; /* terracotta foncé pour textes petits — contraste 5.1:1 sur fond sable */
  --blue-light:  #F7EDE7;
  --blue-hint:   #FBF5F2;
  --text:        #1B2F4B;
  --text-soft:   #4A5E72;
  --text-mute:   #8A96A8;
  --bg:          #F5F0E8;
  --bg-soft:     #EDE8DF;
  --line:        #DDD8CE;
  --line-soft:   #E8E4DC;
  --success:     #E8F3EE;
  --success-ink: #2E7D5B;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-sm: 0 1px 2px rgba(11, 27, 59, 0.04), 0 1px 3px rgba(11, 27, 59, 0.06);
  --shadow:    0 4px 12px rgba(11, 27, 59, 0.06), 0 2px 6px rgba(11, 27, 59, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(11, 27, 59, 0.12), 0 10px 20px -5px rgba(11, 27, 59, 0.08);
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--navy); color: #fff; }

/* ACCESSIBILITÉ */
:focus-visible {
  outline: 2px solid var(--blue-text);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* TYPO */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-block;
}
.h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.lead {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 60ch;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section { padding: clamp(4rem, 8vw, 7rem) 0; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--text-mute); }
.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
  overflow: visible;
}
.nav.scrolled { border-bottom-color: var(--line); }
body { padding-top: 64px; }
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.nav__logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.nav__menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--navy); }
.nav__right { display: flex; gap: 0.75rem; align-items: center; }
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* FOOTER */
.footer {
  padding: clamp(3rem, 5vw, 4rem) 0 2rem;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--navy);
}
.footer__tag {
  color: var(--text-soft);
  font-size: 0.9rem;
  max-width: 30ch;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.footer__social { display: flex; gap: 0.5rem; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--text-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__social a:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}
.footer__social svg { width: 16px; height: 16px; }
.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer__col a {
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: var(--navy); }
.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom a { color: var(--text-soft); }
.footer__bottom a:hover { color: var(--navy); }

/* CTA FINAL */
.cta-final { padding: clamp(4rem, 7vw, 6rem) var(--pad); }
.cta-final__inner {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--navy);
  border-radius: 24px;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final__inner::before {
  content: "";
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59, 91, 219, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
  position: relative;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-final__desc {
  color: #B4C2DE;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-final__btn-white {
  background: #fff;
  color: var(--navy);
}
.cta-final__btn-white:hover {
  background: #fff;
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* PAGE HEADER (interior pages) */
.page-header {
  padding: clamp(4rem, 7vw, 7rem) 0 clamp(3rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header__bg {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--blue-light) 0%, transparent 60%);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}
.page-header .eyebrow { margin-bottom: 1.25rem; }
.page-header .h1 { max-width: 16ch; margin: 0 auto 1.5rem; }
.page-header .lead { margin: 0 auto; }

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }

/* RESPONSIVE GLOBAL */
@media (max-width: 900px) {
  /* Nav opaque sur mobile */
  .nav {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Dropdown compact : juste derrière les liens, pas plein écran */
  .nav__menu {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - 64px) !important;
    background: #ffffff !important;
    flex-direction: column !important;
    padding: 0.5rem 1.5rem 1.25rem !important;
    gap: 0 !important;
    transform: translateY(-8px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease) !important;
    box-shadow: 0 8px 24px rgba(11,27,59,0.12) !important;
    border-top: 1px solid var(--line) !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    /* ↓ clé : hauteur automatique selon contenu */
    bottom: auto !important;
  }
  .nav__menu.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .nav__menu li { border-bottom: 1px solid var(--line-soft); }
  .nav__menu li:last-child { border-bottom: none; }
  .nav__menu .nav__link {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }
  .nav__burger { display: flex; }
  .nav__right .btn--ghost { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Espacement téléphone section process */
  .process__visual { margin-top: 3rem !important; }
}

@media (max-width: 768px) {
  /* Réduction globale de la typographie sur mobile */
  body { font-size: 14px !important; }
  .h1 { font-size: clamp(1.7rem, 7vw, 2.2rem) !important; }
  .h2 { font-size: clamp(1.45rem, 5.5vw, 1.8rem) !important; }
  .lead { font-size: 0.88rem !important; }
  .section { padding: 2.5rem 0 !important; }

  /* Feature cards */
  .feature-card { padding: 1.25rem; }
  .feature-card__title { font-size: 0.95rem !important; }
  .feature-card__desc { font-size: 0.85rem !important; }

  /* Steps */
  .step__title { font-size: 0.95rem !important; }
  .step__desc { font-size: 0.85rem !important; }

  /* Boutons */
  .btn { font-size: 0.85rem !important; padding: 0.7rem 1.1rem !important; }
  .btn--lg { font-size: 0.88rem !important; }

  /* CTA final */
  .cta-final__desc { font-size: 0.95rem !important; }
}

@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
