body {
  margin: 0;
  display: block; /* flux normal */
}


.custombg {
  position: relative; /* référence pour le positionnement du form */
  display: block;
  width: 100%;
  max-width: 100%;
  z-index: 0;
  margin-top: 100px;
  margin-bottom: 30px;
  
}

.custombg img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #ffa01cc0;
  box-shadow: 0 0 15px #ff9f1c;
  
}

.custombg form {
  position: absolute;
  bottom: 0; /* colle le form au bas de l’image */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 10; /* devant l'image */
  top:0;
  overflow-y: auto;
}




.budget-display {
  font-weight: bold;
  margin-bottom: 10px;
  max-width: 300px;
  font-size:2em;
  
}

.pc-types {
  display: flex;            /* active le mode flexbox */
  flex-wrap: wrap;          /* pour que les boutons passent à la ligne si besoin */
  justify-content: center;  /* centre les boutons horizontalement */
  gap: 20px;                /* espace entre les boutons */
  margin-top: 15px;
  text-align: center;
  align-items: center;
}




  /* Simple styles pour les boutons PC */
#pcTypes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;

}

.pc-button {
  padding: 18px 26px;
  border: 2px solid #050505ff; /* orange vif */
  background-color: #1a1a1a; /* presque noir */
  color: #ffffffff; /* orange vif */
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 5px #ff9f1c;
 
}

.pc-button:hover {
  background-color: #f0f0f0dc;
  color: #0a0a0aff;
  box-shadow: 0 0 12px #ff9f1c;
}

.pc-button.active {
  background-color: #f7f7f7ff; /* orange vif */
  color: #000000ff; /* presque noir */
  border-color: #0e0d0dff; /* orange un peu plus foncé */
  box-shadow: 0 0 15px #ff9f1c;
}


.specs-block input[type="checkbox"],
.specs-block input[type="radio"] {
    accent-color: #ff9f1c; /* couleur orange des cases cochées */
}

.specs-block label {
    color: #eee;
    cursor: pointer;
}



.specs-block {
  display: flex;
  justify-content: center; /* centre horizontalement les enfants */
  align-items: center; /* centre verticalement si besoin */
  text-align: center;

  max-width: 500px;
}



.version-choice {
  display: flex;
  justify-content: center;
  max-width: 1250px;
  margin: 0 auto;
  gap: 0px;
  
  
  color: #fff;
  font-weight: 600;
  margin-top: 11px;
  
  user-select: none;
  margin-left: -28px;
  /* Bordures haut/bas seulement */
align-items: flex-start;
  

   
  width:102%;
  border-radius: 0; /* sinon ça fait bizarre avec bordures partielles */
  
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;

}
.version-choice input[type="radio"] {
  display: none; /* on cache les radios */
}

.version-choice label {
  cursor: pointer;
  flex: 1;
  padding: 20px 40px;
  border: 2px solid black;
  box-shadow: 0 0 8px black;
 
  border-radius: 5px;
  color: #eee;
  text-align: center;
  user-select: none;
  transition: all 0.3s ease;
   margin-left: 10px;
   font-size: 1.1em;
   height: 40%;
    align-items: flex-start;
    line-height: 20px;
}


  


.version-choice input[type="radio"]:checked + label {
  background: #000000;
  color: #111;
  border: 2px solid black;
  box-shadow: 0 0 8px black;
  box-shadow: 0 8px 15px rgba(138, 110, 72, 0.6);
}

.version-choice label:hover {
  background: #070707a6;
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(138, 110, 72, 0.6);
}

.version-choice label:active {
  background: #000000ab;   /* même couleur que hover */
  box-shadow: 0 8px 15px rgba(145, 117, 77, 0.6);
  transform: scale(1.05);
  
}


/* Slider (input range) style */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
 ;
  height: 16px;
  background: #ffa01ca4;
  border-radius: 5px;
  outline: none;
  margin: 0 auto;
  width: 250% !important;
  max-width: none !important;
  flex: 1;
  transform: translateX(-30%);
 }


/* Chrome, Safari, Edge */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: rgb(255, 102, 0);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 102, 0, 0.61);
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: rgb(255, 102, 0);
  transform: scale(1.1);
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: rgb(255, 102, 0);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 0, 0, 0.185);
}

input[type="range"]::-moz-range-thumb:hover {
  background: rgb(255, 102, 0);
  transform: scale(1.1);
}

.form-wrapper {
  display: flex;
  position: relative;  /* conteneur pour position absolue */
  max-width: 1350px;   /* ta largeur max */
  width: 100%;
  margin: 0 auto;
  align-items: flex-start;
  background-repeat: repeat; 
  margin-top: -70px;
}

#specs-block {
  display: none;
  position: absolute; /* Pour positionner par rapport au parent ou au body */
  background: rgb(0, 0, 0);
  padding: 15px;
  box-shadow: 0 4px 12px rgb(0, 0, 0);
  border-radius: 6px;
  z-index: 1000;
  width: 1000px; /* largeur fixe ou max-width */
  max-height: 1500px;
  overflow-y: auto;
  max-width: none;
  color: #00ff37;
  margin-top:100px;
  font-size: 1.5em;
  
}

/* Fond semi-transparent couvrant tout, derrière le popup */
#specs-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 999; /* sous specs-block */
  color: #00ff37;
}

