/* ============================================================
   KrakenCore.RNG — feuille de style unique (v2)
   Ambiance sombre et cinématique. Deux polices : Fraunces
   (titres), Poppins (corps). Le sarcelle vif porte l'action.
   ============================================================ */

:root {
  /* Couleurs */
  --abyss:        #0c1a1a;   /* fond de page */
  --deep:         #0f2020;   /* pastilles, boutons sombres */
  --surface:      #162b2b;   /* cartes sombres */
  --surface-2:    #1e3838;   /* cartes sombres cerclées, filets */
  --aqua:         #3de8c0;   /* accent principal */
  --teal:         #2bb6b0;   /* accent secondaire (signature du logo) */
  --teal-ink:     #157a76;   /* chiffres sur carte claire */
  --teal-vivid:   #0aa39c;   /* le mot « Cécile » sur fond clair */
  --blue:         #38b6e8;   /* bandeau, accent doux */
  --ink:          #eaf1f0;   /* texte sur fond sombre */
  --card-light:   #ffffff;   /* cartes claires */
  --hero-light:   #f4f7f6;   /* panneau du hero */
  --ink-dark:     #0c1a1a;   /* texte sur carte claire ou vive */
  --ink-on-vivid: rgba(12, 26, 26, .94);
  --muted:        #7e9491;   /* texte doux / secondaire */
  --line:         #24403f;   /* bordures discrètes */

  /* Rayons */
  --r-card: clamp(22px, 2vw, 30px);
  --r-frame: clamp(14px, 1.3vw, 20px);
  --r-pill: 999px;

  /* Rythme */
  --gap: clamp(14px, 1.4vw, 20px);
  --section-y: clamp(32px, 3.8vw, 56px);
  --section-y-half: clamp(21px, 2.3vw, 34px);
  --section-x: clamp(20px, 5vw, 64px);
  --wrap: 1240px;

  /* Texture corail (cartes claires uniquement) */
  --coraux: url("/assets/texture-coraux.webp");
}

/* ---------------------------- Reset ---------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--ink);
  font-family: 'Poppins', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; }
a { color: var(--aqua); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--aqua); color: var(--abyss); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--abyss); }
::-webkit-scrollbar-thumb { background: var(--surface-2); }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

.teal { color: var(--teal); }
.ink  { color: var(--ink); }

/* ---------------------------- Page ---------------------------- */
.page {
  position: relative;
  width: 100%;
  overflow-x: clip;
  isolation: isolate;
  background: var(--abyss);
}
.page-bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("/assets/bubbles.webp");
  background-repeat: repeat;
  background-size: 66% auto;
  mix-blend-mode: screen;
  opacity: .5;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 14%, rgba(0,0,0,.30) 24%, rgba(0,0,0,.12) 60%, rgba(0,0,0,.04) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 14%, rgba(0,0,0,.30) 24%, rgba(0,0,0,.12) 60%, rgba(0,0,0,.04) 100%);
  animation: bubbleB 46s ease-in-out infinite alternate;
}
.wrap { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }

