/* Davirn — feuille de style
   Univers : le standard des agences premium, aux couleurs du logo.
   Bleu nuit pour les grands panneaux, bleu électrique seulement pour la flèche, le point et l'action. */

:root {
  --nuit: #0d1b2a;
  --nuit-2: #152a40;
  --nuit-3: #1f3753;
  --bleu: #2459ff;
  --bleu-pale: #a9bdff;
  --fond: #f5f6f8;
  --blanc: #ffffff;
  --carte: #eceff4;
  --texte: #0d1b2a;
  --gris: #4a5568;
  --gris-nuit: #a3b1c4;
  --ligne-nuit: rgba(255, 255, 255, 0.14);

  --display: 'Clash Grotesk', 'Satoshi', system-ui, sans-serif;
  --corps: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-petit: 0.9375rem;
  --t-corps: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --t-chapo: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  --t-sous: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  --t-titre: clamp(2.75rem, 1.6rem + 4.2vw, 5.5rem);
  --t-heros: clamp(3rem, 1.2rem + 6.4vw, 6rem);

  --marge: clamp(16px, 3vw, 48px);
  --cadre: clamp(8px, 0.9vw, 14px);
  --rayon: clamp(20px, 2vw, 32px);
  --rayon-carte: 20px;
  --barre: 84px;
  --entre: clamp(96px, 12vw, 180px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ombre: 0 30px 60px -20px rgba(13, 27, 42, 0.35), 0 12px 24px -12px rgba(13, 27, 42, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: var(--t-corps);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
::selection { background: var(--bleu); color: var(--blanc); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--nuit-3) var(--fond); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--fond); }
::-webkit-scrollbar-thumb { background: var(--nuit-3); border-radius: 10px; border: 2px solid var(--fond); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saut { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--bleu); color: var(--blanc); padding: 12px 18px; border-radius: 999px; }
.saut:focus { top: 16px; }

/* Le carré bleu du logo, en point final */
.point {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.06em;
  background: var(--bleu);
  border-radius: 0.04em;
  vertical-align: baseline;
}

/* ——— Boutons ——— */
.bouton {
  --fond-b: var(--nuit);
  --texte-b: var(--blanc);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 14px 0 26px;
  background: var(--fond-b);
  color: var(--texte-b);
  border: 0;
  border-radius: 999px;
  font-family: var(--corps);
  font-size: var(--t-corps);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 160ms var(--ease), color 300ms ease;
}
.bouton::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blanc);
  border-radius: inherit;
  clip-path: circle(0% at 50% 120%);
  transition: clip-path 500ms var(--ease);
}
.bouton:hover::before { clip-path: circle(150% at 50% 120%); }
.bouton:hover { color: var(--nuit); }
.bouton:active { transform: scale(0.97); }
.bouton .fleche {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 50%;
  background: var(--blanc);
  color: var(--bleu);
  transition: transform 400ms var(--ease), background-color 300ms ease, color 300ms ease;
}
.bouton:hover .fleche { transform: rotate(45deg); background: var(--bleu); color: var(--blanc); }
.bouton-bleu { --fond-b: var(--bleu); }
.bouton-pilule { min-height: 48px; padding: 0 8px 0 20px; font-size: var(--t-petit); }
.bouton[disabled] { opacity: 0.6; cursor: progress; }

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: text-decoration-color 300ms ease, color 300ms ease;
}
.lien-fleche:hover { text-decoration-color: currentColor; }
.lien-sombre { color: var(--texte); text-decoration-color: rgba(13, 27, 42, 0.3); }

/* ——— Pilules ——— */
.pilules { display: flex; flex-wrap: wrap; gap: 8px; }
.pilules li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ligne-nuit);
  color: var(--blanc);
  font-size: var(--t-petit);
  font-weight: 500;
}
.pilules-petites li { background: rgba(255, 255, 255, 0.14); padding: 6px 14px; }

