:root {
    --landing-bg: #fcfcfb;
    --landing-bg-soft: #f8f8f7;

    --landing-text: #243744;
    --landing-muted: #74808d;

    --landing-border: rgba(36, 55, 68, 0.07);
    --landing-border-strong: rgba(36, 55, 68, 0.11);

    /* Default landing accent colors (overridden by colors.css) */
    --landing-accent: #FF6A3D;
    --landing-accent-hover: #e55a2b;
    --landing-accent-soft: rgba(255, 106, 61, 0.08);
    --landing-accent-border: rgba(255, 106, 61, 0.18);

    --landing-surface: rgba(255, 255, 255, 0.82);
    --landing-surface-strong: rgba(255, 255, 255, 0.96);

    --landing-shadow-nav: 0 6px 18px rgba(24, 39, 51, 0.035);
    --landing-shadow-soft: 0 10px 24px rgba(24, 39, 51, 0.04);
    --landing-shadow-modal: 0 22px 60px rgba(24, 39, 51, 0.13);

    --landing-radius-pill: 999px;
    --landing-radius-xl: 22px;
    --landing-radius-lg: 16px;
    --landing-radius-md: 12px;
}

body.env-perso {
    --landing-accent: #8a5a3c;
    --landing-accent-hover: #6d4630;
    --landing-accent-soft: rgba(138, 90, 60, 0.08);
    --landing-accent-border: rgba(138, 90, 60, 0.18);
}

body.env-dev {
    --landing-accent: #7a3fd6;
    --landing-accent-hover: #5f2fb8;
    --landing-accent-soft: rgba(122, 63, 214, 0.08);
    --landing-accent-border: rgba(122, 63, 214, 0.18);
}

body.env-uat {
    --landing-accent: #b38a00;
    --landing-accent-hover: #8f6b00;
    --landing-accent-soft: rgba(179, 138, 0, 0.08);
    --landing-accent-border: rgba(179, 138, 0, 0.18);
}

body.env-preprod {
    --landing-accent: #d97706;
    --landing-accent-hover: #b85e05;
    --landing-accent-soft: rgba(217, 119, 6, 0.08);
    --landing-accent-border: rgba(217, 119, 6, 0.18);
}

body {
    background:
        radial-gradient(circle at top left, var(--landing-accent-soft), transparent 24%),
        radial-gradient(circle at top right, rgba(36, 55, 68, 0.02), transparent 18%),
        var(--landing-bg);
}

/* =========================
   BASE
   ========================= */

.landing-main {
    min-height: 100vh;
    padding: 98px 0 0 0;
    color: var(--landing-text);
}

.landing-accent {
    color: var(--landing-accent);
}

/* =========================
   HEADER
   ========================= */

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 60;
    padding: 12px 16px 8px;
    pointer-events: none;
}

.landing-nav {
    width: min(680px, calc(100vw - 32px));
    margin: 0 auto;
    min-height: 58px;
    padding: 7px 10px 7px 12px;
    border-radius: var(--landing-radius-pill);
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    box-shadow: var(--landing-shadow-nav);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.landing-brand__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--landing-accent);
    display: inline-block;
}

.landing-brand__name {
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--landing-text);
}

.landing-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.landing-menu a {
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--landing-muted);
    transition: color .18s ease;
}

.landing-menu a:hover {
    color: var(--landing-text);
}

.landing-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: -0.012em;
    white-space: nowrap;
    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.landing-btn--ghost {
    background: transparent;
    color: var(--landing-text);
}

.landing-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.62);
    border-color: var(--landing-border);
}

.landing-btn--primary {
    background: rgba(255, 255, 255, 0.52);
    color: var(--landing-accent);
    border-color: var(--landing-accent-border);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

.landing-btn--primary:hover {
    background: var(--landing-accent-soft);
    border-color: var(--landing-accent-border);
    transform: translateY(-1px);
}

.landing-btn--large {
    min-height: 42px;
    padding: 0 20px;
    font-size: 11.5px;
    font-weight: 700;
}

/* =========================
   HERO
   ========================= */

.landing-hero {
    width: min(980px, 92vw);
    margin: 0 auto;
    padding: 18vh 0 52px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

/* =========================
   HERO VISUAL (image sous CTA)
   ========================= */

.landing-heroVisual {
    width: 100%;
    margin: 0;
    height: 62vh;
    min-height: 280px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    /* fondu depuis le haut */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 18%);
}

.landing-heroVisual__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 72% 90%, color-mix(in srgb, var(--landing-accent) 22%, transparent) 0%, transparent 65%),
        radial-gradient(ellipse 45% 65% at 80% 105%, color-mix(in srgb, var(--landing-accent) 14%, transparent) 0%, transparent 60%),
        radial-gradient(ellipse 100% 50% at 45% 55%, color-mix(in srgb, var(--landing-accent) 5%, white) 0%, transparent 70%),
        linear-gradient(162deg, var(--landing-bg) 0%, color-mix(in srgb, var(--landing-accent) 6%, var(--landing-bg)) 55%, color-mix(in srgb, var(--landing-accent) 12%, var(--landing-bg)) 100%);
}

