/* Plancher JP Évolution — les sections sous le parcours 3D (le hero est dans style.css) */

/* ---------- En-tête : prend un fond dès qu'on quitte le parcours 3D ---------- */
.tete { transition: background .3s ease, box-shadow .3s ease; }
.tete.est-pleine { background: rgb(var(--fonce-rvb) / .92); box-shadow: 0 1px 0 rgb(var(--clair-rvb) / .12); backdrop-filter: blur(10px); }
html { scroll-behavior: smooth; }
h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video { max-width: 100%; }
.btn--blanc { background: var(--blanc); color: var(--nuit); }
@media (hover: hover) { .btn--blanc:hover { background: #fff; } }

/* Les vues de chantier du parcours : photos et vidéos partagent le même cadre */
.vue video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.vc .vue--c { opacity: 1; transform: translateY(-50%); clip-path: inset(0 0 -40px 0); }
@media (max-width: 900px) { .vc .vue--c { transform: none; } }

/* L'ouverture : la vidéo du sableur couvre la scène 3D à l'arrivée, puis s'efface quand on descend */
.ouverture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: opacity, transform; }

/* Le nom du plan en cours, en haut à gauche sous l'en-tête */
.plan { position: absolute; left: clamp(16px, 3.4vw, 52px); top: 96px; display: flex; gap: 12px; opacity: .9; }
.plan b { color: var(--rouge); font-weight: 500; }
@media (max-width: 900px) { .plan { top: 84px; max-width: 46vw; } }

/* ---------- Apparitions au défilement ---------- */
[data-vu] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .9s var(--sortie); }
[data-vu].vu { opacity: 1; transform: none; }

/* ---------- Bandeau ---------- */
.ruban { overflow: hidden; border-block: 1px solid rgb(var(--clair-rvb) / .16); padding: 18px 0; }
.ruban__piste { display: flex; width: max-content; animation: filer 38s linear infinite; }
.ruban span { font-stretch: 122%; font-weight: 850; font-size: clamp(26px, 3.4vw, 54px); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgb(var(--clair-rvb) / .55); }
.ruban span::after { content: ''; display: inline-block; width: .34em; height: .34em; border-radius: 50%; background: var(--rouge); margin: 0 .5em; vertical-align: middle; }
.ruban span:nth-child(3n + 1) { color: var(--blanc); -webkit-text-stroke: 0; }
@keyframes filer { to { transform: translateX(-50%); } }

/* ---------- Blocs ---------- */
.bloc { padding: clamp(64px, 8vw, 130px) clamp(16px, 3.4vw, 52px); }
.bloc--clair { background: var(--blanc); color: var(--nuit); }
.bloc--serre { padding-inline: 0; }
.bloc--serre .entete { padding-inline: clamp(16px, 3.4vw, 52px); }
.entete { max-width: 1100px; margin-bottom: clamp(32px, 4.4vw, 68px); }
h2 { font-stretch: 122%; font-weight: 850; font-size: clamp(34px, 5.6vw, 92px); line-height: .96; letter-spacing: -.035em; margin-top: 18px; text-wrap: balance; }
h2 em { font-style: normal; color: var(--rouge); }
.chapo { max-width: 52ch; margin-top: 20px; font-size: clamp(16px, 1.3vw, 20px); opacity: .82; }

/* ---------- Deux terrains ---------- */
.duo { display: flex; gap: clamp(10px, 1.2vw, 18px); }
.terrain { position: relative; flex: 1 1 0; min-width: 0; height: clamp(440px, 62vh, 700px); border-radius: 4px; overflow: hidden; transition: flex-grow .7s var(--sortie), opacity .7s ease, transform .9s var(--sortie); }
.terrain img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--sortie); }
.terrain__fond { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px; padding: clamp(18px, 2.4vw, 36px); background: linear-gradient(to top, rgb(var(--fonce-rvb) / .92) 0%, rgb(var(--fonce-rvb) / .5) 45%, rgb(var(--fonce-rvb) / .1) 75%); }
.terrain h3 { font-stretch: 120%; font-weight: 850; font-size: clamp(28px, 3.6vw, 58px); line-height: .98; letter-spacing: -.03em; }
.terrain ul { display: flex; flex-wrap: wrap; gap: 8px; }
.terrain li { font-size: 14px; font-weight: 600; padding: 7px 12px; border: 1px solid rgb(var(--clair-rvb) / .4); border-radius: 999px; white-space: nowrap; }
@media (hover: hover) {
  .duo:hover .terrain:not(:hover) { flex-grow: .62; }
  .terrain:hover img { transform: scale(1.05); }
}