/* ——— Barre de navigation ——— */
.barre {
  position: fixed;
  top: calc(var(--cadre) + 12px);
  left: calc(var(--cadre) + var(--marge) - 18px);
  right: calc(var(--cadre) + var(--marge) - 18px);
  z-index: 40;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  color: var(--blanc);
  transition: background-color 400ms ease, color 400ms ease, transform 500ms var(--ease), box-shadow 400ms ease;
}
.barre.est-claire { background: rgba(255, 255, 255, 0.88); color: var(--nuit); box-shadow: 0 10px 30px -12px rgba(13, 27, 42, 0.25); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.barre.est-cachee { transform: translateY(-140%); }
.logo { display: block; margin-right: auto; position: relative; height: 40px; }
.logo img { height: 40px; width: auto; }
.logo-fonce { position: absolute; inset: 0; opacity: 0; transition: opacity 300ms ease; }
.logo-clair { transition: opacity 300ms ease; }
.barre.est-claire .logo-fonce { opacity: 1; }
.barre.est-claire .logo-clair { opacity: 0; }
.liens { display: flex; align-items: center; gap: 28px; font-size: var(--t-petit); font-weight: 500; }
.liens a { text-decoration: none; position: relative; padding: 6px 0; }
.liens a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 400ms var(--ease);
}
.liens a:hover::after { transform: scaleX(1); transform-origin: left; }
.liens .langue { padding: 8px 14px; border-radius: 999px; background: var(--ligne-nuit); }
.liens .langue::after { display: none; }
.barre.est-claire .langue { background: var(--carte); }
.burger { display: none; }
.barre .bouton-pilule { --fond-b: var(--bleu); }

/* ——— Panneaux arrondis ——— */
.panneau {
  position: relative;
  margin: 0 var(--cadre);
  border-radius: var(--rayon);
  background: var(--nuit);
  color: var(--blanc);
  overflow: hidden;
}

/* ——— Héros ——— */
.heros { padding-top: var(--cadre); }
.heros-panneau {
  min-height: calc(100svh - 2 * var(--cadre));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  padding: calc(var(--barre) + 56px) var(--marge) 0;
}
.scene3d {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  pointer-events: none;
}
.scene3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms ease; }
.scene3d.est-pret canvas { opacity: 1; }
.scene3d-repli {
  position: absolute;
  top: 16%;
  right: 12%;
  width: min(28vw, 360px);
  transform: rotate(-8deg);
  border-radius: 22%;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  transition: opacity 500ms ease;
}
.scene3d.est-pret .scene3d-repli { opacity: 0; }

.heros-contenu { position: relative; z-index: 2; display: grid; align-content: space-between; gap: 48px; }
.heros-titre {
  font-family: var(--display);
  font-size: var(--t-heros);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 200;
  text-transform: uppercase;
}
.heros-titre .ligne { display: block; }
.heros-titre .l2 { font-weight: 600; padding-left: 1.1em; }
.heros-bas { display: grid; grid-template-columns: minmax(0, 46ch); align-items: end; justify-content: space-between; gap: 24px 48px; padding-bottom: 40px; }
.heros-texte { color: var(--gris-nuit); font-size: var(--t-chapo); line-height: 1.45; grid-column: 1; }
.heros-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; grid-column: 1; }
.heros-bas .pilules { grid-column: 1; }

.heros-ecrans {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  height: clamp(120px, 16vw, 220px);
  margin: 0 calc(-1 * var(--marge) + 24px);
  perspective: 1400px;
}
.navigateur {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--nuit-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}
.navigateur-barre { display: flex; gap: 6px; padding: 10px 12px; background: var(--nuit-3); }
.navigateur-barre i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.navigateur img, .navigateur video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.heros-ecrans .navigateur { transform-origin: 50% 100%; }

