/* UNIPHARM — palette alignée sur le logo officiel */
:root {
    /* Logo : bleu marine « Uni », vert citron « pharm », vert forêt icône */
    --up-navy: #002e5d;
    --up-navy-mid: #003366;
    --up-lime: #8dc63f;
    --up-lime-dark: #76a836;
    --up-forest: #006837;
    --up-forest-dark: #004b23;
    /* Alias rétrocompatibilité avec l’existant */
    --up-teal: var(--up-forest);
    --up-teal-dark: var(--up-forest-dark);
    --up-green: var(--up-lime);
    --up-dark: #0f172a;
    --up-muted: #64748b;
    --up-mist: #eef6f0;
    --up-ice: #e8f2f8;
}

body.app-skin {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--up-dark);
}

.app-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 46, 93, 0.1);
    box-shadow: 0 4px 24px rgba(0, 46, 93, 0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.app-header__top {
    background: linear-gradient(90deg, var(--up-navy) 0%, var(--up-forest) 100%);
    color: #e8f4fc;
    font-size: 0.78rem;
    padding: 0.28rem 0;
}
.app-header__top a {
    color: #e8f4fc;
    text-decoration: none;
}
.app-header__top a:hover {
    color: #fff;
}

.app-header__main {
    padding: 0.45rem 0;
}
.app-header__main .navbar {
    padding-top: 0;
    padding-bottom: 0;
}
.app-header__main .navbar-brand {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    margin-right: 0.75rem;
}
.app-header__main .navbar-brand img {
    height: 40px;
    width: auto;
}
.app-logo-text {
    font-weight: 800;
    font-size: 1.35rem;
    background: linear-gradient(90deg, var(--up-navy) 0%, var(--up-navy) 38%, var(--up-lime) 38%, var(--up-forest) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.app-nav .nav-link {
    color: var(--up-navy) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.35rem 0.7rem !important;
}
.app-nav .nav-link:hover,
.app-nav .nav-link.active {
    color: var(--up-forest) !important;
}

.btn-up-primary {
    background: var(--up-lime);
    border-color: var(--up-lime);
    color: #0f172a !important;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
}
.btn-up-primary:hover {
    background: var(--up-lime-dark);
    border-color: var(--up-lime-dark);
    color: #0f172a !important;
}

.btn-up-outline {
    border: 2px solid var(--up-forest);
    color: var(--up-forest) !important;
    background: transparent;
    font-weight: 600;
    border-radius: 8px;
}
.btn-up-outline:hover {
    background: var(--up-forest);
    border-color: var(--up-forest);
    color: #fff !important;
}

.lang-switch a {
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}
.lang-switch__sep {
    user-select: none;
}
.lang-switch__sep--top {
    color: rgba(255, 255, 255, 0.45);
}

/* Sélecteur langue : pastilles (barre du haut, fond dégradé) */
.lang-switch--top.lang-switch--pills {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.lang-switch--top.lang-switch--pills a {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    opacity: 1;
    line-height: 1;
}
.lang-switch--top.lang-switch--pills a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.lang-switch--top.lang-switch--pills a.active {
    color: var(--up-navy);
    background: linear-gradient(180deg, #f4fce8 0%, var(--up-lime) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

/* Langue FR | EN : barre blanche (mobile, à côté du menu) */
.lang-switch--bar.lang-switch--pills {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.22rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fafc 0%, var(--up-mist) 100%);
    border: 1px solid rgba(0, 46, 93, 0.1);
    box-shadow: 0 2px 8px rgba(0, 46, 93, 0.06);
}
.lang-switch--bar.lang-switch--pills a {
    color: var(--up-navy);
    text-decoration: none;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    opacity: 0.55;
    line-height: 1;
}
.lang-switch--bar.lang-switch--pills a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.85);
    color: var(--up-forest);
}
.lang-switch--bar.lang-switch--pills a.active {
    opacity: 1;
    color: var(--up-navy);
    background: linear-gradient(180deg, #e8f5e0 0%, rgba(141, 198, 63, 0.45) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.app-header__toggler {
    padding: 0.38rem 0.58rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 46, 93, 0.2);
}
.app-header__toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(141, 198, 63, 0.25);
}

@media (max-width: 991.98px) {
    .app-header__collapse {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(0, 46, 93, 0.1);
    }
    .app-header__collapse .app-nav {
        width: 100%;
        margin-bottom: 0 !important;
    }
    .app-header__collapse .app-nav .nav-item {
        border-bottom: 1px solid rgba(0, 46, 93, 0.07);
    }
    .app-header__collapse .app-nav .nav-item:last-of-type {
        border-bottom: none;
    }
    .app-header__collapse .app-nav .nav-link {
        padding: 0.6rem 0.65rem !important;
        font-size: 0.9375rem;
        border-radius: 8px;
    }
    .app-header__collapse .app-nav .nav-link.active {
        color: var(--up-forest) !important;
        background: var(--up-mist);
        font-weight: 700;
    }
    .app-header__ctas {
        margin-top: 0.65rem !important;
        padding-top: 0.35rem;
        width: 100%;
    }
    .app-header__ctas .btn-up-primary {
        padding: 0.62rem 1rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .app-header__collapse .app-nav .nav-item {
        border-bottom: none;
    }
}

/* --- Carrousel hero --- */
.hero-slider {
    position: relative;
    background: var(--up-navy);
    /* Hauteur fixe : toutes les slides (22, 25, 23, 24) ont la même hauteur */
    --hero-slider-h: min(82vh, 760px);
}
.hero-slider .carousel-inner {
    border-radius: 0;
    min-height: var(--hero-slider-h);
}
.hero-slider .carousel-item {
    height: var(--hero-slider-h);
    min-height: var(--hero-slider-h);
}
.hero-slider__slide {
    position: relative;
    height: var(--hero-slider-h);
    min-height: var(--hero-slider-h);
    max-height: var(--hero-slider-h);
    overflow: hidden;
    background: var(--up-navy);
}
.hero-slider__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.12);
    will-change: transform;
}
.carousel-item.active .hero-slider__bg-img {
    animation: hero-kenburns 9s ease-out forwards;
}
.hero-slider__bg-img--fallback {
    background: linear-gradient(
        135deg,
        var(--up-navy) 0%,
        var(--up-forest-dark) 45%,
        var(--up-forest) 100%
    );
}
@keyframes hero-kenburns {
    0% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}
.hero-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(0, 28, 58, 0.92) 0%,
        rgba(0, 46, 93, 0.72) 32%,
        rgba(0, 46, 93, 0.38) 52%,
        rgba(0, 70, 45, 0.22) 78%,
        rgba(0, 104, 55, 0.12) 100%
    );
    pointer-events: none;
}
.hero-slider__content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    padding: 3.25rem 0 4rem;
    box-sizing: border-box;
}
@media (min-width: 576px) {
    .hero-slider__content {
        padding: 4rem 0 4.5rem;
    }
}
@media (min-width: 992px) {
    .hero-slider__content {
        padding: 4.5rem 0 5rem;
    }
}
.hero-slider__copy {
    padding: 1.65rem 1.5rem;
    border-radius: 18px;
    background: rgba(0, 24, 52, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
    .hero-slider__copy {
        padding: 2rem 2.15rem;
        max-width: 38rem;
    }
}
@media (min-width: 1200px) {
    .hero-slider__copy {
        padding: 2.25rem 2.5rem;
    }
}
.hero-slider__actions {
    padding-top: 0.15rem;
}
.hero-slider h1 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.85rem, 4.2vw, 3rem);
    line-height: 1.18;
    max-width: 20ch;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}
