#layer-home {
  position: relative; /* ou fixed */
  z-index: 1;
  opacity:0;
  transition:opacity 2s ease;
}






body {
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

.container {
  /*outline: 2px solid red;*/
  position: relative;
  z-index: 20;
  width: 35.5208%;
  max-width: none;
  margin: 0 auto 20px;
  padding: 0;
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 8px;
}

.cta-row {
  display: flex;
  flex-direction: column; /* ⇦ empile verticalement */
  align-items: center;    /* ⇦ centre horizontalement */
  gap: 16px;
  margin: 20px 0 6px;
}


.cta-row-secours {
  flex-basis: 100%;        /* prend toute la largeur sous les 2 boutons */
  display: flex;
  justify-content: center; /* centre le <details> */
  margin-top: 6px;
}


.news-date {
  color: var(--accent);
  font-size: clamp(22px, 3.5vw, 28px);
  text-align: center;
  margin: 0;
  font-weight: 700;
}

.header-wrap {
  position: relative;
  z-index: 6;
  /* au-dessus du motif et de la vidéo */
  text-align: center;
  margin-bottom: 8px;
  opacity: 1;
  animation: none;
  animation-delay: 2s;  
  padding-top: 150px; /* à ajuster */
}

.loading-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  letter-spacing: 3px;
}

article {
  max-width: var(--maxw);
  border-radius: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, .0);
  backdrop-filter: blur(0.5px);
  margin: 0 auto;
  
}

h1,
h2,
h3 {
  margin: 0 0 10px 0
}

h1 {
  font-size: clamp(20px, 3vw, 24px);
  text-align: center
}

h2 {
  font-size: clamp(18px, 2.6vw, 22px)
}

h3 {
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 500
}

ul {
  margin: 0 0 10px 20px;
  padding: 0
}

li {
  margin-bottom: 6px
}

.muted {
  color: var(--muted)
}

.strong {
  color: var(--fg-strong);
  font-weight: 700
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 48px 0 12px;
}

.hero-video {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;

    overflow: hidden;
    background: #000;

    z-index: 0;
}


