    @font-face {
        font-family: Minecraft;
        src: url(fonts/Minecraft.ttf) format('truetype');
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        min-height: 100%;
        height: 100%;
    }

    body {
        display: flex;
        flex-direction: column;
        background-image: url('image/background_accueil.png');
        background-size: cover;
        background-position: center;
        min-height: 100vh;
        overflow-x: hidden;
        font-family: 'Minecraft', Arial, sans-serif;
        color: #ffffff;
        background-repeat: no-repeat;

    }

    a {
        color: inherit;
    }

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

header {
    position: relative;            /* 👈 important */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    text-align: center;

    background-image: url('image/background_header.png');
    background-repeat: repeat;
    background-size: 16px 16px;
    background-position: top left;
    image-rendering: pixelated;

    padding: 32px 16px;
    font-size: 2rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}




    header h1 {
        margin: 0;
        line-height: 1;
    }

    header a {
        position: absolute;
        left: 24px;
        top: 50%;
        transform: translateY(-50%);
    }


    header img {
        height: auto;
        width: 100px;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    header img:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px #ffffff);
    }

    nav {
        background-color: rgba(43, 43, 50, 0.92);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    }

    ul {
        color: white;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
        list-style-type: none;
        margin: 0 auto;
        padding: 6px 16px;
        font-family: 'Minecraft';
    }

    ul li a {
        color: aliceblue;
        text-decoration: none;
        font-size: 1.4rem;
        border-radius: 6px;
        padding: 4px 8px;
        transition: transform 0.3s ease, filter 0.3s ease;
        display: inline-block;
    }

    ul li a:hover {
        transform: scale(1.06);
        filter: brightness(1.2);
    }

    main {
        width: min(1100px, 100%);
        margin: 0 auto;
        padding: 32px 16px 64px;
        display: flex;
        flex-direction: column;
        gap: 48px;
        flex: 1;
    }

    .container {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 100px;
    }

    .container.inverse {
        flex-direction: row-reverse;
    }

    .centre {
        flex: 1 1 360px;
        padding: 24px;
        background-color: rgba(24, 23, 23, 0.45);
        color: white;
        border-radius: 20px;
        font-size: 1.1rem;
        text-align:justify;
        line-height: 1.5;
        max-height: fit-content;
    }

    .centre_commandes {
        flex: 1 1 360px;
        margin: 10vb;
        padding: 3%;
        background-color: rgba(24, 23, 23, 0.45);
        color: white;
        border-radius: 20px;
        font-size: 1.1rem;
        text-align: justify;
        line-height: 1.5;
        max-height: fit-content;
    }


    .lateral_droit {
        flex: 1 1 320px;
        display: flex;
        justify-content: center;
    }

    .lateral_droit img {
        width: min(500px, 100%);
        border-radius: 20px;
        transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
    }

    section img:hover {
        transform: scale(1.06);
        filter: brightness(1.2);
        box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.35);
    }

    .wizard {
        width: min(700px, 100%);
        background-color: rgba(24, 23, 23, 0.45);
        padding: 35px;
        border-radius: 20px;
        color: white;
        font-family: 'Minecraft';
        text-align: center;
        margin: 60px auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }

    .step {
        display: none;
    }

    .step.active {
        display: block;
    }

    .controls {
        margin-top: 28px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 20px;
    }

    .controls button {
        flex: 1 1 180px;
        padding: 12px 24px;
        border: none;
        border-radius: 10px;
        background-color: rgb(43, 43, 50);
        color: white;
        cursor: pointer;
        font-family: 'Minecraft';
        font-size: 1.1rem;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .controls button:hover {
        transform: scale(1.05);
        filter: brightness(1.15);
    }

    .centre_mumble {
        padding: 30px;
        background-color: rgba(24, 23, 23, 0.45);
        color: white;
        border-radius: 20px;
        font-size: 1.1rem;
        text-align: justify;
        margin: 48px auto 0;
        width: min(900px, calc(100% - 32px));
        line-height: 1.5;
    }

    @media screen and (max-width: 1024px) {
        header {
            font-size: 1.8rem;
            flex-wrap: wrap;
        }

        .container {
            gap: 24px;
        }

        .centre {
            font-size: 1rem;
        }

        .wizard {
            margin: 48px auto;
        }
    }

    @media screen and (max-width: 768px) {
        header {
            flex-direction: column;
            font-size: 1.6rem;
            gap: 16px;
            padding: 28px 12px;
        }

        header img {
            height: 64px;
        }

        nav {
            position: sticky;
            top: 0;
            z-index: 5;
        }

        ul {
            flex-direction: column;
            gap: 12px;
        }

        ul li a {
            font-size: 1.2rem;
        }

        main {
            padding: 24px 16px 48px;
            gap: 32px;
        }

        .container,
        .container.inverse {
            flex-direction: column;
            text-align: center;
        }

        .container.inverse .centre {
            order: 0;
        }

        .container.inverse .lateral_droit {
            order: 1;
        }

        .centre {
            width: 100%;
        }

        .centre_mumble {
            margin-top: 32px;
            padding: 24px;
        }

        .wizard {
            padding: 28px 20px;
        }
    }

    @media screen and (max-width: 520px) {
        body {
            font-size: 14px;
        }

        header {
            font-size: 1.4rem;
            padding: 24px 10px;
        }

        ul {
            padding: 12px;
        }

        ul li a {
            font-size: 1.05rem;
        }

        .centre,
        .centre_mumble {
            font-size: 0.95rem;
            padding: 20px;
        }

        .wizard {
            padding: 24px 18px;
            margin: 32px auto;
        }

        .controls {
            gap: 12px;
        }

        .controls button {
            flex: 1 1 100%;
            font-size: 1rem;
            padding: 10px 16px;
        }
    }

    .kpi-box {
  background-color: rgba(43, 43, 50, 0.85);
  border-radius: 15px;
  padding: 16px 24px;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.35);
}

