/* =========================================================
   MAJORIA — Feuille de style
   Palette : jaune #F5B700 · noir #000000 · blanc #FFFFFF
   Titres : Montserrat · Textes : Nunito Sans
   ========================================================= */

:root {
  /* Couleurs de marque */
  --yellow: #F5B700;
  --yellow-dark: #C99500;
  --black: #000000;
  --white: #FFFFFF;

  /* Neutres dérivés (contrastes vérifiés AA) */
  --ink: #0B0B0B;
  --ink-soft: #4A4A4A;      /* texte secondaire sur blanc : 8.9:1 */
  --surface: #FFFFFF;
  --surface-alt: #F6F5F1;
  --line: #E6E3DA;
  --dark-1: #000000;
  --dark-2: #111111;
  --dark-3: #1C1C1C;
  --on-dark-soft: #BDBDBD;  /* texte secondaire sur noir : 11:1 */

  /* Typo */
  --font-title: "Montserrat", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  /* Espacements */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --ease: cubic-bezier(.2,.7,.2,1);
  /* Courbes (skill animate, Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* entrées / sorties */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* mouvements à l'écran */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);   /* panneaux façon iOS */
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); margin: 0 0 var(--s-4); text-wrap: balance; }
/* Interlettrage et interlignage selon la taille : serrés en grand, neutres en petit */
h1 { font-size: clamp(2.4rem, 5.8vw, 4.2rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
::selection { background: var(--yellow); color: var(--black); }
strong { font-weight: 700; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--s-4); }
@media (min-width: 768px) { .container { padding: 0 var(--s-6); } }
.narrow { max-width: 820px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -60px; z-index: 100; background: var(--yellow); color: var(--black); padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: var(--s-4); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.section:not(.section-dark) :focus-visible { outline-color: var(--black); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  font-family: var(--font-title); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease-out), transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* Retour immédiat à l'appui (recette « button press ») */
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .icon { transform: translateX(4px); } }
.btn-primary { background: var(--yellow); color: var(--black); box-shadow: 0 0 0 rgba(245,183,0,0); }
.btn-primary:hover { box-shadow: 0 10px 28px -8px rgba(245,183,0,.55); }
.btn-primary:hover { background: var(--white); }
.section:not(.section-dark) .btn-primary:hover, .price-card .btn-primary:hover { background: var(--black); color: var(--yellow); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-sm { min-height: 44px; padding: 0 var(--s-5); font-size: .875rem; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.72); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  color: var(--white);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(0,0,0,.82); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 30px -12px rgba(0,0,0,.5); }
@media (prefers-reduced-transparency: reduce) { .site-header, .site-header.scrolled { background: var(--black); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Barre de progression de lecture */
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); pointer-events: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-title); font-weight: 600; font-size: 1.25rem; letter-spacing: .14em; }
.brand-sub { font-family: var(--font-body); font-weight: 800; font-size: .6rem; letter-spacing: .32em; text-transform: uppercase; color: var(--yellow); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a:not(.btn) { position: relative; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--on-dark-soft); transition: color .2s; padding: var(--s-2) 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); }
.nav a:not(.btn):hover, .nav a.active { color: var(--white); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: none; border: 0; color: var(--white); cursor: pointer; border-radius: var(--radius-sm);
  }
  .nav-toggle .icon { width: 28px; height: 28px; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); padding: var(--s-2) var(--s-4) var(--s-5);
    border-bottom: 1px solid rgba(255,255,255,.1);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: var(--s-4) 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav .btn { margin-top: var(--s-4); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1000px 520px at 85% 30%, rgba(245,183,0,.16), transparent 60%), var(--black);
  color: var(--white);
  padding: var(--s-8) 0 var(--s-9);
}
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; font-size: .9rem; color: var(--yellow); letter-spacing: .02em; margin-bottom: var(--s-5); }
.eyebrow .icon { width: 1.05em; height: 1.05em; }
.hl { color: var(--yellow); }
.hero h1 { text-wrap: wrap; }
@media (min-width: 600px) { .hl { white-space: nowrap; } }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--on-dark-soft); max-width: 36em; margin-bottom: var(--s-6); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); }
.hero-points li { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: .95rem; }
.hero-points .icon { color: var(--yellow); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-mark { width: min(340px, 70vw); height: auto; filter: drop-shadow(0 30px 60px rgba(245,183,0,.18)); }
.hero-card {
  position: absolute; left: 0; bottom: 8%;
  display: flex; align-items: center; gap: var(--s-4);
  background: var(--white); color: var(--black);
  padding: var(--s-4) var(--s-5); border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.hero-card-big { font-family: var(--font-title); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.hero-card-txt { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.hero-card-txt small { font-weight: 600; color: var(--ink-soft); font-size: .78rem; }
@media (max-width: 959px) { .hero-visual { display: none; } .hero { padding: var(--s-7) 0 var(--s-8); } }

.hero { padding-bottom: 0; }
.hero > .container { position: relative; }

/* Lueur dorée qui suit la souris : un élément à part, déplacé directement en JS
   (jamais via une variable sur .hero, qui recalculerait tout le hero) */
.hero-glow {
  position: absolute; left: 50%; top: 45%; width: 900px; height: 620px; margin: -310px 0 0 -450px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245,183,0,.11), transparent);
  will-change: transform;
}
.hero-mark, .hero-card { will-change: transform; }

/* Entrée du titre et du texte : montée + netteté, en cascade (60 ms) */
@keyframes rise { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.js .hero-copy > * { animation: rise .8s var(--ease-out) both; }
.js .hero-copy > :nth-child(1) { animation-delay: .05s; }
.js .hero-copy > :nth-child(2) { animation-delay: .11s; }
.js .hero-copy > :nth-child(3) { animation-delay: .17s; }
.js .hero-copy > :nth-child(4) { animation-delay: .23s; }
.js .hero-copy > :nth-child(5) { animation-delay: .29s; }

/* « de bonnes mains » : un coup de surligneur qui se dessine */
@keyframes highlight { to { background-size: 100% .2em; } }
.hero .hl {
  background: linear-gradient(rgba(245,183,0,.32), rgba(245,183,0,.32)) no-repeat 0 88% / 0% .2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.js .hero .hl { animation: highlight .9s var(--ease-in-out) 1s forwards; }
html:not(.js) .hero .hl { background-size: 100% .2em; }

/* Logo qui se construit : chaque panneau monte depuis sa base, un par un */
@keyframes build { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero-mark .panel { transform-box: fill-box; }
.js .hero-mark .panel { animation: build .9s var(--ease-in-out) both; }
.js .hero-mark .p1 { animation-delay: .3s; }
.js .hero-mark .p2 { animation-delay: .42s; }
.js .hero-mark .p3 { animation-delay: .54s; }
.js .hero-mark .p4 { animation-delay: .62s; }

/* Puis un reflet de lumière passe une seule fois sur le logo */
@keyframes shine { from { transform: skewX(-14deg) translateX(0); } to { transform: skewX(-14deg) translateX(1500px); } }
.hero-mark .shine { opacity: 0; }
.js .hero-mark .shine { animation: shine 1.4s var(--ease-in-out) 1.7s both; opacity: 1; }

/* La carte « 20 % » arrive après le logo */
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.hero-depth { position: relative; display: flex; justify-content: center; width: 100%; }
.js .hero-card { animation: card-in .7s var(--ease-out) 1.2s both; }
.hero-card-big .count { display: inline-block; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }

/* En descendant, le logo recule doucement (navigateurs récents) */
@supports (animation-timeline: view()) {
  @keyframes recede { to { transform: translateY(60px) scale(.92); opacity: .35; } }
  .hero-depth { animation: recede linear both; animation-timeline: view(); animation-range: exit 0% exit 80%; }
}

/* Bandeau défilant des services */
.marquee {
  margin-top: var(--s-8); border-top: 1px solid rgba(255,255,255,.1); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: var(--s-5) 0; }
.marquee li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-title); font-weight: 600; font-size: .95rem; letter-spacing: .02em; color: var(--on-dark-soft);
}
.marquee li::after { content: ""; width: 7px; height: 7px; margin: 0 var(--s-6); background: var(--yellow); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }

/* ---------- Bandeau promesse ---------- */
.promise-band { background: var(--yellow); color: var(--black); padding: var(--s-6) 0; }
.promise-band p { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.4rem); text-align: center; text-wrap: balance; }
.promise-band strong { font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: var(--s-9) 0; }
@media (max-width: 767px) { .section { padding: var(--s-8) 0; } }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark p { color: var(--on-dark-soft); }
.section-dark strong { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: var(--s-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-intro { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.kicker {
  display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: var(--s-3);
  padding-left: 28px; position: relative;
}
.kicker::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 3px; background: var(--yellow); transform: translateY(-50%); }
.section-head.center .kicker { padding: 0 28px; }
.section-head.center .kicker::after { content: ""; position: absolute; right: 0; top: 50%; width: 18px; height: 3px; background: var(--yellow); transform: translateY(-50%); }
.kicker-yellow { color: var(--yellow); }
.muted { color: var(--ink-soft); font-style: italic; }
.section-dark .muted { color: var(--on-dark-soft); }

.split { display: grid; gap: var(--s-7); align-items: center; }
.split-top { align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }

/* Liste propriétaire */
.owner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.owner-list li {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 700; font-size: 1.05rem; background: var(--surface);
  transition: border-color .2s, transform .2s var(--ease);
}
.owner-list li:hover { border-color: var(--black); transform: translateX(4px); }
.owner-list .num { font-family: var(--font-title); font-weight: 800; font-size: .9rem; color: var(--black); background: var(--yellow); border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; }

/* Cartes "pourquoi" */
.cards-grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-6); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 18px 40px -12px rgba(0,0,0,.14); border-color: transparent; }
.card p { color: var(--ink-soft); margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--black); color: var(--yellow); margin-bottom: var(--s-5); transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease-out); }

