/* ==========================================================================
   Pages publiques de mysynaxel.com, au style de synaxel.com (thème WordPress
   synaxel, site.css) :
   - l'accueil (public/landing.blade.php) reprend le bloc « Partenaires ·
     L'appli My Synaxel » (rubriques « Rubrique plateforme » et « Téléphones ») ;
   - les informations légales (public/legal.blade.php) reprennent les pages de
     texte du site (« Bandeau de titre » + « Contenu des pages intérieures »).
   Même balisage, mêmes classes sx-* : un changement côté site se reporte en
   recopiant le bloc. Chargé par ces deux pages seulement, hors du bundle de
   l'appli. Tout est limité à .landing : le thème sombre de l'appli reste
   chargé autour.
   ========================================================================== */

@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/poppins-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/poppins-latin-800-normal.woff2) format('woff2'); }

.landing {
    /* Palette du site (theme.json) */
    --sx-navy: #153448;
    --sx-navy-deep: #0c2231;
    --sx-teal: #0096b5;
    --sx-teal-dark: #007a94;
    --sx-teal-clair: #5fd0e6;
    --sx-ink: #1b2a36;
    --sx-muted: #566876;
    --sx-page: #f3f7fa;
    --sx-line: #dde5ea;
    --sx-font: Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif;

    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    color: #fff;
    font-family: var(--sx-font);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* Colonne flex : sans ça, un bloc en overflow: hidden (le bandeau) se laisse
   écraser dès que la page dépasse la hauteur de l'écran. */
.landing > * {
    flex-shrink: 0;
}

/* Accueil : l'enveloppe porte le fond et remplit au moins l'écran.
   Jamais sx-fond sur le main lui-même : c'est lui qui défile. */
.landing__page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* app.css décale le main des pages de connexion ; ici l'écran est plein */
body.page-login main.landing {
    padding: 0;
}

/* Fond marine : halos turquoise, grille fine estompée, filigrane AX en bas à droite */
.sx-fond {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(34rem 26rem at 76% 46%, rgb(0 150 181 / 30%), transparent 70%),
        radial-gradient(60rem 30rem at 95% -10%, rgb(0 150 181 / 22%), transparent 60%),
        radial-gradient(40rem 30rem at -10% 110%, rgb(0 150 181 / 14%), transparent 60%),
        linear-gradient(160deg, var(--sx-navy) 0%, var(--sx-navy-deep) 100%);
}

.sx-fond::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 15%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 15%, transparent 75%);
}

.sx-fond::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url(/img/ax-filigrane.svg) calc(100% + 120px) 100% / auto 80% no-repeat;
}

.landing a {
    color: inherit;
}

/* ---------- Mise en page ----------------------------------------------- */
.landing__top,
.landing__hero,
.landing__pied {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.landing__top {
    padding-top: 1.75rem;
}

.landing__top img {
    height: 36px;
    width: auto;
}

.landing__hero {
    flex: 1;
    display: grid;
    grid-template-columns: 52fr 48fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.landing__pied {
    padding-bottom: 1.5rem;
    font-size: .8rem;
    color: rgb(255 255 255 / 55%);
}

.landing__pied a:hover {
    color: #fff;
}

/* ---------- Textes ------------------------------------------------------ */
.sx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .75rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sx-teal-clair);
}

.sx-eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    background: currentColor;
}

.landing h1 {
    margin: 0;
    font-family: var(--sx-font);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
    text-wrap: balance;
}

.sx-lead {
    margin: 1.25rem 0 0;
    max-width: 560px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgb(255 255 255 / 78%);
    text-wrap: pretty;
}

/* ---------- Icônes : masque SVG coloré par currentColor ----------------- */
[class*="sx-ico-"]::before {
    content: "";
    display: inline-block;
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    background-color: currentColor;
    -webkit-mask: var(--ico) center / contain no-repeat;
    mask: var(--ico) center / contain no-repeat;
}

