/* ==========================================================================
   Moverseas — Page d'accueil publique
   Feuille dédiée à resources/views/welcome.blade.php
   Palette reprise du logo (public/img/logo_white.svg)
   ========================================================================== */

:root {
    --ms-magenta: #cb1781;
    --ms-magenta-dark: #ad136c;
    --ms-violet: #821859;
    --ms-purple: #b63c86;
    --ms-orange: #f28b22;
    --ms-orange-deep: #e84324;
    --ms-yellow: #f7a521;

    --ms-ink: #1b1c2a;
    --ms-body: #5b6070;
    --ms-muted: #868b9c;
    --ms-line: #e9eaf0;
    --ms-bg: #f7f8fa;

    --ms-radius: 18px;
    --ms-radius-sm: 12px;
    --ms-shadow: 0 1px 2px rgba(27, 28, 42, .04), 0 12px 30px rgba(27, 28, 42, .07);
    --ms-shadow-lg: 0 24px 54px rgba(27, 28, 42, .16);
    --ms-nav-h: 76px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--ms-nav-h) + 12px);
}

body.ms-page {
    margin: 0;
    background: #fff;
    color: var(--ms-body);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.ms-page h1,
.ms-page h2,
.ms-page h3,
.ms-page h4 {
    color: var(--ms-ink);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0;
}

.ms-page a {
    text-decoration: none;
}

.ms-page a:focus-visible,
.ms-page button:focus-visible {
    outline: 3px solid rgba(203, 23, 129, .35);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Éléments transversaux
   -------------------------------------------------------------------------- */

.ms-section {
    padding: 88px 0;
}

.ms-section--tint {
    background: var(--ms-bg);
    border-top: 1px solid var(--ms-line);
    border-bottom: 1px solid var(--ms-line);
}

.ms-section__head {
    max-width: 680px;
    margin: 0 auto 52px;
    text-align: center;
}

.ms-section__head h2 {
    font-size: 34px;
    margin-bottom: 14px;
}

.ms-section__head p {
    font-size: 17px;
    color: var(--ms-body);
    margin: 0;
}

.ms-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(203, 23, 129, .08);
    color: var(--ms-magenta-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ms-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.ms-btn i {
    font-size: 14px;
}

.ms-btn--primary {
    background: linear-gradient(120deg, var(--ms-magenta) 0%, var(--ms-violet) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(203, 23, 129, .28);
}

.ms-btn--primary:hover,
.ms-btn--primary:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(203, 23, 129, .34);
}

.ms-btn--ghost {
    background: #fff;
    border-color: var(--ms-line);
    color: var(--ms-ink);
}

.ms-btn--ghost:hover,
.ms-btn--ghost:focus {
    color: var(--ms-magenta-dark);
    border-color: rgba(203, 23, 129, .35);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.ms-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--ms-nav-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--ms-line);
}

.ms-nav__inner {
    display: flex;
    align-items: center;
    height: var(--ms-nav-h);
}

.ms-nav__brand {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.ms-nav__brand img {
    height: 42px;
    width: auto;
    display: block;
}

.ms-nav__menu {
    display: flex;
    align-items: center;
}

.ms-nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0 18px 0 0;
    padding: 0;
}

.ms-nav__links a {
    display: block;
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--ms-ink);
    font-size: 15px;
    font-weight: 600;
    transition: background-color .16s ease, color .16s ease;
}

.ms-nav__links a:hover,
.ms-nav__links a.is-active {
    background: rgba(203, 23, 129, .07);
    color: var(--ms-magenta-dark);
}

.ms-nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: 10px;
    padding: 0;
    border: 1px solid var(--ms-line);
    border-radius: 12px;
    background: #fff;
    color: var(--ms-ink);
    font-size: 18px;
}

/* Menu « Se connecter » */
.ms-login {
    position: relative;
}

.ms-login__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1040;
    width: 290px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--ms-line);
    border-radius: var(--ms-radius-sm);
    box-shadow: var(--ms-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.ms-login.is-open .ms-login__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ms-login__panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ms-ink);
    font-size: 14.5px;
    font-weight: 600;
    transition: background-color .15s ease;
}

.ms-login__panel a:hover {
    background: var(--ms-bg);
}

.ms-login__panel i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(203, 23, 129, .09);
    color: var(--ms-magenta-dark);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ms-hero {
    position: relative;
    overflow: hidden;
    background: #eef4f8;
}

.ms-hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../img/landing/header_one.jpg') no-repeat 78% center;
    background-size: cover;
}