/* Survol des cartes : réservé aux souris (le tactile déclenche de faux survols) */
.card { position: relative; isolation: isolate; }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 0%), rgba(245,183,0,.16), transparent 65%);
  opacity: 0; transition: opacity .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover::before { opacity: 1; }
  .card:hover .card-icon { background: var(--yellow); color: var(--black); transform: rotate(-6deg) scale(1.06); }
}
@media (hover: none) {
  .card:hover, .step:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .owner-list li:hover { transform: none; }
}
.card-icon .icon { width: 24px; height: 24px; }

/* Services : avant / pendant / après */
.stay-grid { display: grid; gap: var(--s-4); }
@media (min-width: 860px) { .stay-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.stay-col { border-top: 4px solid var(--yellow); background: var(--surface-alt); border-radius: 0 0 var(--radius) var(--radius); padding: var(--s-6); }
.stay-label { font-family: var(--font-title); font-weight: 800; font-size: 1.15rem; margin-bottom: var(--s-4); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 999px;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Qui décide quoi */
.decide { background: var(--dark-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: var(--s-6); }
.decide-title { color: var(--white); margin-bottom: var(--s-4); }
.decide-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.decide-table th { text-align: left; font-family: var(--font-title); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); padding: 0 0 var(--s-3); border-bottom: 1px solid rgba(255,255,255,.15); }
.decide-table td { padding: var(--s-3) 0; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; color: var(--white); }
.decide-table th:last-child { text-align: right; }
.decide-table td:last-child { text-align: right; white-space: nowrap; padding-left: var(--s-3); }
.decide-table small { display: block; color: var(--on-dark-soft); font-size: .78rem; margin-top: 4px; }
.tag { display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }
.tag-you { background: var(--white); color: var(--black); }
.tag-us { background: var(--yellow); color: var(--black); }
@media (max-width: 480px) { .decide { padding: var(--s-5); } .decide-table td:last-child { white-space: normal; } }

/* Tarifs */
.pricing-grid { display: grid; gap: var(--s-5); align-items: stretch; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
.price-card { background: var(--black); color: var(--white); border-radius: var(--radius); padding: var(--s-7) var(--s-6); display: flex; flex-direction: column; }
.price-label { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--yellow); margin-bottom: var(--s-2); }
.price-big { font-family: var(--font-title); font-weight: 800; font-size: clamp(3.5rem, 8vw, 5rem); line-height: 1; margin-bottom: var(--s-3); color: var(--white); }
.price-note { color: var(--on-dark-soft); margin-bottom: var(--s-5); }
.price-card .check-list { margin-bottom: var(--s-5); }
.price-extras { border-top: 1px solid rgba(255,255,255,.15); padding-top: var(--s-4); margin-bottom: var(--s-5); margin-top: auto; }
.price-extras p { color: var(--on-dark-soft); font-size: .95rem; margin-bottom: var(--s-2); }
.price-extras strong { color: var(--white); }
.price-card .btn-primary:hover { background: var(--white); color: var(--black); }

.sim { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); background: var(--surface-alt); display: flex; flex-direction: column; }
.sim-label { display: block; font-weight: 700; margin-bottom: var(--s-3); }
.sim-label span { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.sim-input { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); }
.sim-input output { font-family: var(--font-title); font-weight: 800; font-size: 1.35rem; min-width: 6.5ch; text-align: right; font-variant-numeric: tabular-nums; }
input[type="range"] { flex: 1; appearance: none; -webkit-appearance: none; height: 44px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--black) var(--p, 26%), #D7D3C7 var(--p, 26%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: #D7D3C7; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--black); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--black); margin-top: -10px; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--black); }
.sim-rows { margin: 0 0 var(--s-4); }
.sim-rows div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px dashed #D7D3C7; }
.sim-rows dt { color: var(--ink-soft); }
.sim-rows dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.sim-rows .sim-total { border-bottom: 0; padding-top: var(--s-4); }
.sim-rows .sim-total dt { color: var(--ink); font-weight: 700; }
.sim-rows .sim-total dd { font-family: var(--font-title); font-size: 1.4rem; background: var(--yellow); padding: 2px 10px; border-radius: 6px; }
.sim-foot { font-size: .85rem; color: var(--ink-soft); margin: auto 0 0; }

.excluded { margin-top: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 var(--s-6); }
.excluded summary { cursor: pointer; font-family: var(--font-title); font-weight: 700; padding: var(--s-5) 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 48px; }
.excluded summary::-webkit-details-marker { display: none; }
.excluded summary::after, .faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 500; line-height: 1; transition: transform .2s var(--ease); flex-shrink: 0; }
.excluded[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); }
.x-list { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: var(--s-2) var(--s-6); }
@media (min-width: 700px) { .x-list { grid-template-columns: 1fr 1fr; } }
.x-list li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.x-list li::before { content: "—"; position: absolute; left: 0; color: var(--ink); font-weight: 700; }

