/* Couleur principale – vert forêt */
:root {
  --primary-green: #218838;
}

/* Top header */
.top-header {
  background-color: var(--primary-green);
}

.top-header .site-tagline {
  font-size: 0.85rem;
  color: #e0f0e5;
}

.welcome-text {
  font-size: 0.9rem;
}

/* Liens nav */
.navbar-nav .nav-link {
  font-weight: 500;
  color: #555;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-green);
  border-bottom: 2px solid var(--primary-green);
}

/* Bouton outline clair personnalisé */
.btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: var(--primary-green);
  --bs-btn-hover-border-color: #fff;
}

/* Section héros prévue pour index.php (exemple) */
.hero {
  background: url('../img/hero.png') center center / cover no-repeat;
  min-height: 100vh;
  /* plein écran */
  text-align: center;
  padding: 100px 15px;
  position: relative;
}

.hero h1,
.hero p {
  z-index: 1;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  /* assombrir l’image pour lire le texte */
  z-index: 0;
}

/* Bouton CTA (call-to-action) */
.btn-cta {
  color: var(--primary-green);
  background-color: #fff;
  transition: all .25s ease-in-out;
  position: relative;
  /* place le bouton dans un nouveau contexte */
  z-index: 1;
  /* le met au-dessus du voile */
}

.btn-cta:hover,
.btn-cta:focus {
  color: #fff;
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

/* ====== Animation boîtes Catégories ====== */
.cat-card {
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
  /* garde l’effet à l’intérieur */
}

/* Effet “blur vert” avec pseudo-élément */
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  /* couvre toute la boîte */
  border: 2px solid transparent;
  /* bordure invisible par défaut */
  border-radius: inherit;
  transition: border-color .25s ease, box-shadow .25s ease;
  pointer-events: none;
  /* ne bloque pas le survol */
}

.cat-card:hover {
  transform: translateY(-4px) scale(1.03);
  /* léger soulèvement */
}

.cat-card:hover::after {
  border-color: rgba(33, 136, 56, 0.55);
  /* vert forêt */
  box-shadow: 0 0 12px 4px rgba(33, 136, 56, 0.45);
  /* halo flou */
}

/* Icône plus vive au survol */
.cat-card i {
  transition: color .25s ease, transform .25s ease;
}

.cat-card:hover i {
  color: var(--primary-green);
  transform: scale(1.2) rotate(-5deg);
}

/* Animation de base */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cat-card {
  opacity: 0;
  /* caché tant qu’aucune classe “visible” */
  transform: translateY(30px);
  transition: opacity .4s ease, transform .4s ease;
}

/* Quand on ajoute .visible, on lance l’animation */
.cat-card.visible {
  animation: fadeInUp .6s forwards;
}

/* Bordure ondulée supérieure */
.custom-wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.custom-wave-top svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* Icônes des étapes */
.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  background-color: #e9f7ef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation (facultative) */
.timeline-steps .col-md-3 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp .6s ease forwards;
}

.timeline-steps .col-md-3:nth-child(1) {
  animation-delay: 0.1s;
}

.timeline-steps .col-md-3:nth-child(2) {
  animation-delay: 0.3s;
}

.timeline-steps .col-md-3:nth-child(3) {
  animation-delay: 0.5s;
}

.timeline-steps .col-md-3:nth-child(4) {
  animation-delay: 0.7s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bordure inférieure ondulée (inversée) */
.custom-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.custom-wave-bottom svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* Section Comment vendre – hauteur min + espacement */
section.timeline-section {
  min-height: 80vh;
  /* donne de la hauteur (80% de l'écran) */
  padding-top: 100px;
  /* espace interne haut */
  padding-bottom: 100px;
  /* espace interne bas */
  position: relative;
}

/* Titre avec espacement haut supplémentaire */
.timeline-section h2 {
  margin-top: 20px;
  /* espace au-dessus du titre */
}

/* Ligne horizontale entre les étapes */
.timeline-steps {
  position: relative;
  padding-top: 40px;
  padding-bottom: 40px;
}

.timeline-steps::before {
  content: "";
  position: absolute;
  top: 64px;
  /* position verticale alignée aux icônes */
  left: 10%;
  right: 10%;
  height: 3px;
  background-color: #21883833;
  /* vert forêt transparent */
  z-index: 0;
}

/* Icônes au-dessus de la ligne */
.timeline-steps .step-icon {
  position: relative;
  z-index: 1;
  background-color: #e9f7ef;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #21883855;
}

/* Dégradé animé Stripe-style */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.custom-wave-top svg path,
.custom-wave-bottom svg path {
  fill: url(#gradientWave);
}

.custom-wave-top svg,
.custom-wave-bottom svg {
  display: block;
  width: 100%;
  height: 25px;
  /* Réduit de 80px à 40px */
}

.btn-success {
  background-color: #218838;
  border-color: #218838;
}

.btn-success:hover {
  background-color: #1a6e2e;
  border-color: #1a6e2e;
}

/* Animation dropdown menu */
@keyframes dropdownFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu {
  animation: dropdownFadeIn 0.3s ease forwards;
  transform-origin: top;
}

/* ---- Effet verre dépoli sur le menu ---- */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.7);
  /* translucide */
  backdrop-filter: blur(8px);
  /* flou */
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: dropdownFadeIn 0.35s ease forwards;
  transform-origin: top;
}

