/* ==========================================================
   HERO (disposition "plein écran" du slider, #homeSlider)
   Repris tel quel du <style> autrefois inline dans
   section_slider.inc.php (déplacé ici : un module, un CSS).
========================================================== */

/* Bloc ci-dessous : repris de css/style.css (.section-main-bunner et ses
   descendants, .star-section, .bunner-content-modern), retiré de là-bas —
   vérifié via grep que ces classes ne sont utilisées nulle part ailleurs
   sur le site. Sous-règles jamais utilisées dans notre markup actuel
   (.bunner-location, .box-location, .text-accent-2, .brand-logo-*,
   .decorate-*, .team-*-caption, .countdown-*, .box-pricing-modern,
   .google-map, .time_circles) volontairement non reprises — dead code,
   pas la peine de les traîner. */

@keyframes bunner-img {
    from {
        transform: scale(1) rotate(0deg);
    }

    to {
        transform: scale(1.1) rotate(1deg);
    }
}


.section-main-bunner {
    position: relative;
    overflow: hidden;
}


.section-main-bunner::before {
    content: '';
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: inherit;
    background-attachment: fixed;

    animation: bunner-img 8s ease-in-out forwards;

    z-index: 1;
}


/* Deux règles identiques dans l'original (style.css) avec des valeurs
   différentes qui s'écrasaient l'une l'autre (z-index:2 puis z-index:1) —
   fusionnées ici au résultat final effectif, pas de raison de garder les
   deux. */
.section-main-bunner .main-bunner-inner {
    position: relative;
    flex: 1;

    z-index: 1;
}


@media (min-width: 992px) {

    .section-main-bunner {
        min-height: 100vh;
        height: 100vh;

        display: flex;
        align-items: center;
        justify-content: center;
    }

}


/* .main-bunner-img : uniquement présent pour les slides vidéo (voir
   section_slider.inc.php) — les slides image utilisent un background-image
   inline directement sur .swiper-slide, visible via .section-main-bunner
   ::before (background:inherit) ci-dessus. */
.section-main-bunner .main-bunner-img {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;
    top: 0;

    opacity: .4;

    animation: zoomSlide 8s ease-in-out forwards;
}


@media (min-width: 1200px) {

    .section-main-bunner .main-bunner-img {
        left: -100px;
        right: -100px;
        bottom: -100px;
        top: -100px;

        animation: bunner-img 10s infinite;
    }

}


@media (min-width: 1200px) {

    .section-main-bunner .row {
        align-items: flex-start !important;
    }

}


.section-main-bunner.section-main-bunner-filter {
    background: transparent;
}


.section-main-bunner.section-main-bunner-filter .main-bunner-img {
    opacity: 1;
}


.star-section {
    position: relative;

    display: inline-block;

    margin-right: -5px;

    padding: 0 17px;
}


.star-section::before,
.star-section::after {
    content: '';
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    display: block;

    width: 83px;
    height: 1px;

    background-color: #fff;
}


.star-section::before {
    left: -83px;
}


.star-section::after {
    right: -83px;
}


.star-section span {
    margin-right: 5px;

    font-size: 28px;

    color: inherit;
}




.bunner-content-modern {
    position: relative;
    max-width: 750px;
    margin: 30px auto 0 auto;
    text-align: center;
}


.slider-tagline {
    font-family: var(--script);
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}


.slider-tagline::before {
    content: "";
    width: 40px;
    height: 2px;
}


/* Mêmes valeurs que .hero-title (disposition "gauche") — voir plus bas dans
   ce fichier — sauf centrage (hero statique plein écran, pas de colonne 2).
   Plus de couleur dynamique par slide (couleur_titre) : même choix que
   .hero-title, couleur fixe --ink. */
.slider-titre p {
    display: block;
    margin: 0 0 20px;

    /* Couleur du texte de base fixée en inline (couleur_titre, backoffice
       slider) — voir includes/section_slider.inc.php. */
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.15;
    letter-spacing: -2px;
    font-weight: 600;
}


/* Couleur configurable par slide (couleur_titre_em, backoffice) via la
   variable --em-color posée en inline sur .slider-titre p — voir
   includes/section_slider.inc.php. --red en repli si jamais absente. */
.slider-titre em {
    color: var(--em-color, var(--red));
    font-style: normal;
}


/* Mêmes valeurs que .intro (disposition "gauche") pour la typo — la couleur
   reste dynamique par slide (couleur_texte, style inline), comme avant. */
.slider-texte {
    max-width: 485px;

    margin: 20px auto 35px;

    font-size: 15px;
    line-height: 1.85;

    color: var(--muted);
}


/* ==========================================================
   HERO (disposition "gauche" du slider)
   Mêmes classes et mêmes valeurs que .hero / .hero-grid /
   .hero-copy / .eyebrow / .intro / .hero-actions / .hero-art
   dans Maquette_Utah.html — copiées quasi telles quelles grâce
   aux variables --bg/--ink/--red/etc. (voir uw-core.css).
   Exception : les boutons restent .uw-btn (pas .btn, qui existe
   déjà dans Bootstrap et entrerait en conflit).
========================================================== */

/* .hero enveloppe désormais TOUT le carrousel (une seule instance, comme
   <section class="hero"> dans la maquette statique) — voir includes/
   section_slider.inc.php. Le swiper (.uw-slider.uw-carousel > .swiper-wrapper
   > .swiper-slide > .hero-grid) est transparent visuellement : il ne fait
   qu'insérer la mécanique de rotation entre .uw-wrap et .hero-grid. */

/* Neutralise le padding-bottom générique de .uw-carousel (assets/css/modules/
   carousel.css), pensé pour laisser de la place à la pagination des AUTRES
   carrousels (cartes team/testimonial/etc.). Le hero n'existe pas dans la
   maquette avec ce padding — sans cette surcharge, le slider est ~40px plus
   haut que .hero dans Maquette_Utah.html. La pagination de CE slider est
   déjà positionnée indépendamment via .uw-slider-pagination (bottom:30px). */
.uw-carousel.uw-slider {
    padding-bottom: 0;
}

