/* ============================================================
   JEAN-PAUL CROS — Design System "Apple-grade"
   Mobile-first · CSS Variables · Flexbox/Grid · Vanilla
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Couleurs — palette Apple */
  --black: #000000;
  --darker: #0a0a0c;
  --dark: #1d1d1f;
  --white: #ffffff;
  --light: #f5f5f7;
  --grey: #86868b;
  --grey-light: #a1a1a6;
  --border-dark: rgba(255, 255, 255, 0.12);
  --border-light: #d2d2d7;
  --blue: #2997ff;          /* lien sur fond sombre */
  --blue-deep: #0066cc;     /* lien sur fond clair */
  --gradient-hero: linear-gradient(90deg, #0090f7 0%, #ba62fc 28%, #f2416b 62%, #f55600 100%);

  /* Typographie — système proche SF Pro */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Échelle typographique fluide */
  --fs-hero: clamp(3rem, 9vw, 6.5rem);
  --fs-title: clamp(2rem, 5.5vw, 4rem);
  --fs-tagline: clamp(1.375rem, 3.2vw, 2rem);
  --fs-body-lg: clamp(1.0625rem, 1.5vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Espacements — rythme aéré Apple */
  --sp-section: clamp(6rem, 14vh, 10rem);
  --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;   --sp-6: 1.5rem;
  --sp-8: 2rem;    --sp-10: 2.5rem; --sp-12: 3rem;  --sp-16: 4rem;

  /* Géométrie */
  --radius: 18px;
  --radius-lg: 28px;
  --nav-h: 48px;
  --container: 1024px;
  --container-wide: 1240px;

  /* Mouvement */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --t-fast: 200ms;
  --t-med: 400ms;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
fieldset { border: none; }
ul[role="list"], ol { list-style: none; }

::selection { background: var(--blue-deep); color: var(--white); }

/* Lien d'évitement (accessibilité) */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 2000;
  padding: 10px 18px; border-radius: 999px;
  background: var(--white); color: var(--black); font-weight: 600;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* Focus visible — contraste garanti sur fond sombre et clair */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Curseur personnalisé (halo) ---------- */
.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; pointer-events: none; position: fixed; inset: 0; z-index: 9999; }

  .cursor__halo {
    position: absolute; top: 0; left: 0;
    width: 360px; height: 360px;
    margin: -180px 0 0 -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.14) 0%, rgba(186, 98, 252, 0.06) 40%, transparent 70%);
    transition: transform 350ms var(--ease), opacity 350ms var(--ease);
    will-change: transform;
  }

  .cursor__dot {
    position: absolute; top: 0; left: 0;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    mix-blend-mode: difference;
    transition: width 250ms var(--ease), height 250ms var(--ease), margin 250ms var(--ease);
    will-change: transform;
  }

  /* État "survol d'un élément interactif" : le halo se contracte et s'intensifie */
  .cursor.is-hovering .cursor__halo {
    transform: scale(0.45);
    opacity: 1;
  }
  .cursor.is-hovering .cursor__dot {
    width: 44px; height: 44px; margin: -22px 0 0 -22px;
    background: rgba(255, 255, 255, 0.9);
  }
}

/* ---------- 4. Navigation ---------- */
.nav {
  position: fixed; top: 20; left: 0; right: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background var(--t-med) var(--ease);
}
.nav.is-scrolled { background: rgba(0, 0, 0, 0.8); }

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--sp-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
}

.nav__logo { font-weight: 700; font-size: 1.125rem; letter-spacing: 0.01em; }

.nav__links {
  display: none; /* mobile : repliés dans le menu plein écran */
  gap: var(--sp-8);
}
.nav__link {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--white); }

.nav__cta {
  display: none;
  font-size: var(--fs-xs);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-deep);
  color: var(--white);
  transition: background var(--t-fast) var(--ease);
}
.nav__cta:hover { background: #0077ed; }

/* Burger mobile */
.nav__burger { display: flex; flex-direction: column; gap: 5px; padding: 10px; }
.nav__burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--white);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast);
}
.nav.is-open .nav__burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Menu mobile plein écran façon Apple */
.nav.is-open { background: var(--black); }
.nav.is-open .nav__links {
  display: flex; flex-direction: column;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--black);
  padding: var(--sp-10) var(--sp-8);
  gap: var(--sp-6);
}
.nav.is-open .nav__link { font-size: 1.5rem; font-weight: 600; color: var(--white); }

