/*
Theme Name: Ma Grossesse Thur-Doller
Theme URI:  https://ma-grossesse-thur-doller.fr
Author:     CPTS Thur & Doller
Description: Parcours illustré de la grossesse — CPTS Thur & Doller. Landing page « Ma grossesse Thur-Doller.fr ».
Version:    0.1.0
Text Domain: mgtd
*/

/* =========================================================
   1. DESIGN TOKENS (issus de la maquette Figma)
   ========================================================= */
:root {
    /* Bleus */
    --c-navy: #004e9b; /* bleu marine (fond hero, titres) */
    --c-blue: #4182c2;
    --c-blue-mid: #509bd6;
    --c-blue-light: #b6d5ed;
    --c-blue-pale: #dfecf5;
    --c-sky-1: #eaf3fb; /* dégradé ciel */
    --c-sky-2: #dfecf5;

    /* Orange / fil rouge */
    --c-orange: #e45028; /* le "fil rouge" central + labels trimestres */

    /* Jaunes (CTA) */
    --c-yellow: #e9d95e;
    --c-yellow-warm: #f0b244;

    /* Roses / magenta */
    --c-pink: #c84993;
    --c-pink-dark: #ae3c80;
    --c-pink-light: #f3b2e0;

    /* Vert d'eau (postnatal) */
    --c-teal: #53b4ad;
    --c-teal-dark: #529f9a;

    /* Neutres */
    --c-text: #4a4a4a;
    --c-white: #ffffff;
    --c-offwhite: #fbfbfb;
    --c-lavender: #f3eefe; /* cartes "Nos missions" */

    /* Typo */
    --font-head: "Poppins", system-ui, sans-serif;
    --font-body: "Poppins", system-ui, sans-serif;

    /* Layout */
    --wrap: 1280px;
    --radius-pill: 999px;
    --radius-card: 28px;
    --shadow-card: 0 18px 40px rgba(0, 78, 155, 0.12);
    --shadow-pill: 0 10px 24px rgba(0, 40, 90, 0.18);
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-offwhite);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
h1,
h2,
h3,
p {
    margin: 0;
}

.wrap {
    width: min(100% - 48px, var(--wrap));
    margin-inline: auto;
}

/* Boutons génériques */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
    padding: 15px 30px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    border: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}
.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}
.btn--yellow {
    background: var(--c-yellow);
    color: var(--c-navy);
    box-shadow: 0 8px 20px rgba(233, 217, 94, 0.45);
}

/* =========================================================
   3. HEADER — coordonnées exactes maquette, échelle --ps
   ========================================================= */
.site-header {
    position: fixed; /* header sticky : reste visible au scroll */
    top: 0;
    left: 0;
    z-index: 400;
    width: 100%;
    overflow: visible;
    pointer-events: none; /* la zone vide laisse passer les clics */
}
.site-header__inner,
.site-header__logo,
.site-nav {
    pointer-events: auto;
}
.site-header__canvas {
    width: 1920px;
    transform: scale(var(--ps, 1));
    transform-origin: 0 0;
}
.site-header__inner {
    position: absolute;
    left: 320px;
    top: 24px;
    width: 1280px;
    height: 95px;
    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),
        0 56px 34px rgba(0, 0, 0, 0.05),
        0 100px 40px rgba(0, 0, 0, 0.01);
}
.site-header__logo {
    position: absolute;
    left: 24px;
    top: 18px;
    height: 59px;
    display: block;
}
.site-header__logo img {
    height: 59px;
    width: auto;
}

.site-nav {
    position: absolute;
    display: flex;
    gap: 24px;
}
.site-nav--top {
    top: 22px;
    right: 40px;
    font-size: 14px;
    line-height: 22.4px;
}
.site-nav--main {
    top: 50px;
    right: 40px;
    font-size: 16px;
    line-height: 23.4px;
}
.site-nav a {
    color: var(--c-text);
    font-weight: 400;
    transition: color 0.15s ease;
    white-space: nowrap;
}
.site-nav a:hover {
    color: var(--c-orange);
}

