/*
Theme Name: Divi Child
Theme URI: https://fabien-seo.com
Description: Thème enfant de divi par Fabien SEO
Author: Fabien SCHNEIDER - Fabien SEO
Author URI: https://fabien-seo.com
Template: Divi
Version: 1.0
*/

:root {
    --primary-color: #2c3e50;
    --accent-color: #abca88;
    --bg-color: #f4f7f6;
    --text-muted: #7f8c8d;
}

.pricing-container {
    display: flex;
    flex-direction: row; /* Aligne en ligne */
    flex-wrap: nowrap;    /* Empêche le retour à la ligne sur desktop */
    gap: 15px;            /* Espace entre les cartes */
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    align-items: stretch; /* Force toutes les cartes à avoir la même hauteur */
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    /* On utilise flex-basis pour répartir équitablement l'espace */
    flex: 1 1 0; 
    min-width: 220px; 
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    text-align: center; /* Centre le texte pour un look plus "pro" */
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 10;
}
/*
.pricing-card.highlighted {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.pricing-card.highlighted:hover {
    transform: scale(1.05) translateY(-10px);
}*/

.price {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

.price span {
    font-size: 0.8rem;
    display: block; /* Met le "TTC" en dessous pour gagner de la largeur */
    color: var(--text-muted);
	margin-top: 10px;
}

.card-content {
    flex-grow: 1;
    margin-bottom: 20px;
}

.condition {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}
.cta-button a {
    color: white;
}

.cta-button:hover {
    background-color: var(--accent-color);
}

/* --- Responsive : Passage en colonne sur tablettes et mobiles --- */
@media (max-width: 1024px) {
    .pricing-container {
        flex-wrap: wrap; /* Permet de passer à la ligne si l'écran est trop petit */
    }
    
    .pricing-card {
        flex: 1 1 45%; /* 2 cartes par ligne sur tablette */
    }
}

@media (max-width: 600px) {
    .pricing-card {
        flex: 1 1 100%; /* 1 seule carte par ligne sur mobile */
    }
}

/* 1. Conteneur principal avec les ombres de fondu sur les côtés */
.logo-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0; /* Un peu d'espace vertical */
}

/* 2. Zone du slider qui détecte le survol */
.logo-slider {
  position: relative;
  width: 100%;
  cursor: pointer;
}

/* 3. Le rail qui contient les logos et s'anime */
.logo-track {
  display: flex;
  width: max-content;
  align-items: center;
  /* Vitesse identique pour tous les sliders : 35s */
animation: scrollLeft var(--scroll-speed, 35s) linear infinite;
  will-change: transform;
}

/* 4. ARRÊT DU DÉFILEMENT AU SURVOL */
.logo-slider-wrapper:hover .logo-track {
  animation-play-state: paused;
}

/* 5. Style de chaque logo */
.logo-item {
  flex: 0 0 auto;
  padding: 0 40px; /* Espacement horizontal constant entre les logos */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Petit effet visuel au survol d'un logo spécifique */
.logo-item:hover {
  transform: scale(1.05); /* Zoom léger pour indiquer que c'est cliquable */
}

.logo-item img {
  max-height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: grayscale(20%); /* Optionnel : rend les logos plus homogènes */
  transition: filter 0.3s ease;
}

.logo-item:hover img {
  filter: grayscale(0%); /* Le logo reprend ses couleurs d'origine au survol */
}

/* 6. L'animation de défilement */
@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* On décale de la moitié car le contenu est doublé en JS */
  }
}

/* 7. Effet de dégradé (Fade) sur les bords gauche et droit */
.logo-slider-wrapper::before,
.logo-slider-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none; /* Laisse passer le clic à travers le dégradé */
}

.logo-slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.logo-slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* 8. Adaptations Mobiles */
@media (max-width: 768px) {
  .logo-item {
    padding: 0 20px;
  }
  .logo-item img {
    max-height: 50px;
  }
  .logo-slider-wrapper::before,
  .logo-slider-wrapper::after {
    width: 50px; /* Dégradés plus petits sur mobile */
  }
}