.hero {
    overflow: hidden;

    background:
        radial-gradient(ellipse at 73% 42%, #eeeffe 0, transparent 58%),
        linear-gradient(120deg, var(--bg), #f6f7fb);

    padding: 155px 0 32px;
}


/* display:flex + align-items:center sur chaque .swiper-slide : absent de la
   maquette (section statique unique, hauteur naturelle) mais nécessaire ici
   — Swiper égalise la hauteur de tous les slides sur le plus grand, donc
   sans ça un slide avec moins de contenu resterait collé en haut. */
#utahHomeSlider .swiper-slide {
    display: flex;
    align-items: center;
}




/* ==========================================================
   GRILLE (44% / 56%)
========================================================== */

.hero-grid {
    display: grid;
    grid-template-columns: 44% 56%;
    align-items: center;

    width: 100%;

    min-height: 530px;
}


/* ==========================================================
   CONTENU
========================================================== */

.hero-copy {
    position: relative;
    z-index: 1;
}


.eyebrow {
    display: block;

    margin-bottom: 14px;

    color: var(--ink);

    font-size: 14px;
    line-height: 1.8;
}


/* Titre — .hero-title (pas de classe dédiée dans la maquette, qui cible le
   sélecteur h1 directement ; ici un <span>, le vrai <h1> SEO étant ailleurs
   sur la page pour rester unique malgré plusieurs slides). */

.hero-title {
    display: block;
    margin: 0;

    /* Couleur du texte de base fixée en inline (couleur_titre, backoffice
       slider) — voir includes/section_slider.inc.php. */
    font-size: clamp(35px, 3.55vw, 51px);
    line-height: 1.2;
    letter-spacing: -2px;
    /* 750 dans la maquette, mais la maquette n'a pas de police custom (fallback
       système Arial/Helvetica) alors que le projet charge Poppins — comparer
       les valeurs font-weight entre deux polices différentes ne donne pas le
       même rendu visuel. 600 est la valeur qui matche visuellement avec
       Poppins (et un poids réellement chargé : meta.inc.php ne charge que
       300/400/500/600/700, pas de fichier 750 de toute façon). */
    font-weight: 600;
}


/* Couleur configurable par slide (couleur_titre_em, backoffice) via la
   variable --em-color posée en inline sur .hero-title — voir includes/
   section_slider.inc.php. --red en repli si jamais absente. */
.hero-title em {
    color: var(--em-color, var(--red));
    font-style: normal;
}


/* Mots qui défilent après le titre (slider.mots_rotatifs, includes/section_slider.inc.php,
   animation assets/js/modules/rotating-words.js). Tous les mots sont empilés dans la même
   case de grille : la largeur est celle du mot le plus long, le titre ne « saute » pas. */
.uw-rotating-words {
    display: inline-grid;
    vertical-align: bottom;
    color: var(--em-color, var(--couleur));
}

.uw-rotating-words > span {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(.35em);
    transition: opacity .45s ease, transform .45s ease;
    white-space: nowrap;
}

.uw-rotating-words > span.is-active {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .uw-rotating-words > span {
        transition: none;
    }
}

/* Infos de confiance sous les boutons (slider.trust{1,2,3}_icone/_texte), comme
   .hero-trust de utahweb-redesign.html */
.uw-hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.uw-hero-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}

.uw-hero-trust i {
    color: var(--couleur);
    font-size: 16px;
}

/* Disposition plein écran : contenu centré */
.bunner-content-modern .uw-hero-trust {
    justify-content: center;
}

.intro {
    max-width: 485px;

    margin-top: 20px;

    font-size: 15px;
    line-height: 1.85;

    color: var(--muted);
}

.intro p {
    margin: 0;
}


/* ==========================================================
   BOUTONS (classe .hero-actions, boutons en .uw-btn)
========================================================== */

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 27px;
}

/* Écart icône/texte réduit (base .uw-btn : 22px, pensé pour des boutons isolés) : les deux
   CTA côte à côte dans .hero-copy (44% de .hero-grid) étaient parfois juste trop larges pour
   tenir sur une seule ligne et repassaient en colonne via flex-wrap. */
.hero-actions .uw-btn {
    gap: 10px;
}


/* ==========================================================
   VISUEL — .hero-visual (pas de classe dédiée dans la maquette,
   nécessaire ici pour positionner les KPI en absolu) + .hero-art
========================================================== */

.hero-visual {
    position: relative;
}


.hero-art {
    display: block;

    width: 100%;

    border-radius: 30px;

    mix-blend-mode: multiply;
    pointer-events: none;
}


/* ==========================================================
   VISUEL « RÉSULTAT GOOGLE » (slider.visuel = 'google') — dessiné en CSS,
   à la place de la photo : recherche, carte, votre entreprise en 1re position.
   Réglages par slide : google_recherche / google_nom / google_note.
========================================================== */

/* Marge à droite : place pour la bulle KPI 1 qui dépasse du panneau (sinon coupée par le slide) */
.hero-visual--google {
    padding: 40px 70px 40px 70px;
}

.uw-gserp {
    display: grid;
    gap: 14px;
    max-width: 520px;
    margin-left: auto;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
}

.uw-gserp-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(10, 20, 34, .06);
    font-size: 14px;
}

.uw-gserp-search::before {
    content: "";
    flex: none;
    width: 12px;
    height: 12px;
    border: 2px solid var(--muted);
    border-radius: 50%;
}

.uw-gserp-caret {
    width: 1px;
    height: 15px;
    background: var(--ink);
    animation: uw-gserp-blink 1s steps(1) infinite;
}

@keyframes uw-gserp-blink {
    50% { opacity: 0; }
}

/* Carte façon referencement-google-maps.html : routes, pâtés de maisons, repères à
   icône (.map-pin / .pin-body / .pin-ring) qui tombent l'un après l'autre, onde qui
   pulse sur votre repère (.pin-main, couleur du site). Tout est limité à .uw-gserp-map. */
.uw-gserp-map {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    background: #eef2f6;
}

.uw-gmap-road {
    position: absolute;
    background: #fff;
}

.uw-gmap-road--h1 { left: 0; right: 0; top: 42%; height: 14px; }
.uw-gmap-road--h2 { left: 0; right: 0; top: 74%; height: 8px; opacity: .6; }
.uw-gmap-road--v1 { top: 0; bottom: 0; left: 38%; width: 14px; }
.uw-gmap-road--v2 { top: 0; bottom: 0; left: 72%; width: 8px; opacity: .6; }

.uw-gmap-block {
    position: absolute;
    border-radius: 4px;
    background: rgba(13, 110, 253, .08);
    border: 1px solid rgba(13, 110, 253, .15);
}

