/* ==========================================================================
   CoeurFusion - Surcharges CSS pour les sections Elementor
   Méthode recommandée : dans l'éditeur Elementor, sélectionnez le widget
   ou la section > onglet "Avancé" > "CSS Classes" > ajoutez une classe
   personnalisée (ex: cf-section-hero). Ciblez ensuite CETTE classe ici,
   plutôt que les classes internes .elementor-widget-xxx qui peuvent
   changer avec les mises à jour d'Elementor.
   ========================================================================== */

/* Exemple : une section "hero" personnalisée */
.cf-section-hero {
    background-color: var(--cf-light);
}

/* Exemple : un bouton d'appel à l'action custom */
.cf-cta-button {
    background-color: var(--cf-primary);
    border-radius: 30px;
    padding: 14px 32px;
}

/* ==========================================================================
   Page d'accueil - éléments réels identifiés
   ========================================================================== */

/* Boutons "S'inscrire" / "Se connecter" (classe .elementor-button,
   générique à tous les boutons Elementor du site) */
.elementor-button {
    border-radius: 30px;
    background-color: var(--cf-primary);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.elementor-button:hover {
    background-color: var(--cf-secondary);
    transform: translateY(-2px);
}

/* Titre du hero "L'amour commence ici" */
.elementor-heading-title {
    color: var(--cf-dark);
}

/* ==========================================================================
   Carrousel de photos - amélioration visuelle
   ========================================================================== */

/* Effet de fondu sur les bords gauche/droit, façon "vitrine" */
.elementor-image-carousel-wrapper {
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

/* Chaque photo : coins arrondis, ombre douce, petit espace visuel */
.elementor-image-carousel-wrapper .swiper-slide-inner {
    margin: 0;      /* annule la marge par défaut du navigateur sur <figure> (40px !) */
    padding: 0 6px;
    width: 100%;
    height: 100%;
}

.elementor-image-carousel-wrapper .swiper-slide-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Léger zoom + ombre plus marquée au survol d'une photo */
.elementor-image-carousel-wrapper .swiper-slide:hover .swiper-slide-inner img {
    transform: scale(1.04);
    box-shadow: 0 8px 22px rgba(167, 74, 170, 0.25);
}

/* Flèches de navigation : rondes, blanches, rose au survol */
.elementor-swiper-button {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: var(--cf-primary);
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    /* Elementor masque l'icône par défaut et ne l'affiche qu'au survol :
       inutile sur mobile/tactile. On force l'affichage permanent. */
    opacity: 1 !important;
    visibility: visible !important;
}

.elementor-swiper-button svg {
    width: 16px;
    height: 16px;
    opacity: 1 !important;
}

.elementor-swiper-button:hover {
    background-color: var(--cf-primary);
    color: #ffffff;
    transform: scale(1.08);
}

/* ==========================================================================
   Section "Pourquoi choisir CoeurFusion ?" - liste compacte horizontale
   Adapté à une colonne étroite (icône à gauche, texte à droite)
   ========================================================================== */

.cf-benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cf-benefit-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
}

.cf-benefit-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(167, 74, 170, 0.15);
}

/* Icône dans un rond rose (au lieu du bleu par défaut) */
.cf-benefit-card .elementor-icon-box-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.cf-benefit-card .elementor-icon-box-icon .elementor-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(167, 74, 170, 0.12); /* rose très clair */
    border-radius: 50%;
    color: var(--cf-primary);
}

.cf-benefit-card .elementor-icon-box-icon i,
.cf-benefit-card .elementor-icon-box-icon svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--cf-primary);
    fill: var(--cf-primary);
}

/* Bloc titre + texte, aligné à gauche à côté de l'icône */
.cf-benefit-card .elementor-icon-box-content {
    text-align: left;
}

.cf-benefit-card .elementor-icon-box-title {
    color: var(--cf-dark);
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 2px;
}

.cf-benefit-card .elementor-icon-box-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}
