/* ============================================================
   Maï Natura — page /ikigai (coaching Ikigai)
   ------------------------------------------------------------
   Chargée après mn-pages.css. Motif : le cercle, celui des quatre
   cercles du schéma Ikigai, à trois échelles :
     - le schéma lui-même, en grand (section 3) ;
     - le masque rond des photos ;
     - la puce ronde des listes, aux quatre couleurs.
   Toutes les règles sont écrites « .mn .x » (ou « .mn.mn--ikigai »)
   pour passer devant le reset de .mn et les styles du thème.
   ============================================================ */

/* ---------- Titre : tient sur deux lignes à toutes les largeurs ---------- */
.mn.mn--ikigai h1 { font-size: clamp(40px, 4.6vw, 66px); }

/* ---------- 1. Hero : la photo ronde, un second cercle la chevauche ---------- */
.mn .ik-hero-art {
    grid-column: 8 / span 5;
    position: relative;
    align-self: center;
}
.mn .ik-hero-art .mn-hero__figure {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
}
.mn .ik-hero-art .mn-hero__figure > img { object-position: 50% 30%; }
.mn .ik-hero-disc {
    position: absolute;
    z-index: 1;
    left: -14%;
    bottom: -4%;
    width: 44%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--ik-orange);
    mix-blend-mode: multiply;
    opacity: .82;
    pointer-events: none;
}
.mn-js .mn .ik-hero-disc { animation: ik-roll 1.4s var(--mn-ease) .35s both; }
@keyframes ik-roll {
    from { transform: translate(40%, -20%) scale(.6); opacity: 0; }
    to   { transform: none; opacity: .82; }
}

.mn .ik-facts dd small {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    margin-left: 4px;
    color: var(--mn-text);
}

/* ---------- 2. Les questions : une puce ronde par couleur ---------- */
.mn .ik-intro .mn-split__head { grid-column: 1 / span 4; }
.mn .ik-intro .mn-split__body { grid-column: 6 / span 7; }
.mn .ik-intro__figure {
    margin-top: 48px;
    width: min(100%, 340px);
    aspect-ratio: 1 / 1;
}
.mn .ik-questions > li {
    position: relative;
    padding-left: 1.5em;
    font-size: clamp(22px, 2.3vw, 32px);
}
.mn .ik-questions > li + li { margin-top: 36px; }
.mn .ik-questions > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .34em;
    width: .7em;
    height: .7em;
    border-radius: 50%;
    background: var(--ik-pink);
}
.mn .ik-questions > li:nth-child(2)::before { background: var(--ik-orange); }
.mn .ik-questions > li:nth-child(3)::before { background: var(--ik-blue); }
.mn .ik-questions .mn-statement { font-size: inherit; max-width: 34ch; }
.mn .ik-answer {
    margin-top: 48px;
    max-width: 46ch;
    padding-left: calc(1.5 * clamp(22px, 2.3vw, 32px));
}

/* ---------- 3. Le schéma Ikigai ---------- */
.mn .ik-schema {
    margin-top: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr);
    column-gap: clamp(20px, 3vw, 48px);
    align-items: stretch;
}
.mn .ik-rings {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    isolation: isolate;
}
.mn .ik-ring {
    opacity: .8;
    mix-blend-mode: multiply;
    cursor: pointer;
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity .35s var(--mn-ease), transform .35s var(--mn-ease);
    outline: none;
}
.mn .ik-ring--rose      { fill: var(--ik-pink); }
.mn .ik-ring--orange    { fill: var(--ik-orange); }
.mn .ik-ring--bleu      { fill: var(--ik-blue); }
.mn .ik-ring--turquoise { fill: var(--ik-teal); }
.mn .ik-ring:focus-visible { stroke: var(--mn-deep); stroke-width: 4; }