.hero-video video {
    display: block;

    width: 1726px;
    height: 705px;

    max-width: none;
    object-fit: fill;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* =========================================
   LUCARNE - GÉOMÉTRIE COMMUNE
========================================= */

.frame,
.neon-test,
.effet-structure {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.frame {
    z-index: 1000;
}
.neon-test{
    z-index: 1100;
}
.effet-structure {
    z-index: 1050;

}

.video-protect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/*.motif {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background-image: url("../img/motif4.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;

    pointer-events: none;
    z-index: 2;
} */

main {
  position: relative;
  z-index: 2;
}

/* keyframes hero video et motif pellicule*/

@keyframes fadeInVideo {
  from {
    opacity: 0;
    transform: scale(1.02);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInMotif {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Menu page de secours  */

.dropdown-secours {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  min-width: 260px; /* <-- tu peux ajuster ici */
  animation: glowPulse 2.2s infinite ease-in-out;
  border-radius: 16px; /* pour arrondir le glow autour */
  overflow: hidden;     /* <- très important */
}

.dropdown-secours > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  user-select: none;
}

.dropdown-secours[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-secours ul {
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: rgba(5,5,5,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  border-top: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}


.dropdown-secours li {
  margin: 0;
}

.dropdown-secours a {
  display: block;
  padding: 0.4rem 0.8rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  text-align: left;
}

.dropdown-secours a:hover {
  background: rgba(57, 158, 238, 0.25);
}

/* Glow vert pulsant */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 6px rgba(0, 255, 100, 0.4),
                0 0 12px rgba(0, 255, 80, 0.25);
  }
  50% {
    box-shadow: 0 0 12px rgba(0, 255, 120, 0.65),
                0 0 24px rgba(0, 255, 120, 0.45);
  }
  100% {
    box-shadow: 0 0 6px rgba(0, 255, 100, 0.4),
                0 0 12px rgba(0, 255, 80, 0.25);
  }
}


.dns-help {
  text-align: left;
}

.dns-title {
  text-align: center;
}


.dns-toggle summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
}

.dns-toggle summary::-webkit-details-marker {
  display: none;
}

.dns-toggle summary h2 {
  margin: 0;
  display: inline;
  animation: pulseNeon 2.5s infinite;
}

details:not([open]) summary h2 {
  animation: pulseNeon 2.5s infinite;
}

details[open] summary h2 {
  animation: none;
}

@keyframes pulseNeon {
  0% {
    text-shadow: 0 0 5px #00ff00,
                 0 0 10px #00ff00;
  }
  50% {
    text-shadow: 0 0 15px #00ff00,
                 0 0 25px #00ff00;
  }
  100% {
    text-shadow: 0 0 5px #00ff00,
                 0 0 10px #00ff00;
  }
}

.frais-content {
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
}

.frais-content h2 {
  text-align: center;
}

.frais-content ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.frais-content li {
  margin: 8px 0;
}

.frais-content li::before {
  content: "•";
  color: #00ff00;
  margin-right: 8px;
}

/* liens sites */
.home-links {
  text-align: center;
  margin: 5px 0;
}

.home-link {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: #0a0a0a; /* pas noir pur */
  padding: 8px 0px;
  letter-spacing: 2px;
  transition: transform 0.3s ease;

  text-shadow:
    0 0 2px #00ff00,
    0 0 6px #00ff00,
    0 0 12px #00ff00;
}

.home-link:hover {
  animation: homeLinkNeonPulse 1.2s infinite;
  transform: scale(1.05);
}

@keyframes neonPulse {
  0% {
    text-shadow:
      0 0 5px #00ff00,
      0 0 15px #00ff00,
      0 0 30px #00ff00;
    filter: brightness(1);
  }

  50% {
    text-shadow:
      0 0 10px #00ff00,
      0 0 25px #00ff00,
      0 0 60px #00ff00,
      0 0 120px #00ff00;
    filter: brightness(1.3);
  }

  100% {
    text-shadow:
      0 0 5px #00ff00,
      0 0 15px #00ff00,
      0 0 30px #00ff00;
    filter: brightness(1);
  }
}






/* =========================
   Jauge financement
========================= */

.hosting-fund{
  width:700px;
  max-width:90%;

  margin:35px auto;
  padding:22px 28px;

  background:
    linear-gradient(
      135deg,
      rgba(0,20,12,.88),
      rgba(0,0,0,.92)
    );

  border:1px solid rgba(0,255,136,.4);
  border-radius:10px;

  box-shadow:
    inset 0 0 18px rgba(0,255,136,.06),
    0 0 12px rgba(0,255,136,.18);

  font-family:'Orbitron',sans-serif;
  text-align:center;
  color:#c8ffd8;
}

.hosting-title{
  margin-bottom:12px;

  color:#00ff88;
  font-size:1rem;
  letter-spacing:.14em;
  text-transform:uppercase;

  text-shadow:
    0 0 4px #00ff88,
    0 0 10px rgba(0,255,136,.45);
}

.hosting-amount{
  margin-bottom:14px;
  font-size:.9rem;
}

.hosting-amount strong{
  color:#00ff88;
  font-size:1.25rem;
}

.hosting-bar{
  position:relative;

  width:100%;
  height:18px;

  overflow:hidden;

  background:
    repeating-linear-gradient(
      90deg,
      rgba(0,255,136,.04) 0,
      rgba(0,255,136,.04) 14px,
      rgba(0,0,0,.18) 14px,
      rgba(0,0,0,.18) 18px
    );

  border:1px solid rgba(0,255,136,.45);
  border-radius:12px;

  box-shadow:
    inset 0 0 8px rgba(0,0,0,.8);
}

.hosting-progress{
  position:relative;

  height:100%;
  min-width:42px;

  overflow:hidden;

  background:
    linear-gradient(
      90deg,
      #00a85a 0%,
      #00d878 55%,
      #00ff88 100%
    );

  border-radius:12px;

  box-shadow:
    0 0 8px rgba(0,255,136,.75),
    0 0 18px rgba(0,255,136,.35);

  transition:width 1.2s ease;
}

/* Balayage lumineux */
.hosting-progress::after{
  content:"";
  position:absolute;
  top:-40%;
  left:-35%;

  width:24px;
  height:180%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.65),
      transparent
    );

  filter:blur(3px);
  transform:skewX(-20deg);
  animation:hostingScan 2.8s ease-in-out infinite;
}

@keyframes hostingScan{
  0%{
    left:-35%;
    opacity:0;
  }

  20%{
    opacity:.8;
  }

  75%{
    opacity:.8;
  }

  100%{
    left:115%;
    opacity:0;
  }
}

.hosting-progress span{
  position:absolute;
  left:50%;
  top:50%;

  transform:translate(-50%,-50%);

  color:#00170c;
  font-size:.72rem;
  font-weight:bold;
  text-shadow:0 1px 0 rgba(255,255,255,.25);
}

.hosting-remaining{
  margin-top:10px;

  color:rgba(200,255,216,.72);
  font-size:.72rem;
  letter-spacing:.07em;
}

.hosting-donors{
  margin-top:18px;
  padding-top:14px;

  border-top:1px solid rgba(0,255,136,.2);

  font-size:.72rem;
  line-height:2;
}

.donors-label{
  display:block;
  margin-bottom:5px;

  color:rgba(200,255,216,.65);
}

.donor{
  display:inline-block;

  margin:3px 4px;
  padding:4px 9px;

  color:#00ff88;

  border:1px solid rgba(0,255,136,.3);
  border-radius:12px;

  background:rgba(0,255,136,.06);

  box-shadow:
    0 0 5px rgba(0,255,136,.12);
}

@keyframes fundPulse{
  0%,100%{
    opacity:.35;
  }

  50%{
    opacity:1;
  }
}

/* Jauge audio - test de positionnement */
.volume-gauge {
    position: fixed;

    left: 55%;
    bottom: 2.2%;

    transform: translateX(-50%);

    display: flex;
    gap: 0.57vw;

    z-index: 1100;
    pointer-events: auto;
}

.volume-gauge span {
    width: 0.52vw;
    height: 0.94vw;

    background: transparent;
    box-shadow: none;
    border-radius: 1px;
    cursor: pointer;
}

.volume-gauge span.active {
  background: #00ff66 !important;

  box-shadow:
    0 0 3px #00ff66,
    0 0 6px #00ff66,
    0 0 10px rgba(0, 255, 100, .55) !important;
}

.audio-control {
    position: fixed;
    left: calc(55% - 6.5vw);
    bottom: 1.9%;

    transform: translateY(0.1vw);

    width: 1.77vw;
    height: 1.77vw;

    padding: 0;
    border: 0;
    background: transparent;

    z-index: 1100;
    cursor: pointer;
}

.audio-control img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  filter:
    drop-shadow(0 0 2px #00ff66)
    drop-shadow(0 0 5px rgba(0,255,100,.45));

  transition:
    filter .2s ease,
    transform .2s ease;
}

.audio-control:hover img {
  filter:
    drop-shadow(0 0 3px #00ff66)
    drop-shadow(0 0 8px #00ff66)
    drop-shadow(0 0 14px rgba(0,255,100,.65));

  transform: scale(1.08);
}

/* .neon-test {
    background-color: #00ff00;

    -webkit-mask:
        url("../img/neon.png")
        center center / 100% 100%
        no-repeat;

    mask:
        url("../img/neon.png")
        center center / 100% 100%
        no-repeat;

    animation: neonPulse 5s ease-in-out infinite;
}
@keyframes neonPulse {
    0%, 100% {
        opacity: 0.15;
        filter: brightness(0.6);
    }

    50% {
        opacity: 1;
        filter: brightness(1.25);
    }
}  


.effet-structure {
    background: #f6fa03;
    mix-blend-mode: difference;
    filter: none;

    animation: structureBreathing 8s ease-in-out infinite;

    -webkit-mask:
        url("../img/effet-structure.png")
        center / 1920px 926px no-repeat;

    mask:
        url("../img/effet-structure.png")
        center / 1920px 926px no-repeat;
}

@keyframes structureBreathing {
    0%, 100% {
        opacity: 0.20;
    }

    50% {
        opacity: 1;
    }
} */

/* =========================================
   INDICATEURS QUALITÉ VIDÉO
========================================= */

.video-quality {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;

    z-index: 1150;
    pointer-events: none;
}

.quality-logo {
    position: absolute;
    width: 2.7vw;
    height: 2.7vw;
    pointer-events: auto;
}

.quality-hd {
    left: 24%;
    bottom: 0.5%;

}

.quality-hd-mask {
    width: 100%;
    height: 100%;

    background-color: #00ff00;

    -webkit-mask: url("../img/logo-HD.png") center / contain no-repeat;
    mask: url("../img/logo-HD.png") center / contain no-repeat;
}


.quality-fullhd {
    left: 27.2%;
    bottom: 0.5%;
}

.quality-fullhd-mask {
    width: 100%;
    height: 100%;

    background-color: #ff0000;

    -webkit-mask: url("../img/logo-Full-HD.png") center / contain no-repeat;
    mask: url("../img/logo-Full-HD.png") center / contain no-repeat;

    animation: fullHdAlert 2.5s ease-in-out infinite;
}

@keyframes fullHdAlert {
    0%, 100% {
        background-color: #ff0000;
    }

    50% {
        background-color: #ff8c00;
    }
}

.quality-fullhd .quality-tooltip {
    border-color: rgba(255, 100, 0, 0.75);
}

.quality-tooltip {
    position: absolute;
    left: 50%;
    bottom: 58px;

    transform: translateX(-50%) translateY(5px);

    padding: 5px 9px;

    background: rgba(0, 0, 0, 0.88);
    border: 1px solid rgba(0, 255, 0, 0.45);
    border-radius: 4px;

    color: #fff;
    font-size: 11px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    pointer-events: none;
}

.quality-logo:hover .quality-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =========================================
   OUTILS / ACCÈS
========================================= */

.access-tools {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;

    z-index: 1160;
    pointer-events: none;
}

.tool-link {
    position: absolute;
    right: 6.8%;
    width: 2.2vw;
    height: 2.2vw;

    pointer-events: auto;
}

.tool-tor {
    top: 41.5%;
}

.tool-firefox {
    top: 49.5%;
}

.tool-ublock {
    top: 58.5%;
}

.tool-link img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(0 0 2px rgba(8, 243, 63, 0.65))
        drop-shadow(0 0 5px rgba(8, 243, 63, 0.35));

    transition:
        filter 0.3s ease;

}

.tool-link:hover img {
    filter:
        drop-shadow(0 0 3px #08f33f)
        drop-shadow(0 0 8px rgba(8, 243, 63, 0.75));

    transform: scale(0.95);
}

/* =========================================
   TOR - PULSATION RAPIDE AU SURVOL
========================================= */

.tool-tor:hover img {
    animation: torPulse 0.95s ease-in-out infinite;
}

@keyframes torPulse {

    0%, 100% {
        opacity: 1;
        filter:
            drop-shadow(0 0 3px #08f33f)
            drop-shadow(0 0 8px rgba(8, 243, 63, 0.75));
    }

    50% {
        opacity: 0.75;
        filter:
            drop-shadow(0 0 1px #08f33f)
            drop-shadow(0 0 3px rgba(8, 243, 63, 0.35));
    }
}

/* =========================================
   TOR - RETOUR APRÈS SURVOL
========================================= */

.tool-tor img {
    transform-origin: center;
}

.tool-tor.is-leaving img {
    animation: torReturn 0.35s ease-out;
}

@keyframes torReturn {

    0% {
        opacity: 0.75;
        transform: scale(0.95);
    }

    55% {
        opacity: 1;
        transform: scale(1.07);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* =========================================
   FIREFOX ↔ UBLOCK - PULSATION ALTERNÉE
========================================= */

/* Si FIREFOX est survolé */

.access-tools:has(.tool-firefox:hover) .tool-firefox img {
    animation: softwarePulse 1.6s ease-in-out infinite;
}

.access-tools:has(.tool-firefox:hover) .tool-ublock img {
    animation: softwarePulse 1.6s ease-in-out 0.8s infinite;
}


/* Si UBLOCK est survolé */

.access-tools:has(.tool-ublock:hover) .tool-ublock img {
    animation: softwarePulse 1.6s ease-in-out infinite;
}

.access-tools:has(.tool-ublock:hover) .tool-firefox img {
    animation: softwarePulse 1.6s ease-in-out 0.8s infinite;
}


/* =========================================
   PULSATION
========================================= */

@keyframes softwarePulse {

    0%, 100% {
        opacity: 1;

        filter:
            drop-shadow(0 0 3px #08f33f)
            drop-shadow(0 0 8px rgba(8, 243, 63, 0.75));
    }

    50% {
        opacity: 0.55;

        filter:
            drop-shadow(0 0 1px #08f33f)
            drop-shadow(0 0 3px rgba(8, 243, 63, 0.35));
    }
}

/* =========================================
   FIREFOX / UBLOCK - REBOND À LA SORTIE
========================================= */

.tool-firefox img,
.tool-ublock img {
    transform-origin: center;
}

.tool-firefox.is-leaving img,
.tool-ublock.is-leaving img {
    animation: softwareReturn 0.35s ease-out;
}

@keyframes softwareReturn {

    0% {
        opacity: 0.75;
        transform: scale(0.95);
    }

    55% {
        opacity: 1;
        transform: scale(1.07);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/*    MATOMO     */
#matomo-btn {
  position: fixed;
  right: 19.5%;
  bottom: 0%;
  width: 60px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1200;
}

#matomo-btn img {
  display: block;
  width: 100%;
  height: auto;
}

#matomo-btn:hover {
  filter: drop-shadow(0 0 3px #00ff00);
}

/*    affichage pages html / piwigo     */
#affichage-piwigo,
#affichage-html {
  position: fixed;
  top: 13%;
  left: 10.5%;
  width: 79%;
  height: 85%;
  z-index: 900;
  display: none;
  background: #000;
}

#affichage-piwigo.active,
#affichage-html.active {
  display: block;
}

#stats-frame,
#html-frame {
  width: 100%;
  height: 100%;
  border: none;
}


/* =========================================
   UFOMOTION V4 — MENU PIWIGO EN CASCADE
   ========================================= */

#piwigo-menu {
    position: fixed;
    top: 110px;
    left: 12%;

    width: 240px;
    max-height: 75vh;

    overflow: visible;

    box-sizing: border-box;
    font-family: "Orbitron", sans-serif;
    font-size: 12px;
    line-height: 1.5;

    color: #00ff88;
    z-index: 1200;
    pointer-events: auto;
}

/* Chaque colonne du menu */

#piwigo-menu .piwigo-level {
    list-style: none;
    margin: 0;
    padding: 5px 0;

    max-height: none;
    overflow: visible;

    box-sizing: border-box;

    background: rgba(0, 8, 5, 0.88);
    border: 1px solid rgba(0, 255, 120, 0.25);

    box-shadow: 0 0 14px rgba(0, 255, 120, 0.12);
}

/* Respecter l'état fermé du JavaScript */

#piwigo-menu .piwigo-level[hidden] {
    display: none;
}

/* Chaque catégorie */

#piwigo-menu .piwigo-item {
    position: relative;
    margin: 0;
    padding: 0;
}

/* Liens des catégories */

#piwigo-menu .piwigo-link {
    display: block;
    position: relative;

    padding: 9px 22px 9px 12px;

    color: #00ff88;
    text-decoration: none;
    overflow-wrap: anywhere;

    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

/* Catégories possédant des sous-menus */

#piwigo-menu .has-children > .piwigo-link::after {
    content: "▸";
    position: absolute;
    right: 8px;
    top: 9px;
    color: #00ff88;
}

/* Survol et navigation clavier */

#piwigo-menu .piwigo-link:hover,
#piwigo-menu .piwigo-link:focus-visible {
    background: rgba(0, 255, 120, 0.18);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 255, 120, 0.8);
    outline: none;
}

