@charset "UTF-8";
/* ==========================================================================
   cover / tools
   ========================================================================== */
/* ==========================================================================
   typo / tools
   ========================================================================== */
/* ==========================================================================
   gradient-border / tools
   Contour dégradé bleu → mauve dont les couleurs tournent en continu autour
   de l'élément (le bleu part du haut et descend, le mauve part du bas et monte).
   Le contour est un pseudo-élément ::before masqué : il fonctionne sur tous les
   fonds (même transparents) et garde les coins arrondis de l'élément.

   Utilisation :
     .element {
         @include gradient-border(3px);       // Prépare le contour (caché)
         &:hover { @include gradient-border-on; } // L'affiche et l'anime
     }
   $offset : déborde sur la bordure CSS existante (ex. bordure transparente de 2px).
   ========================================================================== */
/* ==========================================================================
   COLORS / SETTINGS
   Valeurs tirées des styles Figma (Primere, Secondaire, Linear, etc.)
   ========================================================================== */
:root {
  --color-white: #fff;
  --color-black: #000;
  --color-primary: #411ef8;
  --color-secondary: #f717f9;
  --color-primary-75: rgba(65, 30, 248, 0.75);
  --color-text: var(--color-black);
  --color-text-muted: rgba(0, 0, 0, 0.5);
  --color-text-inverse: var(--color-white);
  --color-text-label: rgba(0, 0, 0, 0.3);
  --color-bg: #efe6f9;
  --color-bg-dark: #473557;
  --color-border: #d5dae5;
  --color-line: var(--color-black);
  --color-line-muted: rgba(0, 0, 0, 0.55);
  --color-separator: rgba(0, 0, 0, 0.2);
  --gradient-brand: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --surface-glass: linear-gradient(180deg, rgba(65, 30, 248, 0.06) 0%, rgba(22, 0, 137, 0.08) 100%),
      linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
  --surface-glass-solid: linear-gradient(180deg, rgba(65, 30, 248, 0.053) 0%, rgba(22, 0, 137, 0.07) 100%),
      linear-gradient(var(--color-white), var(--color-white));
}

/* ==========================================================================
   easing / settings
   ========================================================================== */
/* ==========================================================================
   FONTS / SETTINGS
   Styles de texte Figma. Tailles fluides : maquette mobile (320px) → desktop (1440px).
   ========================================================================== */
:root {
  --font-primary: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  --font-secondary: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
  --font-size-display: clamp(1.69rem, 2.95vw + 1.1rem, 3.75rem);
  --font-size-h1: clamp(1.5rem, 1.07vw + 1.29rem, 2.25rem);
  --font-size-h2: clamp(1.13rem, 1.07vw + 0.91rem, 1.88rem);
  --font-size-h3: clamp(0.88rem, 0.54vw + 0.77rem, 1.25rem);
  --font-size-subtitle: clamp(0.75rem, 0.36vw + 0.68rem, 1rem);
  --font-size-content: clamp(0.88rem, 0.18vw + 0.84rem, 1rem);
  --font-size-button: clamp(0.88rem, 0.36vw + 0.8rem, 1.13rem);
  --font-size-small: clamp(0.75rem, 0.18vw + 0.71rem, 0.88rem);
  --font-size-label: clamp(0.75rem, 0.18vw + 0.71rem, 0.88rem);
  --line-height-tight: 1;
  --line-height-content: 1.3125;
}

/* ==========================================================================
   DIMENSIONS / SETTINGS
   ========================================================================== */
:root {
  --spacing-2xs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --gutter: clamp(1rem, 15.48vw + -6.43rem, 7.5rem);
  --radius-sm: 12px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 999px;
}

/* ==========================================================================
   EFFECTS / SETTINGS
   Effets Figma convertis en CSS.
   L'effet « GLASS » de Figma est approximé par backdrop-filter: blur().
   ========================================================================== */
:root {
  --shadow-ui: 0 4px 4px 0 rgba(0, 0, 0, 0.15), inset 0 8px 15px 10px rgba(255, 255, 255, 0.3);
  --blur-ui: blur(3px);
  --shadow-btn: 0 2px 2px 0 rgba(0, 0, 0, 0.15), inset 2px 1px 6px 0 rgba(255, 255, 255, 0.25),
      inset 1px 1px 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 5px -2px rgba(0, 0, 0, 0.5),
      inset 0 -2px 2px -2px rgba(255, 255, 255, 0.5);
  --blur-btn: blur(1px);
  --shadow-icon: 0 2px 2px 0 rgba(0, 0, 0, 0.15), inset 2px 1px 6px 0 rgba(255, 255, 255, 0.25),
      inset 1px 1px 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 2px -2px rgba(255, 255, 255, 0.5);
  --blur-icon: blur(1px);
  --shadow-app: 0 4px 4px 0 rgba(0, 0, 0, 0.2), inset 0 4px 5px 0 rgba(255, 255, 255, 0.25);
  --blur-app: blur(5px);
  --shadow-image: inset 0 -6px 6px 0 rgba(0, 0, 0, 0.25), inset 0 -3px 2px 0 rgba(255, 255, 255, 0.15),
      inset 0 2px 4px 0 rgba(255, 255, 255, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 42px 107px 0 rgba(255, 141, 245, 0.34), 0 24.721px 32.257px 0 rgba(255, 141, 245, 0.18),
      0 10.268px 13.398px 0 rgba(255, 141, 245, 0.22), 0 3.714px 4.846px 0 rgba(255, 141, 245, 0.44),
      inset 0 1px 18px 0 #d7e6ff, inset 0 1px 4px 0 #d7e6ff;
  --shadow-drop-sm: 0 4px 2px rgba(0, 0, 0, 0.15);
}

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* ==========================================================================
   RESET / GENERIC
   ========================================================================== */
html {
  box-sizing: border-box;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
figure {
  margin: 0;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* ==========================================================================
   NON SÉLECTIONNABLE / GENERIC
   Empêche la sélection (surlignage bleu) et le glisser-déposer des éléments
   qui ne sont pas du texte à lire : images, icônes, vidéos, curseur, vaisseau,
   boutons et titres. Les paragraphes et les champs du formulaire restent
   sélectionnables.
   ========================================================================== */
img,
picture,
svg,
video,
canvas {
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.cursor,
.cursor-trail,
.about__ship {
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
}

button,
[role=button],
.btn,
.badge,
.icon-btn,
.app-btn,
.nav-btn,
.tabs__btn {
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.display,
.subtitle,
.page-title,
.section-title {
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
}

/* ==========================================================================
   SCALE / GENERIC
   La maquette Figma est faite pour un écran de 1440px.
   Sur les grands écrans, toute la page est agrandie (zoom) pour garder
   les proportions de Figma : à 1920px, c'est la maquette ×1,33.
   --zoom sert aussi à corriger les hauteurs en vh (voir body et page Projets).
   ========================================================================== */
:root {
  --zoom: 1;
}

@media (min-width: 1600px) {
  :root {
    --zoom: 1.111;
  }
}
@media (min-width: 1760px) {
  :root {
    --zoom: 1.222;
  }
}
@media (min-width: 1920px) {
  :root {
    --zoom: 1.333;
  }
}
@media (min-width: 2240px) {
  :root {
    --zoom: 1.556;
  }
}
@media (min-width: 2560px) {
  :root {
    --zoom: 1.778;
  }
}
html {
  zoom: var(--zoom);
}

/* ==========================================================================
   ANIMATIONS / GENERIC
   Animations partagées par plusieurs composants.
   ========================================================================== */
@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes border-rotate {
  from {
    --border-angle: 0deg;
  }
  to {
    --border-angle: 360deg;
  }
}
/* Secousse au clic des boutons à icône (classe ajoutée par utils/ClickShake.js)
   Seule l'icône bouge (le bouton reste en place), avec le même petit
   dandinement que les tuiles à l'entrée de l'accueil.
   On anime rotate / scale (pas transform) pour garder les effets de survol.
   ========================================================================== */
.is-shaking .icon {
  animation: icon-wiggle 0.6s ease-in-out;
}

@keyframes icon-wiggle {
  25% {
    rotate: -12deg;
    scale: 1.15;
  }
  50% {
    rotate: 10deg;
  }
  75% {
    rotate: -5deg;
  }
}
/* Animations d'entrée des pages (accueil, projets…)
   On anime translate / scale / rotate (pas transform) pour garder les effets de survol.
   ========================================================================== */
@keyframes intro-drop {
  from {
    opacity: 0;
    translate: 0 -20px;
  }
}
@keyframes intro-photo {
  from {
    opacity: 0;
    scale: 0.3;
    rotate: -25deg;
  }
  60% {
    opacity: 1;
  }
}
@keyframes intro-letter {
  from {
    opacity: 0;
    translate: 0 -0.8em;
    rotate: -20deg;
  }
}
@keyframes intro-wave {
  50% {
    translate: 0 -0.18em;
    rotate: -6deg;
  }
}
@keyframes intro-blur-in {
  from {
    opacity: 0;
    translate: -24px 0;
    filter: blur(8px);
  }
}
@keyframes intro-rise {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}
@keyframes intro-pop {
  from {
    opacity: 0;
    scale: 0;
  }
}
@keyframes intro-line {
  from {
    transform: scaleX(0);
  }
}
@keyframes intro-jump {
  from {
    opacity: 0;
    translate: 0 60px;
    scale: 0.8;
  }
}
@keyframes intro-wiggle {
  25% {
    rotate: -12deg;
    scale: 1.15;
  }
  50% {
    rotate: 10deg;
  }
  75% {
    rotate: -5deg;
  }
}
@keyframes intro-from-left {
  from {
    opacity: 0;
    translate: -20px 0;
  }
}
@keyframes intro-from-right {
  from {
    opacity: 0;
    translate: 40px 0;
  }
}
@keyframes intro-slide-left {
  from {
    opacity: 0;
    translate: -80px 0;
    rotate: -3deg;
  }
}
@keyframes intro-cutout {
  from {
    opacity: 0;
    translate: 0 50px;
    scale: 0.6;
  }
  60% {
    opacity: 1;
  }
}
@keyframes intro-card-rise {
  from {
    opacity: 0;
    translate: 0 120px;
  }
}
/* Titre découpé en lettres (SplitLetters.js)
   ========================================================================== */
.split__word {
  display: inline-block;
  white-space: nowrap;
}

.split__letter {
  display: inline-block;
}

@keyframes intro-curtain {
  from {
    opacity: 0;
    translate: 0 0.6em;
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 -20% 0);
  }
}
@keyframes intro-ken-burns {
  from {
    opacity: 0;
    scale: 1.18;
  }
}
@keyframes intro-tilt-pop {
  from {
    opacity: 0;
    scale: 0.6;
    rotate: -8deg;
  }
}
@keyframes intro-wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes intro-grow {
  from {
    scale: 0 1;
  }
}
@keyframes intro-zoom-blur {
  from {
    opacity: 0;
    scale: 0.88;
    filter: blur(12px);
  }
}
@keyframes intro-from-left-far {
  from {
    opacity: 0;
    translate: -60px 0;
  }
}
@keyframes intro-from-right-far {
  from {
    opacity: 0;
    translate: 60px 0;
  }
}
@keyframes intro-alert {
  0% {
    opacity: 0;
    translate: 0 20px;
  }
  45% {
    opacity: 1;
    translate: 0 0;
  }
  55% {
    rotate: -2deg;
  }
  65% {
    rotate: 2deg;
  }
  75% {
    rotate: -1deg;
  }
  85% {
    rotate: 0deg;
  }
}
@keyframes play-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 0 28px rgba(255, 255, 255, 0);
  }
}
@keyframes intro-swap {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}
/* ==========================================================================
   BODY / ELEMENT
   Le body permet d'initialiser les propriétés générales de la page.
   Les éléments de la page vont hérités des propriétés inscrite dans body
   ========================================================================== */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: var(--font-size-content);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-content);
  min-height: calc(100vh / var(--zoom));
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../assets/images/img-fond-clair-mobile.webp") center top/cover no-repeat;
  pointer-events: none;
}
@media (orientation: landscape) {
  body::before {
    background-image: url("../assets/images/img-fond-clair.webp");
  }
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.body--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}
.body--dark::before {
  background-image: url("../assets/images/img-fond-sombre-mobile.webp");
}
@media (orientation: landscape) {
  .body--dark::before {
    background-image: url("../assets/images/img-fond-sombre.webp");
  }
}

/* ==========================================================================
   TYPOGRAPHY / ELEMENT
   Hiérarchie Figma : Titre (display), H1, H2, H3, Sous titre, P.
   ========================================================================== */
h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-family: var(--font-secondary);
  line-height: var(--line-height-tight);
  margin: 0;
}

h1,
.h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
}

h2,
.h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-medium);
}

h3,
.h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-extrabold);
}

.display {
  font-family: var(--font-secondary);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

.subtitle {
  font-family: var(--font-primary);
  font-size: var(--font-size-subtitle);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

strong,
b {
  font-weight: var(--font-weight-black);
}

.text-highlight {
  color: var(--color-primary);
}

em {
  font-style: italic;
}

/* ==========================================================================
   LINKS / ELEMENTS
   Style de base de tous les liens et bouton du site
   ========================================================================== */
a {
  color: inherit;
  text-decoration: none;
}
@media (hover: hover){
a:hover {
  color: var(--color-primary);
}
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.text-link {
  color: var(--color-secondary);
  text-decoration: underline;
}
@media (hover: hover){
.text-link:hover {
  color: var(--color-primary);
}
}

/* ==========================================================================
   WRAPPER / ELEMENT
   ========================================================================== */
.wrapper {
  max-width: 1440px;
  width: calc(100% - var(--gutter) * 2);
  margin: 0 auto;
}

/* ==========================================================================
   HELPERS / ELEMENTS
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   GRID / OBJECT
   Grille de base du projet. Aucune grille externe n'est utilisée.
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}
@media (min-width: 768px) {
  .grid--2 {
    gap: var(--spacing-lg);
  }
}

.grid--3 {
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   icons / component
   ========================================================================== */
.icon {
  fill: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: 1em;
  vertical-align: middle;
  width: 1em;
  stroke: transparent;
}

.icon--stroke {
  fill: transparent;
  stroke: currentColor;
}

.icon--xs {
  height: 0.75em;
  width: 0.75em;
}

.icon--sm {
  height: 0.8em;
  width: 0.8em;
}

.icon--md {
  height: 1.25em;
  width: 1.25em;
}

.icon--lg {
  height: 1.75em;
  width: 1.75em;
}

.icon--xl {
  height: 6em;
  width: 6em;
}

/* Tailles du projet (fluides : maquette mobile 320px → desktop 1440px)
   ========================================================================== */
.icon--status {
  height: 24px;
  width: 24px;
}

.icon--clock {
  height: clamp(1.5rem, 0.54vw + 1.39rem, 1.88rem);
  width: clamp(1.5rem, 0.54vw + 1.39rem, 1.88rem);
  margin: -2px -6px -6px -2px;
}

.icon--btn {
  height: clamp(1rem, 0.36vw + 0.93rem, 1.25rem);
  width: clamp(1rem, 0.36vw + 0.93rem, 1.25rem);
}

.icon--social {
  height: clamp(1.5rem, 0.89vw + 1.32rem, 2.13rem);
  width: clamp(1.5rem, 0.89vw + 1.32rem, 2.13rem);
}

.icon--social-sm {
  height: clamp(1.25rem, 0.8vw + 1.09rem, 1.81rem);
  width: clamp(1.25rem, 0.8vw + 1.09rem, 1.81rem);
}

.icon--tile {
  height: clamp(1.81rem, 3.13vw + 1.19rem, 4rem);
  width: clamp(1.81rem, 3.13vw + 1.19rem, 4rem);
}

.icon--nav {
  height: 100%;
  width: 100%;
}

.icon--tool {
  height: clamp(2.25rem, 1.07vw + 2.04rem, 3rem);
  width: clamp(2.25rem, 1.07vw + 2.04rem, 3rem);
}

.icon--cat-3d {
  height: clamp(2.5rem, 1.07vw + 2.29rem, 3.25rem);
  width: clamp(4.75rem, 2.05vw + 4.34rem, 6.19rem);
}

.icon--cat-2d {
  height: clamp(3.06rem, 1.34vw + 2.79rem, 4rem);
  width: clamp(3.56rem, 1.52vw + 3.26rem, 4.63rem);
}

.icon--cat-photo {
  height: clamp(3.19rem, 1.43vw + 2.9rem, 4.19rem);
  width: clamp(4.25rem, 1.88vw + 3.88rem, 5.56rem);
}

.icon--label {
  height: clamp(1rem, 0.36vw + 0.93rem, 1.25rem);
  width: clamp(1rem, 0.36vw + 0.93rem, 1.25rem);
}

.icon--contact {
  height: clamp(2.5rem, 1.25vw + 2.25rem, 3.38rem);
  width: clamp(2.5rem, 1.25vw + 2.25rem, 3.38rem);
}

.icon--software {
  height: clamp(2.75rem, 1.7vw + 2.41rem, 3.94rem);
  width: clamp(2.75rem, 1.7vw + 2.41rem, 3.94rem);
}

.icon--feature {
  height: clamp(3.5rem, 3.93vw + 2.71rem, 6.25rem);
  width: clamp(3.5rem, 3.93vw + 2.71rem, 6.25rem);
}

.icon--play {
  height: clamp(3.5rem, 3.93vw + 2.71rem, 6.25rem);
  width: clamp(3.5rem, 3.93vw + 2.71rem, 6.25rem);
}

.icon--blanc {
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   BOUTONS / COMPONENTS
   Bouton principal violet et mention (badge).
   ========================================================================== */
/* ==========================================================================
   BTN / COMPONENT
   Bouton principal violet. Figma : btn (effet « Btn »)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  background-color: var(--color-primary-75);
  box-shadow: var(--shadow-btn);
  backdrop-filter: var(--blur-btn);
  color: var(--color-text-inverse);
  font-family: var(--font-primary);
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  text-align: center;
  transition: background-color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (hover: hover){
.btn:hover {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}
}
@media (min-width: 1024px) {
  .btn {
    padding: 20px var(--spacing-xl);
  }
}

/* ==========================================================================
   BADGE / COMPONENT
   Mention (ex. « Music non libre de droit utiliser »).
   ========================================================================== */
.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2xs);
  padding: clamp(1rem, 0.71vw + 0.86rem, 1.5rem) clamp(1.25rem, 1.07vw + 1.04rem, 2rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(224, 0, 0, 0.1) 97.768%), linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75));
  box-shadow: var(--shadow-ui);
  color: rgba(0, 0, 0, 0.6);
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  text-align: center;
}

/* ==========================================================================
   ICON BTN / COMPONENT
   Petit bouton carré vitré avec une icône (ex. retour d'une fiche projet).
   Figma : Frame 165 (humbleicons:arrow-go-back)
   ========================================================================== */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15), inset 0 8px 15px 10px rgba(255, 255, 255, 0.3);
  backdrop-filter: var(--blur-ui);
  color: var(--color-text);
  transition: background-color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.icon-btn .icon {
  width: 24px;
  height: 24px;
}
@media (hover: hover){
.icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--color-text);
}
}

/* ==========================================================================
   APP BTN / COMPONENT
   Icône d'application cliquable (réseaux dans la carte Contact des fiches projet).
   ========================================================================== */
.app-btn {
  display: flex;
  width: clamp(3rem, 1.43vw + 2.71rem, 4rem);
  height: clamp(3rem, 1.43vw + 2.71rem, 4rem);
  padding: clamp(0.5rem, 0.36vw + 0.43rem, 0.75rem);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  box-shadow: var(--shadow-icon);
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.app-btn .icon {
  width: 100%;
  height: 100%;
}
@media (hover: hover){
.app-btn:hover {
  transform: translateY(-2px);
}
}

/* ==========================================================================
   NAVIGATION / COMPONENTS
   Boutons ronds de la navigation principale (Accueil, Projets, À propos, Contact).
   ========================================================================== */
/* ==========================================================================
   MAIN NAV / COMPONENT
   Boutons ronds Accueil / Projets / À Propos / Contact. Figma : Barre home
   ========================================================================== */
.main-nav__list {
  display: flex;
  gap: clamp(0.75rem, 2.05vw + 0.34rem, 2.19rem);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.31rem, -0.27vw + 0.37rem, 0.13rem);
  font-size: clamp(0.75rem, 0.54vw + 0.64rem, 1.13rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-shadow: 0 0 2px var(--nav-halo, rgba(255, 255, 255, 0.95)), 0 0 4px var(--nav-halo, rgba(255, 255, 255, 0.95)), 0 0 6px var(--nav-halo, rgba(255, 255, 255, 0.95)), 0 0 12px var(--nav-halo, rgba(255, 255, 255, 0.95));
}
@media (hover: hover){
.nav-btn:hover {
  color: inherit;
}
}
@media (hover: hover){
.nav-btn:hover .nav-btn__circle {
  transform: scale(1.1);
}
}

.nav-btn__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.69rem, 1.34vw + 2.42rem, 3.63rem);
  height: clamp(2.69rem, 1.34vw + 2.42rem, 3.63rem);
  padding: clamp(0.44rem, 0.45vw + 0.35rem, 0.75rem) clamp(0.5rem, 0.18vw + 0.46rem, 0.63rem);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  box-shadow: var(--shadow-drop-sm), inset 0 8px 15px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}