/* ——— Bande des métiers ——— */
.metiers { overflow: hidden; padding: clamp(40px, 6vw, 80px) 0; }
.metiers-piste { display: flex; width: max-content; will-change: transform; }
.metiers-groupe { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); padding-right: clamp(20px, 2.4vw, 40px); }
.metiers span {
  font-family: var(--display);
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}
.metiers span:nth-of-type(even) { font-weight: 600; }
.carre { width: 14px; height: 14px; background: var(--bleu); border-radius: 3px; flex: none; }

/* ——— Manifeste ——— */
.manifeste { padding: clamp(24px, 4vw, 64px) var(--marge) var(--entre); }
.manifeste-texte {
  max-width: 24em;
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.manifeste-texte .mot { color: #b7c0cd; transition: color 200ms linear; }
.manifeste-texte .mot.est-lu { color: var(--texte); }

/* ——— En-têtes de section ——— */
.tete-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
  padding: 0 var(--marge);
  margin-bottom: clamp(48px, 6vw, 88px);
}
.titre-section {
  font-family: var(--display);
  font-size: var(--t-titre);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.titre-section .fin { font-weight: 200; }
.titre-section .gras { font-weight: 600; }
.chapo { color: var(--gris); font-size: var(--t-chapo); line-height: 1.4; max-width: 34ch; }

/* ——— Réalisations : cartes empilées ——— */
.realisations { padding-bottom: var(--entre); }
.pile { padding: 0 var(--cadre); display: grid; gap: 24px; }
.projet { position: sticky; top: calc(96px + var(--i) * 18px); }
.projet-carte {
  min-height: min(78svh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  padding: clamp(24px, 3vw, 48px);
  border-radius: var(--rayon);
  background: var(--nuit);
  color: var(--blanc);
  transform-origin: 50% 0;
  box-shadow: 0 -20px 50px -30px rgba(13, 27, 42, 0.5);
}
.projet-2 .projet-carte { background: var(--blanc); color: var(--texte); }
.projet-carte { position: relative; will-change: transform; }
.projet-voile { position: absolute; inset: 0; z-index: 3; border-radius: inherit; background: var(--nuit); opacity: 0; pointer-events: none; }
.heros-ecrans { will-change: transform; }
.projet-3 .projet-carte { background: var(--nuit-2); }
.projet-texte { display: flex; flex-direction: column; gap: 22px; padding: 8px 0; }
.projet-lieu { margin-top: -10px; font-size: var(--t-corps); opacity: 0.8; }
.projet-nom {
  font-family: var(--display);
  font-size: var(--t-sous);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.projet-cas { display: grid; gap: 16px; font-size: 1.0625rem; line-height: 1.5; }
.projet-cas dt { font-weight: 700; margin-bottom: 2px; }
.projet-cas dd { margin: 0; opacity: 0.88; }
.projet-texte .pilules { margin-top: auto; }
.projet-2 .pilules-petites li { background: var(--carte); color: var(--texte); }
.projet-media { position: relative; min-height: 420px; border-radius: calc(var(--rayon) - 8px); overflow: hidden; }
.projet-photo { position: absolute; inset: 0; overflow: hidden; }
.projet-photo img { width: 100%; height: 115%; object-fit: cover; }
.projet-ecran { position: absolute; left: 6%; bottom: 7%; width: 64%; box-shadow: var(--ombre); }
.projet-mobile {
  position: absolute;
  right: 6%;
  bottom: 7%;
  width: 19%;
  border-radius: 18px;
  overflow: hidden;
  border: 5px solid var(--nuit);
  box-shadow: var(--ombre);
  background: var(--nuit);
}
.projet-mobile img { aspect-ratio: 390 / 700; object-fit: cover; object-position: top; width: 100%; }

/* ——— Services : liste interactive ——— */
.services { padding-bottom: var(--entre); position: relative; }
.services-liste { margin: 0 var(--cadre); border-radius: var(--rayon); background: var(--blanc); overflow: hidden; }
.service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 56px;
  gap: 24px 48px;
  align-items: start;
  padding: clamp(28px, 3vw, 44px) var(--marge);
  isolation: isolate;
  transition: color 450ms var(--ease);
}
.service + .service { box-shadow: inset 0 1px 0 var(--carte); }
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--nuit);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 550ms var(--ease);
}
.service:hover { color: var(--blanc); }
.service:hover::before { clip-path: inset(0 0 0 0); }
.service-titre {
  font-family: var(--display);
  font-size: var(--t-sous);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  transition: transform 550ms var(--ease);
}
.service:hover .service-titre { transform: translateX(12px); }
.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--nuit);
  color: var(--blanc);
  font-family: var(--corps);
  font-size: var(--t-petit);
  font-weight: 500;
  letter-spacing: 0;
}
.service-corps { display: grid; gap: 16px; }
.service-corps > p { opacity: 0.88; }
.inclus { display: flex; flex-wrap: wrap; gap: 6px; }
.inclus li { padding: 5px 12px; border-radius: 999px; background: var(--fond); color: var(--texte); font-size: var(--t-petit); transition: background-color 450ms ease, color 450ms ease; }
.service:hover .inclus li { background: var(--nuit-3); color: var(--blanc); }
.service-fleche::after { content: ''; position: absolute; inset: 0; }
.service-fleche:focus-visible { outline: none; }
.service:has(.service-fleche:focus-visible) { outline: 3px solid var(--bleu); outline-offset: -3px; }
.service { cursor: pointer; }
.service-fleche .fleche { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--fond); color: var(--bleu); transition: transform 500ms var(--ease), background-color 300ms ease, color 300ms ease; }
.service:hover .service-fleche .fleche { transform: rotate(45deg); background: var(--bleu); color: var(--blanc); }

