/* Maroc Led Print, by MPS : la page vit la nuit. Fonds sombres, lumière des diodes, l'enseigne du logo en héros. */
.led { --nuit: #07080b; --nuit-releve: #111318; --nuit-filet: #24272e; --texte-nuit: #eceef2; --doux-nuit: #a3a6ad; --vert-led: #1ee65a; background: var(--nuit); color: var(--texte-nuit); }
.led .ariane { color: var(--doux-nuit); }
.led .ariane [aria-current] { color: var(--texte-nuit); }
.led :focus-visible { outline-color: #fff; }
.led h2 { margin: 0; font-family: var(--font-titre); font-weight: 700; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.led .intro { margin: 18px 0 0; max-width: 36em; font-size: 18px; line-height: 28px; color: var(--doux-nuit); }
.led .intro a { color: var(--texte-nuit); text-underline-offset: 4px; }
.led-section { max-width: 1440px; margin: 0 auto; padding: var(--espace-9) max(var(--espace-7), env(safe-area-inset-right, 0px)) var(--espace-9) max(var(--espace-7), env(safe-area-inset-left, 0px)); }

/* Composant 1 : le héros. La toile est le mur de nuit ; le texte se pose dans la zone sombre, à gauche. */
.led-heros { position: relative; min-height: clamp(620px, calc(100vh - 84px), 900px); overflow: hidden; background: #050608; }
.led-heros canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.led-heros__repli { position: absolute; right: 0; top: 0; height: 100%; width: 62%; object-fit: cover; }
.led-heros.a-3d .led-heros__repli { display: none; }
/* Téléphone : l'enseigne 3D, montée après l'affichage de la page, remplace la photo en fondu (led.js). */
.led-heros.fondu canvas { opacity: 0; transition: opacity 0.6s ease; }
.led-heros.fondu.a-3d canvas { opacity: 1; }
.led-heros.fondu.a-3d .led-heros__repli { display: block; }
.led-heros__interieur { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; min-height: inherit; display: grid; align-content: center;
  padding: var(--espace-6) max(var(--espace-7), env(safe-area-inset-right, 0px)) var(--espace-8) max(var(--espace-7), env(safe-area-inset-left, 0px)); pointer-events: none; }
.led-heros__interieur > * { pointer-events: auto; max-width: 560px; }
.led-heros .ariane { margin-bottom: var(--espace-6); }
.led-heros h1 { margin: 0; font-family: var(--font-titre); font-weight: 700; font-size: clamp(42px, 4.6vw, 70px); line-height: 1.03; letter-spacing: -0.012em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8); }
.led-heros h1 em { font-style: normal; color: #fff; text-shadow: 0 0 18px rgba(120, 170, 255, 0.9), 0 0 2px #fff; }
.led-heros .chapo { margin: 24px 0 0; font-size: 19px; line-height: 29px; color: #d6d8de; }
.led-heros__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 34px; }
.led-heros .tel { display: grid; gap: 2px; text-decoration: none; font-size: 14px; color: var(--doux-nuit); }
.led-heros .tel strong { font-size: 17px; font-weight: 600; color: var(--texte-nuit); }
.led-heros .tel:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.led-heros__lieu { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--doux-nuit); }
.led-heros__lieu .diode { width: 9px; height: 9px; background: radial-gradient(circle at 40% 35%, #fff 0 22%, #9fffbf 45%, #1ee65a 78%); box-shadow: 0 0 10px 3px rgba(30, 230, 90, 0.6); }

/* Composant 2 : les produits, chacun dans un module LED allumé. */
.modules__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: var(--espace-7) 0 0; padding: 0; list-style: none; }
.module { margin: 0; }
.module__boitier { position: relative; padding: 14px; background: linear-gradient(160deg, #2b2e35, #16181d 60%, #1d2026); border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 18px 34px -18px rgba(0, 0, 0, 0.9); }
.module__boitier::before, .module__boitier::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9aa0aa, #3a3e46); top: 5px; left: 5px; box-shadow: calc(var(--l, 0px)) 0 0 0 transparent; }
.module__boitier::after { left: auto; right: 5px; }
.module__ecran { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 1; background: #050607; overflow: hidden; }
.module__ecran canvas { width: 100%; height: 100%; display: block; image-rendering: auto; }
.module[data-module="totem"] canvas, .module[data-module="croix"] canvas { position: absolute; top: 0; bottom: 0; left: 50%; translate: -50% 0; height: 100%; width: auto; aspect-ratio: 26 / 64; }
.module[data-module="croix"] canvas { aspect-ratio: 1; }
.module[data-module="defilant"] canvas { width: 100%; height: auto; aspect-ratio: 112 / 16; }
.module figcaption { margin-top: 16px; }
.module h3 { margin: 0; font-family: var(--font-titre); font-weight: 700; font-size: 21px; line-height: 26px; }
.module h3 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s; }
.module h3 a:hover, .module h3 a:focus-visible { background-size: 100% 1px; }
.module h3 a::after { content: " →"; color: var(--doux-nuit); }
.module p { margin: 6px 0 0; font-size: 15.5px; line-height: 23px; color: var(--doux-nuit); }

@media (max-width: 1000px) {
  .led-section { padding: var(--espace-8) max(var(--espace-4), env(safe-area-inset-right, 0px)) var(--espace-8) max(var(--espace-4), env(safe-area-inset-left, 0px)); }
  .led-heros { min-height: 0; display: grid; grid-template-rows: 62vw auto; }
  .led-heros canvas { position: relative; inset: auto; height: 62vw; }
  .led-heros__repli { position: relative; width: 100%; height: 62vw; }
  /* La photo est cadrée comme l'enseigne 3D (même scène, rendue en carré) : contain, et les côtés prennent la couleur
     du mur de la photo. Quand la 3D arrive en fondu, l'enseigne ne change ni de taille ni de place. */
  .led-heros__repli { object-fit: contain; background: #0f1016; }
  /* La photo et l'enseigne 3D occupent la même case : quand la 3D arrive, le texte ne bouge pas. */
  .led-heros__repli, .led-heros canvas { grid-area: 1 / 1; }
  .led-heros__interieur { grid-area: 2 / 1; }
  .led-heros__interieur { min-height: 0; padding: var(--espace-5) max(var(--espace-4), env(safe-area-inset-right, 0px)) var(--espace-8) max(var(--espace-4), env(safe-area-inset-left, 0px)); }
  .led-heros .ariane { margin-bottom: var(--espace-4); }
  .led-heros .chapo { font-size: 17px; line-height: 26px; }
  .modules__liste { grid-template-columns: 1fr; gap: 26px; }
}

/* Composant 3 : choisir le pas de pixel. Un panneau d'exemple en diodes ; deux réglages, comme sur un banc d'essai. */
.pas { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--espace-8); align-items: center; border-top: 1px solid var(--nuit-filet); }
.pas__reglages { display: grid; gap: 26px; margin-top: 30px; }
.pas fieldset { margin: 0; padding: 0; border: 0; }
.pas legend, .pas label.titre { display: block; margin-bottom: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--doux-nuit); }
.pas__choix { display: flex; flex-wrap: wrap; gap: 10px; }
.pas__choix label { position: relative; cursor: pointer; }
.pas__choix input { position: absolute; opacity: 0; }
.pas__choix span { display: inline-grid; place-items: center; min-width: 74px; height: 44px; padding: 0 14px; border: 1px solid var(--nuit-filet); background: var(--nuit-releve); font-weight: 600; font-variant-numeric: tabular-nums; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.pas__choix input:checked + span { border-color: #6b9bff; background: #0c1a3d; box-shadow: 0 0 0 1px #6b9bff, 0 0 18px -4px rgba(107, 155, 255, 0.8); }
.pas__choix input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.pas input[type="range"] { width: 100%; accent-color: #6b9bff; }
.pas__distance { display: flex; justify-content: space-between; font-size: 14px; color: var(--doux-nuit); font-variant-numeric: tabular-nums; }
.pas__distance strong { color: var(--texte-nuit); font-size: 16px; }
.pas__verdict { margin: 0; padding: 14px 16px; border-left: 3px solid #ffae1a; background: var(--nuit-releve); font-size: 15.5px; line-height: 23px; }
.pas__verdict.ok { border-left-color: var(--vert-led); }
.pas__regle { margin: 0; font-size: 14px; line-height: 21px; color: var(--doux-nuit); }
.pas__panneau { position: relative; padding: 16px; background: linear-gradient(160deg, #2b2e35, #16181d 60%, #1d2026); border-radius: 4px; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.95); }
.pas__panneau canvas { display: block; width: 100%; aspect-ratio: 16 / 7; background: #050607; }
.pas__panneau figcaption { margin-top: 12px; font-size: 13px; color: var(--doux-nuit); }

/* Composant 4 : pose et maintenance, sur un bon d'intervention en liasse autocopiante (blanc, rose, jaune). */
.interventions { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--espace-8); align-items: center; border-top: 1px solid var(--nuit-filet); }
.interventions__texte .tel-tech { margin-top: 26px; display: grid; gap: 2px; text-decoration: none; }
.interventions__texte .tel-tech span { font-size: 13px; color: var(--doux-nuit); }
.interventions__texte .tel-tech strong { font-size: 26px; line-height: 32px; font-weight: 600; color: var(--texte-nuit); }
.liasse { position: relative; margin: 0 22px 22px 0; transform: rotate(-1.2deg); }
.liasse::before, .liasse::after { content: ""; position: absolute; inset: 0; border-radius: 2px; }
.liasse::before { background: #ffd9e4; transform: translate(14px, 14px) rotate(1.4deg); }
.liasse::after { background: #fff3b8; transform: translate(7px, 7px) rotate(0.6deg); }
.liasse__feuille { position: relative; z-index: 1; padding: 26px 28px 30px; background: #fdfcf8; color: #1b1c20; border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.liasse__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid #1b2f8f; }
.liasse__tete b { font-family: var(--font-titre); font-size: 20px; color: #1b2f8f; }
.liasse__tete span { font-size: 12.5px; color: #55575d; font-variant-numeric: tabular-nums; }
.liasse__lignes { margin: 0; padding: 0; list-style: none; }
.liasse__lignes li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px dashed rgba(27, 47, 143, 0.35); }
.liasse__case { width: 20px; height: 20px; margin-top: 2px; border: 1.6px solid #1b2f8f; position: relative; }
.liasse__case::after { content: ""; position: absolute; left: 3px; top: -4px; width: 9px; height: 17px; border-right: 3px solid #1b2f8f; border-bottom: 3px solid #1b2f8f; transform: rotate(40deg); opacity: 0; transition: opacity 0.2s; }
.liasse.coche .liasse__case::after { opacity: 1; }
.liasse.coche li:nth-child(2) .liasse__case::after { transition-delay: 0.35s; }
.liasse.coche li:nth-child(3) .liasse__case::after { transition-delay: 0.7s; }
.liasse__lignes h3 { margin: 0; font-family: var(--font-titre); font-size: 18px; line-height: 23px; }
.liasse__lignes p { margin: 4px 0 0; font-size: 15px; line-height: 22px; color: #3a3b40; }
.liasse__pied { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 12.5px; color: #55575d; }
.liasse__pied span { flex: 1; padding-top: 22px; border-bottom: 1px solid #8a8c92; }

/* Composant 5 : les questions, chacune avec sa diode qui s'allume quand elle est ouverte. */
.led-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--espace-8); align-items: start; border-top: 1px solid var(--nuit-filet); }
.led-faq ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--nuit-filet); }
.led-faq li { border-bottom: 1px solid var(--nuit-filet); }
.led-faq summary { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px 4px; cursor: pointer; list-style: none; font-family: var(--font-titre); font-weight: 700; font-size: 19px; line-height: 25px; }
.led-faq summary::-webkit-details-marker { display: none; }
.led-faq summary i { width: 10px; height: 10px; border-radius: 50%; background: #1e2128; box-shadow: inset 0 0 0 1px #3a3e47; transition: background 0.3s, box-shadow 0.3s; }
.led-faq details[open] summary i { background: radial-gradient(circle at 40% 35%, #fff 0 22%, #9fffbf 45%, var(--vert-led) 78%); box-shadow: 0 0 12px 3px rgba(30, 230, 90, 0.6); }
.led-faq .reponse p { margin: 0; padding: 0 4px 22px 34px; max-width: 44em; font-size: 16.5px; line-height: 26px; color: #c9cbd1; }

/* Composant 6 : le bon de devis, sur papier, posé sur le mur de nuit. */
.led-devis { border-top: 1px solid var(--nuit-filet); }
.led-devis.demande { border-top-color: var(--nuit-filet); }
.led-devis .demande__texte p { color: #c9cbd1; }
.led-devis .demande__texte .doux { color: var(--doux-nuit); }

@media (max-width: 1000px) {
  .pas, .interventions, .led-faq { grid-template-columns: 1fr; gap: var(--espace-6); }
  .pas__panneau { padding: 10px; margin: 0 -4px; }
  .liasse { margin-right: 14px; }
  .liasse__feuille { padding: 20px 18px 24px; }
  .led-faq summary { font-size: 17px; line-height: 23px; }
  .led-faq .reponse p { padding-left: 30px; font-size: 16px; }
}
