/* ==========================================================================
   Portfolio Grégoire Baur — site styles
   Layered on top of colors_and_type.css
   ========================================================================== */

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  position: relative; /* containing block pour les globules en position: absolute */
}

/* WhatsApp green for the dot accent on contact links */
:root {
  --wa-green: #25D366;
}

/* ==========================================================================
   HEADER — floating pill nav (right-aligned, with avatar)
   ========================================================================== */
.gb-header {
  position: fixed; top: 20px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: flex-end;
  padding: 0 32px;
  pointer-events: none;
}
.gb-header-inner {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 12px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}
.gb-header-brand {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 12px 4px 4px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--fg);
}
.gb-header-brand img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line);
}
.gb-header-nav { display: flex; gap: 4px; align-items: center; padding: 0 4px; }
.gb-header-nav a {
  font-size: 14px; color: var(--fg-2); padding: 8px 14px; border-radius: 999px;
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.gb-header-nav a:hover { color: var(--fg); background: rgba(0,0,0,0.04); opacity: 1; }
.gb-header-cta {
  background: var(--fg); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.gb-header-cta:hover { opacity: 0.85; transform: translateY(-1px); }
.gb-header-cta .dot { background: var(--wa-green); width: 7px; height: 7px; margin: 0; }

@media (max-width: 720px) {
  .gb-header { top: 12px; padding: 0 12px; }
  .gb-header-nav { display: none; }
  .gb-header-brand { padding: 4px 8px 4px 4px; font-size: 14px; }
  .gb-header-brand img { width: 28px; height: 28px; }
  .gb-header-cta { padding: 8px 14px; font-size: 13px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.gb-hero {
  position: relative;
  padding: 96px 32px 64px;
  max-width: var(--w-wide); margin: 0 auto;
  isolation: isolate;
}

/* stack de 3 mini-vidéos qui se superposent, à droite du bouton "Voir mes projets" */
.gb-hero-stack {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 4px 8px 4px 0;
  transition: transform 0.3s var(--ease-out);
}
.gb-hero-stack:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.gb-hero-stack-tile {
  position: relative;
  display: block;
  width: 70px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #fff;
  background: #0a0a0a;
  box-shadow: 0 10px 24px rgba(10, 10, 10, 0.18), 0 1px 3px rgba(10, 10, 10, 0.08);
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  isolation: isolate;
  /* Chrome belt-and-suspenders : force le clip arrondi */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transition:
    rotate 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    z-index 0s linear 0s;
}
.gb-hero-stack-tile > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: inherit;
}
.gb-hero-stack-tile:nth-child(1) {
  rotate: -10deg;
  z-index: 1;
}
.gb-hero-stack-tile:nth-child(2) {
  rotate: 0deg;
  z-index: 2;
  margin-left: -28px;
}
.gb-hero-stack-tile:nth-child(3) {
  rotate: 10deg;
  z-index: 3;
  margin-left: -28px;
}
/* effet "fan out" au survol — les cartes s'écartent légèrement */
.gb-hero-stack:hover .gb-hero-stack-tile:nth-child(1) {
  rotate: -14deg;
  transform: translateX(-6px) translateY(-2px);
}
.gb-hero-stack:hover .gb-hero-stack-tile:nth-child(3) {
  rotate: 14deg;
  transform: translateX(6px) translateY(-2px);
}

@media (max-width: 720px) {
  .gb-hero-stack { margin-left: 0; margin-top: 8px; }
  .gb-hero-stack-tile { width: 60px; }
  .gb-hero-stack-tile:nth-child(2),
  .gb-hero-stack-tile:nth-child(3) { margin-left: -24px; }
}
.gb-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  min-height: 70vh;
}
.gb-hero-copy { padding-top: 80px; max-width: 640px; }
.gb-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--fg-2); letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.gb-hero-eyebrow .dot { width: 7px; height: 7px; background: var(--brand-green-deep); margin: 0; }

.gb-hero-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 0.98;
  margin: 0 0 32px;
  text-wrap: balance;
}
.gb-hero-title .green {
  color: var(--brand-green-deep);
  /* slightly brighter pale green, but still readable */
}
.gb-hero-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5; color: var(--fg-2); max-width: 520px;
  margin: 0 0 40px;
}
.gb-hero-lead strong { color: var(--fg); font-weight: 500; }

.gb-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* big black pill with avatar — primary CTA */
.gb-cta-call {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 24px 6px 6px;
  background: var(--fg); color: #fff;
  border-radius: 999px;
  font-size: 16px; font-weight: 500;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.gb-cta-call img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.gb-cta-call:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 12px 32px rgba(10,10,10,0.18); }

.gb-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-size: 15px; font-weight: 500;
  transition: background var(--dur-base) var(--ease-out);
}
.gb-cta-secondary:hover { background: var(--bg-soft); opacity: 1; }