.nav-btn__circle::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 3px;
  border-radius: inherit;
  background: conic-gradient(from var(--border-angle), var(--color-primary), var(--color-secondary), var(--color-primary));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.nav-btn:not(.is-active):focus-visible .nav-btn__circle::before {
  opacity: 1;
  animation: border-rotate 3s linear infinite;
}

@media (hover: hover){

.nav-btn:not(.is-active):hover .nav-btn__circle::before {
  opacity: 1;
  animation: border-rotate 3s linear infinite;
}
}
@media (prefers-reduced-motion: reduce) {
  .nav-btn:not(.is-active):focus-visible .nav-btn__circle::before {
    animation: none;
  }
  @media (hover: hover){
  .nav-btn:not(.is-active):hover .nav-btn__circle::before {
    animation: none;
  }
  }
}

.nav-btn.is-active .nav-btn__circle {
  background: url("../assets/images/img-texture-grain.webp") 0 0/116px 116px repeat, var(--gradient-brand);
  background-blend-mode: plus-lighter, normal;
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   TABS / COMPONENT
   Onglets (Tabs.js). Figma : Contexte / Rôle d'une fiche projet.
   Mobile : côte à côte. Desktop : empilés à gauche de la carte.
   ========================================================================== */
.tabs {
  display: flex;
  gap: var(--spacing-sm);
}
@media (min-width: 1024px) {
  .tabs {
    flex-direction: column;
    gap: var(--spacing-xl);
  }
}

.tabs__btn {
  flex: 1;
  padding: 11px var(--spacing-md);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15), inset 0 8px 15px 0 rgba(255, 255, 255, 0.3);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  text-align: left;
  transition: border-color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}
.tabs__btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--border-angle), var(--color-primary), var(--color-secondary), var(--color-primary));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
@media (hover: hover){
.tabs__btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
}
}
.tabs__btn[aria-selected=true]::before {
  opacity: 1;
  animation: border-rotate 3s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .tabs__btn[aria-selected=true]::before {
    animation: none;
  }
}

/* ==========================================================================
   CARTES / COMPONENTS
   Cartes réutilisées sur plusieurs pages : tuile (Hub, Contact), carte blanche
   (À propos, Contact, fiches projet), cadre d'image et vignette vitrée.
   ========================================================================== */
/* ==========================================================================
   TILE / COMPONENT
   Tuile d'accès rapide. Figma : Frame 115 (Default / Variant2)
   Default = verre dépoli, Variant2 (dégradé) = survol / focus.
   ========================================================================== */
.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: clamp(7.5rem, 2.68vw + 6.96rem, 9.38rem);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  box-shadow: var(--shadow-ui);
  backdrop-filter: var(--blur-ui);
  color: var(--color-text);
  font-family: var(--font-secondary);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  transition: color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tile::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.45s ease;
}
@media (min-width: 1024px) {
  .tile {
    border-radius: var(--radius-xl);
  }
}

.tile:focus-visible {
  border-color: var(--color-white);
  box-shadow: var(--shadow-glow);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
}

@media (hover: hover){

.tile:hover {
  border-color: var(--color-white);
  box-shadow: var(--shadow-glow);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
}
}
.tile:focus-visible::after {
  opacity: 1;
}
@media (hover: hover){
.tile:hover::after {
  opacity: 1;
}
}

/* ==========================================================================
   INFO CARD / COMPONENT
   Carte blanche de la page À propos (Info, Soft Skills, Recherche de stage...).
   Figma : Moi / Competance / Galerie passion
   ========================================================================== */
.info-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: clamp(1rem, 0.71vw + 0.86rem, 1.5rem) clamp(1.13rem, 1.25vw + 0.88rem, 2rem);
  border-radius: var(--radius-xl);
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-ui);
  backdrop-filter: var(--blur-ui);
  color: var(--color-text);
}

.info-card--gallery {
  gap: var(--spacing-lg);
}

.info-card--light {
  background-color: rgba(255, 255, 255, 0.3);
}

.info-card--alert {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(224, 0, 0, 0.1) 97.768%), linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75));
}
.info-card--alert .info-card__label {
  color: rgba(255, 0, 0, 0.3);
}
.info-card--alert .info-card__label .icon {
  color: #f00;
}

.info-card--orange {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(224, 113, 0, 0.1) 97.768%), linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75));
}

.info-card--blue {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 79, 236, 0.1) 97.768%), linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75));
}

.info-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.info-card__label {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xs);
  margin: 0;
  color: rgba(0, 0, 0, 0.3);
  font-family: var(--font-primary);
  font-size: clamp(0.69rem, 0.63vw + 0.56rem, 1.13rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}
.info-card__label .icon {
  color: var(--color-black);
}

.info-card__toggle {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  opacity: 0.3;
  transition: opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.info-card__toggle::before, .info-card__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  right: 3px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.info-card__toggle::after {
  transform: rotate(90deg) scaleX(0);
}
.info-card__toggle[aria-expanded=false]::after {
  transform: rotate(90deg) scaleX(1);
}
@media (hover: hover){
.info-card__toggle:hover {
  opacity: 0.6;
}
}

.info-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.info-card__identity {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--color-line);
}
@media (max-width: 1023px) {
  .info-card__identity {
    display: none;
  }
}

.info-card__btn {
  width: 100%;
}

.info-card__list {
  font-size: clamp(0.75rem, 0.36vw + 0.68rem, 1rem);
  line-height: clamp(1rem, 0.45vw + 0.91rem, 1.31rem);
}

.info-card__bullets {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding-left: 1.2em;
  font-size: clamp(0.75rem, 0.36vw + 0.68rem, 1rem);
  list-style: disc;
}
.info-card__bullets strong {
  font-weight: var(--font-weight-black);
}

.info-card__body[hidden] {
  display: none;
}

/* ==========================================================================
   MEDIA FRAME / COMPONENT
   Image arrondie avec reflets (galerie À propos, images des fiches projet).
   Figma : Image_effect
   ========================================================================== */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
}
.media-frame img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 2px 4px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 2px 0 rgba(255, 255, 255, 0.15), inset 0 -6px 6px 0 rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* ==========================================================================
   THUMB / COMPONENT
   Vignette vitrée : image dans un cadre de verre.
   Figma : Catégrie_Vide (autres projets) et vignette de l'en-tête d'un projet
   ========================================================================== */
.thumb {
  --thumb-pad: clamp(0.5rem, 0.63vw + 0.38rem, 0.94rem);
  position: relative;
  display: flex;
  aspect-ratio: 160/149;
  min-height: 0;
  padding: var(--thumb-pad);
  border-radius: clamp(1.13rem, 1.07vw + 0.91rem, 1.88rem);
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-app);
  backdrop-filter: var(--blur-app);
}
.thumb img {
  position: absolute;
  top: var(--thumb-pad);
  left: var(--thumb-pad);
  width: calc(100% - 2 * var(--thumb-pad));
  height: calc(100% - 2 * var(--thumb-pad));
  border-radius: clamp(0.38rem, 0.36vw + 0.3rem, 0.63rem);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15), inset 0 1px 2px 0 rgba(255, 255, 255, 0.35);
  -o-object-fit: cover;
     object-fit: cover;
}

/* ==========================================================================
   TITRE DE PAGE / COMPONENTS
   Titre + sous-titre en haut des pages (Projets, À propos, Contact).
   ========================================================================== */
/* ==========================================================================
   PAGE TITLE / COMPONENT
   Titre de page + sous-titre (ex. « Projets / Découvrez les projets »).
   L'opacité garde le même rendu sur fond clair (texte noir) et sombre (texte blanc).
   ========================================================================== */
.page-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-title__title {
  opacity: 0.6;
}

.page-title__subtitle {
  font-size: var(--font-size-subtitle);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  opacity: 0.35;
}

/* ==========================================================================
   SECTION TITLE / COMPONENT
   Titre de section centré entre deux traits (« Processus », « Produit final »).
   ========================================================================== */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding-inline: clamp(0rem, 18.3vw + -3.66rem, 12.81rem);
  text-align: center;
}
.section-title::before, .section-title::after {
  content: "";
  flex: 1;
  min-width: var(--spacing-lg);
  height: 2px;
  background-color: currentColor;
}

/* ==========================================================================
   CARROUSEL / COMPONENT
   Carrousel d'images (Carousel.js) avec points de navigation.
   Figma : Étape 5 d'une fiche projet (Frame 60 + Navigation)
   ========================================================================== */
.carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.carousel__viewport {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  aspect-ratio: 665/382;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
}
.carousel__viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 2px 4px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 2px 0 rgba(255, 255, 255, 0.15), inset 0 -6px 6px 0 rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.carousel__viewport.is-draggable {
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.carousel__viewport.is-draggable img {
  -webkit-user-drag: none;
}

.carousel__viewport.is-dragging {
  cursor: grabbing;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.is-dragging .carousel__track {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .carousel__track {
    transition: none;
  }
}

.carousel__slide {
  flex: 0 0 100%;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.carousel__dots {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.carousel__dot {
  display: block;
  width: 16px;
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(rgba(247, 23, 249, 0.1), rgba(247, 23, 249, 0.1)), linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15));
  box-shadow: 0 2px 4px -1px rgba(247, 23, 249, 0.05), inset 0 -4px 2px -2px rgba(0, 0, 0, 0.08), inset 2px 2px 1.5px -2px rgba(255, 255, 255, 0.75), inset 0 3px 1.5px -1px rgba(255, 255, 255, 0.35);
  transition: width 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel__dot.is-active {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(247, 23, 249, 0.5);
  box-shadow: 0 2px 2px -1px rgba(247, 23, 249, 0.2), inset 0 -4px 2px -2px rgba(0, 0, 0, 0.08), inset 2px 2px 1.5px -2px rgba(255, 255, 255, 0.75), inset 0 3px 1.5px -1px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   FOND ANIMÉ / COMPONENT
   Fond clair construit en code à partir de Figma (« Fond claire D » 1440 × 720
   et « Fond claire mobile » 320 × 568) : dégradé rose → lavande, formes de verre
   qui flottent doucement, voile blanc vers le bas.
   Remplace l'image img-fond-clair.webp sur les pages qui ont {% set bgScene = true %}.

   Calques (même ordre que Figma) :
   1. dégradé (.bg-scene)
   2. bulles et carrés de verre
   3. voile blanc vers le bas (Figma : Rectangle 61)
   4. deux petites bulles par-dessus le voile

   Rendu : BgScene.js dessine tout en WebGL (verre liquide calculé par la carte graphique)
   en lisant les variables ci-dessous. Sans WebGL, les formes HTML s'affichent en verre dépoli.
   ========================================================================== */
.has-bg-scene::before {
  display: none;
}

.bg-scene--clair {
  --scene-top: #ffeaff;
  --scene-bottom: #d0c7ff;
  --scene-fill: #ffffff;
  --scene-fill-opacity: 0.16;
  --scene-border: #ffffff;
  --scene-border-opacity: 1;
  --scene-fade: #ffffff;
  --scene-fade-opacity: 0.85;
}

.bg-scene--sombre {
  --scene-top: #663e66;
  --scene-bottom: #0b0044;
  --scene-fill: #000000;
  --scene-fill-opacity: 0.2;
  --scene-border: #ffffff;
  --scene-border-opacity: 0.35;
  --scene-fade: #000000;
  --scene-fade-opacity: 0.6;
}

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  container-type: size;
  background: linear-gradient(180deg, var(--scene-top) 0%, var(--scene-bottom) 100%);
  pointer-events: none;
}

.bg-scene__stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: max(100cqw, 200cqh);
  aspect-ratio: 1440/720;
  container-type: inline-size;
  transform: translateX(-50%);
}
@media (orientation: portrait) {
  .bg-scene__stage {
    width: max(100cqw, 56.338cqh);
    aspect-ratio: 320/568;
  }
}

.bg-scene__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--scene-fade) 100%);
  opacity: var(--scene-fade-opacity);
}

/* Formes de verre
   ========================================================================== */
