/* ==========================================================
   Banjamin Bobel — feuille de style commune à toutes les pages
   ========================================================== */

/* Police Nohemi : mets tes fichiers dans le dossier fonts/
   (les mêmes que sur ton ancien site). Si le fichier manque,
   le site utilise Helvetica / Arial à la place. */
@font-face {
  font-family: "Nohemi";
  src: url("../fonts/Nohemi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nohemi";
  src: url("../fonts/Nohemi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --blanc: #ffffff;
  --noir: #1a1a1a;
  --gris: #666666;
  --gris-clair: #888888;
  --ligne: #e2e2e2;
  --bleu: #4169e1;
  --bleu-fonce: #3557c7;
  --vert: #2ecc71;
  --police: "Nohemi", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--noir);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (min-width: 900px) {
  .container {
    padding-left: max(48px, env(safe-area-inset-left, 0px));
    padding-right: max(48px, env(safe-area-inset-right, 0px));
  }
}

.bleu { color: var(--bleu); }
.separateur { height: 1px; background: var(--ligne); }
.label {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--bleu);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Colonne de titre à gauche + contenu à droite */
.grille {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  padding-block: 4rem;
}

/* ---------- En-tête ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--noir);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 22px;
}
.header .logo { display: block; color: inherit; transition: opacity 0.3s, transform 0.4s; }
.header .logo svg { display: block; width: auto; height: 34px; }
.header .logo:hover { opacity: 0.7; transform: rotate(-6deg); }
.header nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.header nav a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.header nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.header nav a:hover::after,
.header nav a.actif::after { transform: scaleX(1); }

/* Sur l'accueil : en-tête transparent au-dessus de la 3D */
.header.transparent {
  color: var(--blanc);
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---------- Boutons et liens ---------- */
.bouton {
  display: inline-block;
  padding: 16px 32px;
  border: 0;
  border-radius: 4px;
  background: var(--bleu);
  color: var(--blanc);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.bouton:hover { background: var(--bleu-fonce); transform: translateY(-2px); }
.bouton:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.lien-fleche {
  display: inline-flex;
  gap: 10px;
  color: var(--bleu);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lien-fleche span { transition: transform 0.3s; }
.lien-fleche:hover span { transform: translateX(6px); }

/* ==========================================================
   ACCUEIL
   ========================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}
.hero spline-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-contenu {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6vw 4rem;
  pointer-events: none;
}
.hero-texte {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 600px;
  color: var(--blanc);
  text-align: right;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
  animation: apparition 1s ease 0.3s backwards;
}
.hero-texte h1,
.hero-texte p {
  margin: 0;
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 32px);
  letter-spacing: 0.055em;
  line-height: 1.4;
}
.hero-texte .coordonnees {
  font-size: clamp(14px, 1.4vw, 18px);
  opacity: 0.85;
  margin-bottom: 0.5rem;
}
.pastille-stage {
  pointer-events: auto;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--blanc);
  color: var(--noir);
  font-size: clamp(13px, 1.1vw, 15px);
  text-decoration: none;
  text-shadow: none;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.pastille-stage { text-align: left; }
.pastille-stage:hover { background: var(--bleu); color: var(--blanc); transform: translateY(-2px); }
.point {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vert);
  animation: pulsation 2s infinite;
}
.reseaux {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: 24px max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.reseaux a {
  color: var(--blanc);
  text-decoration: none;
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}
.reseaux a:hover { opacity: 0.7; }
.reseaux .a-droite { margin-left: auto; }

/* Présentation */
.presentation { padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); }
.presentation .label { margin-bottom: 2rem; }
.accroche {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(28px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}
.presentation-bas {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.presentation-bas p { margin: 0; max-width: 46ch; color: var(--gris); line-height: 1.7; }
.presentation-bas .outils {
  color: var(--bleu);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* En-tête de section : petit label + grand titre (+ lien à droite) */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-grise { background: #f4f5f9; }
.section-tete {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-tete .label { margin-bottom: 12px; }
.section-tete h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
}

/* Cartes projets de l'accueil : grille alignée, mêmes proportions */
.cartes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
}
.carte { display: flex; flex-direction: column; gap: 20px; min-width: 0; text-decoration: none; }
.carte-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #f2f4fb;
}
.carte-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.carte:hover .carte-image img { transform: scale(1.05); }
.carte-infos {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--ligne);
  transition: border-color 0.3s;
}
.carte:hover .carte-infos { border-color: var(--bleu); }
.carte h3 { margin: 0 0 4px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; transition: color 0.3s; }
.carte:hover h3 { color: var(--bleu); }
.carte p { margin: 0; color: var(--gris); font-size: 15px; }
.carte-infos > span { color: var(--gris-clair); font-size: 14px; padding-top: 6px; }

.carte.vedette { grid-column: 1 / -1; }
.carte.vedette .carte-image { aspect-ratio: 21 / 9; }
@media (max-width: 860px) { .carte.vedette .carte-image { aspect-ratio: 16 / 10; } }

/* Services : trois cartes blanches sur fond gris */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.services article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: 12px;
  background: var(--blanc);
  transition: transform 0.3s, box-shadow 0.3s;
}
.services article:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -20px rgba(65, 105, 225, 0.35); }
.pictogramme {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #eef1fb;
  color: var(--bleu);
  font-size: 18px;
}
.services h3 { margin: 0; font-size: 24px; font-weight: 400; }
.services p { margin: 0; color: var(--gris); line-height: 1.7; }

/* Bandeau stage : texte à gauche, logo 3D qui tourne à droite */
.bandeau {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0;
  color: var(--blanc);
  background:
    radial-gradient(60% 90% at 78% 50%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(80% 120% at 0% 100%, #2a45b8 0%, rgba(42, 69, 184, 0) 60%),
    var(--bleu);
}
.bandeau::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
}
.bandeau-grille { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.bandeau-texte { min-width: 0; }
.bandeau-statut {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bandeau h2 { margin: 0; max-width: 14ch; font-size: clamp(38px, 5.4vw, 76px); font-weight: 400; line-height: 1.02; text-wrap: balance; }
.bandeau-infos { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin: 36px 0 40px; }
.bandeau-infos dt { margin-bottom: 4px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.bandeau-infos dd { margin: 0; font-size: 18px; }
.bandeau-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.bandeau .bouton { background: var(--blanc); color: var(--bleu); }
.bandeau .bouton:hover { background: #eef1fb; }
.lien-blanc { color: var(--blanc); text-decoration: none; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.lien-blanc span { display: inline-block; transition: transform 0.3s; }
.lien-blanc:hover span { transform: translateX(6px); }

.logo-3d { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; justify-self: center; cursor: grab; }
.logo-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.logo-3d-repli {
  position: absolute;
  inset: 22%;
  width: 56%;
  height: auto;
  color: var(--blanc);
  filter: drop-shadow(0 20px 30px rgba(10, 20, 80, 0.35));
  animation: tourne-repli 6s linear infinite;
}
.logo-3d.webgl .logo-3d-repli { display: none; }
.logo-3d-sol {
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 6%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 20, 80, 0.45), rgba(10, 20, 80, 0));
  pointer-events: none;
}
@keyframes tourne-repli { to { transform: rotateY(360deg); } }

@media (max-width: 860px) {
  .bandeau-grille { grid-template-columns: 1fr; }
  .logo-3d { order: -1; max-width: 300px; margin: 0 auto; }
  .bandeau-infos { grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
  .bandeau-infos dd { font-size: 16px; }
}

/* Grand appel final */
.appel { display: block; padding: clamp(80px, 10vw, 140px) 0; text-decoration: none; }
.appel small { display: block; margin-bottom: 16px; color: var(--bleu); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.appel b { display: block; font-size: clamp(40px, 8vw, 120px); text-wrap: balance; font-weight: 400; line-height: 1; transition: color 0.3s; }
.appel .fleche { display: inline-block; margin-left: 0.2em; transition: transform 0.4s; }
.appel:hover b { color: var(--bleu); }
.appel:hover .fleche { transform: translateX(16px); }

/* ==========================================================
   PAGES INTÉRIEURES (projets, contact, mentions)
   ========================================================== */
.page { padding-top: 76px; }
.citation { padding: 6rem 0 2rem; }
.citation p {
  max-width: 560px;
  margin: 0 0 0 auto;
  color: #555;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
  text-align: right;
}
.titre-page { padding: 2rem 0 4rem; }
.titre-page h1 { margin: 0; font-size: clamp(44px, 6vw, 80px); font-weight: 400; line-height: 1.1; }
.titre-page .maj { margin: 1rem 0 0; color: var(--gris-clair); font-size: 14px; }

/* Liste des projets */
.liste-projets { display: flex; flex-direction: column; gap: 4rem; padding-block: 4rem 6rem; }
.projet {
  display: block;
  padding: 24px;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s;
}
.projet:hover { transform: translateX(10px); border-color: var(--bleu); }
.projet-image {
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f4fb;
}
.projet-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.projet:hover .projet-image img { transform: scale(1.03); }
.projet-infos { display: flex; align-items: flex-start; gap: 2rem; }
.projet-annee { min-width: 60px; padding-top: 5px; }
.projet-details { flex: 1; min-width: 0; }
.projet-details h2 { margin: 0 0 8px; font-size: clamp(20px, 2.5vw, 28px); font-weight: 400; text-transform: uppercase; }
.projet-details h2 span { color: var(--gris-clair); }
.projet-details p { margin: 0; color: var(--bleu); font-size: 14px; }
.projet-numero { font-size: clamp(32px, 6vw, 80px); line-height: 1; transition: color 0.3s; }
.projet:hover .projet-numero { color: var(--bleu); }

/* Page d'un projet */
.projet-entete { padding: 5rem 0 3rem; }
.retour { display: inline-block; margin-bottom: 2rem; color: var(--bleu); font-size: 14px; text-decoration: none; }
.retour:hover { opacity: 0.7; }
.fil { margin: 0 0 1rem; color: var(--bleu); font-size: 14px; letter-spacing: 0.05em; }
.projet-entete h1 { margin: 0; font-size: clamp(48px, 8vw, 112px); font-weight: 400; line-height: 1; text-transform: uppercase; }
.resume { max-width: 36ch; margin: 1.5rem 0 0; color: #555; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; }
.banniere {
  aspect-ratio: 16 / 9;
  margin-block: 4rem;
  overflow: hidden;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  background: #f2f4fb;
}
.banniere img { width: 100%; height: 100%; object-fit: cover; }
.projet-corps { display: grid; grid-template-columns: 300px 1fr; gap: 4rem; padding-bottom: 4rem; }
.projet-fiche { display: flex; flex-direction: column; gap: 2rem; align-self: start; position: sticky; top: 7rem; }
.projet-fiche h2 { margin: 0 0 8px; color: var(--bleu); font-size: 14px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }
.projet-fiche .valeur { margin: 0; font-size: 24px; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.etiquettes li { padding: 5px 12px; border: 1px solid var(--ligne); border-radius: 999px; font-size: 14px; }
.projet-texte h2 { margin: 0 0 2rem; font-size: clamp(32px, 4vw, 48px); font-weight: 400; }
.projet-texte p { max-width: 65ch; margin: 0 0 1.5rem; font-size: 18px; line-height: 1.8; }
.lien-projet {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 14px 28px;
  border: 2px solid var(--bleu);
  border-radius: 8px;
  color: var(--bleu);
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.lien-projet:hover { background: var(--bleu); color: var(--blanc); }
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 4rem; }
.galerie img { width: 100%; height: auto; border: 1px solid var(--ligne); border-radius: 12px; }
.galerie .large { grid-column: 1 / -1; }
.suivant { display: block; padding: clamp(64px, 8vw, 112px) 0; text-decoration: none; }
.suivant small { display: block; margin-bottom: 1rem; color: var(--bleu); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.suivant b { display: block; font-size: clamp(36px, 7vw, 96px); overflow-wrap: anywhere; font-weight: 400; line-height: 1; text-transform: uppercase; transition: color 0.3s; }
.suivant .fleche { display: inline-block; margin-left: 0.2em; transition: transform 0.4s; }
.suivant:hover b { color: var(--bleu); }
.suivant:hover .fleche { transform: translateX(16px); }

/* Contact */
.dispo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0.6rem 1rem;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  font-size: 15px;
}
.dispo .point { animation: none; }
form { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.ligne-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.champ label { font-size: 14px; letter-spacing: 0.05em; }
.champ input,
.champ select,
.champ textarea {
  padding: 14px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: var(--blanc);
  color: var(--noir);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.champ input:focus,
.champ select:focus,
.champ textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.15); }
.champ textarea { min-height: 150px; resize: vertical; }
.anti-spam { display: none; }
form .bouton { align-self: flex-start; }
.resultat { margin: 0; font-size: 15px; }
.resultat:empty { display: none; }
.resultat.ok { color: #1e7a46; }
.resultat.erreur { color: #b3261e; }
.infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.infos h3 { margin: 0 0 0.75rem; font-size: 20px; font-weight: 400; }
.infos p { margin: 0; }
.infos a, .mentions a { color: var(--bleu); text-decoration: none; word-break: break-word; transition: opacity 0.3s; }
.infos a:hover, .mentions a:hover { opacity: 0.7; }
.infos nav { display: flex; flex-direction: column; gap: 6px; }

/* Mentions légales */
.mentions { max-width: 760px; padding-block: 4rem 6rem; }
.mentions section { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid #f0f0f0; }
.mentions section:last-child { margin: 0; padding: 0; border: 0; }
.mentions h2 { margin: 0 0 1rem; font-size: 24px; font-weight: 400; }
.mentions p { margin: 0 0 0.75rem; line-height: 1.8; }

/* ---------- Pied de page ----------
   Image de fond : mets ton fichier dans images/footer.webp
   (le même que sur ton ancien site). En attendant, le dégradé
   de l'accueil s'affiche à la place. */
.footer {
  position: relative;
  overflow: hidden;
  color: var(--blanc);
  padding-block: clamp(56px, 7vw, 88px) max(28px, env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(rgba(10, 10, 30, 0.25), rgba(10, 10, 30, 0.45)),
    url("../images/footer.webp") center / cover no-repeat,
    linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}
.footer-colonnes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: clamp(56px, 8vw, 120px);
}
.footer-colonne { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.footer-titre {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer ul { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; padding: 0; list-style: none; font-size: 18px; }
.footer a { color: var(--blanc); text-decoration: none; word-break: break-word; transition: opacity 0.3s, padding-left 0.3s; }
.footer ul a:hover { opacity: 0.7; padding-left: 6px; }
.footer-dispo { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-bas {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-logo { width: auto; height: clamp(48px, 7vw, 88px); }
.footer-bas p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; }
@media (max-width: 768px) {
  .footer-colonnes { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer ul { font-size: 16px; }
}

/* ---------- Animations ---------- */
@keyframes apparition { from { opacity: 0; transform: translateY(12px); } }
@keyframes pulsation {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
@keyframes goutte { to { top: 42px; } }

/* ==========================================================
   ANIMATIONS AU DÉFILEMENT
   Actives seulement si le JavaScript tourne (classe .anim sur <html>) :
   sans JS, tout reste visible.
   ========================================================== */

/* Barre de progression de lecture */
.progression {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: var(--bleu);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* Apparition en fondu qui monte */
.anim [data-r] {
  opacity: 0;
  translate: 0 48px;
  transition:
    opacity 0.9s ease var(--d, 0s),
    translate 1s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s);
}
.anim [data-r].vu { opacity: 1; translate: 0 0; }

/* Titres : chaque mot monte depuis sous une ligne invisible */
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mot > span { display: inline-block; }
.anim [data-mots] .mot > span {
  translate: 0 110%;
  transition: translate 1s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s);
}
.anim [data-mots].vu .mot > span { translate: 0 0; }

/* Images : dévoilées de bas en haut, avec un léger dézoom.
   Le masque est sur l'image, pas sur son cadre, pour que le cadre
   reste détectable quand il entre à l'écran. */
.anim [data-img] img {
  clip-path: inset(100% 0 0 0);
  scale: 1.3;
  transition:
    clip-path 1.2s cubic-bezier(0.7, 0, 0.2, 1) var(--d, 0s),
    scale 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.anim [data-img].vu img { clip-path: inset(0 0 0 0); scale: 1.1; } /* 1.1 = marge pour la parallaxe */

/* Ligne de séparation qui se trace */
.anim .separateur { transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(0.7, 0, 0.2, 1); }
.anim .separateur.vu { transform: scaleX(1); }

/* Bandeau stage : le fond bleu s'ouvre depuis le centre */
.anim .bandeau { clip-path: inset(0 8% 0 8% round 24px); transition: clip-path 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.anim .bandeau.vu { clip-path: inset(0 0 0 0 round 0); }


/* ==========================================================
   ÉCRAN DE CHARGEMENT : le B se remplit de vagues
   ========================================================== */
.chargement {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 40%, #4f74ea 0%, var(--bleu) 55%, #2f4fc4 100%);
  color: var(--blanc);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s cubic-bezier(0.75, 0, 0.2, 1);
}
.chargement.sort { clip-path: inset(0 0 100% 0); }
.chargement-centre { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.chargement svg { width: clamp(96px, 14vw, 150px); height: auto; overflow: visible; }
.chargement .contour { fill: rgba(255, 255, 255, 0.08); stroke: rgba(255, 255, 255, 0.35); stroke-width: 0.5; }
.chargement .defile { animation: defile var(--vitesse, 2.4s) linear infinite; }
.chargement.plein .logo-vagues { animation: pulse-logo 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); transform-origin: 50% 50%; transform-box: fill-box; }
.chargement .compteur {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
.chargement .compteur b { font-weight: 400; font-size: 15px; letter-spacing: 0.08em; min-width: 3.2ch; text-align: right; }
.chargement .nom {
  position: absolute;
  bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  translate: -50% 0;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
}
@keyframes defile { to { transform: translateX(-34px); } }
@keyframes pulse-logo { 50% { transform: scale(1.1); } }


/* ==========================================================
   PAGE PROJET SOMBRE : Nike × Vitra
   ========================================================== */
.sombre { --nv-fond: #0a0b0d; --nv-texte: #eeede9; --nv-doux: #bdbab3; --nv-gris: #8d8b87; --nv-ligne: #26272b; --nv-rouge: #e2312b; background: var(--nv-fond); color: var(--nv-texte); }
.sombre .header:not(.transparent) { background: rgba(10, 11, 13, 0.85); color: var(--nv-texte); border-color: var(--nv-ligne); }
.sombre .suivant { color: var(--nv-texte); }
.sombre .suivant small { color: var(--nv-rouge); }
.sombre .suivant:hover b { color: var(--nv-rouge); }

.nv-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.nv-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% center; animation: nv-zoom 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.nv-hero-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 13, 0.35) 0%, rgba(10, 11, 13, 0) 35%, rgba(10, 11, 13, 0.92) 100%); }
.nv-hero-texte { position: relative; z-index: 1; width: 100%; padding-block: 0 clamp(48px, 7vw, 88px); }
.nv-hero .retour { color: var(--nv-texte); opacity: 0.8; }
.nv-sur { margin: 0 0 16px; color: var(--nv-doux); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.nv-hero h1 { margin: 0; font-size: clamp(64px, 13vw, 210px); font-weight: 500; line-height: 0.88; letter-spacing: -0.03em; text-transform: uppercase; }
.nv-hero .croix { font-weight: 300; color: var(--nv-rouge); }
.nv-sous { margin: 20px 0 0; max-width: 34ch; color: var(--nv-doux); font-size: clamp(18px, 1.8vw, 24px); }
@keyframes nv-zoom { from { transform: scale(1.12); } }

.nv-fiche { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 36px; border-bottom: 1px solid var(--nv-ligne); }
.nv-fiche h2 { margin: 0 0 8px; color: var(--nv-gris); font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.nv-fiche p { margin: 0; font-size: 17px; }

.nv-bloc { padding-block: clamp(88px, 11vw, 150px); }
.nv-label { margin: 0 0 32px; color: var(--nv-rouge); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.nv-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.nv-titre { margin: 0; font-size: clamp(32px, 4.4vw, 62px); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.nv-titre-seul { max-width: 18ch; }
.nv-texte p { margin: 0 0 20px; color: var(--nv-doux); font-size: 18px; line-height: 1.7; max-width: 58ch; }

/* Concept : la page s'inverse en clair */
.nv-concept { padding-block: clamp(88px, 11vw, 150px); background: var(--nv-texte); color: var(--nv-fond); }
.nv-duo { display: grid; grid-template-columns: 1fr 1fr; }
.nv-duo > div { min-width: 0; padding-right: 48px; }
.nv-duo > div + div { padding: 0 0 0 48px; border-left: 2px solid #d3d1cb; }
.nv-duo h3 { margin: 0 0 16px; font-size: clamp(56px, 9vw, 190px); font-weight: 500; line-height: 0.85; letter-spacing: -0.04em; text-transform: uppercase; }
.nv-marque { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; }
.nv-duo p:last-child { margin: 0; color: #6b6964; font-size: 17px; }
.nv-concept blockquote { max-width: 30ch; margin: clamp(64px, 8vw, 110px) 0 0; padding-left: 28px; border-left: 3px solid var(--nv-rouge); font-size: clamp(24px, 3vw, 40px); line-height: 1.25; }

/* Teasing */
.nv-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.nv-trio figure { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nv-trio img { width: 100%; height: auto; border-radius: 4px; } /* affiche entière, sans recadrage */
.nv-trio figcaption { color: var(--nv-gris); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Reveal : une paire par ligne, en alternance */
.nv-paire { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(64px, 9vw, 130px); }
.nv-paire > img, .nv-paire > [data-img] { width: 100%; border-radius: 4px; }
.nv-paire img { width: 100%; height: auto; } /* affiche entière, logo visible */
.nv-inverse > :first-child { order: 2; }
.nv-num { margin: 0 0 12px; color: var(--nv-rouge); font-size: 13px; letter-spacing: 0.16em; }
.nv-paire h3 { margin: 0; font-size: clamp(48px, 7vw, 104px); font-weight: 500; line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; }
.nv-archi { margin: 14px 0 28px; color: var(--nv-gris); font-size: 15px; letter-spacing: 0.04em; }
.nv-paire-texte > p:not([class]) { margin: 0; color: var(--nv-doux); font-size: 18px; line-height: 1.7; max-width: 46ch; }
.nv-teintes { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--nv-doux); }
.nv-teintes li { display: inline-flex; align-items: center; gap: 8px; }
.nv-teintes li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }

/* Événement plein écran */
.nv-event { position: relative; display: flex; align-items: flex-end; min-height: min(90vh, 900px); overflow: hidden; }
.nv-event > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nv-event::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 11, 13, 0.9) 0%, rgba(10, 11, 13, 0.4) 55%, rgba(10, 11, 13, 0) 100%); }
.nv-event-texte { position: relative; z-index: 1; width: 100%; padding-block: clamp(64px, 8vw, 110px); }
.nv-event-texte .nv-titre { max-width: 14ch; margin-bottom: 24px; }
.nv-event-texte p:last-child { max-width: 46ch; margin: 0; color: var(--nv-doux); font-size: 18px; line-height: 1.7; }

.nv-liste { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--nv-ligne); }
.nv-liste li { padding: 14px 0; border-bottom: 1px solid var(--nv-ligne); font-size: 17px; transition: padding-left 0.3s, color 0.3s; }
.nv-liste li:hover { padding-left: 8px; color: var(--nv-rouge); }
.nv-fin { max-width: 30ch; margin: clamp(80px, 10vw, 140px) 0 0; font-size: clamp(24px, 3vw, 42px); line-height: 1.25; }
.nv-fin span { display: block; margin-top: 16px; color: var(--nv-rouge); }
.nv-conclusion { text-align: center; }
.nv-conclusion .nv-fin { max-width: none; margin: 0; color: var(--nv-rouge); font-size: clamp(36px, 6vw, 88px); line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }

@media (max-width: 900px) {
  .nv-colonnes, .nv-paire, .nv-duo { grid-template-columns: 1fr; }
  .nv-inverse > :first-child { order: 0; }
  .nv-duo > div { padding: 0 0 40px; }
  .nv-duo > div + div { padding: 40px 0 0; border-left: 0; border-top: 2px solid #d3d1cb; }
  .nv-fiche { grid-template-columns: 1fr 1fr; }
  .nv-duo h3 { font-size: clamp(64px, 18vw, 140px); }
  /* Événement : sur petit écran, la photo au-dessus et le texte en dessous */
  .nv-event { display: block; min-height: 0; }
  .nv-event > img { position: static; aspect-ratio: 16 / 10; }
  .nv-event::after { display: none; }
  .nv-event-texte { padding-block: 40px 0; }
}
@media (max-width: 600px) {
  .mo-scene { aspect-ratio: 4 / 3; }
  .mo-logo { width: 92%; }
}

/* Affiches du projet Nike × Vitra : jamais de zoom, on garde le cadrage d'origine */
.anim .nv-trio [data-img] img,
.anim .nv-trio [data-img].vu img,
.anim .nv-paire [data-img] img,
.anim .nv-paire [data-img].vu img { scale: 1; }


/* Motion design : animation du logo (page Nike × Vitra) */
.mo-scene {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--nv-ligne);
  border-radius: 4px;
  background: #000;
}
.mo-logo { width: min(78%, 900px); height: auto; }
.mo-date { position: absolute; left: 18px; bottom: 14px; color: var(--nv-gris); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-variant-numeric: tabular-nums; }


/* ==========================================================
   MENU BURGER (téléphone et petite tablette)
   Construit par js/main.js ; sans JavaScript les liens restent visibles.
   ========================================================== */
.burger { display: none; }
@media (max-width: 768px) {
  .js-menu .header nav { display: none; }
  .js-menu .burger {
    position: relative;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }
}
.burger span { display: block; width: 26px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.3s; }
.menu-ouvert .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-ouvert .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(110px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
  color: var(--blanc);
  background: linear-gradient(135deg, #5b6fdb 0%, #7b68ee 50%, #6a5acd 100%);
  clip-path: circle(0% at calc(100% - 40px) 40px);
  visibility: hidden;
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 0.7s;
}
.menu-mobile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
}
.menu-ouvert .menu-mobile { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s; }
.menu-mobile ul { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.menu-mobile li { overflow: hidden; }
.menu-mobile ul a {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  color: var(--blanc);
  font-size: clamp(44px, 13vw, 64px);
  line-height: 1.1;
  text-decoration: none;
  translate: 0 110%;
  transition: translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.menu-mobile ul a small { font-size: 13px; letter-spacing: 0.1em; opacity: 0.6; }
.menu-mobile ul a.actif { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu-ouvert .menu-mobile ul a { translate: 0 0; }
.menu-ouvert .menu-mobile li:nth-child(1) a { transition-delay: 0.25s; }
.menu-ouvert .menu-mobile li:nth-child(2) a { transition-delay: 0.32s; }
.menu-ouvert .menu-mobile li:nth-child(3) a { transition-delay: 0.39s; }
.menu-mobile-bas { position: relative; display: flex; flex-direction: column; gap: 14px; opacity: 0; transition: opacity 0.5s ease; }
.menu-ouvert .menu-mobile-bas { opacity: 1; transition-delay: 0.5s; }
.menu-mobile-bas a { color: var(--blanc); text-decoration: none; }
.menu-mobile-bas .reseaux-menu { display: flex; gap: 22px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.menu-mobile-bas .footer-dispo { font-size: 15px; }
.menu-ouvert { overflow: hidden; }
.menu-ouvert .header { color: var(--blanc) !important; background: transparent !important; border-color: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* Teasing Nike × Vitra sur téléphone : carrousel qu'on fait glisser */
.nv-defile { display: none; }
@media (max-width: 600px) {
  .nv-trio {
    display: flex;
    gap: 14px;
    margin-inline: calc(-1 * max(24px, env(safe-area-inset-left, 0px)));
    padding-inline: max(24px, env(safe-area-inset-left, 0px));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(24px, env(safe-area-inset-left, 0px));
    scrollbar-width: none;
  }
  .nv-trio::-webkit-scrollbar { display: none; }
  .nv-trio figure { flex: 0 0 74%; scroll-snap-align: start; }
  .nv-trio figcaption { font-size: 15px; color: var(--nv-texte); }
  .nv-defile { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: var(--nv-gris); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
  .nv-points { display: flex; gap: 8px; }
  .nv-points i { width: 22px; height: 2px; background: var(--nv-ligne); transition: background 0.3s; }
  .nv-points i.on { background: var(--nv-rouge); }
}


/* ==========================================================
   PAGE PROJET : Défi 24H (identité néo-brutaliste de l'événement)
   ========================================================== */
.page-d24 {
  --d-violet: #5c30ff; --d-jaune: #ffc567; --d-rouge: #fd5a46; --d-rose: #fb7da8;
  --d-lilas: #a78bfa; --d-vert: #00995e; --d-creme: #f6f2ea; --d-noir: #111111;
  background: var(--d-violet);
  color: var(--blanc);
}
/* Quadrillage sur un calque fixe : il n'est plus redessiné à chaque défilement */
.d24::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px;
  will-change: transform;
}
.page-d24 .header:not(.transparent) { background: rgba(92, 48, 255, 0.88); color: var(--blanc); border-color: rgba(255, 255, 255, 0.2); }
.page-d24 .suivant { color: var(--blanc); }
.page-d24 .suivant small { color: var(--d-jaune); }
.page-d24 .suivant:hover b { color: var(--d-jaune); }
.page-d24 .separateur { background: rgba(255, 255, 255, 0.2); }

.d24-carte { border: 3px solid var(--d-noir); border-radius: 20px; box-shadow: 8px 8px 0 var(--d-noir); color: var(--d-noir); }
.d24-blanc { background: var(--d-creme); }
.d24-jaune { background: var(--d-jaune); }
.d24-rose { background: var(--d-rose); }
.d24-vert { background: var(--d-vert); color: var(--blanc); }
.d24-rouge { background: var(--d-rouge); color: var(--blanc); }

.d24-label { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.d24-titre { margin: 0 0 18px; font-size: clamp(26px, 3vw, 40px); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.d24-titre-grand { max-width: 18ch; font-size: clamp(36px, 5.6vw, 76px); }
.d24-chapo { max-width: 56ch; margin: 0 0 clamp(36px, 5vw, 56px); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; opacity: 0.92; }
.d24-bloc { padding-block: clamp(64px, 9vw, 120px) 0; }

/* Ouverture */
.d24-hero { position: relative; overflow: hidden; padding-block: calc(76px + clamp(40px, 6vw, 80px)) clamp(48px, 7vw, 96px); }
.d24-hero::before { content: ""; position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; left: -20vw; top: -35vw; border-radius: 46% 54% 60% 40%; background: #b15fd4; opacity: 0.75; animation: d24-blob 14s ease-in-out infinite alternate; }
.d24-hero .container { position: relative; }
.d24-hero .retour { color: var(--blanc); opacity: 0.85; }
.d24-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 clamp(28px, 4vw, 44px); }
.d24-tags span { padding: 8px 14px; border: 2px solid var(--d-noir); border-radius: 999px; background: var(--d-creme); color: var(--d-noir); font-size: 13px; font-weight: 500; box-shadow: 3px 3px 0 var(--d-noir); }
.d24-tags span:nth-child(2) { background: var(--d-jaune); }
.d24-tags span:nth-child(3) { background: var(--d-rose); }
.d24-h1 { margin: 0; }
.d24-h1 img { width: min(100%, 1100px); height: auto; filter: drop-shadow(6px 6px 0 var(--d-noir)); animation: d24-tampon 0.9s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.d24-intro { max-width: 40ch; margin: clamp(24px, 4vw, 40px) 0 0; font-size: clamp(19px, 2vw, 26px); line-height: 1.35; }
.d24-chrono { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 32px; padding: 14px 22px; border: 3px solid var(--d-noir); border-radius: 16px; background: var(--d-rouge); box-shadow: 6px 6px 0 var(--d-noir); transform: rotate(-2deg); }
.d24-chrono-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.d24-chrono-temps { font-size: clamp(30px, 4vw, 44px); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
@keyframes d24-blob { to { transform: translate(6vw, 4vw) rotate(18deg) scale(1.06); } }
@keyframes d24-tampon { from { opacity: 0; transform: scale(1.25) rotate(-3deg); } }

.d24 { overflow-x: clip; }
/* Bande défilante inclinée, comme sur le site */
.d24-bande { overflow: hidden; margin: 0 -2vw; padding-block: 14px; border-block: 3px solid var(--d-noir); background: var(--d-rose); color: var(--d-noir); transform: rotate(-2.5deg); }
.d24-bande-piste { display: flex; width: max-content; animation: d24-defile 26s linear infinite; }
.d24-bande span { padding-right: 48px; font-size: clamp(22px, 3vw, 38px); font-weight: 500; white-space: nowrap; }
@keyframes d24-defile { to { transform: translateX(-50%); } }

/* Chiffres */
.d24-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.d24-stats .d24-carte { display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 18px; transition: transform 0.3s, box-shadow 0.3s; }
.d24-stats .d24-carte:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 11px 11px 0 var(--d-noir); }
.d24-stats b { font-size: clamp(40px, 5vw, 64px); font-weight: 500; line-height: 1; }
.d24-stats span { font-size: 15px; }

.d24-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.d24-texte { padding: clamp(24px, 3vw, 40px); }
.d24-texte p:not(.d24-label) { margin: 0 0 14px; font-size: 17px; line-height: 1.65; }
.d24-texte p:last-child { margin-bottom: 0; }

/* Palette */
.d24-palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.d24-palette div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.d24-palette span { aspect-ratio: 4 / 3; margin-bottom: 8px; border: 3px solid var(--d-noir); border-radius: 14px; background: var(--c); box-shadow: 5px 5px 0 var(--d-noir); transition: transform 0.3s; }
.d24-palette div:hover span { transform: translateY(-6px) rotate(-2deg); }
.d24-palette b { font-size: 14px; font-weight: 500; }
.d24-palette small { font-size: 12px; opacity: 0.7; letter-spacing: 0.06em; }
.d24-deux-image { grid-template-columns: 1.3fr 1fr; margin-top: clamp(40px, 5vw, 64px); align-items: center; }
.d24-image { margin: 0; overflow: hidden; }
.d24-image img { width: 100%; height: auto; }
.d24-boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.d24-btn { padding: 10px 18px; border: 2px solid var(--d-noir); border-radius: 999px; background: var(--blanc); color: var(--d-noir); font-size: 14px; font-weight: 500; box-shadow: 4px 4px 0 var(--d-noir); }
.d24-btn-violet { background: var(--d-violet); color: var(--blanc); }
.d24-btn-jaune { background: var(--d-jaune); }

/* Le site en trois temps */
.d24-site { margin-top: clamp(80px, 10vw, 140px); padding-block: clamp(64px, 9vw, 120px); border-block: 3px solid var(--d-noir); background: var(--d-rouge); }
.d24-astuce { display: inline-block; margin-top: 6px; font-size: 14px; opacity: 0.85; }
.d24-ecrans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.d24-ecrans figure { margin: 0; min-width: 0; }
.d24-ecrans figure:nth-child(2) { margin-top: 48px; }
.d24-navigateur { display: flex; gap: 6px; padding: 10px 12px; border: 3px solid var(--d-noir); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--d-creme); }
.d24-navigateur i { width: 10px; height: 10px; border: 2px solid var(--d-noir); border-radius: 50%; background: var(--d-jaune); }
.d24-navigateur i:first-child { background: var(--d-rouge); }
.d24-navigateur i:last-child { background: var(--d-vert); }
.d24-ecran { height: clamp(360px, 42vw, 560px); overflow: hidden; border: 3px solid var(--d-noir); border-radius: 0 0 16px 16px; box-shadow: 8px 8px 0 var(--d-noir); background: var(--d-creme); }
.d24-ecran img { width: 100%; height: auto; transition: transform 7s cubic-bezier(0.45, 0, 0.3, 1); }
@media (hover: hover) { .d24-ecrans figure:hover .d24-ecran img { transform: translateY(calc(-100% + clamp(360px, 42vw, 560px))); } }
.d24-ecrans figcaption { margin-top: 16px; font-size: 15px; line-height: 1.5; }
.d24-ecrans figcaption b { display: inline-block; margin-right: 8px; padding: 3px 10px; border: 2px solid var(--d-noir); border-radius: 999px; background: var(--d-jaune); color: var(--d-noir); font-weight: 500; }

/* Photos en polaroïds */
.d24-photos { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 18px; }
.d24-polaroid { margin: 0; padding: 10px 10px 34px; border: 3px solid var(--d-noir); border-radius: 6px; background: var(--d-creme); box-shadow: 6px 6px 0 var(--d-noir); transform: rotate(var(--r, -2deg)); transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1); }
.d24-polaroid:nth-child(3n) { --r: 2.5deg; }
.d24-polaroid:nth-child(4n) { --r: -3.5deg; }
.d24-polaroid:nth-child(5n) { --r: 1.5deg; }
.d24-polaroid:nth-child(1), .d24-polaroid:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.d24-polaroid:hover { transform: rotate(0deg) scale(1.04); z-index: 1; position: relative; }
.d24-polaroid img { width: 100%; height: 100%; min-height: 0; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.d24-polaroid:nth-child(1) img, .d24-polaroid:nth-child(4) img { aspect-ratio: auto; }

/* Résultat */
.d24-resultat { padding: clamp(32px, 5vw, 64px); background: var(--d-jaune); text-align: center; }
.d24-resultat .d24-label { opacity: 0.7; }
.d24-gros { margin: 0; font-size: clamp(80px, 16vw, 220px); font-weight: 500; line-height: 0.9; letter-spacing: -0.03em; }
.d24-resultat p:last-child { max-width: 38ch; margin: 18px auto 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.4; }

@media (max-width: 1024px) {
  .d24-stats { grid-template-columns: repeat(2, 1fr); }
  .d24-palette { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .d24-deux, .d24-deux-image { grid-template-columns: 1fr; }
  .d24-ecrans {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * max(24px, env(safe-area-inset-left, 0px))); padding: 0 max(24px, env(safe-area-inset-left, 0px)) 14px;
  }
  .d24-ecrans::-webkit-scrollbar { display: none; }
  .d24-ecrans figure { flex: 0 0 80%; scroll-snap-align: start; }
  .d24-ecrans figure:nth-child(2) { margin-top: 0; }
  .d24-ecran { height: 440px; overflow-y: auto; }
  .d24-astuce { display: none; }
}
@media (max-width: 600px) {
  .d24-stats { gap: 14px; }
  .d24-stats .d24-carte { padding: 16px; }
  .d24-palette { gap: 12px; }
  .d24-photos { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .d24-polaroid { padding: 6px 6px 22px; }
  .d24-polaroid:nth-child(4) { grid-column: span 2; grid-row: auto; }
  .d24-polaroid:nth-child(1) { grid-column: span 2; grid-row: auto; }
  .d24-carte { box-shadow: 5px 5px 0 var(--d-noir); }
}


/* ==========================================================
   PAGE PROJET : Soirée Canap (ambiance plateau télé,
   contenus et polaroïds repris de la page portfolio du Figma)
   ========================================================== */
.page-sc { --sc-fond: #1d1029; --sc-violet: #56397a; --sc-jaune: #f6ce6f; --sc-rouge: #ff3b3b; --sc-texte: #f4eefb; --sc-doux: #c9bcd8; --sc-ligne: rgba(246, 206, 111, 0.25); background: var(--sc-fond); color: var(--sc-texte); }
.page-sc .header:not(.transparent) { background: rgba(29, 16, 41, 0.88); color: var(--sc-texte); border-color: rgba(255, 255, 255, 0.12); }
.page-sc .suivant { color: var(--sc-texte); }
.page-sc .suivant small, .page-sc .suivant:hover b { color: var(--sc-jaune); }
.sc { overflow-x: clip; }

.sc-hero { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.sc-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: nv-zoom 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.sc-hero-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 16, 41, 0.45) 0%, rgba(29, 16, 41, 0) 30%, rgba(29, 16, 41, 0.55) 60%, var(--sc-fond) 100%); }
.sc-hero-texte { position: relative; z-index: 1; width: 100%; padding-block: 0 clamp(48px, 7vw, 88px); }
.sc-hero .retour { color: var(--sc-texte); opacity: 0.85; }
.sc-direct { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px; border-radius: 6px; background: var(--sc-rouge); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.sc-direct span { width: 9px; height: 9px; border-radius: 50%; background: var(--blanc); animation: sc-rec 1.2s steps(2) infinite; }
@keyframes sc-rec { 50% { opacity: 0.2; } }
.sc-hero h1 { margin: 0; padding-top: 0.12em; color: var(--sc-jaune); font-size: clamp(40px, 6vw, 84px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.sc-sous { max-width: 36ch; margin: 18px 0 0; font-size: clamp(18px, 1.9vw, 24px); line-height: 1.35; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sc-tags span { padding: 7px 14px; border: 1px solid var(--sc-ligne); border-radius: 999px; background: rgba(86, 57, 122, 0.55); font-size: 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.sc-fiche { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 36px; border-bottom: 1px solid var(--sc-ligne); }
.sc-fiche h2 { margin: 0 0 8px; color: var(--sc-jaune); font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.sc-fiche p { margin: 0; font-size: 17px; }

.sc-bloc { padding-block: clamp(64px, 8vw, 112px) 0; }
.sc-label { margin: 0 0 24px; color: var(--sc-jaune); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.sc-titre { margin: 0 0 20px; font-size: clamp(30px, 4.2vw, 58px); font-weight: 400; line-height: 1.06; text-wrap: balance; }
.sc-titre-seul { max-width: 20ch; }
.sc-texte p:not(.sc-label) { max-width: 60ch; margin: 0 0 18px; color: var(--sc-doux); font-size: 18px; line-height: 1.7; }
.sc-chapo { max-width: 60ch; margin: 0; color: var(--sc-doux); font-size: 18px; line-height: 1.7; }
.sc-deux { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sc-fort { max-width: 46ch; margin: clamp(32px, 4vw, 48px) 0 0; color: var(--sc-jaune); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; }

.sc-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sc-role { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: 20px; background: var(--sc-violet); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sc-role:hover { transform: translateY(-6px); }
.sc-role-num { position: absolute; right: 24px; top: 8px; color: rgba(246, 206, 111, 0.18); font-size: clamp(90px, 10vw, 150px); font-weight: 500; line-height: 1; }
.sc-role h3 { position: relative; margin: 0 0 16px; color: var(--sc-jaune); font-size: clamp(40px, 5vw, 68px); font-weight: 500; line-height: 1; text-transform: uppercase; }
.sc-role p { position: relative; max-width: 46ch; margin: 0; font-size: 17px; line-height: 1.65; }

/* Polaroïds du Figma, penchés et superposés */
.sc-polas { display: flex; justify-content: center; align-items: center; padding-block: clamp(48px, 7vw, 96px) 0; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.sc-pola { position: relative; width: clamp(150px, 25vw, 360px); height: auto; margin-inline: clamp(-40px, -2.5vw, -12px); transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45)); transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1); }
.sc-pola:nth-child(even) { margin-top: clamp(30px, 5vw, 80px); }
.sc-pola:hover { transform: rotate(0deg) scale(1.06); z-index: 2; }

.sc-conducteur { margin-top: clamp(80px, 10vw, 140px); padding-block: clamp(72px, 9vw, 120px); background: var(--sc-violet); }
.sc-plans { display: flex; gap: 20px; margin-top: clamp(36px, 5vw, 56px); padding: 16px max(24px, env(safe-area-inset-left, 0px)) 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--sc-jaune) transparent; }
@media (min-width: 900px) { .sc-plans { padding-inline: max(48px, calc((100vw - 1400px) / 2 + 48px)); } }
.sc-plan { position: relative; flex: 0 0 min(78vw, 460px); margin: 0; scroll-snap-align: start; }
.sc-plan img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6); }
.sc-seq { position: absolute; left: 12px; top: -12px; z-index: 1; padding: 5px 10px; border-radius: 6px; background: var(--sc-jaune); color: var(--sc-fond); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; transform: rotate(-3deg); }
.sc-salle { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(56px, 7vw, 96px); }
.sc-plan-salle { flex: none; }

.sc-pleine { margin: clamp(56px, 8vw, 110px) 0 0; }
.sc-pleine img { width: 100%; height: auto; display: block; }

.sc-chiffres { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--sc-ligne); }
.sc-chiffres div { display: flex; flex-direction: column; gap: 8px; padding: 28px 18px 8px 0; border-right: 1px solid var(--sc-ligne); }
.sc-chiffres div + div { padding-left: 18px; }
.sc-chiffres div:last-child { border-right: 0; }
.sc-chiffres b { color: var(--sc-jaune); font-size: clamp(40px, 5vw, 76px); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.sc-chiffres span { color: var(--sc-doux); font-size: 15px; }

.sc-conclusion blockquote { max-width: 26ch; margin: 0 0 36px; padding-left: 26px; border-left: 3px solid var(--sc-jaune); font-size: clamp(26px, 3.4vw, 46px); line-height: 1.2; }

.sc-identite { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-bottom: clamp(56px, 7vw, 96px); }
.sc-identite-img { margin: 0; overflow: hidden; border-radius: 16px; }
.sc-identite-img img { width: 100%; height: auto; }

/* Éditions */
.sc-editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sc-edition { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 280px; margin: 0; padding: 56px 28px 24px; border: 1px solid var(--sc-ligne); border-radius: 20px; background: rgba(86, 57, 122, 0.35); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s; }
.sc-edition:hover { transform: translateY(-6px); border-color: var(--sc-jaune); }
.sc-edition img { width: 100%; max-width: 300px; height: auto; margin: auto; opacity: 0.9; }
.sc-edition-live { background: var(--sc-violet); border-color: var(--sc-jaune); }
.sc-edition-live img { opacity: 1; }
.sc-edition-num { position: absolute; top: 20px; left: 24px; color: var(--sc-jaune); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.sc-edition figcaption { color: var(--sc-doux); font-size: 15px; }
.sc-editions::after { content: none; }
/* Cause */
.sc-cause { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.sc-cause-visuels { position: relative; display: grid; grid-template-columns: 1fr 0.85fr; align-items: end; }
.sc-cause-visuels img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.sc-cause-post { transform: rotate(-3deg); }
.sc-cause-affiche { margin-left: -18%; margin-bottom: -8%; transform: rotate(4deg); }
/* Supports */
.sc-supports { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: clamp(36px, 5vw, 56px); }
.sc-support { margin: 0; }
.sc-support img { width: 100%; height: auto; border-radius: 12px; }
.sc-support figcaption { margin-top: 12px; color: var(--sc-doux); font-size: 14px; }
.sc-support-large { order: 2; }
.sc-support:not(.sc-support-large) img { max-width: 260px; transform: rotate(-4deg); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.6); }
.sc-credit { margin: 28px 0 0; color: var(--sc-doux); font-size: 14px; opacity: 0.8; }
@media (max-width: 1024px) { .sc-chiffres { grid-template-columns: repeat(3, 1fr); } .sc-chiffres div:nth-child(3) { border-right: 0; } }
@media (max-width: 900px) {
  .sc-deux, .sc-roles, .sc-salle, .sc-identite, .sc-cause, .sc-editions { grid-template-columns: 1fr; }
  .sc-edition { min-height: 0; padding-top: 52px; }
  .sc-edition img { max-width: 240px; }
  .sc-supports { grid-template-columns: 1fr; }
  .sc-support-large { order: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--sc-jaune) transparent; }
  .sc-support-large img { min-width: 760px; }
  .sc-support:not(.sc-support-large) img { max-width: 200px; margin-inline: auto; display: block; }
  .sc-support:not(.sc-support-large) figcaption { text-align: center; }
  .sc-cause-visuels { max-width: 520px; }
  .sc-fiche { grid-template-columns: 1fr 1fr; }
  .sc-chiffres { grid-template-columns: 1fr 1fr; }
  .sc-chiffres div, .sc-chiffres div + div { padding: 22px 12px 18px 0; border-right: 0; border-bottom: 1px solid var(--sc-ligne); }
}
@media (max-width: 600px) {
  .sc-polas { flex-wrap: wrap; }
  .sc-pola { width: 52%; margin-inline: -4%; }
  .sc-pola:nth-child(even) { margin-top: 24px; }
}

/* Page contact : les lignes de séparation sont affichées directement */
.anim .page .separateur { transform: none; }

/* ==========================================================
   OPTIMISATIONS (mêmes animations, moins de calcul pour le navigateur)
   ========================================================== */
/* Le flou derrière l'en-tête est coûteux à chaque image : on le réduit,
   et on le coupe sur téléphone au profit d'un fond plus opaque */
.header { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 768px) {
  .header, .reseaux, .sc-tags span { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .header:not(.transparent) { background: rgba(255, 255, 255, 0.97); }
  .page-d24 .header:not(.transparent) { background: rgba(92, 48, 255, 0.97); }
  .sombre .header:not(.transparent) { background: rgba(10, 11, 13, 0.97); }
  .page-sc .header:not(.transparent) { background: rgba(29, 16, 41, 0.97); }
  .reseaux { background: rgba(0, 0, 0, 0.9); }
}
/* Les éléments animés en continu ont leur propre calque */
.d24-bande-piste, .ticker .track, .logo-3d canvas, .spin, .d24-hero::before, .progression, .hero-texte { will-change: transform; }
/* Les sections hors écran ne sont pas dessinées tant qu'on n'y arrive pas */
.d24-site, .sc-conducteur, .footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.footer { contain-intrinsic-size: auto 500px; }
/* Ombre plus légère à calculer sur les polaroïds */
.sc-pola { filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.4)); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grille, .projet-corps, .infos { grid-template-columns: 1fr; gap: 2rem; }
  .projet-fiche { position: static; flex-direction: row; flex-wrap: wrap; gap: 2rem 3rem; }
}
@media (max-width: 860px) {
  .cartes { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-contenu { padding: 0 24px 7rem; }
  .pastille-stage { font-size: 13px; padding: 0.6rem 0.9rem; }
  .reseaux { justify-content: center; flex-wrap: wrap; gap: 12px 22px; }
  .reseaux a { font-size: 11px; }
  .reseaux .a-droite { margin-left: 0; }
  .citation p { margin-left: 0; text-align: left; }
  .projet { padding: 16px; }
  .projet-infos { flex-direction: column; gap: 8px; }
  .projet-numero { display: none; }
  .galerie { grid-template-columns: 1fr; }
  .ligne-form { grid-template-columns: 1fr; }
  form .bouton { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