/* Sous-menus : ouverture vers la droite */

#piwigo-menu .piwigo-submenu {
    position: absolute;

    top: 0;
    left: 100%;

    width: 240px;
    min-width: 240px;

    z-index: 10;
}

/* Barre de défilement */

#piwigo-menu .piwigo-level::-webkit-scrollbar {
    width: 5px;
}

#piwigo-menu .piwigo-level::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 120, 0.5);
    border-radius: 4px;
}

#piwigo-menu .piwigo-level::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

/*    OUTILS / ACCÈS - INFOBULLES    */
.tool-tooltip {
    position: absolute;

    top: 50%;
    right: calc(100% + 12px);
    left: auto;

    transform: translateY(-50%);

    font-family: "Orbitron", sans-serif;
    font-size: 0.60vw;
    white-space: nowrap;

    color: #08f33f;

    background: rgba(0, 0, 0, 0.75);
    padding: 0.25vw 0.45vw;
    border: none;

    text-shadow:
        0 0 3px rgba(8, 243, 63, 0.8),
        0 0 6px rgba(8, 243, 63, 0.4);

opacity: 0;
    visibility: hidden;

    clip-path: inset(0 0 0 100%);

    transition:
        opacity 0.15s ease,
        clip-path 0.35s ease,
        visibility 0.35s;
}