/* ---------------------------- Nav ---------------------------- */
.nav {
  position: fixed;
  top: clamp(12px, 1.6vw, 20px);
  left: clamp(14px, 3vw, 32px);
  right: clamp(14px, 3vw, 32px);
  z-index: 200;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  width: 100%;
  max-width: var(--wrap);
  background: var(--deep);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-pill);
  padding: clamp(9px, 1vw, 12px) clamp(14px, 1.6vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nav__brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.nav__logo { height: 34px; width: auto; flex: 0 0 auto; }
.nav__id { display: flex; flex-direction: column; gap: 1px; }
.nav__name { font-weight: 700; font-size: 14.5px; letter-spacing: .01em; color: var(--ink); }
.nav__name span { color: var(--aqua); font-weight: 600; }
.nav__by { font-weight: 400; font-size: 9.5px; letter-spacing: .12em; color: var(--teal); }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav__links a {
  white-space: nowrap;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .3s ease;
}
.nav__links a:hover { color: var(--aqua); }

/* ---------------------------- Boutons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 0;
  border-radius: var(--r-pill);
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background .3s ease, color .3s ease, transform .4s ease, border-color .3s ease;
}
.btn--aqua { background: var(--aqua); color: var(--abyss); }
.btn--sm { flex: 0 0 auto; padding: 11px 22px; font-weight: 700; font-size: 12.5px; letter-spacing: .04em; }
.btn--sm:hover { background: var(--ink); color: var(--abyss); transform: translateY(-1px); }
.btn--lg { padding: 17px 32px; font-weight: 700; font-size: 15px; }
.btn--lg:hover { background: var(--deep); color: var(--aqua); transform: translateY(-2px); }
.btn--deep { background: var(--deep); color: var(--aqua); font-weight: 700; font-size: 16px; padding: 17px 30px; }
.btn--deep:hover { background: var(--abyss); color: var(--ink); transform: translateY(-2px); }
.btn--block { width: 100%; margin-top: clamp(20px, 2.1vw, 28px); }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--surface-2); font-weight: 600; font-size: 13px; padding: 13px 20px; }
.btn--outline:hover { border-color: var(--teal); color: var(--teal); }

/* ---------------------------- Hero ---------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 10vh, 116px) clamp(14px, 3vw, 32px) var(--section-y);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("/assets/hero-abyss.png") center / cover no-repeat;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(12,26,26,.88) 0%, rgba(12,26,26,.35) 45%, rgba(12,26,26,.9) 100%);
}
.hero__tentacle {
  position: absolute; right: -6%; bottom: -8%; z-index: 2;
  width: clamp(400px, 46vw, 820px);
  height: auto;
  opacity: .42;
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__bubbles {
  position: absolute; inset: -6%; z-index: 3;
  background: url("/assets/bubbles.webp") center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: .34;
  pointer-events: none;
  animation: bubbleA 24s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__panel {
  position: relative;
  z-index: 10;
  max-width: var(--wrap);
  margin: 0 auto;
  background-color: var(--hero-light);
  border-radius:
    clamp(28px,3vw,44px) clamp(28px,3vw,44px) 46% 46% /
    clamp(28px,3vw,44px) clamp(28px,3vw,44px) clamp(44px,5vw,78px) clamp(44px,5vw,78px);
  padding: clamp(42px, 4.4vw, 60px) clamp(28px, 4vw, 64px) clamp(58px, 6.4vw, 92px);
  animation: heroIn 1.4s cubic-bezier(.22, .61, .36, 1) both;
}
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 4vw, 56px); }
.hero__col { flex: 1 1 420px; min-width: 0; width: 100%; }
.hero__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink-dark);
  margin-top: clamp(22px, 2.4vw, 32px);
  max-width: 20ch;
  text-wrap: balance;
}
.hero__lead {
  font-weight: 600;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--ink-dark);
  max-width: 46ch;
  margin-top: clamp(20px, 2.2vw, 28px);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  width: 100%;
  margin-top: clamp(28px, 3vw, 40px);
}
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dark);
}
.bob { display: inline-block; animation: bob 2.4s ease-in-out infinite; }

/* Le mot « Cécile » — jamais en dégradé, jamais en halo */
.cecile { font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; color: var(--teal-vivid); }
.cecile--aqua { color: var(--aqua); }
.cecile--dark { color: var(--ink-dark); }

/* ---------------------------- Sections ---------------------------- */
.section {
  position: relative;
  padding: var(--section-y) var(--section-x);
  scroll-margin-top: 96px;
}
.section--tarif { padding: var(--section-y) var(--section-x) var(--section-y-half); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  background: var(--surface);
  color: var(--aqua);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-pill);
  padding: 8px 17px;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.kicker--blue { color: var(--blue); }

.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: var(--r-pill);
  padding: 8px 17px;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.badge--deep { background: var(--deep); color: var(--aqua); }

.section__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-top: clamp(22px, 2.4vw, 30px);
  max-width: 20ch;
  text-wrap: balance;
}
.section__title--narrow { max-width: 18ch; }
.section__title--tight { max-width: 16ch; }
.section__title--md { font-size: clamp(28px, 4vw, 50px); line-height: 1.02; }
.section__note {
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink);
  max-width: 58ch;
  margin-top: clamp(32px, 3.6vw, 48px);
}
.section__closer {
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
  margin-top: clamp(40px, 4vw, 56px);
}

