/* Finitions Localyx : corrections et mouvement supplémentaire (propres à LumenÉlec). */

/* Les masques de lignes coupaient les accents des capitales (LUMIÈRE) */
h1 :is(div, span), h2 :is(div, span) { padding-top: .16em; margin-top: -.16em; }

/* Trois exemples d'avis */
.avis-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .avis-grille { grid-template-columns: 1fr; } }

/* Afficheur à LED qui fait défiler les métiers */
.afficheur { position: relative; overflow: clip; border-block: 1px solid var(--ligne); background: #0b0907; }
.afficheur ul { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.afficheur li { padding: clamp(12px, 1.4vw, 18px) 28px; font: 700 clamp(1rem, 2vw, 1.7rem)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ambre); text-shadow: 0 0 12px #ffc67588; white-space: nowrap; }
.afficheur li::before { content: "▸ "; color: var(--ambre-sombre); }
.afficheur::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 1.1px, #0b0907 1.3px) 0 0 / 4px 4px; opacity: .55; }

/* Contour lumineux qui tourne autour des modules et des projets au survol */
@property --tour { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.module, .projet { position: relative; }
.module::after, .projet::after { content: ""; position: absolute; inset: -1px; pointer-events: none; padding: 1px; border-radius: inherit; background: conic-gradient(from var(--tour), transparent 0 70%, var(--ambre) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; }
@media (hover: hover) { .module:hover::after, .projet:hover::after { opacity: 1; animation: tour-lumiere 1.6s linear infinite; } }
@keyframes tour-lumiere { to { --tour: 360deg; } }

/* Halo qui suit le pointeur dans les modules */
.module a { background-image: radial-gradient(240px circle at var(--hx, -300px) var(--hy, -300px), #ffc67518, transparent 70%); }

/* Faisceau qui balaie les titres de section une fois */
.section-entete h2, .tarifs h2 { position: relative; }
.balayage { position: absolute; left: 0; bottom: -8px; height: 2px; width: 100%; background: linear-gradient(90deg, transparent, var(--ambre), transparent); transform-origin: left; pointer-events: none; }

/* Câble de lecture sur le bord gauche */
.cable-lecture { position: fixed; z-index: 30; left: 10px; top: calc(var(--bandeau-mesure, 0px) + 90px); bottom: 110px; width: 2px; background: #ffc67522; pointer-events: none; }
.cable-lecture i { position: absolute; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 14px 4px #ffc67599; top: calc(var(--p, 0) * 100%); }
@media (max-width: 860px) { .cable-lecture { display: none; } }

/* Bouton de devis du contact : lueur qui respire */
.contact .bouton:first-of-type { animation: respire-lueur 3.2s ease-in-out infinite; }
@keyframes respire-lueur { 50% { box-shadow: 0 0 0 6px #ffc67514, 0 0 34px #ffc67544; } }

/* Méthode : le courant parcourt la ligne des étapes */
.etapes { position: relative; }
.courant-etapes { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--ambre-sombre), var(--ambre)); box-shadow: 0 0 12px var(--ambre); transform: scaleX(0); transform-origin: left; z-index: 2; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .module::after, .projet::after, .contact .bouton:first-of-type { animation: none !important; }
  .afficheur ul { flex-wrap: wrap; width: auto; transform: none !important; }
  .cable-lecture { display: none; }
}