.tool-link:hover .tool-tooltip {
    opacity: 1;
    visibility: visible;

    clip-path: inset(0 0 0 0);
}


/* AFFICHAGE AU SURVOL */

.tool-link:hover .quality-tooltip {
    opacity: 1;
    visibility: visible;
}



/* =========================================
   HUD LIGHT 
========================================= */

.hud-light {
    position: fixed;
    top: 12%;
    right: 8.5%;
    bottom: 11.5%;
    left: 8.5%;

    z-index: 1;
    pointer-events: none;

    background-color: #00ff00;

    -webkit-mask: url("../img/mire.png") center / 1920px 926px no-repeat;
    mask: url("../img/mire.png") center / 1920px 926px no-repeat;

    opacity: 1 !important;
    animation: none !important;

    filter: blur(1px);
}

@keyframes hudBoot {
    0% {
        opacity: 0;
        filter: brightness(0.4);
    }

    60% {
        opacity: 0.8;
        filter: brightness(1.3);
    }

    100% {
        opacity: 0.7;
        filter: brightness(1);
    }
}

/* =========================================
   UFOmotion V3 — VOLET FUMÉ
   ========================================= */

.cockpit-volet {
    position: fixed;

    top: 0;
    left: 50.3%;

    width: 38.8%;
    height: 100%;

    background: rgba(8, 12, 15, 0.55);

    border-left: 1px solid rgba(120, 255, 180, 0.55);
    border-right: 1px solid rgba(120, 255, 180, 0.55);

    box-shadow:
        inset 8px 0 14px -10px rgba(0, 255, 120, 0.35),
        inset -8px 0 14px -10px rgba(0, 255, 120, 0.35),
        -3px 0 12px -5px rgba(0, 255, 120, 0.25),
        3px 0 12px -5px rgba(0, 255, 120, 0.25);

    transform: translate(-50%, 105%);

    transition: transform 0.6s cubic-bezier(0.22, 0.75, 0.25, 1);

    pointer-events: none;
    z-index: 5;
}