.ms-hero__veil {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(100deg,
            #ffffff 0%,
            rgba(255, 255, 255, .97) 30%,
            rgba(255, 255, 255, .80) 48%,
            rgba(255, 255, 255, .22) 68%,
            rgba(255, 255, 255, 0) 88%);
}

.ms-hero__inner {
    position: relative;
    z-index: 2;
    padding: 96px 0 104px;
}

.ms-hero__content {
    max-width: 640px;
}

.ms-hero h1 {
    font-size: 48px;
    line-height: 1.12;
    margin-bottom: 22px;
}

.ms-hero h1 .ms-hero__accent {
    background: linear-gradient(100deg, var(--ms-magenta) 0%, var(--ms-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--ms-magenta);
}

.ms-hero__lead {
    font-size: 18px;
    color: #4a4f60;
    margin-bottom: 30px;
    max-width: 560px;
}

.ms-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 42px;
}

.ms-hero__perks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ms-hero__perks li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px 11px 13px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--ms-line);
    border-radius: 999px;
    color: var(--ms-ink);
    font-size: 14.5px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(27, 28, 42, .06);
}

.ms-hero__perks i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--ms-magenta) 0%, var(--ms-violet) 100%);
    color: #fff;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Les 4 espaces
   -------------------------------------------------------------------------- */

.ms-espaces .row {
    margin-left: -14px;
    margin-right: -14px;
}

.ms-espaces .row>[class*="col-"] {
    display: flex;
    padding: 14px;
}

.ms-espace {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 38px 34px 34px;
    background: #fff;
    border: 1px solid var(--ms-line);
    border-radius: var(--ms-radius);
    box-shadow: var(--ms-shadow);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ms-espace::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--c1) 0%, var(--c2) 100%);
}

.ms-espace::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: var(--tint);
    transition: transform .3s ease;
}

.ms-espace:hover,
.ms-espace:focus {
    transform: translateY(-6px);
    box-shadow: var(--ms-shadow-lg);
    border-color: transparent;
}

.ms-espace:hover::after {
    transform: scale(1.14);
}

.ms-espace__icon {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
    color: #fff;
    font-size: 30px;
    box-shadow: 0 12px 26px var(--glow);
}

.ms-espace__title {
    position: relative;
    z-index: 1;
    font-size: 25px;
    margin-bottom: 12px;
}

.ms-espace__text {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    font-size: 15.5px;
    color: var(--ms-body);
    margin-bottom: 26px;
}

.ms-espace__cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    align-self: flex-start;
    padding: 13px 22px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--c1) 0%, var(--c2) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 22px var(--glow);
    transition: transform .2s ease;
}

.ms-espace:hover .ms-espace__cta {
    transform: translateX(4px);
}

/* Teintes par espace */
.ms-espace--agence {
    --c1: #4f5bd5;
    --c2: #8e3fb0;
    --tint: rgba(79, 91, 213, .07);
    --glow: rgba(79, 91, 213, .28);
}

.ms-espace--client {
    --c1: #0f9b8e;
    --c2: #2aa8cf;
    --tint: rgba(15, 155, 142, .08);
    --glow: rgba(15, 155, 142, .26);
}

.ms-espace--demenageur {
    --c1: #f28b22;
    --c2: #e84324;
    --tint: rgba(242, 139, 34, .09);
    --glow: rgba(232, 67, 36, .26);
}

.ms-espace--partenaire {
    --c1: #cb1781;
    --c2: #821859;
    --tint: rgba(203, 23, 129, .08);
    --glow: rgba(203, 23, 129, .28);
}

/* --------------------------------------------------------------------------
   Carrousel partenaires
   -------------------------------------------------------------------------- */

.ms-carousel {
    position: relative;
    padding: 0 56px;
}

.ms-carousel__track {
    display: flex;
    align-items: stretch;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 18px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ms-carousel__track::-webkit-scrollbar {
    display: none;
}

.ms-partner {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 220px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ms-line);
    border-radius: var(--ms-radius-sm);
    box-shadow: 0 4px 14px rgba(27, 28, 42, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ms-partner:hover {
    transform: translateY(-4px);
    box-shadow: var(--ms-shadow);
}

.ms-partner img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .72;
    transition: filter .25s ease, opacity .25s ease;
}

.ms-partner:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.ms-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    border: 1px solid var(--ms-line);
    border-radius: 50%;
    color: var(--ms-ink);
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--ms-shadow);
    transition: color .16s ease, border-color .16s ease, opacity .16s ease;
}

.ms-carousel__arrow:hover {
    color: var(--ms-magenta);
    border-color: rgba(203, 23, 129, .35);
}

