/* ============================================================
   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: 0; 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; }
}