.bg-shape {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  aspect-ratio: 1;
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border: 0.278cqw solid color-mix(in srgb, var(--scene-border) calc(var(--scene-border-opacity) * 100%), transparent);
  border-radius: var(--radius);
  background-color: color-mix(in srgb, var(--scene-fill) calc(var(--scene-fill-opacity) * 100%), transparent);
  box-shadow: inset 0 8px 15px 10px rgba(255, 255, 255, 0.3);
  rotate: var(--rot);
  animation: bg-float var(--float-duration) ease-in-out var(--float-delay) infinite;
  will-change: translate, rotate;
}
@media (orientation: portrait) {
  .bg-shape {
    border-width: 0.78cqw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bg-shape {
    animation: none;
  }
}

@keyframes bg-float {
  0%, 100% {
    translate: 0 0;
    rotate: var(--rot);
  }
  33% {
    translate: var(--float-x1) var(--float-y1);
    rotate: calc(var(--rot) + var(--float-rot));
  }
  66% {
    translate: var(--float-x2) var(--float-y2);
    rotate: calc(var(--rot) - var(--float-rot) / 2);
  }
}
.bg-shape {
  backdrop-filter: blur(6px) saturate(1.3);
  -webkit-backdrop-filter: blur(6px) saturate(1.3);
}

.bg-scene__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-scene.is-webgl .bg-scene__stage {
  display: none;
}

/* Position, taille et flottement de chaque forme (valeurs Figma)
   ========================================================================== */
.bg-shape--bulle-moyenne {
  --x: 13.333%;
  --y: 98.194%;
  --size: 28.014cqw;
  --rot: -15deg;
  --radius: 50%;
  --float-x1: 6%;
  --float-y1: -5%;
  --float-x2: -3%;
  --float-y2: 4%;
  --float-rot: 6deg;
  --float-duration: 26s;
  --float-delay: -4s;
}
@media (orientation: portrait) {
  .bg-shape--bulle-moyenne {
    --x: 11.812%;
    --y: 96.567%;
    --size: 57.156cqw;
    --radius: 50%;
  }
}

.bg-shape--bulle-geante {
  --x: -2.951%;
  --y: 66.319%;
  --size: 46.875cqw;
  --rot: -15deg;
  --radius: 50%;
  --float-x1: 4%;
  --float-y1: -3%;
  --float-x2: -2%;
  --float-y2: 3%;
  --float-rot: 4deg;
  --float-duration: 32s;
  --float-delay: -12s;
}
@media (orientation: portrait) {
  .bg-shape--bulle-geante {
    --x: -21.438%;
    --y: 78.239%;
    --size: 95.656cqw;
    --radius: 50%;
  }
}

.bg-shape--bulle-basse {
  --x: 29.424%;
  --y: 110.514%;
  --size: 22.868cqw;
  --rot: -15deg;
  --radius: 50%;
  --float-x1: -5%;
  --float-y1: -6%;
  --float-x2: 4%;
  --float-y2: -3%;
  --float-rot: 8deg;
  --float-duration: 24s;
  --float-delay: -7s;
}
@media (orientation: portrait) {
  .bg-shape--bulle-basse {
    --x: 44.625%;
    --y: 103.644%;
    --size: 46.656cqw;
    --radius: 50%;
  }
}

.bg-shape--carre-grand {
  --x: 79.542%;
  --y: -12.583%;
  --size: 28.958cqw;
  --rot: -15deg;
  --radius: 23.981%;
  --float-x1: -4%;
  --float-y1: 5%;
  --float-x2: 3%;
  --float-y2: 2%;
  --float-rot: -7deg;
  --float-duration: 30s;
  --float-delay: -3s;
}
@media (orientation: portrait) {
  .bg-shape--carre-grand {
    --x: 70.031%;
    --y: -2.095%;
    --size: 57.188cqw;
    --radius: 13.661%;
  }
}

.bg-shape--carre-moyen {
  --x: 98.417%;
  --y: 3.639%;
  --size: 24.972cqw;
  --rot: -15deg;
  --radius: 27.809%;
  --float-x1: -5%;
  --float-y1: 4%;
  --float-x2: -2%;
  --float-y2: -4%;
  --float-rot: 8deg;
  --float-duration: 27s;
  --float-delay: -15s;
}
@media (orientation: portrait) {
  .bg-shape--carre-moyen {
    --x: 107.312%;
    --y: 6.937%;
    --size: 49.312cqw;
    --radius: 15.843%;
  }
}

.bg-shape--losange {
  --x: 85.264%;
  --y: 9.833%;
  --size: 14.326cqw;
  --rot: -135deg;
  --radius: 14.542%;
  --float-x1: 7%;
  --float-y1: 6%;
  --float-x2: -4%;
  --float-y2: 9%;
  --float-rot: -12deg;
  --float-duration: 22s;
  --float-delay: -9s;
}
@media (orientation: portrait) {
  .bg-shape--losange {
    --x: 81.344%;
    --y: 10.37%;
    --size: 28.281cqw;
    --radius: 16.575%;
  }
}

.bg-shape--bulle-petite {
  --x: 31.882%;
  --y: 70.292%;
  --size: 9.993cqw;
  --rot: -15deg;
  --radius: 50%;
  --float-x1: 14%;
  --float-y1: -12%;
  --float-x2: -8%;
  --float-y2: 10%;
  --float-rot: 10deg;
  --float-duration: 18s;
  --float-delay: -5s;
}
@media (orientation: portrait) {
  .bg-shape--bulle-petite {
    --x: 49.656%;
    --y: 80.528%;
    --size: 20.375cqw;
    --radius: 50%;
  }
}

.bg-shape--bulle-mini {
  --x: 40.035%;
  --y: 98.125%;
  --size: 9.472cqw;
  --rot: -15deg;
  --radius: 50%;
  --float-x1: -12%;
  --float-y1: -14%;
  --float-x2: 10%;
  --float-y2: -8%;
  --float-rot: -10deg;
  --float-duration: 20s;
  --float-delay: -11s;
}
@media (orientation: portrait) {
  .bg-shape--bulle-mini {
    --x: 66.281%;
    --y: 96.532%;
    --size: 19.344cqw;
    --radius: 50%;
  }
}

/* ==========================================================================
   GLASS / COMPONENT
   Effet « liquid glass » de GlassSurface.js (adapté de React Bits) :
   ce qui est derrière l'élément est déformé sur les bords, avec des reflets irisés.
   À ajouter sur un élément : data-component="GlassSurface".
   La forme, la couleur et les ombres de l'élément restent dans son propre style.
   ========================================================================== */
.glass-surface--svg {
  backdrop-filter: var(--filter-id) saturate(var(--glass-saturation, 1.5));
}

.glass-surface--fallback {
  backdrop-filter: blur(10px) saturate(1.6) brightness(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.6) brightness(1.05);
}

/* ==========================================================================
   CURSEUR / COMPONENT
   Main personnalisée (CustomCursor.js) : remplace le curseur de la souris.
   ========================================================================== */
body {
  --spark-color: #411ef8;
}

.body--dark {
  --spark-color: #fff;
}

.has-custom-cursor,
.has-custom-cursor * {
  cursor: none !important;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  filter: drop-shadow(6px 3px 1px rgba(0, 0, 0, 0.15));
  pointer-events: none;
  transition: opacity 0.15s ease-out;
  will-change: transform;
}
.cursor.is-reading:not(.is-hidden) {
  opacity: 0.25;
  transition: opacity 0.25s ease-out;
}
.cursor.is-hidden {
  opacity: 0;
}

.cursor__hand {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  visibility: hidden;
  will-change: transform;
}
.cursor__hand.is-active {
  visibility: visible;
}

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ==========================================================================
   LIVE CURSORS / COMPONENT
   Multijoueur (LiveCursors.js) : mains des autres visiteurs + compteur en ligne.
   ========================================================================== */
.live-count.has-tooltip {
  --live-gap: var(--spacing-xs);
  --live-ease: cubic-bezier(0.65, 0, 0.35, 1);
  display: inline-grid;
  grid-template-columns: 1fr;
  padding: 4px 10px;
  border: 0;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: inherit;
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  white-space: nowrap;
  transition: grid-template-columns 0.45s var(--live-ease), padding 0.45s var(--live-ease), margin 0.45s var(--live-ease), opacity 0.3s ease 0.15s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s, background-color 0.2s ease;
}
@media (min-width: 1024px) {
  .live-count.has-tooltip {
    --live-gap: var(--spacing-md);
  }
}
.live-count.has-tooltip[hidden] {
  display: none;
}
.live-count.has-tooltip.is-idle {
  grid-template-columns: 0fr;
  margin-right: calc(-1 * var(--live-gap));
  padding-inline: 0;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s var(--live-ease), grid-template-columns 0.45s var(--live-ease) 0.12s, padding 0.45s var(--live-ease) 0.12s, margin 0.45s var(--live-ease) 0.12s;
}
@media (hover: hover){
.live-count.has-tooltip:hover {
  background: color-mix(in srgb, currentColor 20%, transparent);
}
}
.live-count.has-tooltip.is-searching .live-count__wii, .live-count.has-tooltip.is-result .live-count__wii {
  grid-template-columns: 1fr;
}
@media (prefers-reduced-motion: reduce) {
  .live-count.has-tooltip, .live-count.has-tooltip.is-idle {
    transition-duration: 0.01s;
    transition-delay: 0s;
  }
}

.live-count__inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.live-count__wii {
  display: inline-grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.live-count__leds {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding-block: 6px;
  margin-block: -6px;
  overflow: hidden;
}

.live-count__led {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: color-mix(in srgb, currentColor 25%, transparent);
  transition: background-color 0.2s ease;
}
.live-count__led:first-child {
  margin-left: 4px;
}
.is-searching .live-count__led {
  animation: live-scan 0.8s steps(1, end) infinite;
}
.is-searching .live-count__led:nth-child(2) {
  animation-delay: 0.2s;
}
.is-searching .live-count__led:nth-child(3) {
  animation-delay: 0.4s;
}
.is-searching .live-count__led:nth-child(4) {
  animation-delay: 0.6s;
}
.is-result .live-count__led {
  animation: live-vague 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.is-result .live-count__led:nth-child(2) {
  animation-delay: 0.09s;
  transition-delay: 0.09s;
}
.is-result .live-count__led:nth-child(3) {
  animation-delay: 0.18s;
  transition-delay: 0.18s;
}
.is-result .live-count__led:nth-child(4) {
  animation-delay: 0.27s;
  transition-delay: 0.27s;
}
.is-result .live-count__led.is-on {
  background: var(--led-color);
}

@keyframes live-scan {
  0% {
    background: currentColor;
  }
  25%, 100% {
    background: color-mix(in srgb, currentColor 25%, transparent);
  }
}
@keyframes live-vague {
  0%, 100% {
    translate: 0 0;
    scale: 1;
  }
  45% {
    translate: 0 -4px;
    scale: 1.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-searching .live-count__led {
    animation: none;
    background: color-mix(in srgb, currentColor 50%, transparent);
  }
  .is-result .live-count__led {
    animation: none;
  }
}
.live-count__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fb344;
  box-shadow: 0 0 0 0 rgba(47, 179, 68, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .live-count__dot {
    animation: live-pulse 2s ease-out infinite;
  }
}

@keyframes live-pulse {
  70% {
    box-shadow: 0 0 0 6px rgba(47, 179, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 179, 68, 0);
  }
}
.live-cursors {
  position: fixed;
  inset: 0;
  z-index: 9990;
  overflow: hidden;
  pointer-events: none;
}

.live-cursor {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  will-change: transform;
}
.live-cursor.is-away, .live-cursor.is-leaving {
  opacity: 0;
}

.live-cursor__hand {
  position: absolute;
  filter: drop-shadow(6px 3px 1px rgba(0, 0, 0, 0.15));
  max-width: none;
  height: auto;
  visibility: hidden;
}
.live-cursor__hand.is-active {
  visibility: visible;
}

.live-cursor__name {
  position: absolute;
  top: 30px;
  left: 14px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--live-color);
  color: #fff;
  font-family: var(--font-secondary);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#liveblocks-badge {
  display: none !important;
}

/* ==========================================================================
   ÉLASTIQUE / COMPONENT
   Poignées qu'on pince et qu'on tire (ElasticPull.js) : la rangée s'étire comme un
   élastique et revient à sa place. Poignées : barre des réseaux sociaux (accueil) et
   flèche Défis → Apprentissages (fiches projet).
   ========================================================================== */
[data-elastic-handle] {
  position: relative;
  touch-action: none;
}
[data-elastic-handle]::after {
  content: "";
  position: absolute;
  inset: -8px -12px;
}

.is-elastic {
  position: relative;
  z-index: 5;
}

.projet-learn__arrow {
  transition: scale 0.2s ease;
}
@media (hover: hover){
.projet-learn__arrow:hover {
  scale: 1.2;
}
}

/* ==========================================================================
   FANTO / COMPONENT
   Mini Fanto, le personnage de Loïc, en bas à droite (Fanto.js, _fanto.html).
   Ordinateur seulement.

   Fluidité : le personnage est fait de deux calques HTML (torse, tête) qui contiennent
   chacun un SVG fixe. On anime seulement les calques (transform : fait par la carte
   graphique, sans redessiner), jamais les formes à l'intérieur des SVG, et sans filtre
   d'ombre animé (ces deux choses faisaient ralentir tout le site).
   Repère du dessin : 250 × 250, cou vers (124, 150) = 49.6 % 60 %.
   ========================================================================== */
.fanto {
  position: fixed;
  right: 16px;
  bottom: calc(230px * -0.2);
  z-index: 900;
  width: 230px;
  aspect-ratio: 1;
  pointer-events: none;
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.6, -0.5, 0.75, 0.25) 0.6s;
}
.fanto[hidden] {
  display: none;
}
.fanto.is-visible {
  transform: translateY(0);
  transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.fanto.is-visible.is-peek:not(.is-out) {
  transform: translateY(32%);
  transition: transform 0.5s cubic-bezier(0.6, -0.5, 0.75, 0.25) 0.6s;
}
.fanto.is-visible.is-gone {
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.6, -0.5, 0.75, 0.25) 0.6s;
}
.fanto.is-entering {
  transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
}
@media not all and (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .fanto {
    display: none;
  }
}

.fanto__torse,
.fanto__tete {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.fanto__torse svg,
.fanto__tete svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.fanto__torse path,
.fanto__torse ellipse,
.fanto__tete path,
.fanto__tete ellipse {
  pointer-events: visiblePainted;
}

.fanto__torse {
  transform-origin: 49.6% 84.8%;
}

.fanto__tete {
  transform-origin: 49.6% 60%;
}

.fanto__calque {
  position: absolute;
  inset: 0;
}

.fanto__meche {
  will-change: transform;
}

/* Expressions : seule celle choisie (attributs sur .fanto) est visible
   ========================================================================== */
.fanto [data-yeux],
.fanto [data-bouche] {
  display: none;
}

.fanto[data-yeux=fermes] [data-yeux=fermes] {
  display: inline;
}

.fanto[data-yeux=ouverts] [data-yeux=ouverts] {
  display: inline;
}

.fanto[data-yeux=heureux] [data-yeux=heureux] {
  display: inline;
}

.fanto[data-yeux=curieux] [data-yeux=curieux] {
  display: inline;
}

.fanto[data-bouche=fermee] [data-bouche=fermee] {
  display: inline;
}

.fanto[data-bouche=sourire] [data-bouche=sourire] {
  display: inline;
}

.fanto[data-bouche=a] [data-bouche=a] {
  display: inline;
}

.fanto[data-bouche=o] [data-bouche=o] {
  display: inline;
}

/* Au repos : respiration du torse (la tête, son balancement et le regard : Fanto.js)
   ========================================================================== */
.fanto__yeux {
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .fanto__torse {
    animation: fanto-gonfle 3.6s ease-in-out infinite;
  }
}
@keyframes fanto-gonfle {
  0%, 100% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.02, 1.03);
  }
}
/* Interactions (Fanto.js)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .fanto.is-petted .fanto__tete {
    animation: fanto-content 0.9s ease-in-out infinite;
  }
}
@keyframes fanto-content {
  0%, 100% {
    transform: translateY(-1%) rotate(-7deg);
  }
  50% {
    transform: translateY(0) rotate(-3deg);
  }
}
.fanto__coeur {
  position: absolute;
  top: 12%;
  color: #f717f9;
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
  animation: fanto-coeur 1.2s ease-out forwards;
}

@keyframes fanto-coeur {
  0% {
    opacity: 0;
    transform: translate(0, 10px) scale(0.4);
  }
  20% {
    opacity: 1;
    transform: translate(0, 0) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--derive), -70px) scale(0.8);
  }
}
.fanto__bulle {
  position: absolute;
  right: 18%;
  bottom: 88%;
  width: -moz-max-content;
  width: max-content;
  max-width: 260px;
  margin: 0;
  padding: 10px 14px;
  border: 3px solid #000;
  border-radius: 18px;
  background: #fff;
  color: #000;
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.85);
  transform-origin: 75% 100%;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fanto__bulle::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: -11px;
  width: 16px;
  height: 16px;
  border-right: 3px solid #000;
  border-bottom: 3px solid #000;
  background: #fff;
  transform: rotate(45deg);
}
.fanto__bulle.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.fanto__bulle:empty {
  visibility: hidden;
}

.fanto__bulle-reste {
  visibility: hidden;
}

/* Recherche : bulle avec un champ (Fanto.js, scripts/utils/recherche.js)
   ========================================================================== */
.fanto__recherche {
  position: absolute;
  right: 12%;
  bottom: 88%;
  width: 290px;
  padding: 12px 14px 14px;
  border: 3px solid #000;
  border-radius: 20px;
  background: #fff;
  color: #000;
  font-family: var(--font-secondary);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.35);
  transform-origin: 75% 100%;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s linear 0.3s;
}
.fanto__recherche::after {
  content: "";
  position: absolute;
  right: 20%;
  bottom: -11px;
  width: 16px;
  height: 16px;
  border-right: 3px solid #000;
  border-bottom: 3px solid #000;
  background: #fff;
  transform: rotate(45deg);
}
.fanto__recherche[hidden] {
  display: none;
}
.fanto__recherche.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s;
}

.fanto__recherche-titre {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: var(--font-weight-bold);
}

.fanto__champ {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #000;
  border-radius: var(--radius-full);
  background: #f5f4fc;
  color: #000;
  font: inherit;
  font-size: 14px;
}
.fanto__champ:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.fanto__reponse {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}
.fanto__reponse:empty {
  display: none;
}

.fanto__resultats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.fanto__resultats:empty {
  display: none;
}
.fanto__resultats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f5f4fc;
  color: #000;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.fanto__resultats a:focus-visible, .fanto__resultats a.is-first {
  background: color-mix(in srgb, var(--color-primary) 14%, #fff);
}
@media (hover: hover){
.fanto__resultats a:hover {
  background: color-mix(in srgb, var(--color-primary) 14%, #fff);
}
}
.fanto__resultats a::after {
  content: "→";
  color: var(--color-primary);
}
.fanto__resultats a[target=_blank]::after {
  content: "↗";
}

.fanto__invite {
  position: absolute;
  right: 22%;
  bottom: 90%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 3px solid #000;
  border-radius: var(--radius-full);
  background: #fff;
  color: #000;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.6);
  transform-origin: 70% 100%;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s linear 0.3s;
}
.fanto__invite::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: -9px;
  width: 12px;
  height: 12px;
  border-right: 3px solid #000;
  border-bottom: 3px solid #000;
  background: #fff;
  transform: rotate(45deg);
}
.fanto__invite.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s;
}
@media (hover: hover){
.fanto__invite:hover {
  transform: translateY(-2px) scale(1.05);
}
}

.fanto__points {
  display: inline-flex;
  gap: 3px;
}
.fanto__points span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
@media (prefers-reduced-motion: no-preference) {
  .fanto__points span {
    animation: fanto-points 1.2s ease-in-out infinite;
  }
  .fanto__points span:nth-child(2) {
    animation-delay: 0.15s;
  }
  .fanto__points span:nth-child(3) {
    animation-delay: 0.3s;
  }
}

@keyframes fanto-points {
  0%, 60%, 100% {
    translate: 0 0;
  }
  30% {
    translate: 0 -4px;
  }
}
.fanto__recherche {
  transform-origin: 72% 100%;
}

/* ==========================================================================
   STORY / COMPONENT
   Accueil en « scènes » (Scrollytelling.js) : la page ne défile jamais.
   Le Hub et « Mon processus » sont deux scènes superposées qui tiennent dans
   un seul écran ; la molette (ou le doigt, ou les flèches) fait passer de
   l'une à l'autre et d'une étape à la suivante.
   Variable reçue du JS : --progress (0 → 1) pour la barre de progression.
   ========================================================================== */
/* Conteneur et scènes
   ========================================================================== */
.home {
  --story-ease: cubic-bezier(0.65, 0, 0.35, 1);
  --progress: 0;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home.is-scenes {
  min-height: 0;
  overflow: hidden;
}

.home.is-measuring * {
  transition: none !important;
}

.scene {
  display: flex;
  flex-direction: column;
}
.home.is-scenes .scene {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  transition: opacity 0.8s var(--story-ease), transform 0.9s var(--story-ease), visibility 0s linear 0.9s;
}
.home.is-scenes .scene::-webkit-scrollbar {
  display: none;
}

.scene--hub .hub {
  flex: 1 0 auto;
  min-height: 0;
}
.home.is-story .scene--hub {
  opacity: 0;
  transform: translateY(-14%) scale(0.96);
  visibility: hidden;
}

.home.is-scenes:not(.is-story) .scene--story {
  opacity: 0;
  transform: translateY(14%);
  visibility: hidden;
}

.home.is-scenes:not(.is-story) .scene--hub,
.home.is-scenes.is-story .scene--story {
  transition: opacity 0.8s var(--story-ease) 0.1s, transform 0.9s var(--story-ease) 0.1s, visibility 0s;
}

/* Mon processus
   ========================================================================== */
.story__frame {
  flex: 1 0 auto;
  display: flex;
  padding-block: var(--spacing-md) var(--spacing-lg);
}
.home.is-scenes .story__frame {
  flex: 1 1 0;
  min-height: 0;
}

.story__inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(0.75rem, 1.07vw + 0.54rem, 1.5rem);
  max-width: 560px;
}
@media (min-width: 1024px) {
  .story__inner {
    max-width: 1200px;
  }
}

.story__header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xs);
  text-align: center;
}
@media (min-width: 1024px) {
  .story__header {
    text-align: left;
  }
}

.story__kicker {
  color: var(--color-primary);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story__title {
  margin: 0;
}

.story__stage {
  display: grid;
  grid-template-rows: minmax(140px, 1fr) auto;
  gap: clamp(0.75rem, 2.5vw + 0.25rem, 2.5rem);
  min-height: 0;
}
@media (min-width: 1024px) {
  .story__stage {
    grid-template-rows: none;
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
  }
}

.story__media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: calc(70vh / var(--zoom));
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-ui);
}
@media (min-width: 1024px) {
  .story__media {
    align-self: stretch;
  }
}

.story__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.7s var(--story-ease), transform 1.4s var(--story-ease);
}
.story__img.is-active {
  opacity: 1;
  transform: scale(1);
}

.story__img--contain {
  -o-object-fit: contain;
     object-fit: contain;
  background-color: #ecebe7;
}

.story__count {
  position: absolute;
  left: var(--spacing-md);
  bottom: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-ui);
  backdrop-filter: var(--blur-ui);
  color: rgba(0, 0, 0, 0.5);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
}

.story__count-current {
  color: var(--color-primary);
}

/* Étapes
   ========================================================================== */
.story__steps {
  display: grid;
}
@media (min-width: 1024px) {
  .story__steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

.story__step {
  grid-area: 1/1;
  gap: var(--spacing-xs);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.5s var(--story-ease), transform 0.5s var(--story-ease), background-color 0.3s ease;
}
.story__step.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
@media (min-width: 1024px) {
  .story__step {
    padding: var(--spacing-sm) clamp(1.13rem, 0.54vw + 1.02rem, 1.5rem);
    opacity: 0.45;
    transform: scale(0.97);
    transform-origin: left center;
    pointer-events: auto;
    cursor: pointer;
  }
  @media (hover: hover){
  .story__step:hover {
    opacity: 0.7;
  }
  }
  .story__step.is-done {
    opacity: 0.6;
  }
  .story__step.is-active {
    padding-block: var(--spacing-md);
    opacity: 1;
    transform: none;
    background-color: rgba(255, 255, 255, 0.85);
  }
}

.story__step-title {
  margin: 0;
}
@media (min-width: 1024px) {
  .story__step-title {
    font-size: var(--font-size-h3);
    transition: font-size 0.4s var(--story-ease);
  }
  .story__step.is-active .story__step-title {
    font-size: var(--font-size-h2);
  }
}

.story__body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.5s var(--story-ease);
}
@media (min-width: 1024px) {
  .story__body {
    grid-template-rows: 0fr;
  }
  .story__step.is-active .story__body {
    grid-template-rows: 1fr;
  }
}

.story__body-inner {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  min-height: 0;
  overflow: hidden;
}

.story__text {
  margin: 0;
}

.story__tools {
  display: flex;
  gap: var(--spacing-xs);
}

.story__tool {
  width: clamp(1.75rem, 1.07vw + 1.54rem, 2.5rem);
  height: clamp(1.75rem, 1.07vw + 1.54rem, 2.5rem);
}

/* Pied : barre de progression et boutons de fin
   ========================================================================== */
.story__footer {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
@media (min-width: 1024px) {
  .story__footer {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-lg);
  }
  .story__footer .story__progress {
    flex: 1;
  }
}

.story__progress {
  height: 4px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.1);
}

.story__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(var(--progress));
  transform-origin: left center;
  transition: transform 0.8s var(--story-ease);
}

.story__end {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  transition: opacity 0.5s var(--story-ease), transform 0.5s var(--story-ease);
}
.home.is-scenes:not(.is-last) .story__end {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
@media (min-width: 1024px) {
  .story__end {
    justify-content: flex-end;
  }
}

/* Mobile (ou sans JS) : pas de scènes, la section défile normalement, tout est affiché
   ========================================================================== */
.home:not(.is-scenes) .story__step {
  opacity: 1;
  transform: none;
}
.home:not(.is-scenes) .story__steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.home:not(.is-scenes) .story__body {
  grid-template-rows: 1fr;
}
.home:not(.is-scenes) .story__img:first-of-type {
  opacity: 1;
  transform: none;
}
.home:not(.is-scenes) .story__media {
  height: auto;
  aspect-ratio: 16/10;
}
.home:not(.is-scenes) .story__progress {
  display: none;
}

/* Mouvement réduit : changements instantanés
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .scene,
  .story__img,
  .story__step,
  .story__body,
  .story__bar,
  .story__end {
    transition: none !important;
  }
}
/* ==========================================================================
   STORY HINT / COMPONENT
   « Défiler pour découvrir mon processus » en bas du Hub
   ========================================================================== */
.story-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  align-self: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  transition: color 0.2s ease;
}
@media (hover: hover){
.story-hint:hover {
  color: var(--color-primary);
}
}

/* ==========================================================================
   PANELS / COMPONENT
   Site en une seule page (index.html, PageScroller.js) :
   Accueil → Projets → À propos → Contact, une section (.panel) par « page ».

   Desktop (PageScroller.js ajoute .is-panels sur <html>) :
   la page ne défile jamais. Les sections sont superposées et remplissent l'écran ;
   la section suivante monte par-dessus, la précédente recule et s'efface.
   Mobile : les sections se suivent et la page défile normalement.
   ========================================================================== */
.panels {
  --panel-ease: cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  flex-direction: column;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--color-text);
}

.panel--dark {
  color: var(--color-text-inverse);
}

/* Mobile : sections à la suite
   ========================================================================== */