.sx-ico-calculator { --ico: url(icons/calculator.svg); }
.sx-ico-shield-check { --ico: url(icons/shield-check.svg); }
.sx-ico-bell-ring { --ico: url(icons/bell-ring.svg); }
.sx-ico-user-round { --ico: url(icons/user-round.svg); }
.sx-ico-smartphone { --ico: url(icons/smartphone.svg); }
.sx-ico-house { --ico: url(icons/house.svg); }
.sx-ico-sliders-horizontal { --ico: url(icons/sliders-horizontal.svg); }
.sx-ico-list { --ico: url(icons/list.svg); }
.sx-ico-square-plus { --ico: url(icons/square-plus.svg); }
.sx-ico-trending-up { --ico: url(icons/trending-up.svg); }
.sx-ico-check { --ico: url(icons/check.svg); }
.sx-ico-pencil { --ico: url(icons/pencil.svg); }
.sx-ico-building-2 { --ico: url(icons/building-2.svg); }
.sx-ico-cookie { --ico: url(icons/cookie.svg); }
/* ---------- Fonctions, à gauche des téléphones -------------------------- */
.sx-features {
    display: grid;
    gap: 1rem;
    margin-top: 1.75rem;
}

.sx-feature {
    display: grid;
    grid-template-columns: 2.6rem 1fr;
    column-gap: 1rem;
    align-items: start;
    margin: 0;
    color: rgb(255 255 255 / 75%);
}

.sx-feature::before {
    grid-row: span 2;
    width: 2.6rem;
    height: 2.6rem;
    background-color: var(--sx-teal-clair);
    -webkit-mask-size: 1.25rem;
    mask-size: 1.25rem;
}

.sx-feature strong {
    display: block;
    font-size: 1.05rem;
    color: #fff;
}

/* ---------- Boutons ----------------------------------------------------- */
.sx-plateforme__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 2rem;
}

.landing .sx-btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    border: 1.5px solid var(--sx-teal);
    background: var(--sx-teal);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.landing .sx-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -10px rgb(0 150 181 / 70%);
}

.landing .sx-btn--contour {
    background: transparent;
    border-color: rgb(255 255 255 / 55%);
}

.landing .sx-btn--contour:hover {
    background: #fff;
    border-color: #fff;
    color: var(--sx-navy);
    box-shadow: none;
}

.landing .sx-btn--contour::before {
    width: 1.05em;
    height: 1.05em;
}

/* ---------- Téléphones (maquettes décoratives, aria-hidden) -------------- */
.sx-phone {
    position: relative;
    width: 270px;
    aspect-ratio: 9 / 18.5;
    padding: 10px;
    border-radius: 42px;
    background: linear-gradient(160deg, #22394a, #0a1822);
    box-shadow:
        0 0 0 1.5px rgb(255 255 255 / 14%) inset,
        0 0 0 1px rgb(0 0 0 / 30%),
        0 50px 90px -35px rgb(0 0 0 / 75%),
        0 18px 30px -18px rgb(0 0 0 / 50%);
}

/* Encoche */
.sx-phone::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 18px;
    left: 50%;
    translate: -50% 0;
    width: 84px;
    height: 22px;
    border-radius: 12px;
    background: #0a1822;
}

.sx-phone__screen {
    height: 100%;
    overflow: hidden;
    border-radius: 33px;
    padding: 14px 13px 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 11px;
    line-height: 1.35;
    color: #fff;
    background:
        url(/img/ax-filigrane.svg) 130% 108% / 115% no-repeat,
        linear-gradient(165deg, #0097b5 0%, #153448 72%);
}

.sx-app__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -14px -13px 0;
    padding: 14px 23px 4px;
    background: #10293a;
    font-weight: 700;
    font-size: 10.5px;
}

.sx-app__dots {
    width: 34px;
    height: 9px;
    border-radius: 3px;
    background: linear-gradient(90deg, #fff 0 60%, transparent 60% 70%, #fff 70% 100%);
    opacity: .8;
}

.sx-app__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -9px -13px 4px;
    padding: 6px 14px 10px;
    background: #10293a;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.sx-app__logo {
    width: 34px;
    height: 20px;
    background: url(ax-plein.svg) left center / contain no-repeat;
}

.sx-app__bell {
    position: relative;
}

.sx-app__bell::before {
    display: block;
    width: 17px;
    height: 17px;
}

.sx-app__bell i {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 13px;
    height: 13px;
    padding: 0 3px;
    border-radius: 999px;
    background: #e5484d;
    font-style: normal;
    font-size: 8px;
    font-weight: 700;
    line-height: 13px;
    text-align: center;
}

.sx-app__head,
.sx-app__title {
    font-weight: 800;
    font-size: 17px;
}

.sx-app__label {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 70%);
}

.sx-app__tiles {
    display: grid;
    gap: 7px;
}

.sx-app__tile,
.sx-app__row,
.sx-app__kpis > span {
    background: rgb(255 255 255 / 9%);
    border: 1px solid rgb(255 255 255 / 12%);
}

