/* ===================== PAGE CARTE CADEAU ===================== */

.section .section-intro{
  max-width: 720px;
  margin: 1rem auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  
}

.cards-grid{
  display: grid;
  gap: 1.75rem;
}

.cards-grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 800px){
  .cards-grid-2{
    grid-template-columns: 1fr;
  }
}

.card{
  background: #ffffff;
  border-radius: 22px;          /* un peu moins rond si tu veux */
  padding: 1.4rem 1.6rem;       /* un peu moins de padding */
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
@media (max-width: 640px){
  .section-gift-top .cards-grid{
    gap: 1.2rem;
  }

  .section-gift-top .card{
    padding: 1.2rem 1.3rem;
  }
}


.card h3{
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.card p{
  margin: 0;
}

.card-meta{
  font-size: 0.95rem;
  opacity: 0.85;
}



.gift-layout{
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 900px){
  .gift-layout{
    grid-template-columns: 1fr;
  }
}

.gift-list{
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
}

.gift-list li{
  margin-bottom: 0.3rem;
}

.gift-box{
  background:#ffffff;
  border-radius: var(--radius-xl);
  padding:1.6rem 1.8rem;
  box-shadow:var(--shadow);
  border:1px solid rgba(0,0,0,0.04);
}

.gift-box h3{
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.contact-list{
  list-style:none;
  padding:0;
  margin:1rem 0 1.5rem;
}

.contact-list li{
  margin-bottom:0.5rem;
}

.contact-list a{
  text-decoration: underline;
}

.btn-full{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
}
/* ======== SECTION CARTES CADEAUX — FOND SABLE ======== */

.section-gift-top{
  background: #D0B98B;
  color: #f7efe6;
}

/* le titre reste bien lisible */
.section-gift-top h1{
  color: #fffdf9;
}

/* texte intro */
.section-gift-top .section-intro{
  color: rgba(255,255,255,0.9);
}

/* les cartes ressortent bien au-dessus */
.section-gift-top .card{
  background: #ffffff;
  padding: 1.2rem 1.4rem;
  max-width: 540px;
}
/* Bouton des cartes cadeau */
.card-cta{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  margin-inline: auto;       /* centre le bouton dans la carte */
  min-width: 170px;          /* largeur mini, mais pas full */
}
/* Champs du formulaire carte cadeau */
.cart-form input,
.cart-form select,
.cart-form textarea{
  background-color: transparent;     /* prend la couleur du parent */
  margin-top: 0.45rem;   /* espace entre le label et le champ */
  border: 1px solid rgba(120, 95, 75, 0.35);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: transparent;
  box-sizing: border-box;
}

/* Le label prend toute la largeur */
.cart-fieldset label{
  display: block;
  width: 100%;
}

/* Le textarea aussi */
.cart-fieldset textarea{
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin-top: 0.45rem;   /* espace entre le label et le champ */
}
@media (max-width: 640px){
  .cart-fieldset textarea{
    min-height: 120px;
  }
}

.section-gift-top .cards-grid{
  display: grid;
  margin-inline : auto;
  max-width: 1150px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  justify-content: center;   /* centre la grille */
}
@media (max-width: 820px){
  .section-gift-top .cards-grid{
    grid-template-columns: 1fr;
  }
}
/* =========================
   VERSION MOBILE CARTE CADEAU
   ========================= */
@media (max-width: 768px){

  /* Layout général : une seule colonne */
  .gift-layout{
    display: block;          /* au lieu de grid 2 colonnes */
  }

  .gift-layout > *{
    width: 100%;
  }

  /* Section "Commander une carte cadeau" */
  .cart-form{
    padding: 1.2rem 1rem;    /* moins de padding et plus compact */
    margin-bottom: 2rem;
  }

  .cart-fieldset{
    padding: 0.9rem 0.8rem;
    margin-bottom: 1rem;
  }

  .cart-fieldset legend{
    font-size: 0.95rem;
    padding: 0 0 0.4rem 0;
  }

  /* Inputs & selects bien à la largeur du mobile */
  .cart-fieldset label{
    display: block;
    font-size: 0.9rem;
  }

  .cart-fieldset input,
  .cart-fieldset select,
  .cart-fieldset textarea{
    width: 100%;
    max-width: 100%;
    font-size: 0.95rem;
  }

  /* Bouton d’envoi : plein large et plus visible */
  .cart-form .btn-ghost-dark{
    width: 100%;
    justify-content: center;
    margin-top: 0.6rem;
  }

  /* Encadré "Une question sur les cartes cadeaux ?" */
  .gift-box{
    margin-top: 0;
    padding: 1.3rem 1rem;
    border-radius: var(--radius-lg);
  }

  .gift-box h3{
    font-size: 1.1rem;
  }

  .gift-box p,
  .gift-box li{
    font-size: 0.92rem;
  }
}
.cart-fieldset .btn-ghost-dark{
  display: block;
  margin: 1.5rem auto 0;
}