html:not(.is-panels) .panel {
  overflow-x: clip;
}
html:not(.is-panels) .panel--dark {
  background: linear-gradient(180deg, #663e66 0%, #0b0044 100%);
}
html:not(.is-panels) .panel--accueil {
  min-height: calc(100svh - var(--header-h, 0px));
}

/* Desktop : sections superposées, une seule à l'écran
   ========================================================================== */
.is-panels {
  overflow: hidden;
  overscroll-behavior: none;
}
.is-panels body {
  height: calc(100vh / var(--zoom));
  height: calc(100dvh / var(--zoom));
  min-height: 0;
  overflow: hidden;
}
.is-panels main {
  position: relative;
  flex: 1;
  min-height: 0;
}
.is-panels .footer {
  display: none;
}
.is-panels .header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
}
.is-panels .panels {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.is-panels .panel {
  position: absolute;
  inset: 0;
  padding-top: var(--header-h, 100px);
  overflow: hidden;
  transition: translate 0.9s var(--panel-ease), scale 0.9s var(--panel-ease), opacity 0.9s var(--panel-ease), visibility 0s linear 0.9s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.is-panels .panel.is-after {
  z-index: 2;
  translate: 0 100%;
  visibility: hidden;
}
.is-panels .panel.is-before {
  z-index: 0;
  translate: 0 -30%;
  scale: 0.94;
  opacity: 0;
  visibility: hidden;
}
.is-panels .panel.is-current {
  z-index: 1;
  visibility: visible;
  transition: translate 0.9s var(--panel-ease), scale 0.9s var(--panel-ease), opacity 0.9s var(--panel-ease), visibility 0s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.is-panels .panels.is-instant .panel {
  transition: none !important;
}
.is-panels .panel--a-propos {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: reduce) {
  .is-panels .panel {
    transition: visibility 0s !important;
    translate: none !important;
    scale: none !important;
  }
  .is-panels .panel:not(.is-current) {
    opacity: 0;
  }
}
/* Animations d'entrée : elles attendent la première arrivée sur la section
   (PageScroller.js ajoute .is-entered). En pause, une animation garde sa
   première image (élément caché) et son délai ne s'écoule pas.
   ========================================================================== */
.panel:not(.is-entered) *,
.panel:not(.is-entered) *::before,
.panel:not(.is-entered) *::after {
  animation-play-state: paused !important;
}

html[data-panel]:not([data-panel=a-propos]) .ship-intro {
  visibility: hidden;
  opacity: 0;
}

/* Forcer pour changer de section (PageScroller.js)
   Au bord d'une section qui défile (À propos), il faut pousser : la section
   s'étire un peu dans le sens du geste (--pull de 0 à 1) et une jauge indique
   la section voisine. Relâché trop tôt : tout revient en place.
   ========================================================================== */
.is-panels .panel.is-pulling {
  transform: translateY(calc(var(--pull, 0) * var(--pull-dir, 1) * -48px));
  transition: translate 0.9s var(--panel-ease), scale 0.9s var(--panel-ease), opacity 0.9s var(--panel-ease), visibility 0s, transform 0.12s ease-out;
}

.pull-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 30;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-ui);
  backdrop-filter: var(--blur-ui);
  color: var(--color-text);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  translate: -50% 12px;
  pointer-events: none;
  transition: opacity 0.25s ease, translate 0.25s ease;
}
.is-panels .pull-hint {
  display: flex;
}
.pull-hint.is-visible {
  opacity: 1;
  translate: -50% 0;
}
.pull-hint.is-top {
  top: calc(var(--header-h, 100px) + 16px);
  bottom: auto;
  translate: -50% -12px;
}
.pull-hint.is-top.is-visible {
  translate: -50% 0;
}

.pull-hint__track {
  width: 140px;
  height: 4px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.12);
}

.pull-hint__bar {
  display: block;
  height: 100%;
  background: var(--gradient-brand);
  transform: scaleX(var(--pull, 0));
  transform-origin: left center;
}

@media (prefers-reduced-motion: reduce) {
  .is-panels .panel.is-pulling {
    transform: none;
  }
}
html:not(.is-panels) .panel {
  scroll-margin-top: 72px;
}

/* ==========================================================================
   HEADER / COMPONENTS
   En-tête de toutes les pages : nom, navigation et barre d'état (heure).
   ========================================================================== */
/* ==========================================================================
   HEADER / COMPONENT
   Hub : barre d'état seulement.
   Autres pages (.header--nav) : nom + navigation + barre d'état.
   ========================================================================== */
.header {
  display: flex;
  justify-content: flex-end;
  padding: clamp(2rem, 0.89vw + 1.82rem, 2.63rem) max(var(--gutter), (100% - 1440px) / 2) 0;
}

.header--nav {
  --header-veil: rgba(255, 255, 255, 0.75);
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding-top: clamp(1rem, 0.18vw + 0.96rem, 1.13rem);
}
@media (max-width: 479px) {
  .header--nav {
    justify-content: center;
  }
  .header--nav .status-bar {
    order: -1;
    width: 100%;
    justify-content: flex-end;
  }
}
@media (min-width: 1024px) {
  .header--nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .header--nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: calc(100% + 24px);
    background: linear-gradient(180deg, var(--header-veil) 0%, var(--header-veil) 75%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
    pointer-events: none;
  }
  .header--nav .status-bar {
    justify-self: end;
  }
}

.header__brand {
  display: none;
}
@media (hover: hover){
.header__brand:hover {
  color: inherit;
}
}
.header__brand:focus-visible .header__avatar {
  transform: scale(1.12);
}
@media (hover: hover){
.header__brand:hover .header__avatar {
  transform: scale(1.12);
}
}
@media (min-width: 1024px) {
  .header__brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-secondary);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-extrabold);
    line-height: 1;
    white-space: nowrap;
  }
}

.header__avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.header__avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  -o-object-fit: cover;
     object-fit: cover;
}

.body--dark .header--nav {
  --header-veil: color-mix(in srgb, var(--color-bg-dark) 85%, transparent);
  --nav-halo: color-mix(in srgb, var(--color-bg-dark) 90%, transparent);
}

/* ==========================================================================
   STATUS BAR / COMPONENT
   Barre d'état en haut à droite (son, batterie, date/heure, horloge).
   Figma : Nav (Hub desktop et mobile)
   ========================================================================== */
.status-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}
@media (min-width: 1024px) {
  .status-bar {
    gap: var(--spacing-md);
  }
}

.status-bar__sep {
  align-self: stretch;
  width: 2px;
  margin-right: var(--spacing-xs);
  border-radius: var(--radius-full);
  background-color: currentColor;
}

.status-bar__icon--desktop {
  display: none;
}
@media (min-width: 1024px) {
  .status-bar__icon--desktop {
    display: inline-block;
  }
}

.status-bar__time {
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
}

/* ==========================================================================
   ACCUEIL : BARRE D'ÉTAT SEULEMENT (design original du Hub)
   Sur l'accueil, l'« Accès rapide » mène déjà aux sections : le nom et la
   navigation du haut feraient double emploi. Ils disparaissent en fondu sur
   l'accueil (data-panel="accueil", PageScroller.js) et reviennent sur les
   autres sections. La barre d'état (heure) reste toujours.
   ========================================================================== */
.is-single .header--nav .header__brand,
.is-single .header--nav .main-nav, .is-single .header--nav::before {
  transition: opacity 0.5s ease, translate 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

html[data-panel=accueil] .is-single .header--nav .header__brand,
html[data-panel=accueil] .is-single .header--nav .main-nav, html[data-panel=accueil] .is-single .header--nav::before {
  opacity: 0;
  translate: 0 -12px;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, translate 0.4s ease, visibility 0s linear 0.4s;
}

html:not(.is-panels) .is-single .header--nav .header__brand {
  display: none;
}
html:not(.is-panels) .is-single .header--nav .main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: max(6px, env(safe-area-inset-top)) var(--gutter) 6px;
  background: var(--header-veil);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transition: translate 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0s linear 0s;
}
html:not(.is-panels) .is-single .header--nav .main-nav__list {
  zoom: 0.78;
}

html[data-panel=accueil]:not(.is-panels) .is-single .header--nav .main-nav {
  opacity: 0;
  translate: 0 -100%;
  visibility: hidden;
  pointer-events: none;
  transition: translate 0.4s ease, opacity 0.3s ease, visibility 0s linear 0.4s;
}

/* ==========================================================================
   ACCUEIL / COMPONENTS
   Page d'accueil (Hub) : photo, nom, réseaux, accès rapide.
   ========================================================================== */
/* ==========================================================================
   SOCIALS / COMPONENT
   CV / Linkedin / Mail / Instagram / ArtStation : une rangée de boutons-icônes
   en verre (comme une barre d'applications). Le nom apparaît dans la bulle d'info
   au survol (components/tooltip) et le contour dégradé animé du site s'allume.
   Compact : la rangée ne déborde jamais, même avec d'autres réseaux.
   ========================================================================== */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.63rem, 0.54vw + 0.52rem, 1rem);
  margin-top: clamp(0.25rem, 0.36vw + 0.18rem, 0.5rem);
}
@media (min-width: 1024px) {
  .socials {
    justify-content: flex-start;
  }
}

.socials__link {
  position: relative;
}
.socials__link::before {
  content: "";
  position: absolute;
  inset: 0px;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--border-angle), var(--color-primary), var(--color-secondary), var(--color-primary));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.socials__link {
  display: grid;
  place-items: center;
  width: clamp(3rem, 1.07vw + 2.79rem, 3.75rem);
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--surface-glass-solid);
  box-shadow: var(--shadow-drop-sm), inset 0 8px 15px 0 rgba(255, 255, 255, 0.3);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.socials__link .icon {
  width: 52%;
  height: 52%;
}
.socials__link:focus-visible::before {
  opacity: 1;
  animation: border-rotate 3s linear infinite;
}
@media (hover: hover){
.socials__link:hover::before {
  opacity: 1;
  animation: border-rotate 3s linear infinite;
}
}
@media (prefers-reduced-motion: reduce) {
  .socials__link:focus-visible::before {
    animation: none;
  }
  @media (hover: hover){
  .socials__link:hover::before {
    animation: none;
  }
  }
}
.socials__link:focus-visible {
  background-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 16px rgba(65, 30, 248, 0.18), inset 0 8px 15px 0 rgba(255, 255, 255, 0.4);
}
@media (hover: hover){
.socials__link:hover {
  background-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 16px rgba(65, 30, 248, 0.18), inset 0 8px 15px 0 rgba(255, 255, 255, 0.4);
}
}
.socials__link:focus-visible {
  outline: none;
}

/* ==========================================================================
   HUB / COMPONENT
   Page d'accueil. Figma : Hub (1440) et Hub mobile (320)
   Mobile / tablette : colonne centrée — Desktop (≥ 1024px) : photo + texte côte à côte.
   ========================================================================== */
.hub {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 2.32vw + 1.04rem, 3.13rem);
  padding-block: var(--spacing-lg) var(--spacing-xl);
  max-width: 560px;
}
@media (min-width: 1024px) {
  .hub {
    max-width: 1200px;
    padding-block: clamp(1.5rem, 2.32vw + 1.04rem, 3.13rem);
  }
}

/* Intro (photo + nom + réseaux)
   ========================================================================== */
.hub__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}
@media (min-width: 1024px) {
  .hub__intro {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-lg);
  }
}

.hub__hint {
  display: none;
}
@media (min-width: 1024px) {
  .hub__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 113px;
    margin-top: 105px;
    color: var(--color-text-muted);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    line-height: 18px;
    text-align: center;
    animation: hub-hint-fade 0.6s ease 5s forwards;
  }
  .hub__hint::after {
    content: "";
    flex: 0 0 auto;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 10px solid currentColor;
    animation: hub-hint-nudge 1.6s ease-in-out infinite;
  }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .hub__hint::after {
    animation: none;
  }
}

@keyframes hub-hint-nudge {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 6px 0;
  }
}
@keyframes hub-hint-fade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.hub__photo {
  display: block;
  flex: 0 0 auto;
  position: relative;
}
.hub__photo::before {
  content: "";
  position: absolute;
  inset: -9px;
  padding: 4px;
  border-radius: inherit;
  background: conic-gradient(from var(--border-angle), var(--color-primary), var(--color-secondary), var(--color-primary));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.hub__photo {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.hub__photo:focus-visible {
  transform: scale(1.04);
}
@media (hover: hover){
.hub__photo:hover {
  transform: scale(1.04);
}
}
.hub__photo:focus-visible::before {
  opacity: 1;
  animation: border-rotate 3s linear infinite;
}
@media (hover: hover){
.hub__photo:hover::before {
  opacity: 1;
  animation: border-rotate 3s linear infinite;
}
}
@media (prefers-reduced-motion: reduce) {
  .hub__photo:focus-visible::before {
    animation: none;
  }
  @media (hover: hover){
  .hub__photo:hover::before {
    animation: none;
  }
  }
}
.hub__photo:focus-visible {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(247, 23, 249, 0.3);
}
@media (hover: hover){
.hub__photo:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(247, 23, 249, 0.3);
}
}
.hub__photo:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}
.hub__photo {
  width: clamp(6.81rem, 11.79vw + 4.46rem, 15.06rem);
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.hub__photo img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  -o-object-fit: cover;
     object-fit: cover;
}
@media (min-width: 1024px) {
  .hub__photo {
    margin-right: calc(58px - var(--spacing-lg));
  }
}

.hub__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
}
@media (min-width: 1024px) {
  .hub__content {
    flex: 0 1 661px;
    align-self: center;
    gap: var(--spacing-lg);
  }
}

.hub__heading {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: var(--spacing-xs);
  border-bottom: 3px solid var(--color-line);
  text-align: center;
}
@media (min-width: 1024px) {
  .hub__heading {
    padding-bottom: var(--spacing-md);
    text-align: left;
  }
}

.hub__tagline {
  margin-top: calc(var(--spacing-xs) - var(--spacing-sm));
}
@media (min-width: 1024px) {
  .hub__tagline {
    margin-top: calc(var(--spacing-md) - var(--spacing-lg));
  }
}

.hub__videos {
  display: flex;
  gap: clamp(0.63rem, 0.54vw + 0.52rem, 1rem);
  width: 100%;
}
@media (min-width: 1024px) {
  .hub__videos {
    width: 454px;
    max-width: 100%;
  }
}

.hub__video {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}
.hub__video + .hub__video {
  flex: 0 1 auto;
}

/* Accès rapide
   ========================================================================== */
.quick-access {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
}
@media (min-width: 1024px) {
  .quick-access {
    gap: var(--spacing-lg);
    max-width: 996px;
    margin-inline: auto;
  }
}

.quick-access__title {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  white-space: nowrap;
}
.quick-access__title::after {
  content: "";
  flex: 1;
  height: 3px;
  background-color: var(--color-line-muted);
}

.quick-access__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
}
@media (min-width: 768px) {
  .quick-access__list {
    gap: var(--spacing-md);
  }
}
@media (min-width: 1024px) {
  .quick-access__list {
    gap: var(--spacing-lg);
  }
}

/* ==========================================================================
   ANIMATIONS D'ENTRÉE / COMPONENT
   Le Hub se construit à l'arrivée sur la page (≈ 2,5 s) :
   photo qui rebondit → lettres du nom qui tombent → réseaux qui « popent »
   → tuiles qui sautent en cascade. Les lettres sont découpées par HubIntro.js.
   On anime translate / scale / rotate (et non transform) pour ne pas bloquer
   les effets de survol, qui utilisent transform.
   Rien ne bouge si l'appareil demande moins d'animations.
   ========================================================================== */
.hub__word {
  display: inline-block;
  white-space: nowrap;
}

.hub__letter {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .hub__photo {
    animation: intro-photo 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
  }
  .hub__letter {
    animation: intro-letter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(0.3s + var(--i) * 0.035s);
  }
  .hub.is-intro-done .hub__letter {
    animation: none;
  }
  @media (hover: hover){
  .hub.is-intro-done .hub__name:hover .hub__letter {
    animation: intro-wave 0.5s ease-in-out both;
    animation-delay: calc(var(--i) * 0.025s);
  }
  }
  .hub__role {
    animation: intro-blur-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
  }
  .hub__tagline {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
  }
  .socials__item,
  .socials__sep {
    animation: intro-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .socials__item:nth-child(1),
  .socials__sep:nth-child(1) {
    animation-delay: 0.92s;
  }
  .socials__item:nth-child(2),
  .socials__sep:nth-child(2) {
    animation-delay: 0.99s;
  }
  .socials__item:nth-child(3),
  .socials__sep:nth-child(3) {
    animation-delay: 1.06s;
  }
  .socials__item:nth-child(4),
  .socials__sep:nth-child(4) {
    animation-delay: 1.13s;
  }
  .socials__item:nth-child(5),
  .socials__sep:nth-child(5) {
    animation-delay: 1.2s;
  }
  .socials__item:nth-child(6),
  .socials__sep:nth-child(6) {
    animation-delay: 1.27s;
  }
  .socials__item:nth-child(7),
  .socials__sep:nth-child(7) {
    animation-delay: 1.34s;
  }
  .socials__item:nth-child(8),
  .socials__sep:nth-child(8) {
    animation-delay: 1.41s;
  }
  .hub__video {
    animation: intro-rise 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s both;
  }
  .hub__video + .hub__video {
    animation-delay: 1.4s;
  }
  .quick-access__title {
    animation: intro-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.35s both;
  }
  .quick-access__title::after {
    transform-origin: left center;
    animation: intro-line 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.5s both;
  }
  .quick-access__item {
    animation: intro-jump 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .quick-access__item:nth-child(1) {
    animation-delay: 1.57s;
  }
  .quick-access__item:nth-child(2) {
    animation-delay: 1.69s;
  }
  .quick-access__item:nth-child(3) {
    animation-delay: 1.81s;
  }
  .hub:not(.is-intro-done) .quick-access__item:nth-child(1) .icon {
    animation: intro-wiggle 0.6s ease-in-out 2.12s both;
  }
  .hub:not(.is-intro-done) .quick-access__item:nth-child(2) .icon {
    animation: intro-wiggle 0.6s ease-in-out 2.24s both;
  }
  .hub:not(.is-intro-done) .quick-access__item:nth-child(3) .icon {
    animation: intro-wiggle 0.6s ease-in-out 2.36s both;
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
  .hub__hint {
    animation: intro-from-left 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both, hub-hint-fade 0.6s ease 5s forwards;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .panel--accueil .story-hint {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 2s both;
  }
}
/* ==========================================================================
   SOCIALS — BLOC « ? » / COMPONENT
   Dernier bloc de la rangée des réseaux : mène à la section « Utilisation de l'IA ».
   Même bouton que les réseaux, séparé par un petit trait vertical.
   ========================================================================== */
.socials__sep {
  position: relative;
  align-self: center;
  width: 2px;
  height: clamp(1.75rem, 0.71vw + 1.61rem, 2.25rem);
  border-radius: var(--radius-full);
  background-color: var(--color-separator);
  transition: width 0.2s ease, margin 0.2s ease, background-color 0.2s ease;
}
.is-pulling .socials__sep {
  width: 4px;
  margin-inline: -1px;
  background-color: var(--color-primary);
}
@media (hover: hover){
.socials__sep:hover {
  width: 4px;
  margin-inline: -1px;
  background-color: var(--color-primary);
}
}

.socials__ai {
  color: var(--color-primary);
}

/* Cellulaire : le Hub (sans « Accès rapide ») est centré verticalement dans l'écran
   ========================================================================== */
html:not(.is-panels) .panel--accueil .home,
html:not(.is-panels) .panel--accueil .scene--hub {
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 479px) {
  .socials {
    gap: 6px;
  }
  .socials__link {
    width: 42px;
    border-radius: 12px;
  }
  .socials__sep {
    height: 24px;
  }
}
/* ==========================================================================
   PROJETS / COMPONENTS
   Page Projets : cartes projets, points de navigation et mise en page.
   ========================================================================== */
/* ==========================================================================
   PROJECT CARD / COMPONENT
   Carte d'un projet. Figma : Frame 175 / 195 / 196
   Survol (Variant2) : contour dégradé, la photo laisse place à une couleur
   et l'image détourée « sort » du cadre.
   ========================================================================== */
.project-card {
  position: relative;
  padding: 5px;
  border-radius: var(--radius-xl);
  scroll-margin-top: var(--spacing-lg);
  position: relative;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0px;
  padding: 5px;
  border-radius: inherit;
  background: conic-gradient(from var(--border-angle), var(--color-primary), var(--color-secondary), var(--color-primary));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.project-card__inner {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin: 6px;
  padding: var(--spacing-md);
  border-radius: var(--radius-xl);
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-app);
  backdrop-filter: var(--blur-app);
}
@media (min-width: 1024px) {
  .project-card__inner {
    flex-direction: row;
    gap: var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .project-card--reverse .project-card__media {
    order: 2;
  }
}

/* Image
   ========================================================================== */
.project-card__media {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 350/300;
  padding: var(--spacing-sm);
}
@media (min-width: 1024px) {
  .project-card__media {
    width: clamp(280px, 31.6%, 480px);
  }
}

.project-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: var(--radius-xl);
  background: var(--project-shade, linear-gradient(180deg, rgba(0, 0, 0, 0) 57.667%, rgba(0, 0, 0, 0.75) 87.386%));
  pointer-events: none;
}

.project-card__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--project-color, var(--color-primary));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
}
.project-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.3);
}

.project-card__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card__cutout {
  position: absolute;
  bottom: var(--cutout-bottom, 0);
  left: var(--cutout-x, 50%);
  z-index: 2;
  width: auto;
  max-width: none;
  height: var(--cutout-h, 124%);
  opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  pointer-events: none;
  transform: translate(-50%, var(--cutout-shift, 16px)) scale(var(--cutout-from, 1));
  transform-origin: 50% var(--cutout-origin, 100%);
  clip-path: inset(-100% -100% var(--cutout-clip, -100%) -100%);
  transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: none;
}
@media (min-width: 1024px) {
  .project-card__cutout {
    display: block;
  }
}

.project-card__category {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding-inline: var(--spacing-xs);
  color: var(--color-text-inverse);
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  text-align: center;
}

.project-card__category-label {
  max-width: 140px;
}

/* Contenu
   ========================================================================== */
.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--spacing-md);
  min-width: 0;
}