/* =========================================================
   4. HERO — toile 1920x1080 aux coordonnées exactes
   ========================================================= */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, var(--c-sky-1) 0%, var(--c-sky-2) 100%);
    /* hauteur fixée par JS : 1080 * --ps */
    margin-bottom:-1px;
}
.hero__canvas {
    position: relative;
    width: 1920px;
    height: 1080px;
    transform: scale(var(--ps, 1));
    transform-origin: 0 0;
}
.hero__bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 1920px;
    height: 1080px;
}
.hero__content {
    position: absolute;
    left: 759px;
    top: 468px;
    width: 842px;
    text-align: center;
    color: var(--c-offwhite);
    z-index: 2;
}
.hero__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 56px;
    line-height: 56px;
    color: var(--c-offwhite);
}
.hero__subtitle {
    font-size: 18px;
    line-height: 23.4px;
    font-weight: 400;
    margin-top: 24px; /* 716 - (468+224) */
    color: var(--c-offwhite);
}
.btn-hero {
    /* bouton (1058,786) 243x40 : centré dans le bloc de 842 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px; /* 786 - (716+46) */
    width: 243px;
    height: 40px;
    background: var(--c-yellow);
    border-radius: 24px;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    line-height: 16px;
    color: var(--c-text);
    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}
.btn-hero:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

/* =========================================================
   4b. PARCOURS (toile fidèle 1920px mise à l'échelle)
   ========================================================= */
.parcours {
    position: relative;
    overflow: hidden;
    background: var(--c-navy); /* fond du cadre Figma */
}
.parcours__canvas {
    position: relative;
    width: 1920px;
    transform: scale(var(--pscale, 1));
    transform-origin: 0 0;
    font-family: var(--font-head);
}
/* calques de fond */
.parcours .ly {
    position: absolute;
    margin: 0;
}

/* fil rouge */
.thread__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* pills (cartes/boutons du parcours) — au-dessus du fil et des calques */
.pill {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    z-index: 100;
}
.pill .pf {
    position: absolute;
}
.pill .pt {
    position: absolute;
    font-family: var(--font-head);
}
.pill .picon {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}
.pill .picon svg {
    width: 100%;
    height: 100%;
}
.pill sup {
    font-size: 55%;
    line-height: 0;
    vertical-align: baseline;
    position: relative;
    top: -0.55em;
}

/* bouton + cliquable */
.pplus {
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.15s ease;
}
.pplus:hover {
    /* transform: scale(1.12);
    filter: brightness(1.06); */
}
.pplus .picon svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pplus.is-open .picon svg {
    transform: rotate(45deg);
}

/* =========================================================
   4c. MODALS (panneaux des pills — design maquette)
   ========================================================= */
.cm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 70, 0.35);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cm-backdrop.is-open {
    opacity: 1;
}

.cmodal {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 24px;
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}
.cmodal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cmodal__card {
    position: relative;
    width: min(1280px, 96%);
    max-height: 92vh;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* le scroll vit dans .cmodal__scroll */
    border-radius: 40px;
    padding: 48px 56px 56px;
    box-shadow: 0 30px 80px rgba(0, 20, 60, 0.35);
    font-family: var(--font-head);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.38s cubic-bezier(0.22, 1.2, 0.36, 1);
}

/* zone interne scrollable (le JS y déplace tout le contenu sauf le bouton fermer) */
.cmodal__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 20, 60, 0.28) transparent;
}
.cmodal__card--blue .cmodal__scroll,
.cmodal__card--info .cmodal__scroll {
    scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}
.cmodal__scroll::-webkit-scrollbar {
    width: 8px;
}
.cmodal__scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 20, 60, 0.28);
    border-radius: 99px;
}
.cmodal__card--blue .cmodal__scroll::-webkit-scrollbar-thumb,
.cmodal__card--info .cmodal__scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.45);
}
.cmodal.is-open .cmodal__card {
    transform: none;
}

/* variantes */
.cmodal__card--white {
    background: var(--c-offwhite);
    color: var(--c-text);
}
.cmodal__card--blue {
    background: var(--c-blue);
    color: #ffffff;
}
.cmodal__card--info {
    background: var(--c-pink);
    color: #ffffff;
    width: min(720px, 94%);
    border-radius: 32px;
    padding: 40px 44px 44px;
}
.cmodal__card--info.cmodal__card--wide {
    width: min(980px, 94%);
}

/* titre pastille rose */
.cmodal__title {
    display: inline-block;
    background: var(--c-pink-light);
    color: var(--c-blue);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    border-radius: 999px;
    padding: 18px 42px;
    margin: 0 60px 32px 0;
    max-width: 90%;
}
.cmodal__title sup {
    font-size: 55%;
}