.uw-gserp-map .map-pin {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.uw-gserp-map .pin-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.uw-gserp-map .pin-body i {
    transform: rotate(45deg);
    font-size: 12px;
    color: #fff;
}

.uw-gserp-map .pin-ring {
    position: absolute;
    inset: 0;
    border-radius: 50% 50% 50% 0;
    border: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0;
    animation: uw-gmap-ring 2s ease-out 1.6s infinite;
}

.uw-gserp-map .pin-main {
    top: 22%;
    left: 50%;
    margin-left: -20px; /* centre le repère de 40px sur la carte */
    z-index: 2;
    color: var(--couleur);
    animation: uw-gmap-drop .7s cubic-bezier(.2, .8, .3, 1.1) .8s both;
}

.uw-gserp-map .pin-main .pin-body {
    width: 40px;
    height: 40px;
    background: var(--couleur);
}

.uw-gserp-map .pin-main .pin-body i {
    font-size: 15px;
}

.uw-gserp-map .pin-a { top: 12%; left: 18%; animation: uw-gmap-drop .6s ease 1.1s both; }
.uw-gserp-map .pin-a .pin-body { background: #dc3545; }
.uw-gserp-map .pin-b { top: 58%; left: 66%; animation: uw-gmap-drop .6s ease 1.3s both; }
.uw-gserp-map .pin-b .pin-body { background: #198754; }
.uw-gserp-map .pin-c { top: 16%; left: 78%; animation: uw-gmap-drop .6s ease 1.5s both; }
.uw-gserp-map .pin-c .pin-body { background: #ffc107; }
.uw-gserp-map .pin-c .pin-body i { color: #212529; }

@keyframes uw-gmap-drop {
    0%   { translate: 0 -60px; scale: .6; opacity: 0; }
    70%  { translate: 0 6px; scale: 1.05; }
    100% { translate: 0 0; scale: 1; opacity: 1; }
}

@keyframes uw-gmap-ring {
    0%   { scale: 1; opacity: .6; }
    100% { scale: 2.2; opacity: 0; }
}

/* KPI en bulles (comme .bubble-float de referencement-google-maps.html) : fond blanc,
   une ligne « icône + valeur · libellé », petite pointe vers le panneau, flottement léger */
.hero-visual--bulles .uw-slider-kpi {
    gap: 8px;
    min-width: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    white-space: nowrap;
    width: max-content; /* « +180 % · Visibilité locale » sur une seule ligne */
    animation: uw-kpi-float-sm 3.5s ease-in-out infinite;
}

.hero-visual--bulles .uw-slider-kpi-two {
    animation-delay: -1.75s;
}

.hero-visual--bulles .uw-slider-kpi::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
}

.hero-visual--bulles .uw-slider-kpi-one::after { left: -4px; }
.hero-visual--bulles .uw-slider-kpi-two::after { right: -4px; }

.hero-visual--bulles .uw-slider-kpi-icon {
    width: auto;
    height: auto;
    flex-basis: auto;
    background: none;
    font-size: 14px;
}

.hero-visual--bulles .uw-slider-kpi-one .uw-slider-kpi-icon { color: #ffc107; }
.hero-visual--bulles .uw-slider-kpi-two .uw-slider-kpi-icon { color: var(--couleur); }

.hero-visual--bulles .uw-slider-kpi-content {
    display: flex;
    flex-direction: row; /* la règle de base plus bas met le contenu en colonne */
    align-items: baseline;
    gap: 5px;
}

.hero-visual--bulles .uw-slider-kpi strong,
.hero-visual--bulles .uw-slider-kpi small {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
}

.hero-visual--bulles .uw-slider-kpi strong + small::before {
    content: "· ";
}

@keyframes uw-kpi-float-sm {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -6px; }
}

.uw-gserp-list {
    display: grid;
    gap: 8px;
}

.uw-gserp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    opacity: .5;
}

.uw-gserp-item b {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.uw-gserp-item--you {
    opacity: 1;
    background: color-mix(in srgb, var(--couleur) 7%, #fff);
    outline: 1.5px solid var(--couleur);
}

.uw-gserp-stars {
    margin-right: 2px;
    color: #f5a623;
    letter-spacing: 1px;
    font-size: 12px;
}

.uw-gserp-open {
    color: #1e8e3e;
    font-size: 12px;
    font-weight: 500;
}

.uw-gserp-rank {
    display: grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--couleur);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* KPI posés sur les bords du panneau (ordinateur/tablette ; sur mobile ils restent
   empilés sous le visuel, règles ≤767px plus bas) */
@media (min-width: 768px) {
    /* Bulle 1 à droite du panneau (pointe à gauche), bulle 2 à gauche (pointe à droite) */
    .hero-visual--bulles .uw-slider-kpi-one {
        top: 14%;
        right: 0;
        left: auto;
    }

    .hero-visual--bulles .uw-slider-kpi-two {
        top: 56%;
        bottom: auto;
        left: 0;
    }
}

/* Mobile : bulles empilées sous le panneau, sans pointe */
@media (max-width: 767px) {
    .hero-visual--bulles .uw-slider-kpi::after {
        display: none;
    }

    /* Le texte peut repasser à la ligne sur petit écran (pas de débordement) */
    .hero-visual--bulles .uw-slider-kpi {
        width: auto;
        white-space: normal;
    }
}

@media (max-width: 767px) {
    .hero-visual--google {
        padding: 20px 0 0;
    }

    .uw-gserp {
        max-width: none;
        margin: 0;
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uw-gserp-caret,
    .uw-gserp-map .map-pin,
    .uw-gserp-map .pin-ring,
    .hero-visual--bulles .uw-slider-kpi {
        animation: none;
    }
}


/* ==========================================================
   VISUEL « RECHERCHE PAR L'IA » (slider.visuel = 'ia') — téléphone dessiné en CSS
   (repris de referencement-google-maps.html) : la question s'écrit, l'IA répond et
   recommande votre entreprise (mini carte + fiche). Animation : assets/js/modules/hero-ia.js.
   Réglages par slide : ia_question / google_nom / ia_metier / google_note / ia_avis /
   ia_reponse / ia_icone.
========================================================== */

/* Marge basse : l'ombre du téléphone reste dans la zone du slide (sinon coupée net, ligne visible) */
.hero-visual--ia {
    display: flex;
    justify-content: center;
    padding: 20px 0 50px;
}

.uw-aiph {
    position: relative;
    z-index: 1;
    animation: uw-kpi-float 5s ease-in-out infinite;
}

.uw-aiph-shell {
    position: relative;
    width: 270px;
    padding: 10px;
    background: #212529;
    border-radius: 44px;
    box-shadow: 0 16px 32px rgba(33, 37, 41, .12), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.uw-aiph-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 10;
    width: 84px;
    height: 26px;
    transform: translateX(-50%);
    background: #212529;
    border-radius: 0 0 16px 16px;
}

.uw-aiph-screen {
    display: grid;
    grid-template-rows: 44px 1fr auto;
    height: 540px;
    overflow: hidden;
    background: #f7f8fc;
    border-radius: 36px;
    color: #212529;
}

.uw-aiph-status {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 24px 8px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
}

.uw-aiph-status span:last-child {
    display: flex;
    gap: 5px;
}

.uw-aiph-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 12px;
    overflow: hidden;
}

.uw-aiph-msg {
    max-width: 88%;
    padding: 9px 12px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.5;
}

.uw-aiph-user {
    align-self: flex-end;
    min-height: 36px;
    background: #212529;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.uw-aiph-cursor {
    display: inline-block;
    width: 1px;
    height: 13px;
    margin-left: 1px;
    vertical-align: -2px;
    background: #fff;
    animation: uw-gserp-blink 1s steps(1) infinite;
}

.uw-aiph-bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}

.uw-aiph-bot strong {
    color: var(--couleur);
}

.uw-aiph-typing {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 11px 13px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
}

.uw-aiph-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
    animation: uw-aiph-dots 1.2s infinite;
}

.uw-aiph-typing i:nth-child(2) { animation-delay: .2s; }
.uw-aiph-typing i:nth-child(3) { animation-delay: .4s; }

@keyframes uw-aiph-dots {
    0%, 60%, 100% { opacity: .3; }
    30%           { opacity: 1; }
}

.uw-aiph-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

/* Mini carte : même carte que « Résultat Google », plus basse et sans arrondi propre */
.uw-gserp-map.uw-aiph-map {
    height: 110px;
    border-radius: 0;
}

.uw-aiph-result {
    padding: 12px 12px 10px;
}

.uw-aiph-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.uw-aiph-thumb {
    display: grid;
    flex: none;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--couleur), #198754);
    color: #fff;
    font-size: 18px;
}

.uw-aiph-top > div > * {
    display: block;
}

.uw-aiph-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.uw-aiph-type,
.uw-aiph-stars {
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
}

.uw-aiph-stars b {
    color: #ffc107;
    font-weight: 400;
    letter-spacing: 1px;
}

.uw-aiph-open {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: #198754;
}

.uw-aiph-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.uw-aiph-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 0;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}

.uw-aiph-btn--call { background: #198754; color: #fff; }
.uw-aiph-btn--dir  { background: var(--couleur); color: #fff; }
.uw-aiph-btn--web  { background: #f1f3f5; color: #212529; }

/* Barre « Demandez à l'IA… » réduite (gain de place) */
.uw-aiph-input {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 12px 10px;
    padding: 4px 4px 4px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 10px;
    color: #9aa1ad;
}

.uw-aiph-input span:first-child {
    flex: 1;
}

.uw-aiph-send {
    display: grid;
    flex: none;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--couleur);
    color: #fff;
    font-size: 8px;
}

/* Étapes jouées par hero-ia.js (.is-anim posé par le script) : sans script, tout est visible */
.uw-aiph.is-anim .uw-aiph-step {
    display: none;
}

.uw-aiph.is-anim .uw-aiph-step.is-on {
    display: flex;
    animation: uw-aiph-pop .4s ease both;
}

.uw-aiph.is-anim .uw-aiph-card.is-on {
    display: block;
}

@keyframes uw-aiph-pop {
    from { opacity: 0; translate: 0 8px; }
    to   { opacity: 1; translate: 0 0; }
}

@media (max-width: 767px) {
    /* Téléphone sur sa propre ligne, bulles KPI empilées dessous */
    .hero-visual--ia {
        flex-wrap: wrap;
        gap: 0 12px;
    }

    .hero-visual--ia > .uw-aiph {
        display: flex;
        justify-content: center;
        flex-basis: 100%;
    }

    .uw-aiph-shell {
        width: 240px;
    }

    .uw-aiph-screen {
        height: 480px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uw-aiph,
    .uw-aiph-cursor,
    .uw-aiph-typing i {
        animation: none;
    }
}


/* ==========================================================
   DECORATION
========================================================== */

.uw-slider-decoration {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}


/*.uw-decoration-one {
    width: 180px;
    height: 180px;

    right: -40px;
    top: -15px;

    background: rgba(230, 39, 36, .06);
}*//*


.uw-decoration-two {
    width: 100px;
    height: 100px;

    left: 0;
    bottom: 0;

    border: 1px solid rgba(230, 39, 36, .15);
}*/


/* ==========================================================
   NAVIGATION
========================================================== */

/* Même style que les autres carrousels du site (.article-carousel-prev/
   .fiche-carousel-prev/.connexe-carousel-prev dans carousel.css) : mêmes
   dimensions, couleurs et effet de survol. Icône FontAwesome via ::before
   au lieu de l'icône native de Swiper (::after) — d'où l'absence des
   classes swiper-button-prev/-next sur ces boutons dans le HTML, pour ne
   pas cumuler les deux icônes. */
.uw-slider-prev,
.uw-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    line-height: 38px;
    text-align: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, .7);
/* Contrairement aux autres carrousels (fond de carte clair et prévisible),
       ce bouton peut se retrouver sur une photo/illustration de fond très
       claire (slider plein écran) — sans ombre il devient quasi invisible.
       Couleur/fond/survol restent identiques aux autres carrousels. */
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);

    color: var(--couleur4);

    font: 400 20px/38px 'FontAwesome';

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 50;
}


.uw-slider-prev:hover,
.uw-slider-next:hover {
    color: var(--couleur);
    background: rgba(255, 255, 255, .95);
}


.uw-slider-prev::before {
    content: '\f104';
}


.uw-slider-next::before {
    content: '\f105';
}


.uw-slider-prev {
    left: 25px;
}


.uw-slider-next {
    right: 25px;
}


/* Pagination */

.uw-slider-pagination {
    bottom: 30px !important;
}


.uw-slider-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;

    opacity: .25;
}