/* ——— Méthode : rail horizontal ——— */
.methode { padding-bottom: var(--entre); }
.methode-collant { overflow: hidden; }
.methode-rail { position: relative; }
.methode-trajet { position: relative; height: 40px; margin: 0 var(--marge) 28px; display: flex; align-items: center; }
.methode-trajet::before { content: ''; position: absolute; left: 0; right: 40px; height: 3px; border-radius: 3px; background: var(--carte); }
.methode-progres { position: absolute; left: 0; height: 3px; width: calc(100% - 40px); border-radius: 3px; background: var(--bleu); transform-origin: 0 50%; transform: scaleX(0.04); }
.methode-trajet .fleche { position: absolute; right: 0; width: 40px; height: 40px; color: var(--bleu); }
.methode-piste { display: flex; gap: 20px; padding: 0 var(--marge); width: max-content; }
.etape {
  width: clamp(300px, 34vw, 500px);
  min-height: clamp(260px, 34vh, 360px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--rayon);
  background: var(--blanc);
}
.etape:last-child { background: var(--nuit); color: var(--blanc); }
.etape:last-child .pilule-duree { background: var(--blanc); color: var(--nuit); }
.pilule-duree { align-self: flex-start; padding: 8px 16px; border-radius: 999px; background: var(--nuit); color: var(--blanc); font-size: var(--t-petit); font-weight: 500; }
.etape-titre { margin-top: auto; font-family: var(--display); font-size: var(--t-sous); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.etape p { max-width: 34ch; opacity: 0.88; }

/* ——— Pourquoi ——— */
.pourquoi { padding-bottom: var(--entre); }
.pourquoi-grille {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin: 0 var(--cadre);
}
.raison {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3vw, 48px);
  border-radius: var(--rayon);
  background: var(--blanc);
}
.raison-1 { grid-row: 1 / span 2; background: var(--nuit); color: var(--blanc); justify-content: flex-end; }
.raison-1 .raison h3 { font-family: var(--display); font-size: var(--t-sous); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
.raison p { max-width: 40ch; opacity: 0.88; }

/* ——— Devis ——— */
.devis { padding-bottom: var(--entre); }
.devis-panneau { padding: clamp(40px, 6vw, 96px) var(--marge); }
.devis-tete { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.titre-clair { color: var(--blanc); }
.devis-texte { color: var(--gris-nuit); font-size: var(--t-chapo); line-height: 1.45; }
.compositeur { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.choix { display: grid; gap: 32px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; font-weight: 500; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; cursor: pointer; }
.puce input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.puce span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--nuit-2);
  box-shadow: inset 0 0 0 1px var(--ligne-nuit);
  transition: background-color 250ms ease, color 250ms ease, transform 160ms var(--ease), box-shadow 250ms ease;
}
.puce:hover span { background: var(--nuit-3); }
.puce input:checked + span { background: var(--blanc); color: var(--nuit); box-shadow: none; }
.puce input:checked + span::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--bleu); }
.puce input:active + span { transform: scale(0.96); }
.puce input:focus-visible + span { outline: 3px solid var(--bleu); outline-offset: 3px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.champ { display: grid; gap: 8px; font-size: var(--t-petit); font-weight: 500; }
.champ em { font-style: normal; color: var(--gris-nuit); font-weight: 400; }
.champ-large { grid-column: 1 / -1; }
.champ input, .champ textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  font: inherit;
  font-size: var(--t-corps);
  font-weight: 400;
  color: var(--blanc);
  background: var(--nuit-2);
  border: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--ligne-nuit);
  caret-color: var(--bleu-pale);
  transition: box-shadow 250ms ease, background-color 250ms ease;
}
.champ textarea { resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; background: var(--nuit-3); box-shadow: inset 0 0 0 2px var(--bleu); }
.champ input[aria-invalid='true'] { box-shadow: inset 0 0 0 2px #ff8a7a; }
.erreur { color: #ffb3a8; font-weight: 500; }
.erreur:empty { display: none; }
.apercu {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: calc(var(--rayon) - 6px);
  background: var(--blanc);
  color: var(--texte);
}
.apercu-titre { font-size: var(--t-petit); font-weight: 500; color: var(--gris); }
.apercu-texte { font-family: var(--display); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; min-height: 7.5em; white-space: pre-line; }
.apercu-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.apercu-statut:empty { display: none; }
.apercu-statut { padding: 12px 16px; border-radius: 12px; background: var(--fond); font-weight: 500; }

/* ——— FAQ ——— */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; padding: 0 var(--marge) var(--entre); }
.faq-tete .titre-section { position: sticky; top: 120px; }
.faq-liste { display: grid; gap: 10px; }
.question { border-radius: var(--rayon-carte); background: var(--blanc); transition: background-color 300ms ease, color 300ms ease; }
.question summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.question summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--fond); transition: background-color 300ms ease, transform 400ms var(--ease); }
.plus::before, .plus::after { content: ''; position: absolute; left: 13px; right: 13px; top: 19px; height: 2px; border-radius: 2px; background: var(--texte); transition: transform 400ms var(--ease), background-color 300ms ease; }
.plus::after { transform: rotate(90deg); }
.question[open] { background: var(--nuit); color: var(--blanc); }
.question[open] .plus { background: var(--bleu); transform: rotate(180deg); }
.question[open] .plus::before, .question[open] .plus::after { background: var(--blanc); }
.question[open] .plus::after { transform: rotate(0deg); }
.question summary:hover .plus { background: var(--bleu); }
.question summary:hover .plus::before, .question summary:hover .plus::after { background: var(--blanc); }
.reponse { padding: 0 28px 28px; }
.reponse p { max-width: 62ch; color: var(--gris-nuit); }

