/* =========================================================
   VERSION MOBILE — « Ma grossesse Thur-Doller.fr »
   Base maquette : frame Figma 25:4906 (412px de large).
   La toile .pm-canvas est mise à l'échelle via --psm (JS).
   ========================================================= */

/* bascule desktop / mobile
   .vd = visible desktop seulement — .vm = visible mobile seulement
   (les headers/footers vivent dans header.php / footer.php).
   On ne masque que par média : chaque composant garde son display naturel. */
@media (min-width: 769px) {
    .vm,
    #site-mobile {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .vd,
    #site-desktop {
        display: none !important;
    }
}

/* ---------- header mobile (barre flottante + burger) ---------- */
.pm-header {
    position: fixed;
    top: 16px;
    left: 20px;
    right: 20px;
    z-index: 500;
}
.pm-header__bar {
    background: var(--c-offwhite);
    border-radius: 24px;
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.1),
        0 25px 25px rgba(0, 0, 0, 0.09);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}
.pm-header__logo img {
    height: 44px;
    width: auto;
}
.pm-burger {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 8px;
}
.pm-burger span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--c-navy);
    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
}
.pm-burger.is-open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.pm-burger.is-open span:nth-child(2) {
    opacity: 0;
}
.pm-burger.is-open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}
.pm-menu {
    margin-top: 10px;
    background: var(--c-offwhite);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 20, 60, 0.25);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        transform 0.3s cubic-bezier(0.22, 1.2, 0.36, 1),
        visibility 0s linear 0.3s;
    position: absolute;
    width: 100%;
}
.pm-menu.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition:
        opacity 0.25s ease,
        transform 0.3s cubic-bezier(0.22, 1.2, 0.36, 1),
        visibility 0s;
}
.pm-menu a {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 17px;
    color: var(--c-navy);
}
.pm-menu a:active {
    color: var(--c-orange);
}
.pm-menu hr {
    border: none;
    border-top: 1px solid #eaeaea;
    margin: 4px 0;
}
.pm-menu .pm-menu__sec {
    font-weight: 400;
    font-size: 15.5px;
    color: var(--c-text);
}

/* ---------- toile 412px mise à l'échelle ---------- */
.pm {
    background: var(--c-navy);
}
.pm-canvas-wrap {
    overflow: hidden;
}
.pm-canvas {
    position: relative;
    width: 412px;
    height: 9720px;
    transform-origin: 0 0;
    font-family: var(--font-head);
    /* transform + hauteur du parent gérés par JS (--psm) */
}
.pm-ly {
    position: absolute;
    margin: 0;
}

/* ---------- hero mobile ---------- */
.pm-hero {
    position: absolute;
    left: 0;
    top: 0;
    width: 412px;
    height: 1026px;
    background: linear-gradient(180deg, #dfecf5 50%, #014e9b 50%);
    overflow: visible;
}
.pm-hero__il {
    position: absolute;
    inset: 0;
    width: 412px;
    height: 1026px;
    object-fit: contain;
    object-position: 18% top;
    max-width: none;
}
.pm-hero__content {
    position: absolute;
    left: 20px;
    top: 598px;
    width: 372px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    color: var(--c-offwhite);
    z-index: 2;
}
.pm-hero__title {
    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--c-offwhite);
}
.pm-hero__sub {
    font-size: 15px;
    line-height: 1.5;
    color: var(--c-offwhite);
}
.pm-hero__btn {
    margin-top: 4px;
}

/* ---------- fil rouge mobile ---------- */
.pm-thread {
    position: absolute;
    pointer-events: none;
    z-index: 8;
}
.pm-thread svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------- labels trimestres ---------- */
.pm-label {
    position: absolute;
    background: var(--c-orange);
    color: var(--c-offwhite);
    font-weight: 800;
    font-size: 24px;
    line-height: 1.1;
    padding: 8px 24px;
    border-radius: 48px;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.1),
        0 10px 10px rgba(0, 0, 0, 0.09),
        0 22px 13px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    z-index: 40;
}
.pm-label sup {
    font-size: 55%;
    line-height: 0;
    position: relative;
    top: -0.5em;
}

/* ---------- pills mobiles ---------- */
.pm-pill {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    box-shadow:
        -2px 10px 23px rgba(0, 0, 0, 0.1),
        -8px 42px 42px rgba(0, 0, 0, 0.09),
        -17px 94px 57px rgba(0, 0, 0, 0.05);
    z-index: 50;
    box-sizing: border-box;
}
.pm-pill--white {
    background: var(--c-offwhite);
}
.pm-pill--white .pm-pill__t {
    color: var(--c-blue);
}
.pm-pill--blue {
    background: var(--c-blue);
}
.pm-pill--blue .pm-pill__t {
    color: var(--c-offwhite);
}
.pm-pill__t {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    flex: 1;
    text-align: center;
    text-wrap: balance;
}
.pm-pill__t sup {
    font-size: 55%;
    line-height: 0;
    position: relative;
    top: -0.5em;
}
.pm-plus {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #4a4a4a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pm-pill--blue .pm-plus {
    background: var(--c-offwhite);
    color: #4a4a4a;
}
.pm-plus svg {
    width: 20px;
    height: 20px;
}
.pm-plus:active {
    transform: scale(1.1);
}
.pm-plus--w {
    background: var(--c-offwhite);
    color: #4a4a4a;
    width: 36px;
    height: 36px;
}

/* pills info magenta */
.pm-info {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--c-pink);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 8px 8px 20px;
    border-radius: 56px;
    z-index: 51;
    white-space: nowrap;
}
.pm-info > svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.pm-info--static {
    padding-right: 20px;
}

