/* ===================================================================
   CSS CUSTOM FINAL - CORRECTIONS CIBLES (16/02/2026)
   =================================================================== */

/* ===================================================================
   3 CARTES "Our Organization" - JUSTIFICATION TOTALE + ESPACE REDUIT
   =================================================================== */
#mw-element-1768568620784 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.row [class*="col-md-4"].voh.cloneable {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    margin-bottom: 20px !important; /* Espace réduit entre cartes et parallax */
}

.card.card-1 {
    width: 100% !important;
    margin-bottom: 0 !important;
}

.card.card-1 .card__image,
.card.card-1 .card__image img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 auto !important;
}

.card.card-1 .card__body {
    width: 100% !important;
    padding: 20px 0px 25px 0px !important;
    text-align: justify !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important; /* Espace réduit avant parallax */
}

.card.card-1 .card__title h5,
.card.card-1 .card__body p,
.card.card-1 .card__body .allow-drop p {
    text-align: justify !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    hyphens: auto !important;
    hyphenate-limit-chars: 5 2 2 !important;
}

.card.card-1 .card__title h5 {
    text-align: justify !important;
    margin-bottom: 15px !important;
    display: block !important;
}

.row .voh.cloneable:last-child {
    margin-bottom: 0 !important;
}

/* Suppression espace blanc autour du conteneur principal */
.module.module-layouts[data-type="layouts"] > section.nodrop {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ===================================================================
   PARALLAX - REMONTÉ DE 2 CM + HAUTEUR ÉTENDUE
   =================================================================== */
.background-image-holder#mw-element-1768568620847 {
    height: 62vh !important; /* +2cm (~40px) */
    min-height: 560px !important; /* 500px + 40px */
    background-size: cover !important;
    background-position: center 25% !important;
    margin-top: -20px !important; /* Remonte de 2cm */
}

section.imagebg.safe-mode.section--even.mw-layout-overlay-wrapper.parallax {
    padding-top: 220px !important; /* 80px - 20px position text */
    padding-bottom: 80px !important;
    min-height: 540px !important;
    margin-top: -20px !important; /* Remonte de 2cm */
}

/* ===================================================================
   ESPACE DE 1 CM MAX ENTRE HERO ET "ABOUT NEURONAPS INSTITUTE"
   =================================================================== */
section.page-title.page-title--animate.height-70 {
    margin-bottom: 20px !important; /* 10px = ~1cm */
}

/* ===================================================================
   ÉLARGISSEMENT DU CADRE INVISIBLE DU HERO
   =================================================================== */
span#mw-element-1768142632699.element {
    display: inline-block !important;
    max-width: 100% !important;
    width: auto !important;
    white-space: nowrap !important;
    font-size: 36px !important;
    line-height: 1.1 !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* ===================================================================
   GESTION AMÉLIORÉE DES PUCES (MODIFICATION UNIQUEMENT)
   =================================================================== */

/* Amélioration des listes à puces - espacement et alignement */
p.lead.element span:contains("•"),
.element p:contains("•"),
div:contains("•") p,
span:contains("•") {
    display: block !important;
    margin-bottom: 0.6em !important; /* Espace réduit entre les puces */
    padding-left: 1.8em !important; /* Alignement des puces */
    text-indent: -1.5em !important; /* Alignement du texte après la puce */
    position: relative !important;
}

/* Support pour les puces dans les textes avec IDs spécifiques */
[id*="mw-element-"] span:contains("•"),
[id*="mw-element-"] p:contains("•"),
[id*="mw-element-"] div:contains("•") {
    display: block !important;
    margin-bottom: 0.6em !important;
    padding-left: 1.8em !important;
    text-indent: -1.5em !important;
    position: relative !important;
}

/* ===================================================================
   SÉLECTEURS ÉTENDUS (SANS MODIFIER STYLES EXISTANTS)
   =================================================================== */

/* Extension des sélecteurs pour couvrir tous les contenus Microweber */
[id*="mw-element-"] p,
[id*="mw-element-"] .element p,
[id*="mw-element-"] .allow-drop p,
section[id*="mw-element-"] p,
div[id*="mw-element-"] p,
span[id*="mw-element-"] p {
    /* Hérite des styles existants, ne modifie rien */
}

/* Support pour les conteneurs de texte */
.allow-drop p,
.element p,
.module p,
.safe-mode p {
    /* Hérite des styles existants */
}

/* ===================================================================
   CORRECTIONS SUPPLÉMENTAIRES POUR SÉLECTEURS POLYFILL
   =================================================================== */

/* Alternative pour :contains - ciblage des puces via structure */
p.lead.element span br + span[style*="font-size"],
.element span br + span[style*="font-size"] {
    display: block !important;
    margin-bottom: 0.6em !important;
    padding-left: 1.8em !important;
    position: relative !important;
}

/* Ajout manuel du symbole puce pour les navigateurs sans :contains */
p.lead.element span br + span[style*="font-size"]:before,
.element span br + span[style*="font-size"]:before {
    content: "• " !important;
    position: absolute !important;
    left: 0 !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
}

/* Sélecteurs de secours pour les puces */
span:first-child:contains("•"),
p:first-child:contains("•"),
div:first-child:contains("•") {
    display: block !important;
    margin-bottom: 0.6em !important;
    padding-left: 1.8em !important;
    text-indent: -1.5em !important;
}

/* ===================================================================
   RESPONSIVE - AJUSTEMENTS MINEURS SI NÉCESSAIRE
   =================================================================== */
@media (max-width: 991px) {
    .card.card-1 {
        margin-bottom: 20px !important;
    }
    .card.card-1 .card__image img {
        height: 200px !important;
    }
    
    /* Ajustements responsive pour les puces */
    [id*="mw-element-"] span:contains("•"),
    [id*="mw-element-"] p:contains("•"),
    p.lead.element span:contains("•") {
        padding-left: 1.5em !important;
        text-indent: -1.2em !important;
    }
    
    /* Alternative polyfill en responsive */
    p.lead.element span br + span[style*="font-size"] {
        padding-left: 1.5em !important;
    }
}

@media (max-width: 480px) {
    /* Ajustements pour très petits écrans */
    [id*="mw-element-"] span:contains("•"),
    [id*="mw-element-"] p:contains("•"),
    p.lead.element span:contains("•") {
        padding-left: 1.3em !important;
        text-indent: -1em !important;
        margin-bottom: 0.5em !important;
    }
    
    /* Alternative polyfill pour très petits écrans */
    p.lead.element span br + span[style*="font-size"]:before {
        content: "• " !important;
    }
}

/* ===================================================================
   LIMITES - PROTECTION CONTRE LES DÉBORDEMENTS
   =================================================================== */

/* Empêche les débordements de texte */
[id*="mw-element-"] p,
[id*="mw-element-"] .element,
[id*="mw-element-"] .allow-drop,
.element p,
.allow-drop p {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

/* Protection pour les longs mots */
p, li, .element, .allow-drop {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

/* ===================================================================
   RESPONSIVE ORIGINAL (COMPLÉTÉ)
   =================================================================== */
@media (max-width: 991px) {
    .card.card-1 {
        margin-bottom: 20px !important;
    }
    .card.card-1 .card__image img {
        height: 200px !important;
    }
}