/* HERO portrait — partial reveal behind the title block */
.gb-hero-portrait {
  position: relative;
  height: 100%;
  min-height: 520px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  /* on desktop the wrapper has plenty of room — no clipping needed.
     The video's own mask handles the soft edges. */
}
.gb-hero-portrait-img,
.gb-hero-portrait-video {
  position: absolute;
  top: 0;
  left: -10%;
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center 22%;
  border-radius: 0;
  display: block;
  background: transparent;
  filter: saturate(0.95);
  /* +25% scale per request — symmetrical from center so it grows up/down/sideways equally */
  scale: 1.25;
  transform-origin: center center;
  /* dual mask (intersect) — radial softens the rectangle's overall edges, linear melts
     the very bottom into the page background so the cut isn't sharp */
  -webkit-mask-image:
    radial-gradient(ellipse 70% 78% at center 48%, #000 38%, transparent 82%),
    linear-gradient(to bottom, #000 0%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    radial-gradient(ellipse 70% 78% at center 48%, #000 38%, transparent 82%),
    linear-gradient(to bottom, #000 0%, #000 96%, transparent 100%);
          mask-composite: intersect;
}

/* small projects label that anchors the right column */
.gb-hero-side-label {
  position: relative;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--fg-2);
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.gb-hero-side-label .dot { background: var(--brand-green-deep); margin: 0; width: 7px; height: 7px; }

@media (max-width: 880px) {
  .gb-hero { padding: 72px 20px 32px; }
  .gb-hero-grid { grid-template-columns: 1fr; gap: 24px; min-height: auto; }
  .gb-hero-copy { padding-top: 0; order: 2; text-align: center; max-width: none; }
  .gb-hero-copy .gb-hero-title {
    text-wrap: balance;
    font-size: clamp(34px, 9vw, 56px);
  }
  /* surlignage italique : moins épais sur mobile (le full pill 999px devient chunky en petit) */
  .gb-hero-title .t-italic-serif {
    padding: 0.02em 0.22em;
    border-radius: 0.5em;
    margin: 0 -0.04em;
  }
  .gb-hero-copy .gb-hero-lead { margin-left: auto; margin-right: auto; }
  .gb-hero-ctas { justify-content: center; }
  .gb-hero-portrait {
    order: 1; min-height: 460px; height: 460px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 96%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 96%, transparent 100%);
  }
  .gb-hero-portrait-img,
  .gb-hero-portrait-video {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    object-position: center 25%;
  }
}

/* ==========================================================================
   VIDEO SHOWCASE — 4 staggered project cards
   ========================================================================== */
.gb-showcase {
  padding: 24px 32px 16px;
  max-width: var(--w-wide); margin: 0 auto;
  position: relative;
  isolation: isolate;
}
/* halo retiré du showcase — il est maintenant centré pile sur la mosaïque (.gb-mosaic::before) */
/* Tighten the showcase → services gap specifically */
.gb-showcase + .gb-section { padding-top: 56px; }
.gb-showcase-head {
  display: flex; align-items: last baseline; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.gb-showcase-head h2 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  margin: 0;
}
.gb-showcase-head p {
  font-size: 16px; color: var(--fg-2); max-width: 360px; margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   MOSAÏQUE SHOWCASE — Option C
   Row 1 : 3 verticales 9:16 (resserrées, plus petites)
   Row 2 : 2 horizontales 16:9 (côte à côte, pleine largeur)
   ========================================================================== */
.gb-mosaic {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  /* encadré qui englobe les 5 vidéos */
  padding: 36px 32px 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  isolation: isolate;
}
/* halo vert centré pile sur les vidéos (au lieu du showcase entier) */
.gb-mosaic::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1200px, 110%);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--brand-green) 0%, var(--brand-green-soft) 38%, transparent 68%);
  opacity: 0.72;
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
  border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%;
  animation: gbHaloMorph 18s ease-in-out infinite, gbHaloDrift 22s ease-in-out infinite;
  transform-origin: center;
}
.gb-mosaic-row {
  display: grid;
  gap: 14px;
  width: 100%;
}
/* verticales : 3 cellules + 2 colonnes "courbe" plus serrées
   cellules ≈ 220px (au lieu de 200), courbes ≈ 70px (au lieu de 100) → vidéos plus grosses + écart réduit */