/* chip blanc des panneaux info */
.cmodal__chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: var(--c-pink);
    font-size: 19px;
    font-weight: 700;
    border-radius: 999px;
    padding: 12px 26px;
    margin-bottom: 26px;
    max-width: 85%;
    text-wrap: balance;
}
.cmodal__chip svg {
    width: 24px;
    height: 24px;
}

/* bouton fermer */
.cmodal__close {
    position: absolute;
    top: 34px;
    right: 40px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--c-text);
    padding: 4px;
    transition: transform 0.2s ease;
}
.cmodal__card--blue .cmodal__close,
.cmodal__card--info .cmodal__close {
    color: #ffffff;
}
.cmodal__close svg {
    width: 100%;
    height: 100%;
}
.cmodal__close:hover {
    transform: rotate(90deg);
}

/* typographie interne */
.cmodal__card p {
    font-size: 17px;
    line-height: 1.55;
    margin: 0 0 18px;
}
.cmodal__card .cm-lead {
    font-size: 21px;
    line-height: 1.45;
}
.cm-sub {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
}
.cmodal__card--blue .cm-sub {
    font-weight: 700;
}
.cm-h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
}
.cm-sep {
    border: none;
    border-top: 1px solid rgba(74, 74, 74, 0.25);
    margin: 22px 0;
}
.cmodal__card--blue .cm-sep {
    border-color: rgba(255, 255, 255, 0.35);
}
.cm-ul {
    padding-left: 22px;
    margin: 0 0 18px;
}
.cm-ul li {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 14px;
}

/* grilles */
.cm-cols2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
}
.cm-cols2--with-pill {
    grid-template-columns: 1fr 1fr auto;
    align-items: start;
}
.cm-main {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 52px;
    align-items: start;
}
/* mosaïque : colonnes flex remplies par le JS (aucune carte coupée) */
.cm-cards {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.cm-cards__col,
.cm-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
/* évite le débordement des grilles (min-width:auto par défaut) */
.cm-cols2 > *,
.cm-main > *,
.cm-cards > *,
.cm-cards__col > *,
.cm-pro-rich > *,
.cm-rich > * {
    min-width: 0;
}
.ccard {
    /* `anywhere` compte dans le min-content : les emails longs ne forcent plus la largeur des grilles */
    overflow-wrap: anywhere;
}

/* écrans étroits : tout s'empile */
@media (max-width: 1100px) {
    .cm-cols2,
    .cm-cols2--with-pill,
    .cm-main {
        grid-template-columns: 1fr;
    }
    .cm-cards {
        flex-direction: column;
    }
    .cmodal__card {
        padding: 36px 28px 40px;
        border-radius: 28px;
    }
    .cmodal__title {
        font-size: 24px;
        padding: 14px 28px;
    }
    .cmodal__close {
        top: 22px;
        right: 22px;
    }
}
@media (max-width: 768px) {
    .cmodal {
        padding: 2vh 12px 4vh;
    }
    .cmodal__card {
        padding: 30px 22px 34px;
        border-radius: 24px;
    }
    .cmodal__title {
        display: block;
        font-size: 19px;
        padding: 12px 20px;
        border-radius: 20px;
        margin: 0 40px 22px 0;
        max-width: none;
    }
    .cmodal__card p {
        font-size: 15.5px;
    }
    .cm-ul li {
        font-size: 15.5px;
    }
    .cmodal__chip {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* cartes contact */
.ccard {
    background: var(--c-blue-pale);
    border-radius: 20px;
    padding: 24px 26px;
    color: var(--c-text);
}
.ccard h4 {
    font-size: 17.5px;
    font-weight: 700;
    margin: 0 0 12px;
}
.ccard hr {
    border: none;
    border-top: 1px solid rgba(74, 74, 74, 0.3);
    margin: 16px 0;
}
.ccard__plain {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 !important;
}
.cperson__name {
    font-size: 16.5px;
    margin: 0 0 8px !important;
}
.centry {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 7px;
}
.centry__ic {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.centry__ic svg {
    width: 100%;
    height: 100%;
}

/* boutons jaunes */
.cm-btn-y {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--c-yellow);
    color: var(--c-text);
    font-size: 16px;
    font-weight: 800;
    border-radius: 999px;
    padding: 13px 28px;
    margin-top: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease;
    line-height: 1.25;
}
.cm-btn-y:hover {
    transform: translateY(-2px);
}
.cm-btn-y--plus span {
    width: 20px;
    height: 20px;
    display: inline-flex;
}
.cm-btn-y--plus span svg {
    width: 100%;
    height: 100%;
}

/* carte jaune (fiche parcours postnatal) */
.cm-ycard {
    background: var(--c-yellow);
    border-radius: 26px;
    padding: 26px 30px;
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 14px;
}
.cm-ycard p {
    margin: 0 !important;
    font-size: 16px;
}
.cm-btn-w {
    flex-shrink: 0;
    background: #ffffff;
    color: var(--c-text);
    font-weight: 800;
    font-size: 15px;
    border-radius: 999px;
    padding: 14px 24px;
    line-height: 1.25;
    text-align: center;
}

/* pills magenta dans les modals */
.cm-pills {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 22px;
    flex-wrap: wrap;
}
.cm-pills--col {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.cm-mpill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--c-pink);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 12px 10px 22px;
    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}
.cm-mpill:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}
.cm-mpill--dark {
    background: var(--c-pink-dark);
}
.cm-mpill--static {
    cursor: default;
    padding-right: 22px;
}
.cm-mpill--static:hover {
    transform: none;
    filter: none;
}
.cm-mpill__ic {
    width: 26px;
    height: 26px;
    display: inline-flex;
}
.cm-mpill__ic svg {
    width: 100%;
    height: 100%;
}
.cm-mpill__plus {
    width: 38px;
    height: 38px;
    background: #ffffff;
    color: var(--c-text);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cm-mpill__plus svg {
    width: 18px;
    height: 18px;
}

/* sections des panneaux info (titre gras + texte + cercle +) */
.cm-sec {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
}
.cm-pillrow--stack {
    flex-direction: column;
    align-items: flex-start;
}
.cm-sec > div {
    flex: 1;
}
.cm-sec h4 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}
.cm-sec p {
    margin: 0 !important;
    font-size: 16px;
}
.cm-circle {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: #ffffff;
    color: var(--c-pink);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}
.cm-circle:hover {
    transform: scale(1.1);
}
.cm-circle svg {
    width: 22px;
    height: 22px;
}

/* chip teal */
.cm-chip-teal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--c-teal);
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    border-radius: 999px;
    padding: 12px 26px;
}
.cm-chip-teal svg {
    width: 22px;
    height: 22px;
}