/* ——— Pied de page ——— */
.pied { padding-bottom: var(--cadre); }
.pied-panneau { padding: clamp(56px, 8vw, 120px) var(--marge) 0; }
.pied-haut { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.pied-titre { font-size: var(--t-heros); line-height: 0.95; }
.rond {
  flex: none;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: clamp(140px, 14vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bleu);
  color: var(--blanc);
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: background-color 300ms ease, color 300ms ease;
}
.rond .fleche { width: 36px; height: 36px; transition: transform 500ms var(--ease); }
.rond:hover { background: var(--blanc); color: var(--nuit); }
.rond:hover .fleche { transform: rotate(45deg); color: var(--bleu); }
.pied-intro { margin-top: 32px; max-width: 40ch; color: var(--gris-nuit); font-size: var(--t-chapo); line-height: 1.45; }
.contacts { margin-top: 56px; display: grid; }
.contacts li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: baseline; padding: 22px 0; box-shadow: inset 0 1px 0 var(--ligne-nuit); }
.contacts span { color: var(--gris-nuit); font-size: var(--t-petit); }
.contacts a {
  justify-self: start;
  font-family: var(--display);
  font-size: var(--t-sous);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 300ms ease, transform 500ms var(--ease);
}
.contacts a:hover { color: var(--bleu-pale); transform: translateX(10px); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 64px; font-size: var(--t-petit); color: var(--gris-nuit); }
.legal a { color: var(--blanc); }
.credits { flex-basis: 100%; }
.nom-geant {
  margin: 24px 0 -0.2em -0.04em;
  font-family: var(--display);
  font-size: 23.5vw;
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.06em;
  white-space: nowrap;
  user-select: none;
}

