/* =========================================================
   PANNEAUX DFCI CONNECTÉS — système graphique unique
   Nuit verte, lueur néon, boutons en pilule, cartes en verre fumé.
   Rouge / jaune / vert ne servent qu'à l'afficheur LED et aux 3 niveaux.
   ========================================================= */

:root {
  --bg: #040705;
  --bg-2: #080D0A;
  --bg-3: #0C130F;
  --card: rgba(255,255,255,.025);
  --card-2: rgba(255,255,255,.045);
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #E8F3EC;
  --muted: rgba(232,243,236,.58);
  --dim: rgba(232,243,236,.38);

  --g: #5CFF95;                     /* vert néon, couleur d'accent unique */
  --g-soft: rgba(92,255,149,.12);
  --g-glow: rgba(92,255,149,.38);

  --led-g: #3DFF7A;
  --led-y: #FFD21F;
  --led-r: #FF4A2E;

  --yz: #F5C518;                    /* Yuzu Digital, toujours en transparence */
  --yz-bg: rgba(245,197,24,.07);
  --yz-line: rgba(245,197,24,.22);
  --yz-text: #F2DA85;

  --f-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --f-pixel: 'Silkscreen', 'JetBrains Mono', monospace;

  /* alias conservés pour compatibilité */
  --night: var(--bg); --night-2: var(--bg-2); --sand: var(--text); --paper: var(--bg-2); --ink: var(--bg);
  --f-serif: var(--f-display); --f-poster: var(--f-display);

  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; color: #F1FBF4; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { color: #F1FBF4; font-weight: 600; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--g); color: var(--bg); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Typo commune ---------- */
.glow { color: #EFFBF2; text-shadow: 0 0 18px rgba(92,255,149,.35), 0 0 60px rgba(92,255,149,.18); }
.glow em, h1 em, h2 em { font-style: normal; color: var(--g); text-shadow: 0 0 22px var(--g-glow); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03);
  font-size: 13px; color: var(--muted); backdrop-filter: blur(6px);
}
.pill i { width: 18px; height: 18px; border-radius: 5px; background: var(--g-soft); border: 1px solid rgba(92,255,149,.35); position: relative; }
.pill i::after { content: ""; position: absolute; inset: 5px; border-radius: 2px; background: var(--g); box-shadow: 0 0 8px var(--g); }
.pill b { color: var(--text); font-weight: 500; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--g) !important; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g); box-shadow: 0 0 10px var(--g); }
.chips { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(92,255,149,.5); background: radial-gradient(circle, var(--g) 0 2px, transparent 3px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; font-family: var(--f-body);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-dark, .ps-btn {
  background: #F4FBF6; color: #08110B; padding: 6px 6px 6px 20px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 8px 30px -10px rgba(92,255,149,.45);
}
.btn-primary::after, .btn-dark::after, .ps-btn::after {
  content: "→"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px;
  background: var(--g); color: #04210F; font-weight: 700; box-shadow: 0 0 14px var(--g-glow);
}
.btn-primary:hover, .btn-dark:hover, .ps-btn:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 10px 40px -8px rgba(92,255,149,.7); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(92,255,149,.5); box-shadow: 0 0 20px -6px var(--g-glow); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Fonds communs ---------- */
.beam { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.beam::before { /* faisceau lumineux vertical */
  content: ""; position: absolute; left: 50%; top: -10%; width: min(900px, 90vw); height: 120%; transform: translateX(-50%);
  background: radial-gradient(ellipse 30% 55% at 50% 0%, rgba(92,255,149,.22), transparent 70%),
              radial-gradient(ellipse 60% 40% at 50% 10%, rgba(92,255,149,.07), transparent 70%);
}
.beam::after { /* sol quadrillé en perspective */
  content: ""; position: absolute; left: -20%; right: -20%; bottom: -10%; height: 70%;
  background-image: linear-gradient(rgba(92,255,149,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(92,255,149,.09) 1px, transparent 1px);
  background-size: 70px 70px;
  transform: perspective(600px) rotateX(62deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%); mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%);
}
.sec { padding: 110px 0; position: relative; }
.sec--line { border-top: 1px solid var(--line); }
.sec-head { max-width: 760px; margin: 0 auto 52px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 48px); }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(8px); }

/* ---------- En-tête de page commun ---------- */
.phero { position: relative; padding: 110px 0 90px; text-align: center; overflow: hidden; }
.phero__in { position: relative; display: grid; justify-items: center; gap: 22px; }
.phero h1 { font-size: clamp(40px, 5.6vw, 76px); max-width: 16ch; }
.phero__lead { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0; }

/* ---------- Bandeau Yuzu (jaune en transparence) ---------- */
.yzbar { background: var(--yz-bg); border-bottom: 1px solid var(--yz-line); color: var(--yz-text); font-size: 13px; }
.yzbar__in { display: flex; justify-content: center; gap: 8px; align-items: center; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; text-align: center; }
.yzbar a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: var(--yz-text); border-bottom: 1px solid var(--yz-line); }
.yzbar a:hover { color: var(--yz); border-color: var(--yz); }
@media (max-width: 560px) { .yzbar__in > span:first-child { display: none; } }
.yzchip { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; flex: none; }
.yzchip img { height: 28px !important; width: auto; }
.yzchip--s { width: 20px; height: 20px; }
.yzchip--s img { height: 13px !important; }