/* Tentacules décoratifs (ambiance, jamais au premier plan) */
.deco-tentacle {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  mask-image: radial-gradient(86% 120% at 80% 50%, #000 28%, rgba(0,0,0,0) 72%);
  -webkit-mask-image: radial-gradient(86% 120% at 80% 50%, #000 28%, rgba(0,0,0,0) 72%);
  will-change: transform;
}
.deco-tentacle--probleme {
  top: 6%; right: -9%;
  width: clamp(300px, 34vw, 600px);
  opacity: .2;
  transform: rotate(-4deg);
  animation: drift 24s ease-in-out -2s infinite alternate;
}
.deco-tentacle--ugc {
  top: 28%; right: -10%;
  width: clamp(320px, 36vw, 640px);
  opacity: .22;
  transform: rotate(6deg);
  animation: drift 27s ease-in-out -9s infinite alternate;
}
.deco-tentacle--etapes {
  bottom: 2%; right: -8%;
  width: clamp(320px, 38vw, 660px);
  opacity: .24;
  transform: rotate(-2deg);
  animation: drift 22s ease-in-out -5s infinite alternate;
}

/* ---------------------------- Cartes ---------------------------- */
.card { border-radius: var(--r-card); }
.card--surface  { background: var(--surface); }
.card--outline  { background: var(--surface-2); border: 1px solid rgba(61,232,192,.32); }
.card--hairline { border: 1px solid rgba(61,232,192,.28); }
.card--aqua     { background: var(--aqua); }
.card--blue     { background: var(--blue); }

.card--light {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--card-light);
}

.card--light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--coraux);
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: cover;
  mix-blend-mode: multiply;
  border-radius: inherit;
  pointer-events: none;
}

.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__h {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.3;
  margin-top: clamp(16px, 1.6vw, 22px);
  max-width: 26ch;
}
.card__h--lg { font-size: clamp(19px, 1.65vw, 24px); line-height: 1.28; max-width: 22ch; }
.card__h--dark { color: var(--ink-dark); font-weight: 700; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.28; max-width: none; }
.card__h--ink { color: var(--ink); }

.card__p { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.62; margin-top: 14px; }
.card__p--ink { color: var(--ink); max-width: 56ch; }
.card__p--on-vivid { color: var(--ink-on-vivid); max-width: 56ch; }
.card__p--dark { color: var(--ink-dark); font-weight: 600; font-size: clamp(14.5px, 1.08vw, 16.5px); line-height: 1.6; }
.card__p--lg { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.64; max-width: 62ch; }
.card__p--sm { font-size: clamp(14.5px, 1.1vw, 15.5px); line-height: 1.58; margin-top: 0; max-width: none; }
.card__p--step { font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.58; margin-top: 12px; }
.card__p--strip { font-weight: 500; font-size: clamp(15px, 1.3vw, 17.5px); line-height: 1.6; margin-top: 0; max-width: none; }

.num { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(40px, 4vw, 66px); line-height: 1; letter-spacing: -.02em; }
.num--xl { font-size: clamp(56px, 5.8vw, 96px); }
.num--step { font-size: clamp(40px, 3.6vw, 58px); line-height: 1.04; }
.num--aqua { color: var(--aqua); }
.num--teal { color: var(--teal-ink); }
.num--dark { color: var(--ink-dark); }