.project-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.project-card__heading {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-line);
}
@media (min-width: 768px) {
  .project-card__heading {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.project-card__heading h2 {
  max-width: 490px;
}

.project-card__meta {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}
@media (min-width: 768px) {
  .project-card__meta {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
  }
}

.project-card__tools {
  display: flex;
  gap: var(--spacing-sm);
}

.project-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
@media (min-width: 768px) {
  .project-card__actions {
    flex-direction: row;
    gap: var(--spacing-lg);
  }
}

.project-card__btn {
  flex: 1;
}

/* Carte sélectionnée (ProjectSlider.js), survol et focus clavier
   ========================================================================== */
@media (hover: hover) {
  .project-card:hover .project-card__img {
    opacity: 0;
  }
  .project-card:hover .project-card__cutout {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  .project-card.is-active:hover::before {
    opacity: 1;
    animation: border-rotate 3s linear infinite;
  }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .project-card.is-active:hover::before {
    animation: none;
  }
}
.project-card.is-active .project-card__img,
.project-card:focus-within .project-card__img {
  opacity: 0;
}
.project-card.is-active .project-card__cutout,
.project-card:focus-within .project-card__cutout {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.project-card:has(:focus-visible)::before {
  opacity: 1;
  animation: border-rotate 3s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .project-card:has(:focus-visible)::before {
    animation: none;
  }
}

/* Variantes par catégorie
   ========================================================================== */
.project-card--3d {
  --project-color: linear-gradient(180deg, #7da3c8 0%, #d9c2a5 100%);
  --cutout-h: 120%;
  --cutout-x: 52%;
}

.project-card--2d {
  --project-color: #fcc03d;
  --cutout-h: 133%;
  --cutout-x: 55%;
  --project-shade: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 57.667%,
      rgba(255, 255, 255, 0.75) 87.386%
  );
}
.project-card--2d .project-card__category {
  color: var(--color-text);
}

.project-card--photo {
  --project-color: linear-gradient(180deg, #8856e5 0%, #360a88 100%);
  --cutout-h: 124%;
  --cutout-x: 60%;
}

.project-card--apple {
  --project-color: #fff;
  --cutout-h: 128%;
  --cutout-x: 52%;
  --cutout-shift: 0px;
  --cutout-from: 0.6875;
}

.project-card--tracking {
  --project-color: url('../assets/images/img-projet-tracking-fond.webp') center / cover;
  --cutout-h: 213%;
  --cutout-x: 52%;
  --cutout-bottom: -68%;
  --cutout-clip: 31.9%;
  --cutout-origin: 68.1%;
  --cutout-shift: 0px;
  --cutout-from: 0.67;
}

/* ==========================================================================
   PROJECT NAV / COMPONENT
   Points à droite de la carte sélectionnée : indiquent le projet affiché et y mènent.
   Figma : Navigation (desktop seulement)
   ========================================================================== */
.project-nav {
  display: none;
}
@media (min-width: 1024px) {
  .project-nav {
    display: flex;
    flex: 0 0 18px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: height 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
}

.project-nav__dot {
  display: block;
  width: 13px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(rgba(247, 23, 249, 0.1), rgba(247, 23, 249, 0.1)), rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 4px -1px rgba(247, 23, 249, 0.05), inset 0 -4px 2px -2px rgba(0, 0, 0, 0.08), inset 2px 2px 1.5px -2px rgba(255, 255, 255, 0.75), inset 0 3px 1.5px -1px rgba(255, 255, 255, 0.35);
  transition: width 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (hover: hover){
.project-nav__dot:hover {
  background: rgba(247, 23, 249, 0.3);
}
}
.project-nav__dot.is-active {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(247, 23, 249, 0.5);
  box-shadow: 0 2px 2px -1px rgba(247, 23, 249, 0.2), inset 0 -4px 2px -2px rgba(0, 0, 0, 0.08), inset 2px 2px 1.5px -2px rgba(255, 255, 255, 0.75), inset 0 3px 1.5px -1px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   PROJECTS / COMPONENT
   Mise en page de la page Projets. Figma : Page Projets (Frame 214)
   Desktop (≥ 1024px) : la page tient dans l'écran et ne défile pas,
   ce sont les cartes qui montent (voir ProjectSlider.js).
   Mobile : la page défile normalement.
   ========================================================================== */
.projects {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: clamp(1.5rem, 0.54vw + 1.39rem, 1.88rem) var(--spacing-3xl);
}
@media (min-width: 1024px) {
  .projects {
    flex: 1;
    min-height: 0;
    padding-bottom: 0;
  }
}

.projects__layout {
  display: flex;
  align-items: flex-start;
  gap: 49px;
}
@media (min-width: 1024px) {
  .projects__layout {
    flex: 1;
    min-height: 0;
  }
}

.projects__viewport {
  flex: 1;
  min-width: 0;
}

.projects__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 1024px) {
  .projects .page-title,
  .projects__list {
    transform: translateY(calc(var(--slide-offset, 0px) + var(--drag-offset, 0px)));
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .projects .page-title,
  .projects__list {
    transition: none;
  }
}
@media (min-width: 1024px) {
  .projects__viewport {
    cursor: grab;
  }
  .projects.is-dragging {
    cursor: grabbing;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
  }
  .projects.is-dragging .page-title,
  .projects.is-dragging .projects__list {
    transition: none;
  }
  .projects.is-dragging a,
  .projects.is-dragging .projects__viewport {
    cursor: grabbing;
  }
  .project-card:not(.is-active):not(.is-past) {
    cursor: pointer;
  }
  .projects__list .project-card {
    transform: scale(0.94);
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  .projects__list .project-card.is-active {
    transform: none;
  }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .projects__list .project-card {
    transition: none;
  }
}
.project-card.is-past {
  pointer-events: none;
}

/* ==========================================================================
   ANIMATIONS D'ARRIVÉE / COMPONENT
   La page Projets se construit à l'arrivée (≈ 2 s) :
   navigation qui « pope » → lettres de « Projets » qui tombent →
   première carte : image qui glisse, personnage détouré qui jaillit du cadre,
   texte qui arrive de l'autre côté → cartes suivantes qui montent en cascade
   → points de navigation. Keyframes partagées : generic/animations.
   Rien ne bouge si l'appareil demande moins d'animations.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .header--nav .header__brand {
    animation: intro-from-left 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
  }
  .header--nav .main-nav__list > li {
    animation: intro-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .header--nav .main-nav__list > li:nth-child(1) {
    animation-delay: 0.17s;
  }
  .header--nav .main-nav__list > li:nth-child(2) {
    animation-delay: 0.24s;
  }
  .header--nav .main-nav__list > li:nth-child(3) {
    animation-delay: 0.31s;
  }
  .header--nav .main-nav__list > li:nth-child(4) {
    animation-delay: 0.38s;
  }
  .header--nav .status-bar {
    animation: intro-drop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projects .page-title__title .split__letter {
    animation: intro-letter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(0.3s + var(--i) * 0.05s);
  }
  .projects .page-title__subtitle {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
  }
  .projects__list > .project-card:first-child .project-card__media {
    animation: intro-slide-left 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
  }
  .projects__list > .project-card:first-child .project-card__cutout {
    animation: intro-cutout 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
  }
  .projects__list > .project-card:first-child .project-card__category {
    animation: intro-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s both;
  }
  .projects__list > .project-card:first-child .project-card__heading {
    animation: intro-from-right 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both;
  }
  .projects__list > .project-card:first-child .project-card__content > p {
    animation: intro-from-right 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
  }
  .projects__list > .project-card:first-child .project-card__tools li {
    animation: intro-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .projects__list > .project-card:first-child .project-card__tools li:nth-child(1) {
    animation-delay: 1.2s;
  }
  .projects__list > .project-card:first-child .project-card__tools li:nth-child(1) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.6s both;
  }
  .projects__list > .project-card:first-child .project-card__tools li:nth-child(2) {
    animation-delay: 1.3s;
  }
  .projects__list > .project-card:first-child .project-card__tools li:nth-child(2) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.7s both;
  }
  .projects__list > .project-card:first-child .project-card__tools li:nth-child(3) {
    animation-delay: 1.4s;
  }
  .projects__list > .project-card:first-child .project-card__tools li:nth-child(3) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.8s both;
  }
  .projects__list > .project-card:first-child .project-card__tools li:nth-child(4) {
    animation-delay: 1.5s;
  }
  .projects__list > .project-card:first-child .project-card__tools li:nth-child(4) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.9s both;
  }
  .projects__list > .project-card:first-child .project-card__actions > * {
    animation: intro-rise 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .projects__list > .project-card:first-child .project-card__actions > *:nth-child(1) {
    animation-delay: 1.3s;
  }
  .projects__list > .project-card:first-child .project-card__actions > *:nth-child(2) {
    animation-delay: 1.4s;
  }
  .projects__list > .project-card:not(:first-child) {
    animation: intro-card-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projects__list > .project-card:not(:first-child):nth-child(2) {
    animation-delay: 1.1s;
  }
  .projects__list > .project-card:not(:first-child):nth-child(3) {
    animation-delay: 1.22s;
  }
  .projects__list > .project-card:not(:first-child):nth-child(4) {
    animation-delay: 1.34s;
  }
  .projects__list > .project-card:not(:first-child):nth-child(5) {
    animation-delay: 1.46s;
  }
  .projects__list > .project-card:not(:first-child):nth-child(6) {
    animation-delay: 1.58s;
  }
  .project-nav__dot {
    animation: intro-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .project-nav__dot:nth-child(1) {
    animation-delay: 1.48s;
  }
  .project-nav__dot:nth-child(2) {
    animation-delay: 1.56s;
  }
  .project-nav__dot:nth-child(3) {
    animation-delay: 1.64s;
  }
  .project-nav__dot:nth-child(4) {
    animation-delay: 1.72s;
  }
  .project-nav__dot:nth-child(5) {
    animation-delay: 1.8s;
  }
  .project-nav__dot:nth-child(6) {
    animation-delay: 1.88s;
  }
}
.project-card__heading .h1 {
  overflow-wrap: break-word;
  min-width: 0;
}

.is-panels .projects.is-wheeling .page-title,
.is-panels .projects.is-wheeling .projects__list {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   À PROPOS / COMPONENTS
   Page À propos : photos, compétences, galerie de passions et mise en page.
   ========================================================================== */
/* ==========================================================================
   POP PHOTO / COMPONENT
   Photo arrondie + personnage détouré qui dépasse du cadre par le haut.
   Figma : D3E51607 (À propos) et 4F47F197 (Photographie)
   --pop-ratio : proportion de l'ensemble / --pop-bg : hauteur du cadre
   ========================================================================== */
.pop-photo {
  position: relative;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: var(--pop-ratio, 282/273);
}

.pop-photo__frame {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--pop-bg, 80.6%);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
}
.pop-photo__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 2px 4px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 2px 0 rgba(255, 255, 255, 0.15), inset 0 -6px 6px 0 rgba(0, 0, 0, 0.25);
}

.pop-photo__bg {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.pop-photo__cutout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: bottom;
     object-position: bottom;
}

/* ==========================================================================
   SKILLS / COMPONENT
   Barres de compétences (Hard Skill). Couleur et pourcentage par élément :
   style="--skill: 95%; --skill-color: #3718f6"
   ========================================================================== */
.skills {
  gap: var(--spacing-sm);
}

.skill {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: clamp(0.75rem, 0.71vw + 0.61rem, 1.25rem);
  -moz-column-gap: var(--spacing-xs);
       column-gap: var(--spacing-xs);
}

.skill__name {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-secondary);
  font-size: clamp(0.88rem, 0.54vw + 0.77rem, 1.25rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
}
.skill__name::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: var(--skill-color);
}

.skill__value {
  color: rgba(0, 0, 0, 0.75);
  font-size: clamp(0.81rem, 0.63vw + 0.69rem, 1.25rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.skill__bar {
  grid-column: 1/-1;
  height: clamp(0.31rem, 0.45vw + 0.22rem, 0.63rem);
  border-radius: 10px;
  background: linear-gradient(var(--skill-color), var(--skill-color)) 0 0/var(--skill) 100% no-repeat, rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   PASSIONS / COMPONENT
   Galerie de passions en collage (images qui se chevauchent).
   Tailles et chevauchements en --cq (1 % de la largeur du bloc .passion, mesuré en JS :
   voir ContainerUnits.js; « 1cqw » en secours) — % de la largeur du bloc .passion,
   524px dans Figma) : le collage garde ses proportions sur tous les écrans.
   Le texte réserve en dessous la place du chevauchement (padding-bottom),
   pour qu'une image ne passe jamais par-dessus le texte.
   ========================================================================== */
.passions {
  gap: var(--spacing-lg);
}

.passion {
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}

.passion__row {
  display: grid;
  align-items: start;
  -moz-column-gap: var(--spacing-md);
       column-gap: var(--spacing-md);
}

.passion__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-sm);
  min-width: 0;
}
.passion__text p {
  font-size: clamp(0.75rem, 0.36vw + 0.68rem, 1rem);
  line-height: clamp(1rem, 0.45vw + 0.91rem, 1.31rem);
}
.passion__text .h2 {
  font-size: clamp(1.63rem, 0.36vw + 1.55rem, 1.88rem);
}

.passion__text--right .h2 {
  text-align: right;
}

.passion__img {
  position: relative;
  flex: 0 0 auto;
}

/* Photographie
   ========================================================================== */
.passion--photo .passion__row {
  grid-template-columns: calc(48.3 * var(--cq, 1cqw)) minmax(0, 1fr);
}

.passion__pop {
  --pop-ratio: 253 / 170;
  --pop-bg: 84.7%;
  width: 100%;
  margin-bottom: calc(7.4 * var(--cq, 1cqw));
}

.passion--photo .passion__text {
  padding-bottom: calc(14.3 * var(--cq, 1cqw) + var(--spacing-xs));
}

.passion__img--photo-2 {
  align-self: flex-end;
  width: calc(62.2 * var(--cq, 1cqw));
  aspect-ratio: 326/209;
  margin-top: calc(-14.3 * var(--cq, 1cqw));
}

.passion__img--photo-3 {
  width: calc(42.9 * var(--cq, 1cqw));
  aspect-ratio: 225/209;
  margin-top: calc(-20 * var(--cq, 1cqw));
}

/* Construire des PC
   ========================================================================== */
.passion--pc .passion__row {
  grid-template-columns: minmax(0, 1fr) calc(48.3 * var(--cq, 1cqw));
  align-items: center;
}

.passion--pc .passion__text {
  padding-bottom: calc(4.2 * var(--cq, 1cqw) + var(--spacing-xs));
}

.passion__img--pc-1 {
  width: 100%;
  aspect-ratio: 253/209;
}

.passion__img--pc-2 {
  width: calc(74.2 * var(--cq, 1cqw));
  aspect-ratio: 389/247;
  margin-top: calc(-4.2 * var(--cq, 1cqw));
}

.passion__img--pc-3 {
  align-self: flex-end;
  width: calc(53.6 * var(--cq, 1cqw));
  aspect-ratio: 281/204;
  margin-top: calc(-27.1 * var(--cq, 1cqw));
}

/* Le dessin
   ========================================================================== */
.passion--dessin {
  gap: var(--spacing-md);
}

.passion__img--dessin {
  width: 100%;
  aspect-ratio: 524/328;
}

/* ==========================================================================
   ABOUT / COMPONENT
   Mise en page de la page À propos. Figma : Page apropos (desktop) / Apropos mobile
   Desktop : colonne gauche fixe (sticky), colonne droite qui défile sous la navigation.
   ========================================================================== */
.about {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding-block: var(--spacing-md) var(--spacing-3xl);
}
@media (min-width: 1024px) {
  .about {
    display: grid;
    grid-template-columns: minmax(282px, var(--about-aside, 27.5%)) minmax(0, 49%) minmax(0, 1fr);
    container-type: inline-size;
    align-items: start;
    gap: var(--spacing-lg);
    padding-top: 12px;
  }
}

/* Colonne de gauche
   ========================================================================== */
.about__aside {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
@media (min-width: 1024px) and (min-height: 720px) {
  .about__aside {
    position: sticky;
    top: 108px;
  }
  .is-panels .about__aside {
    top: 12px;
  }
}

@media (min-width: 1024px) {
  .about__title {
    padding-left: 20px;
  }
}

.about__intro {
  display: flex;
  align-items: flex-end;
  gap: var(--spacing-md);
}
.about__intro > .info-card {
  flex: 1;
}
@media (min-width: 1024px) {
  .about__intro {
    flex-direction: column;
    align-items: stretch;
  }
  .about__intro > .info-card {
    flex: none;
  }
}

.about__photo {
  --pop-ratio: 800 / 821;
  --pop-bg: 80.4%;
  width: 150px;
}
@media (min-width: 1024px) {
  .about__photo {
    width: 100%;
  }
}

/* Colonne de droite
   ========================================================================== */
.about__main {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
@media (min-width: 1024px) {
  .about__main {
    margin-top: 74px;
  }
}

.about__identity {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid currentColor;
  text-shadow: 0 0 20px #000;
}
@media (min-width: 1024px) {
  .about__identity {
    display: none;
  }
}

.about__identity-role {
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
}

.about__copyright {
  margin-top: var(--spacing-md);
  font-family: var(--font-secondary);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-medium);
  text-align: center;
}

/* Animation 3D du vaisseau (ShipAnimation.js)
   Position reprise de la maquette Figma (Page apropos, 1440 × 720) : le rendu
   2560 × 1440 y fait 1603px de large (0.6262) pour un contenu de 1200px.
   Toutes les mesures sont en cqw (largeur de .about) pour garder les proportions :
   1px du rendu = 0.052181cqw. L'aile gauche passe derrière les cartes et le
   vaisseau est coupé par le bord droit de l'écran.
   ========================================================================== */
.panel--a-propos {
  overflow-x: clip;
}

.about__ship {
  display: none;
}
@media (min-width: 1024px) {
  .about__ship {
    grid-column: 3;
    grid-row: 1;
    position: sticky;
    top: 31%;
    z-index: -1;
    display: block;
    pointer-events: none;
  }
}
.about__ship canvas {
  position: absolute;
  top: -35.5cqw;
  left: -71.5cqw;
  width: 133.58cqw;
  height: auto;
  transition: opacity 0.4s ease;
}

.about__ship-img {
  display: block;
  width: 81.14cqw;
  max-width: none;
  height: auto;
  margin-left: -19.06cqw;
  transition: opacity 0.4s ease;
}
.about__ship.is-loading .about__ship-img, .about__ship.is-playing .about__ship-img {
  opacity: 0;
}

.about__ship.is-done canvas {
  opacity: 0;
}

.ship-intro {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: calc(min(1440px, 100vw / var(--zoom) - var(--gutter) * 2) * 1.3358);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ==========================================================================
   ANIMATIONS D'ARRIVÉE / COMPONENT
   À l'arrivée (≈ 2 s) : en-tête (voir projets) → lettres de « À Propos » →
   photo (cadre et personnage ensemble) → soft skills qui popent un par un
   → cartes de droite qui glissent en cascade.
   Quand on les voit (Reveal.js, classe .is-visible) : les barres de compétences
   se remplissent pendant que les % comptent, et chaque passion de la galerie
   se construit (photo, texte, images du collage).
   Keyframes partagées : generic/animations.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .about__title .page-title__title .split__letter,
  .about__identity-name .split__letter {
    animation: intro-letter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(0.3s + var(--i) * 0.05s);
  }
  .about__title .page-title__subtitle,
  .about__identity-role {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
  }
  .about__photo {
    animation: intro-rise 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
  }
  .about__intro .info-card {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
  }
  .about__intro .info-card__list li {
    animation: intro-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .about__intro .info-card__list li:nth-child(1) {
    animation-delay: 1.08s;
  }
  .about__intro .info-card__list li:nth-child(2) {
    animation-delay: 1.16s;
  }
  .about__intro .info-card__list li:nth-child(3) {
    animation-delay: 1.24s;
  }
  .about__intro .info-card__list li:nth-child(4) {
    animation-delay: 1.32s;
  }
  .about__intro .info-card__list li:nth-child(5) {
    animation-delay: 1.4s;
  }
  .about__intro .info-card__list li:nth-child(6) {
    animation-delay: 1.48s;
  }
  .about__intro .info-card__list li:nth-child(7) {
    animation-delay: 1.56s;
  }
  .about__intro .info-card__list li:nth-child(8) {
    animation-delay: 1.64s;
  }
  .about__main > .info-card {
    animation: intro-from-right 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .about__main > .info-card:nth-child(1) {
    animation-delay: 0.72s;
  }
  .about__main > .info-card:nth-child(2) {
    animation-delay: 0.84s;
  }
  .about__main > .info-card:nth-child(3) {
    animation-delay: 0.96s;
  }
  .about__main > .info-card:nth-child(4) {
    animation-delay: 1.08s;
  }
  .about__main > .info-card:nth-child(5) {
    animation-delay: 1.2s;
  }
  .about__main > .info-card:nth-child(6) {
    animation-delay: 1.32s;
  }
  .about__main .info-card__btn .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.6s both;
  }
  /* Barres de compétences (Reveal.js) : vides, puis se remplissent une à une
     ========================================================================== */
  .has-js .skills .skill__bar {
    background-size: 0% 100%, auto;
    transition: background-size 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .has-js .skills.is-visible .skill__bar {
    background-size: var(--skill) 100%, auto;
  }
  .skills .skill:nth-child(1) .skill__bar {
    transition-delay: 0.15s;
  }
  .skills .skill:nth-child(2) .skill__bar {
    transition-delay: 0.27s;
  }
  .skills .skill:nth-child(3) .skill__bar {
    transition-delay: 0.39s;
  }
  .skills .skill:nth-child(4) .skill__bar {
    transition-delay: 0.51s;
  }
  .skills .skill:nth-child(5) .skill__bar {
    transition-delay: 0.63s;
  }
  .skills .skill:nth-child(6) .skill__bar {
    transition-delay: 0.75s;
  }
  .skills .skill:nth-child(7) .skill__bar {
    transition-delay: 0.87s;
  }
  .skills .skill:nth-child(8) .skill__bar {
    transition-delay: 0.99s;
  }
  .skills.is-visible .skill__name::before {
    animation: intro-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .skills.is-visible .skill:nth-child(1) .skill__name::before {
    animation-delay: 0.15s;
  }
  .skills.is-visible .skill:nth-child(2) .skill__name::before {
    animation-delay: 0.27s;
  }
  .skills.is-visible .skill:nth-child(3) .skill__name::before {
    animation-delay: 0.39s;
  }
  .skills.is-visible .skill:nth-child(4) .skill__name::before {
    animation-delay: 0.51s;
  }
  .skills.is-visible .skill:nth-child(5) .skill__name::before {
    animation-delay: 0.63s;
  }
  .skills.is-visible .skill:nth-child(6) .skill__name::before {
    animation-delay: 0.75s;
  }
  .skills.is-visible .skill:nth-child(7) .skill__name::before {
    animation-delay: 0.87s;
  }
  .skills.is-visible .skill:nth-child(8) .skill__name::before {
    animation-delay: 0.99s;
  }
  /* Galerie de passions (Reveal.js) : chaque passion se construit à l'écran
     ========================================================================== */
  .has-js .passion:not(.is-visible) .pop-photo,
  .has-js .passion:not(.is-visible) .passion__text,
  .has-js .passion:not(.is-visible) .passion__img,
  .has-js .passion:not(.is-visible) .btn {
    opacity: 0;
  }
  .passion.is-visible .pop-photo {
    animation: intro-rise 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .passion.is-visible .passion__text {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  }
  .passion.is-visible .passion__img {
    animation: intro-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .passion.is-visible .passion__img:nth-of-type(1) {
    animation-delay: 0.42s;
  }
  .passion.is-visible .passion__img:nth-of-type(2) {
    animation-delay: 0.54s;
  }
  .passion.is-visible .passion__img:nth-of-type(3) {
    animation-delay: 0.66s;
  }
  .passion.is-visible .passion__img:nth-of-type(4) {
    animation-delay: 0.78s;
  }
  .passion.is-visible .btn {
    animation: intro-rise 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
  }
}
/* ==========================================================================
   LIEN « UTILISATION DE L'IA » / COMPONENT
   Sous la carte Soft Skills : mène à la section « Utilisation de l'IA ».
   ========================================================================== */
.about__ia-link {
  display: block;
  align-self: center;
  text-align: center;
  color: var(--color-white);
  font-size: var(--font-size-subtitle);
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.about__ia-link:focus-visible {
  color: var(--color-secondary);
  text-decoration-color: currentColor;
}
@media (hover: hover){
.about__ia-link:hover {
  color: var(--color-secondary);
  text-decoration-color: currentColor;
}
}
@media (max-width: 1023px) {
  .about__ia-link {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .about__ia-link {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.5s both;
  }
}

.about__intro:has(.about__ia-link) {
  flex-wrap: wrap;
}

@media (min-width: 1024px) and (min-height: 720px) {
  .is-panels .about__photo {
    width: min(100%, (100vh / var(--zoom, 1) - var(--header-h, 100px) - 339px) / 1.027);
    margin-inline: auto;
  }
}
/* ==========================================================================
   CONTACT / COMPONENTS
   Page Contact : champs du formulaire, formulaire et tuiles de contact.
   ========================================================================== */
/* ==========================================================================
   FIELD / COMPONENT
   Champ de formulaire (libellé + saisie). Figma : Frame 160 / 161 / 201
   ========================================================================== */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xs);
  min-width: 0;
}

.field--grow {
  flex: 1;
}

.field__label {
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
}

.field__input {
  width: 100%;
  padding: clamp(0.75rem, 0.36vw + 0.68rem, 1rem) clamp(1rem, 0.71vw + 0.86rem, 1.5rem);
  border: 2px solid var(--color-white);
  border-radius: var(--radius-md);
  background-color: rgba(251, 115, 250, 0.05);
  box-shadow: var(--shadow-btn);
  color: var(--color-text);
  font-size: var(--font-size-content);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-content);
  transition: border-color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.field__input::-moz-placeholder {
  color: rgba(0, 0, 0, 0.3);
}
.field__input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}
.field__input:focus {
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.field__input--area {
  flex: 1;
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   CONTACT / COMPONENT
   Page Contact. Figma : Page contact (desktop) — formulaire + 6 tuiles.
   Proportions Figma sur 1200px : formulaire 793px, tuiles 382px, espace 24px.
   ========================================================================== */
.contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding-block: var(--spacing-md) var(--spacing-3xl);
}
@media (min-width: 1024px) {
  .contact {
    padding-block: 12px var(--spacing-2xl);
  }
}

@media (min-width: 1024px) {
  .contact__title {
    padding-left: 20px;
  }
}

.contact__layout {
  display: grid;
  gap: var(--spacing-lg);
}
@media (min-width: 1024px) {
  .contact__layout {
    grid-template-columns: minmax(0, 793fr) minmax(0, 382fr);
    align-items: stretch;
  }
}

/* Formulaire
   ========================================================================== */
.contact-form {
  gap: var(--spacing-sm);
}

.contact-form__label {
  font-weight: var(--font-weight-semibold);
  font-size: clamp(0.75rem, 0.36vw + 0.68rem, 1rem);
}

.contact-form__intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__lead {
  color: rgba(0, 0, 0, 0.6);
  font-size: var(--font-size-subtitle);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.contact-form__row {
  display: grid;
  gap: var(--spacing-sm);
}
@media (min-width: 768px) {
  .contact-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-form__submit {
  width: 100%;
  margin-top: var(--spacing-2xs);
}
.contact-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form__status {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-content);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-content);
  text-align: center;
  animation: intro-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.contact-form__status.is-success {
  background-color: rgba(65, 30, 248, 0.1);
  color: var(--color-primary);
}
.contact-form__status.is-error {
  background-color: rgba(224, 0, 0, 0.08);
  color: #c00000;
}

/* Tuiles de contact
   ========================================================================== */
.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--spacing-md) var(--spacing-lg);
}
@media (min-width: 768px) and (max-width: 1023px) {
  .contact-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.contact-links > li:last-child:nth-child(odd) {
  grid-column: 1/-1;
}

.tile--contact {
  min-height: clamp(7.5rem, 2.5vw + 7rem, 9.25rem);
  padding: var(--spacing-sm);
  font-family: var(--font-primary);
  font-size: clamp(0.81rem, 0.27vw + 0.76rem, 1rem);
  font-weight: var(--font-weight-bold);
  text-align: center;
  border-radius: var(--radius-xl);
}
.tile--contact .icon {
  transition: filter 0.25s ease;
}
.tile--contact:focus-visible .icon {
  filter: brightness(0) invert(1);
}
@media (hover: hover){
.tile--contact:hover .icon {
  filter: brightness(0) invert(1);
}
}

/* ==========================================================================
   Desktop : toute la page tient dans l'écran, sans défiler.
   Le formulaire et les tuiles prennent la hauteur restante sous le titre :
   la zone « message » et les tuiles s'ajustent à la hauteur de l'écran.
   (Écran très bas, moins de 600px : la page peut défiler, pour rester lisible.)
   ========================================================================== */
@media (min-width: 1024px) and (min-height: 600px) {
  .is-panels .panel--contact .contact {
    flex: 1;
    min-height: 0;
    padding-block: 12px clamp(1.5rem, 1.43vw + 1.21rem, 2.5rem);
  }
  .is-panels .panel--contact .contact__layout {
    flex: 1;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }
  .is-panels .panel--contact .contact-form {
    min-height: 0;
  }
  .is-panels .panel--contact .field--grow {
    min-height: 0;
  }
  .is-panels .panel--contact .field__input--area {
    min-height: 60px;
    resize: none;
  }
  .is-panels .panel--contact .contact-links {
    min-height: 0;
    grid-auto-rows: minmax(0, 1fr);
    gap: clamp(0.75rem, 0.36vw + 0.68rem, 1rem) clamp(1rem, 0.71vw + 0.86rem, 1.5rem);
  }
  .is-panels .panel--contact .tile--contact {
    min-height: 0;
    gap: clamp(0.38rem, 0.36vw + 0.3rem, 0.63rem);
  }
  .is-panels .panel--contact .icon--contact {
    width: auto;
    height: clamp(28px, 6vh, 54px);
    aspect-ratio: 1;
  }
}
/* ==========================================================================
   ANIMATIONS D'ARRIVÉE / COMPONENT
   À l'arrivée (≈ 2 s) : en-tête (voir projets) → lettres de « Contact » →
   formulaire qui glisse, « Écrivez-moi » lettre par lettre, champs qui montent
   un par un, bouton Envoyer qui rebondit → tuiles qui popent en cascade et
   leurs icônes qui se dandinent. Keyframes partagées : generic/animations.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .contact__title .page-title__title .split__letter {
    animation: intro-letter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(0.3s + var(--i) * 0.05s);
  }
  .contact__title .page-title__subtitle {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
  }
  .contact-form {
    animation: intro-slide-left 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
  }
  .contact-form__label {
    animation: intro-from-left 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
  }
  .contact-form__intro .split__letter {
    animation: intro-letter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(0.9s + var(--i) * 0.04s);
  }
  .contact-form__lead {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both;
  }
  .contact-form .field {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .contact-form__row .field:nth-child(1) {
    animation-delay: 1.3s;
  }
  .contact-form__row .field:nth-child(2) {
    animation-delay: 1.4s;
  }
  .contact-form > .field {
    animation-delay: 1.5s;
  }
  .contact-form__submit {
    animation: intro-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.7s both;
  }
  .contact-links > li {
    animation: intro-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .contact-links > li:nth-child(1) {
    animation-delay: 0.88s;
  }
  .contact-links > li:nth-child(2) {
    animation-delay: 0.96s;
  }
  .contact-links > li:nth-child(3) {
    animation-delay: 1.04s;
  }
  .contact-links > li:nth-child(4) {
    animation-delay: 1.12s;
  }
  .contact-links > li:nth-child(5) {
    animation-delay: 1.2s;
  }
  .contact-links > li:nth-child(6) {
    animation-delay: 1.28s;
  }
  .contact-links > li:nth-child(7) {
    animation-delay: 1.36s;
  }
  .contact-links > li:nth-child(8) {
    animation-delay: 1.44s;
  }
  .panel--contact:not(.is-intro-done) .contact-links > li:nth-child(1) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.38s both;
  }
  .panel--contact:not(.is-intro-done) .contact-links > li:nth-child(2) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.46s both;
  }
  .panel--contact:not(.is-intro-done) .contact-links > li:nth-child(3) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.54s both;
  }
  .panel--contact:not(.is-intro-done) .contact-links > li:nth-child(4) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.62s both;
  }
  .panel--contact:not(.is-intro-done) .contact-links > li:nth-child(5) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.7s both;
  }
  .panel--contact:not(.is-intro-done) .contact-links > li:nth-child(6) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.78s both;
  }
  .panel--contact:not(.is-intro-done) .contact-links > li:nth-child(7) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.86s both;
  }
  .panel--contact:not(.is-intro-done) .contact-links > li:nth-child(8) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.94s both;
  }
  .field__label {
    display: inline-block;
    transition: translate 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
  }
  .field:focus-within .field__label {
    translate: 4px -2px;
    color: var(--color-secondary);
  }
}
/* ==========================================================================
   IA / COMPONENTS
   Section « Utilisation de l'IA » (qui a fait quoi).
   Les deux contributions sont visibles côte à côte, sans clic (rétroaction BÊTA) :
   Desktop : [Loïc | ce que j'ai réalisé]  [ce que Claude a apporté | Claude]
   Mobile : Loïc et sa liste, puis Claude et sa liste.
   ========================================================================== */
.ia {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding-block: var(--spacing-md) var(--spacing-3xl);
}
@media (min-width: 1024px) {
  .ia {
    gap: var(--spacing-md);
    padding-block: 12px var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .ia__title {
    padding-left: 20px;
  }
}

.ia__layout {
  display: grid;
  gap: var(--spacing-2xl);
}
@media (min-width: 1024px) {
  .ia__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 1.43vw + 1.21rem, 2.5rem);
  }
}

/* Colonne : personnage + liste
   ========================================================================== */
.ia-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  min-width: 0;
}
@media (min-width: 1024px) {
  .ia-col {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 0.71vw + 0.86rem, 1.5rem);
    min-height: 0;
  }
}

@media (min-width: 1024px) {
  .ia-col--claude {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr);
  }
  .ia-col--claude .ia-person {
    order: 2;
  }
}

.ia-col__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
  min-width: 0;
}
@media (min-width: 1024px) {
  .ia-col__content {
    align-self: stretch;
    min-height: 0;
  }
}

.ia-col__title {
  font-family: var(--font-secondary);
  font-size: clamp(1.25rem, 0.36vw + 1.18rem, 1.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  text-align: center;
}
@media (min-width: 1024px) {
  .ia-col__title {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .ia-col__scroll {
    flex: 1;
    min-height: 0;
    margin-inline: -6px;
    padding: 6px 6px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 48px), transparent);
            mask-image: linear-gradient(180deg, #000 calc(100% - 48px), transparent);
  }
}

/* Personnages (calques de Figma)
   ========================================================================== */
.ia-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(100%, 200px);
  margin: 0;
}
@media (min-width: 1024px) {
  .ia-person {
    width: 100%;
  }
}

.ia-person__visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}
.ia-person__visual > * {
  grid-area: 1/1;
  display: block;
  height: auto;
  pointer-events: none;
}
.ia-person__visual .is-missing {
  visibility: hidden;
}

.ia-person__cutout,
.ia-person__torso,
.ia-person__head {
  position: relative;
}

.ia-person__card {
  position: relative;
  width: 100%;
  aspect-ratio: 604/558;
  margin-top: 33.9%;
  border-radius: 20px;
  box-shadow: var(--shadow-image);
}

.ia-person__photo {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  -o-object-fit: cover;
     object-fit: cover;
}

.ia-person__cutout {
  width: 100%;
  aspect-ratio: 596/720;
  margin-top: 5.5%;
  border-radius: 0 0 20px 20px;
}

.ia-person__card:not(.ia-person__card--photo) {
  background-color: #efefef;
}

.ia-person__torso {
  width: 100%;
  aspect-ratio: 558/420;
  margin-top: 51%;
  border-radius: 0 0 20px 20px;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: bottom;
     object-position: bottom;
}

.ia-person__head {
  width: 76.7%;
  margin-top: 0;
  aspect-ratio: 182.95/200;
}

.ia-person__name {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 0.36vw + 0.93rem, 1.25rem);
  font-weight: var(--font-weight-medium);
  line-height: 1.1;
  text-align: center;
}

/* Cartes
   ========================================================================== */
.ia-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.ia-item {
  gap: 6px;
  padding: clamp(0.88rem, 0.18vw + 0.84rem, 1rem) clamp(1rem, 0.36vw + 0.93rem, 1.25rem);
  border-radius: var(--radius-lg);
}

.ia-item__title {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 0.18vw + 0.96rem, 1.13rem);
  font-weight: var(--font-weight-medium);
  line-height: 1.15;
}

.ia-item__verb {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.ia-item__text {
  font-size: clamp(0.81rem, 0.09vw + 0.79rem, 0.88rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

/* Desktop : la section tient dans l'écran (les listes prennent la hauteur restante)
   ========================================================================== */
@media (min-width: 1024px) and (min-height: 600px) {
  .is-panels .panel--ia .ia {
    flex: 1;
    min-height: 0;
  }
  .is-panels .panel--ia .ia__layout {
    flex: 1;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }
}
/* ==========================================================================
   ANIMATIONS D'ARRIVÉE / COMPONENT
   Lettres du titre → Loïc arrive de la gauche, Claude de la droite →
   cartes des deux listes qui montent en cascade.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .ia__title .page-title__title .split__letter {
    animation: intro-letter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(0.3s + var(--i) * 0.04s);
  }
  .ia__title .page-title__subtitle {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
  }
  .ia-person--loic {
    animation: intro-from-left-far 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
  }
  .ia-person--claude {
    animation: intro-from-right-far 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both;
  }
  .ia-col__title {
    animation: intro-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both;
  }
  .ia-list > li {
    animation: intro-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .ia-list > li:nth-child(1) {
    animation-delay: 0.96s;
  }
  .ia-list > li:nth-child(2) {
    animation-delay: 1.02s;
  }
  .ia-list > li:nth-child(3) {
    animation-delay: 1.08s;
  }
  .ia-list > li:nth-child(4) {
    animation-delay: 1.14s;
  }
  .ia-list > li:nth-child(5) {
    animation-delay: 1.2s;
  }
  .ia-list > li:nth-child(6) {
    animation-delay: 1.26s;
  }
  .ia-list > li:nth-child(7) {
    animation-delay: 1.32s;
  }
  .ia-list > li:nth-child(8) {
    animation-delay: 1.38s;
  }
  .ia-list > li:nth-child(9) {
    animation-delay: 1.44s;
  }
  .ia-list > li:nth-child(10) {
    animation-delay: 1.5s;
  }
}
/* ==========================================================================
   ERREUR 404 / COMPONENTS
   Page introuvable (404.html) : thème sombre, « 404 » en dégradé du site,
   bouton de retour et tuiles d'accès rapide. Tient dans un seul écran.
   ========================================================================== */
.erreur {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 1.43vw + 1.71rem, 3rem);
  min-height: calc(100svh / var(--zoom, 1) - var(--header-h, 100px));
  padding-block: var(--spacing-md) var(--spacing-lg);
  color: var(--color-text-inverse);
  text-align: center;
}

.erreur__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 0.36vw + 0.68rem, 1rem);
}

.erreur__code {
  display: flex;
  justify-content: center;
  font-family: var(--font-secondary);
  font-size: clamp(96px, 22vh, 200px);
  font-weight: var(--font-weight-extrabold);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.erreur__digit {
  display: inline-block;
  background: linear-gradient(180deg, #8f7bff 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 24px rgba(247, 23, 249, 0.35));
}

.erreur__title {
  font-size: var(--font-size-h1);
}

.erreur__text {
  max-width: 560px;
  opacity: 0.75;
  font-size: var(--font-size-content);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-content);
}

.erreur__btn {
  margin-top: var(--spacing-xs);
}

.erreur__links {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  text-align: left;
}
.erreur__links .quick-access__title {
  color: var(--color-text-inverse);
}
.erreur__links .quick-access__title::after {
  background-color: rgba(255, 255, 255, 0.35);
}

/* Animations : les chiffres tombent un par un puis flottent; le « 0 » tourne
   ========================================================================== */
@keyframes erreur-float {
  50% {
    translate: 0 -10px;
  }
}
@keyframes erreur-spin {
  to {
    rotate: 1turn;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .erreur__digit {
    animation: intro-letter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both, erreur-float 3.2s ease-in-out infinite;
  }
  .erreur__digit:nth-child(1) {
    animation-delay: 0.3s, 1.6s;
  }
  .erreur__digit:nth-child(2) {
    animation-delay: 0.45s, 2s;
  }
  .erreur__digit:nth-child(3) {
    animation-delay: 0.6s, 2.4s;
  }
  .erreur__digit--zero {
    animation: intro-letter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s both, erreur-float 3.2s ease-in-out 2s infinite, erreur-spin 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s;
  }
  .erreur__title {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
  }
  .erreur__text {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
  }
  .erreur__btn {
    animation: intro-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s both;
  }
  .erreur__links .quick-access__title {
    animation: intro-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both;
  }
  .erreur__links .quick-access__title::after {
    transform-origin: left center;
    animation: intro-line 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.35s both;
  }
  .erreur__links .quick-access__item {
    animation: intro-jump 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .erreur__links .quick-access__item:nth-child(1) {
    animation-delay: 1.42s;
  }
  .erreur__links .quick-access__item:nth-child(2) {
    animation-delay: 1.54s;
  }
  .erreur__links .quick-access__item:nth-child(3) {
    animation-delay: 1.66s;
  }
}
.page--404 .footer {
  display: none;
}

/* ==========================================================================
   FICHE PROJET / PAGE
   Page d'un projet (ex. projet-vaisseau.html).
   Figma : M2 / Page Projet / Desktop 1446
   ========================================================================== */
.body--projet::before {
  background-image: linear-gradient(180deg, rgba(255, 234, 255, 0.25) 0%, rgba(208, 199, 255, 0.25) 100%), linear-gradient(var(--color-white), var(--color-white));
}

.body--projet::after {
  content: "";
  position: fixed;
  inset: -60px 0 0 -60px;
  z-index: -1;
  background: url("../assets/images/img-motif-cubes.webp") 0 0/30px 60px repeat;
  animation: cubes-defilement 10s linear infinite;
  pointer-events: none;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .body--projet::after {
    animation: none;
  }
}

@keyframes cubes-defilement {
  to {
    transform: translate(60px, 60px);
  }
}
.projet {
  position: relative;
  z-index: 0;
}

.body--projet .header {
  position: relative;
  z-index: 1;
  transform: translateZ(0);
}
@media (min-width: 1024px) {
  .body--projet .header {
    position: sticky;
    z-index: 10;
  }
}

.body--projet .header--nav {
  color: var(--color-text-inverse);
  --nav-halo: rgba(0, 0, 0, 0.45);
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (min-width: 1024px) {
  .body--projet .header--nav::before {
    height: calc(100% + 60px);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    backdrop-filter: none;
  }
  .body--projet .header--nav::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: calc(100% + 10px);
    backdrop-filter: blur(6px);
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
  }
  .body--projet .header--nav.is-scrolled::after {
    opacity: 1;
  }
  .body--projet .header--nav::before {
    transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .body--projet .header--nav.is-scrolled {
    --nav-halo: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
  }
  .body--projet .header--nav.is-scrolled::before {
    height: calc(100% + 24px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.75) 75%, rgba(255, 255, 255, 0) 100%);
  }
  .body--projet .header--nav.is-scrolled::after {
    height: calc(100% + 24px);
    backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
  }
}

.projet {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 0.71vw + 1.36rem, 2rem);
}

.projet .media-frame {
  border-radius: var(--radius-lg);
}
.projet .media-frame img {
  position: absolute;
  inset: 0;
}

/* En-tête : image en fond, titre, date, catégorie
   ========================================================================== */
.projet-hero {
  position: relative;
  color: var(--color-text-inverse);
  transform: translateZ(0);
}

.projet-hero__bg {
  position: absolute;
  top: -300px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--color-black);
}
.projet-hero__bg img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.8;
}
.projet-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(127.68deg, rgba(61, 61, 61, 0.5) 18.111%, rgba(255, 255, 255, 0.05) 70.01%, rgba(28, 2, 164, 0.25) 100%);
}

.projet-hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--spacing-lg);
  min-height: clamp(10.63rem, 7.14vw + 9.2rem, 15.63rem);
}
@media (min-width: 1024px) {
  .projet-hero__inner {
    gap: 0;
  }
}
.projet-hero__inner {
  padding-block: clamp(0.5rem, 0.63vw + 0.38rem, 0.94rem) clamp(1rem, 0.71vw + 0.86rem, 1.5rem);
}

.projet-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-md);
}
@media (min-width: 1024px) {
  .projet-hero__top {
    padding-left: var(--spacing-md);
  }
}