/* Parcours */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--surface); border-radius: var(--radius); padding: var(--s-6) var(--s-5) var(--s-5); position: relative; border: 1px solid var(--line); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 16px 34px -14px rgba(0,0,0,.16); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--black); color: var(--yellow); font-family: var(--font-title); font-weight: 800; margin-bottom: var(--s-4); transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease-out); }
.step:nth-child(2) .step-n, .step:hover .step-n { background: var(--yellow); color: var(--black); }
.step:hover .step-n { transform: scale(1.08); }
.step h3 { font-size: 1.08rem; margin-bottom: var(--s-2); }
.step p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* Parcours voyageur */
.journey { list-style: none; padding: 0; margin: 0; position: relative; }
.journey::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.journey li { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-3) 0; position: relative; }
.journey .icon { width: 48px; height: 48px; padding: 12px; border-radius: 999px; background: var(--yellow); color: var(--black); }
.journey div { display: flex; flex-direction: column; padding-top: 4px; }
.journey strong { font-family: var(--font-title); }
.journey span { color: var(--ink-soft); }

/* Engagement */
.engagement h2 { color: var(--white); }
.pillars { display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.pillar { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: var(--s-6); text-align: center; transition: border-color .25s; }
.pillar:hover { border-color: var(--yellow); }
.pillar-k { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--yellow) !important; margin-bottom: var(--s-2); }
.pillar-v { font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; color: var(--white) !important; margin: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-5) 0; font-family: var(--font-title); font-weight: 700; font-size: 1.08rem; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--yellow-dark); }
.faq details p { color: var(--ink-soft); padding-right: var(--s-6); margin-bottom: var(--s-5); }

