/* sebastienvolpe.com — couche « visuelle et interactive » */
@view-transition { navigation: auto; }

/* Hero WebGL */
.hero[data-hero-gl] { min-height: 100svh; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero canvas.hero-gl { z-index: -2; opacity: 0; transition: opacity 1.2s ease; }
.hero.gl-on canvas { opacity: 1; }
.hero.gl-on .hero-media { opacity: 0; transition: opacity 1.2s ease 0.4s; }
.hero .wrap { position: relative; z-index: 1; }
.hero-ui {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(28px, 6vh, 64px);
  display: flex; align-items: center; gap: 18px; color: #fff;
}
.hero-caption { text-align: right; line-height: 1.25; min-width: 180px; }
.hero-caption b { display: block; font: 700 1rem/1.2 var(--display); }
.hero-caption span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.65); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: width .3s ease, background .3s ease; }
.hero-dots button.is-on { width: 40px; background: var(--accent); }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(6, 8, 13, 0.4); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); }
.hero-arrows button:hover { border-color: var(--accent); color: var(--accent); }
.hero-arrows svg { width: 20px; height: 20px; }
.hero:not(.gl-on) .hero-ui { display: none; }
.hero[data-hero-gl]::after {
  background:
    linear-gradient(180deg, rgba(6, 8, 13, 0.55) 0%, rgba(6, 8, 13, 0) 16%),
    radial-gradient(ellipse 62% 55% at 18% 82%, rgba(6, 8, 13, 0.78) 0%, rgba(6, 8, 13, 0.35) 55%, rgba(6, 8, 13, 0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 13, 0) 22%);
}
.hero-content .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7); }
.hero-content .eyebrow { display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(6, 8, 13, 0.55); border: 1px solid rgba(255, 164, 36, 0.3); backdrop-filter: blur(8px); line-height: 1.4; }
@media (max-width: 860px) {
  .hero[data-hero-gl]::after { background: linear-gradient(0deg, var(--bg) 6%, rgba(6, 8, 13, 0.7) 50%, rgba(6, 8, 13, 0.25) 100%); }
}
@media (max-width: 1279px) { .scroll-cue { display: none; } }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero h1 { text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); }
.hero h1 .accent { background: linear-gradient(90deg, var(--accent), var(--accent-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
@media (max-width: 860px) {
  .hero-ui { left: var(--gutter); right: var(--gutter); justify-content: space-between; bottom: 20px; }
  .hero-caption { text-align: left; min-width: 0; }
  .hero-dots { display: none; }
  .scroll-cue { display: none; }
  .hero-content { padding-bottom: 110px; }
}

/* Mots qui montent, blocs qui apparaissent */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
[data-split] .wi { display: inline-block; transform: translateY(110%); transition: transform 0.9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--k, 0) * 55ms); }
[data-split].is-in .wi { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Curseur */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity .3s ease; }
.cursor.is-live { opacity: 1; }
.cursor::before {
  content: ""; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(255, 164, 36, 0.8); transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.cursor.is-hover::before { transform: scale(1.5); background: rgba(255, 164, 36, 0.12); }
.cursor.has-label::before { transform: scale(1.35); background: rgba(255, 164, 36, 0.1); border-color: var(--accent); }
/* Étiquette discrète, décalée en bas à droite du pointeur pour ne pas masquer les visuels */
.cursor span {
  position: absolute; left: 22px; top: 20px; padding: 6px 10px; border-radius: 999px;
  background: rgba(6, 8, 13, 0.82); border: 1px solid rgba(255, 164, 36, 0.5); backdrop-filter: blur(6px);
  font: 700 0.68rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; white-space: nowrap;
}
.cursor.has-label span { opacity: 1; transform: none; }

/* Bandeau d'outils qui défile */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font: 700 clamp(1.3rem, 2.6vw, 2rem)/1 var(--display); padding: 0 28px; color: rgba(238, 241, 246, 0.85); display: flex; align-items: center; gap: 56px; white-space: nowrap; }
/* Bandeau : points de la frise du projet secret (cercle orange et point central) sur une lueur orangée */
.marquee li::after { content: ""; flex: none; width: 0.55em; height: 0.55em; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--accent); background: radial-gradient(circle, var(--accent) 0 32%, transparent 38%); box-shadow: 0 0 12px rgba(255, 164, 36, 0.35); }
.marquee { background: radial-gradient(ellipse 45% 160% at 22% 50%, rgba(255, 140, 40, 0.16), transparent 70%), radial-gradient(ellipse 40% 160% at 78% 50%, rgba(255, 106, 31, 0.12), transparent 70%), var(--bg-2); }
.marquee li:nth-child(3n + 2) { color: transparent; -webkit-text-stroke: 1px rgba(238, 241, 246, 0.6); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Showreel */
.reel-section { position: relative; padding: clamp(72px, 10vw, 128px) 0; overflow: hidden; isolation: isolate; }
.reel-section::before { content: ""; position: absolute; inset: 20% -10% auto; height: 60%; background: radial-gradient(closest-side, rgba(255, 106, 31, 0.22), transparent); filter: blur(40px); z-index: -1; }
.reel-frame { position: relative; border-radius: var(--radius-lg); padding: 2px; background: linear-gradient(120deg, rgba(255, 164, 36, 0.9), rgba(255, 106, 31, 0.1) 40%, rgba(255, 164, 36, 0.6)); background-size: 200% 200%; animation: glow 8s ease infinite; }
.reel-frame .video { border-radius: calc(var(--radius-lg) - 2px); }
@keyframes glow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.reel-frame .video .play { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
.video .play::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(255, 164, 36, 0.5); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.video.is-playing { cursor: auto; }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: clamp(40px, 6vw, 64px); }
.stats div { background: var(--bg); padding: 26px 22px; }
.stats b { display: block; font: 700 clamp(2.2rem, 5vw, 3.4rem)/1 var(--display); color: var(--accent); }
.stats b em { font-style: normal; font-size: 0.6em; }
.stats div > span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.93rem; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Projets */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: 600 0.92rem/1 var(--body); cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.filters button:hover { color: var(--text); border-color: rgba(255, 164, 36, 0.5); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.projects { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 18px; }
.project { grid-column: span 4; perspective: 900px; }
.project.lg { grid-column: span 8; }
.project.xl { grid-column: span 12; }
.project.xl > button { min-height: clamp(320px, 34vw, 460px); }
.project.xl img { object-position: 50% 35%; }
.project[hidden] { display: none; }
.project > button {
  position: relative; display: block; width: 100%; height: 100%; min-height: 320px; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); color: #fff; text-align: left;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
  box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.9);
}
.project > button:hover { box-shadow: 0 40px 70px -30px rgba(255, 106, 31, 0.35); }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1), filter .5s ease; filter: saturate(0.9) brightness(0.85); }
.project > button:hover img { transform: scale(1.07); filter: saturate(1.1) brightness(1); }
.project > button::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(4, 5, 9, 0.92) 0%, rgba(4, 5, 9, 0.15) 55%, rgba(4, 5, 9, 0) 100%); }
.project > button::after { content: ""; position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 200, 120, 0.22), transparent 45%); opacity: 0; transition: opacity .3s; }
.project > button:hover::after { opacity: 1; }
.project .meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 22px; transform: translateZ(40px); }
.project .meta small { display: block; font: 600 0.75rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.project .meta strong { display: block; font: 700 clamp(1.25rem, 2.2vw, 1.7rem)/1.15 var(--display); }
.project .meta span { display: block; color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; margin-top: 6px; max-width: 46ch; }
.project .has-video { position: absolute; top: 16px; right: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: rgba(6, 8, 13, 0.6); backdrop-filter: blur(6px); font: 600 0.75rem/1 var(--body); }
.project .has-video svg { width: 12px; height: 12px; color: var(--accent); }
@media (max-width: 960px) { .project, .project.lg { grid-column: span 6; } .project.xl { grid-column: span 12; } }
@media (max-width: 620px) { .projects { gap: 12px; } .project, .project.lg, .project.xl { grid-column: span 12; } .project > button { min-height: 260px; } }

/* Fiche projet */
.project-modal { width: min(1180px, 100vw - 24px); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); color: var(--text); overflow: auto; }
.project-modal::backdrop { background: rgba(3, 4, 7, 0.88); backdrop-filter: blur(4px); }
.project-modal[open] { animation: pop .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
.pm-grid { display: grid; grid-template-columns: 1.6fr 1fr; }
.pm-media { background: #000; padding: 14px; min-width: 0; }
.pm-main .video, .pm-figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.pm-figure img, .pm-figure video { display: block; width: 100%; max-height: 64vh; object-fit: contain; background: #000; }
.pm-figure figcaption { font-size: 0.85rem; color: var(--muted); padding: 10px 4px 0; }
.pm-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; }
.pm-thumbs button { position: relative; flex: none; width: 96px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--surface); opacity: 0.6; }
.pm-thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm-thumbs span { position: absolute; inset: 0; display: grid; place-items: center; }
.pm-thumbs span svg { width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 1px 3px #000); }
.pm-body { padding: clamp(22px, 3vw, 36px); position: relative; }
.pm-cat { font: 600 0.78rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.pm-title { font-size: clamp(1.7rem, 3vw, 2.3rem); padding-right: 56px; }
.pm-text { color: #d6dbe4; }
.pm-text ul { padding-left: 1.1em; }
.pm-tools { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 18px 0 22px; }
.pm-tools li { font-size: 0.82rem; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.pm-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-close { position: absolute; top: 18px; right: 18px; }
@media (max-width: 860px) { .pm-grid { grid-template-columns: 1fr; } .pm-close { position: fixed; top: 18px; right: 18px; z-index: 5; } }

/* Breakdown horizontal */
.hs { position: relative; background: var(--bg-2); border-block: 1px solid var(--line); }
.hs-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 60px; }
.hs-head { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto 30px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.hs-head h2 { margin: 0; }
.hs-bar { width: 220px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.hs-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.hs-track { display: flex; gap: 28px; padding: 0 var(--gutter) 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.hs-step { flex: none; width: min(58vw, 720px); }
.hs-step figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: #000; }
.hs-step img { width: 100%; height: 100%; object-fit: cover; }
.hs-step .num { position: absolute; top: 14px; left: 16px; font: 700 3.6rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85); }
.hs-step h3 { margin: 18px 0 6px; font-size: 1.35rem; }
.hs-step p { color: var(--muted); margin: 0; max-width: 56ch; }
.hs-end { flex: none; width: min(40vw, 420px); display: flex; flex-direction: column; justify-content: center; padding-right: var(--gutter); }
@media (max-width: 860px) {
  .hs-sticky { position: static; height: auto; padding: 72px 0; }
  .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
  .hs-step { width: 82vw; scroll-snap-align: start; }
  .hs-end { width: 72vw; }
  .hs-bar { display: none; }
}

/* Cartes tutoriels inclinables */
.card[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .2s ease; }
.card .thumb img { transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.card:hover .thumb img { transform: scale(1.06); }

/* Contact flamboyant */
.contact-fx { position: relative; overflow: hidden; isolation: isolate; }
.contact-fx::before { content: ""; position: absolute; left: 50%; bottom: -40%; width: 120%; height: 90%; translate: -50% 0; z-index: -1; background: radial-gradient(closest-side, rgba(255, 106, 31, 0.35), rgba(255, 164, 36, 0.08) 60%, transparent); filter: blur(30px); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.75; } }
.contact-fx h2 { font-size: clamp(2.6rem, 8vw, 6rem); }

/* Réseaux sociaux dans l'en-tête (et sous le hero sur mobile) */
/* Sélecteur de langue FR | EN */
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 6px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.nav .lang-switch a { padding: 6px 9px; font: 700 0.72rem/1 var(--body); letter-spacing: 0.08em; color: var(--muted); border-radius: 999px; border: 0; }
.nav .lang-switch a:hover { color: var(--text); }
.nav .lang-switch a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.nav-social { display: flex; align-items: center; gap: 2px; margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--line); }
.nav .nav-social a { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: color .2s, background .2s, transform .2s; }
.nav .nav-social a:hover { color: var(--accent); background: rgba(255, 164, 36, 0.12); transform: translateY(-1px); }
.nav-social svg { width: 18px; height: 18px; }
.hero-social { display: none; }
.brand { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1240px) and (min-width: 1101px) {
  .nav a { padding: 10px 10px; font-size: 0.92rem; }
  .nav .nav-cta { margin-left: 4px; padding: 10px 16px; }
  .nav .nav-social a { width: 34px; height: 34px; }
}
/* Menu « burger » jusqu'à 1100 px (logo + 5 liens + 4 icônes + Contact ne tiennent pas en dessous) */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6, 8, 13, 0.97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; border-radius: 999px; border: 0; }
  .lang-switch { align-self: center; margin: 18px 0 0; }
  .nav .lang-switch a { padding: 9px 16px; font-size: 0.85rem; border-bottom: 0; }
  .nav-social { justify-content: center; gap: 10px; margin: 16px 0 0; padding: 0; border: 0; }
  .nav .nav-social a { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); }
  .nav-social svg { width: 20px; height: 20px; }
  .hero-social { display: flex; gap: 10px; margin-top: 18px; }
  .hero-content { padding-bottom: 120px; }
  .hero-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(6, 8, 13, 0.45); backdrop-filter: blur(6px); color: #fff; }
  .hero-social a:hover { color: var(--accent); border-color: var(--accent); }
  .hero-social svg { width: 19px; height: 19px; }
}

/* Frise chronologique (biographie) et mini-parcours (accueil) */
.tl-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 900px) { .tl-grid { grid-template-columns: 1fr; } }
.tl-title { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 7px; top: 6px; width: 2px; height: calc((100% - 12px) * var(--p, 0)); background: linear-gradient(180deg, var(--accent), var(--accent-hot)); box-shadow: 0 0 12px rgba(255, 140, 40, 0.6); }
.timeline > li { position: relative; padding: 0 0 30px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: -30px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(255, 164, 36, 0.12); z-index: 1; }
.tl-date { display: inline-block; font: 700 0.8rem/1 var(--display); letter-spacing: 0.08em; color: var(--accent); background: rgba(255, 164, 36, 0.1); border: 1px solid rgba(255, 164, 36, 0.3); padding: 6px 10px; border-radius: 999px; margin-bottom: 10px; }
.timeline h4 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); margin: 0 0 8px; }
.timeline ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.96rem; }
.timeline ul li { margin-bottom: 4px; }
.timeline p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.timeline h4 small { display: block; margin-top: 4px; font: 600 0.78rem/1.3 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.certs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.certs h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 18px 0 10px; }
.certs h4:first-child { margin-top: 0; }
.certs ul { list-style: none; margin: 0; padding: 0; }
.certs ul:not(.chips) li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.certs ul:not(.chips) li:last-child { border-bottom: 0; }
.certs time { color: var(--muted); white-space: nowrap; font-size: 0.88rem; }
.certs .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.certs .chips li { padding: 6px 10px; border-radius: 999px; border: 1px dashed rgba(255, 164, 36, 0.45); font-size: 0.85rem; }
.facts h2 + ul { margin-bottom: 26px; }
.facts .skills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; }
.facts .skills li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 0.85rem; color: var(--text); }
.mini-tl { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.mini-tl li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mini-tl b { font: 700 0.85rem/1.2 var(--display); color: var(--accent); }
.mini-tl span { font-size: 0.97rem; }
.mini-tl em { font-style: normal; color: var(--muted); }
@media (max-width: 520px) { .mini-tl li { grid-template-columns: 1fr; gap: 4px; } }

/* Outils et pipeline */
.tools { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
/* grille à 6 colonnes : carte normale 1/3, carte large 2/3, carte .half ou IA 1/2 */
.tools > .tool { grid-column: span 2; }
.tools > .tool.featured, .tools > .tool.wide { grid-column: span 4; }
.tools > .tool.half, .tools > .tool.ai { grid-column: span 3; }
.tool { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .25s ease, transform .25s ease; }
.tool:hover { border-color: rgba(255, 164, 36, 0.45); transform: translateY(-3px); }
.tool.is-link { cursor: pointer; }
.tool.is-link:hover .tool-link { color: #ffc266; }
.tool-img { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.tool-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.tool:hover .tool-img img { transform: scale(1.05); }
.tool-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tool-ctx { font: 600 0.74rem/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.tool h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tool-body > p:not(.tool-ctx) { color: var(--muted); font-size: 0.95rem; flex: 1; }
.tool-tech { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0 12px; }
.tool-tech li { font-size: 0.78rem; padding: 5px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.tool-link { font-weight: 600; font-size: 0.92rem; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.tool-link svg { width: 16px; height: 16px; }
.tool.featured { grid-column: span 2; flex-direction: row; }
.tool.featured .tool-visual, .tool.ai .tool-visual { flex: 0 0 44%; }
.tool.featured .tool-body { padding: 28px 30px; }
.tool.featured h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tool-visual {
  position: relative; min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 24px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 164, 36, 0.35), transparent 55%), radial-gradient(circle at 75% 75%, rgba(255, 106, 31, 0.3), transparent 50%), #0a0d14;
  overflow: hidden;
}
.tool-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(circle, #000 30%, transparent 75%); }
.tv-flow { position: relative; display: flex; align-items: center; gap: 12px; font: 700 clamp(1rem, 1.8vw, 1.3rem)/1 var(--display); }
.tv-flow b { padding: 12px 16px; border-radius: 12px; background: rgba(6, 8, 13, 0.75); border: 1px solid rgba(255, 164, 36, 0.5); }
.tv-flow i { width: 46px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-hot)); position: relative; }
.tv-flow i::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 8px solid var(--accent-hot); }
.tv-tag { position: relative; font: 600 0.75rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.tool.ai { grid-column: span 2; flex-direction: row; }
.tool.wide { grid-column: span 2; flex-direction: row; }
.tool.wide .tool-img { flex: 0 0 48%; aspect-ratio: auto; min-height: 240px; }
.tool.wide .tool-img img { object-position: 50% 50%; }
button.tool-link { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--accent); font-family: inherit; cursor: pointer; }
button.tool-link:hover { color: #ffc266; }
.tool.ai .tool-img { position: relative; flex: 0 0 44%; aspect-ratio: auto; min-height: 260px; }
.tool.ai .tool-img img { object-position: 30% 35%; }
.tool.ai.photo-top { flex-direction: column; }
.tool.ai.photo-top .tool-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
.tool.ai.photo-top .tool-img img { object-position: 50% 40%; }
.tool-badge { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 7px 11px; border-radius: 14px; background: rgba(6, 8, 13, 0.7); backdrop-filter: blur(6px); font: 600 0.72rem/1.35 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.tool.ai .tool-visual { background: radial-gradient(circle at 30% 40%, rgba(120, 140, 255, 0.35), transparent 55%), radial-gradient(circle at 75% 70%, rgba(255, 106, 31, 0.25), transparent 50%), #0a0d14; }
/* Carte Ubisoft : bande-annonce officielle au clic (lecteur dessiné par le site, aucune image d'Ubisoft copiée) */
.tool.featured.has-video { flex-direction: column; }
.tool-video { border-radius: 0; box-shadow: none; flex: none; }
.tool-video .tool-visual { position: absolute; inset: 0; min-height: 0; justify-content: flex-start; padding-top: clamp(22px, 5%, 40px); }
.tool-body > p.tool-note { flex: none; margin: 4px 0 0; font-size: 0.78rem; color: var(--muted); }
@media (max-width: 720px) { .tool-video .tv-flow { display: none; } }

/* Outils R&D 2026 : visuel bleuté et chiffres clés */
.tool.rd .tool-visual { background: radial-gradient(circle at 30% 35%, rgba(70, 190, 255, 0.32), transparent 55%), radial-gradient(circle at 75% 72%, rgba(255, 164, 36, 0.22), transparent 50%), #0a0d14; }
.tool.rd .tv-flow b { border-color: rgba(110, 200, 255, 0.55); }
.tool:not(.featured):not(.ai):not(.wide) .tool-visual { min-height: 0; aspect-ratio: 16 / 9; }
.tool-stats { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 4px 0 14px; }
.tool-stats div { display: grid; gap: 4px; flex: 1 1 140px; }
.tool-stats b { font: 700 clamp(1.3rem, 2.1vw, 1.65rem)/1 var(--display); color: var(--accent); white-space: nowrap; }
.tool-stats span { font-size: 0.8rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 1000px) {
  .tools { grid-template-columns: 1fr 1fr; }
  .tools > .tool, .tools > .tool.half { grid-column: auto; }
  .tools > .tool.featured, .tools > .tool.wide, .tools > .tool.ai { grid-column: span 2; }
}
@media (max-width: 720px) {
  .tools { grid-template-columns: 1fr; }
  .tools > .tool, .tools > .tool.featured, .tools > .tool.ai, .tools > .tool.wide, .tools > .tool.half { grid-column: auto; }
  .tool.featured, .tool.ai, .tool.wide { flex-direction: column; }
  .tool.wide .tool-img, .tool.ai .tool-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .tool.featured .tool-visual, .tool.ai .tool-visual { flex: none; min-height: 170px; }
}

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .cert-grid { grid-template-columns: 1fr; } }
.cert-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.cert-count { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.cert-count b { font: 700 3rem/1 var(--display); color: var(--accent); }
.cert-count span { font: 700 1.05rem/1.2 var(--display); }
.cert-list { list-style: none; margin: 0; padding: 0; }
.cert-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.cert-list li span b { display: block; font-weight: 600; font-size: 0.95rem; }
.cert-list li span small { color: var(--muted); font-size: 0.82rem; }
.cert-list time { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.cert-list .verify { grid-column: 1 / -1; font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.cert-note { color: var(--muted); font-size: 0.88rem; margin: 12px 0 0; }
.cert-sub { font: 600 0.75rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 18px 0 10px; }
.cert-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.cert-chips li { padding: 6px 10px; border-radius: 999px; border: 1px dashed rgba(255, 164, 36, 0.45); font-size: 0.82rem; }

/* Projet secret : teaser sans aucun indice */
.secret { position: relative; overflow: hidden; isolation: isolate; border-block: 1px solid var(--line); min-height: clamp(320px, 42vw, 460px); display: grid; align-items: center; }
.secret-bg { position: absolute; inset: 0; z-index: -2; }
.secret-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); animation: secret-drift 18s ease-in-out infinite alternate; }
@keyframes secret-drift { from { transform: scale(1.08) translateX(-1.5%); } to { transform: scale(1.14) translateX(1.5%); } }
.secret::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 8, 13, 0.92) 0%, rgba(6, 8, 13, 0.55) 55%, rgba(6, 8, 13, 0.25) 100%); }
.secret-inner { padding: clamp(56px, 8vw, 96px) 0; max-width: 760px; margin-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.secret-status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 164, 36, 0.45); background: rgba(6, 8, 13, 0.6); font: 600 0.75rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.secret-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 164, 36, 0.7); animation: secret-pulse 1.8s ease-out infinite; }
@keyframes secret-pulse { to { box-shadow: 0 0 0 10px rgba(255, 164, 36, 0); } }
/* Pastille de disponibilité (contact) : point vert */
.secret-status.is-open i { background: #34d27b; box-shadow: 0 0 0 0 rgba(52, 210, 123, 0.7); animation-name: open-pulse; }
@keyframes open-pulse { to { box-shadow: 0 0 0 10px rgba(52, 210, 123, 0); } }
.secret-title { position: relative; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.secret-title::before, .secret-title::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.secret-title::before { color: var(--accent-hot); animation: secret-glitch 4.5s steps(1) infinite; }
.secret-title::after { color: #6aa8ff; animation: secret-glitch 4.5s steps(1) infinite reverse; }
@keyframes secret-glitch { 0%, 92%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); } 93% { opacity: .8; transform: translate(3px, -1px); clip-path: inset(20% 0 55% 0); } 95% { opacity: .8; transform: translate(-3px, 1px); clip-path: inset(60% 0 10% 0); } 97% { opacity: 0; } }
.secret-stamp { display: inline-block; margin: 6px 0 0; padding: 8px 14px; border: 1px dashed rgba(255, 255, 255, 0.35); border-radius: 8px; font: 700 0.8rem/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
/* Frise d'avancement du projet secret : trois phases de studio reliées, chacune avec ses étapes */
.secret-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 780px; }
.secret-steps > li { position: relative; padding: 32px 18px 0 0; }
.secret-steps > li::before { content: ""; position: absolute; top: 10px; left: 22px; right: 2px; height: 2px; background: rgba(255, 255, 255, 0.16); }
.secret-steps > li:last-child::before { display: none; }
.secret-steps > li.done::before { background: var(--accent); }
.secret-steps > li.current::before { background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.16)); }
.secret-steps i { position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); background: rgba(6, 8, 13, 0.85); display: grid; place-items: center; }
.secret-steps .done i { background: var(--accent); border-color: var(--accent); }
.secret-steps .done i::after { content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.secret-steps .current i { border-color: var(--accent); }
.secret-steps .current i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 164, 36, 0.7); animation: secret-pulse 1.8s ease-out infinite; }
.secret-steps b { display: block; font: 600 1rem/1.3 var(--body); color: var(--text); }
.secret-steps > li > span { display: block; margin-top: 6px; font: 600 0.68rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.secret-steps > .done > span, .secret-steps > .current > span { color: var(--accent); }
.secret-sub { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.secret-sub li { position: relative; padding-left: 20px; font: 500 0.88rem/1.35 var(--body); color: rgba(255, 255, 255, 0.55); }
.secret-sub li::before { content: ""; position: absolute; left: 1px; top: 0.36em; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.secret-sub li.done, .secret-sub li.current { color: var(--text); }
.secret-sub li.done::before { top: 0.22em; width: 5px; height: 10px; left: 3px; border-radius: 0; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.secret-sub li.current::before { border: 0; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 164, 36, 0.7); animation: secret-pulse 1.8s ease-out infinite; }
@media (max-width: 720px) {
  .secret-steps { grid-template-columns: 1fr; }
  .secret-steps > li { padding: 0 0 26px 38px; min-height: 40px; }
  .secret-steps > li::before { top: 24px; bottom: 0; left: 10px; right: auto; width: 2px; height: auto; }
  .secret-steps > li.current::before { background: linear-gradient(180deg, var(--accent), rgba(255, 255, 255, 0.16)); }
  .secret-steps > li > span { margin-top: 4px; }
  .secret-sub { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .secret-bg img, .secret-status i, .secret-title::before, .secret-title::after, .secret-steps .current i::after, .secret-sub li.current::before { animation: none; } }

.contact-loc { margin: 24px 0 0; color: var(--text); opacity: 0.88; font-size: 1.06rem; letter-spacing: 0.04em; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-split] .wi { opacity: 1 !important; transform: none !important; }
  .marquee-track, .reel-frame, .contact-fx::before, .video .play::after, .scroll-cue::after { animation: none; }
}

/* Enseignement : mosaïque 2 x 2 et écart resserré avec Certifications */
.mosaic.mosaic-4 img:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
#enseignement { padding-bottom: clamp(56px, 6vw, 84px); }
#enseignement + #certifications { padding-top: clamp(56px, 6vw, 84px); }

/* Contact : évaluation des études au Québec, sous la pastille de disponibilité */
.avail-note { margin: -4px auto 26px; max-width: 92ch; font-size: 1.02rem; line-height: 1.5; text-wrap: balance; color: var(--text); opacity: 0.88; }
.avail-note span { display: block; margin-top: 2px; }
.avail-note strong { color: var(--accent); font-weight: 700; }
/* Contact : phrase d'invitation en orange */
.contact .lead.contact-q { color: var(--accent); text-wrap: balance; }

/* Fiche projet : catégorie et titre sous le carrousel ; images agrandissables */
.pm-head { padding: clamp(18px, 2.4vw, 28px) 6px 6px; }
.pm-head .pm-title { padding-right: 0; }
.pm-text > :first-child { padding-right: 52px; }
.pm-zoom-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pm-zoom { position: absolute; bottom: 10px; right: 10px; padding: 6px 11px; border-radius: 999px; background: rgba(6, 8, 13, 0.72); backdrop-filter: blur(6px); color: var(--text); font: 600 0.7rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; transition: color .2s; }
.pm-zoom-btn:hover .pm-zoom, .pm-zoom-btn:focus-visible .pm-zoom { color: var(--accent); }
@media (max-width: 860px) { .pm-text > :first-child { padding-right: 0; } }

/* Fiche projet sur une seule colonne : le média en grand, le texte dessous */
.pm-grid { grid-template-columns: 1fr; }
.pm-media { background: transparent; padding: 14px 14px 0; }
.pm-head { padding: clamp(18px, 2.4vw, 28px) clamp(10px, 2.4vw, 24px) 0; }
.pm-body { padding: 14px clamp(22px, 3vw, 36px) clamp(26px, 3vw, 40px); }
.pm-text { max-width: 76ch; }
.pm-text > :first-child { padding-right: 0; }
.pm-close, .project-modal .pm-close { position: sticky; top: 14px; display: grid; place-items: center; margin: 14px 14px -62px auto; z-index: 6; }
@media (max-width: 860px) { .project-modal .pm-close { position: sticky; top: 10px; right: auto; margin: 10px 10px -58px auto; } }

/* Fenêtre ouverte (fiche, visionneuse, showreel) : la page derrière ne défile plus ; la place de l'ascenseur est gardée */
html.modal-open { overflow: hidden; padding-right: var(--sb, 0px); }
dialog { overscroll-behavior: contain; }
