/* ============================================================
   Allo Colis — Couche de polish "pro" (micro-interactions & animations)
   Chargé après style.css : ne modifie pas le thème, l'enrichit.
   ============================================================ */

:root {
    --ac-orange: #fd7e14;
    --ac-navy: #042a51;
    --ac-dark: #141414;
}

/* ---------- Transitions douces globales ---------- */
.academy-btn,
.single-faq-item,
.single-teachers-area .teachers-thumbnail img,
.pro-card,
#scrollUp,
.faq-icon {
    transition: all .35s ease;
}

/* ---------- Boutons : effet de lift + reflet au survol ---------- */
.academy-btn {
    position: relative;
    overflow: hidden;
}
.academy-btn:hover,
.academy-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(253, 126, 20, 0.35);
}
.academy-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
    pointer-events: none;
}
.academy-btn:hover::after {
    left: 130%;
}

/* ---------- Menu : soulignement animé au survol ---------- */
.classynav > ul > li > a {
    position: relative;
}
.classynav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--ac-orange);
    transition: width .3s ease;
}
.classynav > ul > li > a:hover::after {
    width: 100%;
}

/* ---------- Bouton retour en haut : version circulaire ---------- */
#scrollUp {
    border-radius: 50% !important;
}
#scrollUp:hover {
    transform: translateY(-4px) scale(1.06);
}

/* ---------- Utilitaire de carte "pro" (lift + ombre) ---------- */
.pro-card {
    transition: transform .4s ease, box-shadow .4s ease;
}
.pro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(4, 42, 81, 0.14) !important;
}

/* ---------- FAQ / Tarifs : lift léger + icône rotative ---------- */
.single-faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(4, 42, 81, 0.08) !important;
}
.faq-trigger:not(.collapsed) .faq-icon {
    transform: rotate(180deg);
}

/* ---------- Cartes villes desservies : zoom d'image au survol ---------- */
.single-teachers-area .teachers-thumbnail {
    overflow: hidden;
}
.single-teachers-area:hover .teachers-thumbnail img {
    transform: scale(1.1);
}

/* ============================================================
   Section Statistiques (compteurs animés)
   ============================================================ */
.stats-counter-area {
    background: linear-gradient(135deg, #042a51 0%, #073b6e 100%);
    padding: 70px 0;
    position: relative;
    z-index: 1;
}
.stats-counter-area .single-stat {
    text-align: center;
    padding: 15px 10px;
}
.stats-counter-area .single-stat .stat-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(253, 126, 20, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--ac-orange);
    transition: transform .35s ease;
}
.stats-counter-area .single-stat:hover .stat-icon {
    transform: scale(1.1) rotate(8deg);
}
.stats-counter-area .single-stat h3 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}
.stats-counter-area .single-stat h3 .suffix {
    color: var(--ac-orange);
}
.stats-counter-area .single-stat p {
    color: rgba(255, 255, 255, .75);
    margin-bottom: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .6px;
}
@media only screen and (max-width: 767px) {
    .stats-counter-area { padding: 45px 0; }
    .stats-counter-area .single-stat { padding: 12px 5px; }
    .stats-counter-area .single-stat h3 { font-size: 26px; }
}