/* Ouverture fluide des questions (navigateurs récents ; ailleurs, ouverture instantanée) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content, .excluded::details-content {
    block-size: 0; overflow: hidden; opacity: 0;
    transition: block-size .25s var(--ease-out), opacity .25s var(--ease-out), content-visibility .25s allow-discrete;
  }
  .faq details[open]::details-content, .excluded[open]::details-content { block-size: auto; opacity: 1; }
}
.excluded summary::after, .faq summary::after { transition: transform .25s var(--ease-out); }

/* Contact */
.contact-grid { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .95fr 1.05fr; gap: var(--s-8); align-items: start; } }
.contact-grid h2 { color: var(--white); }
.people { display: grid; gap: var(--s-4); margin: var(--s-6) 0 var(--s-5); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.person { border-left: 3px solid var(--yellow); padding: var(--s-2) 0 var(--s-2) var(--s-4); }
.person-head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-3); }
.person-head .person-role { margin-bottom: 0; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; object-position: 50% 18%;
  box-shadow: 0 0 0 2px var(--black), 0 0 0 4px var(--yellow);
}
.avatar-initials { display: grid; place-items: center; background: var(--dark-3); color: var(--yellow); font-family: var(--font-title); font-weight: 800; letter-spacing: .04em; }
.wa-note .icon { display: inline-block; vertical-align: -0.28em; margin-right: 6px; color: var(--yellow); }
.footer-small { font-size: .82rem; opacity: .8; }