.label { font-weight: 700; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.label--dark { color: var(--ink-dark); }
.label--aqua { color: var(--aqua); }
.label--wide { font-size: 11px; letter-spacing: .22em; }

.tag-row { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(18px, 2vw, 26px); }
.tag {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--deep); border-radius: var(--r-pill); padding: 7px 15px;
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.tag--aqua { color: var(--aqua); }
.tag-rule { flex: 1; height: 1px; background: var(--surface-2); }

/* ---------------------- Grille « Le problème » ---------------------- */
.problem-grid {
  margin-top: clamp(40px, 5vw, 68px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}
.problem__c1 { grid-column: 1 / 5; grid-row: 1; position: relative; overflow: hidden; display: flex; }
.problem__c1-text { position: relative; z-index: 2; flex: 1 1 48%; padding: clamp(28px, 2.8vw, 46px); display: flex; flex-direction: column; }
.problem__c1-media { position: relative; flex: 1 1 52%; min-height: 470px; align-self: stretch; }
.problem__c1-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: brightness(1.14) saturate(1.04);
  pointer-events: none;
}
.problem__c2 { grid-column: 5 / 7; grid-row: 1; padding: clamp(26px, 2.4vw, 38px); display: flex; flex-direction: column; }
.problem__c3 { grid-column: 1 / 4; grid-row: 2; padding: clamp(26px, 2.4vw, 40px); display: flex; flex-direction: column; }
.problem__c4 { grid-column: 4 / 7; grid-row: 2; padding: clamp(26px, 2.4vw, 40px); display: flex; flex-direction: column; }

/* ---------------------------- UGC ---------------------------- */
.lead-card {
  margin-top: clamp(30px, 3.2vw, 44px);
  max-width: 940px;
  padding: clamp(28px, 3vw, 50px);
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 1.5vw, 21px);
}
.lead-card .card__p { margin-top: 0; }
.ugc__transition { font-weight: 500; font-size: clamp(15px, 1.2vw, 17px); color: var(--ink); margin-top: clamp(40px, 5vw, 68px); }
.ugc__footnote { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin-top: clamp(22px, 2.4vw, 32px); max-width: 62ch; }

.avatars {
  margin-top: clamp(20px, 2.2vw, 28px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.avatar { margin: 0; display: flex; flex-direction: column; padding: clamp(12px, 1.1vw, 16px); border-radius: var(--r-card); }
.avatar__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-frame);
  background: var(--deep);
}
.avatar__frame--light { background: var(--hero-light); }
.avatar__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.22, .61, .36, 1);
}
.avatar:hover .avatar__frame img { transform: scale(1.05); }
.avatar__caption {
  flex: 1 1 auto;
  padding: clamp(18px, 1.7vw, 24px) clamp(12px, 1.1vw, 16px) clamp(12px, 1.1vw, 16px);
  font-size: 15px;
  line-height: 1.55;
}
.avatar__caption--ink { color: var(--ink); }
.avatar__caption--dark { color: var(--ink-dark); }
.avatar__caption--strong { color: var(--ink-dark); font-weight: 600; font-size: 15.5px; line-height: 1.52; }

