:root {
      --bg: #1a1e22;
      --fg: rgb(163, 174, 190);
      --accent: #e44f53;
      --blue: #e44f53;
      --violet: #6A2549;
      --nav-height: 70px;
      --input-bg: #1a1e22;
      --input-border: #333;
    }

    * {
      box-sizing: border-box;
    }

    html, body {
      height: 100%;
      
      margin:0;
    }

    body {
  display: flex;
  flex-direction: column;
}

a, img, button, div {
    -webkit-tap-highlight-color: transparent;
}



    /* Visible par défaut (PC) */
.desktop-only {
  display: block;
}

/* Mobile + tablette */
@media (max-width: 1200px) {
  .desktop-only {
    display: none;
  }
}


    /* invisible par défaut (PC) */
.mobile-only {
  display: none;
}

/* Mobile + tablette */
@media (max-width: 1200px) {
  .mobile-only {
    display: block;
  }
}

    

    .plus-jakarta-sans {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

    body {
      margin: 0px;
      font-family: "Plus Jakarta Sans", sans-serif;
      background-color: var(--bg);
      color: var(--fg);
      display: flex;
      flex-direction: column;
      align-items: center;
      
    }

    header {
  backdrop-filter: blur(10px);
  background: rgba(26, 30, 34, 0.9);
  height: var(--nav-height);
  padding-top:10px;
  padding-bottom:10px;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  
}


      .logo-img {
        width: 35px;
        height: 35px;
        border-radius: 5px;
        border:1px solid #333;
        margin-right: 10px;
      }

      .logo-img-back {
        width: 35px;
        height: 35px;
        border-radius: 5px;
        margin-right: 10px;
      }

  .header-actions {
  display: inline-flex;
  gap: 8px;
}

.btn-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: #2c2c2c;
  border-radius: 12px;
  transition: all 0.2s ease;
  border: 1px solid var(--accent);
  cursor: pointer;
}

.btn-header:hover {
  background: #3a3a3a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(228, 79, 83, 0.2);
}

.btn-header:active {
  transform: translateY(0);
}

.btn-header.logout {
  background: var(--accent);
}

.btn-header.logout:hover {
  background: #c14044;
}

.btn-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.btn-header svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

  h1, h4 {
    color:#fff;
  }

    h2 {
      margin:0;
      color:var(--blue);
      text-align: center;
    }

    main.index{
      max-width: 90%;
      margin-top:50px;
    }

    

    body > main,
    .mobile-nav {
      width: 92%;
      max-width: 600px;
      flex:1;
      justify-content: flex-start;
      margin-top: 60px;
    }

    .logo {
      font-size: 1.5rem;
      font-weight: bold;
      color: var(--accent);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .retour{
      margin-right: 10px;
      align-items: center;
    }

 

    .burger {
      display: none;
    }

    nav {
      display: inline-flex;
      gap: 1.5rem;
      align-items: center;
    }

a {
  position: relative;
  transition: color 0.3s ease;
  color: var(--fg);
  text-decoration: underline;
}

header a{
  text-decoration:none;
  
}
  
header a:hover {
  color: var(--accent);
}

a::after {

}

a:hover::after {
  transform: scaleX(1);
}

/* Spécifique aux liens dans <main> */
main a::after {
  background-color: white;     /* Barre blanche visible par défaut */
  transform: scaleX(1);        /* Barre affichée */
  transform-origin: left;
}

main a:hover::after {
  background-color: var(--accent); /* Devient rouge au hover */
  transform: scaleX(1);            /* Pas de changement, toujours visible */
  /* Ajoutons une petite astuce d'animation :
     on fait disparaître puis réapparaître en rouge pour simuler le balayage */
  animation: underline-sweep 0.3s forwards;
}

/* Animation personnalisée : barre blanche → rouge animée */
@keyframes underline-sweep {
  0% {
    transform: scaleX(1);
    background-color: white;
  }
  50% {
    transform: scaleX(0);
    background-color: var(--accent);
  }
  100% {
    transform: scaleX(1);
    background-color: var(--accent);
  }
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
}






    .mobile-nav {
      display: none;
      flex-direction: column;
      background: #1e1e1e;
      position: fixed;
      top: var(--nav-height);
      left: 0;
      width: 100%;
      padding: 1rem;
      z-index: 1000; /* << Ajouté */
    }
    .mobile-nav a {
      padding: 0.5rem 0;
      color: var(--fg);
      text-decoration: none;
      border-bottom: 1px solid #333;
    }







.bottom-nav {
  display: none;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  width: 95%;
  background:rgba(24, 24, 24, 0.63);
  backdrop-filter: blur(5px);
  margin:15px 15px 15px 15px;
  border-radius: 25px;
  padding: 0.8rem 0 0.8rem 0;
  z-index: 1000;
  border:1px solid #333;
}


.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-decoration: none;
}
.bottom-nav img {
  
  width: 27px;
  height: 27px;
  vertical-align: middle;
  display: block;
}