/* ---------- 5. Sections génériques ---------- */
section { padding: var(--sp-section) var(--sp-6); }

.section--dark   { background: var(--black);  color: var(--white); }
.section--darker { background: var(--darker); color: var(--white); }
.section--light  { background: var(--light);  color: var(--dark); }

.section-head { max-width: 820px; margin: 0 auto; text-align: center; }

.section-title {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.section-tagline {
  font-size: var(--fs-tagline);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: var(--sp-3);
  color: var(--blue-deep);
}
.section-tagline--grey { color: var(--grey); }
.section-sub {
  font-size: var(--fs-body-lg);
  margin-top: var(--sp-6);
  color: var(--grey);
  line-height: 1.5;
}
.section--light .section-sub { color: #6e6e73; }

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Liens fléchés bleus façon Apple */
.link-arrow {
  color: var(--blue);
  font-size: var(--fs-body-lg);
  display: inline-flex; align-items: center; gap: 4px;
}
.link-arrow::after {
  content: "›";
  font-size: 1.2em;
  transition: transform var(--t-fast) var(--ease);
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow--blue { color: var(--blue-deep); }

/* Boutons pilule */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: var(--fs-body);
  font-weight: 500;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-primary { background: var(--blue-deep); color: var(--white); }
.btn-primary:hover { background: #0077ed; transform: scale(1.02); }
.btn-secondary { border: 1px solid currentColor; }
.btn-secondary:hover { transform: scale(1.02); }

/* ---------- 6. Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-h) + var(--sp-12));
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(0, 102, 204, 0.18), transparent),
    var(--black);
}

.hero__eyebrow {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-top: var(--sp-4);
}

.hero__tagline {
  font-size: var(--fs-tagline);
  font-weight: 700;
  margin-top: var(--sp-3);
}

.hero__sub {
  max-width: 560px;
  margin: var(--sp-6) auto 0;
  font-size: var(--fs-body-lg);
  color: var(--grey-light);
}

.hero__links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-4) var(--sp-10);
  margin-top: var(--sp-8);
}

.hero__portrait {
  position: relative;
  margin-top: var(--sp-12);
  width: min(280px, 60vw);
}
.hero__portrait img {
  border-radius: 50%;
  position: relative; z-index: 1;
  filter: grayscale(100%);
  transition: filter 600ms var(--ease), transform 600ms var(--ease);
}
.hero__portrait:hover img { filter: grayscale(0%); transform: scale(1.02); }
.hero__glow {
  position: absolute; inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.25), rgba(186, 98, 252, 0.12) 50%, transparent 70%);
  animation: breathe 6s ease-in-out infinite;
  z-index: 0;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-10);
  padding: 8px 18px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  font-size: var(--fs-medium);
  color: var(--grey-light);
  background: rgba(255, 255, 255, 0.04);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #30d158; flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); }
}

/* ---------- 7. Bandeau certification ---------- */
.ribbon {
  background: var(--dark);
  padding: var(--sp-6);
  text-align: center;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.ribbon p {
  max-width: 720px; margin: 0 auto;
  font-size: var(--fs-small);
  color: var(--grey-light);
}
.ribbon strong { color: var(--white); }

/* ---------- 8. FinQuest ---------- */
.finquest { text-align: center; overflow: hidden; }
.finquest .section-title { font-size: clamp(2.5rem, 7vw, 5rem); }

.finquest__stack {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}
.finquest__stack li {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); color: var(--grey);
}
.finquest__stack img {
  height: 36px; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: 0.7;
  transition: filter var(--t-med) var(--ease), opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.finquest__stack li:hover img { filter: grayscale(0%); opacity: 1; transform: translateY(-4px); }
/* Logo blanc sur fond clair : on l'inverse pour le rendre lisible */
.finquest__stack img.logo--light,
.finquest__stack li:hover img.logo--light { filter: invert(0.75); }

/* ---------- 9. Compétences — Bento ---------- */
.bento {
  max-width: var(--container-wide);
  margin: var(--sp-16) auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.bento__card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  border: 1px solid transparent;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.bento__card:hover { transform: translateY(-4px); border-color: var(--border-dark); }

.bento__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}
.bento__card h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-top: var(--sp-3);
}
.bento__card p { margin-top: var(--sp-4); color: var(--grey-light); }
.bento__card strong { color: var(--white); }

.bento__logos { display: flex; gap: var(--sp-4); margin-top: var(--sp-6); align-items: center; }
.bento__logos img {
  height: 28px; width: auto; object-fit: contain;
  background: var(--white); border-radius: 7px; padding: 4px;
}
/* Logos blancs sur fond transparent : pastille sombre pour rester visibles */
.bento__logos img.logo--light {
  background: #3a3a3e;
  border: 1px solid var(--border-dark);
}

.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.tags li {
  font-size: var(--fs-xs);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--grey-light);
}

/* Carte "puce JPC" — clin d'œil Apple Silicon */
.bento__card--chip { text-align: center; padding-bottom: var(--sp-10); }
.chip {
  width: 150px; height: 150px;
  margin: var(--sp-4) auto var(--sp-8);
  border-radius: 24px;
  background: linear-gradient(145deg, #2a2a2e, #131315);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 20px 50px rgba(0, 102, 204, 0.25);
  display: grid; place-items: center;
  position: relative;
}
.chip::before {
  /* contour lumineux animé de la puce */
  content: "";
  position: absolute; inset: -2px;
  border-radius: 26px;
  background: var(--gradient-hero);
  z-index: -1;
  opacity: 0.7;
  filter: blur(8px);
  animation: chipGlow 5s ease-in-out infinite;
}
@keyframes chipGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}
.chip__die { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.chip__name { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
.chip__gen { font-size: 0.65rem; color: var(--grey); letter-spacing: 0.08em; text-transform: uppercase; }

/* Cartes métriques */
.bento__card--metric { text-align: center; padding: var(--sp-10) var(--sp-6); }
.metric {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.bento__card--metric .bento__label { margin-top: var(--sp-3); text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ---------- 10. Projets ---------- */
.projects__list {
  max-width: var(--container);
  margin: var(--sp-16) auto 0;
  display: flex; flex-direction: column;
  gap: var(--sp-6);
}

.project {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--sp-8);
  align-items: center;
  transition: transform var(--t-med) var(--ease);
}
.project:hover { transform: scale(1.01); }

.project__figure {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.project__figure small { font-size: 0.5em; }
.project__figure--auto { font-size: clamp(2.5rem, 6vw, 4rem); }

.project__tag {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue);
}
.project__body h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700; letter-spacing: -0.015em;
  margin-top: var(--sp-2);
}
.project__body p { margin-top: var(--sp-3); color: var(--grey-light); }
.project__stack { font-size: var(--fs-small); color: var(--grey); }

/* ---------- 11. Parcours — timeline ---------- */
.timeline {
  max-width: 760px;
  margin: var(--sp-16) auto 0;
  position: relative;
  padding-left: var(--sp-8);
}
.timeline::before {
  /* ligne verticale */
  content: "";
  position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-deep), var(--border-light));
  border-radius: 2px;
}

.timeline__item { position: relative; padding-bottom: var(--sp-12); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  /* point de la timeline */
  content: "";
  position: absolute; left: calc(-1 * var(--sp-8) + 1px); top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--light);
  border: 2px solid var(--blue-deep);
}

.timeline__item time {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: 0.02em;
}
.timeline__item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: var(--sp-2);
}
.timeline__item p { margin-top: var(--sp-2); color: #6e6e73; }

.journey__diplomas {
  max-width: 760px;
  margin: var(--sp-16) auto 0;
  text-align: center;
  font-size: var(--fs-small);
  color: #6e6e73;
  border-top: 1px solid var(--border-light);
  padding-top: var(--sp-8);
}

/* ---------- 12. Livres — couvertures 3D ---------- */
.books__grid {
  max-width: var(--container);
  margin: var(--sp-16) auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
}

.book { text-align: center; max-width: 460px; margin: 0 auto; }

.book__cover {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
.book__cover img { width: 100%; }
.book__shine {
  /* reflet qui suit la souris (variables mises à jour en JS) */
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.25), transparent 55%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}
.book__cover:hover .book__shine { opacity: 1; }

.book h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: var(--sp-8);
}
.book__genre {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: var(--sp-2);
}
.book p { margin-top: var(--sp-4); color: var(--grey-light); }
.book .link-arrow { margin-top: var(--sp-6); font-size: var(--fs-body); }

/* ---------- 13. Le Studio — configurateur ---------- */
.studio { position: relative; overflow: hidden; }
.studio::before {
  /* lueur d'ambiance derrière le configurateur */
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 102, 204, 0.12), rgba(186, 98, 252, 0.06) 45%, transparent 70%);
  pointer-events: none;
}