.kpi-label {
  color: #b5b5b5;
  font-size: 1rem;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffffff;
}

.refreshBtn {
    font-family: 'Minecraft';
    padding: 10px 20px;
    background-color: rgba(43,43,50,0.9);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.refreshBtn:hover {
    background-color: rgba(70,70,80,0.9);
}

body.status-page .status-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.status-page #statusText {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #ccc;
}

body.status-page .status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

body.status-page .status-kpi-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

body.status-page .status-kpi-grid .kpi-box {
    flex: 1 1 0;
    min-width: 180px;
    background-color: rgba(43,43,50,0.8);
    padding: 20px;
    border-radius: 12px;
}

body.status-page .status-refresh {
    margin-top: 24px;
    text-align: center;
}



/* ===== FOOTER ===== */
.site-footer {
  margin-top: auto;
  padding: 10px;
  background-color: rgba(43, 43, 50, 0.92);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.35);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 0.95rem;
  color: #d5d5d5;
  flex-wrap: nowrap;
}

.footer-bottom-left,
.footer-bottom-right {
  white-space: nowrap;
}


@media (max-width: 520px) {
  .footer-bottom {
    flex-wrap: wrap;
  }
}

/* Taille du bouton Sign in */
nav ul .nav-login img {
  height: 69px;   /* ⬅️ ajuste ici */
  width: auto;
  margin-left: auto; 
}


nav ul {
  display: flex;
  align-items: center; /* 👈 centre verticalement TOUS les items */
}


/* Lien actif dans la navbar */
nav ul li.active a {
  text-decoration: underline;
  text-underline-offset: 6px;   /* espace sous le texte */
  text-decoration-thickness: 2px;
  filter: brightness(1.2);
}


body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background:
    linear-gradient(
      to bottom,
      rgba(11, 11, 15, 0) 0%,
      rgba(11, 11, 15, 0) 75%,
      rgba(11, 11, 15, 0.85) 95%,
      #0b0b0f 100%
    ),
    url("image/background_accueil.png");

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}



/* tête minecraft */
.mc-head {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  image-rendering: pixelated;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.profile-trigger:hover .mc-head {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* dropdown hover */
.profile {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-menu {
  position: absolute;
  left: -50%;
  transform: translateX(+50%) translateY(-6px);
  top: calc(100% + 10px);
  min-width: 180px;

  background: rgba(43, 43, 50, 0.95);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  border-radius: 10px;
  padding: 10px;

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.profile:hover .profile-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-name {
  font-size: 0.95rem;
  color: #d5d5d5;
  margin-bottom: 8px;
  text-align: center;
  white-space: nowrap;
}

.profile-logout {
  display: block;
  text-align: center;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  background: rgba(70, 70, 80, 0.6);
}

.profile-logout:hover {
  filter: brightness(1.15);
}


.profile::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: 220px;     /* largeur du pont */
  height: 14px;     /* hauteur du pont */
}
.btn-login{
  display:inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  background: rgba(43,43,50,0.9);
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-login:hover{
  transform: scale(1.05);
  filter: brightness(1.15);
}
.flash-error{
  width: min(700px, 100%);
  margin: 20px auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(120, 30, 30, 0.75);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  text-align: center;
}