.mn .ik-core circle { fill: #fff; }
.mn .ik-core text {
    font-family: "Raleway", sans-serif;
    font-size: 19px;
    font-weight: 600;
    fill: var(--mn-deep);
    letter-spacing: -0.01em;
}

/* Un cercle mis en avant : les trois autres s'estompent */
.mn .ik-schema[data-active] .ik-ring { opacity: .14; }
.mn .ik-schema[data-active="rose"] .ik-ring--rose,
.mn .ik-schema[data-active="orange"] .ik-ring--orange,
.mn .ik-schema[data-active="bleu"] .ik-ring--bleu,
.mn .ik-schema[data-active="turquoise"] .ik-ring--turquoise { opacity: .92; transform: scale(1.04); }

/* Les mots, avec la puce ronde de leur cercle */
.mn .ik-words {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 6% 0;
    font-family: "Raleway", sans-serif;
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 600;
    color: var(--mn-ink);
    letter-spacing: -0.01em;
}
.mn .ik-words li {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: default;
    transition: opacity .3s var(--mn-ease);
}
.mn .ik-words--left li { justify-content: flex-end; }
.mn .ik-words--left li::after,
.mn .ik-words--right li::before {
    content: "";
    flex: 0 0 auto;
    width: .62em;
    height: .62em;
    border-radius: 50%;
    background: var(--dot, var(--ik-pink));
    transition: transform .3s var(--mn-ease);
}
.mn .ik-words li[data-ring="rose"]      { --dot: var(--ik-pink); }
.mn .ik-words li[data-ring="orange"]    { --dot: var(--ik-orange); }
.mn .ik-words li[data-ring="bleu"]      { --dot: var(--ik-blue); }
.mn .ik-words li[data-ring="turquoise"] { --dot: var(--ik-teal); }
.mn .ik-schema[data-active] .ik-words li { opacity: .3; }
.mn .ik-schema[data-active] .ik-words li.is-on { opacity: 1; }
.mn .ik-words li.is-on::after,
.mn .ik-words li.is-on::before { transform: scale(1.5); }

/* Les cercles se rejoignent à l'entrée du schéma */
.mn-js .mn .ik-schema[data-reveal] .ik-ring { transition: opacity .35s var(--mn-ease), transform .9s var(--mn-ease); }
.mn-js .mn .ik-schema[data-reveal]:not(.is-in) .ik-ring--rose      { transform: translateY(-14%); }
.mn-js .mn .ik-schema[data-reveal]:not(.is-in) .ik-ring--orange    { transform: translateX(-14%); }
.mn-js .mn .ik-schema[data-reveal]:not(.is-in) .ik-ring--bleu      { transform: translateX(14%); }
.mn-js .mn .ik-schema[data-reveal]:not(.is-in) .ik-ring--turquoise { transform: translateY(14%); }

/* ---------- 4. Étapes : photo ronde ---------- */
.mn.mn--ikigai .mn-step__body img {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

/* ---------- 5. Modalités, sur le bleu profond ---------- */
.mn .ik-modal__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(20px, 3vw, 40px);
    row-gap: 48px;
    align-items: center;
}
.mn .ik-modal__text { grid-column: 1 / span 7; }
.mn .ik-modal__figure { grid-column: 9 / span 4; aspect-ratio: 1 / 1; }
.mn .ik-modal__figure img { object-position: 50% 50%; }
.mn .ik-modal__list { margin-top: 40px; font-size: 18px; color: #f6ece6; max-width: 54ch; }
.mn .ik-modal__list > li + li { margin-top: 22px; }
.mn .ik-modal__list > li::before { top: .38em; }
.mn .ik-modal__list > li:nth-child(2)::before { background: var(--ik-orange); }
.mn .ik-modal__list > li:nth-child(3)::before { background: var(--ik-blue); }
.mn .ik-modal__list > li:nth-child(4)::before { background: var(--ik-teal); }

/* La fin de page suit directement le bandeau bleu : pas de blanc entre les deux */
.mn .ik-modal + .mn-closing { margin-top: 0; }

/* ---------- 6. Fin : la photo ronde ---------- */
.mn.mn--ikigai .mn-closing__figure {
    grid-column: 1 / span 5;
    align-self: center;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 72px 0;
}
.mn.mn--ikigai .mn-closing__text { grid-column: 7 / span 6; }

@media (prefers-reduced-motion: reduce) {
    .mn-js .mn .ik-schema[data-reveal]:not(.is-in) .ik-ring { transform: none; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1024px) {
    .mn .ik-hero-art { grid-column: 3 / span 8; }

    .mn .ik-intro .mn-split__head,
    .mn .ik-intro .mn-split__body { grid-column: 1 / -1; }
    .mn .ik-intro__figure { display: none; }

    .mn .ik-modal__text { grid-column: 1 / span 7; }
    .mn .ik-modal__figure { grid-column: 8 / span 5; }
    .mn.mn--ikigai .mn-closing__figure { grid-column: 3 / span 8; margin: 0 0 64px; }
    .mn.mn--ikigai .mn-closing__text { grid-column: 1 / -1; }
}

/* Schéma : sous 900px, les cercles en entier, les mots en deux colonnes dessous */
@media (max-width: 900px) {
    .mn .ik-schema {
        margin-top: 40px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        row-gap: 28px;
        column-gap: 24px;
    }
    .mn .ik-rings { grid-column: 1 / -1; grid-row: 1; max-width: 460px; margin: 0 auto; }
    .mn .ik-words { padding: 0; gap: 14px; font-size: 19px; }
    .mn .ik-words--left li { justify-content: flex-end; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 700px) {
    .mn.mn--ikigai h1 { font-size: clamp(32px, 9vw, 40px); }
    .mn .ik-hero-art { grid-column: 1 / -1; padding: 0 6%; }
    .mn .ik-hero-disc { left: 0; }

    .mn .ik-questions > li { font-size: 20px; }
    .mn .ik-questions > li + li { margin-top: 24px; }
    .mn .ik-answer { margin-top: 32px; padding-left: 0; }

    .mn .ik-words { font-size: 18px; gap: 12px; }

    .mn .ik-modal__text,
    .mn .ik-modal__figure { grid-column: 1 / -1; }
    .mn .ik-modal__figure { width: 78%; justify-self: center; }
    .mn .ik-modal__list { font-size: 16.5px; }

    .mn.mn--ikigai .mn-closing__figure { grid-column: 1 / -1; margin: 0 6% 48px; }
}

/* Onglets verticaux des étapes : l'apostrophe de « L’ikigai » tourne avec le mot */
@media (min-width: 1025px) {
    .mn.mn--ikigai .mn-steps--js .mn-step:not(.is-open) .mn-step__tab { text-orientation: sideways; }
}

/* Titres équilibrés : pas de mot seul en seconde ligne */
.mn.mn--ikigai h1,
.mn.mn--ikigai h2 { text-wrap: balance; }
