/* =====================================================================
   LED SUARL — couche premium et dynamique (s'ajoute à site.css)
   Héros plein écran, en-têtes cinématiques, rail horizontal des métiers,
   transitions de page. Tout reste lisible sans JavaScript.
   ===================================================================== */
:root { --nuit: #0B1C2C; --nuit-2: #10263A; --verre: rgba(255,255,255,.08); --verre-bord: rgba(255,255,255,.18); }

/* Défilement fluide (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- Rideau de transition entre les pages ---------- */
.rideau { display: none; }
.js .rideau { display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; background: var(--nuit); animation: rideau-sort .75s .1s cubic-bezier(.7,0,.2,1) forwards; pointer-events: none; }
.js .rideau img { width: 64px; height: auto; opacity: .9; }
.js .rideau.entre { animation: rideau-entre .45s cubic-bezier(.7,0,.2,1) forwards; pointer-events: all; }
@keyframes rideau-sort { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes rideau-entre { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------- En-tête : transparent sur les héros sombres, verre fumé au défilement ---------- */
.entete { position: fixed; left: 0; right: 0; top: 0; background: transparent; backdrop-filter: none; border-bottom: 1px solid transparent; }
.entete.defile { background: rgba(11,28,44,.86); backdrop-filter: blur(14px); border-color: rgba(255,255,255,.08); box-shadow: none; }
.entete .logo strong, .nav > a, .nav .deroulant > button { color: #fff; }
.entete .logo span { color: var(--vert-clair); }
.nav > a:hover, .nav .deroulant > button:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.1); }
.langue { border-color: rgba(255,255,255,.25); }
.langue a { color: rgba(255,255,255,.75); }
.langue span { background: #fff; color: var(--nuit); }
.burger { color: #fff; }
.sous-menu { background: rgba(11,28,44,.97); border-color: rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.sous-menu a { color: #fff; }
.sous-menu a:hover { background: rgba(255,255,255,.08); }
.sous-menu .tout { border-color: rgba(255,255,255,.12); color: var(--or); }
@media (max-width: 1100px) {
  .nav { background: var(--nuit); border-color: rgba(255,255,255,.1); }
  .sous-menu { background: transparent; }
}

/* ---------- Boutons ---------- */
.btn--verre { background: var(--verre); color: #fff; box-shadow: inset 0 0 0 1.5px var(--verre-bord); backdrop-filter: blur(8px); }
.btn--verre:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--or { position: relative; overflow: hidden; }
.btn--or::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s ease; }
.btn--or:hover::after { transform: translateX(120%); }
.magnetique { will-change: transform; }

/* ---------- Titres révélés mot à mot ---------- */
.titre-anime .mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.titre-anime .mot > span { display: inline-block; }
.js .titre-anime .mot > span { transform: translateY(108%); transition: transform 1s cubic-bezier(.2,.75,.15,1); }
.js .titre-anime.vu .mot > span { transform: none; }

/* ---------- Héros d'accueil : diaporama plein écran ---------- */
.hero-p { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; background: var(--nuit); color: #fff; overflow: hidden; }
.hero-diapos { position: absolute; inset: 0; }
.diapo { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.diapo.active { opacity: 1; }
.diapo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.diapo.active img { animation: zoom-lent 7s ease-out forwards; }
@keyframes zoom-lent { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero-voile { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11,28,44,.55) 0%, rgba(11,28,44,.2) 30%, rgba(11,28,44,.75) 72%, rgba(11,28,44,.97) 100%),
  linear-gradient(90deg, rgba(11,28,44,.75) 0%, rgba(11,28,44,0) 65%); }
.hero-contenu { position: relative; padding-top: 170px; padding-bottom: 34px; width: 100%; }
.hero-contenu h1 { color: #fff; font-size: clamp(2.7rem, 6.6vw, 5.8rem); line-height: 1.02; max-width: 15ch; letter-spacing: -0.03em; }
.hero-contenu h1 .accent { color: var(--or); }
.hero-contenu .chapo { color: #D3DEE8; margin: 26px 0 34px; max-width: 54ch; }
.hero-contenu .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.js .hero-contenu .chapo, .js .hero-contenu .actions { opacity: 0; transform: translateY(20px); animation: entree .9s cubic-bezier(.2,.75,.15,1) forwards; }
.js .hero-contenu .chapo { animation-delay: .7s; }
.js .hero-contenu .actions { animation-delay: .85s; }
.hero-bas { position: relative; width: 100%; padding-bottom: 28px; }
.conduits--verre { margin-top: 0; border: 1px solid rgba(255,255,255,.12); background: rgba(11,28,44,.45); backdrop-filter: blur(14px); border-radius: 20px; padding: 22px 24px; }
.conduits--verre a { color: #fff; }
.conduits--verre small { color: rgba(214,225,235,.7); }
.conduits--verre .tuyau { background: rgba(255,255,255,.1); }
.conduits--verre li { transition: opacity .4s ease; }
.conduits--verre.suivi li { opacity: .55; }
.conduits--verre.suivi li.actif { opacity: 1; }
.conduits--verre li.actif .tuyau::after { animation-duration: .8s; }

/* ---------- En-têtes de page cinématiques ---------- */
.page-hero { position: relative; min-height: 46svh; display: flex; align-items: flex-end; background: var(--nuit); color: #fff; overflow: hidden; }
.page-hero--image { min-height: 74svh; }
.ph-fond { position: absolute; inset: 0; }
.ph-fond .ph-img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.ph-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,28,44,.6) 0%, rgba(11,28,44,.25) 35%, rgba(11,28,44,.92) 100%), linear-gradient(90deg, rgba(11,28,44,.6), transparent 70%); }
.page-hero:not(.page-hero--image) .ph-voile { background: radial-gradient(1200px 500px at 85% 0%, rgba(55,126,184,.25), transparent 60%); }
.ph-contenu { position: relative; width: 100%; padding-top: 150px; padding-bottom: 64px; }
.ph-contenu .fil, .ph-contenu .fil a { color: rgba(255,255,255,.65); }
.ph-contenu .marque-metier { color: rgba(255,255,255,.85); }
.ph-contenu h1 { color: #fff; margin-top: 14px; max-width: 18ch; font-size: clamp(2.5rem, 5.6vw, 4.8rem); letter-spacing: -0.03em; }
.ph-contenu .chapo { color: #D3DEE8; margin-top: 22px; max-width: 58ch; }
.page-hero .ph-contenu::after { content: ""; display: block; width: 120px; height: 5px; border-radius: 5px; margin-top: 34px; background: var(--c, var(--or)); }
/* Lignes de conduits animées pour les en-têtes sans photo */
.ph-fond--lignes i { position: absolute; left: -10%; right: -10%; height: 3px; border-radius: 3px; opacity: .55; background: repeating-linear-gradient(90deg, var(--l) 0 60px, transparent 60px 96px); animation: flux-ligne 6s linear infinite; }
.ph-fond--lignes i:nth-child(1) { top: 22%; --l: var(--or); }
.ph-fond--lignes i:nth-child(2) { top: 34%; --l: var(--bleu); animation-duration: 8s; animation-direction: reverse; }
.ph-fond--lignes i:nth-child(3) { top: 46%; --l: #3FB5BF; animation-duration: 7s; }
.ph-fond--lignes i:nth-child(4) { top: 58%; --l: var(--vert-clair); animation-duration: 9s; animation-direction: reverse; }
.ph-fond--lignes i:nth-child(5) { top: 70%; --l: var(--gris-clair); animation-duration: 10s; }
@keyframes flux-ligne { from { transform: translateX(-96px); } to { transform: translateX(0); } }

/* ---------- Rail horizontal des métiers ---------- */
.rail-section { background: var(--nuit); color: #fff; }
.rail-epingle { padding: 110px 0 80px; overflow: hidden; }
.rail-tete { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.rail-tete h2 { color: #fff; }
.rail-tete .chapo { color: #AFC2D3; }
.rail { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-piste { display: flex; gap: 24px; padding: 0 max(20px, calc((100vw - var(--largeur)) / 2 + 20px)); width: max-content; }
.panneau { position: relative; flex: none; width: min(46vw, 640px); height: min(66vh, 600px); border-radius: 26px; overflow: hidden; color: #fff; text-decoration: none; scroll-snap-align: center; }
.panneau img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.75,.15,1); }
.panneau:hover img { transform: scale(1.06); }
.panneau-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,28,44,0) 30%, rgba(11,28,44,.92) 100%); }
.panneau::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.panneau-texte { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px; display: grid; gap: 12px; }
.panneau-texte h3 { color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.3rem); letter-spacing: -0.02em; }
.panneau-texte p { margin: 0; color: #D3DEE8; max-width: 44ch; }
.panneau-texte .marque-metier { color: rgba(255,255,255,.8); }
.panneau-texte .lien-fleche { color: var(--or); }
.c-info .panneau-texte, .panneau.c-info { --c: #6F8FAD; }

/* ---------- Bandeau chiffres sombre ---------- */
.section--nuit { background: var(--nuit-2); }
.section--nuit .chiffre b { color: #fff; }
.section--nuit .chiffre > span { color: #AFC2D3; }
.section--nuit .chiffre.c-info { --c: #6F8FAD; }

/* ---------- Finitions premium ---------- */
.projet { box-shadow: 0 40px 80px -60px rgba(11,28,44,.55); }
.projet .photo { overflow: hidden; }
.projet .photo img { height: 116%; top: -8%; will-change: transform; }
.prestation { transition: transform .35s ease, box-shadow .35s ease; }
.prestation:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(11,28,44,.45); }
.confiance strong { font-size: 1.3rem; }
.cta { background: radial-gradient(900px 400px at 100% 0%, rgba(55,126,184,.35), transparent 60%), var(--nuit); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .rail-tete { grid-template-columns: 1fr; gap: 16px; }
  .rail-epingle { padding: 80px 0 64px; }
  .panneau { width: 84vw; height: 68vh; }
  .hero-contenu { padding-top: 130px; }
  .conduits--verre { padding: 18px; }
  .conduits--verre ul { grid-template-columns: 1fr 1fr; }
  .page-hero--image { min-height: 64svh; }
  .ph-contenu { padding-top: 130px; padding-bottom: 48px; }
}
@media (max-width: 600px) {
  .conduits--verre li:nth-child(n+5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rideau { display: none; }
  .js .titre-anime .mot > span, .js .hero-contenu .chapo, .js .hero-contenu .actions { transform: none; opacity: 1; }
  .diapo img { transform: none; }
}