.hero-slider .lead {
    color: rgba(255, 255, 255, 0.94);
    max-width: 36rem;
    font-size: clamp(1.02rem, 2.1vw, 1.22rem);
    line-height: 1.65;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}
.hero-slider__indicators {
    margin-bottom: 1.25rem;
    z-index: 4;
}
.hero-slider__indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    opacity: 1;
}
.hero-slider__indicators [data-bs-target].active {
    background: var(--up-lime);
    border-color: var(--up-lime);
    box-shadow: 0 0 0 2px rgba(141, 198, 63, 0.45);
}
.hero-slider__ctrl {
    width: 8%;
    min-width: 3rem;
    z-index: 4;
    opacity: 1;
}
.hero-slider__ctrl .carousel-control-prev-icon,
.hero-slider__ctrl .carousel-control-next-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: rgba(0, 46, 93, 0.55);
    border: 2px solid rgba(141, 198, 63, 0.5);
    background-size: 45% 45%;
}
@media (max-width: 575.98px) {
    .hero-slider__ctrl {
        width: 12%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slider__bg-img {
        animation: none !important;
        transform: scale(1) !important;
    }
}

/* Boutons secondaires sur fond sombre (hero) */
.hero-slider .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    border-radius: 8px;
    color: #fff !important;
}
.hero-slider .btn-outline-light:hover {
    background: rgba(141, 198, 63, 0.2);
    border-color: var(--up-lime);
    color: #fff !important;
}

/* --- Sections accueil : alternance mist / blanc / ice / bandeau marine --- */
.home-section {
    position: relative;
}
.home-section--mist {
    background: var(--up-mist);
}
.home-section--ice {
    background: var(--up-ice);
}
.home-section--dark {
    background: linear-gradient(165deg, var(--up-navy) 0%, var(--up-navy-mid) 42%, var(--up-forest) 100%);
    color: #fff;
}
.home-section--dark .section-title {
    color: #fff;
}
.home-section--dark .section-kicker {
    color: var(--up-lime);
}
.home-section--dark .lead,
.home-section--dark .text-secondary {
    color: rgba(255, 255, 255, 0.88) !important;
}
.home-section--contact {
    background: linear-gradient(135deg, var(--up-navy) 0%, var(--up-forest-dark) 55%, var(--up-forest) 100%);
    color: #fff;
}
.home-section--contact .section-title {
    color: #fff;
}
.home-section--contact .section-kicker,
.home-section--contact .text-on-brand {
    color: var(--up-lime);
}
.home-section--contact .text-secondary {
    color: rgba(255, 255, 255, 0.9) !important;
}
.home-contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(141, 198, 63, 0.25);
}

.section-title {
    font-weight: 800;
    color: var(--up-navy);
    margin-bottom: 0.5rem;
}
.section-kicker {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--up-forest);
}
.home-section--mist .section-kicker {
    color: var(--up-forest);
}
.home-section--ice .section-kicker {
    color: var(--up-navy-mid);
}

.link-brand {
    color: var(--up-forest);
    text-decoration: none;
    font-weight: 700;
}
.link-brand:hover {
    color: var(--up-lime-dark);
}