.gb-mosaic-row--v {
  display: grid;
  grid-template-columns: 1fr 0.32fr 1fr 0.32fr 1fr;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  gap: 0;
}
.gb-mosaic-row--v .gb-mosaic-cell {
  width: 100%;
  max-width: 240px;
}
/* horizontales : 1fr 0.16fr 1fr → cellules ≈ 370px, courbe ≈ 60px (au lieu de 100) → plus compact */
.gb-mosaic-row--h {
  display: grid;
  grid-template-columns: 1fr 0.16fr 1fr;
  align-items: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

/* courbes décoratives qui guident l'œil — chemin dashé vert, bord à bord */
.gb-mosaic-curve {
  display: flex;
  align-items: center;
  justify-content: stretch;
  color: var(--brand-green-deep);
  opacity: 0.95;
  width: 100%;
}
.gb-mosaic-curve > svg {
  width: 100%;
  height: 24px;
  display: block;
}
.gb-mosaic-curve--down {
  width: 100%;
  margin: 2px 0;
  opacity: 0.95;
}
.gb-mosaic-curve--down > svg {
  width: 100%;
  height: 24px;
  display: block;
}

/* sync les courbes h avec leurs cellules voisines (midpoint de phase) */
.gb-mosaic-row--v > .gb-mosaic-curve--h:first-of-type { animation-delay: -0.7s; }
.gb-mosaic-row--v > .gb-mosaic-curve--h:nth-of-type(2) { animation-delay: -2.1s; }
.gb-mosaic-row--h > .gb-mosaic-curve--h { animation-delay: -4.9s; }

/* float doux et lent — translation pure, pas de rotation, plus subtil que les vidéos */
@keyframes gbCurveFloat {
  0%, 100% { translate: 0 0; }
  25%      { translate: 2px -4px; }
  50%      { translate: 0 -7px; }
  75%      { translate: -2px -3px; }
}
@media (prefers-reduced-motion: reduce) {
  .gb-mosaic-curve,
  .gb-mosaic-curve--down { animation: none; }
}

/* cellule = tuile vidéo + caption en dessous, animations sur la cellule */
.gb-mosaic-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.gb-mosaic-cell.gb-reveal {
  animation: gbReveal 600ms var(--ease-out) forwards;
}

.gb-mosaic-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(10, 10, 10, 0.06);
  box-shadow: 0 8px 20px rgba(10, 10, 10, 0.06);
  transition: box-shadow var(--dur-slow) var(--ease-out), transform var(--dur-base) var(--ease-out);
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.gb-mosaic-cell:hover .gb-mosaic-item {
  box-shadow: 0 22px 44px rgba(10, 10, 10, 0.14);
  transform: translateY(-2px);
}
.gb-mosaic-item > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  cursor: pointer;
}
/* Hide native fullscreen + PiP + overflow buttons sur Chrome/Safari (controlsList n'est pas
   100% respecté selon les versions Chrome → on force avec les pseudo-elements WebKit) */
video::-webkit-media-controls-fullscreen-button,
video::-webkit-media-controls-picture-in-picture-button,
video::-webkit-media-controls-overflow-button,
video::-webkit-media-controls-overflow-menu-button,
video::-webkit-media-controls-toggle-closed-captions-button {
  display: none !important;
}
.gb-mosaic-item--v { aspect-ratio: 9 / 16; }
.gb-mosaic-item--h { aspect-ratio: 16 / 9; }

/* mute toggle au coin supérieur droit */
.gb-mosaic-item .gb-project-mute { z-index: 3; }

/* bouton "voir en grand" — à gauche du mute (DESKTOP uniquement) */
.gb-project-expand {
  position: absolute;
  top: 10px;
  right: 52px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  pointer-events: auto;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.gb-project-expand:hover { background: rgba(0, 0, 0, 0.78); transform: scale(1.06); }
.gb-project-expand:active { transform: scale(0.96); }
.gb-project-expand svg { display: block; }

/* MOBILE : tap target qui couvre toute la vidéo + indice visuel centré */
.gb-mosaic-tap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.gb-mosaic-tap-hint {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s var(--ease-out), background 0.15s var(--ease-out);
  pointer-events: none;
}
.gb-mosaic-tap:active .gb-mosaic-tap-hint {
  transform: scale(0.92);
  background: rgba(0, 0, 0, 0.7);
}
/* le mute doit rester cliquable au-dessus du tap area */
.gb-mosaic-item .gb-project-mute { z-index: 3; }

/* ==========================================================================
   VIDEO MODAL — "petite fenêtre" qui s'ouvre au lieu du fullscreen natif
   → garde l'aspect-ratio de la vidéo (pas de crop pour les verticales 9:16 sur desktop)
   ========================================================================== */
.gb-video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.78);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: gbModalIn 280ms var(--ease-out);
}
@keyframes gbModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.gb-video-modal-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
}
/* la "frame" : conteneur de la vidéo + des boutons en overlay, sert d'ancre absolute */
.gb-video-modal-frame {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.gb-video-modal-video {
  display: block;
  background: #000;
  max-width: 100%;
  max-height: 84vh;
  cursor: pointer;
}
/* verticale 9:16 — la hauteur pilote */
.gb-video-modal-video--v {
  height: 84vh;
  width: auto;
  aspect-ratio: 9 / 16;
}
/* horizontale 16:9 — la largeur pilote */
.gb-video-modal-video--h {
  width: min(92vw, 1200px);
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 84vh;
}

/* bouton mute custom — coin haut-gauche de la vidéo */
.gb-video-modal-mute {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.gb-video-modal-mute:hover {
  background: rgba(0, 0, 0, 0.78);
  transform: scale(1.05);
}
.gb-video-modal-mute svg { display: block; }

/* timeline custom au bas de la vidéo — fine bande blanche, cliquable pour seek */
.gb-video-modal-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  z-index: 2;
  transition: height 0.15s var(--ease-out);
}
.gb-video-modal-progress:hover {
  height: 6px;
}
.gb-video-modal-progress-fill {
  height: 100%;
  background: #fff;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

.gb-video-modal-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: -0.005em;
}
.gb-video-modal-caption .dot {
  margin: 0;
  width: 6px;
  height: 6px;
  background: var(--brand-green);
}

/* Quand le modal vidéo est ouvert : on masque le header (nav) et le popup WhatsApp
   → vue plein écran épurée, plus rien ne passe devant la vidéo */
body.gb-video-modal-open .gb-header,
body.gb-video-modal-open .gb-wa-popup {
  visibility: hidden;
  pointer-events: none;
}

/* bouton FERMER — au coin haut-droit de la vidéo, accessible et immédiatement repérable */
.gb-video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  z-index: 3;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}
.gb-video-modal-close:hover {
  background: #fff;
  transform: scale(1.08);
}
.gb-video-modal-close:active { transform: scale(0.95); }

