/* ============================================================
   Portfolio Noah : feuille de styles
   Palette : fond #F7F6F3, texte #111, accent #4E6BFF
   ============================================================ */

:root {
  --bg: #F7F6F3;
  --ink: #111;
  --ink-2: #333;
  --ink-3: #555;
  --muted: #888;
  --accent: #4E6BFF;
  --accent-dark: #3A54D6;
  --line: rgba(0, 0, 0, .08);
  --card: #fff;
  --radius: 18px;
  --shadow: 0 10px 22px rgba(0, 0, 0, .06);
  --maxw: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 8px; font: 600 13px/1 'Inter', sans-serif; text-decoration: none;
}
.skip-link:focus { left: 12px; color: #fff; }

/* ---------- Animations ---------- */
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(78, 107, 255, .5); }
  70%      { box-shadow: 0 0 0 6px rgba(78, 107, 255, 0); }
}
@keyframes blinkCursor {
  0%, 50%      { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(14px, -18px) scale(1.08); }
  66%      { transform: translate(-10px, 10px) scale(.95); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Écran de chargement (blanc, moderne) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: #fff;
  display: flex; align-items: center; justify-content: center;
  animation: loaderOut .45s var(--ease) 1.45s forwards;
}
.loader.is-gone { display: none; }
@keyframes loaderOut {
  to { opacity: 0; visibility: hidden; }
}
.loader-inner {
  display: flex; flex-direction: column; align-items: center; padding: 0 24px;
}
@keyframes loaderPop {
  from { opacity: 0; transform: scale(.86); }
  to   { opacity: 1; transform: scale(1); }
}
/* Le logo apparaît en douceur, puis respire légèrement */
.loader-mark {
  line-height: 0;
  animation: loaderPop .6s var(--ease) both;
}
.loader-logo {
  display: block; width: 64px; height: 64px; border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
  animation: loaderBreath 2.6s ease-in-out .6s infinite;
}
@keyframes loaderBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
.loader-bar {
  width: 140px; height: 3px; border-radius: 3px; margin-top: 22px; overflow: hidden;
  background: rgba(0, 0, 0, .07);
}
.loader-bar-fill {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, #4E6BFF, #7C4DFF);
  animation: loaderFill 1.25s var(--ease) forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* ---------- Barre de statut (bandeau « en ce moment ») ---------- */
.statusbar {
  position: relative; overflow: hidden;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 8px 18px;
}
/* lueur qui balaie doucement le bandeau, pour qu'il ne soit pas juste plat */
.statusbar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120px 80px at 50% 120%, rgba(78, 107, 255, .28), transparent 70%);
  animation: statusSweep 7s ease-in-out infinite;
}
.status-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px; min-width: 0;
  font: 500 12.5px/1.3 'Inter', sans-serif; color: rgba(255, 255, 255, .82);
}
.status-badge {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  background: rgba(78, 107, 255, .16); border: 1px solid rgba(78, 107, 255, .3);
  font: 700 10px/1 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: #bfcaff;
}
/* point « en direct » : un point plein + une onde qui se propage */
.status-live { position: relative; width: 7px; height: 7px; flex: none; }
.status-live::before, .status-live::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #5b78ff;
}
.status-live::after { animation: statusRing 2s ease-out infinite; }
.status-msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-domain {
  font-weight: 700;
  background: linear-gradient(90deg, #7d90ff, #b3a0ff, #7d90ff);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: statusShimmer 4.5s linear infinite;
}
.status-spark {
  position: relative; z-index: 1; flex: none;
  color: rgba(120, 150, 255, .8); font-size: 10px;
  animation: statusTwinkle 3s ease-in-out infinite;
}
.status-spark-r { animation-delay: 1.5s; }
@keyframes statusRing {
  0%   { transform: scale(1); opacity: .55; }
  100% { transform: scale(3.4); opacity: 0; }
}
@keyframes statusShimmer { to { background-position: 220% 0; } }
@keyframes statusSweep {
  0%, 100% { transform: translateX(-22%); opacity: .7; }
  50%      { transform: translateX(22%); opacity: 1; }
}
@keyframes statusTwinkle {
  0%, 100% { opacity: .3; transform: scale(.85) rotate(0deg); }
  50%      { opacity: 1;  transform: scale(1.1) rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .statusbar::before, .status-live::after, .status-domain, .status-spark { animation: none; }
}
@media (max-width: 480px) {
  .status-inner { gap: 9px; font-size: 11.5px; }
  .status-spark { display: none; }
  .status-badge { padding: 3px 8px 3px 7px; font-size: 9px; }
}

/* ---------- Topbar ---------- */
.topbar { padding: 18px 24px 0; position: sticky; top: 0; z-index: 30; }
.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 8px 8px 14px; box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}
.nav-brand {
  display: inline-flex; align-items: center; text-decoration: none;
}
/* Le logo dans le header (petite tuile app-icon) */
.brand-logo {
  width: 36px; height: 36px; flex: none; display: block;
  border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
  transition: transform .2s var(--ease);
}
.nav-brand:hover .brand-logo { transform: scale(1.06); }

/* ---------- Vues ---------- */
.view { animation: viewIn .45s var(--ease) both; }
[hidden] { display: none !important; }

/* ---------- Hero ----------
   Composition centrée sur un axe unique : intro, chiffres, photo, puis la frise
   (elle aussi centrée) descendent sur la même colonne. */
.hero {
  position: relative; max-width: 1120px; margin: 0 auto; padding: 56px 24px 0;
  text-align: center;
}
/* Halo diffus derrière le titre, pour que le haut ne soit pas plat.
   Centré par marges, pas par transform : l'animation blobDrift pilote déjà
   `transform`, un translateX de centrage serait écrasé (et déborderait). */
.hero-glow {
  position: absolute; z-index: -1; top: -30px; left: 0; right: 0; margin: 0 auto;
  width: min(520px, 88%); height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(78, 107, 255, .12), rgba(78, 107, 255, 0) 70%);
  filter: blur(8px);
  animation: blobDrift 11s ease-in-out infinite;
}
.hero-eyebrow {
  font: 600 12px/1 'Inter', sans-serif; color: var(--accent);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px;
}
.hero-title {
  font: 800 47px/1.25 'Inter', sans-serif; letter-spacing: -.02em;
  min-height: 2.5em; color: var(--ink); max-width: 760px; margin: 0 auto;
}
.hero-caret { font-family: ui-monospace, Menlo, monospace; color: var(--accent); }
.hero-cursor {
  display: inline-block; width: 4px; height: 34px; background: var(--ink);
  margin-left: 4px; vertical-align: -6px;
  animation: blinkCursor 1s step-end infinite;
}