/* lignes de structure (effet grille) */
.landing-heroVisual__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, color-mix(in srgb, var(--landing-accent) 8%, transparent) 1px, transparent 1px),
        linear-gradient(0deg, color-mix(in srgb, var(--landing-accent) 5%, transparent) 1px, transparent 1px);
    background-size: 33.4% 58px;
}

/* lueur floue en bas à droite */
.landing-heroVisual__bg::after {
    content: '';
    position: absolute;
    bottom: -8%;
    right: 18%;
    width: 200px;
    height: 300px;
    background: color-mix(in srgb, var(--landing-accent) 18%, transparent);
    border-radius: 52% 52% 38% 38%;
    filter: blur(48px);
}

@media (max-width: 600px) {
    .landing-heroVisual {
        height: 40vh;
        min-height: 200px;
    }
}

.landing-hero__inner {
    max-width: 760px;
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--landing-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.landing-kicker__dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--landing-accent);
    display: inline-block;
}

.landing-title {
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.03;
    letter-spacing: -0.07em;
    font-weight: 430;
    color: var(--landing-text);
    text-wrap: balance;
}

.landing-subtitle {
    max-width: 560px;
    margin: 18px auto 0;
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.52;
    letter-spacing: -0.02em;
    font-weight: 400;
    color: var(--landing-muted);
    text-wrap: balance;
}

.landing-cta {
    margin-top: 26px;
    display: flex;
    justify-content: center;
}

/* =========================
   SHOWCASE SECTION
   ========================= */

.landingShowcase {
    width: 100%;
    padding: 88px 0 96px;
    background: var(--landing-bg);
    overflow: hidden;
}

.landingShowcase__inner {
    width: min(980px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 64px;
}

.landingShowcase__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.landingShowcase__title {
    margin: 8px 0 16px;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 430;
    line-height: 1.05;
    letter-spacing: -0.06em;
    color: var(--landing-text);
}

.landingShowcase__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.60;
    color: var(--landing-muted);
    letter-spacing: -0.01em;
    max-width: 380px;
}

/* cadre flottant de l'image */
.landingShowcase__visual {
    position: relative;
    /* légère ligne décorative à droite comme sur la référence */
}

.landingShowcase__visual::after {
    content: '';
    position: absolute;
    top: 12%;
    right: -5vw;
    width: 1px;
    height: 76%;
    background: var(--landing-border);
}

.landingShowcase__frame {
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    border: 1px solid var(--landing-border);
    box-shadow:
        0 4px 24px rgba(36, 55, 68, 0.07),
        0 1px 3px rgba(36, 55, 68, 0.05);
    background: var(--landing-surface);
    /* fondu vers le bas */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.landingShowcase__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 760px) {
    .landingShowcase__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .landingShowcase__visual::after {
        display: none;
    }

    .landingShowcase__title {
        font-size: 30px;
    }
}

/* =========================
   MOBILE INSCRIPTION SECTION
   ========================= */

.landingMobile {
    width: 100%;
    padding: 88px 0 96px;
    background: var(--landing-bg);
    overflow: hidden;
}

.landingMobile__inner {
    width: min(980px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.landingMobile__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.landingMobile__list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landingMobile__list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: var(--landing-muted);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.landingMobile__list .material-symbols-outlined {
    font-size: 17px;
    font-variation-settings: 'wght' 300, 'FILL' 1;
    color: var(--landing-accent);
    flex-shrink: 0;
}

/* bloc RGPD */
.landingMobile__rgpd {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--landing-accent-soft);
    border: 1px solid var(--landing-accent-border);
    max-width: 400px;
}

.landingMobile__rgpd .material-symbols-outlined {
    font-size: 18px;
    font-variation-settings: 'wght' 300, 'FILL' 0;
    color: var(--landing-accent);
    flex-shrink: 0;
    margin-top: 1px;
}

.landingMobile__rgpd p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--landing-muted);
    letter-spacing: -0.01em;
}

/* image téléphones – sans cadre, sans fond */
.landingMobile__visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.landingMobile__img {
    display: block;
    width: 115%;
    max-width: 552px;
    height: auto;
    object-fit: contain;
    /* fondu discret en bas */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

@media (max-width: 760px) {
    .landingMobile__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .landingMobile__img {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
}

/* =========================
   FEATURES SECTION
   ========================= */

.landingFeatures {
    width: 100%;
    padding: 72px 0 80px;
    background: var(--landing-bg);
}

.landingFeatures__inner {
    width: min(980px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.landingFeature {
    padding: 0 40px 0 0;
}

.landingFeature:not(:first-child) {
    padding-left: 40px;
    border-left: 1px solid var(--landing-border);
}

.landingFeature__icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
    color: var(--landing-muted);
}

.landingFeature__icon .material-symbols-outlined {
    font-size: 26px;
    font-variation-settings: 'wght' 200, 'FILL' 0;
    color: var(--landing-muted);
}

.landingFeature__title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--landing-text);
    line-height: 1.25;
}

.landingFeature__text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.58;
    color: var(--landing-muted);
    font-weight: 400;
    letter-spacing: -0.01em;
}