@media (max-width: 720px) {
  .gb-video-modal { padding: 12px; }
  .gb-video-modal-video--v { height: 72vh; }
  .gb-video-modal-video--h { width: 96vw; max-height: 70vh; }
  .gb-video-modal-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }
  .gb-video-modal-mute {
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
  }
  .gb-project-expand {
    right: 50px;
    width: 30px;
    height: 30px;
  }
}

/* Note discrète sous la mosaïque — visible UNIQUEMENT sur mobile */
.gb-mosaic-mobile-hint {
  display: none;
}
@media (max-width: 720px) {
  .gb-mosaic-mobile-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 6px;
    margin: 0 auto 14px;
    padding: 0;
    font-size: 11px;
    letter-spacing: 0.02em;
    color: var(--fg-3);
    text-align: center;
    line-height: 1.3;
  }
  .gb-mosaic-mobile-hint svg {
    color: var(--brand-green-deep);
    flex: none;
    animation: gbMobileHintBob 2.2s ease-in-out infinite;
  }
  @keyframes gbMobileHintBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(2px); }
  }
}

/* ==========================================================================
   MODAL MENTIONS LÉGALES — fenêtre blanche, contenu typo lisible
   ========================================================================== */
.gb-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.78);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: gbModalIn 280ms var(--ease-out);
}
.gb-legal-modal-inner {
  position: relative;
  background: #fff;
  border-radius: 22px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  -webkit-overflow-scrolling: touch;
}
.gb-legal-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.gb-legal-modal-close:hover {
  background: var(--bg-soft);
  transform: scale(1.05);
}
.gb-legal-modal-close:active { transform: scale(0.95); }

.gb-legal-content {
  padding: 48px 52px 40px;
}
.gb-legal-content h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 32px;
  color: var(--fg);
}
.gb-legal-content section {
  margin-bottom: 6px;
}
.gb-legal-content h3 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-green-deep);
  margin: 26px 0 10px;
  font-weight: 600;
}
.gb-legal-content p {
  font-size: 14.5px;
  color: var(--fg-2);
  line-height: 1.6;
  margin: 0 0 12px;
  max-width: 100%;
}
.gb-legal-content p strong {
  color: var(--fg);
  font-weight: 500;
}
.gb-legal-content a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--brand-green-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: opacity var(--dur-base);
}
.gb-legal-content a:hover { opacity: 0.65; }

/* lien "mentions légales" dans le footer */
.gb-footer-copy {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.gb-footer-sep {
  color: var(--fg-3);
  opacity: 0.6;
}
.gb-footer-legal-link {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--line-strong);
  transition: color var(--dur-base) var(--ease-out), text-decoration-color var(--dur-base) var(--ease-out);
}
.gb-footer-legal-link:hover {
  color: var(--fg);
  text-decoration-color: var(--brand-green-deep);
}

@media (max-width: 720px) {
  .gb-legal-modal { padding: 12px; }
  .gb-legal-modal-inner { max-height: 94vh; border-radius: 18px; }
  .gb-legal-content { padding: 36px 24px 28px; }
  .gb-legal-content h2 { font-size: 22px; margin-bottom: 24px; }
  .gb-legal-modal-close { top: 12px; right: 12px; width: 34px; height: 34px; }
  .gb-legal-content p { font-size: 14px; }
}