/* Animation déjà définie précédemment
@keyframes dropdownFadeIn { … }
*/

/* ---- Highlight “lumière” sur chaque item ---- */
/* -------- Animation hover sous-catégories -------- */
.dropdown-menu .dropdown-item {
  position: relative;
  transition: color .25s ease, transform .25s ease;
  transform: translateX(0);
  /* position d’origine */
}

/* Effet au survol ou focus clavier */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: transparent !important;
  /* enlève le fond */
  color: var(--primary-green);
  /* garde la couleur verte */
  transform: translateX(6px);
  /* conserve le glissement */
  text-shadow: 0 0 6px rgba(33, 136, 56, .35);
}

.dropdown-menu .dropdown-item:hover::before,
.dropdown-menu .dropdown-item:focus::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Option : petit halo lumineux */
.dropdown-menu .dropdown-item:hover {
  text-shadow: 0 0 6px rgba(33, 136, 56, 0.45);
}

.card.pricing-box {
  transition: all 0.3s ease-in-out;
  border: 1px solid #e0e0e0;
}

.card.pricing-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 4px rgba(94, 199, 117, 0.3) !important;
  /* halo vert */
  border-color: #218838;
  /* bordure verte */
}

.about-cards-section {
  position: relative;
  overflow: hidden;
  color: #212529;
  /* texte “dark” Bootstrap */
}

/* --- Image de fond indépendante --- */
.about-cards-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/blur-img.jpg') center/cover no-repeat;
  z-index: -2;
  /* sous tout le contenu + les tranches */
}

/* --- Tranches diagonales (couleur du site) --- */
.about-cards-section::after,
.about-cards-section::before-image {
  /* helper virtuel */
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 90px;
  background: #f8f9fa;
  /* même couleur que la section suivante/précédente */
  z-index: -1;
}

.about-cards-section::before-image {
  top: -45px;
  transform: skewY(-4deg);
  transform-origin: top left;
}

.about-cards-section::after {
  bottom: -45px;
  transform: skewY(4deg);
  transform-origin: bottom left;
}

/* Animation carte au survol */
.about-cards-section .card {
  transition: transform .3s ease, box-shadow .3s ease;
}

.about-cards-section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

/* Rond icône */
.about-cards-section .icon {
  width: 60px;
  height: 60px;
  background: #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.top-header .logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 576px) {
  .top-header .container {
    flex-direction: column;
    text-align: center;
  }

  .top-header .container>div {
    justify-content: center !important;
    margin-bottom: 10px;
  }

  .top-header .welcome-text {
    display: block;
    width: 100%;
    margin-bottom: 5px;
  }

  .top-header form {
    width: 100%;
    justify-content: center;
    margin-top: 5px;
  }
}

.selected-thumbnail {
  border: 3px solid #28a745 !important;
  /* Vert Bootstrap */
  box-shadow: 0 0 10px #28a745;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

/* Image contenue proprement */
.card-img-top {
  height: 200px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #f9f9f9;
  padding: 10px;
  border-bottom: 1px solid #eee;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Effet zoom + halo vert flou au survol de la carte entière */
.card:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 10px 4px rgba(0, 255, 100, 0.4),
    0 0 20px 8px rgba(0, 255, 100, 0.3),
    0 0 40px 12px rgba(0, 255, 100, 0.2) !important;
  z-index: 3;
  background-color: #fff;
  /* facultatif, mais ça aide à voir le halo */
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background-color: #fff;
  padding: 20px;
  z-index: 9999;
  border: 1px solid #e0e0e0;
  display: none;
}

.security-notice {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border: 2px solid #28a745;
  padding: 20px 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  animation: fadeIn 0.4s ease-in-out;
}

.security-notice h5 {
  font-weight: bold;
  color: #155724;
}

.security-notice p {
  margin-top: 10px;
  font-size: 15px;
  color: #333;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.d-none {
  display: none !important;
}

/* Le burger doit rester cliquable au-dessus du collapse */
.navbar,
.navbar .navbar-toggler {
  z-index: 1061;
}

.navbar .navbar-collapse {
  z-index: 1060;
}

.modal {
  z-index: 2000 !important;
}

.modal-backdrop {
  z-index: 1990 !important;
}

.header,
.navbar,
.site-header {
  z-index: 1200 !important;
}


.top-header {
  position: relative;              
  z-index: 1300 !important;        
}

.top-header .dropdown-menu {
  z-index: 2001 !important;        
  margin-top: .25rem;              
}

.top-header,
.top-header .container,
.top-header .auth-search,
.top-header .logo-container {
  overflow: visible !important;
}