.uw-slider-pagination .swiper-pagination-bullet-active {
    width: 22px;

    border-radius: 10px;

    opacity: 1;

    background: var(--couleur);
}


/* ==========================================================
   KPI FLOTTANTS
========================================================== */

.uw-slider-kpi {
    position: absolute;
    z-index: 20;

    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 155px;

    padding: 13px 16px;

    background: rgba(255, 255, 255, .96);

    border: 1px solid rgba(10, 20, 34, .07);

    border-radius: 14px;

    box-shadow: 0 15px 45px rgba(10, 20, 34, .12);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: transform .3s ease, box-shadow .3s ease;
}




.uw-slider-kpi-one {
    top: 110px;
    left: 30px;
}


.uw-slider-kpi-two {
    left: 50px;
    bottom: 130px;
}

/* Flottement continu (ordinateur/tablette) : propriété « translate » et pas « transform »,
   pour ne pas écraser la montée au survol ci-dessus. Le 2e KPI flotte en décalé. */
@keyframes uw-kpi-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -12px; }
}

@media (min-width: 768px) {
    .uw-slider-kpi {
        animation: uw-kpi-float 5s ease-in-out infinite;
    }

    .uw-slider-kpi-two {
        animation-duration: 6s;
        animation-delay: -2.5s;
    }
}