/* --- Accueil : Notre engagement — fond clair, cartes blanches (tons doux UNIPHARM) --- */
.home-promise-band {
    position: relative;
    overflow: hidden;
    padding-top: 3.25rem !important;
    padding-bottom: 3.5rem !important;
    background: linear-gradient(
        185deg,
        #f3faf6 0%,
        #eef6f0 38%,
        #f0f7fb 72%,
        #e8f4ee 100%
    );
    color: var(--up-dark);
}
@media (min-width: 992px) {
    .home-promise-band {
        padding-top: 4rem !important;
        padding-bottom: 4.25rem !important;
    }
}
.home-promise-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 65% at 8% 15%, rgba(141, 198, 63, 0.12), transparent 50%),
        radial-gradient(ellipse 75% 60% at 92% 80%, rgba(0, 46, 93, 0.06), transparent 48%);
    pointer-events: none;
}
.home-promise-band::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23006837' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.home-promise-band .container {
    position: relative;
    z-index: 1;
}
.home-promise-band__kicker-box {
    display: inline-block;
    margin: 0 auto 1.35rem;
    padding: 0.45rem 1.15rem;
    background: #fff;
    color: var(--up-forest);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 8px;
    border: 1px solid rgba(0, 104, 55, 0.12);
    box-shadow: 0 4px 18px rgba(0, 46, 93, 0.06);
}
.home-promise-band__triad {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0 0.5rem;
}
.home-promise-band__triad-word {
    font-size: clamp(1.1rem, 3.5vw, 1.95rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--up-navy);
    text-shadow: none;
    opacity: 0;
    transform: translateY(14px);
}
.home-promise-band__intro.is-visible .home-promise-band__triad-word {
    animation: home-promise-triad-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.18s + var(--triad-d, 0s));
}
.home-promise-band__triad-sep {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    color: rgba(0, 104, 55, 0.35);
    line-height: 1;
    user-select: none;
    opacity: 0;
    transform: scale(0.6);
}
.home-promise-band__intro.is-visible .home-promise-band__triad-sep {
    animation: home-promise-sep-in 0.45s ease forwards;
}
.home-promise-band__intro.is-visible .home-promise-band__triad-sep:nth-child(2) {
    animation-delay: 0.32s;
}
.home-promise-band__intro.is-visible .home-promise-band__triad-sep:nth-child(4) {
    animation-delay: 0.52s;
}
@keyframes home-promise-triad-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes home-promise-sep-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.home-promise-band__foot {
    position: relative;
    z-index: 1;
}
.home-promise-band__more {
    color: var(--up-forest);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}
