/* * CSS PERSONNALISÉ FAQ - ABL
 * Design technique et épuré (Blanc / Bleu azur / Ombres douces)
 */

/* 1. Variables de couleurs ABL */
.e-n-accordion {
    --abl-blue: #3B82F6; /* Le bleu azur des boutons/icônes (à ajuster avec ta couleur exacte) */
    --abl-blue-light: #EDF5FF; /* Bleu très pâle pour les fonds d'icônes */
    --abl-dark: #111827; /* Noir/Gris très foncé pour les titres */
    --abl-gray: #4B5563; /* Gris de lecture pour le texte */
}

/* 2. Style global de la carte (fermée par défaut) */
.e-n-accordion-item {
    background-color: #ffffff;
    border-radius: 12px; /* Coins arrondis comme les cartes de services */
    margin-bottom: 20px !important;
    border: 1px solid transparent; /* Prépare le terrain pour la bordure au survol/clic */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); /* Ombre douce globale */
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Effet au survol de la carte entière */
.e-n-accordion-item:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.08); /* L'ombre se teinte très légèrement de bleu */
    transform: translateY(-2px);
}

/* 3. L'en-tête (La question) */
.e-n-accordion-item-title {
    padding: 24px 30px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: transparent;
}

/* Nettoyage des puces natives du navigateur */
.e-n-accordion-item-title::-webkit-details-marker { display: none; }
.e-n-accordion-item-title { list-style: none; }

/* Texte de la question */
.e-n-accordion-item-title-text {
    font-weight: 600; /* Moins gras que S3DE, plus moderne/aéré */
    font-size: 1.15rem;
    color: var(--abl-dark);
    transition: color 0.3s ease;
}

/* 4. Style quand l'accordéon est OUVERT */
.e-n-accordion-item[open] {
    /* La carte s'entoure de bleu, comme ta carte "Solutions de froid" dans la maquette */
    border-color: var(--abl-blue); 
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.12);
}

.e-n-accordion-item[open] .e-n-accordion-item-title-text {
    color: var(--abl-blue); /* Le titre passe en bleu azur */
}

/* 5. L'icône (+ / -) */
.e-n-accordion-item-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; /* Un peu plus grand pour correspondre aux proportions de tes pastilles */
    height: 44px;
}

/* 6. Le contenu de la réponse (Texte) */
.e-n-accordion-item > div[role="region"] {
    padding: 0 30px 30px 30px !important; /* Pas de padding top, l'espace est géré par le titre */
    color: var(--abl-gray);
    line-height: 1.7;
    font-size: 1rem;
    
    /* Pour éviter que le texte soit coupé */
    overflow: visible !important; 
    max-height: none !important; 
}

/* Animation d'ouverture fluide */
.e-n-accordion-item:not([open]) > div[role="region"] {
    display: none;
}

.e-n-accordion-item[open] > div[role="region"] {
    display: block;
    animation: fadeInAbl 0.4s ease;
}

@keyframes fadeInAbl {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* On définit le conteneur pour masquer le surplus */
.text-slide {
    overflow: hidden;
    white-space: nowrap;
}

/* On anime le titre */
.text-slide .elementor-heading-title {
    display: inline-block;
    padding-left: 0;
    animation: marquee-infinite 30s linear infinite;
}

/* L'astuce : on sfait défiler de 0 à -50% (si le texte est doublé) */
@keyframes marquee-infinite {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.card-expertise {
    position: relative; 
    isolation: isolate;
    transition: all 0.3s ease-in-out !important; 
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px !important;
    padding: 30px !important; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); 
}

.card-expertise:hover {
    transform: translateY(-8px) !important; 
    border: 1px solid #0198DD !important; 
    box-shadow: 0 15px 30px rgba(52, 122, 169, 0.2), 0 5px 10px rgba(0, 0, 0, 0.1) !important; 
}

.card-expertise:hover .elementor-button-text {
    color: #0198DD !important; 
}

.google-review-widget {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #FCFCFC !important;
    
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    
    /* Style de la boîte */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 25px !important; 
    display: flex;
    flex-direction: row; 
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.google-review-widget p, 
.google-review-widget span, 
.google-review-widget div {
    color: #ffffff !important;
}

.card {
    position: relative; 
    isolation: isolate;
    transition: all 0.3s ease-in-out !important; 
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px !important;
    padding: 30px !important; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); 
}

.card:hover {
    transform: translateY(-8px) !important; 
    border: 1px solid #0198DD !important; 
    box-shadow: 0 15px 30px rgba(9, 90, 211, 0.2), 0 5px 10px rgba(0, 0, 0, 0.1) !important; 
    cursor: pointer;
}