.projet-hero__category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  max-width: clamp(4.75rem, 2.05vw + 4.34rem, 6.19rem);
  font-size: clamp(0.63rem, 0.36vw + 0.55rem, 0.88rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 0.85;
  text-align: center;
}

@media (min-width: 1024px) {
  .projet-hero__bottom {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: end;
    -moz-column-gap: 25px;
         column-gap: 25px;
  }
}

.projet-hero__thumb {
  display: none;
}
@media (min-width: 1024px) {
  .projet-hero__thumb {
    display: flex;
    margin-bottom: -54px;
  }
}

.projet-hero__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-xs) var(--spacing-lg);
}

.projet-hero__title {
  max-width: 13.3em;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

.projet-hero__date {
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

/* Présentation : Contexte / Rôle, logiciels, crédits, IA
   ========================================================================== */
.projet-intro {
  display: grid;
  gap: clamp(1rem, 0.71vw + 0.86rem, 1.5rem);
  padding-top: clamp(0rem, 1.96vw + -0.39rem, 1.38rem);
}
@media (min-width: 768px) {
  .projet-intro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.projet-intro__top {
  display: grid;
  gap: clamp(1rem, 0.71vw + 0.86rem, 1.5rem);
}
@media (min-width: 768px) {
  .projet-intro__top {
    grid-column: 1/-1;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 272px);
  }
}

.projet-intro__main {
  display: grid;
  grid-template-areas: "tabs" "panel";
  gap: clamp(0.75rem, 1.07vw + 0.54rem, 1.5rem);
}
@media (min-width: 1024px) {
  .projet-intro__main {
    grid-template-areas: "tabs panel";
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
  }
}
.projet-intro__main .tabs {
  grid-area: tabs;
}

.projet-intro__panel {
  grid-area: panel;
  align-self: stretch;
  min-height: clamp(8.75rem, 4.29vw + 7.89rem, 11.75rem);
}

.projet-intro__panel[hidden] {
  display: flex;
  visibility: hidden;
}

.projet-intro__tools-list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.projet-intro__credits .info-card__bullets {
  gap: 2px;
}

/* Processus
   ========================================================================== */
.projet-process {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 0.71vw + 1.36rem, 2rem);
  padding-top: clamp(0rem, 1.96vw + -0.39rem, 1.38rem);
}

.step > .h2 + p,
.step__text > .h2 + p {
  margin-top: calc(6px - var(--spacing-sm));
}

.step__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.projet-process__duo {
  display: grid;
  gap: clamp(1rem, 2.86vw + 0.43rem, 3rem);
}
@media (min-width: 1024px) {
  .projet-process__duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.projet-process__steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.projet-process__duo-img {
  aspect-ratio: 576/437;
}
.projet-process__duo-img img {
  -o-object-position: 50% 6%;
     object-position: 50% 6%;
}
@media (min-width: 1024px) {
  .projet-process__duo-img {
    aspect-ratio: auto;
  }
}

.step__row {
  display: grid;
  gap: clamp(1rem, 1.43vw + 0.71rem, 2rem);
}
@media (min-width: 768px) {
  .step__row {
    grid-template-columns: minmax(0, 453fr) minmax(0, 651fr);
    align-items: start;
  }
}

.step--wide .step__img {
  aspect-ratio: 651/250;
}
@media (min-width: 768px) {
  .step--wide .step__img {
    aspect-ratio: auto;
    height: clamp(11.25rem, 10.42vw + 6.25rem, 15.63rem);
  }
}

.projet-band {
  position: relative;
  padding-block: clamp(2rem, 2.86vw + 1.43rem, 4rem);
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.15);
  color: var(--color-text-inverse);
}

.projet-band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--color-black);
}
.projet-band__bg img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.5;
}
.projet-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(117.79deg, rgba(61, 61, 61, 0.9) 18.111%, rgba(255, 255, 255, 0.09) 70.01%, rgba(28, 2, 164, 0.45) 100%);
  box-shadow: inset 0 8px 15px 0 rgba(255, 255, 255, 0.3);
}