/* ---------- En-tête ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(4,7,5,.72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__dots { display: grid; grid-template-columns: repeat(3, 8px); gap: 3px; padding: 6px; background: rgba(92,255,149,.06); border-radius: 8px; border: 1px solid rgba(92,255,149,.35); box-shadow: 0 0 16px -4px var(--g-glow); }
.brand__dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.brand__dots i:nth-child(1) { background: var(--led-g); box-shadow: 0 0 6px var(--led-g); }
.brand__dots i:nth-child(2) { background: var(--led-y); box-shadow: 0 0 6px var(--led-y); }
.brand__dots i:nth-child(3) { background: var(--led-r); box-shadow: 0 0 6px var(--led-r); }
.brand__txt { font-family: var(--f-display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1; display: flex; flex-direction: column; }
.brand__txt b { font-weight: 800; }
.brand__txt small { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); margin-top: 5px; font-weight: 400; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 13px; border-radius: 10px; color: var(--muted); transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line); }
.nav .nav__cta, .mnav .nav__cta { background: #F4FBF6; color: #08110B; border-radius: 999px; margin-left: 10px; padding: 8px 16px; font-weight: 600; }
.nav .nav__cta:hover, .nav .nav__cta.active { background: #fff; color: #08110B; box-shadow: 0 0 24px -6px var(--g-glow); }

.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 12px; border: 1px solid var(--line-2); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.mnav__panel { position: absolute; right: 0; top: 54px; width: min(82vw, 320px); background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; box-shadow: 0 30px 60px -20px #000; }
.mnav__panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text); }
.mnav__panel a:hover { background: rgba(255,255,255,.05); }
.mnav__panel .nav__cta { margin: 6px 0 0; text-align: center; }
@media (max-width: 980px) { .nav { display: none; } .mnav { display: block; } }

/* ---------- Pied de page ---------- */
.ftr { background: var(--bg); border-top: 1px solid var(--line); padding: 72px 0 28px; color: var(--muted); font-size: 14.5px; }
.ftr__grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr 1.4fr; gap: 40px; }
.ftr h4 { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--text); }
.ftr__brand p { margin-top: 18px; max-width: 34ch; }
.ftr__yuzu { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r); background: var(--yz-bg); border: 1px solid var(--yz-line); color: var(--yz-text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.ftr__yuzu:hover { border-color: rgba(245,197,24,.45); box-shadow: 0 0 40px -12px rgba(245,197,24,.35); color: var(--yz-text) !important; }
.ftr__yuzu-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.ftr__yuzu-logo { display: flex; align-items: center; gap: 12px; }
.ftr__yuzu-logo > span:last-child { font-family: var(--f-display); font-weight: 800; font-size: 24px; line-height: .9; letter-spacing: .02em; display: flex; flex-direction: column; color: #FBEFC4; }
.ftr__yuzu-logo small { font-size: 10.5px; letter-spacing: .38em; font-weight: 600; margin-top: 5px; color: var(--yz-text); }
.ftr__yuzu-t { font-size: 14px; line-height: 1.55; color: rgba(242,218,133,.8); }
.ftr__yuzu-l { font-weight: 600; border-bottom: 1px solid var(--yz-line); align-self: flex-start; color: var(--yz); }
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
@media (max-width: 980px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; } }

/* =========================================================
   AFFICHEUR LED P10 (CSS pur)
   ========================================================= */
.led {
  --dot: 7px;
  position: relative; overflow: hidden;
  height: calc(var(--dot) * 16);           /* 16 lignes de LED, comme un module P10 */
  background-color: #050605;
  background-image: radial-gradient(circle at center, #1a1d1b 0 1.6px, transparent 2.1px);
  background-size: var(--dot) var(--dot);
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px #0a0b0a, inset 0 0 30px #000;
  container-type: size;
}
.led--compact { --dot: 5px; }
.led__line {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-pixel); font-weight: 400; white-space: pre;
  /* Silkscreen : hauteur des capitales = 0,63 em -> lettres sur 14 des 16 lignes */
  font-size: 139cqh; line-height: 1; letter-spacing: .04em;
  -webkit-mask-image: radial-gradient(circle at center, #000 0 calc(var(--dot) * .3), transparent calc(var(--dot) * .38));
  -webkit-mask-size: var(--dot) var(--dot);
  mask-image: radial-gradient(circle at center, #000 0 calc(var(--dot) * .3), transparent calc(var(--dot) * .38));
  mask-size: var(--dot) var(--dot);
}
.led--compact .led__line { -webkit-mask-image: radial-gradient(circle at center, #000 0 1.6px, transparent 2px); mask-image: radial-gradient(circle at center, #000 0 1.6px, transparent 2px); }
.led__line span { display: inline-block; }
/* Centrage vertical des capitales Silkscreen : 0,315 em - (ascent 1,03 - descent 0,25) / 2 */
.led__line span { position: relative; top: var(--led-shift, -.075em); }
/* Texte fixe : pleine hauteur si la largeur le permet, sinon réduit pour tenir */
.led__line--fixed { font-size: min(139cqh, calc(94cqw / (var(--chars) * .71))); }
.led__line--vert  { color: var(--led-g); text-shadow: 0 0 6px var(--led-g); }
.led__line--jaune { color: var(--led-y); text-shadow: 0 0 6px var(--led-y); }
.led__line--rouge { color: var(--led-r); text-shadow: 0 0 6px var(--led-r); }
.led::after { /* halo diffus */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.05), transparent 70%);
}

/* Texte défilant */
.led__line--scroll { justify-content: flex-start; }
.led__line--scroll span { padding-left: 100%; animation: led-scroll var(--dur, 20s) linear infinite; }
@keyframes led-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Cycle des trois états : chaque ligne défile pendant un tiers du temps */
.led__line--c1, .led__line--c2, .led__line--c3 { justify-content: flex-start; opacity: 0; animation: led-cycle 18s steps(1) infinite; }
.led__line--c1 span, .led__line--c2 span, .led__line--c3 span { padding-left: 100%; animation: led-scroll-cycle 18s linear infinite; }
.led__line--c2, .led__line--c2 span { animation-delay: -12s; }
.led__line--c3, .led__line--c3 span { animation-delay: -6s; }
@keyframes led-cycle { 0% { opacity: 1; } 33.333% { opacity: 0; } 100% { opacity: 0; } }
@keyframes led-scroll-cycle { 0% { transform: translateX(0); } 33.333% { transform: translateX(-100%); } 100% { transform: translateX(-100%); } }

/* Superposition sur la photo du panneau réel */
.led--overlay { position: absolute; border-radius: 2px; height: auto; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .led__line--scroll span, .led__line--c1 span, .led__line--c2 span, .led__line--c3 span { animation: none; padding-left: 0; }
  .led__line--c1, .led__line--c2, .led__line--c3 { justify-content: center; }
}

/* Habillage des afficheurs dans le nouveau thème */
.led { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 0 30px #000, 0 0 0 1px rgba(92,255,149,.12); }
.led--overlay { box-shadow: none; }

/* ---------- 404 / erreur ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; position: relative; }
.nf .wrap { display: grid; gap: 22px; justify-items: center; max-width: 640px; position: relative; }
.nf .led { width: min(520px, 90vw); }
.nf h1 { font-size: clamp(34px, 5vw, 56px); }
.nf p { color: var(--muted); }

/* H1 = pastille mot-clé + titre (référencement) */
.h1k { display: grid; justify-items: center; gap: 24px; }
.h1k .pill { font-family: var(--f-body); font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.4; text-shadow: none; color: var(--muted); }
.h1k .pill b { color: var(--text); font-weight: 500; }
.h1k__t { display: block; }
.ct__side .h1k { justify-items: start; }
