/* ===============================
   FORMULAIRE DEVIS - VERSION PRO
   =============================== */

.form{
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.formBlock,
.article{
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  margin-bottom: 22px;
}

.grid2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.field{
  margin-bottom: 16px;
}

.field label,
.sizes__title{
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,.75);
}

.form input,
.form textarea,
.form select{
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(11,15,20,.72);
  color: white;
  font-weight: 800;
}

.form textarea{
  min-height: 120px;
  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder{
  color: rgba(255,255,255,.45);
}

.form input:focus,
.form textarea:focus,
.form select:focus{
  outline: none;
  border-color: rgba(56,189,248,.65);
  box-shadow: 0 0 0 4px rgba(56,189,248,.14);
}

/* Articles */

.article__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.article__head h4{
  font-size: 20px;
  font-weight: 900;
}

.btn--danger{
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.35);
  color: #ffd7d7;
  font-weight: 900;
}

/* =========================================================
   TAILLES — responsive complet
   ========================================================= */

.sizes{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255,255,255,.14);
}

.sizes__title{
  font-size: 15px;
  margin-bottom: 14px;
}

/* Desktop : 6 colonnes */
.sizes__grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 12px;
}

.size{
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.size label{
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,.75);
  letter-spacing: .3px;
}

.size input{
  width: 100%;
  height: 52px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 14px;
  font-size: 16px; /* évite le zoom auto iOS */
  font-weight: 800;
}

.sizes__hint{
  margin-top: 10px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}

/* Upload */

.file-upload{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-btn{
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.file-btn:hover{
  border-color: rgba(56,189,248,.55);
  box-shadow: 0 0 0 4px rgba(56,189,248,.12);
}

.file-hint{
  color: rgba(255,255,255,.58);
  font-weight: 600;
}

.file-name,
.hint{
  color: rgba(255,255,255,.58);
  font-size: 13px;
}

/* Boutons */

.form__actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.form__actions .btn{
  min-height: 56px;
  padding: 14px 24px;
}

/* Conseil devis rapide */

.hero__card,
.contact__side,
aside{
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 26px;
}

.contactGrid aside,
.hero__card{
  margin-top: 45px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width: 900px){
  .form{
    padding: 20px;
  }

  .grid2{
    grid-template-columns: 1fr;
  }

  /* Tablette : 3 colonnes */
  .sizes__grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
  }
}

@media(max-width: 520px){
  .form{
    padding: 16px;
    border-radius: 20px;
  }

  .formBlock,
  .article{
    padding: 16px;
    border-radius: 18px;
  }

  /* Mobile : 3 colonnes avec cases plus grandes */
  .sizes__grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
  }

  .size label{
    font-size: 12px;
  }

  .size input{
    height: 56px;       /* plus haut = plus facile à taper */
    font-size: 17px;    /* gros chiffre visible */
    border-radius: 12px;
  }

  .form__actions .btn{
    width: 100%;
  }
}

@media(max-width: 360px){
  /* Très petits écrans : 2 colonnes */
  .sizes__grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* ===============================
   CARTE PREMIUM
   =============================== */

.hero__card{

    padding:35px;

    border-radius:34px;

    background:
    linear-gradient(145deg,#3f3794,#2d206d);

    border:1px solid rgba(255,255,255,.14);

    box-shadow:
    0 35px 90px rgba(0,0,0,.45);

}

/* Header */

.hero__cardHeader{

    display:flex;

    align-items:center;

    gap:24px;

    margin-bottom:30px;

}

/* Encadrement logo */

.hero__logoBox{

    width:140px;

    height:140px;

    border-radius:30px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:
    linear-gradient(145deg,#3255ff,#2d3df3);

    border:1px solid rgba(255,255,255,.18);

    box-shadow:
    0 18px 50px rgba(0,0,0,.35);

}

.hero__logo{

    width:90px;

    height:90px;

    object-fit:contain;

}

.hero__company{

    flex:1;

}

.hero__companyName{

    display:block;

    font-size:36px;

    font-weight:900;

}

.hero__companySub{

    display:block;

    margin-top:8px;

    color:rgba(255,255,255,.75);

}

.hero__badges{

    display:flex;

    gap:10px;

    margin-top:18px;

    flex-wrap:wrap;

}

.hero__badges span{

    padding:8px 16px;

    border-radius:999px;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.12);

    font-size:13px;

    font-weight:800;

}

/* LOGO PLEIN DANS LE CARRÉ */
.hero__logoBox{
  padding:0 !important;
  overflow:hidden !important;
}

.hero__logoBox .hero__logo,
.hero__logo{
  width:100% !important;
  height:100% !important;
  padding:0 !important;
  margin:0 !important;
  object-fit:cover !important;
  border-radius:24px !important;
}

/* Si tu veux garder tout le logo visible sans bord bleu autour */
.hero__logoBox.contain .hero__logo{
  object-fit:contain !important;
  padding:0 !important;
}