#specsToggle {
  color: #00ff37; /* bleu sympa */
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  display: inline-block;
  position: relative;
}

#specsToggle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #00ff37;
  transition: width 0.3s ease;
}

#specsToggle:hover {
  color: #74727298; /* bleu plus foncé au hover */
  text-shadow: 0 0 5px rgba(30, 255, 0, 0.5);
}

#specsToggle:hover::after {
  width: 100%;
}

#closeSpecsBtn {
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  
  
}

#closeSpecsBtn:hover {
  background: #5e5e5e; /* gris un peu plus clair */
  transform: scale(1.05); /* petit zoom */
  box-shadow: 0 0 10px rgba(36, 235, 18, 0.7); /* glow vert */
  cursor: pointer;
}

.closeSpecsBtn {
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  font-size: 2em;
  
}

.form-wrapper fieldset{
  font-size: 1.2em !important;
  max-width: 100%;
  width: 90%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Téléphones (~max 576px) */
@media (max-width: 992px) {
 
.custombg {
  position: relative; /* référence pour le positionnement du form */
  display: block;
  width: 100%;
  max-width: 100%;
  z-index: 0;
  margin-top: 100px;
  margin-bottom: 30px;
  
}

.custombg img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #ffa01cc0;
  box-shadow: 0 0 15px #ff9f1c;
  
}

.custombg form {
  position: absolute;
  bottom: 0; /* colle le form au bas de l’image */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 10; /* devant l'image */
  top:0;
  overflow-y: auto;
  overflow-x: hidden;
}

 

.budget-display {
  font-weight: bold;
  margin-bottom: 10px;
  max-width: 300px;
  font-size:1.2em;
  
}

.pc-types {
  display: flex;            /* active le mode flexbox */
  flex-wrap: wrap;          /* pour que les boutons passent à la ligne si besoin */
  justify-content: center;  /* centre les boutons horizontalement */
  gap: 20px;                /* espace entre les boutons */
  margin-top: 15px;
  text-align: center;
  align-items: center;
}




  /* Simple styles pour les boutons PC */
#pcTypes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;

}

.pc-button {
  padding: 18px 26px;
  border: 2px solid #050505ff; /* orange vif */
  background-color: #1a1a1a; /* presque noir */
  color: #ffffffff; /* orange vif */
  font-weight: 200;
  cursor: pointer;
  border-radius: 6px;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 5px #ff9f1c;
  width: 70%;
  height: auto;
 
}


.version-choice {
  font-size: 0.8em;       /* texte un peu plus lisible */
  width: 100%;             /* chaque cadre prend ~45% de la largeur (ajuste selon ton goût) */
      gap: 20px;  
          
  padding:21px ;          /* espace intérieur */
  display: flex;          /* permet l'alignement */
  align-items: flex-start;/* texte en haut */
  justify-content: flex-start; /* aligné à gauche */
  text-align: center;       /* texte aligné à gauche */
 margin-top: -20px;
  flex-direction: column;
 
  
}


.version-choice br{
display: none;

}

.version-choice input[type="radio"]:checked + label {
  background: #000000;
  color: #111;
  border: 2px solid black;
  box-shadow: 0 0 8px black;
  box-shadow: 0 8px 15px rgba(138, 110, 72, 0.6);
  height: 160px;
  
}

.version-choice label {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* colle en haut */
  align-items: center;     /* aligne à gauche */
  
 
            /* hauteur mini pour homogénéiser */
  padding: 10px;
  border-left: none;
  border-right: none;
  border-bottom: 2px solid #444;
  border-top: 2px solid #444;
 
  box-sizing: border-box;
  cursor: pointer;
  height: 36px;
  line-height: 1.3em;          /* évite le texte tassé */
  margin: 0;
  overflow-y: hidden;
margin-left: 10px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
 ;
  height: 16px;
  background: #ffa01ca4;
  border-radius: 5px;
  outline: none;
  margin-left:85px;
  width: 100% !important;
  max-width: none !important;
  flex: 1;
  
 }

 .specs-block label, h2, h3{
    color: #eee;
    cursor: pointer;
    font-size: 0.9em;
}


#specs-block {
 overflow-x: hidden;
  width: 100%; 
 margin-top: 362px;
  
}

 #specsToggle {
    font-size: 1.1em !important;
    text-align: center;
  }

.form-wrapper fieldset{
  font-size: 0.9em !important;
  max-width: 100%;
  width: 90%;
  align-items: center;
  justify-content: center;
}

#stockageSelect{
  margin-left:5px!important;
}

.form-wrapper p{
  margin-left: 5px;
  align-items: center;
  justify-content: center;
}

.specs-block input[type=text]{
  font-size: 0.7em !important;
  
  
  
}

.specs-block select{
  font-size: 0.7em !important;
  
  
  
}

.specs-block textarea{
  font-size: 0.7em !important;
  }

  .closeSpecsBtn{
font-size: 1.3em;
}

 #message {
  height: 80px !important;
  min-height: 80px !important;
  overflow: auto !important;
  position: relative;
  z-index: 9999;
}

 #adresse {
  height: 40px !important;
  min-height: 40px !important;
  overflow: auto !important;
  position: relative;
  z-index: 9999;
}

label[for="promo"] {
    font-size: 0.7em !important;
  transform: translateX(5%) !important;
    gap:0px !important;
    width: 90% !important;
}
}

