/*
 Theme Name: Perfect Beauty by Anaïs - Divi Child
 Theme URI: https://perfectbeautybyanais.store
 Description: Thème enfant Divi pour Perfect Beauty by Anaïs
 Author: Cyrielle
 Template: Divi
 Text Domain: perfectbeauty-child
*/

/* ===============================
   BASE GÉNÉRALE
   =============================== */

html, body {
  margin: 0;
  padding: 0;
}

/* Header Divi pour cette page uniquement */
.page-id-72997 .et-l--header .et_pb_section {
  background-color: #7d0d1a !important;
  background-image: url('assets/images/banniereetoile.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Liens du menu (Theme Builder) */
.page-id-72997 .et_pb_menu--without-logo .et_pb_menu__menu > nav > ul > li > a,
.page-id-72997 .et_pb_menu__menu nav ul li a {
  color: #dba875 !important;
}

.page-id-72997 .et_pb_menu__menu nav ul li a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Page Noël */
.christmas-page {
  font-family: 'Quicksand', sans-serif;
  color: #2b2b2b;
}

/* Containers génériques */
.container {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections */
.section {
  padding: 90px 0;
}

/* Titres généraux */
.section-title {
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #7d0d1a;
}

.section-intro {
  color: #555;
  font-size: 1.1rem;
}

/* Badges de section */
.section-badge,
.section-badge-primary,
.section-badge-secondary {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.section-badge {
  background: #f7e6d5;
  color: #7d0d1a;
}

.section-badge-primary {
  background: #7d0d1a;
  color: #fff;
}

.section-badge-secondary {
  background: #e6d9ba;
  color: #6a4d23;
}

/* ===============================
   HERO NOËL
   =============================== */

.christmas-hero {
  background-color: #7d0d1a;
  background-image: url('assets/images/banniereetoile.png') !important;
  background-size: cover !important;
  background-position: left !important;
  background-repeat: no-repeat !important;
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-badge {
  padding: 8px 18px;
  border-radius: 1rem;
  font-size: 1.2rem;
  color: #dba875;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #dba875;
}

.hero-title-highlight {
  color: #dba875;
}

.hero-subtitle-secondary {
  color: #dba875;
  max-width: 650px;
  margin: 0 auto 40px;
}

/* Boutons génériques */
.btn {
  padding: 14px 26px;
  border-radius: 35px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #7d0d1a;
  color: #fff !important;
}

.btn-primary:hover {
  background: #782f16;
}

.btn-outline {
  border: 2px solid #7d0d1a;
  color: #7d0d1a !important;
}

.btn-outline:hover {
  background: #7d0d1a;
  color: #fff !important;
}

.btn-secondary {
  background: #dba875;
  color: #7d0d1a;
}

.btn-secondary:hover {
  filter: brightness(0.95);
}

/* ===============================
   GRILLES DE CARTES
   =============================== */

.cards-grid {
  display: grid;
  gap: 30px;
}

.cards-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.max-width-5xl {
  max-width: 900px;
  margin: 0 auto;
}

/* ===============================
   CARTES GÉNÉRALES
   =============================== */

.card-ritual,
.card-flash,
.card-exclusive,
.card-accessory {
  position: relative;
  background: #fff;
  border: 1px solid #e7dad0;
  border-radius: 16px;
  padding: 28px;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

.card-ritual:hover,
.card-flash:hover,
.card-exclusive:hover,
.card-accessory:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Badges de carte */
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-outline {
  border: 1px solid #d9b8a6;
  color: #a06c4a;
}

.badge-primary {
  background: #7d0d1a;
  color: #fff;
}

/* Titres & textes des cartes */
.card-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #3b2c2c;
  margin-bottom: 10px;
}

.card-description {
  color: #6a6a6a;
  font-size: 0.95rem;
}

.card-details {
  color: #6a6a6a;
  font-size: 0.95rem;
}

/* Footer des cartes (prix / "idéal pour") */
.card-footer {
  border-top: 1px solid #e5ded7;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.card-ideal {
  flex: 1;
}

.card-ideal-label {
  font-weight: 700;
}

.card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #7d0d1a;
  white-space: nowrap;
}

.card-price-lg {
  font-size: 1.4rem;
}

/* Rituel mis en avant */
.card-ritual-featured {
  border: 2px solid #7d0d1a;
  box-shadow: 0 0 0 4px rgba(176, 72, 34, 0.12);
}

.card-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: #7d0d1a;
  color: #fff;
  padding: 5px 12px;
  font-size: 0.75rem;
  border-bottom-left-radius: 8px;
}

/* Exclusifs */
.card-exclusive .card-banner {
  background: #c09b54;
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  padding: 6px 0;
  margin: -28px -28px 18px;
}

.card-contents-box {
  background: #f5efe6;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.card-contents-label {
  font-weight: 600;
  margin-bottom: 8px;
}

.card-contents-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-contents-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

/* Accessoires : encart infos + prix */
.info-box {
  background: #f6eee8;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.info-text {
  font-size: 0.85rem;
  color: #6a564b;
}

.info-highlight {
  font-size: 0.9rem;
  font-weight: 600;
  color: #7d0d1a;
}

.price-block {
  display: grid;
  gap: 12px;
}

.price-line {
  display: flex;
  justify-content: space-between;
  background: #f5efe9;
  padding: 10px 14px;
  border-radius: 8px;
}

.price-title {
  font-weight: 600;
}

.price-subtitle {
  font-size: 0.9rem;
  color: #6a6a6a;
}

.price-amount {
  font-size: 1.25rem;
  color: #7d0d1a;
  font-weight: 700;
}

/* ===============================
   GALERIE
   =============================== */

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.gallery-item {
  aspect-ratio: 1/1;
  border-radius: 14px;
  background: #e7ded6;
  position: relative;
  overflow: hidden;
}
.gallery-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;      /* remplit le cadre en recadrant si besoin */
  object-position: 50% 50%; /* centre l’image dans le cadre */
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  transform: translateY(100%);
  transition: 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-title {
  font-size: 1rem;
  font-weight: 600;
  color:white
}

.gallery-text {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ===============================
   FOOTER DE NOËL
   =============================== */

.christmas-footer {
  background: #7d0d1a;
  color: #fff;
  padding-top: 70px;
  padding-bottom: 70px;
}

.footer-title {
  color: #a06c4a;
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.footer-intro {
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1rem;
  opacity: 0.9;
}

.footer-info-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 50px;
  margin-bottom: 50px;
}

.footer-icon-circle {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  margin: 0 auto 14px;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.footer-made {
  font-size: 0.9rem;
}

.footer-heart {
  color: #ffd8bf;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.7;
}
/* ===============================
   RESPONSIVE
   =============================== */

/* Tablette et petits laptops */
@media (max-width: 1024px) {
  .section {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .cards-grid {
    gap: 24px;
  }

  .card-ritual,
  .card-flash,
  .card-exclusive,
  .card-accessory {
    padding: 22px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
    gap: 1.5rem;
  }

  .christmas-hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle-secondary {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-intro {
    font-size: 0.95rem;
  }

  .cards-grid {
    gap: 20px;
  }

  /* Une seule colonne partout sur mobile */
  .cards-grid-2,
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }

  .card-ritual,
  .card-flash,
  .card-exclusive,
  .card-accessory {
    padding: 18px;
  }

  /* Footer des cartes : pile au lieu de côte à côte */
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-price,
  .card-price-lg {
    align-self: flex-end;
  }

  .footer-title {
    font-size: 1.8rem;
  }

  .footer-intro {
    font-size: 0.95rem;
  }

  .footer-info-grid {
    margin-top: 32px;
    margin-bottom: 32px;
  }
}

/* Très petit mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle-secondary {
    max-width: 100%;
  }

  .btn,
  .btn-secondary,
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-description,
  .card-details {
    font-size: 0.9rem;
  }
}

.card-image , .card-image-coffret{
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
   width: 100%;
  height: 300px; /* hauteur identique pour toutes */
  overflow: hidden;
  border-radius: 0.75rem;
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
 
}

.card-image-coffret img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: 50% 60%;
}


@media (max-width: 768px) {
  .card-image {
    height: 160px;
  }
}


/* Bouton par carte */
.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background-color: #b91c1c;   /* rouge Noël */
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.card-cta:hover {
  background-color: #7f1111;
  transform: translateY(-1px);
}