/* Enlève tout soulignement */
.bottom-nav a:visited,
.bottom-nav a:hover,
.bottom-nav a:active {
  text-decoration: none;
}

/* Désactive le soulignement animé sur les liens contenant uniquement des images (comme le menu du bas) */
.bottom-nav a::after,
.bottom-nav a:hover::after,
.bottom-nav a:visited::after {
  content: none !important;
}

/* Seulement sur les petits écrans */
@media screen and (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }

  .burger {
    display: flex;
  }


}


    form, section {
      
    }

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 500;
}

input[type="name"],
input[type="date"],
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
  padding: 16px;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--fg);
  width: 100%;
  transition: all 0.2s ease;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(228, 79, 83, 0.2);
}

input.valid {
  border-color: #4CAF50;
}

input.invalid {
  border-color: #f44336;
}



    label {
      font-size: 0.9rem;
    }

    .checkbox-container {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .checkbox-container input[type="checkbox"] {
      accent-color: var(--accent);
    }

    button {
  padding: 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

button:hover {
  background-color: #c14044;
  transform: translateY(-1px);
  
}

button:active {
  transform: translateY(0);
}

button.index {
  margin: 0 auto;
  display: block;
  width: auto;
  padding: 12px 24px;
}

button.ok {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8rem;
  padding: 0.4rem;
  background-color: #505a66;
  border-radius: 8px;
}


  .btn-flex {
  padding: 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  font-size: 16px;
}

.btn-flex:hover {
  background-color: #c14044;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(228, 79, 83, 0.3);
}

.btn-flex .btn-text {
  flex: 1;
  text-align: left;
}

.btn-flex img {
  width: 24px;
  height: 24px;
  margin-left: 10px;
}

.btn-round {
  max-width: 300px;
  border-radius: 30px;
  border: none;
}

    form.adjust-fdc {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form.adjust-fdc .button-row {
    display: flex;
    gap: 10px;
}

    div.oui {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

div.oui .button-row {
    display: flex;
    gap: 10px;
}

    table {
      width: 100%;
      margin-top: 1rem;
      font-family: "Plus Jakarta Sans", sans-serif;
      font-size:0.9rem;
    }

    table tr {
}

    table th,
    table td {
      
      border-bottom: none;
      border-left: none;
      border-right: none;
      padding: 0.75rem;
      text-align: left;
      
    }

    table th {
      border-top: none;
    }

    .card {
  background-color: rgb(32 36 41);
  padding: 20px 1rem;
  border-radius: 15px;
  margin: 20px 0;
  border: 1px solid #333;
}

.cardindex{
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 👈 centre verticalement */
  text-align: center;
}
    footer {
      background: #171717;
      padding: 2rem;
      margin-top: 3rem;
      text-align: center;
      color: #888;
      width: 100%;
      bottom:0;
    }

    @media (max-width: 768px) {
      nav {
        display: none;
      }
      .burger {
        display: flex;
      }
    }

    .member-card {
      background: rgb(32 36 41);
      border: 2px solid var(--accent);
      padding: 1.5rem;
      margin: 2rem auto;
      border-radius: 12px;
      text-align: left;
      color: var(--fg);
      
    }

    .card-info p {
      margin: 0.75rem 0;
      font-size: 2.2rem;
    }



.wallet {
  display: flex;
  align-items: center;   /* centrage vertical */
  gap: 8px;              /* espace entre le svg et le texte */
  justify-content: center; 
}


table {
  width: 100%;
  border-collapse: collapse;
  color: white;
}

th, td {
  padding: 1rem;
  text-align: left;
  height:50px;
}

th {
  background: rgb(32 36 41);
}

button.btn-accept {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  cursor: pointer;
  border-radius: 5px;
}

button.btn-refuse {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
}

/* Style PRO uniquement */
.accordion-pro {
  display: grid;
  grid-template-columns: 1fr; /* mobile */
  gap: 12px;
}

/* 2 colonnes dès tablette */
@media (min-width: 700px) {
  .accordion-pro {
    grid-template-columns: 1fr 1fr;
  }
}

/* Boutons */
.accordion-btn {
  width: 100%;
  padding: 16px;
  background-color: #505a66;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  box-shadow: var(--shadow);
}

.accordion-btn:hover {
  background-color: #5a6470;
  transform: translateY(-1px);
}

.accordion-btn .btn-text {
  flex: 1;
  text-align: left;
}

.accordion-btn img {
  width: 24px;
  height: 24px;
  margin-left: 10px;
}


.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background-color: #121212;
  padding: 0 5px;
}

.bar-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.bar-table th, .bar-table td { padding: 10px; text-align: center; }
.filters { margin-bottom: 20px; }

.bouton-retour {
  position: relative;
  z-index: 1;
}

.input-large {
  height: 60px;
  font-size: 24px;
  text-align: center;
}



.reward-cards {
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.reward-card {
  background-color: rgb(32 36 41);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #333;
  margin-top: 1rem;
}

.reward-info {
  color: #fff;
}

.reward-info .points {
  color: var(--blue);
  font-weight: bold;
  font-size: 1rem;
}

.delete-form button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #bbb;
  transition: color 0.2s ease;
}

.reward-card-link {
  background-color: rgb(26, 30, 34);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  border-left: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.reward-card-link:hover {
  transform: translateX(5px);
  background-color: rgba(228, 79, 83, 0.1);
}

  .bar-points {
  color: var(--blue);
  font-weight: bold;
  font-size: 1rem;

  }


  .stats {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  padding: 1rem;
  background-color: #2a2a2a;
  color: white;
  border-radius: 5px;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 1.5rem;
  color: var(--blue); /* ou #ff5a5f selon ta charte */
}



.top-clients-table {
    width: 100%;
    color: #f1f1f1;
    border-collapse: separate; /* Assurez-vous que le tableau ne soit pas en mode "collapsé" */
    border-spacing: 0 10px; /* Espacement horizontal et vertical */
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}


.top-clients-table td {
    background-color: rgb(32 36 41);
    padding: 12px 8px;
    text-align: left;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

/* Bordure gauche */
.top-clients-table tr td:first-child {
    border-left: 1px solid #333;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

/* Bordure droite */
.top-clients-table tr td:last-child {
    border-right: 1px solid #333;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}


/* Coins arrondis pour la ligne spécifique */
.rounded td:first-child {
    border-top-left-radius: 8px; /* Coin supérieur gauche */
    border-bottom-left-radius: 8px; /* Coin inférieur gauche */
}

.rounded td:last-child {
    border-top-right-radius: 8px; /* Coin supérieur droit */
    border-bottom-right-radius: 8px; /* Coin inférieur droit */
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
  opacity: 1;
  transform: none;
}


.swal2-popup{
  border:1px solid #2a2a2a;
  max-width: 90%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.gradient {
      background: linear-gradient(
        to right,
        #fae0de 20%,
        #f2ff80 30%,
        #80f0ff 70%,
        #d380ff 80%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    background-size: 500% auto;
    animation: textShine 10s ease-in-out infinite alternate;
    font-size:4rem;
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}


.boxvip {
  background: rgb(32, 36, 41);
  border-radius: 16px;
  padding: 32px;
  color: white;
  width:100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(228, 79, 83, 0.2);
}

.vip-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: white;
  line-height: 1.3;
}

.vip-price {
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 24px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: background 0.3s ease;
}

.feature-item:hover {
  background: rgba(228, 79, 83, 0.1);
}

.feature-icon {
  color: var(--accent);
  font-size: 18px;
  font-weight: bold;
  margin-right: 16px;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-content h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.feature-content p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .boxvip {
    padding: 24px;
  }
  
  .vip-header h1 {
    font-size: 20px;
  }
}

.content{
  width:100%;
  padding-bottom : 20px;
  border-bottom: 1px solid #3d3d3d;
  margin-bottom: 15px;
}


.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}

.toggle-label {
    margin: 0;
    text-decoration: none;
    border-bottom: none !important;
    width: auto;
}


.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    border-bottom: none !important;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1e1e1e;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.phone-mockup {
    width: 280px;
    aspect-ratio: 9 / 19.5;
    margin: 40px auto;
    border-radius: 40px;
    padding: 10px;
    background: #111;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    position: relative;
}

.phone-mockup video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}