/* ============================================================
   Bouton flottant WhatsApp
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    z-index: 2999;
    transition: transform .3s ease, box-shadow .3s ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus {
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
}
.whatsapp-float::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, .55);
    animation: acWhatsappPulse 5s ease-out infinite;
    z-index: -1;
}
/* Une seule onde discrète toutes les 5 secondes */
@keyframes acWhatsappPulse {
    0% { transform: scale(1); opacity: .6; }
    30%, 100% { transform: scale(1.7); opacity: 0; }
}
@media only screen and (max-width: 767px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* ============================================================
   Animations : sobres et fluides
   Seules transform et opacity sont animées (prises en charge par la carte
   graphique) ; pas d'animation en boucle, hormis l'onde discrète du bouton
   WhatsApp. Tout s'arrête si l'utilisateur a demandé à réduire les animations.
   ============================================================ */

/* Hero : fondu entre les diapositives (animateOut dans active.js) */
.hero-slides .owl-item.animated {
    animation-duration: .9s;
}

/* Hero : la photo se pose doucement (106 % → 100 % en 7 s) à chaque diapositive.
   Elle est dessinée par un calque qui reprend l'image de la diapositive : on agrandit
   ce calque (transform) au lieu de modifier la taille du fond, qui oblige à tout redessiner. */
.hero-slides .single-hero-slide {
    overflow: hidden;
}
.hero-slides .single-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: inherit;
    transform: scale(1.06);
    transition: transform 7s cubic-bezier(.2, .6, .3, 1);
    will-change: transform;
}
.hero-slides .owl-item.active .single-hero-slide::before {
    transform: scale(1);
}

/* Hero : titre, slogan puis bouton apparaissent l'un après l'autre */
.hero-slides .hero-slides-content > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}
.hero-slides.est-pret .owl-item.active .hero-slides-content > * {
    opacity: 1;
    transform: none;
}
.hero-slides.est-pret .owl-item.active .hero-slides-content > :nth-child(2) {
    transition-delay: .12s;
}
.hero-slides.est-pret .owl-item.active .hero-slides-content > :nth-child(3) {
    transition-delay: .24s;
}

/* Apparition au défilement (WOW) : montée courte de 24 px au lieu de la hauteur du bloc */
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to   { opacity: 1; transform: none; }
}
.wow.animated {
    animation-duration: .7s;
}

/* Titres de section : soulignement orange fixe */
.section-heading h3 {
    position: relative;
}
.section-heading h3::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 18px;
    border-radius: 4px;
    background: var(--ac-orange);
}
.section-heading:not(.text-left) h3::after {
    margin-left: auto;
    margin-right: auto;
}

