
:root {
  /* Palette HESTIA */
  --hestia-bg-color:  #fffff  ;
;

  --rose-hestia: #CD6A81;
  --bleu-hestia: #5577B2;
  --vert-hestia: #6F9E8C;
  --jaune-hestia: #F4D85F;
  --bleu-clair-hestia: #A2B8DE;
  --vert-eau-hestia: #A2CEC1;

  --gris-clair: #F8F9FA;
  --text-color: #333333;

  /* États */
  --danger: #dc3545;
  --success: #198754;
  --hover-success: #157347;
  --hover-danger: #bb2d3b;
}


.icone-perso {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  vertical-align: middle;
}



.mb-0 {
font-size: 0.75rem;
font-weight: 600;
 color: var(--bleu-hestia); /* ou une autre couleur douce de votre charte */
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--hestia-bleu-main); /* un petit filet sous le titre */
  padding-bottom: 0.25rem;

}

.h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bleu-hestia); /* ou une autre couleur douce de votre charte */
  margin-bottom: 0.75rem;
  /*text-transform: uppercase;*/
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--hestia-bleu-main); /* un petit filet sous le titre */
  padding-bottom: 0.25rem;
}


body {
  background-color: var(--hestia-bg-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
}

header {
  margin-bottom: 0.5rem !important;
  background-color: var(--hestia-bg-color);
}

main .container {
  padding-top: 0.125rem !important;
}

main {
  background-color: var(--hestia-bg-color);
}

.mb-5 {
  margin-bottom: 0.5rem !important;
}

.btn-check {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
}

.btn-radio {
  display: inline-block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-weight: 500;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, border-color 0.2s;
  color: #fff;
  background-color: #6c757d;
}

.btn-check:checked + label.btn-radio {
  background-color: var(--bleu-clair-hestia);
  border-color: var(--bleu-clair-hestia);
}

label.btn-radio:hover {
  opacity: 0.85;
}

.btn-radio:not(:last-child) {
  margin-bottom: 0.5rem;
}

.btn-radio--primary {
  background-color: var(--bleu-clair-hestia);
  border-color: var(--bleu-clair-hestia);
}
.btn-radio--primary:hover {
  background-color: var(--bleu-clair-hestia);
  border-color: var(--bleu-clair-hestia);
}

.btn-radio--success {
  background-color: var(--success);
  border-color: var(--success);
}
.btn-radio--success:hover {
  background-color: var(--hover-success);
  border-color: var(--hover-success);
}

.btn-radio--danger {
  background-color: var(--danger);
  border-color: var(--danger);
}
.btn-radio--danger:hover {
  background-color: var(--hover-danger);
  border-color: var(--hover-danger);
}

.btn:hover {
  color: #ffffff;
  background-color: var(--rose-hestia);
  border-color: var(--rose-hestia);
}

.btn-check {
  color: var(--bleu-hestia);
  background-color: var(--bleu-hestia);
  border-color: var(--bleu-hestia);
}

.btn-check:checked + .btn {
  color: #ffffff;
  background-color: var(--vert-eau-hestia);
  border-color: var(--vert-eau-hestia);
}

/* Coche visible uniquement quand le bouton radio est sélectionné */
.btn-check:checked + .btn-prestation-tile::after {
  content: '✔';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.2rem;
  color: #198754; /* Vert Bootstrap */
}

/* Positionne le label en relatif pour placer la coche en absolu */
.btn-prestation-tile {
  position: relative;
  padding-right: 2rem; /* pour ne pas chevaucher le texte */
}

.btn {
  color: var(--bleu-hestia);
  background-color: #ffffff;
  border-color: var(--bleu-hestia);
 
}

.btn-success
{
margin-top: 0.5rem;

}

.tel-link {
  color: var(--rose-hestia);
  font-weight: bold;
  padding: 0 10px;
}
.tel-link:hover {
  color: var(--rose-hestia);
  text-decoration: underline;
}

.form-error {
  font-size: 0.85rem;
  color: var(--danger);
}

#devis_adresse + ul {
  max-height: 200px;
  overflow-y: auto;
  margin-top: -5px;
}

.is-invalid {
  border-color: var(--danger) !important;
}

.footer-nav-wrap {
  background-color: var(--hestia-bg-color);
  border-top: 1px solid #ddd;
}

.footer-nav .menu-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav .menu-link:hover {
  color: var(--bleu-hestia);
  text-decoration: underline;
}
.footer-image-container {
    padding-top: 1rem;
}

.footer-image {
    /*max-height: 120px;*/
    object-fit: contain;
    opacity: 0.85; /* optionnel pour un rendu plus discret */
}

h2:focus {
  outline: none;
  box-shadow: none;
}





h2.etape-title {
  background-color: #ffffff;
  border: 2px solid var(--hestia-accent, #86acce);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hestia-bleu, #3575ad);
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/**gestion bouton**/
.grid-prestations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 660px; /* Limite la largeur totale de la grille */
  margin-left: auto;
  margin-right: auto;
}


.btn-prestation-tile {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  padding: 1rem;
  border: 2px solid var(--bleu-hestia);
  border-radius: 1rem;
  background-color: var(--gris-clair);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-prestation-tile:hover {
  background-color: #fff;
  border-color: var(--rose-hestia);
  box-shadow: 0 0 0 2px var(--rose-hestia);
}

.btn-check:checked + .btn-prestation-tile {
  background-color: var(--vert-eau-hestia);
  border-color: var(--vert-eau-hestia);
  box-shadow: 0 0 0 2px var(--vert-hestia);
}

.btn-prestation-tile .icon {
  font-size: 1.8rem;
  color: var(--bleu-hestia);
}

.btn-check:checked + .btn-prestation-tile .icon {
  color: var(--rose-hestia);
}

.btn-prestation-tile .label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
}

/* Responsive : icône un peu plus petite sur petits écrans */
@media (max-width: 576px) {
  .btn-prestation-tile .icon {
    font-size: 1.4rem;
  }
}


.highlight-focus {
  animation: focusHighlight 1.5s ease;
  background-color: #fff8d1;
  transition: background-color 1.5s ease;
  padding: 2px 4px;
  border-radius: 4px;
}

@keyframes focusHighlight {
  0%   { background-color: #fff3b0; }
  50%  { background-color: #fff8d1; }
  100% { background-color: transparent; }
}


.frequence-details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.4s ease;
}

.frequence-details.show {
  max-height: 200px; /* suffisamment grand pour contenir les champs */
  opacity: 1;
}