@media (max-width: 680px) {
    .landingFeatures__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .landingFeature {
        padding: 0 0 36px 0;
        border-bottom: 1px solid var(--landing-border);
    }

    .landingFeature:not(:first-child) {
        padding-left: 0;
        border-left: none;
    }

    .landingFeature:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* =========================
   FOOTER
   ========================= */

.siteFooter {
    margin-top: 0;
    background:
        linear-gradient(to bottom, rgba(247, 247, 245, 0), rgba(255, 255, 255, 0.55)),
        var(--landing-bg);
    border-top: 1px solid rgba(36, 55, 68, 0.045);
}

.siteFooter__inner {
    width: min(980px, 92vw);
    margin: 0 auto;
    padding: 26px 0 32px;
}

.siteFooter__brand {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
}

.siteFooter__logo {
    display: none;
}

.siteFooter__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
}

.siteFooter__link {
    color: var(--landing-muted);
    text-decoration: none;
    font-weight: 650;
    font-size: 11px;
}

.siteFooter__link:hover {
    color: var(--landing-text);
}

.siteFooter__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    align-items: center;
    color: #7f8994;
    font-size: 11px;
    line-height: 1.6;
}

.siteFooter__sep {
    opacity: .42;
}

/* =========================
   AUTH
   ========================= */

.authOverlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 39, 51, 0.30);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 100;
}

.authOverlay:target {
    opacity: 1;
    pointer-events: auto;
}

.authModal {
    width: min(390px, 92vw);
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 20px 18px;
    border: 1px solid rgba(36, 55, 68, 0.08);
    box-shadow: var(--landing-shadow-modal);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.authClose {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 18px;
    text-decoration: none;
    color: #748091;
    font-weight: 700;
}

.authHeader {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.authLogo {
    width: 140px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.authTitle {
    margin: 0;
    font-size: 16px;
    letter-spacing: -0.03em;
    color: var(--landing-text);
}

.authSocial {
    display: grid;
    gap: 8px;
}

.authSocialBtn {
    min-height: 38px;
    border-radius: 12px;
    background: #162432;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    border: none;
    opacity: .98;
}

.authDivider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin: 14px 0;
    font-size: 10px;
    color: var(--landing-muted);
}

.authDivider::before,
.authDivider::after {
    content: "";
    height: 1px;
    background: #e8edf1;
}

.authForm {
    display: grid;
    gap: 8px;
}

.authLabel {
    font-size: 10px;
    font-weight: 800;
    color: var(--landing-muted);
}

.authInput {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid #e6ebf0;
    padding: 0 12px;
    background: #fff;
    color: var(--landing-text);
    font-size: 11px;
}

.authInput:focus {
    outline: none;
    border-color: var(--landing-accent-border);
    box-shadow: 0 0 0 3px var(--landing-accent-soft);
}

.authPrimaryBtn {
    min-height: 42px;
    margin-top: 6px;
    border-radius: 12px;
    border: none;
    background: var(--landing-accent);
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.authPrimaryBtn:hover {
    background: var(--landing-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--landing-accent-soft) 200%, transparent);
}

.authForgotLink {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(36, 55, 68, 0.62);
    text-decoration: none;
}

.authForgotLink:hover {
    color: var(--landing-text);
}

.authFooterLinks {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 10px;
    color: var(--landing-muted);
}

.authFooterLinks a {
    color: inherit;
    text-decoration: none;
}

.authFooterLinks a:hover {
    color: var(--landing-text);
}

.authError {
    margin-top: 10px;
    padding: 8px 10px;
    background: #fdecea;
    color: #b42318;
    border-radius: 9px;
    font-size: 11px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 980px) {
    .landing-nav {
        width: min(680px, calc(100vw - 24px));
        min-height: 54px;
        padding: 7px 9px 7px 11px;
    }

    .landing-brand__name {
        font-size: 14px;
    }

    .landing-btn {
        min-height: 34px;
        padding: 0 12px;
        font-size: 10px;
    }

    .landing-btn--large {
        min-height: 40px;
        font-size: 11px;
    }

    .landing-title {
        font-size: clamp(30px, 7vw, 48px);
    }

    .landing-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .landing-header {
        padding: 10px 10px 8px;
    }

    .landing-nav {
        width: calc(100vw - 20px);
        border-radius: 20px;
    }

    .landing-brand__name {
        font-size: 13px;
    }

    .landing-menu {
        display: none;
    }

    .landing-btn {
        min-height: 34px;
        padding: 0 11px;
        font-size: 9.5px;
    }

    .landing-title {
        font-size: clamp(28px, 10vw, 40px);
        line-height: 1.08;
    }

    .landing-subtitle {
        font-size: 12.5px;
        line-height: 1.5;
        margin-top: 16px;
    }

    .landing-cta {
        margin-top: 22px;
    }
}