/* Carte « 20 % » et titre des tarifs */
.hero-card-free { color: var(--black); font-weight: 800; }
.hero-card-free { background: linear-gradient(rgba(245,183,0,.45), rgba(245,183,0,.45)) no-repeat 0 85% / 100% .35em; }
.hl-text { color: var(--black); background: linear-gradient(rgba(245,183,0,.55), rgba(245,183,0,.55)) no-repeat 0 88% / 100% .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.person-name { font-family: var(--font-title); font-weight: 700; color: var(--white) !important; margin: 0; font-size: 1.1rem; }
.person-role { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--s-3); }
.person a { display: flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--white); min-height: 36px; font-size: .97rem; overflow-wrap: anywhere; transition: color .2s; }
.person a:hover { color: var(--yellow); }
.person .icon { color: var(--yellow); width: 18px; height: 18px; }
.mail-line { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-bottom: var(--s-3); color: var(--white); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.mail-line .icon { color: var(--yellow); }
@media (hover: hover) and (pointer: fine) { .mail-line:hover { color: var(--yellow); } }
.zone { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; }
.zone .icon { color: var(--yellow); }

.insta-card {
  display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  text-decoration: none; color: var(--white); max-width: 420px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.insta-card:hover { border-color: var(--yellow); background: var(--dark-2); }
.insta-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--yellow); color: var(--black); flex-shrink: 0; }
.insta-icon .icon { width: 24px; height: 24px; }
.insta-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.insta-k { font-size: .85rem; color: var(--on-dark-soft); }
.insta-v { font-family: var(--font-title); font-weight: 700; overflow-wrap: anywhere; }
.insta-arrow { margin-left: auto; color: var(--yellow); transition: transform .2s var(--ease); }
.insta-card:hover .insta-arrow { transform: translateX(3px); }

.footer-social { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--white); font-weight: 600; }