/* caption sous la tuile — dot + label, sobre */
.gb-mosaic-caption-below {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font-size: 13px;
  color: var(--fg-2);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.gb-mosaic-caption-below .dot {
  margin: 0;
  width: 6px;
  height: 6px;
  background: var(--brand-green-deep);
  flex: none;
}

/* responsive — grilles proportionnelles pour que tout rentre dans le cadre sur mobile */
@media (max-width: 720px) {
  .gb-mosaic {
    padding: 22px 14px 20px;
    border-radius: 20px;
    max-width: 100%;
  }
  /* sur mobile, la mosaïque est haute et étroite → le drift ±4 % du halo crée un décalage visible.
     On garde la morph (changement de forme) mais on fige la position pile au centre */
  .gb-mosaic::before {
    width: 95%;
    animation: gbHaloMorph 18s ease-in-out infinite;
    transform: translate(-50%, -50%);
  }
  /* verticales : 3 cells + 2 curves, tout en fr → s'adaptent au cadre */
  .gb-mosaic-row--v {
    grid-template-columns: 1fr 0.45fr 1fr 0.45fr 1fr;
    max-width: 100%;
    margin: 0 auto;
    gap: 0;
    align-items: start; /* les cells ne s'étirent pas — les articles s'alignent en haut */
  }
  .gb-mosaic-row--v .gb-mosaic-cell {
    width: 100%;
    max-width: none;
  }
  /* horizontales : 2 cells + 1 curve, mêmes proportions visuelles que la rangée verticale */
  .gb-mosaic-row--h {
    grid-template-columns: 3.5fr 1fr 3.5fr;
    max-width: 100%;
    margin: 0 auto;
    align-items: start;
  }
  /* caption : taille réduite + min-height qui couvre 2 lignes
     → "Reel 100% animé" tient sur 1 ligne, mais on garde la même hauteur que si ça wrapait,
     donc les 3 cellules ont la même hauteur totale et les vidéos sont parfaitement alignées */
  .gb-mosaic-caption-below {
    font-size: 11px;
    min-height: 2.6em;
    align-items: flex-start;
  }
}
@media (max-width: 420px) {
  .gb-mosaic { padding: 18px 10px 16px; }
  .gb-mosaic-row--v {
    grid-template-columns: 1fr 0.35fr 1fr 0.35fr 1fr;
  }
}

/* ==========================================================================
   BENTO SHOWCASE (legacy — non utilisé actuellement)
   ========================================================================== */
.gb-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.gb-bento-featured {
  grid-row: 1 / 4;
  grid-column: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  isolation: isolate;
}
.gb-bento-featured > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0a0a;
  display: block;
  border-radius: inherit;
}
.gb-bento-caption {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-radius: 14px;
  color: #fff;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gb-bento-caption .pl-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gb-bento-caption .pl-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-green);
}
.gb-bento-caption .pl-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
/* mute toggle (réutilise .gb-project-mute) */
.gb-bento-featured .gb-project-mute { z-index: 4; }

/* thumbnails */
.gb-bento-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
  aspect-ratio: 16 / 9;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  isolation: isolate;
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
  outline: none;
}
/* wide thumb (slot 5) garde le 16/9 mais sur 2 colonnes → plus large/haut */
.gb-bento-thumb[data-slot="5"] { aspect-ratio: 32 / 9; }
.gb-bento-thumb > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  pointer-events: none;
}
.gb-bento-thumb:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: var(--line-strong);
}
.gb-bento-thumb.is-active {
  border-color: var(--brand-green-deep);
  box-shadow:
    0 0 0 4px rgba(184, 217, 126, 0.28),
    0 10px 28px rgba(10, 10, 10, 0.12);
}
.gb-bento-thumb-num {
  position: absolute;
  top: 8px; left: 8px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.gb-bento-thumb.is-active .gb-bento-thumb-num {
  background: var(--brand-green-deep);
  color: var(--fg);
}

/* slot placements — 2x2 + wide row 3 */
.gb-bento-thumb[data-slot="1"] { grid-row: 1; grid-column: 2; }
.gb-bento-thumb[data-slot="2"] { grid-row: 1; grid-column: 3; }
.gb-bento-thumb[data-slot="3"] { grid-row: 2; grid-column: 2; }
.gb-bento-thumb[data-slot="4"] { grid-row: 2; grid-column: 3; }
.gb-bento-thumb[data-slot="5"] { grid-row: 3; grid-column: 2 / 4; }

/* progress hint on the auto-rotating active thumb */
.gb-bento-thumb.is-active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  background: var(--brand-green-deep);
  width: 100%;
  transform-origin: left center;
  animation: gbBentoProgress 8s linear infinite;
  z-index: 3;
  border-radius: 0 0 14px 14px;
}
.gb-bento.is-paused .gb-bento-thumb::after { display: none; }
@keyframes gbBentoProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* responsive */
@media (max-width: 880px) {
  .gb-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .gb-bento-featured {
    grid-row: auto;
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }
  .gb-bento-thumb[data-slot] {
    grid-row: auto;
    grid-column: auto;
    aspect-ratio: 16 / 9;
  }
  .gb-bento-thumb[data-slot="5"] {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   Legacy project cards layout (kept for backwards compatibility)
   ============================================================ */
.gb-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 240px));
  justify-content: center;
  gap: 28px 20px;
}
/* wrapper around each card+caption (was just the card before) */
.gb-project-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gb-project-wrap.gb-project-wrap--horizontal {
  grid-column: 1 / -1;
  width: calc(240px * 16 / 9);
  max-width: 100%;
  justify-self: center;
  align-self: start;
}
.gb-project-wrap.gb-project-wrap--horizontal .gb-project {
  aspect-ratio: 16 / 9;
}
/* caption (tag + title) shown BELOW each video card — same vocabulary as eyebrows elsewhere */
.gb-project-caption {
  padding: 4px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gb-project-caption .pl-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  line-height: 1;
}
.gb-project-caption .pl-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green-deep);
  flex: none;
}
.gb-project-caption .pl-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--fg);
}
@keyframes gbHaloMorph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%; }
  25%      { border-radius: 42% 58% 38% 62% / 60% 40% 60% 40%; }
  50%      { border-radius: 50% 50% 60% 40% / 55% 45% 55% 45%; }
  75%      { border-radius: 65% 35% 50% 50% / 40% 60% 35% 65%; }
}
@keyframes gbHaloDrift {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  33%      { transform: translate(-48%, -52%) scale(1.06) rotate(8deg); }
  66%      { transform: translate(-52%, -48%) scale(0.97) rotate(-6deg); }
}
.gb-project {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-slow) var(--ease-out);
  /* Chrome fix: force compositing layer so border-radius clips video cleanly */
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  isolation: isolate;
  /* belt + suspenders Chrome clip — webkit-mask forces the clip even when
     the video paints on its own GPU layer that ignores parent overflow */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