.home-promise-band__more:hover {
    color: var(--up-lime-dark);
    transform: translateX(3px);
}
.up-promise-card {
    position: relative;
    padding: 1.65rem 1.45rem 1.75rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 46, 93, 0.08);
    box-shadow: 0 8px 32px rgba(0, 46, 93, 0.07);
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}
@media (min-width: 768px) {
    .up-promise-card {
        padding: 1.85rem 1.6rem 2rem;
    }
}
.up-promise-card:hover {
    transform: translateY(-6px);
    border-color: rgba(141, 198, 63, 0.45);
    box-shadow: 0 18px 44px rgba(0, 46, 93, 0.11);
}
.up-promise-card__accent {
    position: absolute;
    top: 0;
    left: 1.15rem;
    right: 1.15rem;
    height: 4px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, var(--up-lime), var(--up-lime-dark));
}
.home-promise-band .col-lg-4:nth-child(1) .up-promise-card__accent {
    background: linear-gradient(90deg, var(--up-lime), var(--up-lime-dark));
    box-shadow: none;
}
.home-promise-band .col-lg-4:nth-child(2) .up-promise-card__accent {
    background: linear-gradient(90deg, var(--up-navy), var(--up-navy-mid));
    box-shadow: none;
}
.home-promise-band .col-lg-4:nth-child(3) .up-promise-card__accent {
    background: linear-gradient(90deg, var(--up-forest), #2a9d6c);
    box-shadow: none;
}
.up-promise-card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(141, 198, 63, 0.2), rgba(0, 104, 55, 0.1));
    border: 1px solid rgba(141, 198, 63, 0.28);
}
.home-promise-band .col-lg-4:nth-child(2) .up-promise-card__icon-wrap {
    background: linear-gradient(145deg, rgba(0, 46, 93, 0.08), rgba(0, 104, 55, 0.06));
    border-color: rgba(0, 46, 93, 0.12);
}
.home-promise-band .col-lg-4:nth-child(3) .up-promise-card__icon-wrap {
    background: linear-gradient(145deg, rgba(0, 104, 55, 0.12), rgba(141, 198, 63, 0.12));
    border-color: rgba(0, 104, 55, 0.2);
}
.up-promise-card__icon {
    font-size: 1.35rem;
    color: var(--up-forest);
}
.home-promise-band .col-lg-4:nth-child(2) .up-promise-card__icon {
    color: var(--up-navy);
}
.home-promise-band .col-lg-4:nth-child(3) .up-promise-card__icon {
    color: var(--up-forest-dark);
}
.up-promise-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--up-navy);
    margin-bottom: 0.6rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.up-promise-card__text {
    font-size: 0.9rem;
    line-height: 1.68;
    color: #475569;
}
.js-up-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--up-reveal-delay, 0s);
}
.js-up-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes up-promise-icon-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}
.js-up-reveal.is-visible .up-promise-card__icon {
    animation: up-promise-icon-float 3.8s ease-in-out infinite;
    animation-delay: calc(var(--up-reveal-delay, 0s) + 0.35s);
}
.home-promise-band .col-lg-4:nth-child(2) .js-up-reveal.is-visible .up-promise-card__icon {
    animation-duration: 4.3s;
}
.home-promise-band .col-lg-4:nth-child(3) .js-up-reveal.is-visible .up-promise-card__icon {
    animation-duration: 3.3s;
}
@media (prefers-reduced-motion: reduce) {
    .home-promise-band__triad-word,
    .home-promise-band__triad-sep {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
    .js-up-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .js-up-reveal.is-visible .up-promise-card__icon {
        animation: none;
    }
}

/* Cartes piliers : accent alterné */
.pillar-card {
    border: 1px solid rgba(0, 46, 93, 0.08);
    border-top: 4px solid var(--up-lime);
    box-shadow: 0 4px 20px rgba(0, 46, 93, 0.06);
}
.home-section--mist .col-md-6.col-lg-3:nth-child(4n + 2) .pillar-card {
    border-top-color: var(--up-navy);
}
.home-section--mist .col-md-6.col-lg-3:nth-child(4n + 3) .pillar-card {
    border-top-color: var(--up-forest);
}
.home-section--mist .col-md-6.col-lg-3:nth-child(4n + 4) .pillar-card {
    border-top-color: var(--up-lime-dark);
}
.pillar-title {
    color: var(--up-forest);
}
.col-md-6.col-lg-3:nth-child(4n + 2) .pillar-title {
    color: var(--up-navy);
}
.col-md-6.col-lg-3:nth-child(4n + 3) .pillar-title {
    color: var(--up-lime-dark);
}
.col-md-6.col-lg-3:nth-child(4n + 4) .pillar-title {
    color: var(--up-forest-dark);
}

/* Produits */
.home-products .card-up {
    border: 1px solid rgba(0, 46, 93, 0.1);
    border-top: 4px solid var(--up-lime);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-products__grid > [class*="col-"]:nth-child(3n + 2) .card-up {
    border-top-color: var(--up-navy);
}
.home-products__grid > [class*="col-"]:nth-child(3n + 3) .card-up {
    border-top-color: var(--up-forest);
}
.home-products .card-up:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 46, 93, 0.12);
}
.home-products .card-up__img {
    height: 220px;
    background: linear-gradient(135deg, #e8f2f8 0%, #eef6f0 100%);
    object-fit: cover;
}

/* Services (page liste — cartes classiques) */
.svc-card {
    border: 1px solid rgba(0, 46, 93, 0.1) !important;
    border-left: 4px solid var(--up-lime) !important;
    box-shadow: 0 4px 16px rgba(0, 46, 93, 0.05);
}
.page-section--ice .col-md-6:nth-child(3n + 2) .svc-card,
.home-section--ice .col-md-6:nth-child(3n + 2) .svc-card {
    border-left-color: var(--up-navy) !important;
}
.page-section--ice .col-md-6:nth-child(3n + 3) .svc-card,
.home-section--ice .col-md-6:nth-child(3n + 3) .svc-card {
    border-left-color: var(--up-forest) !important;
}
.svc-card .svc-title {
    color: var(--up-forest);
    font-weight: 700;
}
.page-section--ice .col-md-6:nth-child(3n + 2) .svc-title,
.home-section--ice .col-md-6:nth-child(3n + 2) .svc-title {
    color: var(--up-navy);
}
.page-section--ice .col-md-6:nth-child(3n + 3) .svc-title,
.home-section--ice .col-md-6:nth-child(3n + 3) .svc-title {
    color: var(--up-lime-dark);
}

/* Accueil : grille services (6 cartes, animations) */
.home-services-grid .svc-tile {
    position: relative;
    border-radius: 22px;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 48%, #f1f5f9 100%);
    border: 1px solid rgba(0, 46, 93, 0.07);
    box-shadow:
        0 2px 4px rgba(0, 46, 93, 0.03),
        0 16px 40px rgba(0, 46, 93, 0.07);
    overflow: hidden;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}
.home-services-grid .svc-tile__glow {
    position: absolute;
    top: -40%;
    right: -25%;
    width: 70%;
    height: 80%;
    background: radial-gradient(circle, rgba(141, 198, 63, 0.14) 0%, transparent 68%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.home-services-grid .svc-tile__inner {
    position: relative;
    z-index: 1;
    padding: 1.45rem 1.35rem 1.4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.home-services-grid .svc-tile__icon {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(145deg, rgba(141, 198, 63, 0.2) 0%, rgba(0, 104, 55, 0.08) 100%);
    color: var(--up-forest);
    border: 1px solid rgba(141, 198, 63, 0.22);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        color 0.35s ease;
}
.home-services-grid .col-lg-4:nth-child(3n + 2) .svc-tile__icon {
    background: linear-gradient(145deg, rgba(0, 46, 93, 0.12) 0%, rgba(0, 104, 55, 0.06) 100%);
    color: var(--up-navy);
    border-color: rgba(0, 46, 93, 0.12);
}
.home-services-grid .col-lg-4:nth-child(3n + 3) .svc-tile__icon {
    background: linear-gradient(145deg, rgba(0, 104, 55, 0.14) 0%, rgba(141, 198, 63, 0.12) 100%);
    color: var(--up-forest);
    border-color: rgba(0, 104, 55, 0.15);
}
.home-services-grid .svc-tile__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--up-navy);
    margin: 0 0 0.55rem;
    letter-spacing: -0.02em;
    line-height: 1.35;
}
.home-services-grid .col-lg-4:nth-child(3n + 1) .svc-tile__title {
    color: var(--up-forest);
}
.home-services-grid .col-lg-4:nth-child(3n + 3) .svc-tile__title {
    color: var(--up-lime-dark);
}
.home-services-grid .svc-tile__text {
    font-size: 0.875rem;
    line-height: 1.62;
    color: #64748b;
    margin: 0;
    flex-grow: 1;
}
.home-services-grid .svc-tile::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 22px 0 0 22px;
    background: linear-gradient(180deg, var(--up-lime) 0%, var(--up-forest) 100%);
    opacity: 0.95;
}
.home-services-grid .col-lg-4:nth-child(3n + 2) .svc-tile::after {
    background: linear-gradient(180deg, var(--up-navy-mid) 0%, var(--up-navy) 100%);
}
.home-services-grid .col-lg-4:nth-child(3n + 3) .svc-tile::after {
    background: linear-gradient(180deg, var(--up-forest) 0%, var(--up-lime-dark) 100%);
}
@media (hover: hover) and (pointer: fine) {
    .home-services-grid .svc-tile:hover,
    .home-services-grid .svc-tile:focus-within {
        transform: translateY(-10px);
        box-shadow:
            0 8px 16px rgba(0, 104, 55, 0.06),
            0 28px 56px rgba(0, 46, 93, 0.12);
        border-color: rgba(141, 198, 63, 0.35);
    }
    .home-services-grid .svc-tile:hover .svc-tile__glow,
    .home-services-grid .svc-tile:focus-within .svc-tile__glow {
        opacity: 1;
    }
    .home-services-grid .svc-tile:hover .svc-tile__icon,
    .home-services-grid .svc-tile:focus-within .svc-tile__icon {
        animation: none;
        transform: scale(1.06) translateY(-2px);
    }
}
.home-services-grid .svc-tile.is-visible .svc-tile__icon {
    animation: svc-tile-icon-pulse 2.8s ease-in-out infinite;
    animation-delay: calc(var(--up-reveal-delay, 0s) + 0.4s);
}
@keyframes svc-tile-icon-pulse {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-services-grid .svc-tile {
        transition: none;
    }
    .home-services-grid .svc-tile:hover,
    .home-services-grid .svc-tile:focus-within {
        transform: none;
    }
    .home-services-grid .svc-tile.is-visible .svc-tile__icon {
        animation: none;
    }
    .home-services-grid .svc-tile__glow {
        display: none;
    }
}

/* Pourquoi nous */
.why-card {
    background: #fff;
    color: var(--up-dark);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 4px solid var(--up-lime);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    align-items: flex-start;
}
.home-section--dark .col-md-6:nth-child(3n + 2) .why-card {
    border-left-color: var(--up-navy-mid);
}
.home-section--dark .col-md-6:nth-child(3n + 3) .why-card {
    border-left-color: var(--up-forest);
}
.why-card .why-icon {
    color: var(--up-lime);
    flex-shrink: 0;
}
.why-card h3 {
    color: var(--up-navy);
}

/* Partenaires (page liste + carrousel accueil) */
.partner-tile {
    border: 1px solid rgba(0, 46, 93, 0.1);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.partner-tile:hover {
    border-color: rgba(141, 198, 63, 0.55);
    box-shadow: 0 8px 24px rgba(0, 104, 55, 0.1);
}
/* Bandeau partenaires défilant (accueil) */
.partners-marquee {
    --partners-marquee-duration: 48s;
}
.partners-marquee__viewport {
    overflow: hidden;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding: 0.35rem 0 0.5rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.partners-marquee__track {
    display: flex;
    width: max-content;
    animation: partners-marquee-scroll var(--partners-marquee-duration, 48s) linear infinite;
    will-change: transform;
}
.partners-marquee__track:hover {
    animation-play-state: paused;
}
.partners-marquee__group {
    display: flex;
    flex-shrink: 0;
    align-items: stretch;
    gap: 1.15rem;
    padding-right: 1.15rem;
}
.partners-marquee__item {
    flex: 0 0 auto;
    width: 11.5rem;
    max-width: 42vw;
}
@keyframes partners-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.partner-showcase-card {
    text-align: center;
    margin: 0;
    padding: 1.35rem 1rem 1.25rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 46, 93, 0.08);
    box-shadow:
        0 4px 6px rgba(0, 46, 93, 0.04),
        0 16px 36px rgba(0, 46, 93, 0.06);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.25s ease;
}
.partner-showcase-card:hover {
    transform: translateY(-5px);
    border-color: rgba(141, 198, 63, 0.35);
    box-shadow:
        0 8px 16px rgba(0, 104, 55, 0.06),
        0 24px 48px rgba(0, 46, 93, 0.1);
}
.partner-showcase-card--page {
    padding: 1.65rem 1.15rem 1.5rem;
}
.partner-showcase-card__media {
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1rem;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, var(--up-mist) 100%);
    border: 1px solid rgba(0, 46, 93, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
}
.partner-showcase-card--page .partner-showcase-card__media {
    width: 6.25rem;
    height: 6.25rem;
    border-radius: 24px;
    padding: 0.75rem;
}
.partner-showcase-card__logo {
    width: 100%;
    height: 100%;
    max-width: 5rem;
    max-height: 5rem;
    object-fit: contain;
}
.partner-showcase-card--page .partner-showcase-card__logo {
    max-width: 5.5rem;
    max-height: 5.5rem;
}
.partner-showcase-card__fallback {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--up-navy);
    letter-spacing: -0.03em;
    line-height: 1;
}
.partner-showcase-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--up-navy);
    line-height: 1.4;
    margin: 0;
    padding: 0 0.15rem;
}
.partner-showcase-card__name--page {
    font-size: 0.95rem;
}
.partner-showcase-card--marquee {
    padding: 1.1rem 0.75rem 1rem;
    height: 100%;
}
.partner-showcase-card--marquee .partner-showcase-card__media {
    width: 4.75rem;
    height: 4.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
}
.partner-showcase-card--marquee .partner-showcase-card__logo {
    max-width: 4.25rem;
    max-height: 4.25rem;
}
.partner-showcase-card--marquee .partner-showcase-card__name {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Témoignages partenaires */
.home-partner-testimonials .section-kicker {
    color: var(--up-forest);
}
.testimonial-card {
    position: relative;
    margin: 0;
    padding: 1.65rem 1.5rem 1.5rem;
    background: linear-gradient(165deg, #fff 0%, var(--up-mist) 100%);
    border-radius: 18px;
    border: 1px solid rgba(0, 46, 93, 0.08);
    box-shadow: 0 8px 28px rgba(0, 46, 93, 0.06);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 46, 93, 0.1);
}
.testimonial-card__quote-icon {
    display: block;
    font-size: 1.35rem;
    color: var(--up-lime);
    opacity: 0.85;
    margin-bottom: 0.75rem;
}
.testimonial-card__quote {
    font-size: 0.95rem;
    line-height: 1.68;
    color: #334155;
    font-style: italic;
}
.testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(0, 46, 93, 0.08);
}
.testimonial-card__avatar {
    flex-shrink: 0;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--up-navy), var(--up-forest));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0, 46, 93, 0.2);
}
.testimonial-card__author {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    font-style: normal;
    color: var(--up-navy);
}
.testimonial-card__role {
    font-size: 0.8rem;
    color: var(--up-muted);
    margin-top: 0.15rem;
}
@media (prefers-reduced-motion: reduce) {
    .partners-marquee__track {
        animation: none;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    .partners-marquee__group[aria-hidden="true"] {
        display: none;
    }
    .partners-marquee__group:not([aria-hidden="true"]) {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding-right: 0;
    }
    .partners-marquee__viewport {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .partner-showcase-card:hover {
        transform: none;
    }
    .testimonial-card:hover {
        transform: none;
    }
}

/* Actualités */
.news-card {
    border-top: 4px solid var(--up-navy);
    border-radius: 12px;
    overflow: hidden;
}
.home-news .col-md-6:nth-child(even) .news-card {
    border-top-color: var(--up-lime);
}

.card-up {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.2s ease;
}
.card-up:hover {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
.card-up__img {
    height: 160px;
    object-fit: cover;
    width: 100%;
    background: linear-gradient(120deg, #e2e8f0, #f1f5f9);
}

/* ========== Pied de page ========== */
.app-footer {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
}
.app-footer__accent {
    height: 5px;
    background: linear-gradient(90deg, var(--up-lime) 0%, var(--up-forest) 50%, var(--up-navy-mid) 100%);
}
.app-footer__gradient {
    background: linear-gradient(160deg, var(--up-navy) 0%, #001a33 35%, var(--up-forest-dark) 72%, var(--up-forest) 100%);
}
.app-footer__inner {
    padding-top: 3rem;
    padding-bottom: 0;
}

.app-footer__hours {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}
.app-footer__hours-icon {
    flex-shrink: 0;
    width: 1.35rem;
    text-align: center;
    color: var(--up-lime);
    margin-top: 0.1rem;
}
.app-footer__social-wrap {
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.app-footer__heading--sub {
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
}

.app-footer__brand-block {
    max-width: 22rem;
}
.app-footer__logo {
    height: auto;
    max-height: 64px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}
.app-footer__logo-link:hover .app-footer__logo {
    opacity: 0.92;
}
.app-footer__brand-text-link {
    text-decoration: none;
}
.app-footer__brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.app-footer__subline {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--up-lime);
    margin-bottom: 0.75rem;
}
.app-footer__tagline {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
}

.app-footer__heading {
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.15rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(141, 198, 63, 0.45);
}

.app-footer__links li {
    margin-bottom: 0.5rem;
}
.app-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease, transform 0.15s ease;
}
.app-footer__link:hover {
    color: var(--up-lime);
}
.app-footer__link-icon {
    font-size: 0.55rem;
    opacity: 0.85;
    color: var(--up-lime);
    transition: transform 0.15s ease;
}
.app-footer__link:hover .app-footer__link-icon {
    transform: translateX(3px);
}

.app-footer__contact li {
    margin-bottom: 0.85rem;
}
.app-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}
.app-footer__contact-icon {
    flex-shrink: 0;
    width: 1.35rem;
    text-align: center;
    color: var(--up-lime);
    margin-top: 0.15rem;
}
.app-footer__contact a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.app-footer__contact a:hover {
    color: var(--up-lime);
    border-bottom-color: rgba(141, 198, 63, 0.5);
}

.app-footer__social-lead {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

.app-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2.75rem;
    padding: 1.15rem 0 1.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
}
.app-footer__bottom strong {
    color: #fff;
    font-weight: 700;
}
.app-footer__back {
    color: var(--up-lime);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
}
.app-footer__back:hover {
    color: #fff;
}

.icon-social {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(141, 198, 63, 0.25);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.icon-social:hover {
    background: var(--up-lime);
    color: var(--up-navy);
    border-color: var(--up-lime);
    transform: translateY(-2px);
}

/* ========== Pages intérieures (À propos, Produits, Services, etc.) ========== */
.page-hero {
    background: linear-gradient(135deg, var(--up-navy) 0%, var(--up-forest-dark) 45%, var(--up-forest) 100%);
    color: #fff;
    padding: 2.75rem 0 3.35rem;
}
.page-hero .section-kicker {
    color: var(--up-lime);
}
.page-hero__title {
    font-size: clamp(1.55rem, 3.6vw, 2.35rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    max-width: 22rem;
}
.page-hero__intro {
    margin-top: 1.1rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.0625rem;
    line-height: 1.55;
}

.page-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.page-section--mist {
    background: var(--up-mist);
}
.page-section--ice {
    background: var(--up-ice);
}
.page-section--white {
    background: #fff;
}
.page-section--brand-cta {
    background: linear-gradient(135deg, var(--up-navy) 0%, var(--up-forest-dark) 55%, var(--up-forest) 100%);
    color: #fff;
}

/* Grille produits (pages comme accueil) */
.page-grid-products .card-up {
    border: 1px solid rgba(0, 46, 93, 0.1);
    border-top: 4px solid var(--up-lime);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-grid-products > [class*="col-"]:nth-child(3n + 2) .card-up {
    border-top-color: var(--up-navy);
}
.page-grid-products > [class*="col-"]:nth-child(3n + 3) .card-up {
    border-top-color: var(--up-forest);
}
.page-grid-products .card-up:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 46, 93, 0.12);
}
.page-grid-products .card-up__img {
    height: 220px;
    background: linear-gradient(135deg, #e8f2f8 0%, #eef6f0 100%);
}

/* Piliers page À propos (2 colonnes) */
.page-pillar-grid .col-md-6:nth-child(4n + 1) .pillar-card {
    border-top-color: var(--up-lime);
}
.page-pillar-grid .col-md-6:nth-child(4n + 2) .pillar-card {
    border-top-color: var(--up-navy);
}
.page-pillar-grid .col-md-6:nth-child(4n + 3) .pillar-card {
    border-top-color: var(--up-forest);
}
.page-pillar-grid .col-md-6:nth-child(4n + 4) .pillar-card {
    border-top-color: var(--up-lime-dark);
}
.page-pillar-grid .col-md-6:nth-child(4n + 1) .pillar-title {
    color: var(--up-forest);
}
.page-pillar-grid .col-md-6:nth-child(4n + 2) .pillar-title {
    color: var(--up-navy);
}
.page-pillar-grid .col-md-6:nth-child(4n + 3) .pillar-title {
    color: var(--up-lime-dark);
}
.page-pillar-grid .col-md-6:nth-child(4n + 4) .pillar-title {
    color: var(--up-forest-dark);
}

.page-highlight-card {
    border: 1px solid rgba(0, 46, 93, 0.1);
    border-left: 4px solid var(--up-lime);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 46, 93, 0.06);
    height: 100%;
}
.page-section--mist .col-md-6.col-lg-4:nth-child(3n + 2) .page-highlight-card {
    border-left-color: var(--up-navy);
}
.page-section--mist .col-md-6.col-lg-4:nth-child(3n + 3) .page-highlight-card {
    border-left-color: var(--up-forest);
}
.page-highlight-card h3 {
    color: var(--up-navy);
    font-weight: 700;
}

/* Actualités page liste */
.page-news .col-md-6:nth-child(even) .news-card {
    border-top-color: var(--up-lime);
}
.page-news .news-card .card-body {
    padding: 1.35rem 1.5rem;
}
.page-news .news-card h2 {
    color: var(--up-navy);
    font-weight: 700;
}
.page-news .news-card a.small {
    color: var(--up-forest);
    font-weight: 600;
    text-decoration: none;
}
.page-news .news-card a.small:hover {
    color: var(--up-lime-dark);
}

/* Prose + liste À propos */
.page-prose h2 {
    font-weight: 800;
    color: var(--up-navy);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
.page-prose p {
    color: #475569;
    line-height: 1.65;
}
.page-bullet-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}
.page-bullet-list li {
    position: relative;
    padding-left: 1.85rem;
    margin-bottom: 0.75rem;
    color: var(--up-dark);
    line-height: 1.5;
}
.page-bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--up-lime);
    box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.28);
}

/* Page Contact : carte + coordonnées */
.page-contact-lead {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    max-width: 26rem;
}
.page-contact-cta__secondary {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}
.page-contact-cta__secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}
/* Contact : carte formulaire = hauteur de la colonne (alignée avec coordonnées) */
.page-contact .page-contact__form-card {
    min-height: 18rem;
}