/* actions bas de modal */
.cm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 28px;
    align-items: center;
}

/* la pill dont le panneau est ouvert passe au-dessus */
.pill.pill--active {
    z-index: 160;
}
\n
/* ---------- zones éditables ACF dans les modals ---------- */
.cm-rich p {
    font-size: 17px;
    line-height: 1.55;
    margin: 0 0 18px;
}
.cm-rich h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 22px 0 10px;
    color: var(--c-text); /* lisible sur carte blanche (maquette) */
}
.cmodal__card--blue .cm-rich h3,
.cmodal__card--info .cm-rich h3 {
    font-weight: 700;
    color: #fff;
}
.cm-rich h4 {
    font-size: 17px;
    font-weight: 700;
    margin: 20px 0 4px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #FFF;
}
.cm-rich h4 + p {
    margin-top: 0;
}
.cm-rich hr {
    border: none;
    border-top: 1px solid rgba(74, 74, 74, 0.25);
    margin: 22px 0;
}
.cmodal__card--blue .cm-rich hr,
.cmodal__card--info .cm-rich hr {
    border-color: rgba(255, 255, 255, 0.35);
}
.cm-rich ul {
    padding-left: 22px;
    margin: 0 0 18px;
}
.cm-rich ul li {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 14px;
}
.cm-rich a:not(.cm-circle) {
    text-decoration: underline;
}