/* Chain BOTH animations: one-time reveal (transform property) + continuous float (translate property).
   Higher specificity than .gb-reveal so this wins the cascade. */
.gb-project-wrap.gb-reveal {
  animation: gbReveal 600ms var(--ease-out) forwards, gbFloat 7s ease-in-out infinite;
}
.gb-project-wrap.gb-reveal:nth-child(1) { animation-delay: 80ms, 0s; }
.gb-project-wrap.gb-reveal:nth-child(2) { animation-delay: 160ms, -1.7s; }
.gb-project-wrap.gb-reveal:nth-child(3) { animation-delay: 240ms, -3.4s; }
.gb-project-wrap.gb-reveal:nth-child(4) { animation-delay: 320ms, -5.1s; }
.gb-project-wrap.gb-reveal:nth-child(5) { animation-delay: 400ms, -6.8s; }
.gb-project:hover {
  box-shadow: 0 24px 48px rgba(10,10,10,0.18);
}
/* gbFloat uses `translate` + `rotate` (CSS properties), independent of gbReveal's `transform` —
   so both animations stack visually instead of overriding each other. */
@keyframes gbFloat {
  0%, 100% { translate: 0 0;     rotate: 0deg; }
  25%      { translate: 4px -8px; rotate: 0.4deg; }
  50%      { translate: 0 -14px;  rotate: -0.3deg; }
  75%      { translate: -4px -6px; rotate: 0.2deg; }
}
@media (prefers-reduced-motion: reduce) {
  .gb-project-wrap.gb-reveal { animation: gbReveal 600ms var(--ease-out) forwards; }
}

.gb-project-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  /* match parent's rounded clip so Chrome doesn't paint corners outside */
  border-radius: inherit;
}