.uw-slider-kpi-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--couleur);

    background: rgba(230, 39, 36, .08);

    font-size: 15px;
}


.uw-slider-kpi-content {
    display: flex;
    flex-direction: column;
}


.uw-slider-kpi strong {
    display: block;

    margin: 0;

    color: #0a1422;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.05;
}


.uw-slider-kpi small {
    display: block;

    margin-top: 4px;

    color: #667085;

    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
}


/* ==========================================================
   ≥1600px — comme la maquette
========================================================== */

@media (min-width: 1600px) {

    .hero-grid {
        min-height: 550px;
    }

}


/* ==========================================================
   ≤1150px — comme la maquette
========================================================== */

@media (max-width: 1150px) {

    .hero-grid {
        min-height: 450px;
    }

    .hero-title {
        font-size: 39px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .uw-btn {
        padding: 13px;
        font-size: 12px;
        gap: 12px;
    }

    .uw-slider-prev,
    .uw-slider-next {
        display: none;
    }

}


/* ==========================================================
   TABLETTE/MOBILE (≤800px) — comme la maquette (.hero-grid en 1 colonne)
========================================================== */

@media (max-width: 800px) {

    .hero {
        padding-top: 28px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-copy {
        max-width: 600px;
    }

    .hero-title {
        font-size: 44px;
    }

    .intro {
        max-width: 550px;
        font-size: 15px;
    }

    .hero-art {
        width: 100%;
        max-width: 610px;

        margin: 20px auto 0;
    }

    .hero-actions .uw-btn {
        font-size: 14px;
        padding: 14px 18px;
    }

    .uw-slider-kpi-one {
        left: 0;
    }

    .uw-slider-kpi-two {
        left: 15px;
    }

}


/* ==========================================================
   MOBILE (≤767px) — badges KPI empilés (notre ajout, hors maquette)
========================================================== */

@media (max-width: 767px) {

    .uw-slider-kpi {
        position: relative;

        min-width: 0;
        width: calc(50% - 6px);

        padding: 12px;

        box-shadow: 0 8px 25px rgba(10, 20, 34, .08);
    }

    .uw-slider-kpi-one,
    .uw-slider-kpi-two {
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        display: inline-flex;

        vertical-align: top;

        margin-top: 14px;
    }

    .uw-slider-kpi-one {
        margin-right: 8px;
    }

    .uw-slider-kpi-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        font-size: 13px;
    }

    .uw-slider-kpi strong {
        font-size: 16px;
    }

    .uw-slider-kpi small {
        font-size: 9px;
    }

}


/* ==========================================================
   PETIT MOBILE (≤480px) — comme la maquette
========================================================== */

@media (max-width: 480px) {

    .hero-title {
        font-size: 36px;
        letter-spacing: -1.4px;
    }

    .eyebrow {
        font-size: 13px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .uw-btn {
        font-size: 12px;
        padding: 14px 13px;
        gap: 12px;
    }

    .uw-slider-kpi {
        width: 100%;

        margin-right: 0;
        margin-top: 10px;
    }

}


/* ==========================================================
   ACCESSIBILITÉ
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .uw-slider-kpi {
        transition: none;
        transform: none;
        animation: none;
    }

}

/* ── Repris de css/style.css (2026-09-29) : slider plein écran (#homeSlider) ── */
.section-main-bunner,
.section-main-bunner h1,
.section-main-bunner h2,
.section-main-bunner h3,
.section-main-bunner h4,
.section-main-bunner h5,
.section-main-bunner h6,
.section-main-bunner [class^='heading-'] {
    color: var(--couleur);
}

.section-main-bunner h1 {
    font-size: calc(1.53125rem + 3.375vw) !important;
}

@media (min-width: 1200px) {
    .section-main-bunner h1 {
        font-size: 85px !important;
    }
}

.section-main-bunner .main-bunner-inner *+h1 {
    margin-top: 30px;
}

.row-50 {
    margin-bottom: -50px;
}

.row-50:empty {
    margin-bottom: 0;
}

.row-50>* {
    margin-bottom: 50px;
}

.offset-top-60 {
    margin-top: 60px;
}


/* ==========================================================
   MODE SOMBRE (html.uw-dark, assets/js/modules/theme.js) — disposition
   « Image à droite » (.hero). Le plein écran (photo de fond) n'est pas touché.
   Fonds/cartes/traits via --bg/--card/--line (uw-core.css, réglables dans
   Paramètres : « Fond en mode sombre »).
========================================================== */

/* Fond : celui de .dark .hero dans Maquette_Utah.html (halo violet sur le fond sombre) */
html.uw-dark .hero {
    background:
        radial-gradient(ellipse at 75% 40%, #27253c, transparent 60%),
        var(--bg);
}

/* Titre et texte : couleurs du backoffice posées en inline (souvent foncées, illisibles
   ici) remplacées par le texte clair ; les mots en couleur (em, mots qui défilent) et le
   petit titre (couleur d'accent) gardent leur couleur. */
html.uw-dark .hero .hero-title {
    color: var(--ink) !important;
}

html.uw-dark .hero .intro {
    color: var(--muted) !important;
}

/* Infos de confiance sous les boutons : icônes de la même couleur que leur texte */
html.uw-dark .uw-hero-trust i {
    color: var(--muted);
}

/* Photo du slide : « multiply » la noircirait sur fond sombre */
html.uw-dark .hero .hero-art {
    mix-blend-mode: normal;
}

/* KPI (cartes et bulles) */
html.uw-dark .uw-slider-kpi {
    background: var(--card);
    border-color: var(--line);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .35);
}

html.uw-dark .hero-visual--bulles .uw-slider-kpi,
html.uw-dark .hero-visual--bulles .uw-slider-kpi::after {
    background: var(--card);
}

html.uw-dark .uw-slider-kpi strong,
html.uw-dark .hero-visual--bulles .uw-slider-kpi strong,
html.uw-dark .hero-visual--bulles .uw-slider-kpi small {
    color: var(--ink);
}

html.uw-dark .uw-slider-kpi small {
    color: var(--muted);
}

/* Visuel « Résultat Google » */
html.uw-dark .uw-gserp {
    background: var(--card);
}

html.uw-dark .uw-gserp-search {
    box-shadow: none;
}

html.uw-dark .uw-gserp-item--you {
    background: color-mix(in srgb, var(--couleur) 14%, var(--card));
}

html.uw-dark .uw-gserp-open,
html.uw-dark .uw-aiph-open {
    color: #3ccf6e;
}

/* Carte (Google + téléphone IA) */
html.uw-dark .uw-gserp-map {
    background: color-mix(in srgb, var(--bg) 70%, #3a4a5e);
}

html.uw-dark .uw-gmap-road {
    background: var(--line);
}

html.uw-dark .uw-gmap-block {
    background: rgba(110, 160, 255, .1);
    border-color: rgba(110, 160, 255, .2);
}

/* Visuel « Recherche par l'IA » : écran du téléphone en mode sombre */
html.uw-dark .uw-aiph-shell {
    box-shadow: 0 16px 32px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .15);
}

html.uw-dark .uw-aiph-screen {
    background: var(--bg);
    color: var(--ink);
}

html.uw-dark .uw-aiph-status,
/* Nom de l'entreprise dans la réponse : couleur 1 souvent foncée → couleur 2, comme les boutons en sombre */
html.uw-dark .uw-aiph-bot strong { color: var(--couleur2); }

html.uw-dark .uw-aiph-bot,
html.uw-dark .uw-aiph-typing,
html.uw-dark .uw-aiph-card,
html.uw-dark .uw-aiph-input {
    background: var(--card);
}

html.uw-dark .uw-aiph-user {
    background: var(--line);
}

html.uw-dark .uw-aiph-btn--web {
    background: var(--line);
    color: var(--ink);
}

html.uw-dark .uw-aiph-input {
    color: var(--muted);
}

/* Flèches et pagination */
html.uw-dark .uw-slider-prev,
html.uw-dark .uw-slider-next {
    background: rgba(25, 34, 47, .8);
    color: var(--ink);
}

html.uw-dark .uw-slider-prev:hover,
html.uw-dark .uw-slider-next:hover {
    background: var(--card);
    color: var(--couleur);
}

html.uw-dark .hero .uw-slider-pagination .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
    background: var(--ink);
}


/* ==========================================================
   CARTE LOCALE ANIMÉE (slider.visuel = 'carte', disposition PLEIN ÉCRAN)
   includes/slider_carte.inc.php + assets/js/modules/hero-carte.js
   Étapes en classes sur .uw-lmap : s1 recherche · s2 carte + repères ·
   s3 fiche + lieux voisins · s4 texte du slide. Sans classe = début
   (barre de recherche seule au centre, carte floue).
========================================================== */

.uw-lmap-slide {
    position: relative;
    overflow: hidden;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
}

.uw-lmap {
    --lmap-top: clamp(96px, 13vh, 132px); /* place sous le menu (posé par-dessus le slider) */
    --m-land: #eef1f5;
    --m-block: #e1e6ed;
    --m-park: #d4ead7;
    --m-water: #cde2f4;
    --m-road: #ffffff;
    --m-edge: #d3d9e2;
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--m-land);
    color: var(--ink);
}