.projet-band__inner {
  display: grid;
  gap: clamp(1rem, 1.43vw + 0.71rem, 2rem);
}
@media (min-width: 1024px) {
  .projet-band__inner {
    grid-template-columns: minmax(0, 466fr) minmax(0, 702fr);
    align-items: start;
  }
}

.projet-band__img {
  aspect-ratio: 702/379;
}

.step--dark {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: clamp(0rem, 2.14vw + -0.43rem, 1.5rem) clamp(0rem, 2.86vw + -0.57rem, 2rem);
}
.step--dark .info-card__label {
  color: rgba(255, 255, 255, 0.5);
}
.step--dark .info-card__label .icon {
  color: var(--color-white);
}

.projet-process__render {
  display: grid;
  gap: clamp(1rem, 2.86vw + 0.43rem, 3rem);
}
@media (min-width: 1024px) {
  .projet-process__render {
    grid-template-columns: minmax(0, 487fr) minmax(0, 665fr);
  }
}

.step--media .step__img {
  flex: 1;
  min-height: clamp(10rem, 6.79vw + 8.64rem, 14.75rem);
}

@media (min-width: 1024px) {
  .projet-process__render .carousel {
    padding-bottom: var(--spacing-lg);
  }
}

/* Défis et apprentissages : bande violette pleine largeur
   ========================================================================== */
.projet-learn {
  padding-block: clamp(2rem, 2.14vw + 1.57rem, 3.5rem);
  background: radial-gradient(120% 140% at 0% 0%, rgba(247, 23, 249, 0.35) 0%, transparent 55%), linear-gradient(135deg, rgba(65, 30, 248, 0.75) 0%, rgba(110, 60, 250, 0.6) 100%);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15), inset 0 8px 15px 10px rgba(255, 255, 255, 0.3);
  color: var(--color-text-inverse);
}

.projet-learn__inner {
  display: grid;
  gap: var(--spacing-md);
  justify-items: center;
}
@media (min-width: 768px) {
  .projet-learn__inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 1.07vw + 0.79rem, 1.75rem);
  }
}

.projet-learn__arrow {
  display: grid;
  place-items: center;
  width: clamp(1.38rem, 0.54vw + 1.27rem, 1.75rem);
  aspect-ratio: 1;
  color: var(--color-white);
  filter: drop-shadow(0 4px 8px rgba(22, 0, 137, 0.35));
  rotate: 90deg;
}
@media (min-width: 768px) {
  .projet-learn__arrow {
    rotate: 0deg;
  }
}
.projet-learn__arrow .icon {
  width: 100%;
  height: 100%;
}

.learn-card {
  display: flex;
  flex-direction: column;
  gap: clamp(0.88rem, 0.54vw + 0.77rem, 1.25rem);
  align-self: stretch;
  width: 100%;
  padding: clamp(1.25rem, 0.71vw + 1.11rem, 1.75rem) clamp(1.25rem, 1.07vw + 1.04rem, 2rem);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow: 0 10px 30px rgba(22, 0, 137, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

.learn-card__head {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.learn-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(2.75rem, 0.71vw + 2.61rem, 3.25rem);
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-icon);
  color: var(--color-primary);
}
.learn-card__icon .icon {
  width: 58%;
  height: 58%;
}
.learn-card--defis .learn-card__icon {
  color: var(--color-secondary);
}

.learn-card__kicker {
  opacity: 0.75;
  font-size: clamp(0.75rem, 0.18vw + 0.71rem, 0.88rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.learn-card__title {
  font-family: var(--font-secondary);
  font-size: clamp(1.38rem, 0.54vw + 1.27rem, 1.75rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
}

.learn-card__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learn-card__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding-block: clamp(0.63rem, 0.18vw + 0.59rem, 0.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-secondary);
  font-size: clamp(0.94rem, 0.27vw + 0.88rem, 1.13rem);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

.learn-card__num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(1.88rem, 0.36vw + 1.8rem, 2.13rem);
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  font-size: clamp(0.75rem, 0.09vw + 0.73rem, 0.81rem);
  font-weight: var(--font-weight-extrabold);
}
.learn-card--defis .learn-card__num {
  background: linear-gradient(180deg, #ff6bfb 0%, var(--color-secondary) 100%);
  box-shadow: 0 3px 8px rgba(247, 23, 249, 0.45);
  color: var(--color-white);
}
.learn-card--appris .learn-card__num {
  background: var(--color-white);
  box-shadow: 0 3px 8px rgba(22, 0, 137, 0.3);
  color: var(--color-primary);
}

/* Produit final
   ========================================================================== */
.projet-final {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.projet-final__video {
  aspect-ratio: 1200/500;
}
.projet-final__video::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(65, 30, 248, 0.1);
}

.projet-final__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.projet-final__video.is-playing {
  aspect-ratio: 16/9;
  background-color: var(--color-black);
}
.projet-final__video.is-playing::before {
  display: none;
}
.projet-final__video.is-playing img,
.projet-final__video.is-playing .projet-final__play {
  display: none;
}

.projet-final__glass {
  position: absolute;
  inset: 6.25%;
  z-index: -1;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), inset 0 -2px 6px rgba(0, 0, 0, 0.15);
}

.projet-final__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  color: var(--color-white);
  transform: translate(-50%, -50%);
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (hover: hover){
.projet-final__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
}

/* Pied de page : autres projets + contact (_partials/_projet-footer.html)
   ========================================================================== */
.projet-more {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.14vw + 1.07rem, 3rem);
  padding-block: clamp(1.5rem, 2.14vw + 1.07rem, 3rem) var(--spacing-lg);
}

.projet-more__head {
  display: flex;
  flex: 1;
  align-items: center;
  gap: clamp(0.75rem, 1.07vw + 0.54rem, 1.5rem);
}
.projet-more__head p {
  margin-top: 2px;
  font-weight: 400;
}

.projet-more__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.43vw + 0.71rem, 2rem);
}
@media (min-width: 480px) {
  .projet-more__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .projet-more__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.projet-more__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(0.75rem, 0.18vw + 0.71rem, 0.88rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  text-align: center;
}
.projet-more__link .thumb {
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (hover: hover){
.projet-more__link:hover .thumb {
  transform: translateY(-4px);
}
}

.projet-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 0.71vw + 0.86rem, 1.5rem);
}

.projet-contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.43vw + 0.21rem, 1.5rem);
}

.copyright {
  font-family: var(--font-secondary);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  text-align: center;
}

/* Étapes des fiches (gabarit _fiche.html) : cartes côte à côte, média sous le texte
   ========================================================================== */
.projet-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.43vw + 0.71rem, 2rem);
}

.projet-steps__row {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.43vw + 0.71rem, 2rem);
}
@media (min-width: 1024px) {
  .projet-steps__row {
    flex-direction: row;
    align-items: stretch;
  }
  .projet-steps__row > .step--card {
    flex: var(--grow, var(--ratio, 1.6)) 1 0;
    min-width: 0;
  }
  .projet-steps__row > .step--full {
    flex: 1 1 0;
  }
}

.step--card {
  --media-max-h: clamp(20rem, 12.5vw + 17.5rem, 28.75rem);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.step--card .step__text {
  gap: clamp(0.5rem, 0.36vw + 0.43rem, 0.75rem);
}
.step--card .step__text > .h2 + p {
  margin-top: 0;
}

.step__media {
  align-self: center;
  width: min(100%, var(--media-max-h) * var(--ratio, 1.6));
}
@media (min-width: 1024px) {
  .step__media {
    width: 100%;
  }
}
.step__media {
  margin-top: auto;
  aspect-ratio: var(--ratio, 1.6);
}
.step__media img,
.step__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: var(--media-position, 50% 50%);
     object-position: var(--media-position, 50% 50%);
}

@media (min-width: 1024px) {
  .step__media--remplir {
    flex: 1;
    width: 100%;
    min-height: 220px;
    aspect-ratio: auto;
  }
}

@media (min-width: 1024px) {
  .step--full {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(58%, var(--media-max-h) * var(--ratio, 1.6));
    grid-template-rows: auto 1fr;
    -moz-column-gap: clamp(1rem, 1.43vw + 0.71rem, 2rem);
         column-gap: clamp(1rem, 1.43vw + 0.71rem, 2rem);
  }
  .step--full .info-card__label {
    grid-column: 1;
  }
  .step--full .step__text {
    grid-column: 1;
    align-self: start;
  }
  .step--full .step__media {
    grid-column: 2;
    grid-row: 1/span 2;
    width: 100%;
    margin-top: 0;
  }
}

/* ==========================================================================
   ANIMATIONS D'ARRIVÉE / COMPONENT (fiches projet)
   1. En-tête (au chargement) : l'image de fond dézoome, le bouton retour et la
      catégorie popent, la vignette arrive en tournant, le titre se dévoile
      comme un rideau, la date glisse.
   2. Sections (au défilement, utils/ScrollReveal.js : .reveal → .is-visible) :
      chaque type de section a sa propre animation.
   Keyframes partagées : generic/animations.
   ========================================================================== */