/* one-click mute toggle, top-right corner of every video card */
.gb-project-mute {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  pointer-events: auto;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.gb-project-mute:hover {
  background: rgba(0, 0, 0, 0.78);
  transform: scale(1.06);
}
.gb-project-mute:active { transform: scale(0.96); }
.gb-project-mute svg { display: block; }

@media (max-width: 1100px) {
  .gb-projects { grid-template-columns: repeat(2, minmax(0, 240px)); gap: 24px 16px; }
  .gb-project-wrap.gb-project-wrap--horizontal { grid-column: 1 / -1; width: calc(240px * 16 / 9); max-width: 100%; }
}
@media (max-width: 600px) {
  .gb-showcase { padding: 16px 16px 12px; }
  .gb-showcase + .gb-section { padding-top: 40px; }
  .gb-projects {
    grid-template-columns: repeat(2, minmax(0, 160px));
    justify-content: center;
    gap: 20px 14px;
  }
  .gb-project-wrap.gb-project-wrap--horizontal {
    grid-column: 1 / -1;
    width: calc(160px * 16 / 9);
    max-width: 92%;
    justify-self: center;
    align-self: start;
  }
}

/* ==========================================================================
   SECTIONS — generic
   ========================================================================== */
.gb-section { padding: 96px 32px; max-width: var(--w-wide); margin: 0 auto; }
.gb-section--soft-wrap { background: var(--bg-soft); }
.gb-section--soft-wrap .gb-section { padding-top: 96px; padding-bottom: 96px; }

.gb-section-head {
  margin-bottom: 56px;
  display: grid; grid-template-columns: auto 1fr; gap: 32px;
  align-items: last baseline;
}
.gb-section-eyebrow {
  font-size: 13px; color: var(--fg-3); letter-spacing: 0.06em;
  text-transform: uppercase; margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.gb-section-eyebrow .dot { background: var(--brand-green-deep); width: 7px; height: 7px; margin: 0; }

.gb-section-head h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0; max-width: 720px;
}
.gb-section-head .gb-section-aside {
  font-size: 16px; color: var(--fg-2); max-width: 320px; margin: 0;
  text-align: right;
}

@media (max-width: 720px) {
  .gb-section { padding: 64px 20px; }
  .gb-section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
    text-align: center;
    justify-items: center;
  }
  .gb-section-head h2 { text-align: center; margin-left: auto; margin-right: auto; }
  .gb-section-head .gb-section-aside {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   SERVICES — 4 horizontal rows
   ========================================================================== */
.gb-services {
  display: grid; gap: 0;
  border-top: 1px solid var(--fg);
}
.gb-service-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr auto;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding var(--dur-base) var(--ease-out);
}
.gb-service-row:hover {
  padding-left: 12px;
}
.gb-service-num {
  font-size: 14px; color: var(--fg-3); letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.gb-service-name {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.gb-service-name .t-italic-serif { font-weight: 400; }
.gb-service-icon {
  flex: none;
  color: var(--fg-2);
  display: block;
}
.gb-service-desc {
  font-size: 16px; color: var(--fg-2); line-height: 1.5;
  margin: 0; max-width: 480px;
}
.gb-service-tag {
  font-size: 13px; color: var(--fg-2); letter-spacing: 0.02em;
  padding: 8px 16px; border-radius: 999px;
  background: rgb(240, 240, 240);
  border: 1px solid transparent;
  white-space: nowrap;
  display: inline-flex; align-items: center;
  line-height: 1;
  width: auto;
  min-width: max-content;
}
.gb-service-tag--green {
  background: var(--brand-green); border-color: transparent; color: var(--fg);
  font-weight: 500;
}
.gb-service-tag--white {
  background: #ffffff; border-color: var(--line-strong); color: var(--fg);
}

@media (max-width: 880px) {
  /* la colonne des services se centre sur la page */
  .gb-services {
    max-width: 460px;
    margin: 0 auto;
  }
  .gb-service-row {
    grid-template-columns: 40px 1fr;
    gap: 8px 16px;
    padding: 24px 0;
  }
  .gb-service-row:hover { padding-left: 0; }
  .gb-service-desc {
    grid-column: 2;
    margin-top: 8px;
  }
  .gb-service-tag {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
}

/* ==========================================================================
   ABOUT — photo + paragraph
   ========================================================================== */
.gb-about {
  display: block;
  text-align: center;
}
/* photo bandeau : fin, cadré pile sur les yeux */
.gb-about-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 1;
  max-height: 100px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-2);
  margin: 0 auto 36px;
  animation: gbFloat 7s ease-in-out infinite;
  animation-delay: -2.2s;
}
@media (prefers-reduced-motion: reduce) {
  .gb-about-photo { animation: none; }
}
.gb-about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* yeux & lunettes centrés dans le bandeau (légèrement plus bas que le centre) */
  object-position: 50% 32%;
  display: block;
}

.gb-about-copy { padding-top: 0; }
/* greeting "Salutations, je suis Grégoire." — propre, sobre, centré */
.gb-about-greeting {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin: 0 auto 36px;
  max-width: 620px;
  text-wrap: balance;
}
.gb-about-copy p {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
}

/* grille de 3 items : finance+vidéo / spécialité / travail solo */
.gb-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto 40px;
}
.gb-about-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 20px 16px;
}
.gb-about-item-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--brand-green-deep);
}
.gb-about-item p {
  max-width: 240px;
}
/* l'item spécialité ressort un peu : fond doux + bordure subtile */
.gb-about-item--specialty {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
}
.gb-about-item--specialty p {
  font-size: 17px;
  color: var(--fg);
  font-weight: 500;
}

@media (max-width: 720px) {
  .gb-about-grid { grid-template-columns: 1fr; gap: 14px; }
  .gb-about-greeting { margin-bottom: 24px; }
  .gb-about-item { padding: 16px 12px; }
}

.gb-about-stats {
  display: flex; gap: 48px; margin-top: 40px; flex-wrap: wrap;
  justify-content: center;
}
.gb-about-stat { align-items: center; }
.gb-about-stat {
  display: flex; flex-direction: column; gap: 2px;
}
.gb-about-stat-num {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1;
}
.gb-about-stat-label {
  font-size: 13px; color: var(--fg-3); letter-spacing: 0.02em;
}