/* Fondu en bas de la carte vers le fond du site (2026-10-09) : plus de démarcation nette avec la section
   suivante. Au-dessus de la carte et des repères (z-index ≤ 10), sous la fiche (12) et le texte (20). */
.uw-lmap::after {
    content: "";
    position: absolute;
    z-index: 11;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(90px, 16vh, 180px);
    background: linear-gradient(180deg,
        transparent 0%,
        color-mix(in srgb, var(--bg) 55%, transparent) 45%,
        var(--bg) 100%);
    pointer-events: none;
}

/* Carte */
.uw-lmap-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: blur(7px) saturate(.6);
    transform: scale(1.12);
    transition: filter 1.4s ease, transform 1.8s ease;
}

.uw-lmap-map .land { fill: var(--m-land); }
.uw-lmap-map .block { fill: var(--m-block); }
.uw-lmap-map .park { fill: var(--m-park); }
.uw-lmap-map .water { fill: var(--m-water); }
.uw-lmap-map .road { stroke: var(--m-road); fill: none; stroke-linecap: round; }
.uw-lmap-map .edge { stroke: var(--m-edge); fill: none; stroke-linecap: round; }

.uw-lmap.s2 .uw-lmap-map {
    filter: none;
    transform: none;
}

/* Repères (forme en goutte en ::before, icône FontAwesome dans <i>) */
.uw-lmap-pin {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: clamp(24px, 2.1vw, 34px);
    aspect-ratio: 1;
    isolation: isolate;
    translate: -50% -100%;
    opacity: 0;
    transform: translateY(-40px) scale(.6);
    transition: opacity .45s ease var(--d, 0s), transform .6s cubic-bezier(.2, .9, .3, 1.25) var(--d, 0s);
}

.uw-lmap-pin::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50% 50% 50% 0;
    rotate: -45deg;
    background: var(--c);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}

.uw-lmap-pin > i {
    color: #fff;
    font-size: clamp(10px, .85vw, 14px);
}

.uw-lmap-pin > b {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    translate: -50% 0;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .4s ease calc(var(--d, 0s) + .35s);
}

.uw-lmap-pin--you {
    z-index: 5;
    width: clamp(38px, 3.4vw, 54px);
}

