/* ═══════════════════════════════════════════════════════════════════
   SILART · feuille de styles du site (accueil, pages projets, pages légales)
   Mobile d'abord. Points de rupture : 640px (sm), 768px (md), 1024px (lg).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Polices (Kanit, hébergée sur le site) ─────────────────────────── */
@font-face { font-family: 'Kanit'; font-weight: 300; font-display: swap; src: url('/fonts/kanit-300.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-weight: 400; font-display: swap; src: url('/fonts/kanit-400.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-weight: 500; font-display: swap; src: url('/fonts/kanit-500.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-weight: 600; font-display: swap; src: url('/fonts/kanit-600.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-weight: 700; font-display: swap; src: url('/fonts/kanit-700.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-weight: 800; font-display: swap; src: url('/fonts/kanit-800.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-weight: 900; font-display: swap; src: url('/fonts/kanit-900.woff2') format('woff2'); }

/* ── Jetons ────────────────────────────────────────────────────────── */
:root {
  --nuit: #0c0c0c;      /* fond */
  --surface: #141417;   /* cartes */
  --clair: #d7e2ea;     /* texte principal */
  --doux: #96a0a8;      /* texte secondaire */
  --accent: #bbccd7;    /* accents */
  --ligne: rgba(255, 255, 255, 0.1);
  /* Courbe « expo-out » : départ vif, arrivée très douce (sensation premium) */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  background: var(--nuit);
  color: var(--clair);
  font-family: 'Kanit', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
main { overflow-x: clip; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgba(182, 0, 168, 0.45); color: #fff; }

.section { width: 100%; max-width: 64rem; margin-inline: auto; padding-inline: 24px; }
.surtitre { font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.25em; color: var(--accent); }
.centre { text-align: center; }
.clair { color: var(--clair); }
.ico { width: 16px; height: 16px; flex-shrink: 0; }

/* Titre en dégradé acier */
.degrade {
  background: linear-gradient(180deg, #646973 0%, #bbccd7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.titre-geant {
  text-align: center; font-weight: 900; text-transform: uppercase; line-height: 1;
  letter-spacing: -0.025em; font-size: clamp(3rem, 12vw, 160px);
}

/* Titre héros : argent métallique poli, reflet qui balaie lentement */
.hero-metal {
  background: linear-gradient(100deg, #6f767d 0%, #aab0b6 12%, #f6f8f9 26%, #cfd4d8 38%, #838a91 50%, #eef1f3 64%, #b4babf 78%, #7d848b 90%, #565c63 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: reflet-metal 7s ease-in-out infinite;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}
@keyframes reflet-metal { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* ── Boutons ───────────────────────────────────────────────────────── */
.btn-accent, .btn-ghost {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 32px; font-size: 0.875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
}
.btn-accent {
  overflow: hidden; color: #fff;
  background: linear-gradient(123deg, #18011f 7%, #b600a8 37%, #7621b0 72%, #be4c00 100%);
  box-shadow: 0 4px 4px rgba(181, 1, 167, 0.25), 4px 4px 12px #7721b1 inset;
  outline: 2px solid #fff; outline-offset: -3px;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
/* Reflet lumineux qui traverse le bouton au survol */
.btn-accent::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.btn-accent:hover { transform: scale(1.035); box-shadow: 0 10px 30px rgba(181, 1, 167, 0.35), 4px 4px 12px #7721b1 inset; }
.btn-accent:hover::after { transform: translateX(120%); }
.btn-accent:active { transform: scale(0.98); transition-duration: 0.15s; }
.btn-ghost {
  border: 2px solid var(--clair); color: var(--clair);
  transition: background-color 0.4s var(--ease), transform 0.6s var(--ease);
}
.btn-ghost:hover { background: rgba(215, 226, 234, 0.1); transform: scale(1.03); }
@media (min-width: 640px) { .btn-accent, .btn-ghost { padding: 14px 40px; } }
@media (min-width: 768px) { .btn-accent, .btn-ghost { font-size: 1rem; } }
.boutons { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
@media (min-width: 640px) { .boutons { flex-direction: row; } }

/* Lien avec soulignement qui se dessine de gauche à droite */
.lien-trait { position: relative; }
.lien-trait::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease);
}
.lien-trait:hover::after { transform: scaleX(1); transform-origin: left; }

.carte {
  display: block; border-radius: 24px; border: 1px solid var(--ligne); background: var(--surface); padding: 24px;
  transition: border-color 0.4s var(--ease), transform 0.6s var(--ease);
}
.carte:hover { border-color: rgba(215, 226, 234, 0.4); transform: translateY(-4px); }
.carte h3 { margin-top: 8px; font-size: 1.125rem; font-weight: 600; }

.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { border-radius: 999px; border: 1px solid var(--ligne); background: rgba(255, 255, 255, 0.05); padding: 6px 12px; font-size: 0.875rem; color: var(--doux); }

.pastille {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  border: 1px solid var(--ligne); background: rgba(255, 255, 255, 0.04);
  padding: 6px 16px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--doux);
}
.point-vert { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #5fcb5a; flex-shrink: 0; }
.point-vert::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #5fcb5a; opacity: 0.6;
  animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

/* Barre de progression de lecture */
.progression {
  position: fixed; inset: 0 0 auto 0; z-index: 70; height: 2px; pointer-events: none;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, #7621b0 0%, #b600a8 45%, #be4c00 80%, #bbccd7 100%);
}

/* ── Apparitions au défilement (voir public/js/site.js) ───────────────
   Sans JavaScript (pas de classe .js), tout reste visible. */
.js [data-r] {
  opacity: 0;
  transform: translate3d(var(--x, 0), var(--y, 30px), 0);
  filter: blur(8px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s);
}
.js [data-r~='net'] { filter: none; }
.js [data-r].vu { opacity: 1; transform: none; filter: none; }

/* Grands titres révélés « au masque » */
.masque { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .masque-int {
  transform: translateY(110%) rotate(3deg); transform-origin: left bottom; opacity: 0.4;
  transition: transform var(--duree, 1.2s) var(--ease) var(--d, 0s), opacity var(--duree, 1.2s) var(--ease) var(--d, 0s);
}
.js .masque.vu .masque-int { transform: none; opacity: 1; }

/* Éléments saisissables (portrait, formes 3D) */
.attrapable { pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; }
.attrapable.tenu { cursor: grabbing; }
.attrapable img { -webkit-user-drag: none; }
/* Sur téléphone : glisser verticalement fait défiler la page, on attrape en glissant de côté */
@media (pointer: coarse) { .attrapable { touch-action: pan-y; } }

/* ── Navigation ────────────────────────────────────────────────────── */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; position: relative; z-index: 30; }
.nav-marque { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em; color: var(--clair); }
.nav-marque span { color: var(--accent); }
.nav-liens { display: none; }
.nav-burger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; }
.nav-burger span { width: 28px; height: 2px; border-radius: 2px; background: var(--clair); }
@media (min-width: 768px) {
  .nav { padding: 32px 40px 0; }
  .nav .nav-marque, .nav-burger { display: none; }
  .nav-liens { display: flex; width: 100%; align-items: center; justify-content: space-between; }
  .nav-liens a { font-size: 1.125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--clair); }
}
@media (min-width: 1024px) { .nav-liens a { font-size: 1.4rem; } }

/* Menu plein écran (mobile) : s'ouvre en cercle depuis le bouton */
.menu {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
  background: rgba(12, 12, 12, 0.95); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  clip-path: circle(0% at calc(100% - 42px) 42px); visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}
.menu.ouvert { clip-path: circle(150% at calc(100% - 42px) 42px); visibility: visible; transition: clip-path 0.7s var(--ease), visibility 0s; }
.menu-haut { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.menu-fermer { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 2.25rem; font-weight: 300; line-height: 1; }
.menu-liens { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.menu-fente { overflow: hidden; }
.menu-fente a, .menu-cta { transition: transform 0.8s var(--ease) calc(0.12s + var(--i) * 0.06s), opacity 0.8s var(--ease) calc(0.12s + var(--i) * 0.06s); }
.menu-fente a { display: block; font-size: 1.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; transform: translateY(110%); }
.menu-cta { margin-top: 16px; opacity: 0; transform: translateY(20px); }
.menu.ouvert .menu-fente a { transform: none; }
.menu.ouvert .menu-cta { opacity: 1; transform: none; }
@media (min-width: 768px) { .menu { display: none; } }

/* ── Hero ──────────────────────────────────────────────────────────
   Mobile : pastille + titre en haut, portrait au centre, bouton en bas.
   Ordinateur : titre géant au centre, portrait derrière, barre en bas. */
.hero { position: relative; display: flex; flex-direction: column; height: 100svh; min-height: 600px; overflow: hidden; }
.halo { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at 50% 0%, rgba(187, 204, 215, 0.12), transparent 70%); }
.hero-lueur {
  position: absolute; bottom: 14%; left: 50%; height: 46svh; width: 110vw; transform: translateX(-50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(182, 0, 168, 0.22), rgba(118, 33, 176, 0.1) 55%, transparent 80%);
}
.hero-titre { position: relative; z-index: 20; display: flex; flex-direction: column; align-items: center; overflow: hidden; padding: 6svh 16px 0; pointer-events: none; }
.hero-pastille { margin-bottom: 20px; font-size: 11px; letter-spacing: 0.2em; padding: 6px 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-pastille .point-vert { width: 6px; height: 6px; }
.hero-metal { white-space: nowrap; text-align: center; font-size: 25vw; font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -0.025em; }
.hero-sous { margin-top: 12px; text-align: center; font-weight: 300; text-transform: uppercase; line-height: 1.625; letter-spacing: 0.22em; color: var(--clair); font-size: clamp(0.74rem, 1.6vw, 1.4rem); }
.hero-nom, .hero-role { display: block; }
.hero-role { color: var(--doux); }
.hero-sep { display: none; }
.hero-portrait { position: absolute; bottom: 104px; left: 50%; z-index: 10; width: min(80vw, 38svh); transform: translateX(-50%); }
.hero-portrait img { width: 100%; }
.hero-degrade { position: absolute; inset: auto 0 0 0; z-index: 10; height: 9rem; pointer-events: none; background: linear-gradient(to top, var(--nuit), rgba(12, 12, 12, 0.9), transparent); }
.hero-bas {
  position: relative; z-index: 20; margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 0 20px max(1.25rem, env(safe-area-inset-bottom)); text-align: center;
}
.hero-desc { display: none; }
.hero-cta, .hero-cta .btn-accent { width: 100%; }
.hero-defile { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--doux); }
.rebond { width: 14px; height: 14px; animation: rebond 1s infinite; }
@keyframes rebond { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); } 50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); } }
/* Petits écrans (iPhone SE…) : on retire la pastille et on réduit le portrait */
@media (max-height: 700px) and (max-width: 767px) {
  .hero-pastille { display: none; }
  .hero-portrait { width: 33svh; }
}
@media (min-width: 768px) {
  .hero { height: auto; min-height: 100svh; overflow: visible; }
  .hero-lueur, .hero-degrade, .hero-pastille, .hero-defile { display: none; }
  .hero-titre { flex: 1; justify-content: center; padding-top: 0; }
  .hero-metal { font-size: 22vw; }
  .hero-sous { letter-spacing: 0.3em; }
  .hero-nom, .hero-role, .hero-sep { display: inline; }
  .hero-role { color: var(--clair); }
  .hero-portrait { bottom: 0; width: 400px; }
  .hero-bas { margin-top: 0; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 40px 40px; text-align: left; }
  .hero-desc { display: block; max-width: 300px; font-weight: 300; text-transform: uppercase; line-height: 1.375; letter-spacing: 0.025em; color: var(--doux); font-size: clamp(0.7rem, 1.3vw, 1.25rem); }
  .hero-cta, .hero-cta .btn-accent { width: auto; }
}
@media (min-width: 1024px) { .hero-portrait { width: 460px; } }

/* ── Bandeau de projets ────────────────────────────────────────────── */
.bandeau { display: flex; flex-direction: column; gap: 12px; background: var(--nuit); padding: 96px 0 40px; }
.bandeau-rangee { display: flex; gap: 12px; width: max-content; will-change: transform; transform: translate3d(-200px, 0, 0); }
.bandeau-rangee[data-bandeau='-1'] { transform: translate3d(200px, 0, 0); }
.tuile {
  position: relative; flex-shrink: 0; height: 270px; width: 320px; overflow: hidden; border-radius: 16px;
  border: 1px solid var(--ligne); transition: border-color 0.5s var(--ease);
}
.tuile:hover { border-color: rgba(255, 255, 255, 0.3); }
.tuile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tuile:hover > img { transform: scale(1.07); }
.tuile-ombre { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.25), transparent); }
.tuile-texte { position: absolute; inset: auto 0 0 0; padding: 20px; transition: transform 0.7s var(--ease); }
.tuile:hover .tuile-texte { transform: translateY(-4px); }
.tuile-type { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.tuile-titre { display: block; margin-top: 4px; font-size: 1.5rem; font-weight: 600; color: var(--clair); }
.tuile-vide { display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); padding: 24px; }
.tuile-vide:hover { border-color: rgba(215, 226, 234, 0.5); }
.tuile-entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tuile-enligne { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--doux); }
.tuile-resume { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 0.875rem; font-weight: 300; line-height: 1.625; color: var(--doux); }
@media (min-width: 640px) { .tuile { width: 420px; } .bandeau { padding-top: 128px; } }
@media (min-width: 768px) { .bandeau { padding-top: 160px; } }

/* ── À propos ──────────────────────────────────────────────────────── */
.apropos { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 80px 20px; }
.forme { position: absolute; z-index: 10; pointer-events: none; }
.forme img { width: 80px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45)); }
.forme-1 { left: 6%; top: 2%; }
.forme-2 { right: 6%; top: 3.5%; }
.forme-3 { bottom: 2%; left: 8%; }
.forme-4 { bottom: 3.5%; right: 8%; }
.flottant { animation: flotte var(--flotte, 6s) ease-in-out infinite; will-change: transform; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.pilule-pos { position: absolute; display: none; }
.pilule { display: inline-block; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.15); background: var(--surface); padding: 10px 20px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--doux); }
.pilule-1 { left: 2%; top: 6%; } .pilule-1 .pilule { transform: rotate(-6deg); }
.pilule-2 { right: 2%; top: 6%; } .pilule-2 .pilule { transform: rotate(3deg); }
.pilule-3 { bottom: 8%; left: 3%; } .pilule-3 .pilule { transform: rotate(6deg); }
.pilule-4 { bottom: 8%; right: 3%; } .pilule-4 .pilule { transform: rotate(-3deg); }
.apropos-centre { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.apropos-texte { max-width: 560px; text-align: center; font-weight: 500; line-height: 1.625; color: var(--clair); font-size: clamp(1rem, 2vw, 1.35rem); }
.mot { display: inline-block; will-change: opacity, transform; }
.parcours { margin-top: 64px; width: 100%; max-width: 56rem; display: grid; gap: 12px; }
.parcours-carte { border-radius: 16px; border: 1px solid var(--ligne); background: rgba(20, 20, 23, 0.6); padding: 16px 20px; }
.parcours-type { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.parcours-structure { margin-top: 4px; font-weight: 500; color: var(--clair); }
.parcours-poste { margin-top: 2px; font-size: 0.875rem; font-weight: 300; color: var(--doux); }
.apropos-cta { margin-top: 56px; }
@media (min-width: 640px) {
  .apropos { padding-inline: 32px; }
  .forme img { width: 96px; }
  .pilule-pos { display: block; }
  .pilule-1 { left: 4%; } .pilule-2 { right: 4%; } .pilule-3 { left: 6%; } .pilule-4 { right: 6%; }
  .apropos-centre { gap: 56px; }
  .parcours { margin-top: 80px; grid-template-columns: repeat(3, 1fr); }
  .apropos-cta { margin-top: 64px; }
}
@media (min-width: 768px) {
  .apropos { padding-inline: 40px; }
  .pilule { font-size: 0.875rem; }
  .pilule-1 { left: 6%; } .pilule-2 { right: 6%; } .pilule-3 { left: 10%; } .pilule-4 { right: 10%; }
  .apropos-centre { gap: 64px; }
}
@media (min-width: 1024px) {
  .forme img { width: 144px; }
  .forme-1 { left: 5%; top: 16%; }
  .forme-2 { right: 5%; top: 18%; }
  .forme-3 { bottom: auto; left: 4%; top: 48%; }
  .forme-4 { bottom: auto; right: 4%; top: 46%; }
}

/* ── Ils me font confiance ─────────────────────────────────────────── */
.logos { border-block: 1px solid rgba(255, 255, 255, 0.05); padding: 64px 0; }
.logos-titre { margin-top: 12px; text-align: center; font-size: 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: -0.025em; color: var(--clair); }
.logos-fenetre {
  margin-top: 48px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.logos-piste { display: flex; width: max-content; animation: logos-defile var(--duree, 32s) linear infinite; will-change: transform; }
.logos-piste:hover { animation-play-state: paused; }
@keyframes logos-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logos-liste { display: flex; flex-shrink: 0; align-items: center; gap: 80px; padding-right: 80px; width: max-content; }
.logos-liste li { flex-shrink: 0; }
.logos-liste img { height: 48px; width: auto; max-width: 260px; opacity: 0.8; filter: grayscale(1); transition: opacity 0.3s, filter 0.3s; }
.logos-liste img:hover { opacity: 1; filter: none; }
@media (min-width: 640px) { .logos-liste img { height: 56px; } }
@media (min-width: 768px) {
  .logos { padding: 96px 0; }
  .logos-titre { font-size: 2.25rem; }
  .logos-fenetre { margin-top: 64px; }
  .logos-liste { gap: 112px; padding-right: 112px; }
  .logos-liste img { height: 80px; }
}

/* ── Services (fond clair) ─────────────────────────────────────────── */
.services { background: #fff; color: var(--nuit); border-radius: 40px 40px 0 0; padding: 80px 20px; }
.services-masque { margin-bottom: 64px; }
.services-titre { color: var(--nuit); }
.services-liste { max-width: 64rem; margin-inline: auto; }
.service { position: relative; }
.service-int { display: flex; align-items: flex-start; gap: 24px; padding: 32px 0; }
.js .service-int { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease) 0.05s, transform 1s var(--ease) 0.05s; }
.js .service.vu .service-int { opacity: 1; transform: none; }
.service-num { flex-shrink: 0; font-weight: 900; line-height: 1; font-size: clamp(3rem, 10vw, 140px); transition: transform 0.7s var(--ease), opacity 0.7s var(--ease); }
.service-texte { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; transition: transform 0.7s var(--ease); }
.service-texte h3 { font-weight: 500; text-transform: uppercase; font-size: clamp(1rem, 2.2vw, 2.1rem); line-height: 1.2; }
.service-texte p { max-width: 42rem; font-weight: 300; line-height: 1.625; opacity: 0.6; font-size: clamp(0.85rem, 1.6vw, 1.25rem); transition: opacity 0.5s; }
.service:hover .service-num { transform: translateX(8px); opacity: 0.4; }
.service:hover .service-texte { transform: translateX(4px); }
.service:hover .service-texte p { opacity: 0.8; }
.service-trait { position: absolute; inset: auto 0 0 0; height: 1px; background: rgba(12, 12, 12, 0.15); transform-origin: left; }
.js .service-trait { transform: scaleX(0); transition: transform 1.4s var(--ease) 0.15s; }
.js .service.vu .service-trait { transform: scaleX(1); }
@media (min-width: 640px) {
  .services { border-radius: 50px 50px 0 0; padding: 96px 32px; }
  .services-masque { margin-bottom: 80px; }
  .service-int { gap: 40px; padding: 40px 0; }
  .service-texte { gap: 12px; padding-top: 12px; }
}
@media (min-width: 768px) {
  .services { border-radius: 60px 60px 0 0; padding: 128px 40px; }
  .services-masque { margin-bottom: 112px; }
  .service-int { gap: 64px; padding: 48px 0; }
}

/* ── À la une : les trois points forts ─────────────────────────────── */
.une { padding: 96px 20px; }
.une-int { max-width: 72rem; margin-inline: auto; }
.une-entete { text-align: center; }
.une-titre { margin-top: 16px; font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -0.025em; color: var(--clair); font-size: clamp(2.6rem, 8vw, 110px); }
.une-grille { margin-top: 48px; display: grid; gap: 16px; }
.une-grille > div { height: 100%; }
.une-carte {
  --c: #bbccd7; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
  height: 100%; min-height: 340px; overflow: hidden; border-radius: 28px; border: 1px solid var(--ligne); padding: 28px;
  background: var(--surface); transition: transform 0.8s var(--ease), border-color 0.6s var(--ease);
}
.une-carte::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.5s var(--ease);
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 26%, transparent), transparent 60%);
}
.une-carte:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.une-carte:hover::before { opacity: 1; }
.une-agence { --c: #d96b45; background: linear-gradient(160deg, rgba(217, 107, 69, 0.12), transparent 55%), var(--surface); }
.une-alternance { --c: #b8325a; background: linear-gradient(160deg, rgba(184, 50, 90, 0.18), transparent 55%), var(--surface); }
.une-wiki { --c: #ff4d9d; background: linear-gradient(160deg, rgba(255, 77, 157, 0.14), rgba(253, 184, 51, 0.05) 45%, transparent 70%), var(--surface); }
.une-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.une-etiquette { border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(12, 12, 12, 0.5); padding: 6px 12px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--clair); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.une-num { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.1em; color: var(--doux); }
.une-bas { display: block; }
.une-nom { display: block; font-weight: 900; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.025em; color: var(--clair); font-size: clamp(2.2rem, 4.2vw, 56px); }
.une-wiki .une-nom {
  background: linear-gradient(100deg, #6d8bff 0%, #a774ff 25%, #ff4d9d 50%, #f07a5c 72%, #fdb833 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.une-texte { display: block; margin-top: 12px; max-width: 22rem; font-weight: 300; line-height: 1.55; color: var(--doux); }
.une-voir { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--clair); }
.une-voir .ico { transition: transform 0.6s var(--ease); }
.une-carte:hover .une-voir .ico { transform: translateX(6px); }
/* Décors propres à chaque carte */
.une-decor { position: absolute; z-index: -1; pointer-events: none; transition: transform 0.9s var(--ease); }
.une-carte:hover .une-decor { transform: translateY(-8px) scale(1.04); }
.une-tri { right: -6%; top: 22%; display: flex; align-items: flex-end; width: 74%; opacity: 0.55; mix-blend-mode: screen; }
.une-tri svg { width: 44%; flex-shrink: 0; }
.une-tri svg + svg { margin-left: -13%; }
.une-tri svg:nth-child(2) { width: 36%; }
.une-bulles { right: -90px; top: -90px; width: 300px; height: 300px; }
.une-bulles i { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(184, 50, 90, 0.55); animation: onde 4.5s var(--ease) infinite; }
.une-bulles i:nth-child(1) { width: 34%; height: 34%; border-width: 2px; border-color: rgba(184, 50, 90, 0.8); }
.une-bulles i:nth-child(2) { width: 64%; height: 64%; animation-delay: 0.4s; }
.une-bulles i:nth-child(3) { width: 100%; height: 100%; animation-delay: 0.8s; }
@keyframes onde { 0%, 100% { opacity: 0.35; transform: scale(0.96); } 50% { opacity: 0.9; transform: scale(1.03); } }
.une-soleil { right: -45px; top: 72px; width: 170px; height: 170px; }
.une-soleil i {
  position: absolute; inset: 0; border-radius: 50%; opacity: 0.8;
  background: linear-gradient(180deg, #fdb833 0%, #f07a5c 45%, #ff4d9d 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 48%, transparent 48%, transparent 54%, black 54%, black 63%, transparent 63%, transparent 69%, black 69%, black 77%, transparent 77%, transparent 83%, black 83%);
  mask-image: linear-gradient(to bottom, black 48%, transparent 48%, transparent 54%, black 54%, black 63%, transparent 63%, transparent 69%, black 69%, black 77%, transparent 77%, transparent 83%, black 83%);
  filter: drop-shadow(0 0 40px rgba(255, 77, 157, 0.45));
}
@media (max-width: 767px) {
  .une-carte { min-height: 400px; }
  .une-soleil { width: 120px; height: 120px; top: 78px; right: -28px; }
}
@media (min-width: 768px) {
  .une { padding: 128px 40px; }
  .une-grille { margin-top: 64px; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .une-carte { min-height: 440px; padding: 32px; }
}

/* ── Mon alternance ────────────────────────────────────────────────── */
.alt { --alt: #b8325a; position: relative; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 96px 20px; }
.alt-lueur {
  position: absolute; left: -20%; top: -10%; width: 900px; max-width: 140vw; height: 700px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--alt) 22%, transparent), transparent 75%);
}
.alt-int { position: relative; max-width: 72rem; margin-inline: auto; display: grid; gap: 48px; }
.alt .masque { margin-top: 16px; }
.alt-titre { white-space: nowrap; font-weight: 900; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.025em; font-size: clamp(3.6rem, 8vw, 100px); }
.alt-poste { margin-top: 16px; font-size: 1.25rem; font-weight: 500; color: var(--clair); }
.alt-poste span { font-weight: 300; color: var(--doux); }
.alt-pastille { margin-top: 20px; }
.alt-intro { margin-top: 24px; max-width: 36rem; font-weight: 300; line-height: 1.625; color: var(--doux); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.alt-visuel { margin-top: 32px; overflow: hidden; border-radius: 24px; border: 1px solid var(--ligne); }
.alt-visuel img { width: 100%; object-fit: cover; }
.alt-missions { display: grid; gap: 12px; align-content: start; }
.alt-missions > div { height: 100%; }
.alt-mission {
  --tri: var(--alt); position: relative; isolation: isolate; height: 100%; overflow: hidden; border-radius: 24px;
  border: 1px solid var(--ligne); background: rgba(20, 20, 23, 0.7); padding: 28px;
  transition: transform 0.7s var(--ease), border-color 0.5s var(--ease);
}
.alt-mission::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.5s var(--ease);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--alt) 26%, transparent), transparent 60%);
}
.alt-mission:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--alt) 55%, transparent); }
.alt-mission:hover::before { opacity: 1; }
.alt-num { font-size: 2.5rem; font-weight: 900; line-height: 1; color: var(--alt); }
.alt-mission h3 { margin-top: 16px; font-size: 1.375rem; font-weight: 600; text-transform: uppercase; letter-spacing: -0.025em; color: var(--clair); }
.alt-mission p { margin-top: 8px; font-weight: 300; line-height: 1.625; color: var(--doux); }
@media (min-width: 640px) { .alt { padding-inline: 32px; } .alt-missions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .alt { padding: 144px 40px; }
  .alt-int { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
}

/* ── Projet phare : Wiki Auto ──────────────────────────────────────── */
.wa {
  position: relative; z-index: 10; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--nuit); padding: 80px 20px 96px;
}
.wa-halo {
  position: absolute; left: 50%; top: -12%; height: 720px; width: 1100px; max-width: 160vw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 77, 157, 0.2), rgba(167, 116, 255, 0.1) 45%, transparent 75%);
  transform: translateX(-50%); animation: respire 8s ease-in-out infinite;
}
@keyframes respire { 0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); } 50% { opacity: 0.85; transform: translateX(-50%) scale(1.08); } }
.wa-int { position: relative; max-width: 72rem; margin-inline: auto; }
.wa-entete { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wa-masque { margin-top: 24px; }
/* Dégradé « coucher de soleil » repris de la charte du jeu */
.wa-titre {
  font-weight: 900; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.025em; font-size: clamp(3.4rem, 13vw, 180px);
  background: linear-gradient(100deg, #6d8bff 0%, #a774ff 25%, #ff4d9d 50%, #f07a5c 72%, #fdb833 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: coucher 9s ease-in-out infinite;
}
@keyframes coucher { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.wa-intro { max-width: 42rem; margin: 24px auto 0; font-weight: 300; line-height: 1.625; color: var(--doux); font-size: clamp(1rem, 1.7vw, 1.3rem); }

.wa-scene { position: relative; max-width: 64rem; margin: 56px auto 0; perspective: 1400px; }
.wa-grille {
  position: absolute; bottom: -18%; left: 50%; height: 55%; width: 160%; opacity: 0.4; pointer-events: none;
  background-image: linear-gradient(rgba(255, 77, 157, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 77, 157, 0.35) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: translateX(-50%) perspective(420px) rotateX(62deg); transform-origin: center top;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 85%); mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
  animation: grille 4s linear infinite;
}
@keyframes grille { from { background-position: 0 0; } to { background-position: 0 64px; } }
.wa-navigateur {
  position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--ligne); background: #0f0a1a;
  box-shadow: 0 50px 120px -30px rgba(118, 33, 176, 0.55); transform-origin: center bottom; will-change: transform, opacity;
}
.wa-barre { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ligne); background: rgba(255, 255, 255, 0.03); padding: 8px 12px; }
.wa-points { display: flex; gap: 6px; }
.wa-points i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.wa-points i:nth-child(2) { background: #febc2e; }
.wa-points i:nth-child(3) { background: #28c840; }
.wa-url { margin-inline: auto; display: flex; align-items: center; gap: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); padding: 2px 12px; font-size: 11px; color: var(--doux); }
.wa-url svg { width: 12px; height: 12px; }
.wa-vide { width: 42px; }
.wa-navigateur > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.wa-telephone { position: absolute; bottom: -40px; right: 4px; z-index: 10; will-change: transform; }
.tel { position: relative; width: 136px; border-radius: 1.8rem; background: #000; padding: 7px; box-shadow: 0 40px 80px -20px rgba(255, 77, 157, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.tel-ecran { position: relative; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 1.45rem; background: #140826; }
.tel-affiche, .tel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tel-affiche { z-index: 1; transition: opacity 0.7s; }
.tel.lecture .tel-affiche { opacity: 0; }
.tel-encoche { position: absolute; left: 50%; top: 7px; z-index: 2; height: 12px; width: 44px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.wa-chiffres { max-width: 56rem; margin: 112px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 40px; text-align: center; }
.wa-chiffre { font-weight: 900; line-height: 1; color: var(--clair); font-size: clamp(2.2rem, 5vw, 64px); font-variant-numeric: tabular-nums; }
.wa-label { margin-top: 8px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--doux); }
.wa-fonctions { margin-top: 80px; display: grid; gap: 12px; }
.wa-fonctions > div { height: 100%; }
.wa-fonction {
  position: relative; height: 100%; overflow: hidden; border-radius: 16px; border: 1px solid var(--ligne);
  background: rgba(20, 20, 23, 0.6); padding: 24px; transition: border-color 0.7s var(--ease), transform 0.7s var(--ease);
}
.wa-fonction:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.25); }
.wa-trait { position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.wa-fonction:hover .wa-trait { transform: scaleX(1); }
.wa-losange { display: block; width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.wa-fonction h3 { margin-top: 16px; font-size: 1.125rem; font-weight: 600; color: var(--clair); }
.wa-fonction p { margin-top: 6px; font-size: 0.875rem; font-weight: 300; line-height: 1.625; color: var(--doux); }
.wa-actions { margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.wa-actions .puces { max-width: 48rem; justify-content: center; }
@media (min-width: 640px) {
  .wa { padding-inline: 32px; padding-top: 96px; }
  .wa-scene { margin-top: 80px; }
  .wa-navigateur { border-radius: 16px; }
  .wa-barre { padding: 10px 16px; }
  .wa-url { padding-inline: 24px; font-size: 12px; }
  .wa-telephone { bottom: -64px; right: -16px; }
  .tel { width: 210px; border-radius: 2.1rem; }
  .tel-ecran { border-radius: 1.65rem; }
  .tel-encoche { top: 8px; height: 18px; width: 64px; }
  .wa-chiffres { margin-top: 128px; }
  .wa-fonctions { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .wa { padding: 128px 40px; }
  .wa-telephone { right: -40px; }
  .wa-chiffres { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .tel { width: 240px; }
  .wa-fonctions { grid-template-columns: repeat(3, 1fr); }
}

/* ── Projets : cartes empilées par pôle ────────────────────────────── */
.projets { position: relative; background: var(--nuit); padding: 80px 20px; }
.projets-masque { margin: 16px 0 24px; }
.projets-intro { max-width: 28rem; margin: 0 auto 64px; text-align: center; font-weight: 300; color: var(--doux); }
.pile { max-width: 72rem; margin-inline: auto; }
.pile-carte { margin-bottom: 24px; }
.pile-int {
  border-radius: 36px; border: 2px solid rgba(215, 226, 234, 0.7); background: var(--nuit); padding: 24px;
  transform-origin: top center; will-change: transform;
}
.pile-entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pile-titre { display: flex; align-items: center; gap: 20px; }
.pile-num { font-weight: 900; line-height: 1; font-size: clamp(3rem, 8vw, 110px); }
.pile-titre h3 { font-size: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: -0.025em; color: var(--clair); line-height: 1.2; }
.pile-titre p { margin-top: 4px; font-size: 0.875rem; font-weight: 300; color: var(--doux); }
.pile-compte { display: none; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--doux); }
.pile-grille { margin-top: 24px; display: grid; gap: 12px; }
.pile-lien {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 16px;
  border: 1px solid var(--ligne); background: rgba(20, 20, 23, 0.6); padding: 16px 20px;
  transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease);
}
.pile-lien:hover { border-color: rgba(215, 226, 234, 0.5); background: var(--surface); }
.pile-lien-g { display: flex; min-width: 0; align-items: center; gap: 12px; }
.pile-vignette { display: block; height: 48px; width: 64px; flex-shrink: 0; overflow: hidden; border-radius: 8px; border: 1px solid var(--ligne); }
.pile-vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.pile-lien:hover .pile-vignette img { transform: scale(1.1); }
.pile-lien-txt { min-width: 0; }
.pile-lien-titre, .pile-lien-type { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pile-lien-titre { font-weight: 500; color: var(--clair); }
.pile-lien-type { margin-top: 2px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--doux); }
.pile-lien .ico { color: var(--accent); transition: transform 0.5s var(--ease); }
.pile-lien:hover .ico { transform: translateX(6px); }
@media (min-width: 640px) {
  .projets { padding: 96px 32px; }
  .projets-intro { margin-bottom: 80px; }
  .pile-int { padding: 32px; }
  .pile-titre h3 { font-size: 1.5rem; }
  .pile-grille { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .projets { padding: 128px 40px; }
  .projets-intro { margin-bottom: 96px; }
  /* Empilement : chaque pôle reste collé en haut et se fait recouvrir par le suivant */
  .pile-carte { margin-bottom: 0; position: sticky; top: calc(6rem + var(--pile)); height: 85vh; }
  .pile-int { border-radius: 48px; padding: 40px; }
  .pile-titre { gap: 32px; }
  .pile-titre h3 { font-size: 1.875rem; }
  .pile-compte { display: block; }
  .pile-grille { margin-top: 32px; }
}

/* ── Mon agence ────────────────────────────────────────────────────── */
.agence { position: relative; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 96px 20px; }
.agence::after { content: ''; position: absolute; inset: auto 0 0 0; height: 10rem; pointer-events: none; background: linear-gradient(to top, var(--nuit), transparent); }
/* Les trois « montagnes » du logo, en fond */
.agence-montagnes {
  position: absolute; inset: auto 0 0 0; margin-inline: auto; display: flex; align-items: flex-end; justify-content: center;
  height: 70%; max-width: 72rem; opacity: 0.17; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 35%, transparent 80%); mask-image: linear-gradient(to bottom, black 35%, transparent 80%);
}
.montagne { will-change: transform; }
.montagne svg { width: 100%; }
.m1 { width: 38%; margin-right: -9%; }
.m2 { width: 30%; z-index: 1; }
.m3 { width: 38%; margin-left: -9%; }
.agence-int { position: relative; z-index: 1; max-width: 72rem; margin-inline: auto; }
.agence-entete { display: grid; gap: 40px; }
.agence .masque { margin-top: 16px; }
.agence-titre { font-weight: 900; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.025em; font-size: clamp(2.6rem, 8vw, 112px); }
.agence-logo { margin-top: 24px; aspect-ratio: 5 / 1; width: 100%; max-width: 28rem; overflow: hidden; }
.agence-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.agence-texte { font-weight: 300; line-height: 1.625; color: var(--doux); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.agence-cta { margin-top: 32px; }
.agence-poles { margin-top: 64px; display: grid; gap: 16px; }
.agence-poles > div { height: 100%; }
.tri-carte {
  --tri: #d96b45; position: relative; isolation: isolate; height: 100%; overflow: hidden; border-radius: 24px;
  border: 1px solid var(--ligne); background: rgba(20, 20, 23, 0.7); padding: 28px;
  transition: transform 0.7s var(--ease), border-color 0.5s var(--ease);
}
/* Lueur à la couleur du pôle qui suit la souris (position fournie en --mx / --my) */
.tri-carte::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.5s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--tri) 28%, transparent), transparent 60%);
}
.tri-carte:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tri) 55%, transparent); }
.tri-carte:hover::before { opacity: 1; }
.tri-haut { display: flex; align-items: center; justify-content: space-between; }
.tri-ico svg { width: 32px; height: 28px; }
.tri-num { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.1em; color: var(--doux); }
.tri-carte h3 { margin-top: 40px; font-size: 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: -0.025em; color: var(--clair); }
.tri-carte p { margin-top: 12px; font-weight: 300; line-height: 1.625; color: var(--doux); }
@media (min-width: 640px) { .agence { padding-inline: 32px; } }
@media (min-width: 768px) {
  .agence { padding: 144px 40px; }
  .agence-entete { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 64px; }
  .agence-poles { margin-top: 96px; grid-template-columns: repeat(3, 1fr); }
  .tri-carte { padding: 32px; }
  .tri-carte h3 { font-size: 1.875rem; }
}