/* ---------- Le chiffre ---------- */
.chiffre { padding: clamp(40px, 6vw, 96px) clamp(16px, 3.4vw, 52px) clamp(64px, 8vw, 130px); border-top: 1px solid rgb(var(--clair-rvb) / .16); }
.chiffre__nb { font-stretch: 125%; font-weight: 900; font-size: clamp(40px, 12.4vw, 230px); line-height: .9; letter-spacing: -.05em; margin-top: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chiffre__nb small { font-size: .32em; letter-spacing: -.02em; color: var(--rouge); }

/* ---------- Liste des services ---------- */
.liste { border-top: 2px solid var(--nuit); }
.liste a { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) 190px; align-items: center; gap: clamp(12px, 2vw, 32px); padding: clamp(18px, 2vw, 30px) clamp(4px, 1.2vw, 18px); border-bottom: 1px solid rgb(var(--fonce-rvb) / .22); transition: background .3s ease, color .3s ease; }
.liste .mono { color: var(--rouge); }
.liste b { font-stretch: 120%; font-weight: 850; font-size: clamp(22px, 2.9vw, 46px); letter-spacing: -.03em; line-height: 1.02; }
.liste p { font-size: 15.5px; opacity: .78; max-width: 44ch; }
.liste img { width: 190px; height: 112px; object-fit: cover; border-radius: 3px; clip-path: inset(0 0 0 100%); transition: clip-path .6s var(--sortie); }
@media (hover: hover) {
  .liste a:hover { background: var(--nuit); color: var(--blanc); }
  .liste a:hover img { clip-path: inset(0); }
}
@media (hover: none) { .liste img { clip-path: none; } }

/* ---------- Le déroulement ---------- */
.temps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 40px); position: relative; }
.temps::before { content: ''; position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: rgb(var(--clair-rvb) / .28); }
.temps li { position: relative; }
.temps li:nth-child(2) { transition-delay: .08s; }
.temps li:nth-child(3) { transition-delay: .16s; }
.temps li:nth-child(4) { transition-delay: .24s; }
.temps__no { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--blanc); background: var(--nuit); font-stretch: 120%; font-weight: 850; font-size: 26px; }
.temps li:first-child .temps__no { background: var(--rouge); border-color: var(--rouge); }
.temps h3 { font-stretch: 118%; font-weight: 800; font-size: clamp(20px, 1.9vw, 30px); letter-spacing: -.02em; margin: 22px 0 8px; }
.temps p { opacity: .78; font-size: 15.5px; max-width: 30ch; }

/* ---------- Réalisations : une bande qu'on fait glisser ---------- */
.galerie { display: flex; gap: clamp(10px, 1.2vw, 18px); overflow-x: auto; padding: 0 clamp(16px, 3.4vw, 52px) 10px; scroll-snap-type: x mandatory; scroll-padding-inline: clamp(16px, 3.4vw, 52px); scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.galerie::-webkit-scrollbar { display: none; }
.galerie.se-tire { cursor: grabbing; scroll-snap-type: none; }
.galerie figure { flex: none; width: clamp(280px, 38vw, 640px); scroll-snap-align: start; }
.galerie img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; pointer-events: none; user-select: none; }
.galerie figcaption { margin-top: 12px; opacity: .8; }