.uw-lmap-pin--you > i {
    font-size: clamp(15px, 1.3vw, 21px);
}

.uw-lmap-pin--you::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 260%;
    aspect-ratio: 2 / 1;
    translate: -50% -50%;
    border: 2px solid var(--couleur);
    border-radius: 50%;
    opacity: 0;
}

.uw-lmap.s2 .uw-lmap-pin { opacity: 1; transform: none; }
.uw-lmap.s2 .uw-lmap-pin--you::after { animation: uw-lmap-ring 2s ease-out .9s infinite; }
.uw-lmap.s3 .uw-lmap-pin > b { opacity: 1; }
.uw-lmap.s4 .uw-lmap-pin:not(.uw-lmap-pin--you) { opacity: .55; }

@keyframes uw-lmap-ring {
    from { opacity: .7; scale: .4; }
    to   { opacity: 0; scale: 1.6; }
}

/* Barre de recherche : seule au centre, puis en haut à gauche (s2) */
.uw-lmap-search {
    position: absolute;
    z-index: 10;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(720px, 52vw);
    padding: 16px 24px;
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 12px 40px rgba(25, 35, 60, .18);
    font-size: clamp(15px, 1.5vw, 22px);
    transition: left .9s cubic-bezier(.6, 0, .2, 1), top .9s cubic-bezier(.6, 0, .2, 1), translate .9s cubic-bezier(.6, 0, .2, 1),
        width .9s cubic-bezier(.6, 0, .2, 1), padding .9s ease, font-size .9s ease, opacity .6s ease;
}

.uw-lmap-search > i { color: var(--muted); }

.uw-lmap-typed {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.uw-lmap-caret {
    display: inline-block;
    flex: none;
    width: 2px;
    height: 1.1em;
    margin-left: -10px;
    background: currentColor;
    animation: uw-gserp-blink 1s steps(1) infinite;
}

.uw-lmap-spin {
    flex: none;
    width: 1.1em;
    height: 1.1em;
    margin-left: auto;
    border: 2.5px solid var(--line);
    border-top-color: var(--couleur);
    border-radius: 50%;
    opacity: 0;
    animation: uw-lmap-spin .8s linear infinite;
}

@keyframes uw-lmap-spin {
    to { rotate: 360deg; }
}

.uw-lmap.s1 .uw-lmap-spin { opacity: 1; }
.uw-lmap.s2 .uw-lmap-spin { opacity: 0; }

.uw-lmap.s2 .uw-lmap-search {
    left: max(4vw, 16px);
    top: var(--lmap-top);
    translate: 0 0;
    width: min(500px, 36vw);
    padding: 11px 18px;
    font-size: clamp(13px, 1vw, 15px);
}

.uw-lmap.s2 .uw-lmap-caret,
.uw-lmap.s4 .uw-lmap-caret { display: none; }

.uw-lmap-status {
    position: absolute;
    z-index: 10;
    left: 50%;
    top: calc(50% + 52px);
    translate: -50% 0;
    color: var(--muted);
    font-size: 15px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .4s ease;
}

.uw-lmap.s1 .uw-lmap-status { opacity: 1; }
.uw-lmap.s2 .uw-lmap-status { opacity: 0; }

/* Catégories sous la barre */
.uw-lmap-chips {
    position: absolute;
    z-index: 10;
    left: max(4vw, 16px);
    top: calc(var(--lmap-top) + 58px);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 60vw;
    transition: opacity .6s ease;
}

.uw-lmap-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 3px 10px rgba(25, 35, 60, .1);
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s ease, transform .4s ease;
}

.uw-lmap-chips span i {
    width: .7em;
    height: .7em;
    border-radius: 50%;
    background: var(--c);
}

.uw-lmap.s2 .uw-lmap-chips span { opacity: 1; transform: none; }
.uw-lmap.s2 .uw-lmap-chips span:nth-child(2) { transition-delay: .1s; }
.uw-lmap.s2 .uw-lmap-chips span:nth-child(3) { transition-delay: .2s; }
.uw-lmap.s2 .uw-lmap-chips span:nth-child(4) { transition-delay: .3s; }
.uw-lmap.s2 .uw-lmap-chips span:nth-child(5) { transition-delay: .4s; }
.uw-lmap.s4 .uw-lmap-search,
.uw-lmap.s4 .uw-lmap-chips { opacity: 0; }

/* Votre fiche + lieux voisins, à droite de votre repère */
.uw-lmap-side {
    position: absolute;
    z-index: 12;
    left: 57%;
    top: max(var(--lmap-top), 16%);
    display: grid;
    gap: 10px;
    width: clamp(280px, 25vw, 380px);
}

.uw-lmap-card {
    padding: 20px;
    border-radius: 16px;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 18px 50px rgba(25, 35, 60, .22);
    opacity: 0;
    transform: translateY(16px) scale(.96);
    transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .3, 1.2);
}

.uw-lmap.s3 .uw-lmap-card { opacity: 1; transform: none; }

.uw-lmap-rank {
    display: block;
    margin-bottom: 10px;
    color: var(--couleur);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.uw-lmap-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.uw-lmap-card-top > div > * { display: block; }

.uw-lmap-thumb {
    display: grid;
    flex: none;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--couleur), color-mix(in srgb, var(--couleur) 55%, #000));
    color: #fff;
    font-size: 22px;
}

.uw-lmap-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.uw-lmap-meta {
    color: var(--muted);
    font-size: 13px;
}

.uw-lmap-stars {
    color: #f6b100;
    letter-spacing: 1px;
}

.uw-lmap-open {
    display: block;
    margin-top: 12px;
    color: #157a43;
    font-size: 13px;
    font-weight: 600;
}

.uw-lmap-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 14px;
}

.uw-lmap-actions span {
    padding: 8px 0;
    border-radius: 8px;
    background: color-mix(in srgb, var(--ink) 6%, var(--card));
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.uw-lmap-actions span:first-child {
    background: var(--couleur);
    color: #fff;
}

.uw-lmap-near {
    display: grid;
    gap: 8px;
}

.uw-lmap-near span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--card) 94%, transparent);
    color: var(--ink);
    box-shadow: 0 6px 18px rgba(25, 35, 60, .12);
    font-size: 13px;
    opacity: 0;
    transform: translateX(14px);
    transition: opacity .45s ease, transform .45s ease;
}

.uw-lmap-near span i { color: var(--c); width: 1.1em; text-align: center; }

