/* =====================================================================
   BONS-CADEAUX.CSS : la page bons-cadeaux.html ET le bon lui-même
   (le même style sert à l'outil _A-NE-PAS-METTRE-EN-LIGNE/bons-cadeaux/,
   comme ça le bon que tu envoies ressemble exactement à celui du site).
   Couleurs : violet #810ece → bleu #35b8f5 (comme le site) + ruban rose #c2185b.
   ===================================================================== */

/* ----- L'APERÇU DU BON (même style que les bons envoyés en PDF :
   photo à gauche, aquarelle du site à droite, logo, « Bon cadeau » manuscrit) -----
   Couleurs : classe bon-be (bien-être : turquoise → vert) ou bon-art (artistique : violet → bleu),
   changée toute seule selon le cadeau choisi (JS/bons-cadeaux.js). */
.bon {
  --bon-degrade: linear-gradient(90deg, #810ece, #35b8f5);
  --bon-fonce: #3b1f63;
  --bon-moyen: #5a0a96;
  display: grid;
  grid-template-columns: 39% minmax(0, 1fr);
  aspect-ratio: 210 / 148;       /* le format A5 du vrai bon (il s'allonge si le texte est long) */
  max-width: 620px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #fff url('../photos/Leffet_Marie_Fond_HD.webp') center / cover;
  box-shadow: 0 10px 30px rgba(59, 31, 99, 0.25);
  font-family: "Roboto", sans-serif;
  color: #1e1b2e;
  text-align: left;
}

.bon-be {
  --bon-degrade: linear-gradient(90deg, #0b8f9c, #7cb342);
  --bon-fonce: #0b4f56;
  --bon-moyen: #0b6f78;
}

/* La photo à gauche, avec le fin liseré arc-en-ciel */
.bon-photo {
  position: relative;
  background: #e9e4f5 center / cover no-repeat;
  transition: background-image 0.3s ease;
}

.bon-photo::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #810ece, #35b8f5, #0bb5c9, #8bc34a, #f5b335, #e5486b);
}

/* Le texte à droite, sur un voile blanc léger */
.bon-texte {
  background: rgba(255, 255, 255, 0.45);
  padding: 4% 6% 4.5%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bon-logo {
  width: 78%;
  height: auto;
  align-self: center;
}

.bon-titre {
  margin: 2px 0;
  text-align: center;
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1;
  background: var(--bon-degrade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bon-sous-titre {
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(0.72rem, 1.8vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bon-fonce);
}

.bon-ligne {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 5px;
  font-size: clamp(0.72rem, 1.7vw, 0.85rem);
}

.bon-ligne b {
  white-space: nowrap;
  color: var(--bon-moyen);
}

.bon-champ {
  flex: 1;
  min-width: 0;
  border-bottom: 1px dotted var(--bon-moyen);
  font-family: "Dancing Script", cursive;
  font-size: 1.45em;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.bon-rdv {
  margin-top: auto;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--bon-degrade);
  color: #fff;
  text-align: center;
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  font-weight: 700;
  line-height: 1.3;
}

.bon-petit {
  margin: 5px 0 0;
  font-size: 0.7rem;
  color: #4a4560;
  text-align: center;
}

/* Sur téléphone : la photo passe en bande au-dessus, le texte reste lisible */
@media (max-width: 575.98px) {
  .bon {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .bon-photo {
    height: 140px;
  }

  .bon-photo::after {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #810ece, #35b8f5, #0bb5c9, #8bc34a, #f5b335, #e5486b);
  }

  .bon-texte {
    padding: 12px 16px 14px;
  }

  .bon-rdv {
    margin-top: 8px;
  }
}


/* ----- LA PAGE bons-cadeaux.html ----- */

/* Petit texte sous le bon d'exemple */
.bc-legende {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: #3b3450;
}

/* Les cartes « Que voulez-vous offrir ? » : ce sont aussi les choix du formulaire */
.bc-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.bc-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border: 2px solid #1e1b2e;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.25;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.bc-option small {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: #3b3450;
}

/* La petite bulle de PRIX, posée sur le bord en haut à droite de chaque carte */
.bc-prix {
  position: absolute;
  top: -11px;
  right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 2px solid #1e1b2e;
  background: #fff;
  color: #c2185b;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 2px 2px 0 0 rgba(83, 10, 96, 0.35);
}

.bc-be .bc-prix {
  color: #0b6f78;
}

/* carte choisie : la bulle reste blanche, avec le prix en rose */
.bc-option:has(input:checked) .bc-prix {
  background: #fff;
  border-color: #1e1b2e;
  color: #c2185b;
}

/* Prix pas encore écrit (XX) : surligné en jaune, à remplacer avec l'éditeur */
.a-completer {
  background: #fff3b0;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 700;
  color: #5c4400;
}

/* place pour les bulles au-dessus des cartes */
.bc-options {
  padding-top: 10px;
  row-gap: 22px;
}

/* le petit rond rouge du choix est caché : c'est toute la carte qu'on clique */
.bc-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bc-icone {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.bc-art .bc-icone {
  background: linear-gradient(135deg, #ffd6d6, #d6dcff);
}

.bc-be .bc-icone {
  background: linear-gradient(135deg, #c9f6ff, #f1ffc2);
}

.bc-option:hover {
  border-color: #810ece;
}

/* carte choisie : toute la carte se colore (dégradé rose → violet, texte blanc) */
.bc-option:has(input:checked) {
  background: linear-gradient(135deg, #c2185b, #810ece);
  border-color: #1e1b2e;
  color: #fff;
  box-shadow: 4px 3px 0 0 #1e1b2e;
}

.bc-option:has(input:checked) small {
  color: #fff;
}

/* soins bien-être : la carte choisie se colore en turquoise → vert, comme la partie bien-être */
.bc-be:has(input:checked) {
  background: linear-gradient(135deg, #0b8f9c, #7cb342);
}

.bc-be:has(input:checked) .bc-prix {
  color: #0b6f78;
}

/* le petit rond de l'icône reste blanc pour bien se voir sur le fond coloré */
.bc-option:has(input:checked) .bc-icone {
  background: #fff;
}

.bc-option:has(input:focus-visible) {
  outline: 3px solid #35b8f5;
  outline-offset: 2px;
}

/* aucun cadeau choisi au moment d'envoyer : cadre rouge autour des cartes */
.bc-options.is-invalid {
  outline: 3px solid #dc3545;
  outline-offset: 6px;
  border-radius: 14px;
}

/* champ « Montant » : visible seulement si « Montant libre » est choisi */
.bc-montant[hidden] {
  display: none !important;
}

/* Les 4 étapes « Comment ça marche ? » */
.bc-etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.bc-etapes li {
  padding: 20px;
  border: 1px solid #000;
  border-radius: 16px;
  background: var(--ta-verre);
  -webkit-backdrop-filter: var(--ta-flou);
  backdrop-filter: var(--ta-flou);
  box-shadow: 6px 5px 1px 0 rgba(83, 10, 96, 0.45);
}

.bc-etapes .devis-num {
  margin-bottom: 8px;
}

.bc-etapes h3 {
  margin: 0 0 6px;
  font-family: "Roboto", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
}

.bc-etapes p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .bc-etapes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .bc-etapes {
    grid-template-columns: 1fr;
  }
}

/* Encadré noir « Bon à savoir » */
.bc-savoir {
  background: #000;
  color: #fff;
  border-radius: 20px;
  padding: 24px;
}

.bc-savoir h2 {
  margin: 0 0 12px;
  font-family: "Roboto", sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
}

.bc-savoir dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bc-savoir dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fdcff;
}

.bc-savoir dd {
  margin: 2px 0 0;
  font-weight: 700;
}