/* ——— Rideau d'ouverture (une fois par visite) ——— */
.rideau { display: none; }
html.intro .rideau {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--nuit);
}
.rideau .icone { width: 110px; height: 110px; }
.rideau .icone-fond { fill: var(--nuit); }
.rideau .icone-d { stroke: var(--blanc); }

/* ——— Curseur (souris uniquement) ——— */
.curseur { display: none; }
@media (hover: hover) and (pointer: fine) {
  .curseur {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin: -48px 0 0 -48px;
    border-radius: 50%;
    background: var(--bleu);
    color: var(--blanc);
    font-weight: 500;
    pointer-events: none;
    transform: scale(0);
  }
  .projet-media { cursor: none; }
}

/* ——— États d'apparition (seulement quand le script d'animation tourne) ——— */
html.anime [data-monte] { opacity: 0; transform: translateY(32px); }

/* ——— Tablette ——— */
@media (max-width: 1100px) {
  .liens { gap: 18px; }
  .projet-carte { grid-template-columns: 1fr; }
  .projet-media { min-height: 52vw; }
  .service { grid-template-columns: 1fr 56px; }
  .service-corps { grid-column: 1; }
  .service-fleche { grid-column: 2; grid-row: 1; }
  .faq { grid-template-columns: 1fr; }
  .faq-tete .titre-section { position: static; }
}