/* Position finale du volet */
.cockpit-volet.volet-actif {
    transform: translate(-50%, 0);
}


/* =========================================
   Matomo
========================================= */

#matomo-panel {
    width: 90%;
    max-width: 1100px;
    margin: 15px auto;
    overflow: hidden;
}

#matomo-frame {
    display: block;
    width: 100%;
    height: 55vh;
    max-height: 500px;
    border: 0;
}




.human-led-test {
    font-family: "LED BOARD REVERSED", monospace;
    font-size: 6rem;
    white-space: pre;
    color: #183025;
    text-align: center;
    line-height: 1;
}

/* =========================================
   UFOmotion V3 — PRESS ENTER COCKPIT
   ========================================= */

#cockpit-access {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 100;
    pointer-events: none;
}

/* Bouton central */
#cockpit-enter {
    font-family: "LEDBDREV", "Orbitron", sans-serif;
    font-size: clamp(18px, 2vw, 30px);
    color: #55c878;

    background: transparent;
    border: none;
    padding: 15px 25px;

    cursor: pointer;
    pointer-events: auto;

    text-shadow: none;
}

/* Curseur clignotant */
#cockpit-enter::after {
    content: "▌";
    margin-left: 6px;
    animation: cockpitCursor 0.5s steps(1) infinite;
}