.uw-lmap-near span em {
    margin-left: auto;
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.uw-lmap.s3 .uw-lmap-near span { opacity: 1; transform: none; }
.uw-lmap.s3 .uw-lmap-near span:nth-child(1) { transition-delay: .5s; }
.uw-lmap.s3 .uw-lmap-near span:nth-child(2) { transition-delay: .7s; }
.uw-lmap.s3 .uw-lmap-near span:nth-child(3) { transition-delay: .9s; }

/* Texte du slide (backoffice), à gauche sur un voile de la couleur de fond du site */
.uw-lmap-copy {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    padding-top: var(--lmap-top);
    opacity: 0;
    pointer-events: none;
    transition: opacity .9s ease;
}

.uw-lmap-copy::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--bg) 97%, transparent) 0%,
        color-mix(in srgb, var(--bg) 90%, transparent) 34%,
        transparent 62%);
}

.uw-lmap-copy-inner {
    max-width: 560px;
}

.uw-lmap-copy-inner > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s ease, transform .7s ease;
}

.uw-lmap.s4 .uw-lmap-copy { opacity: 1; pointer-events: auto; }
.uw-lmap.s4 .uw-lmap-copy-inner > * { opacity: 1; transform: none; }
.uw-lmap.s4 .uw-lmap-copy-inner > :nth-child(2) { transition-delay: .12s; }
.uw-lmap.s4 .uw-lmap-copy-inner > :nth-child(3) { transition-delay: .24s; }
.uw-lmap.s4 .uw-lmap-copy-inner > :nth-child(4) { transition-delay: .36s; }
.uw-lmap.s4 .uw-lmap-copy-inner > :nth-child(5) { transition-delay: .48s; }

/* Ordinateur (2026-10-09) : infos de confiance sur une seule ligne dans la slide carte (3 infos ne tenaient
   pas dans les 560px du texte) — la ligne peut dépasser un peu la colonne de texte. */
@media (min-width: 992px) {
    .uw-lmap .uw-hero-trust {
        flex-wrap: nowrap;
        gap: 12px 22px;
        width: max-content;
        max-width: min(760px, 90vw);
    }
    .uw-lmap .uw-hero-trust li { white-space: nowrap; }
}

/* Ordinateur (2026-10-09) : le texte du slide arrive en même temps que la fiche (étape 3) au lieu de
   l'étape 4 ; la recherche et les étiquettes (en haut à gauche, sous le texte) s'effacent au même moment.
   Tablette / mobile : inchangé (fiche et texte au même endroit en bas, l'un après l'autre). */
@media (min-width: 992px) {
    .uw-lmap.s3 .uw-lmap-search,
    .uw-lmap.s3 .uw-lmap-chips { opacity: 0; }
    .uw-lmap.s3 .uw-lmap-copy { opacity: 1; pointer-events: auto; }
    .uw-lmap.s3 .uw-lmap-copy-inner > * { opacity: 1; transform: none; }
    .uw-lmap.s3 .uw-lmap-copy-inner > :nth-child(2) { transition-delay: .12s; }
    .uw-lmap.s3 .uw-lmap-copy-inner > :nth-child(3) { transition-delay: .24s; }
    .uw-lmap.s3 .uw-lmap-copy-inner > :nth-child(4) { transition-delay: .36s; }
    .uw-lmap.s3 .uw-lmap-copy-inner > :nth-child(5) { transition-delay: .48s; }
}

.uw-lmap-title {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: clamp(2rem, 3.4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.uw-lmap-title em {
    color: var(--em-color, var(--couleur));
    font-style: normal;
}

.uw-lmap-text {
    max-width: 480px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.uw-lmap-text p { margin: 0; }

/* Mode sombre : carte de nuit (la fiche et le voile suivent déjà --card / --bg) */
html.uw-dark .uw-lmap {
    --m-land: #0f1724;
    --m-block: #162133;
    --m-park: #12291f;
    --m-water: #10243a;
    --m-road: #22304a;
    --m-edge: #0f1724;
}

html.uw-dark .uw-lmap-open { color: #3ccf6e; }

/* Titre du slide carte : couleur du backoffice posée en inline (souvent foncée) → texte clair
   en mode sombre, comme tous les titres du site (uw-core.css). Mots en couleur gardés. */
html.uw-dark .uw-lmap .uw-lmap-title { color: rgba(243, 245, 251, 0.85) !important; }
html.uw-dark .uw-lmap-card,
html.uw-dark .uw-lmap-search { box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }

/* Tablette / mobile : fiche en bas, texte en bas sur un voile montant */
@media (max-width: 991px) {
    .uw-lmap { --lmap-top: 86px; }

    .uw-lmap-search { width: calc(100% - 32px); }

    .uw-lmap.s2 .uw-lmap-search {
        left: 16px;
        width: calc(100% - 32px);
    }

    .uw-lmap-chips { left: 16px; max-width: calc(100% - 32px); }
    .uw-lmap-chips span:nth-child(n+4) { display: none; }

    .uw-lmap-side {
        left: 16px;
        right: 16px;
        top: auto;
        bottom: 24px;
        width: auto;
        max-width: 420px;
        margin: 0 auto;
    }

    .uw-lmap-near { display: none; }
    .uw-lmap-pin > b { display: none; }
    .uw-lmap-pin--you > b { display: block; }
    .uw-lmap.s4 .uw-lmap-side { opacity: 0; transition: opacity .5s ease; }

    .uw-lmap-copy {
        align-items: flex-end;
        padding-bottom: 48px;
    }

    /* Voile presque plein : le texte occupe la majeure partie de l'écran, la carte ne doit pas passer à travers */
    .uw-lmap-copy::before {
        background: linear-gradient(0deg,
            color-mix(in srgb, var(--bg) 98%, transparent) 0%,
            color-mix(in srgb, var(--bg) 95%, transparent) 60%,
            color-mix(in srgb, var(--bg) 78%, transparent) 80%,
            color-mix(in srgb, var(--bg) 35%, transparent) 100%);
    }

    .uw-lmap.s4 .uw-lmap-pin:not(.uw-lmap-pin--you) { opacity: .3; }
    .uw-lmap.s4 .uw-lmap-pin > b { opacity: 0; }

    .uw-lmap-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
    .uw-lmap *,
    .uw-lmap *::before,
    .uw-lmap *::after {
        transition: none !important;
        animation: none !important;
    }
}
