/*
 * AVExperts — reprise de la présentation du site Joomla 3 (template Artisteer
 * « avexperts_091216a », assocoWeb 2016) sur Helix Ultimate.
 * Valeurs relevées dans l'ancienne feuille de style. Chargé automatiquement par Helix.
 */

:root {
    --ave-ardoise: #43586B;      /* texte, bandeau d'en-tête, titres de blocs */
    --ave-ardoise-fonce: #42576A;/* entrée de menu active */
    --ave-orange: #E75D13;       /* h3, survol des liens, sous-menus */
    --ave-orange-clair: #F29864; /* survol des sous-menus */
    --ave-fond: #EDEDED;         /* cadre autour de la page */
    --ave-pied: #43586B;         /* pied de page (bleu ardoise, comme l'en-tête) */
    --ave-texte-bloc: #878787;   /* texte des blocs de la colonne droite */
}

/* ---------- Page ---------- */
body {
    background: var(--ave-fond);
    color: var(--ave-ardoise);
    font-family: Ubuntu, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.body-innerwrapper {
    background: #fff;
    max-width: 1920px;
    margin: 0 auto;
    padding: 10px;
}

/* ---------- En-tête : bandeau ardoise de 200 px ---------- */
.ave-entete {
    background: var(--ave-ardoise);
    min-height: 200px;
    padding: 0 !important;
}
.ave-entete .container,
.ave-entete .container-fluid { padding-top: 0; padding-bottom: 0; }
.ave-entete #sp-logo .sp-column {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    min-height: 200px;
    padding: 10px 20px 10px 360px;    /* place du logo carré et du sigle AVe */
}
/* logo carré « Associated Volunteer Experts » puis sigle « AVe », comme l'ancien en-tête */
.ave-entete #sp-logo .sp-column::before,
.ave-entete #sp-logo .sp-column::after {
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
}
.ave-entete #sp-logo .sp-column::before {
    left: 2%;
    top: 44px;
    width: 118px;
    height: 112px;
    background-image: url("../../../images/avexperts/entete/logo-ave-carre.png");
}
.ave-entete #sp-logo .sp-column::after {
    left: calc(2% + 140px);
    top: 72px;
    width: 153px;
    height: 63px;
    background-image: url("../../../images/avexperts/entete/sigle-ave.png");
}
.ave-entete .logo a,
.ave-entete .logo a:hover,
.ave-entete .logo .logo-text {
    color: #fff !important;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    white-space: normal;
}
.ave-entete .logo-slogan {
    display: block;
    color: #fff !important;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* ---------- Barre de menu : centrée, 55 px, filet noir ---------- */
.ave-menu {
    background: #fff;
    border-bottom: 2px solid #000;
    padding: 2px 0 !important;
}
.ave-menu .sp-megamenu-parent { float: none; justify-content: center; display: flex; flex-wrap: wrap; }
.ave-menu .sp-megamenu-parent > li > a,
.ave-menu .sp-megamenu-parent > li > span {
    color: var(--ave-ardoise);
    font-size: 18px;
    font-weight: 700;
    line-height: 55px;
    padding: 0 15px;
    text-transform: none;
}
.ave-menu .sp-megamenu-parent > li.active > a,
.ave-menu .sp-megamenu-parent > li.current-item > a {
    background: var(--ave-ardoise-fonce);
    color: #fff;
}
.ave-menu .sp-megamenu-parent > li:hover > a { color: var(--ave-orange); }
.ave-menu .sp-megamenu-parent > li.active:hover > a { color: #fff; }
/* sous-menus orange, texte blanc gras 16 px */
.ave-menu .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
    background: var(--ave-orange);
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}
.ave-menu .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
.ave-menu .sp-megamenu-parent .sp-dropdown li.sp-menu-item > span {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 35px;
    padding: 0 28px;
    white-space: nowrap;
}
.ave-menu .sp-megamenu-parent .sp-dropdown li.sp-menu-item:hover > a,
.ave-menu .sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a {
    background: var(--ave-orange-clair);
    color: var(--ave-ardoise-fonce);
}
/* sélecteur de langue à droite de la barre, comme l'ancien « extra2 » */
.ave-menu #sp-top3 { display: flex; align-items: center; justify-content: flex-end; }
.ave-menu #sp-top3 ul { margin: 0; }

/* ---------- Contenu ---------- */
#sp-main-body { padding: 20px 0; }
.article-details, .blog, .item-page { color: var(--ave-ardoise); }
h1, .h1 { color: #424242; font-size: 30px; font-weight: 400; }
h2, .h2 { color: var(--ave-ardoise); font-size: 28px; font-weight: 400; }
h3, .h3 { color: var(--ave-orange); font-size: 22px; font-weight: 400; }
h4, .h4 { font-size: 24px; font-weight: 400; }
h5, .h5 { font-size: 20px; font-weight: 400; }
h6, .h6 { font-size: 16px; font-weight: 400; }
.article-header h1, .article-header h2, .page-header h1 { color: #404040; font-size: 26px; }
#sp-component a:not(.btn):not(.dropdown-item) { color: var(--ave-ardoise); text-decoration: underline; }
#sp-component a:not(.btn):not(.dropdown-item):hover { color: var(--ave-orange); text-decoration: none; }
/* l'accueil a été mis en forme avec des tableaux et des styles en ligne : on le laisse respirer */
#sp-component img { max-width: 100%; height: auto; }
/* les mises en page par tableau (accueil) gardent la taille de leurs images */
@media (min-width: 992px) { #sp-component table img { max-width: none; } }

/* carrousel de l'accueil (position content-top) — animé par custom.js */
.ave-carrousel { position: relative; margin-bottom: 20px; }
.ave-carrousel img { display: block; width: 100%; height: auto; }
.ave-carrousel--actif .ave-carrousel__scene { position: relative; aspect-ratio: 1380 / 320; overflow: hidden; background: #43586B; }
.ave-carrousel--actif .ave-carrousel__image {
    position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none;
    object-fit: cover; opacity: 0; transition: opacity .8s ease;
}
.ave-carrousel--actif .ave-carrousel__image.est-visible { opacity: 1; }
.ave-carrousel__fleche {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .35); color: #fff; font-size: 30px; line-height: 40px; cursor: pointer;
}
.ave-carrousel__fleche:hover, .ave-carrousel__fleche:focus-visible { background: var(--ave-orange); }
.ave-carrousel__fleche--precedent { left: 10px; }
.ave-carrousel__fleche--suivant { right: 10px; }
.ave-carrousel__points { display: flex; justify-content: center; gap: 8px; padding: 10px 0 0; }
.ave-carrousel__points button {
    width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%;
    background: #c7ced4; cursor: pointer;
}
.ave-carrousel__points button.est-actif { background: var(--ave-orange); }
@media (prefers-reduced-motion: reduce) {
    .ave-carrousel--actif .ave-carrousel__image { transition: none; }
}

/* fil d'Ariane */
#sp-content-top .breadcrumb { background: none; padding: 6px 0; margin-bottom: 10px; font-size: 13px; }

/* ---------- Colonne de droite : blocs à bandeau ardoise ---------- */
#sp-right .sp-module { margin-bottom: 16px; border: 0; padding: 0; }
#sp-right .sp-module .sp-module-title {
    background: var(--ave-ardoise);
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 4px;
    padding: 6px 20px;
}
#sp-right .sp-module .sp-module-content {
    color: var(--ave-texte-bloc);
    padding: 10px;
}
#sp-right .sp-module .sp-module-content a { color: var(--ave-texte-bloc); }
#sp-right .sp-module .sp-module-content a:hover { color: var(--ave-orange); }

/* ---------- Pied de page : 3 colonnes sur fond sombre ---------- */
.ave-bas { background: var(--ave-pied); color: #fff; font-size: 16px; padding: 30px 0 !important; }
.ave-bas .sp-module-title { color: #fff; font-size: 18px; }
.ave-bas a, .ave-bas a:visited, .ave-bas .sp-module-content a { color: #fff !important; text-decoration: none; }
.ave-bas a:hover { color: var(--ave-orange-clair); }
.ave-bas ul { list-style: none; padding-left: 0; }
.ave-bas ul li::before { content: "▸"; margin-right: 8px; font-size: 12px; }
.ave-bas h1, .ave-bas h2, .ave-bas h3 { color: #fff; font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.ave-bas p { margin: 0 0 6px; }
.ave-pied { background: var(--ave-pied); color: #bbb; font-size: 13px; padding: 10px 0 !important; border-top: 1px solid #444; }
.ave-pied a { color: #ddd; }

/* ---------- Petits écrans ---------- */
@media (max-width: 991px) {
    .ave-entete #sp-logo .sp-column { padding-left: 160px; min-height: 140px; align-items: flex-start; text-align: left; }
    .ave-entete #sp-logo .sp-column::after { display: none; }
    .ave-entete #sp-logo .sp-column::before { top: 20px; width: 100px; height: 95px; }
    .ave-entete .logo a, .ave-entete .logo .logo-text { font-size: 24px; }
    .ave-entete .logo-slogan { font-size: 15px; }
    .ave-entete { min-height: 140px; }
}
@media (max-width: 575px) {
    .ave-entete #sp-logo .sp-column { padding-left: 16px; padding-top: 110px; min-height: 0; padding-bottom: 16px; }
    .ave-entete #sp-logo .sp-column::before { left: 16px; top: 10px; width: 90px; height: 86px; }
}

@media (max-width: 767px) {
    .ave-carrousel--actif .ave-carrousel__scene { aspect-ratio: 16 / 9; }
}
/* corps et pied en pleine largeur (comme l'ancienne « feuille » Artisteer), avec des marges */
.ave-corps > .row, .ave-bas > .row { margin-left: 0; margin-right: 0; }
.ave-corps { padding: 0 25px !important; }
.ave-bas { padding-left: 25px !important; padding-right: 25px !important; }

/* ---------- Retouches après comparaison avec le site actuel ---------- */
/* fil d'Ariane sans fond, comme « Vous êtes ici : Accueil ▸ … » */
.mod-breadcrumbs__wrapper .breadcrumb,
.mod-breadcrumbs { background: none !important; padding: 4px 0 !important; margin-bottom: 8px; font-size: 14px; }

/* articles et listes du blog : cadre fin aux coins arrondis (ancien « art-post ») */
.article-details,
.article-list .article {
    border: 1px solid rgba(67, 88, 107, .2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
}
.article-list .article-header h2 a,
.article-list .article-header h2 a:hover {
    color: #595959;
    text-decoration: none !important;
    font-size: 26px;
}
.featured-article-badge { display: none; }

/* « Lire la suite » : bandeau orange, texte blanc gras */
.readmore a,
.readmore a:hover {
    display: inline-block;
    background: var(--ave-orange);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    padding: 4px 18px;
    margin-top: 10px;
}
.readmore a:hover { background: var(--ave-ardoise); }

/* puces carrées orange dans le contenu (ancien « postbullets ») */
#sp-component ul { list-style: square; }
#sp-component ul li::marker { color: var(--ave-orange); }

/* colonne de droite : liste compacte, pays en rouge, articles en gras à puce orange */
#sp-right .sp-module ul { list-style: none; padding-left: 0; margin: 0; }
#sp-right .sp-module ul > li { border: 0 !important; padding: 1px 0 !important; line-height: 1.45 !important; }
#sp-right .mod-articles-category-group {
    color: #c70f31;
    text-transform: uppercase;
    margin: 12px 0 2px;
}
#sp-right .mod-articles-category-group::before { content: "\25B8"; color: var(--ave-orange); display: block; font-size: 12px; }
#sp-right ul ul > li { padding-left: 14px !important; position: relative; }
#sp-right ul ul > li::before { content: "\25B8"; color: var(--ave-orange); position: absolute; left: 0; font-size: 12px; top: 2px; }
#sp-right .sp-module-content a.mod-articles-category-title,
#sp-right .sp-module-content .menu a {
    color: var(--ave-ardoise) !important;
    font-weight: 700;
}
#sp-right .sp-module-content a:hover { color: var(--ave-orange) !important; }
/* Helix impose 36 px de hauteur de ligne aux liens des modules : on revient au texte courant */
#sp-right .sp-module ul li a { display: inline; line-height: 1.45 !important; padding: 0 !important; }
#sp-right ul ul > li::before { font-size: 13px; top: 1px; }
#sp-right .sp-module ul ul > li { padding-left: 16px !important; }

/* ---------- Téléphone ---------- */
/* bouton de menu mobile, à droite de la barre */
.ave-menu #offcanvas-toggler { margin-left: auto; padding: 10px 12px; }
.ave-menu #offcanvas-toggler .burger-icon span { background-color: var(--ave-ardoise); }
@media (max-width: 991px) {
    .ave-menu > .row { flex-wrap: nowrap; align-items: center; }
    .ave-menu #sp-menu { order: 2; width: auto; flex: 0 0 auto; }
    .ave-menu #sp-top3 { order: 1; flex: 1 1 auto; justify-content: flex-start; }
}
/* le bandeau de l'accueil est un tableau de mise en page : on l'empile sur petit écran */
@media (max-width: 767px) {
    body.itemid-103 #sp-component table,
    body.itemid-103 #sp-component tbody,
    body.itemid-103 #sp-component tr,
    body.itemid-103 #sp-component td { display: block; width: auto !important; }
    body.itemid-103 #sp-component .art-layout-cell { padding: 16px !important; }
    .article-details { padding: 6px; }
}
/* le panneau du menu mobile reprend le titre et le slogan : inutile, et il débordait sur l'en-tête */
.offcanvas-menu .logo, .offcanvas-menu .logo-slogan { display: none !important; }
/* drapeaux à gauche et bouton de menu à droite, sur une seule ligne */
.ave-menu #sp-top3 .sp-column { display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 100%; }
.ave-menu #sp-top3 .sp-module { margin: 0; }
@media (max-width: 991px) {
    .ave-menu #sp-top3 .sp-column { justify-content: space-between; }
    .ave-menu #sp-menu { display: none; }
}
/* flèche de dépliage des sous-rubriques dans le menu mobile (ajoutée par custom.js) */
.offcanvas-menu .menu-parent { position: relative; }
.offcanvas-menu .menu-parent > .menu-toggler {
    position: absolute; right: 0; top: 0;
    width: 44px; height: 38px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.offcanvas-menu .menu-parent > .menu-toggler::after {
    content: ""; width: 9px; height: 9px;
    border-right: 2px solid var(--ave-ardoise); border-bottom: 2px solid var(--ave-ardoise);
    transform: rotate(45deg); transition: transform .2s;
}
.offcanvas-menu .menu-parent.menu-parent-open > .menu-toggler::after { transform: rotate(-135deg); }
.offcanvas-menu .menu-parent > a { padding-right: 44px; }
.offcanvas-menu .menu-child { display: none; padding-left: 14px; }
/* Helix a ses propres styles pour .menu-toggler (une barre) : on impose le chevron */
.offcanvas-menu .offcanvas-inner ul.menu li.menu-parent > .menu-toggler,
.offcanvas-menu li.menu-parent > span.menu-toggler {
    position: absolute !important; right: 0 !important; top: 0 !important; left: auto !important;
    width: 44px !important; height: 38px !important; margin: 0 !important; padding: 0 !important;
    background: none !important; border: 0 !important; transform: none !important;
    display: flex !important; align-items: center; justify-content: center;
}
.offcanvas-menu li.menu-parent > span.menu-toggler::before { display: none !important; content: none !important; }
.offcanvas-menu li.menu-parent > span.menu-toggler::after {
    content: "" !important; display: block !important; position: static !important;
    width: 9px !important; height: 9px !important; background: none !important;
    border: 0 !important; border-right: 2px solid var(--ave-ardoise) !important; border-bottom: 2px solid var(--ave-ardoise) !important;
    transform: rotate(45deg) !important; transition: transform .2s;
}
.offcanvas-menu li.menu-parent.menu-parent-open > span.menu-toggler::after { transform: rotate(-135deg) !important; }
.offcanvas-menu .menu-child li a { display: block; padding: 5px 0; font-size: 15px; }

/* ---------- Sous-menus : largeur adaptée au texte (Helix impose 240 px en ligne) ---------- */
.ave-menu .sp-megamenu-parent .sp-dropdown { width: max-content !important; min-width: 240px; max-width: 90vw; }
.ave-menu .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner { width: 100%; }

/* ---------- Carrousel : diapositives avec légende (titre, date, « En savoir plus ») ---------- */
.ave-carrousel figure.ave-diapo { margin: 0; }
.ave-carrousel--actif figure.ave-carrousel__image > a,
.ave-carrousel--actif figure.ave-carrousel__image > a > img {
    display: block; width: 100%; height: 100%; object-fit: cover;
}
/* les diapositives masquées ne doivent pas capter les clics */
.ave-carrousel--actif .ave-carrousel__image { pointer-events: none; }
.ave-carrousel--actif .ave-carrousel__image.est-visible { pointer-events: auto; }
.ave-diapo figcaption {
    position: absolute; top: 24px; left: 32px; max-width: 700px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, .8);
}
.ave-diapo__titre { color: #f08630; font-size: 36px; font-weight: 700; line-height: 1.1; }
.ave-diapo__date { color: #f08630; font-size: 24px; line-height: 1.2; }
.ave-carrousel .ave-diapo__lien,
.ave-carrousel .ave-diapo__lien:visited { color: #f5f5f5 !important; font-size: 18px; text-decoration: underline; }
.ave-carrousel .ave-diapo__lien:hover { color: #fff !important; text-decoration: none; }
@media (max-width: 767px) {
    .ave-diapo figcaption { top: 10px; left: 14px; gap: 2px; }
    .ave-diapo__titre { font-size: 20px; }
    .ave-diapo__date { font-size: 15px; }
    .ave-carrousel .ave-diapo__lien { font-size: 14px; }
}

/* ---------- Carrousel : chargement progressif ---------- */
/* avant l'activation par custom.js : seule la première diapositive s'affiche */
.ave-carrousel:not(.ave-carrousel--actif) figure.ave-diapo:not(:first-of-type) { display: none; }
/* une fois actif : une diapositive n'est affichée (donc téléchargée) qu'une fois « prête » */
.ave-carrousel--actif .ave-carrousel__image { display: none; }
.ave-carrousel--actif .ave-carrousel__image.est-prete { display: block; }

/* ---------- Carrousel sur téléphone : bord à bord, plus haut, photo qui remplit le cadre ---------- */
/* Helix impose height:auto aux images : la photo gardait ses proportions de bandeau */
.ave-carrousel--actif figure.ave-carrousel__image > a > img { height: 100% !important; max-width: none !important; }
@media (max-width: 767px) {
    .ave-carrousel {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    .ave-carrousel--actif .ave-carrousel__scene { aspect-ratio: 4 / 3; }
    /* légende lisible sur n'importe quelle photo */
    .ave-diapo figcaption {
        top: auto; bottom: 0; left: 0; right: 0; max-width: none;
        padding: 28px 16px 12px;
        background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
    }
    .ave-diapo__titre { font-size: 22px; }
    .ave-diapo__date { font-size: 16px; }
    .ave-carrousel__fleche { width: 36px; height: 36px; font-size: 24px; line-height: 32px; top: 40%; }
    .ave-carrousel__points { gap: 6px; padding: 8px 12px 0; flex-wrap: wrap; }
    .ave-carrousel__points button { width: 8px; height: 8px; }
}

/* ---------- Articles sur téléphone ----------
   170 des 216 articles sont mis en page avec des tableaux et 126 ont du texte justifié.
   Sur petit écran, les cellules s'écrasaient (photo du président réduite à rien, texte
   en colonne étroite avec de grands blancs). On empile les cellules et on aligne à gauche. */
@media (max-width: 767px) {
    .ave-corps { padding: 0 6px !important; }
    .article-details, .article-list .article { padding: 10px 12px; }
    #sp-component table,
    #sp-component tbody,
    #sp-component thead,
    #sp-component tr,
    #sp-component td,
    #sp-component th {
        display: block;
        width: auto !important;
        height: auto !important;
        max-width: 100%;
    }
    #sp-component table { border: 0; margin-left: 0 !important; margin-right: 0 !important; }
    #sp-component td, #sp-component th { padding: 4px 0 !important; }
    /* images : jamais plus larges que l'écran, proportions respectées, centrées si elles flottaient */
    #sp-component img {
        max-width: 100% !important;
        height: auto !important;
    }
    #sp-component img[style*="float"], #sp-component img[align] {
        float: none !important;
        display: block;
        margin: 8px auto !important;
    }
    /* le texte justifié sur une colonne étroite crée des trous : alignement à gauche */
    #sp-component p, #sp-component div, #sp-component span, #sp-component td, #sp-component li {
        text-align: left !important;
    }
    #sp-component h1, #sp-component h2, #sp-component h3 { text-align: center; }
    #sp-component { overflow-wrap: anywhere; hyphens: auto; }
    /* blocs à largeur fixe en ligne (ex. width: 1200px) */
    #sp-component [style*="width"] { max-width: 100% !important; box-sizing: border-box; }
    .article-details .article-header h1, .page-header h1 { font-size: 26px; }
}
@media (max-width: 767px) {
    /* listes : retrait réduit (les styles en ligne des articles l'élargissaient) */
    #sp-component ul, #sp-component ol { padding-left: 20px !important; margin-left: 0 !important; }
    #sp-component li { margin-left: 0 !important; padding-left: 0 !important; }
}

/* ---------- Mention du concepteur, sous le pied de page (comme le site actuel) ---------- */
.ave-credit { background: var(--ave-fond); padding: 1em 0 !important; }
.ave-credit, .ave-credit .sp-copyright { text-align: center !important; font-family: Arial, sans-serif; font-size: 10px; color: #525252; }
.ave-credit .ave-credit__par { color: #980B25; }
.ave-credit a, .ave-credit a:visited { color: #525252 !important; text-decoration: underline; }
.ave-credit a:hover { color: var(--ave-orange) !important; }

/* =====================================================================
   Finitions « pro » (demande de Salim, 21/09) — identité conservée
   ===================================================================== */

/* ---------- Bandeau de l'accueil ---------- */
body.itemid-103 .article-details { border: 0; padding: 0; box-shadow: none; }
.ave-intro {
    display: grid;
    grid-template-columns: 200px 1fr 240px;
    align-items: center;
    gap: 40px;
    padding: 40px 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4d6478 0%, #43586B 45%, #2f3f4e 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(47, 63, 78, .25);
}
.ave-intro__badge img, .ave-intro__appel img {
    display: block; width: 180px !important; height: 180px !important; max-width: none !important;
    margin: 0 auto; border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}
.ave-intro__titre {
    color: #fff !important; font-size: 26px !important; font-weight: 700 !important;
    line-height: 1.3; margin: 0 0 18px; text-align: left !important;
}
.ave-intro__liste { list-style: none !important; margin: 0; padding: 0 !important; }
.ave-intro__liste li {
    position: relative; padding-left: 38px !important; margin: 0 0 12px !important;
    font-size: 19px; line-height: 1.45; color: #e8edf2; text-align: left !important;
}
.ave-intro__liste li::marker { content: none; }
.ave-intro__liste li::before {
    content: "\2713"; position: absolute; left: 0; top: 1px;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--ave-orange); color: #fff; font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.ave-intro__liste strong { color: #F7A56E; }
.ave-intro__appel { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ave-intro__badge-lien { display: block; transition: transform .2s; }
.ave-intro__badge-lien:hover { transform: scale(1.04); }
#sp-component a.ave-intro__bouton,
a.ave-intro__bouton {
    display: inline-block; padding: 10px 20px; border-radius: 999px;
    background: var(--ave-orange); color: #fff !important; font-weight: 700; font-size: 15px;
    text-decoration: none !important; text-align: center; line-height: 1.3;
    box-shadow: 0 4px 12px rgba(231, 93, 19, .35); transition: background .2s, transform .2s;
}
#sp-component a.ave-intro__bouton:hover, a.ave-intro__bouton:hover { background: #cf4f0c; transform: translateY(-1px); }
@media (max-width: 991px) {
    .ave-intro { grid-template-columns: 1fr; text-align: center; gap: 24px; padding: 30px 22px; }
    .ave-intro__titre { text-align: center !important; font-size: 22px !important; }
    .ave-intro__liste { display: inline-block; text-align: left; }
    .ave-intro__liste li { font-size: 17px; }
    .ave-intro__badge img, .ave-intro__appel img { width: 150px !important; height: 150px !important; }
}

/* ---------- Articles et listes d'articles ---------- */
.article-details,
.article-list .article {
    border-color: rgba(67, 88, 107, .15);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(47, 63, 78, .05);
    transition: box-shadow .2s;
}
.article-list .article:hover { box-shadow: 0 6px 20px rgba(47, 63, 78, .12); }
.readmore a { border-radius: 6px; }

/* ---------- Fil d'Ariane plus discret ---------- */
.mod-breadcrumbs, .mod-breadcrumbs a, .mod-breadcrumbs span { font-size: 13px; color: #7a8896 !important; }
.mod-breadcrumbs a:hover { color: var(--ave-orange) !important; }

/* ---------- Colonne de droite ---------- */
#sp-right .sp-module .sp-module-title {
    border-left: 5px solid var(--ave-orange);
    border-radius: 6px 6px 0 0;
    font-size: 20px;
    padding: 10px 16px;
}
#sp-right .sp-module { background: #f7f9fb; border-radius: 6px; }

/* ---------- Pied de page ---------- */
.ave-bas { padding-top: 40px !important; padding-bottom: 36px !important; }
.ave-bas h1, .ave-bas h2, .ave-bas h3 {
    font-size: 20px; letter-spacing: .3px; padding-bottom: 10px; margin-bottom: 14px;
    position: relative;
}
.ave-bas h1::after, .ave-bas h2::after, .ave-bas h3::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px;
    background: var(--ave-orange); border-radius: 2px;
}
.ave-bas p, .ave-bas li { font-size: 15px; line-height: 1.7; }
.ave-bas a:hover { color: #F7A56E !important; }
/* recherche : champ et bouton sur une ligne */
.ave-bas .mod-finder form, .ave-bas form.mod-finder { display: flex; gap: 0; max-width: 340px; }
.ave-bas .mod-finder input[type="text"], .ave-bas .mod-finder .js-finder-search-query {
    border-radius: 6px 0 0 6px; border: 0; padding: 9px 12px; min-width: 0; flex: 1;
}
.ave-bas .mod-finder button, .ave-bas .mod-finder .btn {
    border-radius: 0 6px 6px 0; background: var(--ave-orange); border: 0; color: #fff; padding: 9px 14px; white-space: nowrap;
}
.ave-bas .mod-finder .awesomplete { flex: 1; }
.ave-bas .mod-finder label { display: none; }

/* mention obligatoire de la version gratuite de Falang : discrète */
a[href*="faboba"] { font-size: 10px !important; color: #9aa6b1 !important; text-decoration: none !important; }
/* l'ancien site espaçait « Membres » avec un titre vide (<h1>&nbsp;</h1>) : on le masque */
.ave-bas ul + h1 { display: none; }
.ave-bas ul + h1 + h1 { margin-top: 28px; }
/* bandeau d'accueil sur téléphone : la règle générale des listes ne doit pas écraser les coches */
@media (max-width: 767px) {
    #sp-component .ave-intro__liste li { padding-left: 38px !important; margin: 0 0 12px !important; }
    #sp-component .ave-intro__liste { padding-left: 0 !important; }
}
/* colonne de droite : intitulés de pays nets, sans la petite flèche isolée au-dessus */
#sp-right .mod-articles-category-group::before { display: none !important; }
#sp-right .mod-articles-category-group {
    font-size: 13px; font-weight: 700; letter-spacing: .6px;
    margin: 16px 0 6px; padding-bottom: 4px;
    border-bottom: 1px solid #e1e6eb;
}

/* =====================================================================
   En-tête modernisé (demande de Salim, 21/09) — remplace les règles précédentes
   ===================================================================== */
.ave-entete {
    min-height: 0;
    background: linear-gradient(135deg, #4d6478 0%, #43586B 45%, #2f3f4e 100%);
    border-bottom: 4px solid var(--ave-orange);
}
.ave-entete > .row { max-width: 1320px; margin: 0 auto; align-items: center; flex-wrap: nowrap; }
.ave-entete #sp-logo { flex: 1 1 auto; width: auto; max-width: none; }
.ave-entete #sp-top2 { flex: 0 0 auto; width: auto; max-width: none; }

/* logo carré + sigle AVe + filet vertical, puis titre et slogan alignés à gauche */
.ave-entete #sp-logo .sp-column {
    min-height: 132px;
    padding: 18px 0 18px 272px;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)) no-repeat 248px 50% / 1px 64px;
}
.ave-entete #sp-logo .sp-column::before {
    left: 0; top: 50%; transform: translateY(-50%);
    width: 96px; height: 91px;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.ave-entete #sp-logo .sp-column::after {
    left: 114px; top: 50%; transform: translateY(-50%);
    width: 118px; height: 49px;
}
.ave-entete .logo a, .ave-entete .logo a:hover, .ave-entete .logo .logo-text {
    font-size: 28px; font-weight: 700; letter-spacing: .3px; line-height: 1.15;
}
.ave-entete .logo-slogan {
    margin-top: 8px; font-size: 16px; font-weight: 400; color: #d7e0e8 !important; letter-spacing: .2px;
}

/* langues (et bouton de menu mobile) en haut à droite */
.ave-entete #sp-top2 .sp-column { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.ave-entete #sp-top2 .sp-module { margin: 0; }
.ave-entete #sp-top2 ul { margin: 0; padding: 0; display: flex; gap: 6px; }
.ave-entete #sp-top2 .mod-languages a, .ave-entete #sp-top2 a {
    display: inline-flex; align-items: center; padding: 4px 6px; border-radius: 4px; opacity: .75; transition: opacity .2s, background .2s;
}
.ave-entete #sp-top2 .lang-active a, .ave-entete #sp-top2 li.lang-active a, .ave-entete #sp-top2 a:hover { opacity: 1; background: rgba(255, 255, 255, .15); }
.ave-entete #sp-top2 img { width: 22px; height: auto; }
.ave-entete #offcanvas-toggler { padding: 8px; }
.ave-entete #offcanvas-toggler .burger-icon span { background-color: #fff !important; }

/* barre de menu : centrée sur une ligne, filet discret, rubrique active soulignée d'orange */
.ave-menu {
    border-bottom: 1px solid #e3e8ed;
    box-shadow: 0 2px 10px rgba(47, 63, 78, .06);
    padding: 0 !important;
}
.ave-menu > .row { max-width: 1320px; margin: 0 auto; }
.ave-menu .sp-megamenu-parent > li > a,
.ave-menu .sp-megamenu-parent > li > span {
    font-size: 16px; font-weight: 600; line-height: 54px; padding: 0 14px;
}
.ave-menu .sp-megamenu-parent > li.active > a,
.ave-menu .sp-megamenu-parent > li.current-item > a {
    background: none; color: var(--ave-orange);
    box-shadow: inset 0 -3px 0 var(--ave-orange);
}
.ave-menu .sp-megamenu-parent > li.active:hover > a { color: var(--ave-orange); }
.ave-menu .sp-megamenu-parent > li:hover > a { color: var(--ave-orange); }

@media (max-width: 1199px) {
    .ave-menu .sp-megamenu-parent > li > a { font-size: 15px; padding: 0 10px; }
    .ave-entete #sp-logo .sp-column { padding-left: 150px; background: none; }
    .ave-entete #sp-logo .sp-column::after { display: none; }
}
/* tablette et téléphone : en-tête compact sur une ligne, pas de barre de menu (bouton à droite) */
@media (max-width: 991px) {
    .ave-menu { display: none; }
    .ave-entete #sp-logo .sp-column { min-height: 0; padding: 12px 0 12px 68px; }
    .ave-entete #sp-logo .sp-column::before { width: 54px; height: 51px; }
    .ave-entete #sp-logo .sp-column::after { display: none; }
    .ave-entete .logo a, .ave-entete .logo .logo-text { font-size: 17px; line-height: 1.2; }
    .ave-entete .logo-slogan { font-size: 11.5px; margin-top: 4px; line-height: 1.3; }
    .ave-entete #sp-top2 .sp-column { gap: 4px; }
    .ave-entete #sp-top2 img { width: 20px; }
}
@media (max-width: 575px) {
    .ave-entete #sp-logo .sp-column { padding: 10px 0 10px 60px; }
    .ave-entete #sp-logo .sp-column::before { left: 0; top: 50%; width: 48px; height: 46px; }
    .ave-entete .logo-slogan { display: none; }
}
/* sigle AVe détouré (l'original avait un fond uni, visible sur le dégradé) */
.ave-entete #sp-logo .sp-column::after { background-image: url("../../../images/avexperts/entete/sigle-ave-transparent.png"); }
/* menu centré sur une seule ligne */
.ave-menu .sp-megamenu-wrapper { width: 100%; justify-content: center; }
.ave-menu .sp-megamenu-parent { justify-content: center; flex-wrap: nowrap; }
.ave-menu .sp-megamenu-parent > li > a,
.ave-menu .sp-megamenu-parent > li > span { font-size: 15px; padding: 0 11px; white-space: nowrap; }
@media (max-width: 1299px) {
    .ave-menu .sp-megamenu-parent { flex-wrap: wrap; }
    .ave-menu .sp-megamenu-parent > li > a { font-size: 14px; padding: 0 9px; line-height: 48px; }
}
/* la classe Bootstrap d-lg-block impose display:block !important : on repasse en flex */
@media (min-width: 992px) {
    .ave-menu ul.sp-megamenu-parent.d-lg-block { display: flex !important; }
    .ave-menu .sp-megamenu-parent > li { float: none; }
}
/* menu d'ordinateur : pas de chevrons (le sous-menu s'ouvre au survol), 14 px, pour tenir sur une ligne */
@media (min-width: 992px) {
    .ave-menu .sp-megamenu-parent > li.sp-has-child > a::after,
    .ave-menu .sp-megamenu-parent > li.sp-has-child > span::after { display: none !important; content: none !important; }
    .ave-menu .sp-megamenu-parent > li > a,
    .ave-menu .sp-megamenu-parent > li > span { font-size: 14px; padding: 0 10px; }
    .ave-menu .sp-megamenu-parent { flex-wrap: wrap; }
}
/* sous-menus : chaque ligne occupe toute la largeur, pour que le survol couvre la ligne entière */
.ave-menu .sp-megamenu-parent .sp-dropdown .sp-dropdown-items { display: block; width: 100%; margin: 0; padding: 6px 0; }
.ave-menu .sp-megamenu-parent .sp-dropdown li.sp-menu-item { display: block; width: 100%; float: none; }
.ave-menu .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
.ave-menu .sp-megamenu-parent .sp-dropdown li.sp-menu-item > span { display: block; width: 100%; box-sizing: border-box; }
.ave-menu .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner { border-radius: 0 0 6px 6px; overflow: hidden; }
/* Carrousel : la règle générale des images d'articles sur téléphone (#sp-component img,
   height:auto) écrasait celle du carrousel, placé dans la même zone. Priorité rétablie. */
#sp-component .ave-carrousel--actif figure.ave-carrousel__image > a > img,
.ave-carrousel--actif figure.ave-carrousel__image > a > img {
    width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover;
}
#sp-component .ave-carrousel--actif figure.ave-carrousel__image > a { display: block; height: 100%; }
/* Carrousel sur téléphone : les photos sont des panoramiques ; le 4:3 n'en montrait qu'un
   tiers et la légende couvrait les visages. Photo en 16:9 et légende SOUS la photo. */
@media (max-width: 767px) {
    .ave-carrousel--actif .ave-carrousel__scene {
        aspect-ratio: auto;
        height: calc(100vw * 9 / 16 + 78px);
        background: #2f3f4e;
    }
    #sp-component .ave-carrousel--actif figure.ave-carrousel__image > a,
    .ave-carrousel--actif figure.ave-carrousel__image > a { height: calc(100% - 78px); }
    .ave-diapo figcaption {
        top: auto; bottom: 0; left: 0; right: 0; height: 78px;
        padding: 10px 16px; background: #2f3f4e;
        justify-content: center; gap: 1px;
        text-shadow: none;
    }
    .ave-diapo__titre { font-size: 19px; }
    .ave-diapo__date { font-size: 14px; color: #F7A56E; }
    .ave-carrousel .ave-diapo__lien { position: absolute; right: 16px; bottom: 14px; font-size: 13px; }
    /* flèches centrées sur la photo, pas sur la légende */
    .ave-carrousel__fleche { top: calc(100vw * 9 / 32); }
}
/* ordinateur : voile dégradé derrière la légende pour qu'elle reste lisible sur n'importe quelle photo */
@media (min-width: 768px) {
    .ave-diapo figcaption {
        top: 0; left: 0; bottom: 0; max-width: none; width: 46%;
        padding: 26px 32px; justify-content: flex-start;
        background: linear-gradient(to right, rgba(20, 30, 40, .62) 0%, rgba(20, 30, 40, .35) 55%, rgba(20, 30, 40, 0) 100%);
    }
}

/* ---------- Sélecteur de langue en texte (FR | EN), remplace les drapeaux ---------- */
.ave-entete #sp-top2 .mod-languages ul.lang-inline {
    display: inline-flex; gap: 2px; padding: 3px; margin: 0;
    border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
}
.ave-entete #sp-top2 .mod-languages li { margin: 0; }
.ave-entete #sp-top2 .mod-languages a {
    display: block; min-width: 38px; padding: 4px 10px; border-radius: 999px;
    font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; text-align: center;
    color: #fff !important; text-decoration: none !important; opacity: 1; background: none;
    transition: background .2s;
}
.ave-entete #sp-top2 .mod-languages a:hover { background: rgba(255, 255, 255, .15); }
.ave-entete #sp-top2 .mod-languages li.lang-active a { background: var(--ave-orange); }
.ave-entete #sp-top2 .mod-languages img { display: none; }
/* Drapeaux conservés (choix de Salim) : sans carré gris ni pastille ; langue active
   soulignée d'orange, l'autre légèrement atténuée. Remplace le style en texte ci-dessus. */
.ave-entete #sp-top2 .mod-languages ul.lang-inline { border: 0; padding: 0; gap: 10px; }
.ave-entete #sp-top2 .mod-languages img { display: block; width: 24px; height: auto; border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.ave-entete #sp-top2 .mod-languages a,
.ave-entete #sp-top2 .mod-languages li.lang-active a,
.ave-entete #sp-top2 .mod-languages a:hover {
    min-width: 0; padding: 4px 0 6px; border-radius: 0; background: none !important;
    opacity: .6; border-bottom: 2px solid transparent;
}
.ave-entete #sp-top2 .mod-languages a:hover { opacity: 1; }
.ave-entete #sp-top2 .mod-languages li.lang-active a { opacity: 1; border-bottom-color: var(--ave-orange); }
/* le carré gris vient de la feuille de Falang (fond sur li.lang-active) */
.ave-entete #sp-top2 .mod-languages li,
.ave-entete #sp-top2 .mod-languages li.lang-active,
div.mod-languages ul.lang-inline li.lang-active {
    background: none !important; background-color: transparent !important;
    border: 0 !important; box-shadow: none !important; padding: 0 !important;
}