/* ---------------------------- Bento solution ---------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.bento__solution {
  grid-column: 1 / 8;
  grid-row: 1;
  padding: clamp(30px, 3.2vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bento__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--ink-dark);
  margin-top: clamp(20px, 2.2vw, 28px);
  max-width: 17ch;
  text-wrap: balance;
}
.bento__solution .card__p { max-width: 56ch; margin-top: clamp(20px, 2.2vw, 26px); }
.bento__circle {
  grid-column: 8 / 11;
  grid-row: 1;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 2.4vw, 34px);
  min-height: 210px;
}
.bento__ring {
  width: min(100%, 190px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid rgba(12, 26, 26, .3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
}
.bento__ring-num { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(48px, 4vw, 68px); line-height: 1.04; color: var(--ink-dark); }
.bento__ring-label { font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-dark); }
.bento__deco { grid-column: 11 / 13; grid-row: 1; position: relative; overflow: hidden; min-height: 210px; }
.bento__sonar, .bento__bubbles { position: absolute; inset: 0; }
.bento__sonar { background: repeating-radial-gradient(circle at 72% 26%, rgba(61,232,192,.20) 0 1.5px, rgba(61,232,192,0) 1.5px 28px); }
.bento__bubbles { background: url("/assets/bubbles.webp") center / 140% no-repeat; mix-blend-mode: screen; opacity: .3; }

.bento__simple {
  grid-column: 1 / 6;
  grid-row: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(26px, 2.6vw, 40px);
}
.bento__simple-h {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-top: 14px;
  max-width: 16ch;
  text-wrap: balance;
}
.bento__step1 { grid-column: 6 / 9; grid-row: 2 / 4; }
.bento__step2 { grid-column: 9 / 13; grid-row: 2 / 4; }
.bento__step3 { grid-column: 1 / 6; grid-row: 3; }
.step.bento__step3 { flex-direction: row; }
.bento__step1 .step__frame,
.bento__step2 .step__frame {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: clamp(280px, 24vw, 430px);
}
.bento__step3 .step__frame {
  flex: 0 0 46%;
  aspect-ratio: auto;
  min-height: clamp(220px, 20vw, 320px);
  align-self: stretch;
}
.bento__step3 .step__body { justify-content: center; }

.bento__strip {
  grid-column: 1 / 13;
  grid-row: 4;
  padding: clamp(22px, 2.2vw, 32px) clamp(26px, 3vw, 44px);
  display: flex; align-items: center; gap: 16px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-dark); flex: 0 0 auto; }

/* ---------------------------- Cartes d'étapes (dans le bento) ---------------------------- */
.step { display: flex; flex-direction: column; padding: clamp(16px, 1.4vw, 20px); }
.step__frame {
  position: relative;
  aspect-ratio: 768 / 1376;
  overflow: hidden;
  border-radius: var(--r-frame);
  background: var(--deep);
}
.step__frame--light { background: var(--hero-light); }
.step__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.step__img--contain { object-fit: contain; padding: 10px; }
.step__body {
  flex: 1 1 auto;
  padding: clamp(20px, 1.9vw, 26px) clamp(10px, .9vw, 14px) clamp(10px, .9vw, 14px);
  display: flex; flex-direction: column;
}
.step__body--center { justify-content: center; }

/* ---------------------------- Galerie vidéos ---------------------------- */
.section--galerie { padding: var(--section-y-half) var(--section-x) var(--section-y); }
.gallery { padding: clamp(32px, 3.6vw, 48px) clamp(28px, 3.4vw, 48px) clamp(36px, 4vw, 52px); }
.gallery__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink-dark);
  margin-top: clamp(22px, 2.4vw, 30px);
  max-width: 22ch;
  text-wrap: balance;
}
.gallery__row {
  margin-top: clamp(38px, 4.4vw, 60px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  align-items: start;
}
.gallery__item {
  display: flex;
  align-items: stretch;
  gap: clamp(6px, .8vw, 10px);
  min-width: 0;
}
.gallery__item--down { margin-top: clamp(30px, 3.4vw, 46px); }
.gallery__label {
  flex: 0 0 auto;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 4px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 700;
  font-size: clamp(14px, 1.1vw, 17px); letter-spacing: .03em;
  color: var(--teal-ink);
  white-space: nowrap;
}
.gallery__frame {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-frame);
  overflow: hidden;
  background: var(--deep);
}
.gallery__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--deep);
}
.gallery__tag {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--deep);
}
.gallery__play {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; padding: 0; margin: 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: opacity .3s ease;
}
.gallery__play-circle {
  width: clamp(52px, 5vw, 68px); height: clamp(52px, 5vw, 68px);
  border-radius: 50%;
  background: rgba(12, 26, 26, .55);
  border: 1.5px solid rgba(234, 241, 240, .8);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease, background .3s ease;
}
.gallery__play:hover .gallery__play-circle { transform: scale(1.07); background: rgba(12, 26, 26, .72); }
.gallery__play svg { width: 18px; height: 18px; margin-left: 3px; fill: var(--ink); }
.gallery__item.is-playing .gallery__play { opacity: 0; pointer-events: none; }
.gallery__note {
  margin-top: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  font-size: clamp(14.5px, 1.1vw, 16px);
  color: var(--ink-dark);
}