.sx-app__tile {
    display: grid;
    grid-template-columns: 26px 1fr;
    column-gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
}

.sx-app__tile.is-primary {
    background: rgb(0 151 181 / 55%);
    border-color: rgb(95 208 230 / 55%);
}

.sx-app__tile b {
    display: block;
    font-size: 12.5px;
}

.sx-app__tile small {
    display: block;
    margin-top: 1px;
    font-size: 9.5px;
    color: rgb(255 255 255 / 70%);
}

.sx-app__ico {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
}

.sx-app__ico::before {
    width: 20px;
    height: 20px;
}

/* Indicateurs « Mon activité » : 2 × 2, liseré turquoise */
.sx-app__kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.sx-app__kpis > span {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 5px;
    padding: 6px 8px;
    border-radius: 12px;
    border-left: 3px solid #0097b5;
}

.sx-app__kpis small {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: rgb(255 255 255 / 70%);
}

.sx-app__kpis small::before {
    width: 10px;
    height: 10px;
}

.sx-app__kpis b {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}

.sx-app__kpis i {
    font-style: normal;
    font-size: 9.5px;
    color: rgb(255 255 255 / 70%);
}

/* Liste « Mes demandes » */
.sx-app__filter {
    align-self: flex-start;
    padding: 4px 10px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    background: rgb(255 255 255 / 9%);
    font-size: 10px;
    font-weight: 600;
    color: rgb(255 255 255 / 80%);
}

.sx-app__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 12px;
}

.sx-app__row b {
    display: block;
    font-size: 11px;
}

.sx-app__row small {
    display: block;
    font-size: 9.5px;
    color: rgb(255 255 255 / 70%);
}

.sx-app__row em {
    flex: none;
    padding: 3px 8px;
    border-radius: 999px;
    font-style: normal;
    font-size: 9px;
    font-weight: 700;
}

.sx-app__row .is-accord { background: var(--sx-teal-clair); color: var(--sx-navy-deep); }
.sx-app__row .is-etude { background: #ffd58a; color: #4a2c00; }
.sx-app__row .is-contrat { background: #fff; color: var(--sx-navy); }

/* Barre de navigation du bas ; onglet actif = point lumineux */
.sx-app__nav {
    display: flex;
    justify-content: space-around;
    margin: auto -13px 0;
    padding: 8px 6px 14px;
    background: rgb(12 34 49 / 70%);
    border-top: 1px solid rgb(255 255 255 / 10%);
}

.sx-app__nav span {
    display: grid;
    justify-items: center;
    gap: 3px;
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 60%);
}

.sx-app__nav span::before {
    width: 15px;
    height: 15px;
}

.sx-app__nav .is-on {
    color: #fff;
    background: radial-gradient(circle at 50% 1px, var(--sx-teal-clair) 2px, transparent 2.5px) no-repeat;
    padding-top: 5px;
    margin-top: -5px;
}

/* Deux téléphones décalés + notification */
.sx-phones {
    position: relative;
    height: 600px;
    max-width: 470px;
    width: 100%;
    margin-inline: auto;
}

.sx-phones .sx-phone {
    position: absolute;
}

.sx-phone--front {
    left: 0;
    top: 30px;
    z-index: 2;
}

.sx-phone--back {
    right: 0;
    top: 0;
    transform: rotate(5deg) scale(.92);
    transform-origin: top right;
    filter: saturate(.9) brightness(.92);
}

/* Vignette en verre fumé marine */
.sx-phones__toast {
    position: absolute;
    z-index: 3;
    right: 6px;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.1rem;
    border-radius: 18px;
    font-size: .875rem;
    background: rgb(16 41 58 / 72%);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 14%), 0 24px 40px -20px rgb(0 0 0 / 60%);
}

.sx-phones__toast strong {
    display: block;
    font-size: .9rem;
}

.sx-phones__toast small {
    display: block;
    font-size: .75rem;
    color: rgb(255 255 255 / 65%);
}

.sx-mock__ok {
    position: relative;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgb(0 151 181 / 30%);
}

.sx-mock__ok::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--sx-teal-clair);
    -webkit-mask: url(icons/check.svg) center / 1.1rem no-repeat;
    mask: url(icons/check.svg) center / 1.1rem no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
    .sx-phones__toast { animation: sx-float 7s ease-in-out infinite; }
    @keyframes sx-float { 50% { transform: translateY(-10px); } }
}

