/* ============================================================
   1. STRUCTURE ET GRILLE (HOME PAGE)
   ============================================================ */
.page-home .no-gutters {
    margin-right: 0;
    margin-left: 0;
}
.page-home .no-gutters > [class*='col-'] {
    padding-right: 0;
    padding-left: 0;
}

/* ============================================================
   2. ÉLÉMENTS DE SERVICES (ICÔNES ET TEXTES)
   ============================================================ */

/* --- Le Cercle (Icon Box) - Fixé pour rester rond en RTL --- */
.page-home .icon-box {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important; /* Empêche l'écrasement en ovale */
    background-color: #2f89fc !important; 
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 15px !important;
    transition: all 0.4s ease;
    border: 2px solid #2f89fc !important;
    flex-shrink: 0 !important; /* Force le rond parfait */
}

/* --- L'icône interne (Font & Image) --- */
.page-home .icon-box span {
    font-size: 35px !important;
    color: #ffffff !important;
    line-height: 1 !important;
}

.page-home .img-implant {
    filter: brightness(0) invert(1);
    width: 55px !important;
    height: auto !important;
    transition: all 0.3s ease;
}

/* --- Le Titre (H3) --- */
.page-home .custom-service-item h3 {
    color: #ffffff !important; 
    font-size: 15px;
    margin-top: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center !important;
    width: 100%;
}

/* ============================================================
   3. EFFETS AU SURVOL (HOVER)
   ============================================================ */
.page-home .custom-service-item:hover .icon-box {
    background-color: #00a8ff !important;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 123, 255, 0.3);
    animation: pulse 1s infinite; 
}

.page-home .custom-service-item:hover .img-implant {
    filter: invert(53%) sepia(87%) saturate(3000%) hue-rotate(202deg) brightness(101%) contrast(99%);
}

.page-home .custom-service-item:hover h3 {
    color: #81d4fa !important;
}

/* ============================================================
   4. FIX MODE ARABE (RTL) - ALIGNEMENT ET DOCTEUR
   ============================================================ */

[dir="rtl"] .page-home .custom-service-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* Centrage Carte Docteur Mouna */
[dir="rtl"] .page-home .staff .info,
[dir="rtl"] .page-home .staff .info h3,
[dir="rtl"] .page-home .staff .info .position,
[dir="rtl"] .page-home .staff .info p {
    text-align: center !important;
}

[dir="rtl"] .page-home .staff .img {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Réseaux Sociaux */
[dir="rtl"] .page-home .staff .ftco-social {
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    flex-direction: row !important;
}

[dir="rtl"] .page-home .staff .ftco-social li {
    float: none !important;
    margin: 0 10px !important;
}

/* Section About (Espace icône/texte) */
[dir="rtl"] .page-home .about-wrap .list-services .icon {
    margin-left: 25px !important; 
    margin-right: 0 !important;
}

[dir="rtl"] .page-home .about-wrap .list-services .text {
    padding-right: 10px !important;
    text-align: right !important;
}


/* --- ÉGALISATION DES TAILLES --- */

/* Pour les images (Ortho / Chirurgie) */
.page-home .icon-box .img-implant {
    width: 45px !important;  /* On réduit pour laisser de l'espace dans le cercle */
    height: 45px !important;
    object-fit: contain !important;
}

/* Pour les icônes Flaticon (Odonto / Détartrage) */
.page-home .icon-box span[class^="flaticon-"] {
    font-size: 30px !important; /* On harmonise avec les 45px de l'image */
    line-height: 1 !important;
    display: block !important;
}

/* --- FIX SPÉCIFIQUE ARABE (RTL) --- */
[dir="rtl"] .page-home .custom-service-item h3 {
    font-size: 14px !important; /* Un peu plus petit pour éviter les retours à la ligne brusques */
    margin-top: 12px !important;
    line-height: 1.3 !important;
    font-weight: 700;
}