/* Bandeaux d'appel à l'action : dégradé fixe */
.call-to-action-area {
    background: linear-gradient(120deg, var(--ac-navy), #0a4a86);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slides .single-hero-slide::before,
    .hero-slides .hero-slides-content > * {
        transition: none !important;
        transform: none !important;
    }
    .hero-slides .hero-slides-content > * {
        opacity: 1 !important;
    }
    .hero-slides .owl-item.animated,
    .wow.animated,
    .whatsapp-float::before {
        animation: none !important;
    }
}

/* ============================================================
   Assistant Allo Colis (public/assets/js/chatbot.js)
   ============================================================ */
.ac-chat-toggle {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 2999;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px;
    border: none;
    border-radius: 4px;
    background: var(--ac-navy);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(4, 42, 81, .25);
    cursor: pointer;
}
.ac-chat-toggle:hover {
    background: #063b70;
}
.ac-chat-toggle:focus-visible,
.ac-chat-panel button:focus-visible {
    outline: 3px solid var(--ac-orange);
    outline-offset: 2px;
}
/* Dans la fenêtre (overflow: hidden), le contour du champ est dessiné à l'intérieur pour rester entier */
.ac-chat-champ:focus,
.ac-chat-envoyer:focus-visible,
.ac-chat-entete button:focus-visible {
    outline: 2px solid var(--ac-orange);
    outline-offset: -2px;
}

.ac-chat-panel {
    position: fixed;
    right: 30px;
    bottom: 90px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    width: 370px;
    height: min(560px, calc(100vh - 120px));
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(4, 42, 81, .18);
    overflow: hidden;
}
.ac-chat-panel[hidden] {
    display: none;
}

.ac-chat-entete {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 10px 14px;
    background: var(--ac-navy);
    color: #ffffff;
}
.ac-chat-titre {
    flex: 1;
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.ac-chat-langues {
    display: flex;
    gap: 4px;
}
.ac-chat-langue {
    min-width: 30px;
    height: 26px;
    padding: 0 4px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 3px;
    background: transparent;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.ac-chat-langue[aria-pressed="true"] {
    background: #ffffff;
    color: var(--ac-navy);
}
.ac-chat-fermer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}
.ac-chat-fermer:hover {
    background: rgba(255, 255, 255, .12);
}

.ac-chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    overflow-y: auto;
    background: #f5f7fa;
}
.ac-chat-msg {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.ac-chat-msg--bot {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    color: #242424;
}
.ac-chat-msg--user {
    align-self: flex-end;
    background: var(--ac-navy);
    color: #ffffff;
}
.ac-chat-msg--attente {
    color: var(--ac-muted, #6c757d);
    font-style: italic;
}

.ac-chat-form {
    display: flex;
    border-top: 1px solid #e3e8ee;
}
.ac-chat-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.ac-chat-champ {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: none;
    font-size: 14px;
    color: #242424;
}
.ac-chat-envoyer {
    padding: 0 16px;
    border: none;
    background: var(--ac-navy);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.ac-chat-envoyer:disabled,
.ac-chat-champ:disabled {
    opacity: .6;
    cursor: default;
}
.ac-chat-note {
    margin: 0;
    padding: 6px 14px 8px;
    color: #6c757d;
    font-size: 11px;
    line-height: 1.4;
    background: #ffffff;
}

/* Le bouton « retour en haut » remonte pour ne pas chevaucher l'assistant */
#scrollUp {
    bottom: 96px !important;
    right: 30px !important;
}

@media only screen and (max-width: 767px) {
    .ac-chat-toggle {
        right: max(16px, env(safe-area-inset-right, 0px));
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
        height: 46px;
        padding: 0 14px;
    }
    /* Sur téléphone, l'assistant s'ouvre en plein écran, comme une messagerie :
       la hauteur suit l'écran réellement visible (dvh), barre d'adresse et clavier compris. */
    .ac-chat-panel {
        inset: 0;
        width: auto;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .ac-chat-entete {
        flex-wrap: wrap;
        padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px));
    }
    .ac-chat-fermer {
        width: 40px;
        height: 40px;
    }
    .ac-chat-langue {
        min-width: 36px;
        height: 32px;
    }
    /* 16 px minimum : en dessous, l'iPhone zoome sur la page dès qu'on touche le champ */
    .ac-chat-champ,
    .ac-chat-envoyer {
        font-size: 16px;
    }
    .ac-chat-note {
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }
    /* Assistant ouvert : la page derrière ne défile plus, et les boutons flottants ne le recouvrent pas */
    body:has(.ac-chat-panel:not([hidden])) {
        overflow: hidden;
    }
    body:has(.ac-chat-panel:not([hidden])) .ac-chat-toggle,
    body:has(.ac-chat-panel:not([hidden])) .whatsapp-float,
    body:has(.ac-chat-panel:not([hidden])) #scrollUp {
        display: none !important;
    }
    #scrollUp {
        bottom: 76px !important;
        right: 16px !important;
    }
}

/* ============================================================
   Langues, menu actif, nouvelles pages (Services, légales, 404)
   ============================================================ */

/* Texte réservé aux lecteurs d'écran (libellés de formulaire) */
.ac-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ----- En-tête : choix de la langue + connexion ----- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}
/* Sans JavaScript (état de base) : les quatre langues restent affichées côte à côte,
   le globe est inutile puisque rien ne peut l'ouvrir. */