/* ——— Téléphone ——— */
@media (max-width: 820px) {
  :root { --barre: 64px; }
  .barre { height: 56px; top: calc(var(--cadre) + 8px); left: calc(var(--cadre) + 8px); right: calc(var(--cadre) + 8px); gap: 10px; padding: 0 6px 0 14px; }
  .logo, .logo img { height: 32px; }
  .barre .bouton-pilule { padding: 0 6px 0 14px; min-height: 44px; }
  .burger {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--ligne-nuit);
    cursor: pointer;
  }
  .barre.est-claire .burger { background: var(--carte); }
  .burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 400ms var(--ease); }
  .burger[aria-expanded='true'] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded='true'] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .liens {
    position: fixed;
    top: calc(var(--cadre) + 72px);
    left: var(--cadre);
    right: var(--cadre);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: var(--rayon);
    background: var(--nuit);
    color: var(--blanc);
    box-shadow: var(--ombre);
    font-family: var(--display);
    font-size: 1.75rem;
    clip-path: inset(0 0 100% 0 round var(--rayon));
    visibility: hidden;
    transition: clip-path 500ms var(--ease), visibility 0s 500ms;
  }
  .liens.est-ouvert { clip-path: inset(0 0 0 0 round var(--rayon)); visibility: visible; transition: clip-path 500ms var(--ease); }
  .liens a { padding: 14px 16px; }
  .liens a::after { display: none; }
  .liens .langue { align-self: flex-start; margin: 8px 16px; font-family: var(--corps); font-size: 1rem; }

  .heros-panneau { padding-top: calc(var(--barre) + 24px); min-height: auto; }
  .scene3d { position: relative; width: auto; height: 300px; margin: 0 calc(-1 * var(--marge)) 8px; }
  .scene3d-repli { top: 40px; right: 50%; width: 190px; transform: translateX(50%) rotate(-8deg); }
  .heros-titre { font-size: clamp(2.6rem, 11.5vw, 4rem); }
  .heros-titre .l2 { padding-left: 0.6em; }
  .heros-contenu { gap: 28px; }
  .heros-bas { grid-template-columns: 1fr; }
  .heros-bas .pilules { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .heros-actions .bouton { width: 100%; justify-content: space-between; }
  .heros-ecrans { grid-template-columns: 1fr 1fr; height: 110px; margin: 0 -8px; }
  .heros-ecrans .navigateur:nth-child(3) { display: none; }

  .tete-section { grid-template-columns: 1fr; }
  .projet { position: relative; top: auto; }
  .projet-carte { padding: 20px; gap: 24px; min-height: 0; }
  .projet-media { min-height: 72vw; order: -1; }
  .projet-cas { font-size: 1rem; }

  .service { padding: 28px 20px; gap: 16px; }
  .service-fleche .fleche { width: 44px; height: 44px; padding: 11px; }

  .methode-piste { flex-direction: column; width: auto; padding: 0 var(--cadre); }
  .etape { width: auto; min-height: 0; }
  .etape-titre { margin-top: 24px; }
  .methode-trajet { display: none; }

  .pourquoi-grille { grid-template-columns: 1fr; }
  .raison-1 { grid-row: auto; min-height: 380px; }

  .devis-tete, .compositeur, .champs { grid-template-columns: 1fr; }
  .apercu { position: static; }

  .question summary { padding: 20px; }
  .reponse { padding: 0 20px 22px; }

  .pied-haut { flex-direction: column; align-items: flex-start; }
  .contacts li { grid-template-columns: 1fr; gap: 4px; }
  .nom-geant { font-size: 26vw; }
}

@media (prefers-reduced-motion: reduce) {
  html.intro .rideau { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .projet { position: relative; top: auto; }
}

/* Sécurité : si le script ne démarre pas, le rideau s'efface tout seul */
@keyframes rideau-fin { to { visibility: hidden; opacity: 0; } }
html.intro .rideau { animation: rideau-fin 300ms 4s forwards; }

/* Les masques des titres animés laissent respirer accents et jambages */
.heros-titre .ligne > *, [data-lignes] > div { padding: 0.12em 0 0.1em; margin: -0.12em 0 -0.1em; }



/* Pourquoi Davirn : de vrais visuels à la place des signes */
.raison-visuel { margin-bottom: auto; }
.raison-1 .raison-visuel img { width: clamp(140px, 16vw, 220px); border-radius: 22%; transform: rotate(-8deg); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6); }
.raison-1 { gap: 18px; }
.raison-1 .raison-visuel { padding: 8px 0 48px; }
.raison-2 .raison-visuel .fleche { width: 72px; height: 72px; color: var(--bleu); }
.raison-3 .raison-visuel { display: flex; gap: 10px; margin-bottom: 12px; }
.raison-3 .raison-visuel img { width: 30%; max-width: 110px; aspect-ratio: 390 / 700; object-fit: cover; object-position: top; border-radius: 12px; border: 3px solid var(--nuit); }
.raison-3 .raison-visuel img:nth-child(2) { transform: translateY(-14px); }

/* Relance après les réalisations, réassurance sous l'envoi */
.relance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin: 48px var(--marge) 0; }
.relance-texte { font-family: var(--display); font-size: var(--t-sous); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.rassurance { color: var(--gris); font-size: var(--t-petit); }