@keyframes cockpitCursor {
    50% {
        opacity: 0;
    }
}

/* AFFICHAGE MAJ */

.cockpit-update {
    position: fixed;
    top: auto;
    bottom: 14.5%;
    right: 15.5%;
    left: auto;

    display: flex;
    align-items: center;
    gap: 9px;

    color: #d5fa05;
    font-family: "Orbitron", sans-serif;
    font-size: 12px;
    letter-spacing: 1px;

    z-index: 20000;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.update-orb {
    width: 7px;
    height: 7px;
    flex-shrink: 0;

    border-radius: 50%;
    background: #d5fa05;

    box-shadow:
        0 0 3px 2px rgba(213, 250, 5, 0.65),
        0 0 9px 3px rgba(213, 250, 5, 0.25);

    -webkit-text-stroke: 0.5px #000;

    text-shadow:
        1px 1px 0 #000,
       -1px -1px 0 #000,
        1px -1px 0 #000,
       -1px 1px 0 #000;
}

/* PULSATION SOMBRE DU TEXTE MAJ */

.cockpit-update span:last-child {
    background: transparent;
    padding: 0;
    animation: none;

    text-shadow:
        0 0 3px #000,
        0 0 6px #000,
        0 0 10px #000;
}

@keyframes updateShadowPulse {
    0%, 100% {
        text-shadow:
            0 0 2px #000,
            0 0 4px #000;
    }

    50% {
        text-shadow:
            0 0 4px #000,
            0 0 9px #000,
            0 0 14px #000;
    }
}



.console-construction {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "LEDBDREV", sans-serif;
    font-weight: normal;
    font-size: 22px;
    letter-spacing: 3px;

    color: #ff9c00;
    text-shadow:
        0 0 5px rgba(255, 156, 0, 0.8),
        0 0 15px rgba(255, 110, 0, 0.35);

    white-space: nowrap;
    pointer-events: none;
    z-index: 1200;
}

.construction-cursor {
    margin-left: 4px;
    animation: constructionBlink 0.8s steps(1) infinite;
}

@keyframes constructionBlink {
    50% { opacity: 0; }
}


.construction-cursor {
    margin-left: 5px;
    animation: constructionBlink 0.8s steps(1) infinite;
}

@keyframes constructionBlink {
    50% {
        opacity: 0;
    }
}


/* test temporaire */

#matomo-frame {
    width: 300px !important;
    height: 200px !important;
    outline: 5px solid red !important;
}