/* cartes professionnels reconstruites par JS */
.cm-pro-rich {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
/* .cm-pro-rich .ccard:nth-child(1) {
    grid-row: 1/5;
} */
.cm-pro-rich .ccard hr {
    border: none;
    border-top: 1px solid rgba(74, 74, 74, 0.3);
    margin: 16px 0;
}
.cm-pro-rich .cperson__name {
    font-size: 16.5px;
    margin: 0 0 8px;
}

/* cercle + inline dans les titres de sections Info */
.cm-circle--inline {
    width: 40px;
    height: 40px;
    margin-left: auto;
    flex-shrink: 0;
}
.cm-circle--inline svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1100px) {
    .cm-pro-rich {
        flex-direction: column;
    }
}

/* =========================================================
   TEXTE À TAILLE FIXE (contre-zoom des éléments textuels)
   La toile est mise à l'échelle (--s) ; les clusters textuels
   sont contre-zoomés pour garder leur taille réelle.
   ========================================================= */
/* palier de taille par appareil : 1 = PC large, .8 = tablette/petit PC */
:root {
    --fixk: 1;
}
@media (max-width: 1279px) {
    :root {
        --fixk: 0.8;
    }
}

/* clusters du parcours desktop : ancrés sur leur centre */
.pill .pill__fix {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(-50%) scale(calc(var(--fixk, 1) / var(--s, 1)));
    transform-origin: top center;
}
.pill .pill__fix > .pf,
.pill .pill__fix > .pt {
    position: absolute;
}

/* hero desktop : contenu à taille réelle, ancré sur son centre */
.hero__content {
    transform: translateX(-50%) scale(calc(var(--fixk, 1) / var(--s, 1)));
    transform-origin: top center;
    left: 1180px; /* centre du bloc maquette (759 + 842/2) */
}

/* header desktop : barre à taille réelle, centrée */
.site-header__inner {
    left: 50%;
    transform: translateX(-50%) scale(calc(var(--fixk, 1) / var(--ps, 1)));
    transform-origin: top center;
    /* compense le palier pour occuper la largeur visée à l'écran */
    width: calc(min(1280px, 100vw - 48px) / var(--fixk, 1));
}

/* mobile : éléments contre-zoomés (ancre haut-gauche) */
.pm-fix {
    transform: scale(calc(1 / var(--sm, 1)));
    transform-origin: top left;
}
/* pills pleine largeur : suivent l'écran réel */
.pm-fix.pm-pill[class] {
    max-width: calc(100vw - 40px);
}
.pm-fix-center {
    transform: translateX(-50%) scale(calc(1 / var(--sm, 1)));
    transform-origin: top center;
    left: 206px !important; /* centre de la toile mobile (412/2) */
}

/* =========================================================
   5. ANIMATIONS AU SCROLL (reveal)
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal[data-reveal="left"] {
    transform: translateX(-40px);
}
.reveal[data-reveal="right"] {
    transform: translateX(40px);
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none;
    }
}

/* =========================================================
   5b. FOOTER
   ========================================================= */
.site-footer {
    background: var(--c-offwhite);
    padding: 56px 0 24px;
    font-size: 15px;
}
.site-footer__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}
.site-footer__logo {
    height: 64px;
    width: auto;
}
.site-footer__addr {
    margin-top: 18px;
    line-height: 1.5;
}
.site-footer__social {
    margin-top: 12px;
    display: flex;
    gap: 18px;
}
.site-footer__social a:hover {
    color: var(--c-orange);
}
.site-footer__nav {
    border: 2px solid #f3b2e0;
    border-radius: 60px;
    /* padding: 22px 34px 0; */
    text-align: center;
    overflow: hidden; /* la rangée blanche reste dans les angles arrondis */
}
.site-footer__nav-steps {
    display: flex;
    column-gap: 26px;
    row-gap: 11px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 460px;
    padding: 22px 34px;
    background: #f3b2e0;
    border-radius: 100px;
}
.site-footer__nav-steps a {
    color: #4182c2;
    font-weight: 700;
}
.site-footer__nav-steps a:hover {
    color: var(--c-orange);
}
.site-footer__nav-links {
    display: flex;
    gap: 26px;
    justify-content: center;
    background: var(--c-offwhite);
    /* margin: 18px -34px 0; */
    padding: 20px 20px;
}
.site-footer__nav-links a {
    font-weight: 700;
    color: var(--c-text);
}
.site-footer__nav-links a:hover {
    color: var(--c-orange);
}
.site-footer__partners p {
    font-size: 14px;
}
.site-footer__partner-logos {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
}
.site-footer__partner-logos img {
    height: 56px;
    width: auto;
}
.site-footer__legal {
    margin-top: 40px;
    border-top: 1px solid #e4e4e4;
    padding-top: 16px;
    text-align: center;
    font-size: 12.5px;
    color: #7a7a7a;
}
.site-footer__legal a:hover {
    color: var(--c-orange);
}
.site-footer__cactus {
    margin-left: 10px;
}