/* ---------- Écrans plus étroits ----------------------------------------- */
@media (max-width: 991.98px) {
    .landing__hero {
        grid-template-columns: 1fr;
    }

    .sx-phones {
        height: 560px;
    }
}

@media (max-width: 781px) {
    /* Taille fixe : en % d'une page mobile de 1 400 px, le AX barrait tout le fond */
    .sx-fond::after {
        background-size: auto 320px;
        background-position: calc(100% + 80px) 100%;
    }

    /* Les deux téléphones restent, plus serrés : celui de derrière dépasse à droite */
    .sx-phones {
        height: 520px;
        max-width: 340px;
    }

    .sx-phones .sx-phone {
        width: 230px;
    }

    .sx-phone--front {
        top: 24px;
    }

    .sx-phones__toast {
        right: 0;
        bottom: 30px;
    }
}

/* Téléphone : les trois boutons ne tiennent plus sur une ligne et « Version web »
   partait seul à la ligne. L'action principale passe en tête, pleine largeur,
   les deux stores dessous, côte à côte. */
@media (max-width: 599.98px) {
    .sx-plateforme__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .landing .sx-btn {
        justify-content: center;
        padding-inline: 1rem;
    }

    .landing .sx-btn:not(.sx-btn--contour) {
        grid-column: 1 / -1;
        order: -1;
    }
}

/* ---------- Pages de texte (informations légales) ----------------------- */
/* Fond clair uni : la grille reste réservée au bandeau marine */
.landing--doc {
    color: var(--sx-ink);
    background: var(--sx-page);
}

/* Bandeau de titre : sa colonne suit celle de la carte de texte */
.sx-pagehead {
    color: #fff;
    padding-bottom: clamp(5rem, 9vw, 6.5rem);
}

.sx-pagehead .landing__top,
.sx-pagehead__inner {
    max-width: 880px;
    padding-inline: clamp(1.5rem, 4vw, 3.5rem);
}

.sx-pagehead__inner {
    margin: clamp(2rem, 5vw, 3.5rem) auto 0;
}

.sx-pagehead__lead {
    margin: 1rem 0 0;
    max-width: 640px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgb(255 255 255 / 80%);
}

/* Sommaire en pastilles */
.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.75rem;
}

.legal-toc a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    border: 1.5px solid rgb(255 255 255 / 40%);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.legal-toc a:hover {
    background: #fff;
    border-color: #fff;
    color: var(--sx-navy);
}

.legal-toc a::before {
    width: 1rem;
    height: 1rem;
}

/* Carte blanche de texte, remontée sur le bandeau */
.sx-prose {
    position: relative;
    width: calc(100% - 2rem);
    max-width: 880px;
    margin: clamp(-4rem, -7vw, -3rem) auto clamp(2rem, 5vw, 3.5rem);
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: #fff;
    border-radius: clamp(20px, 3vw, 36px);
    box-shadow: 0 1px 2px rgb(12 34 49 / 6%), 0 8px 24px -12px rgb(12 34 49 / 18%);
    line-height: 1.7;
}

.sx-prose section + section {
    margin-top: 2.75rem;
    padding-top: 2.75rem;
    border-top: 1px solid var(--sx-line);
}

.sx-prose section {
    scroll-margin-top: 1.5rem;
}

.sx-prose h2 {
    margin: 0 0 1.25rem;
    font-family: var(--sx-font);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--sx-navy);
}

.sx-prose h3 {
    margin: 2rem 0 .6rem;
    font-family: var(--sx-font);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sx-teal-dark);
}

.sx-prose h2 + h3 {
    margin-top: 0;
}

.sx-prose p,
.sx-prose li {
    color: var(--sx-ink);
}

.sx-prose p {
    margin: 0 0 .9rem;
}

.sx-prose ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.sx-prose li + li {
    margin-top: .35rem;
}

.sx-prose li::marker {
    color: var(--sx-teal);
}

.sx-prose strong {
    color: var(--sx-navy);
}

.landing .sx-prose a {
    color: var(--sx-teal-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.landing .sx-prose a:hover {
    color: var(--sx-navy);
}

.landing--doc .landing__pied {
    max-width: 880px;
    color: var(--sx-muted);
}

.landing--doc .landing__pied a {
    color: var(--sx-teal-dark);
    font-weight: 600;
    text-decoration: none;
}

.landing--doc .landing__pied a:hover {
    color: var(--sx-navy);
}