.projet,
.projet-more {
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  /* 1. En-tête
     ========================================================================== */
  .projet-hero__bg img {
    animation: intro-ken-burns 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet-hero__top .icon-btn {
    animation: intro-tilt-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
  }
  .projet-hero__category {
    animation: intro-from-right-far 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
  }
  .projet-hero__thumb {
    animation: intro-tilt-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
  }
  .projet-hero__title {
    animation: intro-curtain 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both;
  }
  .projet-hero__date {
    animation: intro-from-right-far 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
  }
  /* 2. Sections : cachées jusqu'à leur arrivée à l'écran
     ========================================================================== */
  .reveal:not(.is-visible) {
    opacity: 0;
  }
  .projet-intro__main.is-visible .tabs__btn {
    animation: intro-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .projet-intro__main.is-visible .tabs__btn:nth-child(2) {
    animation-delay: 0.1s;
  }
  .projet-intro__main.is-visible .projet-intro__panel {
    animation: intro-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  }
  .projet-intro__tools.is-visible {
    animation: intro-from-right-far 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  }
  .projet-intro__tools.is-visible .projet-intro__tools-list li {
    animation: intro-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .projet-intro__tools.is-visible .projet-intro__tools-list li:nth-child(1) {
    animation-delay: 0.5s;
  }
  .projet-intro__tools.is-visible .projet-intro__tools-list li:nth-child(1) .icon {
    animation: icon-wiggle 0.6s ease-in-out 0.9s both;
  }
  .projet-intro__tools.is-visible .projet-intro__tools-list li:nth-child(2) {
    animation-delay: 0.6s;
  }
  .projet-intro__tools.is-visible .projet-intro__tools-list li:nth-child(2) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1s both;
  }
  .projet-intro__tools.is-visible .projet-intro__tools-list li:nth-child(3) {
    animation-delay: 0.7s;
  }
  .projet-intro__tools.is-visible .projet-intro__tools-list li:nth-child(3) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.1s both;
  }
  .projet-intro__tools.is-visible .projet-intro__tools-list li:nth-child(4) {
    animation-delay: 0.8s;
  }
  .projet-intro__tools.is-visible .projet-intro__tools-list li:nth-child(4) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.2s both;
  }
  .projet-intro__tools.is-visible .projet-intro__tools-list li:nth-child(5) {
    animation-delay: 0.9s;
  }
  .projet-intro__tools.is-visible .projet-intro__tools-list li:nth-child(5) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.3s both;
  }
  .projet-intro__tools.is-visible .projet-intro__tools-list li:nth-child(6) {
    animation-delay: 1s;
  }
  .projet-intro__tools.is-visible .projet-intro__tools-list li:nth-child(6) .icon {
    animation: icon-wiggle 0.6s ease-in-out 1.4s both;
  }
  .projet-intro__credits.is-visible {
    animation: intro-from-left-far 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet-intro__credits.is-visible .info-card__bullets li {
    animation: intro-from-left 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet-intro__credits.is-visible .info-card__bullets li:nth-child(1) {
    animation-delay: 0.28s;
  }
  .projet-intro__credits.is-visible .info-card__bullets li:nth-child(2) {
    animation-delay: 0.36s;
  }
  .projet-intro__credits.is-visible .info-card__bullets li:nth-child(3) {
    animation-delay: 0.44s;
  }
  .projet-intro__credits.is-visible .info-card__bullets li:nth-child(4) {
    animation-delay: 0.52s;
  }
  .projet-intro__credits.is-visible .info-card__bullets li:nth-child(5) {
    animation-delay: 0.6s;
  }
  .projet-intro__credits.is-visible .info-card__bullets li:nth-child(6) {
    animation-delay: 0.68s;
  }
  .projet-intro__ia.is-visible {
    animation: intro-alert 1s ease-out 0.15s both;
  }
  .projet .section-title.is-visible,
  .projet-more .section-title.is-visible {
    animation: intro-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .projet .section-title.is-visible::before, .projet .section-title.is-visible::after,
  .projet-more .section-title.is-visible::before,
  .projet-more .section-title.is-visible::after {
    animation: intro-grow 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  }
  .projet .section-title.is-visible::before,
  .projet-more .section-title.is-visible::before {
    transform-origin: right center;
  }
  .projet .section-title.is-visible::after,
  .projet-more .section-title.is-visible::after {
    transform-origin: left center;
  }
  .projet-steps__row.is-visible .step:nth-child(1) {
    animation: intro-from-left-far 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet-steps__row.is-visible .step:nth-child(2) {
    animation: intro-from-right-far 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  }
  .projet-steps__row.is-visible .step--full {
    animation: intro-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet-steps__row.is-visible .step--full .step__media {
    animation: intro-from-right-far 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  }
  .projet-steps__row.is-visible .info-card__label .icon {
    animation: icon-wiggle 0.6s ease-in-out 0.6s both;
  }
  .projet-steps__row.is-visible .step__media {
    animation: intro-wipe 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  }
  .projet-process__duo.is-visible .step {
    animation: intro-from-left-far 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet-process__duo.is-visible .step:nth-child(2) {
    animation-delay: 0.15s;
  }
  .projet-process__duo.is-visible .projet-process__duo-img {
    animation: intro-zoom-blur 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  }
  .projet .step--wide.is-visible {
    animation: intro-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet .step--wide.is-visible .step__img {
    animation: intro-wipe 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
  }
  .projet-band.is-visible .projet-band__bg {
    animation: intro-wipe 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet-band.is-visible .step--dark {
    animation: intro-from-left-far 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  }
  .projet-band.is-visible .projet-band__img {
    animation: intro-zoom-blur 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
  }
  .projet-process__render.is-visible .step--media {
    animation: intro-from-left-far 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet-process__render.is-visible .carousel {
    animation: intro-from-right-far 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  }
  .projet-compare__intro.is-visible {
    animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet-compare .compare.is-visible {
    animation: intro-zoom-blur 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  }
  .projet-compare .compare.is-visible .compare__handle::after {
    animation: handle-pulse 0.5s ease-in-out 1s 2;
  }
  .projet-learn.is-visible {
    animation: intro-wipe 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet-learn.is-visible .learn-card--defis {
    animation: intro-from-left-far 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  }
  .projet-learn.is-visible .learn-card--appris {
    animation: intro-from-right-far 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
  }
  .projet-learn.is-visible .projet-learn__arrow {
    animation: intro-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
  }
  .projet-learn.is-visible .learn-card__item {
    animation: intro-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet-learn.is-visible .learn-card__item:nth-child(1) {
    animation-delay: 0.75s;
  }
  .projet-learn.is-visible .learn-card__item:nth-child(2) {
    animation-delay: 0.85s;
  }
  .projet-learn.is-visible .learn-card__item:nth-child(3) {
    animation-delay: 0.95s;
  }
  .projet-learn.is-visible .learn-card__item:nth-child(4) {
    animation-delay: 1.05s;
  }
  .projet-learn.is-visible .learn-card__item:nth-child(5) {
    animation-delay: 1.15s;
  }
  .projet-learn.is-visible .learn-card__item:nth-child(6) {
    animation-delay: 1.25s;
  }
  .projet-final__video.is-visible {
    animation: intro-zoom-blur 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet-final__video.is-visible .projet-final__play {
    animation: intro-tilt-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item {
    animation: intro-tilt-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(even) {
    animation-name: intro-pop;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(1) {
    animation-delay: 0.07s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(2) {
    animation-delay: 0.14s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(3) {
    animation-delay: 0.21s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(4) {
    animation-delay: 0.28s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(5) {
    animation-delay: 0.35s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(6) {
    animation-delay: 0.42s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(7) {
    animation-delay: 0.49s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(8) {
    animation-delay: 0.56s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(9) {
    animation-delay: 0.63s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(10) {
    animation-delay: 0.7s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(11) {
    animation-delay: 0.77s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(12) {
    animation-delay: 0.84s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(13) {
    animation-delay: 0.91s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(14) {
    animation-delay: 0.98s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(15) {
    animation-delay: 1.05s;
  }
  .projet-gallery__grid.is-visible .projet-gallery__item:nth-child(16) {
    animation-delay: 1.12s;
  }
  .projet-more .info-card.is-visible {
    animation: intro-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .projet-more .info-card.is-visible .projet-more__list > li {
    animation: intro-rise 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .projet-more .info-card.is-visible .projet-more__list > li:nth-child(1) {
    animation-delay: 0.3s;
  }
  .projet-more .info-card.is-visible .projet-more__list > li:nth-child(2) {
    animation-delay: 0.4s;
  }
  .projet-more .info-card.is-visible .projet-more__list > li:nth-child(3) {
    animation-delay: 0.5s;
  }
  .projet-more .info-card.is-visible .projet-more__list > li:nth-child(4) {
    animation-delay: 0.6s;
  }
  .projet-more .info-card.is-visible .projet-more__list > li:nth-child(5) {
    animation-delay: 0.7s;
  }
  .projet-more .info-card.is-visible .projet-more__list > li:nth-child(6) {
    animation-delay: 0.8s;
  }
  .projet-more .info-card.is-visible .projet-contact__socials > li {
    animation: intro-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .projet-more .info-card.is-visible .projet-contact__socials > li:nth-child(1) {
    animation-delay: 0.28s;
  }
  .projet-more .info-card.is-visible .projet-contact__socials > li:nth-child(2) {
    animation-delay: 0.36s;
  }
  .projet-more .info-card.is-visible .projet-contact__socials > li:nth-child(3) {
    animation-delay: 0.44s;
  }
  .projet-more .info-card.is-visible .projet-contact__socials > li:nth-child(4) {
    animation-delay: 0.52s;
  }
  .projet-more .info-card.is-visible .projet-contact__socials > li:nth-child(5) {
    animation-delay: 0.6s;
  }
  .projet-more .info-card.is-visible .projet-contact__socials > li:nth-child(6) {
    animation-delay: 0.68s;
  }
  .projet-more .info-card.is-visible .icon--feature {
    animation: icon-wiggle 0.6s ease-in-out 0.4s both;
  }
}
@keyframes handle-pulse {
  50% {
    scale: 1.3;
  }
}
@media (max-width: 479px) {
  .projet-contact__socials .app-btn {
    width: 42px;
    height: 42px;
    padding: 8px;
  }
}
/* ==========================================================================
   COMPARE / COMPONENT
   Comparateur avant / après (CompareSlider.js) : deux vidéos ou images
   superposées, la poignée révèle l'une ou l'autre.
   ========================================================================== */
.projet-compare {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.projet-compare__intro {
  max-width: 70ch;
}

.compare {
  --pos: 50%;
  width: 100%;
  touch-action: pan-y;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: ew-resize;
}

.compare__layer {
  position: absolute;
  inset: 0;
}
.compare__layer video,
.compare__layer img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  pointer-events: none;
}

.compare__layer--apres {
  clip-path: inset(0 0 0 var(--pos));
}

.compare__label {
  position: absolute;
  top: var(--spacing-sm);
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-white);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-extrabold);
  backdrop-filter: blur(6px);
}

.compare__layer--avant .compare__label {
  left: var(--spacing-sm);
}

.compare__layer--apres .compare__label {
  right: var(--spacing-sm);
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 3px;
  background: var(--color-white);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
  pointer-events: none;
}
.compare__handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  color: var(--color-white);
  font-size: 20px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 2px;
  transform: translate(-50%, -50%);
}

.compare__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare__range:focus-visible ~ .compare__handle, .compare__range:focus-visible {
  outline: none;
}

.compare:has(.compare__range:focus-visible) .compare__handle::after {
  outline: 3px solid var(--color-white);
  outline-offset: 3px;
}

/* ==========================================================================
   GALERIE / COMPONENT
   Galerie de photos en colonnes (mosaïque) dans les fiches projet.
   Clic sur une photo → Lightbox.js (flèches pour naviguer).
   ========================================================================== */
.projet-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.projet-gallery__grid {
  -moz-columns: 2;
       columns: 2;
  -moz-column-gap: clamp(0.75rem, 1.07vw + 0.54rem, 1.5rem);
       column-gap: clamp(0.75rem, 1.07vw + 0.54rem, 1.5rem);
}
@media (min-width: 1024px) {
  .projet-gallery__grid {
    -moz-columns: 3;
         columns: 3;
  }
}

.projet-gallery__item {
  margin-bottom: clamp(0.75rem, 1.07vw + 0.54rem, 1.5rem);
  -moz-column-break-inside: avoid;
       break-inside: avoid;
}
.projet-gallery__item .media-frame img {
  position: static;
  display: block;
  height: auto;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (hover: hover){
.projet-gallery__item:hover .media-frame img {
  transform: scale(1.04);
}
}

/* ==========================================================================
   Modèle 3D interactif (ModelViewer)
   L'image (poster) reste visible jusqu'à ce que le modèle soit prêt,
   puis le canevas 3D apparaît en fondu par-dessus.
   ========================================================================== */
.model-viewer {
  background: radial-gradient(circle at 50% 45%, #3a2a8a, #110d24 75%);
}

.model-viewer__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.is-ready .model-viewer__canvas {
  opacity: 1;
}

.model-viewer__poster {
  transition: opacity 0.6s ease;
}
.is-ready .model-viewer__poster {
  opacity: 0;
}

.model-viewer__progress {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background-color: var(--color-white);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s linear;
}
.is-loading .model-viewer__progress {
  opacity: 0.8;
}

.model-viewer__hint {
  position: absolute;
  inset: auto 0 clamp(0.63rem, 0.71vw + 0.48rem, 1.13rem);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline: auto;
  width: -moz-fit-content;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: clamp(0.5rem, 0.18vw + 0.46rem, 0.63rem) clamp(0.88rem, 0.54vw + 0.77rem, 1.25rem);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  font-size: clamp(0.81rem, 0.27vw + 0.76rem, 1rem);
  font-weight: var(--font-weight-bold);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.5s ease, translate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.model-viewer__hint::before {
  content: "↔";
  font-size: 1.3em;
  line-height: 1;
  animation: hint-swipe 1.2s ease-in-out infinite;
}
.is-hinting .model-viewer__hint {
  opacity: 1;
  translate: 0 0;
}
.is-hinting.has-interacted .model-viewer__hint {
  opacity: 0;
}

@keyframes hint-swipe {
  50% {
    translate: 6px 0;
  }
}
.model-viewer__badge {
  position: absolute;
  top: clamp(0.63rem, 0.54vw + 0.52rem, 1rem);
  left: clamp(0.63rem, 0.54vw + 0.52rem, 1rem);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  font-size: clamp(0.75rem, 0.18vw + 0.71rem, 0.88rem);
  font-weight: var(--font-weight-bold);
  pointer-events: none;
}
.model-viewer__badge .icon {
  flex: 0 0 auto;
  width: 2.6em;
  height: 1.37em;
}

.model-viewer__hint--touch {
  display: none;
}

@media (hover: none) {
  .model-viewer__hint--mouse {
    display: none;
  }
  .model-viewer__hint--touch {
    display: inline;
  }
}
/* ==========================================================================
   Lightbox : image en grand dans une superposition
   ========================================================================== */
.is-zoomable {
  cursor: zoom-in;
  transition: filter 0.3s ease;
}
@media (hover: hover){
.is-zoomable:hover {
  filter: brightness(1.06);
}
}
.is-zoomable:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.has-lightbox {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  padding: clamp(3.5rem, 1.43vw + 3.21rem, 4.5rem) clamp(1rem, 7.14vw + -0.43rem, 6rem);
  background-color: rgba(10, 6, 30, 0.82);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
  touch-action: pan-y;
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  width: 100%;
  height: 100%;
  min-height: 0;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  min-height: 0;
  max-height: calc(100% - 40px);
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.lightbox__caption {
  max-width: 60ch;
  color: var(--color-white);
  font-size: clamp(0.81rem, 0.27vw + 0.76rem, 1rem);
  text-align: center;
  opacity: 0.85;
}

.lightbox__count {
  position: absolute;
  top: clamp(1rem, 0.71vw + 0.86rem, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: clamp(0.81rem, 0.18vw + 0.78rem, 0.94rem);
  opacity: 0.75;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(2.5rem, 1.07vw + 2.29rem, 3.25rem);
  height: clamp(2.5rem, 1.07vw + 2.29rem, 3.25rem);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover){
.lightbox__btn:hover {
  background-color: rgba(255, 255, 255, 0.24);
}
}
.lightbox__btn:active {
  transform: scale(0.94);
}
.lightbox__btn:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 3px;
}
.lightbox__btn .icon--lightbox {
  width: 45%;
  height: 45%;
}

.lightbox__close {
  top: clamp(0.75rem, 1.07vw + 0.54rem, 1.5rem);
  right: clamp(0.75rem, 1.07vw + 0.54rem, 1.5rem);
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  margin-top: calc(clamp(2.5rem, 1.07vw + 2.29rem, 3.25rem) / -2);
}
.lightbox__prev:active,
.lightbox__next:active {
  transform: scale(0.94);
}

.lightbox__prev,
.lightbox__next {
  border: 0;
  background-color: transparent;
  backdrop-filter: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (hover: hover){
.lightbox__prev:hover,
.lightbox__next:hover {
  background-color: transparent;
  opacity: 1;
}
}

.lightbox__prev {
  left: clamp(0.5rem, 1.43vw + 0.21rem, 1.5rem);
}
.lightbox__prev .icon--lightbox {
  transform: translateX(-8%);
}

.lightbox__next {
  right: clamp(0.5rem, 1.43vw + 0.21rem, 1.5rem);
}
.lightbox__next .icon--lightbox {
  transform: translateX(8%);
}

.lightbox__close .icon--lightbox {
  width: 60%;
  height: 60%;
}

/* Variante vidéo (VideoModal) : lecteur YouTube 16:9 centré
   ========================================================================== */
.lightbox__video {
  width: min(100%, 1200px, (100vh / var(--zoom, 1) - 160px) * 16 / 9);
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-black);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Bulle d'info au survol (Figma : « Text hover »)
   <li class="has-tooltip" data-tooltip="Blender">…</li>
   La bulle et sa pointe sont dessinées en CSS (::after et ::before).
   ========================================================================== */
.has-tooltip {
  position: relative;
  transition: opacity 0.18s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.has-tooltip .icon {
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  transition: filter 0.25s ease;
}
.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  z-index: 20;
  padding: clamp(0.38rem, 0.18vw + 0.34rem, 0.5rem) clamp(0.75rem, 0.36vw + 0.68rem, 1rem);
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #f5f4fc 0%, #ebe9f6 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: var(--color-black);
  font-family: var(--font-primary);
  font-size: clamp(0.75rem, 0.27vw + 0.7rem, 0.94rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}
.has-tooltip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  z-index: 21;
  width: 18px;
  height: 18px;
  border-bottom-right-radius: 5px;
  background-color: #ebe9f6;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.has-tooltip::after, .has-tooltip::before {
  opacity: 0;
  transform: translate(-50%, 6px) scale(0.85);
  transform-origin: 50% 100%;
  transition: opacity 0.18s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.has-tooltip::before {
  transform: translate(-50%, 6px) scale(0.85) rotate(45deg);
  transform-origin: 50% 50%;
}
.has-tooltip:focus-within {
  z-index: 30;
  transform: scale(1.1);
}
@media (hover: hover){
.has-tooltip:hover {
  z-index: 30;
  transform: scale(1.1);
}
}
.has-tooltip:focus-within .icon {
  filter: drop-shadow(0 6px 2px rgba(0, 0, 0, 0.2));
}
@media (hover: hover){
.has-tooltip:hover .icon {
  filter: drop-shadow(0 6px 2px rgba(0, 0, 0, 0.2));
}
}
.has-tooltip:focus-within::after, .has-tooltip:focus-within::before {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
@media (hover: hover){
.has-tooltip:hover::after, .has-tooltip:hover::before {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
}
.has-tooltip:focus-within::before {
  transform: translate(-50%, 0) scale(1) rotate(45deg);
}
@media (hover: hover){
.has-tooltip:hover::before {
  transform: translate(-50%, 0) scale(1) rotate(45deg);
}
}

.has-tooltip--below::after {
  top: calc(100% + 14px);
  bottom: auto;
}
.has-tooltip--below::before {
  top: calc(100% + 7px);
  bottom: auto;
  border-bottom-right-radius: 0;
  border-top-left-radius: 5px;
  background-color: #f5f4fc;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.has-tooltip--below::after, .has-tooltip--below::before {
  transform: translate(-50%, -6px) scale(0.85);
}
.has-tooltip--below::after {
  transform-origin: 50% 0;
}
.has-tooltip--below::before {
  transform: translate(-50%, -6px) scale(0.85) rotate(45deg);
}

/* ==========================================================================
   TOAST / COMPONENT
   Bulle de confirmation en bas de l'écran (ex. « Adresse copiée! », EmailCopy.js).
   Même verre que les boutons du site.
   ========================================================================== */
.toast {
  position: fixed;
  bottom: clamp(1.25rem, 1.07vw + 1.04rem, 2rem);
  left: 50%;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35em;
  max-width: calc(100% - 32px);
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 2px solid var(--color-white);
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  box-shadow: var(--shadow-ui), 0 10px 30px rgba(65, 30, 248, 0.25);
  backdrop-filter: var(--blur-ui);
  color: var(--color-text);
  font-size: var(--font-size-content);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  translate: -50% 150%;
  opacity: 0;
  pointer-events: none;
  transition: translate 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
.toast strong {
  color: var(--color-primary);
  font-weight: var(--font-weight-extrabold);
}
.toast.is-visible {
  translate: -50% 0;
  opacity: 1;
}

/* ==========================================================================
   INSTA MENU / COMPONENT
   Petit menu pour choisir le compte Instagram (art ou photo), InstagramMenu.js.
   Même verre que les bulles et boutons du site.
   ========================================================================== */
.insta-menu {
  position: fixed;
  z-index: 120;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 230px;
  padding: 8px;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  box-shadow: var(--shadow-ui), 0 12px 32px rgba(65, 30, 248, 0.22);
  backdrop-filter: var(--blur-ui);
  color: var(--color-text);
}
.insta-menu.is-open {
  display: flex;
  animation: intro-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.insta-menu__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: background-color 0.2s ease;
}
.insta-menu__item:focus-visible {
  background-color: rgba(65, 30, 248, 0.08);
  color: var(--color-text);
  outline: none;
}
@media (hover: hover){
.insta-menu__item:hover {
  background-color: rgba(65, 30, 248, 0.08);
  color: var(--color-text);
  outline: none;
}
}

.insta-menu__icon {
  width: 28px;
  height: 28px;
}

.insta-menu__icon--art {
  color: var(--color-secondary);
}

.insta-menu__icon--photo {
  flex: 0 0 auto;
  background-color: var(--color-secondary);
  -webkit-mask: url("../assets/icons/icon-appareil-photo.svg") center/contain no-repeat;
          mask: url("../assets/icons/icon-appareil-photo.svg") center/contain no-repeat;
}

.insta-menu__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.insta-menu__text strong {
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
}
.insta-menu__text span {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
}

/* ==========================================================================
   VOLUME / COMPONENT
   Icône de son de la barre d'état + panneau avec le curseur WakeSlider (Volume.js).
   Même verre que le menu Instagram et les bulles du site.
   ========================================================================== */
.volume {
  position: relative;
}

.volume__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) {
  .volume__btn:hover {
    transform: scale(1.12);
  }
}
.volume__btn:disabled {
  cursor: default;
  transform: none;
}
.volume__btn:focus-visible {
  border-radius: var(--radius-sm);
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.volume.is-muet .volume__btn {
  opacity: 0.4;
}

.volume.is-open .volume__btn::before,
.volume.is-open .volume__btn::after {
  display: none;
}

.volume__panneau {
  position: absolute;
  top: calc(100% + 14px);
  right: -12px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 250px;
  padding: 12px 14px 10px;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  box-shadow: var(--shadow-ui), 0 12px 32px rgba(65, 30, 248, 0.22);
  backdrop-filter: var(--blur-ui);
  color: var(--color-text);
  transform-origin: calc(100% - 24px) 0;
}
.volume__panneau[hidden] {
  display: none;
}
.volume__panneau:not([hidden]) {
  animation: intro-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.volume__titre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
}

.volume__etiquette {
  margin: 4px 0 -6px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
}

.volume__credit {
  margin: 4px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
}
.volume__credit .volume__lien {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (hover: hover){
.volume__credit .volume__lien:hover {
  color: var(--color-secondary);
}
}

.volume__touche {
  padding: 1px 6px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 11px;
}

/* ==========================================================================
   WAKESLIDER (adapté de React Bits, WakeSlider.js)
   ========================================================================== */
.wake-slider {
  --ws-fill: #f5f5f5;
  --ws-track: #27272a;
  --ws-crest: #f5f5f5;
  --ws-height: 56px;
  --ws-gap: 4px;
  --ws-rest: 0.214;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: inherit;
}

.wake-slider__track {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--ws-gap);
  height: var(--ws-height);
  min-height: 44px;
  touch-action: none;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.wake-slider__bar {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: var(--ws-height);
  border-radius: 9999px;
  background: var(--ws-track);
  transform: scaleY(var(--ws-rest));
  transform-origin: 50% 50%;
  transition: background-color 120ms ease;
}
.wake-slider__bar[data-on=true] {
  background: var(--ws-fill);
}

.wake-slider[data-instant=true] .wake-slider__bar {
  transition-duration: 0ms;
}

.wake-slider__crest {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ws-crest);
  opacity: 0;
}

.wake-slider__handle {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  outline: none;
  cursor: inherit;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.wake-slider__handle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.wake-slider__value {
  min-width: 5ch;
  font-family: var(--font-secondary);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-semibold);
  text-align: right;
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .wake-slider__bar {
    transform: scaleY(var(--ws-rest)) !important;
  }
}