/* =========================================================
   Raccoon Design — feuille de style
   Source : Figma « Créations »
   - Desktop | Template de page projet (213:5824)
   - Mobile  | Template de page projet (217:2258) — jusqu'à 679 px
   - Fonctionnement menu mobile (217:2569)
   Icônes : Font Awesome Free 7 (CC BY 4.0)
   ========================================================= */

/* Site sombre déclaré comme tel : empêche le mode sombre forcé des navigateurs
   Android (Chrome, Opera…) d'inverser les couleurs, comme les traits du carrousel */
:root{ color-scheme:dark; }
:root{
  /* Couleurs */
  --bg:            #121212;
  --bg-hover:      #212121;
  --white:         #FFFFFF;
  --lavender:      #E9DFFF;
  --blue-pale:     #C8DCF3;
  --grey-light:    #CECECE;
  --surface:       #342C47;   /* cartes projet, boutons carrousel */
  --surface-dark:  #1E1A27;   /* encarts méthode, bouton LinkedIn */
  --violet-night:  #1D0058;   /* bouton retour */
  --violet-deep:   #350F82;   /* citation */
  --violet:        #6A23F9;   /* bordure encarts méthode */
  --red:           #D04732;   /* tags */
  --red-soft:      #F9DAD5;   /* bordure tags */
  --red-dark:      #AD3C2A;   /* cartes objectifs */
  --coral:         #FF6A53;   /* thématiques, ombre cartes, bordure barre mobile */
  --muted-50:      rgba(255,255,255,0.5);
  --muted-70:      rgba(255,255,255,0.7);

  /* Typo */
  --font-sans: 'Poppins', sans-serif;
  --font-mono: Consolas, 'Inconsolata', monospace;

  /* Mise en page */
  --container: 1200px;
  --gutter: 40px;

  /* Rayons */
  --radius-xs: 4px;
  --radius-s: 6px;
  --radius-m: 8px;
  --radius-l: 16px;
  --radius-pill: 1000px;

  /* Interaction des éléments à ombre portée (inspirée de memphi.dev) */
  --press-duration: 150ms;
  --press-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  min-height:100vh;
  color:var(--white);
  font-family:var(--font-sans);
  font-size:14px;
  line-height:normal;
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
  position:relative;
  background:
    radial-gradient(782px 528px at -266px 868px, rgba(173,60,42,.45) 12.7%, rgba(173,60,42,0) 100%),
    radial-gradient(1116px 797px at 74.8% calc(100% - 76px), #0F153E 25.5%, rgba(15,21,62,0) 100%),
    var(--bg);
}

h1,h2,h3,p{ margin:0; }
a{ color:inherit; }
img{ display:block; max-width:100%; }
button{ font:inherit; color:inherit; }
a:focus-visible, button:focus-visible{
  outline:2px solid var(--lavender);
  outline-offset:3px;
}

.container{
  width:100%;
  max-width:calc(var(--container) + 2 * var(--gutter));
  margin:0 auto;
  padding:0 var(--gutter);
  position:relative;
  z-index:1;
}

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position:relative;
  z-index:20;
  padding:0 var(--gutter);
}
.header-bar{
  max-width:var(--container);
  margin:0 auto;
  padding:32px 0 24px;
}
.header-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
}
.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  text-transform:uppercase;
  border-radius:var(--radius-s);
}
.brand img{ width:29px; height:40px; object-fit:contain; }
.brand-name{ display:flex; flex-direction:column; gap:8px; }
.brand-name span{ text-box:trim-both cap alphabetic; }
.brand-name .light{ font-weight:200; font-size:18px; }
.brand-name .bold{ font-weight:800; font-size:24px; }

