/* =============================== CONFIGURATION DE BASE =============================== */
:root {
  --box-min-width: 300px; /* Largeur minimale d'une box dans la grille */
  --gap-size: 1.75rem; /* Espace entre les box */
  --border-radius: 1rem; /* Rayon des bordures arrondies */
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden; /* Empêche la barre de défilement horizontale */
  font-family: poppins, sans-serif;
  background: #1d031f;
  color: white;
}
body {
  background: black;
} /* =============================== CONTENEUR PRINCIPAL RESPONSIVE =============================== */
.form-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--box-min-width), 1fr));
  gap: var(--gap-size);
  padding: var(--gap-size);
  width: 100%;
}

/* =============================== STYLE DES BOXES =============================== */

.box {
  --list: #006400, #ff0000; /* Dégradé pour le contour #03a9f4, #ff0058 */
  display: flex;
  flex-direction: column;
  border: 4px solid transparent;
  border-radius: var(--border-radius);
  background: conic-gradient(rgb(0 0 0 / 0.75) 0 0) padding-box,
    linear-gradient(45deg, var(--list)) border-box;
  padding: 1.5rem;
  position: relative;
  height: auto; /* Adapte la hauteur au contenu */
  min-height: unset; /* Supprime toute hauteur forcée */
}
.box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(45deg, var(--list));
  filter: blur(0.75rem);
  border-radius: var(--border-radius);
}
/* =============================== FIELDSET =============================== */
fieldset {
  width: 100%;
  border: 3px solid transparent;
  border-radius: calc(var(--border-radius) - 0.2rem);
  background: conic-gradient(rgb(0 0 0 / 0.75) 0 0) padding-box,
    linear-gradient(45deg, var(--list)) border-box;
  padding: 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: auto; /* Adapte au contenu */
}
/* =============================== CONTENEUR INTERNE DES CHAMPS =============================== */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
/* =============================== LABELS ET CHAMPS DE FORMULAIRE =============================== */
label {
  display: block;
  margin-bottom: 0.5rem;
  /*font-size: 0.9rem;*/
  font-size: 1.5rem;
}

input,
select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #30363d;
  border-radius: 0.5rem;
  background: #fff; /* #0d1117;*/
  color: #000000; /*#c9d1d9;*/
  font-family: inherit;
  font-size: 1rem;
}

/*#Recap { display: none; /* caché par défaut */ /*}*/ /*
 =============================== RESPONSIVE DESIGN =============================== */ /* Tablettes : 2 colonnes */