/* =========================================================
   6. RESPONSIVE
   La version desktop utilise les toiles 1920px mises à
   l'échelle (--ps). La déclinaison mobile dédiée sera
   construite dans une passe séparée.
   ========================================================= */

/* le contre-zoom mobile doit composer avec l'animation reveal
   (sinon .reveal.is-visible { transform:none } l'écrase) */
.pm-fix.reveal {
    transform: translateY(26px) scale(calc(1 / var(--sm, 1)));
}
.pm-fix.reveal.is-visible,
.pm-fix {
    transform: scale(calc(1 / var(--sm, 1)));
}
.pm-fix-center.reveal {
    transform: translate(-50%, 26px) scale(calc(1 / var(--sm, 1)));
}
.pm-fix-center.reveal.is-visible,
.pm-fix-center {
    transform: translateX(-50%) scale(calc(1 / var(--sm, 1)));
}

/* groupes mobiles (pill + Info attachée) : un seul ancrage, écarts figés */
.pm-group {
    position: absolute;
    z-index: 52;
}
.pm-group > * {
    position: absolute;
}

/* =========================================================
   CARTE « QUI NOUS SOMMES » EN FLUX (desktop)
   Sortie de la toile zoomée : en tant que section normale,
   elle pousse le footer quelle que soit sa hauteur réelle.
   Remontée sur la bande lavande : la carte était à y=10630
   dans la toile de 11471 -> marge négative de 841px x échelle.
   ========================================================= */
.qns-flow {
    position: relative;
    z-index: 5;
    margin-top: calc(var(--s, 1) * -841px);
    min-height: calc(var(--s, 1) * 841px); /* jamais plus court que la fin de la toile */
    box-sizing: border-box;
    padding-bottom: calc(var(--s, 1) * 147px); /* respiration maquette avant le footer */
    background: linear-gradient(45deg, #e3ecf7, #d8e8f7);
}
.qns-flow__sizer {
    /* réserve la hauteur réelle de la carte (694px de maquette x palier de texte) */
    height: calc(694px * var(--fixk, 1));
}
.qns-flow__scale {
    position: relative;
    left: 50%;
    width: 1280px;
    transform: translateX(-50%) scale(var(--fixk, 1));
    transform-origin: top center;
}
/* neutralise l'ancrage absolu hérité de la toile */
.qns-flow .pill {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    display: block;
}
.qns-flow .pf.x-a9f3ae {
    position: relative;
    left: auto;
    top: auto;
    margin: 0 auto;
}

/* =========================================================
   POP-UP DUO (Echo T1) — deux cartes côte à côte comme la maquette
   ========================================================= */
.cmodal__duo {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    justify-content: center;
    width: min(1280px, 96%);
}
.cmodal__duo .cmodal__card--info { flex: 0 1 560px; width: auto; }
.cmodal__duo .cmodal__card--wide { flex: 0 1 980px; width: auto; }
@media (max-width: 900px) {
    .cmodal__duo {
        flex-direction: column;
        align-items: center;
        max-height: 92vh;
        max-height: 92dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .cmodal__duo .cmodal__card { max-height: none; overflow: visible; flex: 0 0 auto; width: 100%; }
    .cmodal__duo .cmodal__scroll { overflow: visible; }
}

/* pills magenta en bas des cartes blanches (déclencheurs d'Info, maquette) */
/* pills magenta : colonne de gauche, sous le texte et le bouton jaune */
.cm-pillrow {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 20px;
}
.cm-pill-open {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--c-pink);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    padding: 10px 12px 10px 22px;
    border-radius: 999px;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.cm-pill-open:hover { transform: translateY(-2px); filter: brightness(1.05); }
.cm-pill-open > svg { width: 22px; height: 22px; }
.cm-pill-open i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: #fff;
    color: var(--c-pink);
    border-radius: 50%;
}
.cm-pill-open i svg { width: 18px; height: 18px; }

/* blocs des box info : texte à gauche, bouton « + » rond à droite */
.cm-bloc {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}
.cm-bloc:last-child {
    margin-bottom: 0;
}
.cm-bloc__txt {
    flex: 1;
    min-width: 0;
}
.cm-bloc__txt > h3 {
    margin-top: 0;
}
.cm-bloc__txt > *:last-child {
    margin-bottom: 0;
}
.cm-bloc__plus {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--c-pink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cm-bloc__plus:hover {
    /* transform: scale(1.12); */
    color: #c84993;
}
.cm-bloc__plus svg {
    width: 22px;
    height: 22px;
}
.cmodal__card--white .cm-bloc__plus,
.cmodal__card--blue .cm-bloc__plus {
    background: #4a4a4a;
    color: #ffffff;
}
@media (max-width: 768px) {
    .cm-bloc {
        gap: 14px;
    }
    .cm-bloc__plus {
        width: 40px;
        height: 40px;
    }
    .cm-bloc__plus svg {
        width: 18px;
        height: 18px;
    }
}

/* pop-up « avec pill » (Echo T3) : texte sur 2 colonnes, bouton Info à droite */
.cm-cols2--with-pill > .cm-rich {
    grid-column: 1 / 3;
    column-count: 2;
    column-gap: 44px;
}
.cm-cols2--with-pill > .cm-rich > * {
    break-inside: avoid;
}
.cm-cols2--with-pill > .cm-mpill {
    align-self: start;
    justify-self: start;   /* ne s'étire pas sur toute la largeur (mobile) */
    width: fit-content;
    max-width: 100%;
    margin-bottom: 20px;
}
@media (max-width: 1100px) {
    .cm-cols2--with-pill > .cm-rich {
        grid-column: auto;
        column-count: 1;
    }
}

/* colonne de boutons jaunes sous le texte d'une pop-up */
.cm-btns {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 22px;
}
.cm-btns .cm-btn-y {
    text-align: left;
}

/* Suivi bébé : texte sur 2 colonnes, bouton Info aligné à droite */
#m-suivi-bebe .cm-rich {
    column-count: 2;
    column-gap: 44px;
}
#m-suivi-bebe .cm-rich > * {
    break-inside: avoid;
}
#m-suivi-bebe .cm-pillrow {
    justify-content: flex-end;
}
@media (max-width: 1100px) {
    #m-suivi-bebe .cm-rich {
        column-count: 1;
    }
    #m-suivi-bebe .cm-pillrow {
        justify-content: flex-start;
    }
}