/* Contact : section carte plein écran (bas de page) */
.contact-location-fullscreen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--up-navy);
}
.contact-location-fullscreen__intro {
    flex-shrink: 0;
    padding: 2.5rem 1rem 1.75rem;
    background: linear-gradient(
        145deg,
        var(--up-navy) 0%,
        var(--up-navy-mid) 38%,
        var(--up-forest-dark) 72%,
        var(--up-forest) 100%
    );
    color: #fff;
    position: relative;
    overflow: hidden;
}
.contact-location-fullscreen__intro::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(28rem, 80%);
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--up-lime), transparent);
    opacity: 0.85;
}
.contact-location-fullscreen__intro-inner {
    max-width: 40rem;
    position: relative;
    z-index: 1;
}
.contact-location-fullscreen__kicker {
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--up-lime);
    margin-bottom: 0.65rem;
}
.contact-location-fullscreen__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}
.contact-location-fullscreen__address {
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1.35rem;
}
.contact-location-fullscreen__btn-ghost {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}
.contact-location-fullscreen__btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}
.contact-location-fullscreen__map {
    flex: 1 1 auto;
    min-height: 45vh;
    position: relative;
    background: #0c1929;
    box-shadow: inset 0 12px 32px rgba(0, 0, 0, 0.25);
}
.contact-location-fullscreen__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
@media (min-width: 992px) {
    .contact-location-fullscreen__map {
        min-height: 55vh;
    }
    .contact-location-fullscreen__intro {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .contact-location-fullscreen__intro::after {
        opacity: 0.5;
    }
}

/* Blocs coordonnées page Contact */
.page-contact-info .info-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    border: 1px solid rgba(141, 198, 63, 0.28);
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}
.page-contact-info .info-block__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--up-lime);
    margin-bottom: 0.35rem;
    opacity: 0.95;
}
.page-contact-info .info-block i {
    color: var(--up-lime);
    font-size: 1.15rem;
    margin-top: 0.35rem;
}
.page-contact-info .info-block a {
    color: var(--up-lime);
    font-weight: 600;
    text-decoration: none;
}
.page-contact-info .info-block a:hover {
    color: #fff;
    text-decoration: underline;
}
.page-contact-info .info-block--hours {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}
.page-section--brand-cta .section-kicker {
    color: var(--up-lime);
}
.page-section--brand-cta .section-title {
    color: #fff;
}