/* chips jaunes / teal */
.pm-chip-y {
    position: absolute;
    display: inline-flex;
    align-items: center;
    background: var(--c-yellow);
    color: var(--c-text);
    font-size: 14px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    z-index: 51;
}
.pm-chip-y--flow {
    position: static;
    white-space: normal;
    align-self: flex-start;
}
.pm-chip-teal {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--c-teal);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 48px;
    z-index: 51;
}
.pm-chip-teal svg {
    width: 18px;
    height: 18px;
}

/* ---------- carte texte (naissance) ---------- */
.pm-card {
    position: absolute;
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 45;
    box-sizing: border-box;
}
.pm-card p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--c-text);
    margin: 0;
}

/* ---------- section lavande : qui nous sommes ---------- */
.pm-lavender {
    background: linear-gradient(180deg, var(--c-blue-pale) 0%, var(--c-lavender) 45%, var(--c-lavender) 100%);
    padding: 44px 20px 56px;
}
.pm-qns {
    background: var(--c-offwhite);
    border-radius: 40px;
    padding: 32px 24px;
    box-shadow:
        -2px 10px 23px rgba(0, 0, 0, 0.1),
        -8px 42px 42px rgba(0, 0, 0, 0.09);
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 480px;
    margin-inline: auto;
}
.pm-qns h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--c-text);
    margin: 0;
}
.pm-qns h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--c-text);
    margin: 8px 0 0;
}
.pm-qns p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--c-text);
    margin: 0;
}
.pm-qns__logo {
    display: flex;
    align-items: center;
    gap: 14px;
}
.pm-qns__logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.pm-qns__logo strong {
    display: block;
    font-size: 30px;
    line-height: 1.05;
    color: var(--c-text);
    font-family: "Outfit", var(--font-head), sans-serif;
}
.pm-qns__logo span {
    font-size: 21px;
    font-weight: 700;
    color: var(--c-teal);
    font-family: "Outfit", var(--font-head), sans-serif;
}
.pm-mission {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--c-lavender);
    border-radius: 20px;
    padding: 18px 24px;
    color: var(--c-blue);
    font-size: 15.5px;
}
.pm-mission__ic {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.pm-mission__ic svg {
    width: 100%;
    height: 100%;
}

/* ---------- footer mobile ---------- */
.pm-footer {
    background: var(--c-offwhite);
    padding: 40px 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}
.pm-footer__logo {
    height: 56px;
    width: auto;
}
.pm-footer__addr {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}
.pm-footer__social {
    display: flex;
    gap: 22px;
    margin: 0;
}
.pm-footer__social a {
    font-weight: 600;
}
/* carte navigation footer (maquette) : bord rose, zone rose + zone blanche */
.pm-footer__nav {
    background: #ffffff;
    border: 2px solid var(--c-pink-light);
    border-radius: 34px;
    padding: 0;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    overflow: hidden;
}
.pm-footer__nav-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--c-pink-light);
    border-radius: 0 0 30px 30px;
    padding: 24px 20px 26px;
    text-align: center;
}
.pm-footer__nav-steps a {
    font-weight: 700;
    color: var(--c-blue);
    font-size: 16px;
}
.pm-footer__nav-steps sup {
    font-size: 60%;
}
.pm-footer__nav-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 20px;
    text-align: center;
}
.pm-footer__nav-links a {
    font-weight: 700;
    color: var(--c-text);
    /* font-size: 16px;
} */
    font-size: 14px;
    margin: 6px 0 0;
}

.pm-footer__partners {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.pm-footer__partners img {
    height: 44px;
    width: auto;
}
.pm-footer__legal {
    font-size: 12px;
    color: #7a7a7a;
    line-height: 1.7;
    margin: 10px 0 0;
}

/* ---------- photos à dégradés & blobs ---------- */
.pm-photo {
    overflow: hidden;
}
.pm-photo__im {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pm-photo__ov {
    position: absolute;
    inset: 0;
}
.pm-blob__im {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* chip jaune intégrée à la box blanche (maquette) */
.pm-pill {
    flex-wrap: wrap;
}
.pm-pill .pm-chip-y--in {
    position: static;
    order: 3;
    margin-top: 4px;
    white-space: normal;
    text-align: center;
    margin-inline: auto;
}

@media (max-width: 620px) {
    .cm-ycard {
        flex-direction: column;
    }
}

/* ---------- tablette : toile au format mobile (520px) mais bandes de couleur
   prolongées horizontalement, pour supprimer les bordures bleu marine.
   Le débordement est coupé par .pm-canvas-wrap (overflow hidden). */
.m-b-band-blue,
.m-b-band-light,
.m-b-band-pale {
    left: -1294px !important;   /* 412 + 2 x 1294 = 3000 */
    width: 3000px !important;
}
/* bandes contiguës : plus aucun interstice bleu marine entre les sections */
.m-b-band-blue { height: 1895px !important; }   /* 3305 -> 5200 */
.m-b-band-light { height: 1967px !important; }  /* 5200 -> 7167 */


/* box mobiles contenant une chip jaune (Echo T1, EPP, Suivi mensuel,
   Consultation 7e mois) : le bouton « + » couvre les deux lignes
   (titre + chip) et reste centré verticalement */
.pm-pill--chip {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 10px;
}
.pm-pill--chip .pm-pill__t {
    grid-column: 1;
}
.pm-pill--chip .pm-chip-y {
    grid-column: 1;
    justify-self: center;
    margin-top: 0;
    margin-inline: 0;
}
.pm-pill--chip .pm-plus {
    grid-column: 2;
    grid-row: 1 / span 2;   /* titre + chip */
    align-self: center;
}