.studio__eyebrow {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--sp-4);
}

.studio__configurator {
  position: relative;
  max-width: 880px;
  margin: var(--sp-16) auto 0;
  background: rgba(29, 29, 31, 0.75);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--sp-8);
  display: flex; flex-direction: column; gap: var(--sp-10);
  text-align: center;
}

.studio__step legend {
  width: 100%;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--sp-4);
}

.studio__options {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-3);
}
.studio__opt {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  color: var(--grey-light);
  font-size: var(--fs-small);
  transition: all var(--t-fast) var(--ease);
}
.studio__opt:hover { border-color: var(--grey); color: var(--white); }
.studio__opt.is-selected {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  font-weight: 600;
}

.studio__result {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.studio__panel {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: var(--sp-6);
  min-height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-3);
}
.studio__panel-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

.studio__stack { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.studio__stack li {
  font-size: var(--fs-small);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  animation: popIn 350ms var(--ease) both;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.studio__gain {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.studio__gain-note { font-size: var(--fs-small); color: var(--grey); }

.studio__configurator .btn-primary { align-self: center; }

/* ---------- 14. Contact ---------- */
.contact { text-align: center; }
.contact__actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-10);
}
.contact__links { margin-top: var(--sp-8); }

/* ---------- 15. Footer façon Apple ---------- */
.footer {
  background: var(--light);
  color: #6e6e73;
  font-size: var(--fs-xs);
  padding: var(--sp-8) var(--sp-6) var(--sp-12);
}
.footer__inner { max-width: var(--container); margin: 0 auto; }
.footer__note {
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border-light);
  line-height: 1.6;
}
.footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
}
.footer__bar a { color: #424245; }
.footer__bar a:hover { text-decoration: underline; }
.footer__bar nav { display: flex; gap: var(--sp-3); align-items: center; }

/* ---------- 16. Animations d'apparition ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Respect des préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE — breakpoints façon Apple (735px / 1069px)
   ============================================================ */

/* Tablette */
@media (min-width: 735px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-block; }
  .nav__burger { display: none; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--chip { grid-column: span 2; }

  .project {
    grid-template-columns: 220px 1fr;
    padding: var(--sp-12) var(--sp-10);
  }
  .project__figure { text-align: center; }

  .books__grid { grid-template-columns: 1fr 1fr; align-items: start; }

  .studio__result { grid-template-columns: 1.4fr 1fr; }
}

/* Desktop */
@media (min-width: 1069px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento__card--chip { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
  .bento__card:not(.bento__card--chip):not(.bento__card--metric) { grid-column: span 2; }
  .bento__card--metric { grid-column: span 1; }
}

/* Écrans ultra-wide : on borne la largeur de lecture */
@media (min-width: 1800px) {
  :root { --container-wide: 1440px; }
}


/* ===== Fractional CAIO + COO — page-specific styles ===== */
/* ===== Repositionnement Fractional CAIO + COO ===== */

    .future-hero{max-width:1100px;margin:0 auto;text-align:center}

    .future-kicker{font-size:.82rem;font-weight:800;letter-spacing:2.5px;text-transform:uppercase;opacity:.7;margin-bottom:18px}

    .future-title{font-size:clamp(2.8rem,7vw,6.6rem);line-height:.94;letter-spacing:-.055em;margin:0 auto 28px;max-width:1000px}

    .future-title span{display:block}

    .future-subtitle{font-size:clamp(1.2rem,2.2vw,1.65rem);line-height:1.45;max-width:820px;margin:0 auto 30px}

    .future-promise{font-size:clamp(1rem,1.8vw,1.2rem);max-width:760px;margin:0 auto 34px;opacity:.8}

    .future-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}

    .future-actions a{display:inline-flex;align-items:center;justify-content:center;padding:15px 24px;border-radius:999px;text-decoration:none;font-weight:800}

    .future-actions .primary{background:#fff;color:#000}

    .future-actions .secondary{border:1px solid rgba(255,255,255,.25);color:#fff}

    .future-badge{margin:28px auto 0;max-width:max-content;padding:10px 16px;border:1px solid rgba(255,255,255,.16);border-radius:999px;font-size:.9rem;opacity:.8}

    .future-manifesto{padding:90px 20px;background:#fff;color:#111;text-align:center}

    .future-manifesto h2{font-size:clamp(2rem,4vw,4rem);line-height:1.02;letter-spacing:-.04em;max-width:900px;margin:0 auto 22px}

    .future-manifesto p{max-width:760px;margin:0 auto;font-size:1.2rem;line-height:1.7;color:#555}

    .future-model{padding:90px 20px}

    .future-model .model-grid{max-width:1100px;margin:45px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}

    .model-card{padding:30px;border-radius:22px;border:1px solid rgba(255,255,255,.1);min-height:190px}

    .model-card .eyebrow{font-size:.75rem;font-weight:800;letter-spacing:1.5px;opacity:.6}

    .model-card h3{font-size:1.45rem;margin:12px 0}

    .model-card p{line-height:1.6;opacity:.78}

    .model-card.featured{border-color:rgba(255,255,255,.35);transform:translateY(-8px)}

    .model-card strong{font-size:2rem}

    .situations{padding:90px 20px;background:#f6f6f6;color:#111}

    .situations-grid{max-width:1100px;margin:45px auto 0;display:grid;grid-template-columns:repeat(2,1fr);gap:18px}

    .situation-card{background:#fff;border-radius:20px;padding:28px;border:1px solid #e9e9e9}

    .situation-card h3{font-size:1.25rem;margin:0 0 12px}

    .situation-card p{margin:0;line-height:1.6;color:#555}

    .offers{padding:90px 20px}

    .offers-grid{max-width:1100px;margin:45px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}

    .offer-card{border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:30px}

    .offer-card.featured{border-color:#fff;box-shadow:0 15px 50px rgba(0,0,0,.18)}

    .offer-card h3{font-size:1.45rem;margin:8px 0}

    .offer-card .days{font-size:.9rem;opacity:.65;margin-bottom:22px}

    .offer-card ul{padding-left:20px;line-height:1.9;opacity:.82}

    .offer-card .offer-note{margin-top:20px;font-weight:700}

    .results-strip{padding:75px 20px;background:#fff;color:#111}

    .results-grid{max-width:1100px;margin:40px auto 0;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}

    .result-card{text-align:center;padding:26px 12px;border-radius:20px;background:#f5f5f5}

    .result-card .metric{font-size:clamp(2.2rem,4vw,4rem);font-weight:900;letter-spacing:-.05em}

    .result-card p{margin:8px 0 0;color:#555;font-size:.9rem}

    .roi-choice{padding:90px 20px;background:#0d0a1a;color:#ece9f8}

    .roi-choice-inner{max-width:1050px;margin:auto;text-align:center}

    .roi-choice h2{font-size:clamp(2rem,4vw,4rem);line-height:1.02;letter-spacing:-.04em;margin-bottom:18px}

    .roi-choice>div>p{max-width:720px;margin:0 auto 38px;color:#a79fc9;font-size:1.1rem;line-height:1.6}

    .roi-compare{display:grid;grid-template-columns:1fr 1fr;gap:18px;text-align:left}

    .roi-choice-card{padding:30px;border-radius:22px;background:#171230;border:1px solid rgba(124,58,237,.25)}

    .roi-choice-card.highlight{background:linear-gradient(135deg,rgba(124,58,237,.2),#171230);border-color:rgba(34,211,238,.4)}

    .roi-choice-card h3{margin:0 0 12px}

    .roi-choice-card .big{font-size:2.4rem;font-weight:900}

    .roi-choice-card p{color:#a79fc9;line-height:1.6}

    .quote-line{max-width:900px;margin:50px auto 0;font-size:clamp(1.3rem,2.5vw,2rem);font-weight:800;line-height:1.35}

    .quote-line em{font-style:normal}

    .authority{padding:80px 20px;background:#fff;color:#111;text-align:center}

    .authority h2{font-size:clamp(2rem,4vw,3.5rem);margin-bottom:20px}

    .authority p{max-width:760px;margin:0 auto;line-height:1.7;color:#555;font-size:1.1rem}

    .final-cta{padding:100px 20px;text-align:center}

    .final-cta h2{font-size:clamp(2.4rem,5vw,5rem);line-height:.98;letter-spacing:-.05em;max-width:900px;margin:0 auto 25px}

    .final-cta p{max-width:700px;margin:0 auto 30px;line-height:1.6;opacity:.75}

    @media(max-width:800px){

      .future-model .model-grid,.offers-grid{grid-template-columns:1fr}

      .model-card.featured{transform:none}

      .situations-grid,.roi-compare{grid-template-columns:1fr}

      .results-grid{grid-template-columns:repeat(2,1fr)}

    }

    @media(max-width:480px){.results-grid{grid-template-columns:1fr}}

.future-portrait-wrap { display: flex; justify-content: center; margin: 40px 0 0; }


/* ============================================================
   SEO LOCAL & CONVERSION — Paris / Île-de-France
   Comparatif · Tarifs · Déroulé · Pour qui · Zones · FAQ
   ============================================================ */

/* Les ancres de navigation ne passent plus sous la barre fixe */
section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* Utilitaire — visible pour les lecteurs d'écran uniquement */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Hero — accroche géolocalisée ---------- */
.future-title__geo {
  display: block;
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
  opacity: .62;
  margin-top: 18px;
}

/* ---------- Comparatif Fractional / Consultant / CDI ---------- */
.compare { padding: 90px 20px; }

.compare-wrap {
  max-width: 1100px;
  margin: 45px auto 0;
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: .95rem;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  vertical-align: top;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.compare-table thead th {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: .6;
  white-space: nowrap;
}

.compare-table tbody th {
  font-weight: 700;
  opacity: .72;
  width: 20%;
  white-space: nowrap;
}

.compare-table td { opacity: .78; }

.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: 0; }

/* Colonne mise en avant */
.compare-table .is-highlight {
  background: rgba(255, 255, 255, .06);
  opacity: 1;
  font-weight: 600;
}

.compare-table thead .is-highlight {
  color: #fff;
  opacity: 1;
  background: rgba(255, 255, 255, .1);
}

.compare-note {
  max-width: 800px;
  margin: 34px auto 0;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: .72;
}

/* ---------- Tarifs ---------- */
.pricing { padding: 90px 20px; background: #fff; color: #111; }

.pricing .section-sub { color: #555; }

.pricing-todo {
  max-width: 1100px;
  margin: 26px auto 0;
  padding: 12px 18px;
  border: 1px dashed #d0a000;
  border-radius: 12px;
  background: #fffbe9;
  color: #6b5400;
  font-size: .9rem;
  text-align: center;
}

.pricing-grid {
  max-width: 1100px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 22px;
  padding: 32px 30px;
}

.price-card.featured {
  border-color: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
}

.price-card .bento__label { color: #888; }

.price-card h3 { font-size: 1.35rem; margin: 8px 0 18px; }

.price-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-from {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 4px;
}

.price-amount {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  white-space: nowrap;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #888;
  margin-left: 6px;
}

.price-terms {
  margin: 8px 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ededed;
  font-size: .9rem;
  color: #777;
}

.price-card ul { padding-left: 20px; line-height: 1.8; color: #444; }

.price-card .offer-note { margin-top: 20px; font-weight: 700; color: #111; }

.pricing-roi {
  max-width: 780px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

/* ---------- Déroulé de mission ---------- */
.process { padding: 90px 20px; background: #fff; color: #111; }

.process .section-sub { color: #555; }

.process-grid {
  max-width: 1100px;
  margin: 45px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: #f7f7f8;
  border: 1px solid #ececec;
  border-radius: 22px;
  padding: 32px 28px;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 26px; right: 26px;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 0, 0, .06);
}

.step-when {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #888;
}

.step-card h3 { font-size: 1.3rem; margin: 10px 0 14px; padding-right: 48px; }

.step-card p { line-height: 1.65; color: #555; }

.step-deliverable {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e2e2;
  font-size: .93rem;
}

.step-deliverable strong { color: #111; }

/* ---------- Pour qui / pour qui pas ---------- */
.fit { padding: 90px 20px; background: #f6f6f6; color: #111; }

.fit .section-sub { color: #555; }

.fit-grid {
  max-width: 1100px;
  margin: 45px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.fit-card {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 22px;
  padding: 32px 30px;
}

.fit-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  margin: 0 0 20px;
}

.fit-card h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: .95rem;
  flex-shrink: 0;
}

.fit-card--yes { border-left: 3px solid #1a9e5c; }
.fit-card--yes h3 span { background: #e6f6ed; color: #1a9e5c; }

.fit-card--no { border-left: 3px solid #c93b3b; }
.fit-card--no h3 span { background: #fbeaea; color: #c93b3b; }

.fit-card ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.fit-card li {
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
  color: #555;
}

.fit-card li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
}

.fit-note {
  max-width: 780px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
  color: #333;
}

/* ---------- Zones couvertes en Île-de-France ---------- */
.geo { padding: 90px 20px; }

.geo-grid {
  max-width: 1100px;
  margin: 45px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.geo-card {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 26px 24px;
  transition: border-color var(--t-fast) var(--ease);
}

.geo-card:hover { border-color: rgba(255, 255, 255, .28); }

.geo-card h3 { font-size: 1.1rem; margin: 0 0 10px; }

.geo-card p { line-height: 1.6; opacity: .7; font-size: .94rem; }

.geo-note {
  max-width: 760px;
  margin: 34px auto 0;
  text-align: center;
  line-height: 1.6;
  opacity: .62;
  font-size: .96rem;
}

/* ---------- FAQ ---------- */
.faq { padding: 90px 20px; background: #f6f6f6; color: #111; }

.faq .section-sub { color: #555; }

.faq-list { max-width: 840px; margin: 45px auto 0; }

.faq-item {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 56px 22px 26px;
  position: relative;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  color: #999;
  transition: transform var(--t-fast) var(--ease);
}

.faq-item[open] summary::after { content: "–"; }

.faq-item summary:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: -2px;
}

.faq-item p {
  padding: 0 26px 24px;
  line-height: 1.7;
  color: #555;
}

/* ---------- Footer — maillage géographique ---------- */
.footer__geo {
  max-width: 840px;
  margin: 6px auto 0;
  font-size: .78rem;
  line-height: 1.7;
  opacity: .45;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pricing-grid,
  .process-grid { grid-template-columns: 1fr; }

  .geo-grid { grid-template-columns: repeat(2, 1fr); }

  .price-card.featured { order: -1; }
}

@media (max-width: 800px) {
  .compare,
  .pricing,
  .process,
  .fit,
  .geo,
  .faq { padding: 64px 18px; }

  .fit-grid,
  .geo-grid { grid-template-columns: 1fr; }

  .compare-wrap { border-radius: 16px; }

  .step-card::before { font-size: 2.4rem; }
}

/* Sous 700px : le tableau comparatif se replie en cartes empilées,
   chaque cellule portant le nom de sa colonne (attribut data-col). */
@media (max-width: 700px) {
  .compare-wrap {
    overflow-x: visible;
    border: 0;
    border-radius: 0;
  }

  .compare-table { min-width: 0; display: block; }

  .compare-table thead { display: none; }

  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td { display: block; width: auto; }

  .compare-table tr {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    padding: 6px 0;
    margin-bottom: 14px;
  }

  .compare-table tbody th {
    width: auto;
    white-space: normal;
    font-size: .78rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: .55;
    padding-bottom: 6px;
    border-bottom: 0;
  }

  .compare-table td {
    padding: 12px 20px;
    border-bottom: 0;
  }

  .compare-table td::before {
    content: attr(data-col);
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .45;
    margin-bottom: 4px;
  }

  .compare-table .is-highlight {
    border-radius: 12px;
    margin: 0 12px;
    padding: 12px;
  }
}

body.menu-open { overflow: hidden; }
