/* =========================
   BASE
========================= */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f6f7f8;
  color: #333;
  line-height: 1.6;
}

/* RÈGLE ULTRA-AGRESSIVE - Supprime TOUT l'espace */
body > *:not(#wpadminbar),
#content-with-messages,
#content-with-messages > *,
#main,
#content,
#primary,
.site-content,
.content-area,
article,
.entry-content,
.elementor,
.elementor-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Force le hero en haut */
.hero {
  margin-top: 0 !important;
  padding-top: 20px !important;
}
/* =========================
   HERO FULLWIDTH
========================= */
.hero {
  width: 100% !important;
  max-width: 100% !important;
  background: #FAF8F3;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  min-height: 250px;
  margin-top: 0px;
  margin-bottom: 60px;
  padding: 20px;
  box-sizing: border-box;
}

.hero, .hero .container {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #766f64;
  margin-bottom: 15px;
}

.hero p {
  font-size: 2rem; !important
  line-height: 1.7;
  margin-bottom: 25px;
}

.hero-btn {
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  background: #8B6F47;
  color: #fff;
  padding: 12px 25px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero-btn:hover {
  background: #5c7c60;
}

/* =========================
   TITRES SECTIONS
========================= */
.section-title {
  text-align: center;
  margin: 60px auto 15px;
  font-size: 2.1rem;
}

.section-subtitle {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 40px;
  color: #555;
}

/* =========================
   CARDS
========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.card-content {
  flex: 1;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #766f64;
  text-align: center;
}

.card-content h3 {
  margin-top: 0;
  text-align: center;
  color: #5c7c60;
}

.card-content p {
  text-align: center;
  margin-bottom: 20px;
}

.cards .btn-card {
  align-self: center;
  margin-top: 15px;
  background: #8B6F47;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cards .btn-card:hover {
  background: #5c7c60;
}

.card-icon i {
  color: #5c7c60;
  transition: color 0.3s ease;
}

/* Optionnel : effet au survol de la card */
.card:hover .card-icon i {
  color: #B666D2; /* couleur survol */
}
/* =========================
   FORMULAIRE
========================= */
#formulaire {
  display: none;
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.09);
  margin-top: 40px;
}

#formulaire .wpforms-container,
#formulaire .wpforms-form {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: none !important;
  margin: 0;
}

#formulaire .wpforms-field {
  margin-bottom: 20px;
}

#formulaire .wpforms-field input,
#formulaire .wpforms-field textarea,
#formulaire .wpforms-field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#formulaire .wpforms-submit {
  background: #8B6F47 !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  font-size: 1.15rem !important;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  border: none !important;
}

#formulaire .wpforms-submit:hover {
  background: #5c7c60 !important;
}

/* =========================
   POPUPS GLASSY
========================= */
/* Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Conteneur */
.popup-content {
  background: rgba(250, 248, 243, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  max-width: 720px;
  width: 92%;
  overflow: hidden;
  animation: popup-fade 0.3s ease;
}

@keyframes popup-fade {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* Header */
.popup-header {
  background: linear-gradient(
    135deg,
    rgba(92,124,96,0.95),
    rgba(118,111,100,0.95)
  );
  padding: 22px;
  text-align: center;
}

.popup-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
}

/* Corps */
.popup-body {
  background: transparent;
  border: 1px solid rgba(92,124,96,0.35);
  border-top: none;
  border-radius: 0 0 22px 22px;
  padding: 32px 30px;
}

/* Liste */
.popup-body ul,
.popup-body li {
  background: transparent !important;
}

.popup-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.popup-body ul li {
  display: flex;
  align-items: flex-start; /* aligne la puce et le texte verticalement */
  gap: 12px; /* espace entre la puce et le texte */
  margin-bottom: 18px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #444;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.45s ease forwards;
}
.popup-body ul li::before {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #8B6F47, #5c7c60);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(139,111,71,0.15);
  margin-top: 0.25em; /* ajuste la verticale */
}

/* Animation cascade */
.popup-body ul li:nth-child(1) { animation-delay: .05s; }
.popup-body ul li:nth-child(2) { animation-delay: .1s; }
.popup-body ul li:nth-child(3) { animation-delay: .15s; }
.popup-body ul li:nth-child(4) { animation-delay: .2s; }
.popup-body ul li:nth-child(5) { animation-delay: .25s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Bouton popup */
.popup-body .btn-card {
  margin-top: 25px;
  background: linear-gradient(135deg, #8B6F47, #5c7c60);
  color: #fff; /* texte en blanc */
  padding: 14px 30px;
  border-radius: 14px;
  font-size: 1.5rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.15rem; }
  .cards { grid-template-columns: 1fr; }
  .popup-header h3 { font-size: 1.5rem; }
  .popup-body ul li { font-size: 1.05rem; }
  .popup-body .btn-card { padding: 10px 20px; font-size: 0.95rem; }
}