/* ── Contact ───────────────────────────────────────────────────────── */
.contact { position: relative; z-index: 10; margin-top: -40px; border-radius: 40px 40px 0 0; background: var(--nuit); padding-block: 96px; text-align: center; }
.contact .masque { margin-top: 16px; }
.contact-titre { margin-inline: auto; font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -0.025em; font-size: clamp(2.2rem, 8vw, 96px); }
.contact-texte { max-width: 32rem; margin: 24px auto 0; font-weight: 300; color: var(--doux); }
.contact .boutons { margin-top: 40px; }
.btn-email { text-transform: lowercase; max-width: 100%; letter-spacing: 0.05em; }
@media (min-width: 640px) { .contact { margin-top: -48px; border-radius: 50px 50px 0 0; } }
@media (min-width: 768px) { .contact { margin-top: -56px; border-radius: 60px 60px 0 0; padding-block: 128px; } }

/* ── Pied de page ──────────────────────────────────────────────────── */
.pied { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.pied-int { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding-block: 32px; text-align: center; font-size: 0.875rem; color: var(--doux); }
.pied-liens { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; }
.pied-liens a { transition: color 0.3s; }
.pied-liens a:hover { color: var(--clair); }
@media (min-width: 640px) { .pied-int { flex-direction: row; text-align: left; } }

/* ── Pages secondaires (projet, pages légales) ─────────────────────── */
.barre-haut {
  position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(12, 12, 12, 0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.barre-haut-int { display: flex; height: 64px; align-items: center; justify-content: space-between; }
.barre-haut .nav-marque { font-size: 1.125rem; font-weight: 600; }
.barre-retour { font-size: 0.875rem; color: var(--doux); transition: color 0.3s; }
.barre-retour:hover { color: var(--clair); }

.fiche { padding-top: 128px; padding-bottom: 96px; }
.fiche-masque { margin-top: 16px; }
.fiche-titre { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.fiche-type { margin-top: 16px; font-size: 1.125rem; color: var(--doux); }
.fiche-puces { margin-top: 24px; }
.fiche-cover { margin-top: 40px; max-height: 520px; width: 100%; border-radius: 24px; border: 1px solid var(--ligne); object-fit: cover; }
.fiche-infos { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 0.875rem; color: var(--doux); }
.fiche-texte { margin-top: 48px; max-width: 42rem; font-size: 1.125rem; line-height: 1.625; color: var(--doux); }
.fiche-texte p + p { margin-top: 20px; }
.fiche-galerie { margin-top: 48px; display: grid; gap: 16px; }
.fiche-galerie img { width: 100%; border-radius: 24px; border: 1px solid var(--ligne); object-fit: cover; }
.fiche-lien { margin-top: 40px; }
.fiche-autres { margin-top: 96px; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 48px; }
.fiche-autres-grille { margin-top: 24px; display: grid; gap: 16px; }
@media (min-width: 640px) { .fiche-galerie { grid-template-columns: repeat(2, 1fr); } .fiche-autres-grille { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .fiche-titre { font-size: 3.75rem; } }

.legal { max-width: 48rem; padding-top: 128px; padding-bottom: 96px; }
.legal h1 { margin-top: 16px; font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.legal h2 { margin-top: 40px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; color: var(--clair); }
.legal p { margin-top: 8px; font-size: 0.875rem; line-height: 1.625; color: var(--doux); }
.legal .intro { margin-top: 16px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal .maj { margin-top: 48px; font-size: 0.75rem; }
@media (min-width: 768px) { .legal h1 { font-size: 3rem; } }

/* Page 404 */
.page-404 { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; text-align: center; }
.page-404 h1 { font-size: clamp(5rem, 25vw, 14rem); font-weight: 900; line-height: 1; }
.page-404 p { color: var(--doux); }

/* ── Réduire les animations ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-r], .js .masque-int, .js .service-int, .js .service-trait { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-metal, .wa-titre, .wa-grille, .wa-halo, .flottant, .logos-piste, .rebond, .point-vert::before, .une-bulles i { animation: none; }
  .btn-accent::after { display: none; }
  .menu, .menu-fente a, .menu-cta { transition: none; }
}