.site-nav{
  display:flex;
  gap:32px;
  font-weight:500;
  font-size:14px;
  text-transform:uppercase;
}
.site-nav a{
  text-decoration:none;
  text-box:trim-both cap alphabetic;
  /* Soulignement corail 2px, 8px sous la ligne de base (Figma 222:833).
     La marge négative garde le texte centré sur le logo. */
  border-bottom:2px solid transparent;
  padding-bottom:8px;
  margin-bottom:-10px;
  transition:border-color .15s;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"]{ border-color:var(--coral); }
.site-nav a:focus-visible{ outline:2px solid #fff; outline-offset:4px; border-radius:2px; }

/* Éléments propres au menu mobile : masqués en desktop */
.menu-toggle,
.mobile-menu{ display:none; }

/* =========================================================
   Bouton retour / fil d'Ariane
   ========================================================= */
.breadcrumb{ padding-top:24px; padding-bottom:40px; }

.btn-pixel{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--surface);
  border:2px solid var(--lavender);
  border-radius:var(--radius-m);
  --shadow-color:var(--lavender);
  color:var(--lavender);
  font-family:var(--font-mono);
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  cursor:pointer;
}
.btn-pixel img{ width:20px; height:20px; }
.btn-back{
  min-height:40px;
  min-width:128px;
  padding:8px 12px 8px 8px;
  background:var(--violet-night);
}
.btn-back span{ text-box:trim-both cap alphabetic; }
.btn-icon{ width:48px; height:32px; padding:0; }
.btn-icon:disabled{ opacity:.4; cursor:default; }
/* Variante corail (page projet, Figma 213:5824) */
.btn-coral{
  background:var(--surface-dark);
  border-color:var(--coral);
  --shadow-color:var(--coral);
  color:var(--white);
}
.btn-coral.btn-back{ border-width:1px; }
.btn-coral.btn-icon{ border-width:2px; }
.btn-coral.btn-icon:disabled{ opacity:1; background:#000; border-color:#7D2E22; --shadow-color:#7D2E22; }
.btn-coral.btn-icon:disabled img{ opacity:.45; }

/* =========================================================
   Éléments à ombre portée : survol et clic
   Repos  : ombre 4px
   Survol : l'élément se soulève (-2px), l'ombre s'allonge à 6px
   Clic   : l'élément s'enfonce (+4px) et recouvre son ombre
   ========================================================= */
.btn-pixel,
.project-card{
  box-shadow:4px 4px 0 0 var(--shadow-color);
  transition:transform var(--press-duration) var(--press-ease),
             box-shadow var(--press-duration) var(--press-ease);
}
.btn-pixel:hover,
.btn-pixel:focus-visible,
.project-card:hover,
.project-card:focus-visible{
  transform:translate(-2px,-2px);
  box-shadow:6px 6px 0 0 var(--shadow-color);
}
.btn-pixel:active,
.project-card:active{
  transform:translate(4px,4px);
  box-shadow:0 0 0 0 var(--shadow-color);
}
.btn-pixel:disabled{
  transform:none;
  box-shadow:4px 4px 0 0 var(--shadow-color);
}
@media (prefers-reduced-motion: reduce){
  .btn-pixel, .project-card{ transition:none; }
}

/* Fond de la page projet (Figma 213:5824) */
body.project-page{
  background:
    radial-gradient(780px 1165px at -283px 273px, rgba(173,60,42,.45) 12.7%, rgba(173,60,42,0) 100%),
    radial-gradient(1116px 852px at 74.8% calc(100% - 81px), #0F153E 25.5%, rgba(15,21,62,0) 100%),
    var(--bg);
}

/* =========================================================
   Titres de section
   ========================================================= */
.section-title{ font-weight:500; font-size:24px; }
.section-title-xl{ font-weight:500; font-size:32px; }
.text p{ font-size:14px; }

/* =========================================================
   Introduction : titre, thématiques, contexte
   ========================================================= */
.intro{
  display:flex;
  flex-direction:column;
  gap:96px;
  padding-bottom:56px;
}
.project-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:40px;
}
.project-head-main{ flex:1 1 0; display:flex; flex-direction:column; gap:8px; }
.project-head h1{ font-weight:500; font-size:40px; line-height:58.8px; letter-spacing:-.56px; color:var(--white); }
.project-client{
  align-self:flex-start;
  padding-top:6px;
  color:var(--coral);
  font-family:var(--font-mono);
  font-size:18px;
  text-decoration:underline;
  text-underline-offset:3px;
}
.project-client:hover{ text-decoration-thickness:2px; }
p.project-client{ text-decoration:none; }

.tags{
  flex:1 1 0;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-content:flex-start;
  gap:8px;
  list-style:none;
  margin:0;
  padding:0;
}
.tag{
  padding:10px 12px;
  background:var(--red);
  border:1px solid var(--red-soft);
  border-radius:var(--radius-pill);
  font-family:var(--font-mono);
  font-weight:700;
  font-size:14px;
  white-space:nowrap;
}
.tag span{ display:block; text-box:trim-both cap alphabetic; }

.context{
  display:flex;
  align-items:flex-start;
  gap:40px;
}
.context .text{
  flex:0 0 400px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.mosaic{ flex:1 1 0; align-self:stretch; display:flex; gap:16px; min-width:0; min-height:236px; }
.mosaic-col{ flex:1 1 0; display:flex; flex-direction:column; gap:16px; min-width:0; }
.mosaic > .visual, .mosaic-col > .visual{ flex:1 1 0; }

.visual{
  position:relative;
  margin:0;
  border-radius:var(--radius-l);
  overflow:hidden;
}
.visual picture{ display:block; width:100%; height:100%; }
.visual img{ width:100%; height:100%; object-fit:cover; }

/* =========================================================
   Objectifs
   ========================================================= */
.objectives{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:32px;
  padding-top:40px;
  padding-bottom:40px;
}
.objective-list{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
  list-style:none;
  margin:0;
  padding:0;
}
.objective{
  padding:24px;
  display:flex;
  align-items:flex-start;
  gap:16px;
  background:var(--surface-dark);
  border:1px solid var(--coral);
  border-radius:var(--radius-m);
}
.objective .num{
  flex:none;
  color:#DFD3D1;
  font-family:var(--font-mono);
  font-size:32px;
  line-height:1.2;
}
.objective p{ font-size:16px; }

/* =========================================================
   Corps de page
   ========================================================= */
.body-sections{
  display:flex;
  flex-direction:column;
  gap:80px;
  padding-top:56px;
  padding-bottom:40px;
}

/* Méthode */
.method{ display:flex; gap:40px; align-items:flex-start; }
.method .text{ flex:1 1 0; display:flex; flex-direction:column; gap:16px; }
.method-content{ display:flex; flex-direction:column; gap:8px; }
.quote-wrap{ padding:16px 144px 16px 0; }
.quote{
  margin:0;
  padding:16px;
  background:var(--violet-deep);
  border-radius:var(--radius-xs);
  font-style:italic;
  font-size:14px;
}
.quote p{ text-box:trim-both cap alphabetic; }

.steps{
  flex:0 0 600px;
  position:relative;
  list-style:none;
  margin:0;
  padding:0 48px 0 0;   /* 8 px + 40 px pour la boucle Itérations ↔ User tests */
}
.step{
  position:relative;
  display:grid;
  grid-template-columns:16px 1fr;
  column-gap:16px;
  padding-bottom:16px;
}
/* segment de ligne de temps sous chaque point */
.step::before{
  content:"";
  position:absolute;
  left:7.5px; top:16px; bottom:0;
  width:1px;
  background:linear-gradient(to bottom, rgba(255,255,255,.22) 85%, rgba(255,255,255,0));
}
.step-dot{
  width:12px; height:12px;
  margin:2px;
  border:2px solid var(--violet);
  border-radius:50%;
  background:var(--bg);
}
.step.is-first .step-dot{ width:16px; height:16px; margin:0; background:var(--violet); border:0; }
.step-card{
  padding:24px;
  background:var(--surface-dark);
  border:1px solid rgba(233,223,255,.14);
  border-radius:2px;
}
.step-card h3{ font-weight:600; font-size:18px; }
.step-loop{
  position:absolute;
  left:calc(100% + 8px);
  top:calc(38px - 4px);  /* du milieu de « Itérations » au milieu de « User tests » */
  overflow:visible;
}

/* En-tête de section avec boutons de défilement */
.section-head{ display:flex; flex-direction:column; gap:8px; }
.section-head p{ font-size:14px; }
.scroll-head{
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-areas:"title buttons" "sub buttons";
  column-gap:24px;
  row-gap:8px;
  padding-right:8px;
}
.scroll-head .section-title{ grid-area:title; }
.scroll-head .sub{ grid-area:sub; font-size:14px; }
.scroll-head .scroll-buttons{ grid-area:buttons; align-self:end; }
.scroll-buttons{ display:flex; gap:16px; }

/* Résultat (carrousel) */
.results{ display:flex; flex-direction:column; gap:24px; }
.carousel{
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.carousel::-webkit-scrollbar{ display:none; }
.carousel > *{ flex:0 0 auto; scroll-snap-align:start; }
.carousel .visual{ width:240px; height:320px; }

/* Impacts */
.impacts{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:32px;
}
.impact-list{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:24px;
  list-style:none;
  margin:0;
  padding:0;
}
.impact{
  width:288px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.impact .value{ font-weight:500; font-size:64px; }
.impact .label{ font-family:var(--font-mono); font-size:20px; }
.impact-note{ font-family:var(--font-mono); font-size:14px; color:rgba(255,255,255,.64); }


/* Le constat */
.findings{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:16px; list-style:none; margin:0; padding:0; }
.finding{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:24px;
  padding:24px;
  background:var(--surface-dark);
  border-left:2px solid var(--coral);
  border-radius:2px;
}
.finding-where{ color:var(--coral); font-family:var(--font-mono); font-weight:700; font-size:16px; }
.finding p{ font-size:14px; }

/* Plusieurs portes, un seul parcours */
.journey{ display:flex; flex-direction:column; gap:32px; }
.journey-steps{
  display:flex;
  gap:24px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-padding-left:8px;
  scrollbar-width:none;
  list-style:none;
  margin:0 -8px;
  padding:0 8px 8px;
}
.journey-steps::-webkit-scrollbar{ display:none; }
.journey-step{
  flex:0 0 288px;
  scroll-snap-align:start;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:16px;
}
/* ligne de frise horizontale (même style que la page Parcours), prolongée jusqu'à l'étape suivante */
.journey-step::before{
  content:"";
  position:absolute;
  left:0; right:-24px; top:38px;
  height:1px;
  background:rgba(255,255,255,.22);
}
.journey-step:last-child::before{ right:0; background:linear-gradient(to right, rgba(255,255,255,.22) 60%, rgba(255,255,255,0)); }
.journey-label{
  height:16px;
  color:rgba(255,255,255,.55);
  font-family:var(--font-mono);
  font-size:14px;
  line-height:16px;
  transition:color .2s;
}
.journey-dot{
  position:relative;
  z-index:1;
  width:13px; height:13px;
  border-radius:50%;
  background:var(--bg);
  border:2px solid var(--coral);
  transition:background-color .2s, transform .2s;
}
.frame.journey-frame{ flex:1 0 auto; height:auto; padding:24px; gap:8px; }
.journey-frame h3{ font-weight:600; font-size:16px; }
.journey-frame p{ font-size:14px; }
.journey-step.is-selected .journey-dot{ background:var(--coral); transform:scale(1.25); }
.journey-step.is-selected .journey-label{ color:var(--white); }
.journey-dot + .frame{ margin-top:8px; }
.journey-frame:focus-visible{ outline:2px solid var(--white); outline-offset:4px; }
.journey-frame .journey-more{ color:rgba(255,255,255,.64); font-style:italic; }
.collab-note{
  margin-top:8px;
  padding:16px;
  background:var(--violet-deep);
  border-radius:2px;
}
.collab-note span{ display:block; margin-bottom:8px; color:var(--lavender); font-family:var(--font-mono); font-weight:700; }

/* Démarche : description sous chaque étape */
.step-card p{ margin-top:8px; font-size:14px; }

/* Ce que les tests ont changé */
.changes{ display:flex; flex-direction:column; gap:32px; padding-top:40px; }
.changes > .section-title-xl{ align-self:center; }
/* Zigzag : une maquette 360 × 720 et son texte, en alternance */
.zz-list{ display:flex; flex-direction:column; gap:80px; list-style:none; margin:0; padding:0; }
.zz-row{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.zz-row:nth-child(even) .zz-visual{ order:2; }
.zz-row:nth-child(even) .zz-text{ justify-self:end; }
.zz-visual{ justify-self:center; margin:0; display:flex; flex-direction:column; gap:8px; }
.zz-screen{ width:360px; height:720px; border-radius:2px; overflow:hidden; background:var(--surface-dark); border:1px solid rgba(233,223,255,.14); }
.zz-frame{ position:relative; }
.zz-screen{ transition:border-color .2s; }
.zz-visual .frame-name{ transition:color .2s; }
.zz-row.is-selected .zz-screen{ border-color:#0C8CE9; }
.zz-row.is-selected .frame-name{ color:#4DA9F0; }
.zz-row.is-selected .frame-handle{ opacity:1; }
.zz-screen img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.zz-placeholder{ display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.55); font-family:var(--font-mono); font-size:14px; }
.zz-text{ display:flex; flex-direction:column; gap:8px; max-width:440px; }
.zz-num{ color:var(--coral); font-family:var(--font-mono); font-weight:700; font-size:16px; }
.zz-text h3{ font-weight:600; font-size:24px; }
.zz-text p{ font-size:16px; }
.testimonial{ padding-bottom:32px; }
.testimonial .quote-wrap{ margin:0 auto; padding:0; max-width:800px; display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; }
.testimonial .quote{ padding:0; max-width:800px; background:none; border-radius:0; color:#B8A9FF; font-size:18px; line-height:1.5; }
.testimonial .quote p{ text-box:none; }
.testimonial .quote-wrap figcaption{ color:var(--lavender); font-family:var(--font-mono); font-size:14px; }

/* User flow */
.userflow{ display:flex; flex-direction:column; gap:24px; }
.userflow .visual{ height:320px; border:1px solid var(--lavender); }

/* Projets similaires */
.related{ display:flex; flex-direction:column; gap:24px; padding:48px 0 80px; }
.related .scroll-head{ grid-template-areas:"title buttons"; align-items:end; padding-right:4px; }
.related .scroll-buttons{ display:none; }
.related-list{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  list-style:none;
  margin:0;
  padding:0 0 4px;
}
.project-card{
  width:240px;
  height:320px;
  padding:24px 16px 16px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:var(--surface-dark);
  border:1px solid var(--coral);
  border-radius:var(--radius-m);
  --shadow-color:var(--coral);
  text-decoration:none;
}
.project-card .client{ font-size:14px; }
.project-card h3{ font-weight:700; font-size:16px; }
.project-card .desc{
  font-size:16px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.project-card .themes{
  margin-top:24px;
  display:flex;
  flex-direction:column;
  gap:4px;
  color:var(--coral);
  font-family:var(--font-mono);
  font-size:16px;
}
.project-card .cta{
  display:flex;
  align-items:center;
  gap:8px;
  padding-right:4px;
  font-weight:600;
  font-size:16px;
}
.project-card .cta span{ flex:1 1 0; }
.project-card .cta img{ width:16px; height:16px; }

/* =========================================================
   Décors (grilles, coup de pinceau)
   Ancrés aux sections, collés au bord de l'écran
   ========================================================= */
.objectives, .method, .impacts, .related{ position:relative; }
/* Sections sans décor : au-dessus des décors des sections voisines */
.intro, .results, .userflow, .journey, .changes, .testimonial{ position:relative; z-index:2; }
.objectives > :not(.deco), .method > :not(.deco), .impacts > :not(.deco), .related > :not(.deco){ position:relative; z-index:1; }
.deco{
  position:absolute;
  pointer-events:none;
  z-index:0;
  background-repeat:no-repeat;
  background-size:100% 100%;
}
.deco-grid-red-tall{
  left:calc(50% - 50vw); top:-27px; width:209px; height:542px;
  background-image:url("images/decor/grid-red-tall.png");
}
.deco-grid-purple-half{
  right:calc(50% - 50vw); top:65px; width:258px; height:400px;
  background-image:url("images/decor/grid-purple-half.png");
}
.deco-grid-red-wide{
  right:calc(50% - 50vw); top:-19px; width:682px; height:134px;
  background-image:url("images/decor/grid-red-wide.png");
}
.deco-brush{
  left:calc(50% - 50vw); top:-19px; width:min(889px, 100vw); height:483px;
  background-size:889px 483px;
  background-image:url("images/decor/brush.png");
}
.deco-grid-corner{
  right:0; bottom:0; width:400px; height:400px;
  background-image:url("images/decor/grid-purple-corner.png");
}

/* =========================================================
   Entre 680 et 1279 px : la mise en page desktop se resserre
   ========================================================= */
@media (max-width: 1100px){
  .objective-list{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width: 960px){
  .zz-row{ gap:32px; }
  .context{ flex-direction:column; align-items:stretch; }
  .context .text{ flex:none; }
  .mosaic{ flex:none; height:300px; }
  .method{ flex-direction:column; }
  .steps{ flex:none; width:100%; }
  .quote-wrap{ padding-right:0; }
}

/* =========================================================
   Mobile : jusqu'à 679 px
   ========================================================= */
@media (max-width: 679px){
  :root{ --gutter:16px; }

  body{
    background:
      radial-gradient(266px 868px at -75px 1439px, rgba(173,60,42,.45) 12.7%, rgba(173,60,42,0) 100%),
      radial-gradient(314px 1268px at 74.8% calc(100% - 126px), #0F153E 25.5%, rgba(15,21,62,0) 100%),
      var(--bg);
  }
  /* page projet mobile (Figma 217:2258) */
  body.project-page{
    background:
      radial-gradient(314px 990px at -110px 557px, rgba(173,60,42,.45) 12.7%, rgba(173,60,42,0) 100%),
      radial-gradient(314px 1190px at 74.8% calc(100% - 118px), #0F153E 25.5%, rgba(15,21,62,0) 100%),
      var(--bg);
  }

  /* --- Barre mobile collante ---
     L'en-tête garde la hauteur de la barre fermée (16 + 80 px) :
     la barre s'ouvre par-dessus la page sans la pousser */
  .site-header{
    position:sticky;
    top:0;
    height:96px;
  }
  .header-bar{
    position:absolute;
    top:16px;
    left:var(--gutter);
    right:var(--gutter);
    max-width:none;
    padding:0;
    background:var(--bg);
    border:1px solid var(--coral);
    border-radius:var(--radius-l);
    overflow:hidden;
    transition:background-color .15s;
  }
  .header-top{
    padding:11px 16px 11px 8px;
    transition:padding-bottom 360ms cubic-bezier(.2,.8,.2,1);
  }
  .site-header:not(.is-open) .header-bar:hover{ background:var(--bg-hover); }
  .brand{ width:144px; height:56px; }
  .site-nav{ display:none; }

  .menu-toggle{
    position:relative;
    display:block;
    width:40px;
    height:40px;
    padding:0;
    background:none;
    border:0;
    border-radius:var(--radius-s);
    cursor:pointer;
  }
  /* Burger → croix */
  .menu-lines span{
    position:absolute;
    left:8px;
    width:24px;
    height:3px;
    border-radius:2px;
    background:var(--white);
    transition:transform 280ms cubic-bezier(.4,0,.2,1), opacity 180ms linear;
  }
  .menu-lines span:nth-child(1){ top:11px; }
  .menu-lines span:nth-child(2){ top:18.5px; }
  .menu-lines span:nth-child(3){ top:26px; }
  .site-header.is-open .menu-lines span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
  .site-header.is-open .menu-lines span:nth-child(2){ opacity:0; transform:scaleX(.3); }
  .site-header.is-open .menu-lines span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

  /* Focus : contour blanc 2 px à l'intérieur de la zone */
  .brand:focus-visible,
  .menu-toggle:focus-visible{
    outline:2px solid var(--white);
    outline-offset:-2px;
  }

  /* --- Voile derrière le menu ouvert (un clic dessus referme) --- */
  .site-header::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-1;
    background:rgba(18,18,18,.6);
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
    opacity:0;
    visibility:hidden;
    transition:opacity 240ms linear, visibility 0s linear 240ms;
  }
  .site-header.is-open::before{
    opacity:1;
    visibility:visible;
    transition:opacity 240ms linear, visibility 0s;
  }

  /* --- Menu ouvert : la barre se déroule --- */
  .site-header.is-open .header-top{ padding-bottom:0; }
  .mobile-menu{
    display:grid;
    grid-template-rows:0fr;
    visibility:hidden;
    transition:grid-template-rows 360ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 360ms;
  }
  .site-header.is-open .mobile-menu{
    grid-template-rows:1fr;
    visibility:visible;
    transition:grid-template-rows 360ms cubic-bezier(.2,.8,.2,1), visibility 0s;
  }
  .mobile-menu-in{ min-height:0; overflow:hidden; }

  /* Tuiles */
  .menu-tiles{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
    margin:0;
    padding:24px 16px 0;
    list-style:none;
  }
  .menu-tile{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    height:112px;
    padding:16px;
    background:var(--surface);
    border:1px solid transparent;
    border-radius:var(--radius-m);
    font-weight:500;
    font-size:14px;
    line-height:16px;
    text-transform:uppercase;
    text-decoration:none;
    transition:filter .15s;
  }
  .menu-tile:hover{ filter:brightness(1.15); }
  .menu-tile[aria-current="page"]{ border-color:var(--coral); }
  .menu-tile img{ width:24px; height:24px; }
  .menu-tile:focus-visible{ outline:2px solid var(--white); outline-offset:-2px; }

  /* Contact : Billy et sa bulle */
  .menu-contact{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:8px;
    padding:40px 16px 24px;
    text-decoration:none;
  }
  .menu-billy{
    position:relative;
    flex:none;
    width:88px;
    height:88px;
  }
  .menu-billy img{
    position:absolute;
    top:0;
    left:0;
    width:88px;
    height:80px;
    object-fit:contain;
  }
  .menu-billy-shadow{
    position:absolute;
    left:24px;
    bottom:-4px;
    width:40px;
    height:8px;
    border-radius:50%;
    background:radial-gradient(ellipse at center, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 72%);
  }
  .site-header.is-open .menu-billy img{ animation:menu-billy-float 4.2s ease-in-out infinite; }
  .site-header.is-open .menu-billy-shadow{ animation:menu-billy-shadow 4.2s ease-in-out infinite; }
  @keyframes menu-billy-float{
    0%,100%{ transform:translateY(0) rotate(0deg); }
    50%{ transform:translateY(-8px) rotate(-2deg); }
  }
  @keyframes menu-billy-shadow{
    0%,100%{ transform:scale(1); opacity:.85; }
    50%{ transform:scale(.75); opacity:.5; }
  }
  .menu-bubble{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 16px;
    background:var(--red-dark);
    border-radius:16px 16px 16px 4px;
    box-shadow:0 4px 16px rgba(0,0,0,.22);
    font-family:'Quicksand', var(--font-sans);
    font-weight:600;
    font-size:14px;
    line-height:24px;
    transition:background-color .15s;
  }
  .menu-bubble img{ width:16px; height:16px; flex:none; }
  .menu-contact:hover .menu-bubble{ background:#C04B37; }
  .menu-contact:focus-visible{ outline:none; }
  .menu-contact:focus-visible .menu-bubble{ outline:2px solid var(--white); outline-offset:2px; }

  /* Apparitions en cascade */
  .menu-tiles li,
  .menu-billy,
  .menu-bubble{
    opacity:0;
    transition:opacity 140ms linear, transform 140ms linear;
  }
  .menu-tiles li{ transform:translateY(-8px) scale(.94); }
  .menu-billy{ transform:translateY(16px) scale(.6); }
  .menu-bubble{ transform:translateX(-8px) scale(.8); transform-origin:0 50%; }
  .site-header.is-open .menu-tiles li,
  .site-header.is-open .menu-billy,
  .site-header.is-open .menu-bubble{ opacity:1; transform:none; }
  .site-header.is-open .menu-tiles li{ transition:opacity 240ms linear, transform 360ms cubic-bezier(.2,.8,.2,1); }
  .site-header.is-open .menu-tiles li:nth-child(1){ transition-delay:120ms; }
  .site-header.is-open .menu-tiles li:nth-child(2){ transition-delay:170ms; }
  .site-header.is-open .menu-billy{ transition:opacity 160ms linear 220ms, transform 560ms cubic-bezier(.34,1.56,.64,1) 220ms; }
  .site-header.is-open .menu-bubble{ transition:opacity 200ms linear 520ms, transform 360ms cubic-bezier(.34,1.4,.64,1) 520ms, background-color .15s; }

  @media (prefers-reduced-motion: reduce){
    .header-top, .mobile-menu, .site-header.is-open .mobile-menu,
    .menu-lines span, .menu-tiles li, .menu-billy, .menu-bubble,
    .site-header.is-open .menu-tiles li, .site-header.is-open .menu-billy, .site-header.is-open .menu-bubble{ transition-duration:.01ms; transition-delay:0s; }
    .site-header.is-open .menu-billy img, .site-header.is-open .menu-billy-shadow{ animation:none; }
  }

  /* --- Contenu --- */
  .project-head{ flex-direction:column; gap:24px; }
  .project-head h1{ font-size:32px; line-height:1.5; letter-spacing:-.56px; }
  .project-client{ font-size:18px; }
  .tags{ justify-content:flex-start; }

  .context{ flex-direction:column; align-items:stretch; gap:24px; }
  .context .text{ flex:none; }
  .mosaic{ flex:none; height:236px; min-height:0; }

  .objective-list{ grid-template-columns:1fr; }
  .intro{ gap:64px; }
  .finding{ grid-template-columns:1fr; gap:8px; }
  /* en mobile : une vignette cliquable à gauche du texte, l'animation s'ouvre dans un bottom sheet */
  .zz-list{ gap:24px; }
  .zz-row{ grid-template-columns:96px 1fr; gap:16px; align-items:start; }
  .zz-visual{ display:none; }
  .zz-row:nth-child(even) .zz-text{ justify-self:start; }
  .zz-text h3{ font-size:20px; }
  .zz-text p{ font-size:14px; }
  .journey-step{ flex-basis:264px; }
  .testimonial .quote{ font-size:16px; }
  .testimonial{ padding-bottom:0; }

  .method{ flex-direction:column; gap:24px; }
  .steps{ padding-right:40px; }
  .step-dot, .step.is-first .step-dot{ margin-top:31px; }
  .step::before{ top:0; bottom:0; background:rgba(255,255,255,.22); }
  .step.is-first::before{ top:47px; }
  .step:last-child::before{ bottom:auto; height:31px; }
  .step-loop{ width:32px; }
  .quote-wrap{ padding-right:0; }
  .steps{ flex:none; width:100%; }

  .scroll-head{
    grid-template-areas:"title buttons" "sub sub";
    row-gap:16px;
    padding-right:4px;
  }
  .scroll-head .scroll-buttons{ align-self:start; }
  .related .scroll-head .scroll-buttons{ align-self:end; }
  .carousel,
  .journey-steps,
  .related-list{
    margin-right:calc(-1 * var(--gutter));
    padding-right:var(--gutter);
  }

  .impact-list{ flex-direction:row; flex-wrap:nowrap; width:100%; gap:16px; }
  .impact{ width:auto; flex:1 1 0; height:auto; }
  .impact .value{ font-size:48px; }
  .impact .label{ font-size:16px; }

  .userflow .visual{ height:400px; }

  .related{ gap:32px; }
  .related .scroll-buttons{ display:flex; }
  .related-list{
    flex-wrap:nowrap;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
  }
  .related-list::-webkit-scrollbar{ display:none; }
  .related-list > li{ flex:0 0 auto; scroll-snap-align:start; }

  /* Décors mobiles */
  .deco-grid-red-tall{ top:13px; width:225px; height:542px; background-image:url("images/decor/grid-red-tall-mobile.png"); }
  .deco-grid-purple-half{ top:-68px; width:178px; height:400px; background-image:url("images/decor/grid-purple-half-mobile.png"); }
  .deco-grid-red-wide{ top:-19px; width:170px; height:134px; background-image:url("images/decor/grid-red-wide-mobile.png"); }
  .deco-brush{ top:-40px; width:min(360px, 100vw); height:483px; background-size:360px 483px; background-image:url("images/decor/brush-mobile.png"); }
  .deco-grid-corner{ width:256px; height:400px; background-image:url("images/decor/grid-purple-corner-mobile.png"); }
}

/* =========================================================
   Page d'accueil (Figma 220:142)
   ========================================================= */
body.home{
  background:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px) 31px 0 / 32px 32px,
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px) 0 31px / 32px 32px,
    radial-gradient(668px 741px at -20px 0,
      rgba(255,106,83,.2) 0%, rgba(206,91,103,.16) 25%, rgba(158,77,124,.12) 50%,
      rgba(109,62,144,.08) 75%, rgba(60,47,164,.04) 100%),
    radial-gradient(726px 714px at calc(100% + 38px) 251px, rgba(60,47,164,.24) 28%, rgba(60,47,164,0) 89.5%),
    linear-gradient(166.65deg, #181226 3.256%, #121212 54.275%);
  background-color:var(--bg);
}
.home .header-bar{ padding-bottom:32px; }
/* la scène de Billy déborde de quelques px à droite : pas de défilement horizontal */
body.home{ overflow-x:clip; }

.home-main{
  display:flex;
  flex-direction:column;
  gap:80px;
  padding-bottom:96px;
}
.home-top{ display:flex; flex-direction:column; gap:160px; }

/* Présentation */
.hero{ display:flex; flex-direction:column; align-items:flex-start; gap:16px; padding:56px 0; }
.availability{
  padding:8px 12px;
  background:var(--red-dark);
  border-radius:var(--radius-pill);
  font-weight:500;
  font-size:12px;
}
.availability span{ display:block; text-box:trim-both cap alphabetic; }
.hero-title{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:24px;
  font-size:40px;
  line-height:48px;
}
.hero-title .name{ font-weight:400; }
.hero-title .role{ font-weight:200; }
.hero-title .sep{ align-self:stretch; width:1px; background:var(--white); }
.tagline{ max-width:440px; font-weight:300; font-size:20px; }
.tagline strong{ font-weight:500; color:var(--coral); }

/* Encart « ce que je vous apporte » */
.pitch{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between; /* Figma : hauteur min. 240, contrôles calés en bas */
  gap:40px;
  min-height:240px;
  padding:40px 40px 24px;
  border-radius:var(--radius-l);
  /* Bordure en dégradé (Figma) : corail 100 % en bas à gauche → corail 0 %
     vers le haut à droite, poignées reportées sur la boîte de 1200×240.
     Le fond est peint dans la zone intérieure, le dégradé de bordure
     dessous sur toute la boîte : seul le liseré de 1px en ressort. */
  border:1px solid transparent;
  background:
    radial-gradient(1145px 949px at calc(100% + 520px) 378px, rgba(255,106,83,1) 0%, rgba(255,106,83,0) 100%) padding-box,
    linear-gradient(#241E40, #241E40) padding-box,
    linear-gradient(51deg, var(--coral) 0%, rgba(255,106,83,0) 75%) border-box;
}
/* Billy, le compagnon bleu animé
   Scène de 950×1040 px (artboard d'origine) réduite par --s.
   Le curseur et sa bulle restent à taille réelle pour rester lisibles. */
.billy{
  --s:.6;
  --accent-cursor:#AD3C2A;
  position:absolute;
  width:calc(950px * var(--s));
  height:calc(1040px * var(--s));
  right:calc(40px - 115px * var(--s));
  bottom:calc(16px - 40px * var(--s));
  pointer-events:none;
  z-index:0;
}
.billy-scene{
  position:absolute;
  left:0; top:0;
  width:950px;
  height:1040px;
  transform:scale(var(--s));
  transform-origin:0 0;
}
.billy-shadow{
  position:absolute; left:298px; top:978px; width:380px; height:44px;
  border-radius:50%;
  background:radial-gradient(ellipse at center, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 72%);
  animation:billy-shadow 4.2s ease-in-out infinite;
}
.billy-char{
  position:absolute; left:140px; top:369px; width:695px; height:631px;
  max-width:none;
  animation:billy-float 4.2s ease-in-out infinite;
  will-change:transform;
}
.billy-marquee{
  position:absolute;
  border:1.5px dashed #3B82F6;
  background:rgba(59,130,246,.12);
  opacity:0;
  transition:left .75s ease, top .75s ease, width .75s ease, height .75s ease, opacity .2s ease;
}
.billy-selframe{
  position:absolute; left:126px; top:355px; width:723px; height:659px;
  border:2px solid #0C8CE9;
  opacity:0;
  transition:opacity .28s ease;
}
.billy-handle{
  position:absolute; width:10px; height:10px;
  background:#fff; border:1.5px solid #0C8CE9;
}
.billy-cursor{
  position:absolute; left:0; top:0;
  z-index:2;
  transition:left 1.3s cubic-bezier(.32,.72,.35,1), top 1.3s cubic-bezier(.32,.72,.35,1);
}
.billy-cursor svg{ display:block; filter:drop-shadow(0 2px 5px rgba(0,0,0,.28)); }
.billy-bubble{
  position:absolute; top:0; left:34px;
  width:max-content; max-width:280px;
  padding:8px 13px;
  border-radius:8px 14px 14px 14px;
  background:var(--accent-cursor);
  color:#fff;
  font-family:'Quicksand', var(--font-sans);
  font-size:15px; font-weight:600; line-height:1.3;
  white-space:nowrap;
  box-shadow:0 4px 14px rgba(0,0,0,.22);
  opacity:0;
  transform:translateY(6px);
  transition:opacity .32s ease, transform .32s ease;
}
.billy-cursor.is-right .billy-bubble{ left:auto; right:34px; border-radius:14px 8px 14px 14px; }
.billy-bubble.is-visible{ opacity:1; transform:translateY(0); }
.billy-caret{ display:inline-block; width:2px; margin-left:2px; opacity:0; animation:billy-caret .85s steps(1) infinite; }
.billy-bubble.is-typing .billy-caret{ opacity:1; }
@keyframes billy-float{
  0%,100%{ transform:translateY(0) rotate(0deg); }
  50%{ transform:translateY(-16px) rotate(-1.1deg); }
}
@keyframes billy-shadow{
  0%,100%{ transform:scale(1); opacity:.85; }
  50%{ transform:scale(.8); opacity:.5; }
}
@keyframes billy-caret{ 0%,50%{ opacity:1; } 51%,100%{ opacity:0; } }
@media (prefers-reduced-motion: reduce){
  .billy-char, .billy-shadow{ animation:none; }
  .billy-cursor{ display:none; }
}
.pitch-slides{ position:relative; z-index:1; width:496px; max-width:100%; min-height:86px; }
.pitch-slide{ font-weight:300; font-size:24px; }
/* Diapositives superposées : l'encart prend la hauteur du message le plus long
   et ne saute plus d'un message à l'autre */
.pitch-slides{ display:grid; }
.pitch-slide{ grid-area:1 / 1; }
.pitch-slides > .pitch-slide[hidden]{ display:block; }
/* Transition « fondu glissé » : le message sortant monte en s'effaçant,
   le suivant arrive du bas avec un léger décalage */
.pitch-slide{
  opacity:0;
  transform:translateY(8px);
  visibility:hidden;
  transition:opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.pitch-slide.is-active{
  opacity:1;
  transform:none;
  visibility:visible;
  transition-delay:.15s, .15s, 0s;
}
.pitch-slide.is-leaving{ transform:translateY(-8px); }
@media (prefers-reduced-motion: reduce){
  .pitch-slide, .pitch-slide.is-leaving{ transform:none; }
}
.pitch-slide strong{ font-weight:500; }
.pitch-controls{
  position:relative;
  z-index:1;
  width:496px;
  max-width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.pitch-dots{ display:flex; gap:8px; }
.pitch-dot{
  width:40px;
  height:20px;
  padding:0;
  background:none;
  border:0;
  cursor:pointer;
  position:relative;
}
.pitch-dot::before{
  content:"";
  position:absolute;
  left:0; right:0; top:8px;
  height:4px;
  border-radius:var(--radius-pill);
  background:rgba(255,255,255,.35);
  transition:background-color .2s;
}
.pitch-dot:hover::before{ background:rgba(255,255,255,.6); }
/* Remplissage du trait actif : indique le passage imminent au message suivant.
   La durée est réglée par --pitch-duration (défilement automatique). */
.pitch{ --pitch-duration:5s; }
.pitch-dot::after{
  content:"";
  position:absolute;
  left:0; right:0; top:8px;
  height:4px;
  border-radius:var(--radius-pill);
  background:var(--white);
  transform:scaleX(0);
  transform-origin:left center;
}
.pitch-dot.is-active::after{ animation:pitch-fill var(--pitch-duration) linear forwards; }
.pitch.is-paused .pitch-dot.is-active::after{ animation-play-state:paused; }
@keyframes pitch-fill{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }
@media (prefers-reduced-motion: reduce){
  /* Pas de défilement automatique : le trait actif est simplement plein */
  .pitch-dot.is-active::after{ animation:none; transform:scaleX(1); }
}
.pitch-arrows{ display:flex; gap:40px; }
.pitch-arrow{
  width:32px;
  height:32px;
  padding:0;
  background:none;
  border:0;
  border-radius:var(--radius-s);
  cursor:pointer;
  transition:opacity .15s, transform .15s;
}
.pitch-arrow img{ width:32px; height:32px; }
.pitch-arrow:hover:not(:disabled){ transform:scale(1.1); }
.pitch-arrow:disabled{ opacity:.35; cursor:default; }

/* Bandeau clients : frame sélectionnée façon Figma, noms qui défilent */
.clients{ display:flex; flex-direction:column; gap:4px; }
.clients .clients-name{ color:#0C8CE9; font-size:14px; font-weight:400; }
.clients-band{
  position:relative;
  margin:5px 5px 0 4px;
  height:72px;
  display:flex;
  align-items:center;
  background:var(--surface-dark);
  border:1px solid #0F7ED2;
}
.clients-track{
  width:100%;
  overflow:hidden;
  /* fondu sur les bords pour que les noms entrent et sortent en douceur */
  -webkit-mask-image:linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
          mask-image:linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.clients-list{
  display:flex;
  width:max-content;
  list-style:none;
  margin:0;
  padding:0;
  font-size:16px;
  white-space:nowrap;
  animation:clients-scroll var(--clients-duration, 40s) linear infinite;
}
.clients-list li{ display:flex; align-items:center; }
.clients-list li::after{ content:"/"; padding:0 32px; font-weight:400; }
.clients-list strong{ font-weight:700; }
.clients-band:hover .clients-list{ animation-play-state:paused; }
@keyframes clients-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
.clients-handle{
  position:absolute;
  width:10px; height:10px;
  background:#fff;
  border:1px solid #0F7ED2;
}
.clients-handle.tl{ left:-5px; top:-5px; }
.clients-handle.tr{ right:-5px; top:-5px; }
.clients-handle.bl{ left:-5px; bottom:-5px; }
.clients-handle.br{ right:-5px; bottom:-5px; }
@media (prefers-reduced-motion: reduce){
  /* pas de défilement automatique : la liste se fait défiler à la main */
  .clients-list{ animation:none; padding-left:32px; }
  .clients-track{ overflow-x:auto; scrollbar-width:none; -webkit-mask-image:none; mask-image:none; }
  .clients-track::-webkit-scrollbar{ display:none; }
}

/* Témoignages : commentaires Figma posés sur un canevas pointillé */
.testimonials{ display:flex; flex-direction:column; gap:8px; }
.testimonials .testimonials-name{ color:#0C8CE9; font-size:14px; font-weight:400; }
.testimonials-canvas{
  display:grid;
  grid-template-columns:repeat(12, minmax(0,1fr));
  gap:40px 24px;
  padding:40px;
  background-color:var(--surface-dark);
  background-image:radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size:24px 24px;
  border-radius:var(--radius-l);
}
.comment{ margin:0; display:flex; align-items:flex-start; gap:12px; }
.comment:nth-child(1){ grid-column:1 / span 5; grid-row:1; }
.comment:nth-child(2){ grid-column:7 / span 5; grid-row:1; margin-top:96px; }
.comment-pin{
  flex:0 0 40px;
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50% 50% 50% 0;
  border:2px solid var(--white);
  color:var(--bg);
  font-weight:600; font-size:14px;
  box-shadow:0 4px 12px rgba(0,0,0,.35);
}
.pin-coral{ background:var(--coral); }
.pin-blue{ background:var(--blue-pale); }
.pin-lavender{ background:var(--lavender); }
.comment-bubble{
  min-width:0;
  display:flex; flex-direction:column; gap:4px;
  padding:16px;
  background:#2C2838;
  border:1px solid rgba(255,255,255,.08);
  border-radius:0 var(--radius-l) var(--radius-l) var(--radius-l);
  box-shadow:0 8px 24px rgba(0,0,0,.3);
}
.comment-who{ display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; }
.comment-who strong{ font-weight:600; font-size:14px; }
.comment-who span{ color:var(--muted-50); font-size:12px; }
.comment-who .comment-example{
  padding:0 8px;
  border:1px solid var(--muted-50);
  border-radius:var(--radius-pill);
  font-family:var(--font-mono);
}
.comment-bubble blockquote{ margin:0; }
.comment-bubble p{ font-weight:300; font-size:14px; line-height:24px; }
.comment-reply{ color:#0C8CE9; font-size:12px; font-weight:500; }
@media (max-width: 960px){
  .testimonials-canvas{ display:flex; flex-direction:column; gap:24px; padding:24px; }
  .comment:nth-child(2){ margin-top:0; }
}

/* Dernières expériences */
.home-latest{ padding:0; }
.home-latest .related-list{ gap:32px; }
.home-latest .project-card{
  width:256px;
  background:var(--surface-dark);
  border:1px solid var(--coral);
}

/* Accueil : écrans intermédiaires */
@media (max-width: 1100px){
  .billy{ --s:.52; }
}
@media (max-width: 960px){
  .home-top{ gap:280px; }
  .billy{ --s:.42; right:auto; bottom:auto; left:calc(50% - 487px * var(--s)); top:calc(20px - 1000px * var(--s)); }
  .hero-title{ flex-direction:column; align-items:flex-start; gap:4px; }
  .hero-title .sep{ display:none; }
}

/* Accueil : mobile */
@media (max-width: 679px){
  .home .header-bar{ padding-bottom:0; }
  .home-main{ gap:56px; padding-top:40px; }
  .hero{ padding:0; }
  .home-top{ gap:272px; }
  .hero-title{ font-size:32px; line-height:40px; }
  .tagline{ font-size:18px; }
  .pitch{ padding:32px 24px 24px; gap:32px; }
  .billy{ --s:.36; }
  .billy-bubble{ white-space:normal; max-width:200px; font-size:14px; }
  .pitch-slides{ width:100%; min-height:120px; }
  .pitch-slide{ font-size:20px; }
  .pitch-controls{ width:100%; }
  .pitch-arrows{ gap:24px; }
  .pitch-dot{ width:28px; }
}

/* =========================================================
   Frames façon calques Figma (page Parcours)
   Nom du calque au-dessus ; état sélectionné : cadre bleu,
   poignées et pastille de durée, comme dans Figma.
   ========================================================= */
.frame-name{
  font-size:12px;
  font-weight:500;
  color:rgba(255,255,255,.55);
  transition:color .2s;
}
.frame{
  position:relative;
  height:232px;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:6px;
  background:var(--surface-dark);
  border:1px solid rgba(233,223,255,.14);
  border-radius:2px;
  outline:none;
  cursor:default;
  transition:border-color .2s, background-color .2s;
}
.frame-role{ color:var(--lavender); font-weight:500; font-size:14px; }
.frame-period{ color:var(--muted-70); font-family:var(--font-mono); font-size:13px; }
.frame-tags{ color:var(--coral); font-family:var(--font-mono); font-size:13px; }
.frame-handle, .frame-size{ opacity:0; transition:opacity .2s; }
.frame-handle{
  position:absolute; width:8px; height:8px;
  background:#fff; border:1px solid #0C8CE9;
}
.frame-handle.tl{ left:-5px; top:-5px; }
.frame-handle.tr{ right:-5px; top:-5px; }
.frame-handle.bl{ left:-5px; bottom:-5px; }
.frame-handle.br{ right:-5px; bottom:-5px; }
.frame-size{
  position:absolute;
  left:50%;
  bottom:-30px;
  transform:translateX(-50%);
  padding:3px 8px;
  border-radius:4px;
  background:#0C8CE9;
  color:#fff;
  font-size:11px;
  font-weight:500;
  white-space:nowrap;
}

/* =========================================================
   Page Parcours : frise verticale façon calques Figma
   ========================================================= */
.career-main{ padding-bottom:80px; }
.career-hero{ display:flex; flex-direction:column; gap:16px; padding-top:24px; max-width:720px; }
.career-hero h1{ font-weight:700; font-size:56px; line-height:1.05; letter-spacing:-.01em; color:var(--white); } /* même style que « Tous » sur Tous les projets */
.career-hero p{ font-weight:300; font-size:18px; }

.timeline-v{
  position:relative;
  list-style:none;
  margin:72px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:48px;
}
/* la ligne de temps */
.timeline-v::before{
  content:"";
  position:absolute;
  left:50%; top:0; bottom:0;
  width:1px;
  transform:translateX(-.5px);
  background:linear-gradient(to bottom, rgba(255,255,255,.22) 85%, rgba(255,255,255,0));
}
.tl-item{
  position:relative;
  display:grid;
  grid-template-columns:1fr 64px 1fr;
  align-items:start;
}
.tl-left  .tl-body{ grid-column:1; grid-row:1; }
.tl-left  .tl-year{ grid-column:3; grid-row:1; text-align:left; }
.tl-right .tl-body{ grid-column:3; grid-row:1; }
.tl-right .tl-year{ grid-column:1; grid-row:1; text-align:right; }
.tl-dot{
  grid-column:2; grid-row:1;
  justify-self:center;
  margin-top:40px;
  width:13px; height:13px;
  border-radius:50%;
  background:var(--bg);
  border:2px solid var(--coral);
  position:relative; z-index:1;
  transition:background-color .2s, transform .2s;
}
.tl-year{
  padding-top:36px;
  color:rgba(255,255,255,.55);
  font-family:var(--font-mono);
  font-size:14px;
  transition:color .2s;
}
.tl-body{ display:flex; flex-direction:column; gap:8px; }
.tl-frame{ height:auto; padding:24px; gap:8px; }
.tl-frame h2{ font-weight:600; font-size:22px; }
.tl-mission{ margin-top:8px; font-size:15px; }
.tl-bullets{
  margin:4px 0;
  padding-left:18px;
  color:var(--grey-light);
  font-size:14px;
}
.tl-bullets li{ margin-bottom:4px; }
.tl-bullets li::marker{ color:var(--coral); }
.tl-links{ display:flex; flex-wrap:wrap; gap:16px; margin-top:8px; }
.tl-link{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:600; font-size:14px;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.3);
  padding-bottom:2px;
  transition:border-color .15s;
}
.tl-link:hover{ border-color:var(--coral); }
.tl-link img{ width:7px; height:12px; }
.tl-frame .frame-size{ bottom:-30px; }

/* sélection : reprend celle des frames de l'accueil */
.tl-item.is-selected .frame{ border-color:#0C8CE9; background:#221d2d; }
.tl-item.is-selected .frame-name{ color:#4DA9F0; }
.tl-item.is-selected .frame-handle,
.tl-item.is-selected .frame-size{ opacity:1; }
.tl-item.is-selected .tl-dot{ background:var(--coral); transform:scale(1.25); }
.tl-item.is-selected .tl-year{ color:var(--white); }

/* apparition au défilement (seulement si le JS est actif) */
.timeline-v.js-reveal .tl-item{ opacity:0; transform:translateY(24px); transition:opacity .5s ease, transform .5s ease; }
.timeline-v.js-reveal .tl-item.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .timeline-v.js-reveal .tl-item{ opacity:1; transform:none; transition:none; }
}

.career-cta{
  margin-top:96px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:24px;
  text-align:center;
}
.career-cta p{ font-weight:500; font-size:24px; }
.btn-cta{ min-height:48px; padding:12px 20px; font-size:16px; }
.btn-cta span{ text-box:trim-both cap alphabetic; }

/* Desktop : les frames alternés se chevauchent en hauteur pour une
   lecture en zigzag plus compacte */
@media (min-width: 861px){
  .tl-item + .tl-item{ margin-top:-150px; }
  /* l'année se place sur la ligne, au-dessus du point */
  .tl-left .tl-year, .tl-right .tl-year{
    grid-column:2; grid-row:1;
    justify-self:center;
    text-align:center;
    margin-top:12px;
    padding:2px 4px;
    background:var(--bg);
    border-radius:4px;
    position:relative; z-index:1;
    font-size:13px;
  }
}

/* Frise sur une seule colonne : tablette étroite et mobile */
@media (max-width: 860px){
  .timeline-v::before{ left:6px; }
  .tl-item{
    grid-template-columns:13px 1fr;
    column-gap:20px;
    grid-template-areas:"dot year" "line body";
  }
  .tl-left .tl-body, .tl-right .tl-body{ grid-area:body; }
  .tl-left .tl-year, .tl-right .tl-year{ grid-area:year; text-align:left; padding-top:0; margin-bottom:8px; }
  .tl-dot{ grid-area:dot; margin-top:2px; }
}
@media (max-width: 679px){
  .career-hero h1{ font-size:40px; }
  .career-hero p{ font-size:16px; }
  .timeline-v{ margin-top:48px; gap:40px; }
  .tl-frame{ padding:20px; }
  .tl-frame h2{ font-size:20px; }
  .career-cta p{ font-size:20px; }
}

/* =========================================================
   Page « Tous les projets » : index éditorial
   Une ligne par projet ; au survol, un aperçu façon frame
   Figma sélectionnée suit le curseur.
   ========================================================= */
.projects-main{ padding-bottom:96px; }
.pj-intro{ display:grid; grid-template-columns:1fr auto; align-items:end; gap:24px 48px; padding:24px 0 40px; }
.pj-intro h1{ font-size:56px; line-height:1.05; font-weight:300; letter-spacing:-.01em; }
.pj-intro h1 strong{ font-weight:700; }
.pj-intro h1 sup{ font-family:var(--font-mono); font-size:18px; font-weight:400; color:var(--coral); vertical-align:top; margin-left:8px; position:relative; top:6px; }
.pj-intro p{ margin-top:16px; max-width:520px; font-size:18px; font-weight:300; color:var(--white); line-height:1.5; }

.pj-filters{ display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; max-width:520px; }
.pj-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 12px;
  font-family:var(--font-mono); font-size:14px; color:var(--white);
  background:transparent;
  border:1px solid #6A6086;   /* lilas (Figma, composant Filtre / Défaut) */
  border-radius:var(--radius-pill);
  cursor:pointer;
  transition:border-color .15s, background-color .15s;
}
.pj-chip .n{ color:rgba(255,255,255,.62); font-size:12px; }
.pj-chip:hover{ border-color:var(--coral); }
.pj-chip[aria-pressed="true"]{ background:var(--red-dark); border-color:var(--red-dark); }
.pj-chip[aria-pressed="true"] .n{ color:rgba(255,255,255,.8); }
.pj-chip:focus-visible{ outline:2px solid var(--white); outline-offset:2px; }

.pj-row{
  display:grid;
  min-height:148px;
  grid-template-columns:240px minmax(0,1fr) 200px 24px;
  gap:40px;
  align-items:center;
}
.pj-index{ list-style:none; margin:0 0 120px; padding:0; border-top:1px solid rgba(233,223,255,.14); }
.pj-index > li{ border-bottom:1px solid rgba(233,223,255,.14); }
.pj-row{ position:relative; padding:28px 16px; text-decoration:none; transition:background-color .2s; }
.pj-row::before{ /* liseré corail qui se dessine au survol */
  content:""; position:absolute; left:0; bottom:-1px; width:0; height:1px; background:var(--coral);
  transition:width .35s cubic-bezier(.4,0,.2,1);
}
.pj-row:hover, .pj-row:focus-visible{ background:var(--surface-dark); outline:none; }
.pj-row:hover::before, .pj-row:focus-visible::before{ width:100%; }
.pj-row:focus-visible{ box-shadow:inset 0 0 0 2px var(--white); }
.pj-body{ margin-left:-8px; } /* 32 px entre la photo et le texte (au lieu des 40 px de la grille) */
.pj-client{ display:block; margin-bottom:6px; font-size:14px; color:rgba(255,255,255,.62); }
.pj-title{ display:block; font-size:24px; line-height:1.25; font-weight:500; text-wrap:balance; transition:transform .25s cubic-bezier(.4,0,.2,1); }
.pj-row:hover .pj-title{ transform:translateX(8px); }
.pj-tags{ display:flex; flex-direction:column; gap:4px; font-family:var(--font-mono); font-size:14px; color:var(--coral); }
.pj-arrow{ width:16px; height:16px; transition:transform .25s; }
.pj-row:hover .pj-arrow{ transform:translateX(4px); }
/* le visuel prend la hauteur de la ligne sans l'agrandir */
.pj-thumb{ order:-1; width:240px; height:0; min-height:100%; align-self:stretch; object-fit:cover; border-radius:var(--radius-m); border:1px solid rgba(233,223,255,.14); }


.pj-others h2{ margin-bottom:20px; font-size:20px; font-weight:500; }
.pj-others ul{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:24px; }
.pj-others a{
  display:grid; grid-template-columns:72px 1fr; gap:16px; align-items:center;
  padding:12px;
  text-decoration:none;
  border:1px solid rgba(233,223,255,.14);
  border-radius:var(--radius-m);
  transition:border-color .15s, background-color .15s;
}
.pj-others a:hover, .pj-others a:focus-visible{ border-color:var(--coral); background:var(--surface-dark); outline:none; }
.pj-others img{ width:72px; height:72px; object-fit:cover; border-radius:4px; }
.pj-others .k{ display:block; font-family:var(--font-mono); font-size:13px; color:var(--coral); }
.pj-others .t{ display:block; font-size:16px; font-weight:500; }
.pj-others .c{ display:block; font-size:13px; color:rgba(255,255,255,.62); }

@media (max-width: 1100px){
  .pj-row{ grid-template-columns:200px minmax(0,1fr) 24px; gap:32px; }
  .pj-thumb{ width:200px; }
  .pj-body{ margin-left:0; }
  .pj-tags{ display:none; }
}
@media (max-width: 860px){
  .pj-intro{ grid-template-columns:1fr; }
  .pj-filters{ justify-content:flex-start; max-width:none; }
  .pj-others ul{ grid-template-columns:1fr; }
}
/* Mobile : pas de survol, la photo passe au-dessus du texte */
@media (max-width: 679px){
  .pj-intro{ padding:24px 0 40px; } /* mêmes marges qu'en desktop */
  .pj-intro h1{ font-size:40px; }
  .pj-intro h1 sup{ margin-left:4px; }
  .pj-index{ margin-bottom:80px; }
  .pj-row{
    grid-template-columns:1fr auto;
    grid-template-areas:"thumb thumb" "body arrow" "tags tags";
    min-height:0;
    gap:16px;
    padding:24px 0;
  }
  .pj-thumb{ grid-area:thumb; width:100%; height:auto; min-height:0; aspect-ratio:5 / 2; } /* photo au-dessus du texte */
  .pj-arrow{ grid-area:arrow; justify-self:end; }
  .pj-body{ grid-area:body; margin-left:0; }
  .pj-tags{ display:flex; grid-area:tags; flex-direction:row; flex-wrap:wrap; gap:4px 16px; }
  .pj-title{ font-size:22px; }
  .pj-row:hover .pj-title{ transform:none; }
}
@media (prefers-reduced-motion: reduce){
  .pj-row, .pj-row::before, .pj-title, .pj-arrow{ transition:none; }
}
/* Démarche en chiffres */
.method-stats{ flex-direction:column; gap:32px; }
.stat-list{ display:grid; grid-template-columns:repeat(5, 1fr); gap:24px; list-style:none; margin:0; padding:0; }
.stat{
  display:flex;
  flex-direction:column;
  gap:0;
  padding:0;
}
.stat-phase{ margin-bottom:16px; color:var(--coral); font-family:var(--font-mono); font-size:14px; }
.stat-value{ margin-bottom:8px; font-weight:500; font-size:56px; line-height:1; color:var(--white); }
.stat-value small{ font-size:24px; font-weight:500; }
.stat-label{ font-weight:600; font-size:16px; }
.stat p{ font-size:14px; color:rgba(255,255,255,.72); }
@media (max-width: 1100px){ .stat-list{ grid-template-columns:repeat(3, 1fr); row-gap:40px; } }
@media (max-width: 679px){ .stat-list{ grid-template-columns:repeat(2, 1fr); gap:32px 16px; } .stat-value{ font-size:48px; } }

/* =========================================================
   Prototypes animés dans les cadres « Résultats »
   (écrans Figma qui défilent, doigt simulé façon prototype)
   ========================================================= */
.proto{ position:relative; background:#fff; }
.proto-screen{ position:absolute; inset:0; overflow:hidden; visibility:hidden; background:#fff; }
.proto-screen.is-active{ visibility:visible; }
.proto-screen img{ display:block; width:100%; height:auto; will-change:transform; }
.proto-finger{
  position:absolute; left:0; top:0; z-index:2;
  width:40px; height:40px; margin:-20px 0 0 -20px;
  border-radius:50%;
  background:rgba(30,26,39,.32);
  border:2px solid rgba(255,255,255,.9);
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  opacity:0;
  pointer-events:none;
}
.proto-ripple{
  position:absolute; inset:-2px;
  border-radius:50%;
  border:2px solid rgba(30,26,39,.5);
  opacity:0;
}
.proto-fade{ position:absolute; inset:0; z-index:3; background:#fff; opacity:0; pointer-events:none; }
/* saisie dynamique : un cache blanc qui recule lettre par lettre, avec un curseur */
.proto-mask{ position:absolute; z-index:1; background:#fff; }
.proto-caret{ position:absolute; left:0; top:9px; width:2px; height:22px; background:#1E1A27; }
/* loupe : texte agrandi et net au centre, bords flous avec une légère diffraction */
.proto-lens{
  position:absolute; left:0; top:0; z-index:2;
  width:176px; height:176px; margin:-88px 0 0 -88px;
  border-radius:50%; overflow:hidden; background:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.08);
  opacity:0; pointer-events:none;
}
.zz-screen .proto-lens img{ position:absolute; left:0; top:0; max-width:none; height:auto; object-fit:fill; transform-origin:0 0; }
.proto-lens-edge{
  position:absolute; inset:0; border-radius:50%;
  -webkit-backdrop-filter:blur(2.5px) saturate(1.3); backdrop-filter:blur(2.5px) saturate(1.3);
  -webkit-mask-image:radial-gradient(circle, transparent 52%, #000 74%);
          mask-image:radial-gradient(circle, transparent 52%, #000 74%);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.85), inset 3px 0 10px rgba(255,70,70,.18), inset -3px 0 10px rgba(60,110,255,.22), inset 0 0 24px rgba(255,255,255,.5);
}

/* Le constat : texte et 3 cartes à gauche, visuel à droite */
.context{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:56px; align-items:center; }
.context-main{ display:flex; flex-direction:column; gap:32px; }
.context .text{ flex:none; }
.context-visual{ border:1px solid rgba(233,223,255,.14); border-radius:var(--radius-m); }
.context-visual img{ display:block; width:100%; height:auto; object-fit:initial; }
@media (min-width: 680px){ .finding{ grid-template-columns:136px 1fr; gap:16px; } }
@media (max-width: 960px){ .context{ grid-template-columns:1fr; gap:40px; } }
.finding.finding-inline{ grid-template-columns:1fr; }
.finding-inline .finding-where{ font-size:inherit; }

/* Visuel agrandissable (clic → plein écran) */
.zoomable-btn{ display:block; width:100%; padding:0; border:0; background:none; cursor:zoom-in; }
.zoomable-btn:focus-visible{ outline:2px solid var(--white); outline-offset:4px; }
.zoomable-hint{
  position:absolute; right:12px; bottom:12px;
  padding:6px 10px; border-radius:var(--radius-pill);
  background:rgba(18,18,18,.8); color:var(--white);
  font-family:var(--font-mono); font-size:12px;
  opacity:0; transition:opacity .2s; pointer-events:none;
}
.zoomable-btn:hover + .zoomable-hint, .zoomable-btn:focus-visible + .zoomable-hint{ opacity:1; }
.lightbox{
  width:100vw; height:100dvh; max-width:none; max-height:none;
  margin:0; padding:56px 16px 16px; border:0;
  background:transparent; color:var(--white);
}
.lightbox::backdrop{ background:rgba(10,10,14,.92); }
.lightbox[open]{ display:flex; align-items:center; justify-content:center; }
.lightbox .lightbox-img{ max-width:min(100%, 1280px); max-height:100%; width:auto; height:auto; border-radius:var(--radius-m); box-shadow:0 16px 48px rgba(0,0,0,.5); cursor:zoom-out; }
.lightbox-close{ position:absolute; top:16px; right:16px; }
@media (max-width: 679px){ .zoomable-hint{ opacity:1; } }

/* Les piliers du parcours : titre sur toute la largeur, puis texte court et chevrons sur la même ligne, alignés en bas */
.journey .scroll-head{ grid-template-areas:"title title" "sub buttons"; align-items:end; }
.journey .scroll-head .scroll-buttons{ align-self:end; }

/* =========================================================
   Résultats en mobile : vignette cliquable + bottom sheet
   (le panneau monte du bas, la page recule derrière ;
   on le ferme en le glissant vers le bas)
   ========================================================= */
.zz-thumb{
  display:none; position:relative; width:96px; height:128px; padding:0; overflow:hidden; cursor:pointer;
  background:#fff; border:1px solid rgba(233,223,255,.14); border-radius:var(--radius-m);
}
@media (max-width: 679px){ .zz-thumb{ display:block; } }
.zz-thumb img{ display:block; width:100%; height:100%; object-fit:cover; object-position:top; }
.zz-thumb:focus-visible{ outline:2px solid var(--white); outline-offset:4px; }
.zz-play{
  position:absolute; left:50%; top:50%; width:40px; height:40px; margin:-20px 0 0 -20px;
  border-radius:50%; background:rgba(18,18,18,.8); border:1px solid var(--coral);
}
/* triangle centré sur son centre de gravité (centrage optique), pas sur sa boîte */
.zz-play::after{
  content:""; position:absolute; left:50%; top:50%; transform:translate(-33%, -50%);
  border-style:solid; border-width:8px 0 8px 12px; border-color:transparent transparent transparent var(--white);
}

.result-sheet{
  position:fixed; inset:auto 0 0 0; width:100%; max-width:480px; height:calc(100dvh - 48px); max-height:none;
  margin:0 auto; padding:8px 16px 24px; border:0; border-radius:24px 24px 0 0;
  background:var(--surface-dark); color:var(--white);
  box-shadow:0 -1px 0 rgba(233,223,255,.14);
  transform:translateY(100%); transition:transform .4s cubic-bezier(.32,.72,0,1);
  overscroll-behavior:contain; touch-action:none; -webkit-user-select:none; user-select:none;
}
.result-sheet.is-up{ transform:none; }
.result-sheet.is-dragging{ transition:none; }
.result-sheet::backdrop{ background:rgba(0,0,0,0); transition:background-color .4s; }
.result-sheet.is-up::backdrop{ background:rgba(0,0,0,.56); }
.result-sheet[open]{ display:block; }
.result-sheet [hidden]{ display:none !important; }
.result-sheet-panel{ height:100%; display:flex; flex-direction:column; gap:16px; }
.result-sheet-head{ position:relative; height:40px; flex:none; display:flex; justify-content:center; cursor:grab; }
.result-sheet-grabber{ width:40px; height:4px; margin-top:4px; border-radius:2px; background:rgba(255,255,255,.32); }
.result-sheet-close{
  position:absolute; right:-8px; top:0; width:40px; height:40px; padding:8px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.08); border:0; border-radius:50%; cursor:pointer;
}
.result-sheet-close img{ width:24px; height:24px; }
.result-sheet-close:focus-visible{ outline:2px solid var(--white); outline-offset:2px; }
.result-sheet .zz-text{ max-width:none; margin-top:-24px; }
.result-sheet .zz-text h3{ font-size:20px; }
.result-sheet .zz-text p{ font-size:14px; }
.result-sheet-screen{ flex:1; min-height:0; display:flex; flex-direction:column; gap:8px; }
.result-sheet-fitbox{ flex:1; min-height:0; display:flex; justify-content:center; }
.result-sheet-fit{ position:relative; overflow:hidden; }
.result-sheet-inner{ width:360px; height:720px; transform-origin:0 0; }
/* la page recule et s'assombrit pendant que le panneau est ouvert */
.sheet-recede{ transition:transform .4s cubic-bezier(.32,.72,0,1), filter .4s; transform-origin:50% 0; }
html.sheet-open .sheet-recede{ transform:scale(.94); filter:brightness(.7); }