/* ---------------------------- Prérequis ---------------------------- */
.prereq {
  max-width: 720px;
  margin-top: clamp(20px, 2.2vw, 28px);
  padding: clamp(20px, 2vw, 26px) clamp(22px, 2.4vw, 30px);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(18px, 2vw, 26px);
}
.prereq__head { flex: 1 1 190px; min-width: 0; }
.prereq__title {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1;
  color: var(--ink-dark); margin-top: 10px;
}
.prereq__body { flex: 2 1 320px; min-width: 0; display: flex; align-items: flex-start; gap: 15px; }
.prereq__icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  background: var(--deep); display: flex; align-items: center; justify-content: center;
}
.prereq__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--aqua); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prereq__item-title { font-weight: 700; font-size: clamp(15px, 1.2vw, 17px); color: var(--ink-dark); }
.prereq__sub {
  font-weight: 600; font-size: clamp(13.5px, 1vw, 14.5px); line-height: 1.55;
  color: var(--ink-dark); margin-top: 6px; max-width: 48ch;
}
.prereq__notice {
  margin-top: 14px; padding: 10px 12px; max-width: 52ch;
  border-radius: 12px;
  background: rgba(43, 182, 176, .10);
  border: 1px solid rgba(43, 182, 176, .28);
}
.prereq__notice svg {
  float: left;
  width: 13px; height: 13px; margin: 2px 6px 0 0;
  fill: none; stroke: var(--teal-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.prereq__notice span {
  font-weight: 600; font-size: clamp(13px, 1vw, 14px); line-height: 1.55; color: var(--ink-dark);
}
.prereq__notice a { color: var(--teal-ink); font-weight: 700; text-decoration: underline; }

/* ---------------------------- Tarif ---------------------------- */
.pricing {
  margin-top: clamp(32px, 3.6vw, 48px);
  display: flex; flex-wrap: wrap; gap: var(--gap);
  align-items: stretch;
}
.pricing__story {
  flex: 1 1 380px; min-width: 0;
  border-color: rgba(61,232,192,.34);
  padding: clamp(24px, 2.4vw, 36px);
  display: flex; flex-direction: column; gap: clamp(12px, 1.1vw, 15px);
}
.pricing__punch { font-weight: 600; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; color: var(--aqua); }
.pricing__fine { margin-top: auto; padding-top: clamp(13px, 1.4vw, 17px); border-top: 1px solid rgba(61,232,192,.28); }
.pricing__fine p { font-size: clamp(12.5px, .95vw, 13.5px); line-height: 1.55; color: rgba(234,241,240,.86); max-width: 56ch; }
.pricing__offer {
  flex: 1 1 320px; min-width: 0; max-width: 500px;
  padding: clamp(26px, 2.6vw, 38px);
  display: flex; flex-direction: column;
}
.pricing__price { margin-top: 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pricing__amount { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(44px, 4.8vw, 76px); line-height: 1; color: var(--ink-dark); white-space: nowrap; }
.pricing__unit { font-weight: 600; font-size: clamp(15px, 1.3vw, 17px); color: var(--ink-dark); }
.pricing__rule { display: block; height: 1px; background: rgba(12,26,26,.22); margin: clamp(18px, 1.9vw, 24px) 0; }
.features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.features li {
  display: flex; gap: 13px; align-items: flex-start;
  font-weight: 500; font-size: clamp(15px, 1.3vw, 16.5px); line-height: 1.5;
  color: var(--ink-dark);
}
.features svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; fill: none; stroke: var(--ink-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pricing__legal { font-weight: 500; font-size: 13px; color: var(--ink-on-vivid); text-align: center; margin-top: 16px; }

/* ---------------------------- Footer ---------------------------- */
.footer { position: relative; padding: var(--section-y) var(--section-x) clamp(210px, 25vw, 360px); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer__brand { font-weight: 700; font-size: 16px; color: var(--ink); }
.footer__brand span { color: var(--aqua); font-weight: 600; }
.footer__line { margin-top: 10px; color: var(--ink); font-size: 13.5px; }
.footer__line + .footer__line { margin-top: 6px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__links a { white-space: nowrap; color: var(--ink); font-size: 13.5px; letter-spacing: .04em; transition: color .3s ease; }
.footer__links a:hover { color: var(--aqua); }
.footer__legal {
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--surface-2);
  color: var(--ink);
  font-size: 12.5px;
  text-shadow: 0 1px 10px rgba(12,26,26,.95);
}
.footer__legal-link { color: var(--muted); transition: color .3s ease; }
.footer__legal-link:hover { color: var(--aqua); }

/* ---------------------------- Créature de fond ---------------------------- */
.kraken { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; display: flex; justify-content: center; pointer-events: none; overflow: hidden; }
.kraken__vid {
  width: min(1220px, 104vw);
  height: auto;
  opacity: .72;
  mix-blend-mode: screen;
  will-change: transform;
  animation: kraken 26s ease-in-out infinite alternate;
  mask-image:
    radial-gradient(66% 78% at 50% 64%, #000 38%, rgba(0,0,0,0) 82%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 26%, #000 66%);
  mask-composite: intersect;
  -webkit-mask-image:
    radial-gradient(66% 78% at 50% 64%, #000 38%, rgba(0,0,0,0) 82%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 26%, #000 66%);
  -webkit-mask-composite: source-in;
}

/* ---------------------------- Apparition au défilement ---------------------------- */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------- Keyframes ---------------------------- */
@keyframes drift   { 0% { transform: translate3d(0,0,0) rotate(0deg); } 100% { transform: translate3d(0,-2.4%,0) rotate(1.6deg); } }
@keyframes bubbleA { 0% { transform: translateY(5%); }  100% { transform: translateY(-11%); } }
@keyframes bubbleB { 0% { transform: translateY(-2%); } 100% { transform: translateY(-15%); } }
@keyframes heroIn  { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes bob     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes kraken  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4%); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1120px) {
  .avatars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav__links { display: none; }

  .problem-grid { display: flex; flex-direction: column; }
  .problem__c1 { flex-direction: column; }
  .problem__c1-media { min-height: 400px; }

  .avatars { grid-template-columns: 1fr; }

  .bento { display: flex; flex-direction: column; }
  .bento__deco { display: none; }
  .step.bento__step3 { flex-direction: column; }
  .bento__step3 .step__frame {
    flex: none;
    aspect-ratio: 768 / 1376;
    min-height: 0;
  }

  .gallery__row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-left: -4px;
    padding: 4px 4px clamp(10px, 3vw, 16px);
    -webkit-overflow-scrolling: touch;
  }
  .gallery__item {
    flex: 0 0 68%;
    scroll-snap-align: center;
    margin-top: 0 !important;
  }

  .prereq { flex-direction: column; align-items: flex-start; }
  .prereq__head, .prereq__body { flex: 1 1 auto; }
}

/* Mouvement réduit : l'ambiance s'arrête, la lecture reste */
@media (prefers-reduced-motion: reduce) {
  .hero__tentacle, .hero__bubbles, .page-bubbles,
  .deco-tentacle, .kraken__vid, .bob,
  .hero__panel { animation: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