/* =========================================================
   POP-UPS 2 COLONNES : défilement indépendant par colonne
   (desktop uniquement ; en dessous de 1100px tout se replie
   en une colonne et la carte défile normalement)
   ========================================================= */
@media (min-width: 1101px) {
    .cmodal--split .cmodal__scroll {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .cmodal--split .cmodal__scroll > .cm-main {
        flex: 1 1 auto;
        min-height: 0;
        align-items: stretch;
    }
    /* chaque colonne devient sa propre zone de défilement */
    .cmodal--split .cm-main > * {
        overflow-y: auto;
        overscroll-behavior: contain;
        min-height: 0;
        max-height: 100%;
        padding-right: 12px;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 20, 60, 0.28) transparent;
    }
    .cmodal--split .cmodal__card--blue .cm-main > *,
    .cmodal--split .cmodal__card--info .cm-main > * {
        scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
    }
    .cmodal--split .cm-main > *::-webkit-scrollbar {
        width: 8px;
    }
    .cmodal--split .cm-main > *::-webkit-scrollbar-thumb {
        background: rgba(0, 20, 60, 0.28);
        border-radius: 99px;
    }
    .cmodal--split .cmodal__card--blue .cm-main > *::-webkit-scrollbar-thumb,
    .cmodal--split .cmodal__card--info .cm-main > *::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.45);
    }
}

/* numéros de téléphone cliquables dans les cartes contact */
.ctel {
    color: inherit;
    text-decoration: none;
    /* border-bottom: 1px solid currentColor; */
    /* border-bottom-color: rgba(74, 74, 74, 0.35); */
}
.ctel:hover {
    border-bottom-color: currentColor;
    color:#ae3c80;
}
.cmodal__card--blue .ctel,
.cmodal__card--info .ctel {
    border-bottom-color: rgba(255, 255, 255, 0.5);
}