/* ---------- Territoire ---------- */
.zone__villes { font-stretch: 122%; font-weight: 850; font-size: clamp(26px, 4.6vw, 76px); line-height: 1.12; letter-spacing: -.03em; }
.zone__villes i { display: inline-block; width: .3em; height: .3em; border-radius: 50%; background: var(--rouge); margin: 0 .22em; vertical-align: middle; }

/* ---------- L'appel ---------- */
.appel { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(84px, 12vw, 190px) clamp(16px, 3.4vw, 52px); }
.appel__lignes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; stroke: rgb(var(--clair-rvb) / .16); stroke-width: 2; }
.appel__lignes circle { stroke: var(--rouge); opacity: .7; }
.appel .surtitre { justify-content: center; }
.appel .chapo { margin-inline: auto; }
.appel h2 { font-size: clamp(40px, 8vw, 132px); }
.appel .actions { opacity: 1; transform: none; justify-content: center; padding-top: 30px; }
.appel .btn { font-size: clamp(17px, 1.6vw, 22px); padding: 18px 26px; font-stretch: 112%; }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid rgb(var(--clair-rvb) / .16); overflow: hidden; }
.pied__geant { font-stretch: 125%; font-weight: 900; font-size: 9.4vw; line-height: .8; letter-spacing: -.05em; text-transform: uppercase; white-space: nowrap; text-align: center; padding-top: clamp(28px, 4vw, 60px); color: transparent; -webkit-text-stroke: 1px rgb(var(--clair-rvb) / .4); }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px clamp(16px, 3.4vw, 52px); padding-bottom: max(22px, env(safe-area-inset-bottom)); opacity: .75; }

@media (max-width: 900px) {
  .duo { flex-direction: column; }
  .terrain { flex: none; height: 440px; }
  .liste a { grid-template-columns: 34px 1fr; }
  .liste p, .liste img { grid-column: 2; }
  .liste img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .temps { grid-template-columns: 1fr; gap: 30px; }
  .temps::before { left: 34px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .temps li { display: grid; grid-template-columns: 70px 1fr; column-gap: 18px; }
  .temps__no { grid-row: span 2; }
  .temps h3 { margin: 6px 0; }
  .galerie figure { width: 78vw; }
  .appel .actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  [data-vu] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- La demande écrite ---------- */
.demande { max-width: 760px; margin: clamp(48px, 6vw, 84px) auto 0; text-align: left; }
.demande__titre { text-align: center; opacity: .7; margin-bottom: 22px; }
.demande__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.demande label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.demande__large { grid-column: 1 / -1; }
.demande input, .demande select, .demande textarea { width: 100%; font: 400 16px/1.4 Archivo, system-ui, sans-serif; color: var(--blanc); background: #11141a; border: 1px solid rgb(var(--clair-rvb) / .22); border-radius: 4px; padding: 13px 14px; transition: border-color .2s ease, background .2s ease; }
.demande select option { color: #111; }
.demande textarea { resize: vertical; min-height: 110px; }
.demande input:focus, .demande select:focus, .demande textarea:focus { outline: none; border-color: var(--blanc); background: #171b22; }
.demande .est-vide { border-color: var(--rouge); }
.demande__piege { position: absolute; left: -9999px; }
.demande .btn { margin-top: 18px; border: 0; cursor: pointer; font-family: inherit; }
.demande .btn[disabled] { opacity: .6; cursor: default; }
.demande__note { margin-top: 12px; font-size: 13px; opacity: .6; }
.demande__etat { margin-top: 12px; font-weight: 600; min-height: 1.5em; }
.demande__etat.est-ok { color: #8fd3a0; }
.demande__etat.est-non { color: #ff8a80; }
.pied__infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: clamp(28px, 4vw, 52px) clamp(16px, 3.4vw, 52px) 6px; font-size: 15px; line-height: 1.7; }
.pied__infos a { opacity: .8; transition: opacity .2s ease; }
@media (hover: hover) { .pied__infos a:hover { opacity: 1; } }
@media (max-width: 700px) { .demande__grille { grid-template-columns: 1fr; } .pied__infos { grid-template-columns: 1fr; } .demande .btn { width: 100%; justify-content: center; } }