.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: var(--s-6); }
@media (min-width: 600px) { .form { padding: var(--s-7); } }
.form h3 { font-size: 1.35rem; margin-bottom: var(--s-5); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); min-width: 0; }
.field-row { display: grid; gap: 0 var(--s-4); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 700; font-size: .92rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  min-height: 48px; padding: var(--s-3) var(--s-4);
  border: 1.5px solid #CFCBBF; border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8A877E; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(245,183,0,.55); }
.field input[aria-invalid="true"] { border-color: #C62828; }
.form .field-error { color: #B71C1C; font-size: .88rem; font-weight: 600; margin: 0; }
.form .btn-primary { margin-top: var(--s-2); background: var(--black); color: var(--yellow); }
.form .btn-primary:hover { background: var(--yellow); color: var(--black); }
.form .form-note { font-size: .83rem; color: var(--ink-soft); margin: var(--s-3) 0 0; text-align: center; }
.form .form-status { margin: var(--s-3) 0 0; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); background: #FFF4CC; color: var(--ink); font-weight: 600; font-size: .92rem; text-align: center; }

/* Barre d'action fixe sur mobile */
.mobile-cta { display: none; }
@media (max-width: 767px) {
  .mobile-cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    display: flex; gap: var(--s-2); padding: 6px;
    background: rgba(0,0,0,.78); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
    border: 1px solid rgba(255,255,255,.12); border-radius: 999px; box-shadow: 0 14px 34px -10px rgba(0,0,0,.55);
    transform: translateY(calc(100% + 24px)); opacity: 0;
    transition: transform .5s var(--ease-drawer), opacity .3s var(--ease);
  }
  .mobile-cta.show { transform: none; opacity: 1; }
  .mobile-cta .btn { flex: 1; min-height: 48px; padding: 0 var(--s-4); }
  .mobile-cta .btn-call { flex: 0 0 48px; width: 48px; padding: 0; color: var(--white); border-color: rgba(255,255,255,.25); }
  .mobile-cta .btn-call .icon { width: 22px; height: 22px; }
  .site-footer { padding-bottom: calc(var(--s-5) + 84px); }
}
@media (max-width: 767px) and (prefers-reduced-transparency: reduce) { .mobile-cta { background: var(--black); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Pied de page */
.site-footer { background: var(--dark-2); color: var(--on-dark-soft); padding: var(--s-8) 0 var(--s-5); font-size: .95rem; }
.footer-grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: var(--white); margin-bottom: var(--s-4); }
.footer-h { font-family: var(--font-title); font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-bottom: var(--s-3); }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-5); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Animations d'apparition ---------- */
/* Utilise opacity + translate (propriétés indépendantes de transform) pour ne pas
   écraser les effets de survol des cartes. */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease-out) var(--d, 0ms), translate .9s var(--ease-out) var(--d, 0ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .reveal.done { transition: none; }
.js .card.reveal, .js .step.reveal { transition: opacity .8s var(--ease-out) var(--d, 0ms), translate .9s var(--ease-out) var(--d, 0ms), transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s; }
.js .card.reveal.done, .js .step.reveal.done { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .js .reveal { opacity: 1; translate: none; }
  .hero-mark, .hero-card, .hero-glow { transform: none !important; }
  .js .hero .hl { animation: none; background-size: 100% .2em; }
  .js .hero-mark .shine { display: none; }
  .hero-depth { animation: none !important; }
  .marquee-track { animation: none; }
  .marquee ul + ul { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: var(--s-2); width: 100vw; }
  .card:hover, .step:hover { transform: none; }
}

/* ---------- Page mentions légales ---------- */
.legal { padding: var(--s-8) 0 var(--s-9); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: var(--s-7); }
.legal p, .legal li { color: var(--ink-soft); }
.legal .todo { background: #FFF4CC; color: var(--ink); padding: 0 6px; border-radius: 4px; font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; text-decoration: none; margin-bottom: var(--s-6); min-height: 44px; }
.back-link .icon { transform: rotate(180deg); }