/* Bande de chiffres : 2×2, dans sa tuile */
.statbar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; width: 100%; }
.statbar > div { text-align: center; }
.stat-value {
  font: 800 28px/1 'Inter', sans-serif; letter-spacing: -.02em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label { font: 500 12px/1.3 'Inter', sans-serif; color: var(--muted); margin-top: 8px; }

/* ---------- Timeline ---------- */
/* Section à part, centrée sur la page : la frise n'est plus prisonnière d'une
   colonne, son fil tombe donc pile au milieu de l'écran. */
.path {
  max-width: 820px; margin: 0 auto; padding: 64px 24px 0;
}
.path-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.path-label { font: 600 12.5px/1 'Inter', sans-serif; color: var(--accent); }

/* Indication : les étapes sont cliquables */
.path-hint {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(78, 107, 255, .08); border: 1px solid rgba(78, 107, 255, .18);
  border-radius: 100px; padding: 6px 12px 6px 10px;
  font: 500 11.5px/1 'Inter', sans-serif; color: var(--accent);
}
.path-hint-icon {
  width: 14px; height: 14px; flex: none; display: block;
  animation: tapNudge 2.8s ease-in-out infinite;
}
@keyframes tapNudge {
  0%, 62%, 100% { transform: translate(0, 0); }
  70%           { transform: translate(2px, 2px); }
  78%           { transform: translate(0, 0); }
}

.timeline { position: relative; padding-bottom: 60px; }
/* Le fil : plein, centré, qui s'intensifie à mesure qu'on avance */
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 4px; bottom: 44px; width: 3px;
  transform: translateX(-50%); border-radius: 3px;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, .09) 0%,
    rgba(78, 107, 255, .28) 45%,
    var(--accent) 100%);
}
/* Le point d'arrivée */
.timeline::after {
  content: ''; position: absolute; left: 50%; bottom: 22px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 5px var(--bg), 0 0 0 5px rgba(78, 107, 255, .2);
}

.tl-item {
  position: relative; margin-bottom: 18px; display: flex;
  animation: riseIn .5s var(--ease) both;
}
.tl-item[data-side="left"]  { justify-content: flex-start; }
.tl-item[data-side="right"] { justify-content: flex-end; }
.tl-slot { width: 46%; position: relative; }

/* Le repère numéroté, posé sur le fil */
.tl-mark {
  position: absolute; left: 50%; top: 17px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  transform: translateX(-50%);
  background: #fff; border: 2px solid rgba(78, 107, 255, .4);
  display: flex; align-items: center; justify-content: center;
  font: 800 10.5px/1 'Inter', sans-serif; color: var(--accent);
  box-shadow: 0 0 0 5px var(--bg), 0 4px 10px rgba(0, 0, 0, .07);
  transition: transform .22s var(--ease), background .22s var(--ease),
              color .22s var(--ease), border-color .22s var(--ease);
}
.tl-item:hover .tl-mark {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: translateX(-50%) scale(1.12);
}

/* Le tiret qui relie la carte au repère */
.tl-slot::after {
  content: ''; position: absolute; top: 32px; width: 4%; height: 1px;
  background: repeating-linear-gradient(90deg,
    rgba(0, 0, 0, .2) 0 3px, transparent 3px 6px);
}
.tl-item[data-side="left"]  .tl-slot::after { right: -4%; }
.tl-item[data-side="right"] .tl-slot::after { left: -4%; }

.tl-card {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 15px 16px; box-shadow: var(--shadow);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  text-decoration: none;
}
.tl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .1);
  border-color: rgba(78, 107, 255, .35);
}
.tl-card:hover .tl-title { color: var(--accent); }
.tl-year { font: 600 12px/1 'Inter', sans-serif; color: var(--accent); margin-bottom: 6px; }
.tl-title {
  font: 700 15px/1.3 'Inter', sans-serif; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .2s var(--ease);
}

/* ---------- Étape légendaire (bout de frise) ---------- */
/* Quand la carte dorée est présente, on supprime le point d'arrivée bleu :
   c'est l'étoile qui devient la fin du parcours. */
.timeline.has-legend::before { bottom: 150px; }
.timeline.has-legend::after { display: none; }