.page-footnote {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 46, 93, 0.1);
}
.page-section--mist .page-footnote {
    border-top-color: rgba(0, 46, 93, 0.08);
}

/* --- Présentation accueil : texte | image (animation scroll) --- */
.home-presentation-top {
    border-bottom: 1px solid rgba(0, 46, 93, 0.06);
}
.home-presentation__subkicker {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--up-forest);
    letter-spacing: 0.02em;
}
.home-presentation__slashes {
    color: #cbd5e1;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    transform: skewX(-12deg);
    user-select: none;
}
.home-presentation__main-title {
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    max-width: 36rem;
}
.home-presentation__text {
    font-size: 0.9375rem;
    line-height: 1.72;
    color: #334155;
    margin-bottom: 1rem;
}
.home-presentation__text:last-of-type {
    margin-bottom: 0;
}
.home-presentation__row {
    --home-pres-radius: 14px;
}
.home-presentation__copy {
    max-width: 100%;
}
.home-presentation__figure {
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    border-radius: var(--home-pres-radius);
    box-shadow: 0 22px 55px rgba(0, 46, 93, 0.14);
    border: 1px solid rgba(0, 46, 93, 0.09);
    background: #f1f5f9;
}
.home-presentation__photo {
    width: 100%;
    display: block;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    border: none;
    flex: 1 1 auto;
}
.home-presentation__photo--placeholder {
    min-height: 260px;
    flex: 1 1 auto;
    background: linear-gradient(135deg, #e8f2f8, #eef6f0);
}
@media (min-width: 992px) {
    .home-presentation__figure {
        min-height: 100%;
    }
    .home-presentation__photo,
    .home-presentation__photo--placeholder {
        height: 100%;
        min-height: 18rem;
        aspect-ratio: unset;
    }
}
@media (max-width: 991.98px) {
    .home-presentation__photo,
    .home-presentation__photo--placeholder {
        border-radius: var(--home-pres-radius);
    }
}

.js-pres-reveal {
    opacity: 0;
    transform: translateX(42px);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.js-pres-reveal.is-visible {
    opacity: 1;
    transform: translateX(0);
    will-change: auto;
}

@media (max-width: 991.98px) {
    .home-presentation__main-title {
        max-width: none;
    }
}

/* --- Actualités : cartes modernes (image + titre + extrait + lien) --- */
.page-news-scroll [id] {
    scroll-margin-top: 5.75rem;
}

@keyframes news-card-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card-pro {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 46, 93, 0.08);
    box-shadow: 0 8px 28px rgba(0, 46, 93, 0.07);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
    animation: news-card-in 0.55s ease backwards;
}
.home-news .col-md-6.col-lg-3:nth-child(1) .news-card-pro {
    animation-delay: 0.04s;
}
.home-news .col-md-6.col-lg-3:nth-child(2) .news-card-pro {
    animation-delay: 0.1s;
}
.home-news .col-md-6.col-lg-3:nth-child(3) .news-card-pro {
    animation-delay: 0.16s;
}
.home-news .col-md-6.col-lg-3:nth-child(4) .news-card-pro {
    animation-delay: 0.22s;
}
.page-news-scroll .col-md-6:nth-child(1) .news-card-pro {
    animation-delay: 0.05s;
}
.page-news-scroll .col-md-6:nth-child(2) .news-card-pro {
    animation-delay: 0.11s;
}
.page-news-scroll .col-md-6:nth-child(3) .news-card-pro {
    animation-delay: 0.17s;
}
.page-news-scroll .col-md-6:nth-child(4) .news-card-pro {
    animation-delay: 0.23s;
}

.news-card-pro:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 46, 93, 0.14);
}