@media (max-width: 900px) {
  .form-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobiles : 1 colonne, textes et champs plus grands */
@media (max-width: 600px) {
  .form-wrapper {
    grid-template-columns: 1fr; /* Une box par ligne */
  }

  label {
    font-size: 1rem;
  }

  input,
  select {
    font-size: 1.05rem;
    padding: 1rem;
  }
}



/*a, span {
	color : #ff0000;
  display: block;
  text-decoration: none;
  margin: 20px;
}*/
/*the fifth button*/
.a5 {
  overflow: hidden;
  position: relative;
  width: 200px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  box-sizing: border-box;
  text-transform: uppercase;
  color: #fff;
  font-size: 20px;
  border: 1px solid #fff;
  border-radius: 0px;
  transition: all 0.5s ease;
  background: transparent; /* important */
  z-index: 1; /* pour que le texte reste au-dessus */
  cursor: pointer;
}

.a5:before {
  content: "";
  position: absolute; /*background: linear-gradient(to right, #03a9f4, #f441a5, #ffeb3b, #03a9f4);*/
  background: linear-gradient(to right, #006400, #ff0000);
  background-size: 400%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 100%;
  height: 0%;
  transition: all 0.6s ease;
  z-index: -1;
  border-radius: 0px;
}

.a5:after {
  content: ""; /*background: linear-gradient(to right, #03a9f4, #f441a5, #ffeb3b, #03a9f4);*/
  background: linear-gradient(to right, #006400, #ff0000);
  background-size: 400%;
  position: absolute;
  top: -5px;
  right: -5px;
  left: -5px;
  bottom: -5px;
  z-index: -2;
  border-radius: 0px;
  filter: blur(20px);
  opacity: 0;
  transition: 0.5s;
}

.a5:hover {
  border: 1px solid transparent;
}

.a5:hover:before {
  height: 300%;
  animation: a 8s linear infinite;
}

.a5:hover:after {
  opacity: 1;
  animation: a 8s linear infinite;
}
@keyframes a {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 400%;
  }
}
#btnFieldset {
  display: flex;
  flex-direction: column; /* legend au-dessus, bouton en dessous */
  align-items: center;
  gap: 10px; /* espace entre legend et bouton */
}
.custom-button {
  display: block; /* prend toute la largeur */
  width: 100%;
  padding: 12px;
  margin: 5px 0;
  background: white; /* par défaut rouge */
  color: black;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s;
}
.custom-button.green {
  background: green !important;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
:root {
  /* Couleurs */
  --clr-bg: #0f0f1a; /* fond général */
  --clr-text: #ff0000; /* texte par défaut */
  --clr-checkbox-bg: #1a1a2e; /* fond des cases à cocher */

  --clr-stroke-inactive: #ff0000; /* trait / glow rouge par défaut */
  --clr-stroke-active: #00ff00;   /* trait / glow vert quand coché */

  --clr-text-active: var(--clr-stroke-active);

  /* Glow pour checkbox */
  --clr-glow-shadow-inactive: 0 0 8px var(--clr-stroke-inactive),
    0 0 15px var(--clr-stroke-inactive);
  --clr-glow-shadow-active: 0 0 8px var(--clr-stroke-active),
    0 0 15px var(--clr-stroke-active);

  /* Filtre glow quand coché */
  --clr-glow-filter-active: drop-shadow(0 0 4px var(--clr-stroke-active))
    drop-shadow(0 0 10px var(--clr-stroke-active));

  /* Ombre texte glow */
  --clr-text-shadow-glow: 0 0 5px var(--clr-text-active),
    0 0 10px var(--clr-text-active);
}

@layer reset {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
}

@layer base {
  body {
    display: grid;
    place-content: center;
    min-height: 100dvh;
    background-color: var(--clr-bg);
    color: var(--clr-text);
  }

  input[type="checkbox"] {
    display: none;
  }

  span {
    font-family: "Orbitron", sans-serif;
    font-size: 1rem;
  }
}

@layer components {
  .checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;

    & label {
      display: flex;
      align-items: center;
      gap: 35px;
    }

    /* Texte et liens : rouge par défaut */
    & label span,
    & label a {
      color: var(--clr-stroke-inactive);
      transition: color 0.3s ease-in, text-shadow 0.3s ease-in;
    }

    & label span {
      font-weight: 500;
    }
  }

  svg {
    width: 25px;
    height: 25px;
    border-radius: 16px;
    background-color: var(--clr-checkbox-bg);

    /* Glow rouge par défaut */
    box-shadow: var(--clr-glow-shadow-inactive);

    & path:nth-of-type(2) {
      stroke-dasharray: 10;
      stroke-dashoffset: 10;
      transition: stroke-dashoffset 0.3s ease-in;
    }

    & path:nth-of-type(3) {
      stroke-dasharray: 70;
      stroke-dashoffset: 70;
      transition: stroke-dashoffset 0.3s ease-in;
      stroke: var(--clr-stroke-active);
    }
  }

  /* Quand la checkbox est cochée */
  input:checked + label svg {
    box-shadow: var(--clr-glow-shadow-active);
    filter: var(--clr-glow-filter-active);
  }

  input:checked + label svg path:nth-of-type(2),
  input:checked + label svg path:nth-of-type(3) {
    stroke-dashoffset: 0;
    stroke: var(--clr-stroke-active);
  }

  /* Texte et liens deviennent verts avec glow */
  input:checked + label span,
  input:checked + label a {
    color: var(--clr-text-active);
    text-shadow: var(--clr-text-shadow-glow);
  }
}

.custom-button.green {
  background: green !important;
}
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