.ms-carousel__arrow[hidden] {
    display: none;
}

.ms-carousel__arrow--prev {
    left: 0;
}

.ms-carousel__arrow--next {
    right: 0;
}

/* --------------------------------------------------------------------------
   Devenir partenaire
   -------------------------------------------------------------------------- */

.ms-partenariat {
    padding: 44px 46px;
    background: linear-gradient(120deg, #fdf3f8 0%, #fdf6ef 100%);
    border: 1px solid #f3e3ec;
    border-radius: var(--ms-radius);
}

.ms-partenariat h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.ms-partenariat p {
    margin-bottom: 0;
}

.ms-partenariat__list {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.ms-partenariat__list li {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    color: var(--ms-ink);
    font-size: 15.5px;
    font-weight: 600;
}

.ms-partenariat__list i {
    margin-top: 4px;
    color: var(--ms-magenta);
}

.ms-partenariat__aside {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 30px;
    background: #fff;
    border-radius: var(--ms-radius-sm);
    box-shadow: var(--ms-shadow);
}

.ms-partenariat__aside .ms-btn {
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.ms-contact-card {
    height: 100%;
    padding: 30px 26px;
    background: #fff;
    border: 1px solid var(--ms-line);
    border-radius: var(--ms-radius-sm);
    box-shadow: var(--ms-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ms-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ms-shadow-lg);
}

.ms-contact-card i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(203, 23, 129, .08);
    color: var(--ms-magenta-dark);
    font-size: 18px;
}

.ms-contact-card h3 {
    font-size: 14px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ms-muted);
    margin-bottom: 10px;
}

.ms-contact-card p {
    margin: 0;
    color: var(--ms-ink);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.5;
}

.ms-contact-card a {
    color: var(--ms-magenta-dark);
}

.ms-contact-card a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.ms-footer {
    padding: 56px 0 34px;
    background: #16161f;
    color: rgba(255, 255, 255, .62);
    font-size: 14.5px;
}

.ms-footer img {
    height: 46px;
    width: auto;
}

.ms-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ms-footer__links a {
    color: rgba(255, 255, 255, .72);
    font-weight: 600;
}

.ms-footer__links a:hover {
    color: #fff;
}

.ms-footer__bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13.5px;
}

.ms-footer__bottom p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .ms-hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 991.98px) {
    .ms-section {
        padding: 66px 0;
    }

    .ms-nav__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ms-nav__menu {
        position: absolute;
        top: var(--ms-nav-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px;
        background: #fff;
        border-bottom: 1px solid var(--ms-line);
        box-shadow: var(--ms-shadow);
    }

    .ms-nav__menu.is-open {
        display: flex;
    }

    .ms-nav__links {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0 0 10px;
    }

    .ms-nav__links a {
        padding: 12px 14px;
    }

    .ms-login__panel {
        position: static;
        width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 8px;
        display: none;
    }

    .ms-login.is-open .ms-login__panel {
        display: block;
    }

    .ms-login>.ms-btn {
        width: 100%;
        justify-content: center;
    }

    .ms-hero__bg {
        background-position: 68% center;
    }

    .ms-hero__veil {
        background: linear-gradient(180deg,
                rgba(255, 255, 255, .97) 0%,
                rgba(255, 255, 255, .92) 55%,
                rgba(255, 255, 255, .78) 100%);
    }

    .ms-hero__inner {
        padding: 66px 0 72px;
    }

    .ms-hero h1 {
        font-size: 36px;
    }

    .ms-partenariat {
        padding: 34px 26px;
    }

    .ms-partenariat__aside {
        margin-top: 24px;
    }
}

@media (max-width: 767.98px) {
    .ms-section__head h2 {
        font-size: 28px;
    }

    .ms-hero h1 {
        font-size: 31px;
    }

    .ms-hero__lead {
        font-size: 16.5px;
    }

    .ms-hero__actions .ms-btn {
        width: 100%;
        justify-content: center;
    }

    .ms-hero__perks li {
        width: 100%;
    }

    .ms-espace {
        padding: 30px 24px 28px;
    }

    .ms-espace__title {
        font-size: 22px;
    }

    .ms-espace__cta {
        width: 100%;
        justify-content: center;
    }

    .ms-carousel {
        padding: 0;
    }

    .ms-carousel__arrow {
        display: none;
    }

    .ms-footer__links {
        margin-top: 20px;
    }
}

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

    html {
        scroll-behavior: auto;
    }

    .ms-page *,
    .ms-carousel__track {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