.tl-legend {
  justify-content: center; flex-direction: column; align-items: center;
  margin-top: 10px; padding-top: 26px;
}
.tl-legend .tl-mark-legend {
  position: relative; top: 0; left: auto; transform: none;
  width: 44px; height: 44px; font-size: 19px;
  background: linear-gradient(140deg, #FFDE6A, #F5A623);
  border: 2px solid #FFE79A; color: #6b4600; font-weight: 800;
  box-shadow: 0 0 0 6px var(--bg), 0 10px 26px rgba(245, 166, 35, .5);
  animation: legendPulse 2.8s ease-in-out infinite;
}
.tl-legend:hover .tl-mark-legend { transform: scale(1.1); background: linear-gradient(140deg, #FFE68A, #FFB43A); }

.tl-legend-card {
  position: relative; overflow: hidden; margin-top: 18px;
  width: min(440px, 94%); text-align: center; text-decoration: none;
  background: linear-gradient(165deg, #fff7e3 0%, #fffdf8 60%);
  border: 1.5px solid #f1d488; border-radius: 22px;
  padding: 26px 26px 22px;
  box-shadow: 0 20px 44px rgba(245, 166, 35, .2);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
/* reflet doré qui traverse la carte */
.tl-legend-card::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-18deg); animation: legendShine 5.5s ease-in-out infinite;
}
.tl-legend-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(245, 166, 35, .32);
}
.tl-legend-badge {
  position: relative; display: inline-block; margin-bottom: 12px;
  padding: 5px 13px; border-radius: 999px;
  background: linear-gradient(135deg, #FFD84D, #F5A623); color: #5a3d00;
  font: 800 10px/1 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(245, 166, 35, .35);
}
.tl-legend-title {
  position: relative; display: block;
  font: 800 20px/1.25 'Inter', sans-serif; color: #4a3200;
}
.tl-legend-sub {
  position: relative; display: block; margin-top: 6px;
  font: 500 13.5px/1.4 'Inter', sans-serif; color: #977225;
}
.tl-legend-go {
  position: relative; display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font: 700 13px/1 'Inter', sans-serif; color: #b5780b;
}
.tl-legend-go svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.tl-legend-card:hover .tl-legend-go svg { transform: translateX(4px); }

@keyframes legendPulse {
  0%, 100% { box-shadow: 0 0 0 6px var(--bg), 0 10px 26px rgba(245, 166, 35, .45); }
  50%      { box-shadow: 0 0 0 6px var(--bg), 0 10px 34px rgba(245, 166, 35, .75); }
}
@keyframes legendShine {
  0%, 100% { left: -60%; }
  55%, 60% { left: 130%; }
}

/* ---------- Page légendaire ---------- */
.view-detail.is-legend { background:
  radial-gradient(900px 420px at 50% -60px, rgba(245, 197, 66, .16), transparent 70%); }
.legend-hero {
  position: relative; overflow: hidden; text-align: center;
  margin: 8px auto 0; max-width: 760px; padding: 30px 24px 8px;
}
.legend-hero-glow {
  position: absolute; top: -40px; left: 50%; width: 320px; height: 320px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(245, 166, 35, .25), transparent 62%);
}
.legend-medal {
  position: relative; width: 78px; height: 78px; margin: 0 auto 20px;
  border-radius: 24px; display: grid; place-items: center;
  background: linear-gradient(140deg, #FFDE6A, #F5A623);
  border: 2px solid #FFEBA6; color: #6b4600; font-size: 34px;
  box-shadow: 0 16px 40px rgba(245, 166, 35, .45);
  animation: legendPulse 2.8s ease-in-out infinite;
}
.legend-eyebrow {
  font: 700 12px/1 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: #b5780b; margin-bottom: 12px;
}
.legend-title {
  font: 800 clamp(28px, 5vw, 42px)/1.1 'Inter', sans-serif; color: var(--ink);
  margin-bottom: 16px; text-wrap: balance;
}
.legend-lead {
  font: 500 clamp(16px, 2.2vw, 19px)/1.6 'Inter', sans-serif; color: var(--ink-2);
  max-width: 620px; margin: 0 auto; text-wrap: pretty;
}
.legend-body { max-width: 640px; margin: 26px auto 0; padding: 0 24px; }
.legend-detail {
  font: 400 16px/1.75 'Inter', sans-serif; color: var(--ink-2); text-wrap: pretty;
}
.legend-goals { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.legend-goal {
  display: flex; align-items: center; gap: 13px;
  background: linear-gradient(165deg, #fff8e6, #fffdf8);
  border: 1px solid #f1d488; border-radius: 16px; padding: 14px 18px;
  font: 600 15px/1.3 'Inter', sans-serif; color: #5a4413;
}
.legend-goal-ic {
  flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%;
  background: linear-gradient(135deg, #FFD84D, #F5A623); color: #fff;
  box-shadow: 0 4px 10px rgba(245, 166, 35, .35);
}
.detail-cta.legend-cta {
  background: linear-gradient(135deg, #fff3d4, #fff9ec);
  border: 1px solid #f1d488;
}

/* ---------- Contact ---------- */
.contact {
  margin-top: 56px; background: var(--ink); border-radius: 32px 32px 0 0;
  padding: 48px 24px; position: relative; overflow: hidden;
}
.contact-blob {
  position: absolute; top: -70px; left: 60px; width: 260px; height: 260px;
  border-radius: 50%; filter: blur(8px);
  background: radial-gradient(circle, rgba(78, 107, 255, .22), rgba(78, 107, 255, 0) 70%);
  animation: blobDrift 9s ease-in-out infinite;
}
.contact-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
}
.contact-left { max-width: 420px; }
.contact-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.contact-name { font: 800 16px/1 'Inter', sans-serif; color: #fff; }
.contact-sep { height: 14px; width: 1px; background: rgba(255, 255, 255, .2); }
.contact-role { font: 400 12.5px/1 'Inter', sans-serif; color: rgba(255, 255, 255, .45); }
.contact-title {
  font: 800 34px/1.25 'Inter', sans-serif; color: #fff; letter-spacing: -.01em;
}
.contact-copy {
  margin-top: 14px; font: 400 14.5px/1.6 'Inter', sans-serif; color: rgba(255, 255, 255, .55);
}
.contact-legal {
  margin-top: 22px; font: 400 11.5px/1.4 'Inter', sans-serif; color: rgba(255, 255, 255, .35);
}
.contact-right { width: 340px; flex: none; }

.btn-primary {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--accent); color: #fff; font: 600 15px/1 'Inter', sans-serif;
  padding: 18px 22px; border-radius: 16px; text-decoration: none; margin-bottom: 12px;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

.mailrow {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255, 255, 255, .06); border-radius: 16px;
  padding: 15px 16px 15px 20px; margin-bottom: 12px;
}
.mailrow-address {
  font: 500 13px/1 'Inter', sans-serif; color: rgba(255, 255, 255, .7);
  overflow: hidden; text-overflow: ellipsis;
}
.btn-copy {
  background: transparent; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 100px; padding: 7px 13px; flex: none;
  font: 600 11px/1 'Inter', sans-serif; color: rgba(255, 255, 255, .8); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-copy:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-copy.is-done { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Rangée d'icônes du footer (LinkedIn + CV), au lieu de lignes empilées */
.contact-socials { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.contact-socials-label {
  font: 500 12px/1 'Inter', sans-serif; color: rgba(255, 255, 255, .4); margin-right: 4px;
}
.foot-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(255, 255, 255, .08); text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.foot-btn svg { width: 18px; height: 18px; display: block; }
.foot-btn:hover { color: #fff; transform: translateY(-2px); background: rgba(255, 255, 255, .16); }
.foot-cv { background: linear-gradient(135deg, #4E6BFF, #7C4DFF); }
.foot-cv:hover { background: linear-gradient(135deg, #4E6BFF, #7C4DFF); box-shadow: 0 8px 18px rgba(78, 107, 255, .4); }
.foot-cv[hidden] { display: none; }

/* Petite fête au clic sur les boutons de contact (CV, mail, LinkedIn) */
.confetti {
  position: fixed; width: 9px; height: 9px; z-index: 150; border-radius: 2px;
  pointer-events: none; will-change: transform, opacity;
}
.cv-cheer svg { animation: cvBounce .6s var(--ease); }
@keyframes cvBounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(4px); }
  62% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* ============================================================
   PAGE DÉTAIL
   ============================================================ */
.detail-wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px 24px 0; }

/* Haut de page : retour à gauche, position dans le parcours à droite. */
.detail-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 8px;
}
.btn-back {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: transparent; border: 0; padding: 6px 4px;
  font: 600 14px/1 'Inter', sans-serif; color: var(--ink-3);
  transition: color .2s var(--ease);
}
.btn-back-ic {
  width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); box-sizing: content-box;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.btn-back:hover { color: var(--ink); }
.btn-back:hover .btn-back-ic { transform: translateX(-3px); border-color: var(--accent); color: var(--accent); }

.detail-pos { display: flex; align-items: center; gap: 10px; }
.detail-pos-num {
  font: 700 12px/1 'Inter', sans-serif; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.detail-pos-total {
  font: 500 12px/1 'Inter', sans-serif; color: #bbb;
  font-variant-numeric: tabular-nums;
}
.detail-pos-track {
  width: 110px; height: 3px; border-radius: 3px;
  background: rgba(0, 0, 0, .09); overflow: hidden;
}
.detail-pos-fill {
  display: block; height: 100%; border-radius: 3px; background: var(--accent);
  transition: width .5s var(--ease);
}

.detail-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 48px;
  align-items: start; padding: 20px 0 0;
}
/* Chapitre qui ouvre directement sur son récit : pas de colonne média */
.detail-grid.is-solo { grid-template-columns: 1fr; max-width: 760px; }
.detail-num {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(78, 107, 255, .1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  font: 700 18px/1 'Inter', sans-serif; color: var(--accent);
}
.detail-eyebrow { font: 600 14px/1 'Inter', sans-serif; color: var(--accent); margin-bottom: 12px; }
.detail-title {
  font: 800 36px/1.2 'Inter', sans-serif; letter-spacing: -.01em; margin-bottom: 20px;
}
.detail-body { font: 400 16px/1.7 'Inter', sans-serif; color: var(--ink-2); margin-bottom: 14px; }
.detail-detail { font: 400 15px/1.7 'Inter', sans-serif; color: var(--ink-3); margin-bottom: 26px; }

.detail-more { padding-top: 32px; }
.chips-label { font: 600 12px/1 'Inter', sans-serif; color: #999; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  font: 500 12px/1 'Inter', sans-serif; color: #444; background: var(--card);
  border: 1px solid rgba(0, 0, 0, .1); border-radius: 100px; padding: 7px 13px;
}

/* Aside média */
.detail-aside { position: sticky; top: 96px; }
.aside-figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card); cursor: zoom-in;
  border: 1px solid var(--line); box-shadow: 0 18px 34px rgba(0, 0, 0, .08);
  animation: floaty 6s ease-in-out infinite;
}
.aside-figure img {
  width: 100%; height: 280px; object-fit: cover; object-position: top; display: block;
  transition: transform .5s var(--ease);
}
.aside-figure:hover img { transform: scale(1.05); }
.aside-figure::after {
  content: '⤢';
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17, 17, 17, .55); color: #fff;
  font: 400 14px/1 'Inter', sans-serif;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transform: scale(.8);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.aside-figure:hover::after { opacity: 1; transform: scale(1); }

/* ---------- Bento (haut de page) ----------
   Ordinateur : une grille de tuiles (photo à gauche, chiffres + projet à
   droite). Mobile : une simple colonne (voir le responsive). */
.bento {
  max-width: 1060px; margin: 42px auto 0; text-align: left;
  display: grid; gap: 16px;
  grid-template-columns: 1.5fr 1fr;
  grid-template-areas: "photo stats" "photo now";
}
.tile {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
}
.tile-stats {
  grid-area: stats; display: flex; align-items: center; justify-content: center;
  padding: 24px 20px; box-shadow: 0 14px 30px rgba(0, 0, 0, .06);
}
.tile-photo {
  grid-area: photo; position: relative; margin: 0;
  box-shadow: 0 26px 52px rgba(0, 0, 0, .12);
}
.tile-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transition: transform .6s var(--ease);
}
.tile-photo:hover img { transform: scale(1.04); }
.workspace-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .68) 100%);
}
.workspace-cap {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.workspace-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none;
  animation: statusPulse 2.4s ease-in-out infinite;
}
.workspace-text { font: 600 12.5px/1.3 'Inter', sans-serif; color: #fff; }
.workspace-sub {
  font: 400 11px/1.3 'Inter', sans-serif; color: rgba(255, 255, 255, .6);
  margin-left: auto; text-align: right;
}

/* ---------- Sous le hero : bandeau défilant ---------- */
.intro-more { margin: 44px 0 0; }
.platforms-label {
  font: 600 11px/1 'Inter', sans-serif; color: #999;
  letter-spacing: .1em; text-transform: uppercase; text-align: center; margin-bottom: 18px;
}
/* Le bandeau : on masque les bords pour un fondu propre en entrée/sortie */
.marquee {
  position: relative; width: 100%; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex; align-items: center; width: max-content; padding: 6px 0;
  will-change: transform;
  animation: marquee var(--marq-dur, 30s) linear infinite;
}
/* Noms grisés, à la bonne casse. On avance d'exactement une période (--marq-w),
   posée par app.js : la boucle est invisible et ne s'arrête jamais. */
.brand {
  flex: none; margin-right: 50px; white-space: nowrap;
  font: 700 16px/1 'Inter', sans-serif; color: #b0b0b0; letter-spacing: .01em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--marq-w, 50%))); }
}

/* ---------- Tuile « Me retrouver » (réseaux / liens) ---------- */
.tile-links {
  grid-area: now; display: flex; flex-direction: column; justify-content: center;
  padding: 22px; box-shadow: 0 14px 30px rgba(0, 0, 0, .06);
}
.tile-links-title {
  font: 600 11px/1 'Inter', sans-serif; color: #999;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.tile-links-list { display: flex; flex-direction: column; gap: 9px; }
.link-btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: #f6f6f3; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px 10px 14px; color: var(--ink-2);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
/* Un léger voile de couleur monte depuis la gauche au survol */
.link-btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(78, 107, 255, .1), transparent 70%);
  opacity: 0; transition: opacity .2s var(--ease);
}
.link-btn:hover {
  transform: translateY(-2px); border-color: rgba(78, 107, 255, .38);
  box-shadow: 0 8px 18px rgba(78, 107, 255, .14);
}
.link-btn:hover::before { opacity: 1; }
.link-btn[hidden] { display: none; }
.link-ic {
  position: relative; z-index: 1;
  width: 30px; height: 30px; border-radius: 9px; flex: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.link-ic svg { width: 16px; height: 16px; display: block; }
.link-ic-mail { background: var(--ink); }
.link-ic-in { background: #0A66C2; }
.link-ic-cv { background: linear-gradient(135deg, #4657FF, #4A30EC); }
.link-tx { position: relative; z-index: 1; flex: 1; min-width: 0; font: 600 13.5px/1.2 'Inter', sans-serif; white-space: nowrap; color: var(--ink); }
/* Pastille ronde à droite : discrète, se remplit d'accent au survol */
.link-go {
  position: relative; z-index: 1; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(15, 19, 48, .05); color: #9aa1b8;
  font: 700 13px/1 'Inter', sans-serif;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.link-btn:hover .link-go {
  background: var(--accent); color: #fff; transform: scale(1.08);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; border: 0; padding: 0;
  background: rgba(10, 10, 12, .92);
  display: flex; align-items: center; justify-content: center;
  animation: viewIn .25s var(--ease) both;
}
.lightbox img {
  max-width: 92vw; max-height: 82vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox-cap {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font: 500 13px/1.4 'Inter', sans-serif; color: rgba(255, 255, 255, .8);
  text-align: center; max-width: 80vw;
}
.lightbox-close {
  position: absolute; top: 20px; right: 22px; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
  font: 400 22px/1 'Inter', sans-serif;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .2); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08);
  color: #fff; cursor: pointer; font: 400 20px/1 'Inter', sans-serif;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ============================================================
   RÉCIT : une photo mise en avant par bloc, texte en regard
   ============================================================ */
.story { display: flex; flex-direction: column; gap: 76px; margin: 8px 0 44px; }

.story-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
}
/* Un bloc sur deux inverse texte et photo : le regard zigzague au lieu de tomber. */
.story-block.is-flipped .story-side { order: 2; }
.story-block.is-solo { grid-template-columns: 1fr; max-width: 720px; }
/* Pleine largeur : le texte en tête, les photos en grand dessous */
.story-block.is-wide { grid-template-columns: 1fr; gap: 30px; }
.story-block.is-wide .story-side { max-width: 720px; }

.story-side { min-width: 0; }
.story-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 11px/1 'Inter', sans-serif; color: var(--accent);
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px;
}
.story-kicker::before {
  content: ''; width: 20px; height: 2px; border-radius: 2px;
  background: currentColor; flex: none;
}
.story-title {
  font: 800 25px/1.3 'Inter', sans-serif; color: var(--ink);
  letter-spacing: -.015em; margin-bottom: 14px;
}
.story-text { font: 400 15.5px/1.75 'Inter', sans-serif; color: var(--ink-3); }

.story-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  background: #fff; border: 1px solid rgba(78, 107, 255, .3); border-radius: 100px;
  padding: 10px 18px; text-decoration: none;
  font: 600 13px/1 'Inter', sans-serif; color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.story-link:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.story-link-arrow { transition: transform .2s var(--ease); }
.story-link:hover .story-link-arrow { transform: translate(2px, -2px); }

/* Colonne, pour que la mention se pose sous la photo et non à côté */
.story-media {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-width: 0;
}

/* Le plafond de hauteur (--mh) est converti en largeur via le ratio (--ar) et
   appliqué AU CADRE. Deux pièges à ne pas rouvrir :
   1. Plafonner l'<img> au lieu du cadre : le cadre garderait la largeur native
      du fichier et laisserait une bande vide à droite de la photo.
   2. Poser un `max-height` sur l'<img> : la hauteur se figerait pendant que la
      largeur se réduit, et la photo s'écraserait. */
.story-figure {
  --mh: 560px;
  position: relative; padding: 0; cursor: zoom-in; overflow: hidden;
  /* `width`, pas `max-width` : l'image fait 100 % du cadre, donc le cadre doit
     avoir une largeur définie, sinon les deux s'attendent et tout s'effondre. */
  width: min(100%, calc(var(--mh) * var(--ar, 1)));
  border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .11);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.story-figure img {
  display: block; width: 100%; height: auto;
  transition: transform .5s var(--ease);
}
.story-figure:hover { transform: translateY(-4px); box-shadow: 0 30px 56px rgba(0, 0, 0, .16); }
.story-figure:hover img { transform: scale(1.04); }
.story-figure::after {
  content: '⤢';
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17, 17, 17, .55); color: #fff; font: 400 14px/1 'Inter', sans-serif;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transform: scale(.8);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.story-figure:hover::after { opacity: 1; transform: scale(1); }

/* Rangée de photos, en pleine largeur.
   `align-items: stretch` est indispensable : le parent centre ses enfants, donc
   sans ça le rail se dimensionne sur son contenu et ne peut plus défiler. */
.story-row { gap: 14px; align-self: stretch; align-items: stretch; }
.story-strip { display: flex; gap: 16px; align-items: flex-start; justify-content: center; }
.story-strip .story-figure { --mh: 540px; flex: 0 1 auto; min-width: 0; }

/* Mention sous une photo (reconstitution, provenance…) */
.story-note {
  font: 400 11.5px/1.5 'Inter', sans-serif; color: var(--muted);
  margin-top: 12px; text-align: center; max-width: 460px;
  margin-left: auto; margin-right: auto;
}
.story-note-icon { color: var(--accent); font-size: 11px; }

/* ---------- Avant / après ---------- */
.story-compare { flex-direction: column; align-items: center; gap: 16px; }
.compare-stage {
  position: relative; width: 100%; height: 440px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #f4f3f0, #e9e8e4);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .11);
}
.compare-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 14px;
  transition: opacity .45s var(--ease);
}
.compare-img.is-out { opacity: 0; }
.compare-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(17, 17, 17, .55); color: #fff; font: 400 14px/1 'Inter', sans-serif;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .2s var(--ease);
}
.compare-zoom:hover { background: rgba(17, 17, 17, .85); }

.compare-tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}
.compare-tab {
  border: 0; background: transparent; border-radius: 100px; cursor: pointer;
  padding: 9px 18px; font: 600 12.5px/1 'Inter', sans-serif; color: var(--ink-3);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.compare-tab:hover { color: var(--ink); }
.compare-tab.is-on { background: var(--accent); color: #fff; }

/* ---------- Captures encadrées (pages projet) ---------- */
.story-frame {
  display: block; width: 100%; padding: 0; cursor: zoom-in; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.story-frame:hover { transform: translateY(-4px); }
.story-frame img { display: block; width: 100%; height: auto; }

/* Cadre navigateur */
.frame-browser {
  border-radius: 14px; box-shadow: 0 26px 52px rgba(0, 0, 0, .16);
}
.frame-browser:hover { box-shadow: 0 34px 64px rgba(0, 0, 0, .22); }
.frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; background: #f3f2ef; border-bottom: 1px solid var(--line);
}
.frame-led { width: 9px; height: 9px; border-radius: 50%; background: rgba(0, 0, 0, .13); flex: none; }
.frame-url {
  flex: 1; min-width: 0; height: 20px; border-radius: 100px; margin-left: 6px;
  background: rgba(0, 0, 0, .05); display: flex; align-items: center; padding: 0 11px;
  font: 500 9.5px/1 ui-monospace, Menlo, monospace; color: #9a9a9a;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.frame-browser .frame-screen { display: block; max-height: 420px; overflow: hidden; }

/* Cadre téléphone : même principe de plafond que .story-figure. */
.frame-phone {
  --mh: 540px;
  border-radius: 30px; padding: 9px; background: #111;
  border-color: #111; box-shadow: 0 26px 52px rgba(0, 0, 0, .24);
  width: min(100%, calc(var(--mh) * var(--ar, .5)));
}
.frame-phone .frame-screen { display: block; border-radius: 22px; overflow: hidden; }
.frame-phone img { border-radius: 22px; }

/* ---------- Compteur ---------- */
.counter {
  margin-top: 22px; padding: 18px 22px; display: inline-block;
  border-radius: 16px; background: rgba(78, 107, 255, .07);
  border: 1px solid rgba(78, 107, 255, .16);
}
.counter-value {
  font: 800 34px/1 'Inter', sans-serif; color: var(--accent);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.counter-label {
  font: 500 12px/1.4 'Inter', sans-serif; color: var(--ink-3); margin-top: 7px;
}

/* ---------- Terminal IA (démo scriptée) ---------- */
.terminal {
  background: #0c0c0f; border-radius: 16px; padding: 18px; margin-bottom: 26px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
}
.terminal-head {
  color: var(--accent); letter-spacing: .05em; margin-bottom: 12px;
  font: 600 10.5px/1 ui-monospace, Menlo, monospace;
}
.terminal-log {
  min-height: 92px; max-height: 190px; overflow-y: auto; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 7px;
}
.terminal-line { font: 12.5px/1.5 ui-monospace, Menlo, monospace; animation: viewIn .3s var(--ease) both; }
.terminal-line.user { color: #9aa0ff; }
.terminal-line.bot  { color: #e8e8ee; }
.terminal-hint {
  font: 500 11.5px/1.5 ui-monospace, Menlo, monospace; color: rgba(255, 255, 255, .35);
}
.terminal-qs { display: flex; flex-wrap: wrap; gap: 7px; }
.terminal-q {
  font: 500 11px/1 ui-monospace, Menlo, monospace; color: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 100px;
  padding: 7px 12px; background: transparent; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.terminal-q:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.terminal-q[disabled] { opacity: .3; cursor: default; }

/* ---------- Bandeau projet (ClientBase / PrepaEntretien) ---------- */
.brandhero {
  position: relative; overflow: hidden; border-radius: 24px;
  padding: 40px; margin: 8px 0 36px; color: #fff;
  background: var(--brand-bg, var(--accent));
  box-shadow: 0 30px 60px var(--brand-glow, rgba(78, 107, 255, .25));
}
.brandhero-blob {
  position: absolute; top: -90px; right: -40px; width: 300px; height: 300px;
  border-radius: 50%; filter: blur(10px);
  background: radial-gradient(circle, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 70%);
  animation: blobDrift 10s ease-in-out infinite;
}
.brandhero-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.brandhero-left { max-width: 560px; }
.brandhero-id { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
/* Le logo est un PNG détouré : pas de fond, pas d'angles blancs. */
.brandhero-logo {
  width: 48px; height: 48px; flex: none; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25));
}
.brandhero-name { font: 800 20px/1 'Inter', sans-serif; letter-spacing: -.01em; }
.brandhero-tag {
  display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 100px;
  background: rgba(255, 255, 255, .18); font: 600 9.5px/1.4 'Inter', sans-serif;
  letter-spacing: .06em;
}
.brandhero-title {
  font: 800 34px/1.2 'Inter', sans-serif; letter-spacing: -.015em; margin-bottom: 14px;
}
.brandhero-copy { font: 400 15.5px/1.6 'Inter', sans-serif; color: rgba(255, 255, 255, .8); }
.brandhero-metrics { display: flex; gap: 32px; margin-top: 26px; flex-wrap: wrap; }
.brandhero-metric-v { font: 800 24px/1 'Inter', sans-serif; }
.brandhero-metric-l {
  font: 500 11.5px/1.3 'Inter', sans-serif; color: rgba(255, 255, 255, .6); margin-top: 5px;
}
.btn-visit {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  background: #fff; color: var(--brand-ink, var(--accent));
  font: 700 15px/1 'Inter', sans-serif; padding: 17px 24px; border-radius: 100px;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-visit:hover {
  color: var(--brand-ink, var(--accent));
  transform: translateY(-3px); box-shadow: 0 18px 34px rgba(0, 0, 0, .28);
}
.btn-visit .btn-visit-arrow { transition: transform .2s var(--ease); }
.btn-visit:hover .btn-visit-arrow { transform: translate(3px, -3px); }

.detail-cta-brand {
  background: var(--brand-soft, rgba(78, 107, 255, .06));
}

/* ---------- CTA bas de page détail ---------- */
.detail-cta-wrap {
  margin-top: 16px; padding: 26px 24px 44px; border-top: 1px solid rgba(0, 0, 0, .06);
}
.detail-cta {
  max-width: var(--maxw); margin: 0 auto;
  background: rgba(78, 107, 255, .06); border-radius: var(--radius);
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.detail-cta-text { font: 500 15px/1.5 'Inter', sans-serif; color: var(--ink-2); }
.detail-cta-text strong { color: var(--accent); font-weight: 600; }
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: var(--ink); color: #fff; font: 600 13px/1 'Inter', sans-serif;
  padding: 13px 20px; border-radius: 100px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease);
}
.btn-dark:hover { color: #fff; transform: translateY(-2px); }

/* ---------- Navigation étape suivante/précédente ---------- */
.detail-nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px 48px;
  display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap;
}
.detail-nav-btn {
  flex: 1 1 220px; min-width: 0; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 100px;
  padding: 12px 20px; box-shadow: var(--shadow);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.detail-nav-btn:hover { transform: translateY(-2px); border-color: rgba(78, 107, 255, .4); }
.detail-nav-btn.is-next { justify-content: flex-end; text-align: right; }
.detail-nav-ic {
  width: 20px; height: 20px; flex: none; color: var(--accent);
  transition: transform .22s var(--ease);
}
.detail-nav-btn:hover .detail-nav-ic { transform: translateX(-3px); }
.detail-nav-btn.is-next:hover .detail-nav-ic { transform: translateX(3px); }
.detail-nav-title {
  font: 700 14px/1.3 'Inter', sans-serif; color: var(--ink); min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero { padding-top: 40px; }
  .hero-title { font-size: 38px; }
  /* Bento → une seule colonne : chiffres, photo, projet en cours */
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "stats" "photo" "now";
    max-width: 620px; margin-top: 32px;
  }
  .tile-photo img { height: auto; }
  .detail-aside { position: static; }
  .path { padding-top: 44px; }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .aside-figure img { height: 240px; }
  .contact-right { width: 100%; }
  .contact-title { font-size: 30px; }
}

@media (max-width: 720px) {
  /* Frise mobile : fil au centre, cartes en quinconce, comme sur ordinateur.
     Les cartes tombent à ~150px de large : les titres les plus longs passent
     donc sur deux lignes, il n'y a pas la place pour faire autrement. */
  .hero { padding: 32px 16px 0; }
  .path { padding-left: 16px; padding-right: 16px; }

  .bento { gap: 14px; max-width: 100%; }
  .stat-value { font-size: 26px; }
  .tile-now { padding: 22px; }
  .tile-now-title { font-size: 20px; }

  .intro-more { margin-top: 34px; }
  .brand { margin-right: 38px; font-size: 15px; }

  .timeline { padding-bottom: 48px; }
  .tl-item[data-side="left"]  { justify-content: flex-start; }
  .tl-item[data-side="right"] { justify-content: flex-end; }
  .tl-slot { width: 46%; }
  .tl-mark { left: 50%; width: 26px; height: 26px; font-size: 9.5px; box-shadow: 0 0 0 4px var(--bg); }
  .tl-card { padding: 12px 13px; }
  .tl-year { font-size: 11px; margin-bottom: 4px; }
  .tl-title { white-space: normal; font-size: 13px; line-height: 1.35; text-wrap: balance; }
  .tl-slot::after { top: 26px; width: 4%; }

  .path-head { gap: 10px; }

  /* Récit : une colonne, photo toujours au-dessus de son texte */
  .story { gap: 52px; }
  .story-block { grid-template-columns: 1fr; gap: 20px; }
  .story-block .story-side { order: 2; }
  .story-block .story-media { order: 1; }
  .story-title { font-size: 21px; }
  .story-figure { --mh: 340px; }
  .story-figure::after { opacity: 1; transform: scale(1); }

  /* La rangée devient un rail, comme les galeries */
  .story-strip {
    justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity;
    scrollbar-width: none; margin-left: -24px; margin-right: -24px;
    padding: 4px 24px 10px; scroll-padding-left: 24px;
  }
  .story-strip::-webkit-scrollbar { display: none; }
  /* Les figures du rail ne se rétrécissent pas : sans plafond en vw, une photo
     au format paysage finirait plus large que l'écran. */
  .story-strip .story-figure {
    --mh: 300px; flex: none; scroll-snap-align: start;
    width: min(84vw, calc(var(--mh) * var(--ar, 1)));
  }

  .compare-stage { height: 320px; }
  .compare-tab { padding: 9px 14px; font-size: 12px; }
  .counter { display: block; }
  .counter-value { font-size: 28px; }

  .hero-title { font-size: 27px; }
  .hero-cursor { height: 22px; vertical-align: -3px; }
  .detail-title { font-size: 28px; }
  .brandhero { padding: 28px; }
  .brandhero-title { font-size: 26px; }
  .btn-visit { width: 100%; justify-content: center; }
  .contact { padding: 40px 20px; border-radius: 24px 24px 0 0; }
  .contact-title { font-size: 27px; }
  .detail-cta { padding: 20px; }
  .btn-dark { width: 100%; justify-content: center; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 24px; }
  /* Assez petit pour que « PrepaEntretien.com », un seul mot insécable,
     tienne dans la carte sans être tronqué. */
  .tl-title { font-size: 11.5px; }
  .tl-card { padding: 10px; }
  /* Sous 360px, l'écart carte/fil devient plus étroit que le repère :
     on rétrécit les deux pour qu'il ne morde pas sur le texte. */
  .tl-slot { width: 44%; }
  .tl-mark { width: 22px; height: 22px; font-size: 9px; box-shadow: 0 0 0 3px var(--bg); }
  .tl-slot::after { width: 6%; top: 24px; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  /* Pas d'écran de chargement pour qui ne veut pas d'animation */
  .loader { display: none; }
  /* Bandeau : on arrête le défilement, on laisse faire défiler au doigt */
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}