.news-card-pro__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f2f8, #eef6f0);
}
.news-card-pro__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.news-card-pro:hover .news-card-pro__media img {
    transform: scale(1.06);
}

.news-card-pro__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(0, 46, 93, 0.2);
}

.news-card-pro__badge {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    padding: 0.28rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--up-navy);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
a.news-card-pro__badge--link {
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
a.news-card-pro__badge--link:hover {
    background: var(--up-lime);
    color: var(--up-navy);
}

.news-card-pro__body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card-pro__date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--up-forest);
    margin-bottom: 0.35rem;
}
.news-card-pro__title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}
.news-card-pro__title a {
    color: var(--up-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}
.news-card-pro__title a:hover {
    color: var(--up-forest);
}
.news-card-pro__excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 0.85rem;
    flex: 1;
}

.news-card-pro__read {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--up-forest);
    text-decoration: none;
    margin-top: auto;
    width: fit-content;
}
.news-card-pro__read i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}
.news-card-pro:hover .news-card-pro__read {
    color: var(--up-lime-dark);
}
.news-card-pro:hover .news-card-pro__read i {
    transform: translateX(6px);
}

/* --- Espace client (connexion + tableau de bord) --- */
.client-portal {
    background: linear-gradient(180deg, var(--up-mist) 0%, #fff 38%, var(--up-ice) 100%);
    min-height: 60vh;
}
.client-portal__title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--up-navy);
    letter-spacing: -0.02em;
}
.client-portal__lead {
    font-size: 1rem;
    line-height: 1.6;
}
.client-portal__card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow:
        0 4px 24px rgba(0, 46, 93, 0.06),
        0 24px 64px rgba(0, 104, 55, 0.07);
    border: 1px solid rgba(0, 46, 93, 0.08);
}
@media (min-width: 576px) {
    .client-portal__card {
        padding: 2.25rem 2.5rem;
    }
}
.client-portal__input {
    border-radius: 12px;
    border: 1px solid rgba(0, 46, 93, 0.15);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.client-portal__input:focus {
    border-color: var(--up-forest);
    box-shadow: 0 0 0 0.2rem rgba(0, 104, 55, 0.18);
}
.client-portal__alert {
    border-radius: 12px;
    border: none;
    background: rgba(141, 198, 63, 0.18);
    color: var(--up-forest-dark);
    font-weight: 600;
}
.client-portal__footnote {
    line-height: 1.5;
}
.client-portal__user-name {
    color: var(--up-navy);
}
.client-portal__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem 1.35rem;
    border: 1px solid rgba(0, 46, 93, 0.08);
    box-shadow: 0 8px 32px rgba(0, 46, 93, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    min-height: 100%;
}
.client-portal__tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(0, 46, 93, 0.1);
}
.client-portal__tile--accent {
    border-top: 4px solid var(--up-lime);
    background: linear-gradient(165deg, #fff 0%, var(--up-mist) 100%);
}
.client-portal__tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(141, 198, 63, 0.25), rgba(0, 104, 55, 0.12));
    color: var(--up-forest);
    font-size: 1.35rem;
}
.client-portal__tile-icon--muted {
    background: rgba(0, 46, 93, 0.06);
    color: var(--up-navy);
}
.client-portal__tile-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 46, 93, 0.08);
    color: var(--up-navy);
}
.app-header__ctas .btn-up-primary {
    white-space: nowrap;
    padding: 0.4rem 1.05rem;
    font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
    .js-pres-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .news-card-pro {
        animation: none;
    }
    .news-card-pro:hover {
        transform: none;
    }
    .news-card-pro:hover .news-card-pro__media img {
        transform: none;
    }
    .news-card-pro:hover .news-card-pro__read i {
        transform: none;
    }
    .client-portal__tile:hover {
        transform: none;
    }
}