.ac-langues {
    position: relative;
}
.ac-langues-bouton {
    display: none;
}
.ac-langues-liste {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ac-langues-liste a {
    display: block;
    min-width: 34px;
    padding: 4px 6px;
    border-radius: 3px;
    color: #606060;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.ac-langues-liste a:hover,
.ac-langues-liste a:focus {
    color: var(--ac-orange);
}
.ac-langues-liste a[aria-current="true"] {
    background: var(--ac-navy);
    color: #ffffff;
}

/* Avec JavaScript : un globe, et la liste s'ouvre au clic (classe posée par active.js) */
.ac-langues.ac-deroulante {
    z-index: 200;
}
.ac-langues.ac-deroulante .ac-langues-bouton {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(4, 42, 81, .18);
    border-radius: 999px;
    background: transparent;
    color: var(--ac-navy);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.ac-langues.ac-deroulante .ac-langues-bouton .fa-globe {
    font-size: 15px;
}
.ac-langues.ac-deroulante .ac-langues-fleche {
    font-size: 12px;
    opacity: .6;
    transition: transform .2s ease;
}
.ac-langues.ac-deroulante .ac-langues-bouton:hover,
.ac-langues.ac-deroulante .ac-langues-bouton[aria-expanded="true"] {
    border-color: var(--ac-navy);
    background: var(--ac-navy);
    color: #ffffff;
}
.ac-langues.ac-deroulante .ac-langues-bouton[aria-expanded="true"] .ac-langues-fleche {
    transform: rotate(180deg);
}
.ac-langues.ac-deroulante .ac-langues-bouton:focus-visible {
    outline: 2px solid var(--ac-orange);
    outline-offset: 2px;
}
.ac-langues.ac-deroulante .ac-langues-liste {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    flex-direction: column;
    gap: 1px;
    min-width: 180px;
    padding: 6px;
    border: 1px solid rgba(4, 42, 81, .1);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(4, 42, 81, .16);
}
.ac-langues.ac-deroulante.ac-ouverte .ac-langues-liste {
    display: flex;
    animation: acLanguesOuverture .18s ease both;
}
@keyframes acLanguesOuverture {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ac-langues.ac-deroulante .ac-langues-liste a {
    min-width: 0;
    padding: 9px 12px;
    border-radius: 4px;
    text-align: left;
    white-space: nowrap;
}
.ac-langues.ac-deroulante .ac-langues-liste a:hover,
.ac-langues.ac-deroulante .ac-langues-liste a:focus {
    background: #f5f7fa;
    color: var(--ac-navy);
}
/* La langue affichée : cochée, et non proposée comme un changement */
.ac-langues.ac-deroulante .ac-langues-liste a[aria-current="true"] {
    background: transparent;
    color: var(--ac-navy);
}
.ac-langues.ac-deroulante .ac-langues-liste a[aria-current="true"]::after {
    content: "\f00c";
    float: right;
    margin-left: 18px;
    font: normal normal normal 12px/1.3 FontAwesome;
    color: var(--ac-orange);
}
@media (prefers-reduced-motion: reduce) {
    .ac-langues.ac-deroulante.ac-ouverte .ac-langues-liste {
        animation: none;
    }
    .ac-langues.ac-deroulante .ac-langues-fleche {
        transition: none;
    }
}
@media only screen and (max-width: 767px) {
    .header-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }
    .ac-langues-liste a {
        min-width: 30px;
        padding: 3px 4px;
        font-size: 12px;
    }
    .ac-langues.ac-deroulante .ac-langues-liste a {
        padding: 9px 12px;
        font-size: 13px;
    }
}

/* ----- Menu principal : onglet de la page affichée ----- */
.header-area .academy-main-menu .classy-navbar .classynav ul li a[aria-current="page"] {
    color: var(--ac-orange);
}
.classynav > ul > li > a[aria-current="page"]::after {
    width: 100%;
}

/* ----- Bandeau de titre : titres longs (sw, ln) sur plusieurs lignes ----- */
.breadcumb-area .bradcumbContent {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 110px;
    padding: 15px 20px;
}
.breadcumb-area .bradcumbContent h1,
.breadcumb-area .bradcumbContent h2 {
    margin: 0;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.2;
    text-align: center;
}
@media only screen and (max-width: 767px) {
    .breadcumb-area .bradcumbContent h1,
    .breadcumb-area .bradcumbContent h2 {
        font-size: 24px;
    }
}

/* Titres de section en h2 : même apparence que les h3 du thème */
.section-heading h2 {
    font-size: 34px;
    margin-bottom: 0;
    font-weight: 600;
}
.section-heading.white h2,
.section-heading .text-white {
    color: #ffffff;
}
.call-to-action-area .cta-content h2 {
    font-size: 30px;
    color: #ffffff;
    margin-bottom: 0;
}
@media only screen and (max-width: 767px) {
    .section-heading h2 {
        font-size: 24px;
    }
    .call-to-action-area .cta-content h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

/* ----- Page Services ----- */
.ac-services-intro {
    font-size: 16px;
    line-height: 1.7;
}
.ac-service {
    height: 100%;
    padding: 30px 26px;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-top: 3px solid var(--ac-orange);
    border-radius: 6px;
}
.ac-service-entete {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.ac-service-icone {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    background: rgba(4, 42, 81, .08);
    color: var(--ac-navy);
    font-size: 20px;
}
.ac-service h3 {
    margin: 0;
    color: var(--ac-navy);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}
.ac-service p {
    margin-bottom: 12px;
}
.ac-service-detail {
    margin-bottom: 0 !important;
    color: var(--ac-navy);
    font-size: 14px;
    font-weight: 600;
}
.ac-savoir {
    height: 100%;
    padding: 24px;
    background: #f5f7fa;
    border-radius: 6px;
}
.ac-savoir h3 {
    margin-bottom: 8px;
    color: var(--ac-navy);
    font-size: 17px;
    font-weight: 600;
}
.ac-savoir p {
    margin: 0;
}

/* ----- Pages légales ----- */
.ac-page-legale {
    max-width: 820px;
    margin: 0 auto;
    color: #404040;
    font-size: 15px;
    line-height: 1.75;
}
.ac-page-legale h2 {
    margin: 40px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e3e8ee;
    color: var(--ac-navy);
    font-size: 21px;
    font-weight: 600;
}
.ac-page-legale ul {
    margin-bottom: 15px;
    padding-left: 20px;
}
.ac-page-legale ul li {
    margin-bottom: 6px;
    list-style: disc;
}
.ac-page-legale a {
    color: var(--ac-navy);
    text-decoration: underline;
}
.ac-legale-maj {
    color: #6c757d;
    font-size: 14px;
}
.ac-legale-note {
    margin-top: 40px;
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
}
.ac-page-legale h3 {
    margin: 26px 0 10px;
    color: var(--ac-navy);
    font-size: 17px;
    font-weight: 600;
}

/* Sommaire cliquable en tête d'une page légale */
.ac-legale-sommaire {
    margin: 28px 0 6px;
    padding: 20px 24px 14px;
    border: 1px solid #e3e8ee;
    border-left: 4px solid var(--ac-navy);
    border-radius: 10px;
    background: #f7f9fc;
}
.ac-legale-sommaire-titre {
    margin: 0 0 12px;
    color: var(--ac-navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ac-legale-sommaire ol {
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 36px;
}
.ac-legale-sommaire li {
    margin-bottom: 8px;
    list-style: none;
    break-inside: avoid;
    line-height: 1.45;
}
.ac-legale-sommaire a {
    text-decoration: none;
}
.ac-legale-sommaire a:hover,
.ac-legale-sommaire a:focus-visible {
    text-decoration: underline;
}
/* Le titre visé par le sommaire ne se cache pas sous l'en-tête fixe */
.ac-page-legale h2[id] {
    scroll-margin-top: 120px;
}
@media (prefers-reduced-motion: no-preference) {
    html:has(.ac-legale-sommaire) { scroll-behavior: smooth; }
}
@media (max-width: 767px) {
    .ac-legale-sommaire { padding: 16px 18px 10px; }
    .ac-legale-sommaire ol { columns: 1; }
}

/* FAQ : questions regroupées par thème */
.ac-faq-theme {
    margin: 45px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ac-orange);
    color: var(--ac-navy);
    font-size: 20px;
    font-weight: 600;
}
.ac-faq-theme:first-child {
    margin-top: 0;
}
.ac-faq-theme .fa {
    margin-right: 10px;
    color: var(--ac-orange);
}
.single-faq-item .ac-faq-reponse a {
    color: var(--ac-navy);
    text-decoration: underline;
}

/* ----- Page 404 ----- */
.ac-erreur {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.ac-erreur-code {
    margin-bottom: 10px;
    color: var(--ac-orange);
    font-size: 96px;
    font-weight: 700;
    line-height: 1;
}
.ac-erreur h2 {
    color: var(--ac-navy);
    font-size: 24px;
    font-weight: 600;
}
.ac-erreur-liens {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin: 24px 0 34px;
    padding: 0;
}
.ac-erreur-liens li {
    list-style: none;
}
.ac-erreur-liens a {
    color: var(--ac-navy);
    font-weight: 600;
    text-decoration: underline;
}

/* ----- Formulaire de contact et pied de page ----- */
.ac-mention-form {
    margin: 10px 0 0;
    color: #6c757d;
    font-size: 13px;
}
.ac-mention-form a {
    color: var(--ac-navy);
    text-decoration: underline;
}
.bottom-footer-area .ac-liens-legaux {
    margin-top: 8px;
}
.bottom-footer-area .ac-liens-legaux a {
    margin: 0 10px;
    color: #9a9a9a;
}
.bottom-footer-area .ac-liens-legaux a:hover,
.bottom-footer-area .ac-liens-legaux a:focus {
    color: var(--ac-orange);
}

/* Menu : six onglets sur une ligne entre 992 et 1199 px (tablette paysage, petits écrans) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .header-area .academy-main-menu .classy-navbar .classynav ul li a {
        padding: 0 8px;
        font-size: 13px;
    }
    .header-area .academy-main-menu .calling-info {
        padding-left: 30px;
    }
}

/* Menu mobile : onglet de la page affichée repéré aussi par une barre orange */
.classy-nav-container.breakpoint-on .classynav > ul > li > a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--ac-orange);
}

/* ----- Hero : défilement automatique (segments de progression, pause au survol) ----- */
.hero-area {
    position: relative;
}
.ac-hero-controles {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 110px;
    z-index: 5;
    pointer-events: none;
}
.ac-hero-barre {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: auto;
}
/* Zone cliquable de 24 px de haut ; le trait visible fait 3 px */
.ac-hero-segment {
    position: relative;
    width: 56px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.ac-hero-segment::before,
.ac-hero-segment::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
}
.ac-hero-segment::before {
    background: rgba(4, 42, 81, .28);
}
.ac-hero-segment::after {
    background: var(--ac-navy);
    transform: scaleX(0);
    transform-origin: left center;
}
.ac-hero-controles.ac-progression .ac-hero-segment.active::after {
    animation: acProgressionDiapo var(--ac-duree-diapo, 6000ms) linear forwards;
}
/* En pause, le trait se fige à l'endroit exact où il en était (et non à la fin) :
   le décompte repart du même point quand l'utilisateur quitte la photo. */
.ac-hero-controles.en-pause .ac-hero-segment.active::after {
    animation-play-state: paused;
}
@keyframes acProgressionDiapo {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
.ac-hero-segment:hover::before {
    background: rgba(4, 42, 81, .5);
}
.ac-hero-segment:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .ac-hero-controles.ac-progression .ac-hero-segment.active::after {
        animation: none;
        transform: scaleX(1);
    }
}
/* Position au-dessus de la bande « Collecte / Expédition / Livraison », qui chevauche le bas du hero
   différemment selon la largeur (sur une ligne en tablette, empilée sur mobile) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .ac-hero-controles {
        bottom: 80px;
    }
}
@media only screen and (max-width: 767px) {
    .ac-hero-controles {
        bottom: 132px;
    }
}

/* ============================================================
   Lancement du site et animations légères
   Toujours transform et opacity uniquement ; tout s'arrête si
   l'utilisateur a demandé à réduire les animations.
   ============================================================ */

/* Owl masque le carrousel jusqu'à la fin du chargement du JavaScript : le hero n'avait aucune
   hauteur et le bandeau bleu des chiffres clés s'affichait à sa place, puis tout sautait.
   La première diapositive occupe désormais sa place dès le premier affichage, sur un fond
   de la couleur de la photo, en attendant que celle-ci arrive. */
.hero-slides.owl-carousel {
    display: block;
}
.hero-slides:not(.owl-loaded) .single-hero-slide:not(:first-child) {
    display: none;
}
.hero-slides .single-hero-slide {
    background-color: #e87a1c;
}

/* Changement de page : fondu court (navigateurs compatibles, sans effet ailleurs) */
@view-transition {
    navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .22s;
}

/* Barre de lecture : fin trait orange en haut de l'écran, sans JavaScript */
@supports (animation-timeline: scroll()) {
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 3000;
        height: 3px;
        background: linear-gradient(90deg, var(--ac-orange), #ffb066);
        transform: scaleX(0);
        transform-origin: left center;
        animation: acBarreLecture linear both;
        animation-timeline: scroll(root);
        pointer-events: none;
    }
}
@keyframes acBarreLecture {
    to { transform: scaleX(1); }
}

/* Apparitions au défilement : départ vif, arrivée douce. Sur téléphone, sans attente. */
.wow.animated {
    animation-timing-function: cubic-bezier(.2, .7, .3, 1);
}
@media only screen and (max-width: 767px) {
    .wow {
        animation-delay: 0s !important;
    }
}

/* Titre des pages intérieures : montée douce à l'arrivée */
.bradcumbContent h1 {
    animation: acTitrePage .7s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes acTitrePage {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* Titres de section : le trait orange se dessine une fois le titre apparu.
   Tant que WOW n'a pas révélé le bloc, il porte visibility: hidden en style direct. */
.section-heading h3::after {
    transition: transform .6s cubic-bezier(.2, .7, .3, 1) .45s;
}
.section-heading.wow[style*="visibility: hidden"] h3::after,
.wow[style*="visibility: hidden"] .section-heading h3::after {
    transform: scaleX(0);
}
.section-heading.text-left h3::after {
    transform-origin: left center;
}

/* Boutons : léger enfoncement au clic */
.academy-btn:active {
    transform: translateY(0) scale(.98);
}

/* Témoignages : icône à la place de la photo, trait orange et léger relief au survol */
.ac-avatar {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    padding: 6px;
    border-radius: 50%;
    background: #fff3e8;
    box-shadow: 0 0 0 1px rgba(253, 126, 20, .22);
    transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s ease;
}
@media only screen and (max-width: 575px) {
    .ac-avatar {
        width: 64px;
        height: 64px;
        padding: 5px;
    }
}
.ac-avatar-corps {
    fill: var(--ac-navy);
}
.ac-avatar-cheveux {
    fill: var(--ac-orange);
}
.ac-temoignage {
    position: relative;
}
.ac-temoignage::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--ac-orange);
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
.ac-temoignage:hover::before {
    transform: scaleY(1);
}
.ac-temoignage:hover .ac-avatar {
    transform: scale(1.07);
    box-shadow: 0 0 0 4px rgba(253, 126, 20, .16);
}

/* Icônes : petit mouvement au survol (les véhicules des offres avancent) */
.single-top-features i,
.single-course-area .course-icon,
.popular-course-icon .fa {
    transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
.single-top-features:hover i {
    transform: translateY(-4px);
}
.single-course-area:hover .course-icon {
    transform: scale(1.08);
}
.single-top-popular-course:hover .popular-course-icon .fa {
    transform: translateX(8px);
}

/* Photo de la section « À propos » : léger relief au survol */
.about-us-thumbnail img {
    transition: transform .5s cubic-bezier(.2, .7, .3, 1), box-shadow .5s ease;
}
.about-us-thumbnail:hover img {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(4, 42, 81, .18) !important;
}

/* Pied de page : les liens glissent légèrement au survol */
.main-footer-area .footer-widget .useful-links li a {
    transition: color .2s ease, transform .25s ease;
}
.main-footer-area .footer-widget .useful-links li a:hover,
.main-footer-area .footer-widget .useful-links li a:focus {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }
    body::before {
        display: none;
    }
    .bradcumbContent h1 {
        animation: none;
    }
    .section-heading h3::after,
    .ac-temoignage::before,
    .ac-avatar,
    .single-top-features i,
    .single-course-area .course-icon,
    .popular-course-icon .fa,
    .about-us-thumbnail img,
    .main-footer-area .footer-widget .useful-links li a {
        transition: none;
    }
    .section-heading.wow[style*="visibility: hidden"] h3::after,
    .wow[style*="visibility: hidden"] .section-heading h3::after {
        transform: none;
    }
    .ac-temoignage:hover .ac-avatar,
    .single-top-features:hover i,
    .single-course-area:hover .course-icon,
    .single-top-popular-course:hover .popular-course-icon .fa,
    .about-us-thumbnail:hover img,
    .main-footer-area .footer-widget .useful-links li a:hover,
    .main-footer-area .footer-widget .useful-links li a:focus {
        transform: none;
    }
}

/* Lien vers Google Maps sous l'adresse (page Contact, pied de page) */
a.ac-lien-maps {
    display: inline-block;
    margin-top: 6px;
    color: var(--ac-orange);
    font-weight: 600;
    transition: color .2s ease, transform .25s ease;
}
a.ac-lien-maps:hover,
a.ac-lien-maps:focus {
    color: var(--ac-navy);
    transform: translateX(4px);
}
/* Le pied de page agrandit et décale les icônes de ses lignes de contact : pas celle de ce lien */
.main-footer-area .footer-widget .single-contact a.ac-lien-maps i {
    margin-right: 2px;
    padding-top: 0;
    font-size: inherit;
}
@media (prefers-reduced-motion: reduce) {
    a.ac-lien-maps,
    a.ac-lien-maps:hover,
    a.ac-lien-maps:focus {
        transition: none;
        transform: none;
    }
}

/* Page Tarification : remarque sous la grille */
.ac-tarifs-note {
    margin: 0 0 40px;
    color: #5f6b77;
    font-size: 14px;
}
.ac-tarifs-note .fa {
    margin-right: 6px;
    color: var(--ac-orange);
}

/* Accueil sur téléphone : la photo est recadrée sur la personne (tiers gauche de l'image),
   le texte passe en bas sur un dégradé orange pour rester lisible sans couvrir son visage. */
@media only screen and (max-width: 767px) {
    .hero-slides .single-hero-slide.bg-img[style*="hero_allo_colis"] {
        background-position: 22% center;
    }
    .hero-slides .single-hero-slide::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(to bottom, rgba(232, 122, 28, 0) 30%, rgba(232, 122, 28, .88) 58%, rgba(232, 122, 28, .96) 100%);
        pointer-events: none;
    }
    .hero-slides .single-hero-slide .row {
        align-items: flex-end !important;
        padding-bottom: 168px;
    }
    .hero-slides .single-hero-slide h2 {
        font-size: 26px;
        margin-bottom: 18px;
    }
    .hero-slides .single-hero-slide .academy-btn {
        background: var(--ac-navy);
    }
}