@media (max-width: 880px) {
  .gb-about-photo { aspect-ratio: 7 / 1; max-height: 80px; margin-bottom: 24px; }
  .gb-about-copy { padding-top: 0; max-width: 600px; margin: 0 auto; }
  .gb-about-stats { gap: 32px; justify-content: center; }
}

/* ==========================================================================
   PRICING — single transparent block, WhatsApp CTA
   ========================================================================== */
.gb-pricing-wrap {
  background: var(--bg-inverse);
  color: var(--fg-on-inverse);
  border-radius: 32px;
  margin: 0 32px 96px;
  padding: 80px 64px;
  max-width: calc(var(--w-wide) - 64px);
  margin-left: auto; margin-right: auto;
  position: relative;
  overflow: hidden;
}
.gb-pricing-wrap::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px;
  background: var(--brand-green); opacity: 0.18;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.gb-pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
  position: relative; z-index: 1;
}
.gb-pricing-eyebrow {
  font-size: 13px; color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
}
.gb-pricing-eyebrow .dot { background: var(--brand-green); width: 7px; height: 7px; margin: 0; }

.gb-pricing-grid h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 0 24px;
  color: #fff;
  text-wrap: balance;
}
.gb-pricing-grid h2 .green { color: var(--brand-green); }
.gb-pricing-grid h2 .t-italic-serif { font-weight: 400; }

.gb-pricing-grid p {
  font-size: 17px; color: var(--fg-on-inverse-2); line-height: 1.6;
  margin: 0 0 20px; max-width: 480px;
}

.gb-pricing-side {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px;
}
.gb-pricing-side-label {
  font-size: 12px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 0 16px;
}
.gb-pricing-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.gb-pricing-list li {
  display: flex; align-items: start; gap: 12px;
  font-size: 15px; color: rgba(255,255,255,0.9); line-height: 1.4;
}
.gb-pricing-list li .dot {
  background: var(--brand-green); width: 7px; height: 7px; margin: 8px 0 0; flex: none;
}

.gb-whatsapp {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 20px 14px 14px;
  background: var(--wa-green); color: #fff;
  border-radius: 999px;
  font-size: 16px; font-weight: 500;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.gb-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(37,211,102,0.3); opacity: 1; }
.gb-whatsapp-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: var(--wa-green);
  display: flex; align-items: center; justify-content: center;
}

.gb-email-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 16px;
  color: rgba(255,255,255,0.75); font-size: 15px;
}
.gb-email-link:hover { color: #fff; opacity: 1; }

@media (max-width: 880px) {
  .gb-pricing-wrap { padding: 48px 28px; margin: 0 16px 64px; border-radius: 24px; }
  .gb-pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .gb-email-link { margin-left: 0; margin-top: 12px; display: flex; }
}

/* ==========================================================================
   FOOTER — minimal
   ========================================================================== */
.gb-footer {
  border-top: 1px solid var(--line);
  padding: 40px 32px;
  max-width: var(--w-wide); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--fg-3);
}
.gb-footer .gb-wordmark {
  font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg);
}
.gb-footer-nav { display: flex; gap: 8px; }
.gb-footer-nav a {
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition:
    color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.gb-footer-nav a:hover {
  color: var(--fg);
  background: rgba(0, 0, 0, 0.05);
  opacity: 1;
  transform: translateY(-1px);
}
.gb-footer-nav a:active { transform: translateY(0); }
.gb-footer-nav svg { display: block; }

@media (max-width: 720px) {
  .gb-footer { padding: 32px 20px; flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Reveal on entry — light fade+rise (one-time on load)
   ========================================================================== */
.gb-reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: gbReveal 600ms var(--ease-out) forwards;
}
.gb-reveal.delay-1 { animation-delay: 80ms; }
.gb-reveal.delay-2 { animation-delay: 160ms; }
.gb-reveal.delay-3 { animation-delay: 240ms; }
.gb-reveal.delay-4 { animation-delay: 320ms; }

@keyframes gbReveal {
  to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   POPUP WhatsApp — apparaît au bout de 30 secondes
   ========================================================================== */
.gb-wa-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(10, 10, 10, 0.18);
  max-width: 360px;
  animation: gbWaPopupIn 320ms var(--ease-out) forwards;
}
@keyframes gbWaPopupIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gb-wa-popup-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gb-wa-popup-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.35;
}
.gb-wa-popup-text strong { font-weight: 600; letter-spacing: -0.01em; }
.gb-wa-popup-text span { color: var(--fg-2); font-size: 13px; }
.gb-wa-popup-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.gb-wa-popup-cta:hover { opacity: 1; transform: translateY(-1px); }
.gb-wa-popup-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px; height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg-3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.gb-wa-popup-close:hover { background: rgba(0,0,0,0.06); color: var(--fg); }

@media (max-width: 600px) {
  .gb-wa-popup {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
    border-radius: 16px;
    padding: 12px 14px 12px 12px;
    gap: 10px;
  }
  .gb-wa-popup-cta { padding: 9px 12px; font-size: 12px; }
}
