/* ============================================================
   Maï Natura — page /rebozo
   ------------------------------------------------------------
   Complète css/mn-pages.css (chargée avant). Motif de la page :
   la pointe à franges du châle (.mn-shape--chevron), reprise en
   masque des images, en puce, et une fois en grand aplat magenta
   (la section « Un rituel de passage », dont le bas se termine
   en pointe comme le châle).
   ============================================================ */

/* ---------- Origine : la peinture à gauche, le texte à droite ---------- */

.mn .rb-origin__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(20px, 3vw, 40px);
    row-gap: 48px;
    align-items: center;
}
.mn .rb-origin__figure { grid-column: 1 / span 5; }
.mn .rb-origin__frame { aspect-ratio: 1000 / 1289; }
.mn .rb-origin__frame > img { object-position: 50% 30%; }
.mn .rb-origin__text { grid-column: 7 / span 6; }
.mn .rb-origin__text .mn-lead { margin-top: 28px; max-width: 40ch; }
.mn .rb-origin__text p:not(.mn-lead) { max-width: 58ch; }

/* ---------- Un rituel de passage : le grand aplat ---------- */

.mn.mn--rebozo { --rb-tip: clamp(48px, 7vw, 112px); }
.mn .rb-passage {
    position: relative;
    z-index: 1;
    margin-top: var(--mn-gap-section);
    padding-top: clamp(80px, 9vw, 140px);
    padding-bottom: calc(clamp(72px, 8vw, 120px) + var(--rb-tip));
    background: var(--mn-motif);
    color: var(--mn-motif-ink);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--rb-tip)), 50% 100%, 0 calc(100% - var(--rb-tip)));
}
.mn .rb-passage h2,
.mn .rb-passage .mn-statement { color: var(--mn-motif-ink); }
.mn .rb-passage__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(20px, 3vw, 40px);
    row-gap: 32px;
    align-items: end;
}
.mn .rb-passage__head { grid-column: 1 / span 7; }
.mn .rb-passage__statement {
    margin-top: 28px;
    font-size: clamp(28px, 3.2vw, 46px);
    max-width: 20ch;
}
.mn .rb-passage__text { grid-column: 9 / span 4; }

.mn .rb-words {
    display: flex;
    flex-wrap: wrap;
    gap: 6px clamp(28px, 3vw, 48px);
    margin-top: clamp(56px, 7vw, 96px);
}
.mn .rb-words > li {
    display: inline-flex;
    align-items: center;
    gap: .28em;
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-size: clamp(32px, 4.6vw, 68px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--mn-motif-ink);
}
.mn .rb-words > li::before {
    content: "";
    flex: 0 0 auto;
    width: .36em;
    height: .42em;
    background: var(--mn-field);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}

/* ---------- Le mot de Maïté ---------- */

/* Le crème remonte sous la pointe du grand aplat */
.mn .rb-note {
    margin-top: calc(-1 * var(--rb-tip));
    padding-top: calc(var(--rb-tip) + clamp(64px, 7vw, 112px));
    padding-bottom: clamp(72px, 8vw, 128px);
}
.mn .rb-note__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(20px, 3vw, 40px);
    row-gap: 48px;
    align-items: center;
}
.mn .rb-note__text { grid-column: 1 / span 7; }
.mn .rb-note__quote { margin-top: 32px; max-width: 30ch; }
.mn .rb-note__body { margin-top: 28px; max-width: 54ch; }
.mn .rb-note__sign {
    margin-top: 12px;
    font-family: "Mr De Haviland", cursive;
    font-size: 52px;
    line-height: 1.1;
    padding-left: .2em;
    color: var(--mn-ink);
}
.mn .rb-note__figure { grid-column: 9 / span 4; aspect-ratio: 3 / 4; }
.mn .rb-note__figure > img { object-position: 74% 30%; }

/* ---------- Poser l'intention ---------- */

.mn .rb-intent__head { max-width: 760px; }
.mn .rb-intent__head .mn-lead { margin-top: 24px; }
.mn .rb-intent__head p:not(.mn-lead) { max-width: 62ch; }

.mn .rb-intent__tool { margin-top: clamp(48px, 5vw, 72px); }
.mn .rb-intent__ask { margin-bottom: 24px; }

/* Sans JS : une liste lisible, sur deux colonnes */
.mn .rb-moments { columns: 2; column-gap: 40px; max-width: 720px; }
.mn .rb-moments > li { break-inside: avoid; }

/* Avec JS : des boutons à choisir */
.mn .rb-moments--js {
    columns: auto;
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.mn .rb-moments--js > li { padding-left: 0; margin-top: 0; }
.mn .rb-moments--js > li::before { content: none; }

.mn .rb-moment {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    margin: 0;
    padding: 12px 22px;
    border: 0;
    border-radius: 0;
    background: var(--mn-field);
    color: var(--mn-ink);
    font-family: "Raleway", sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    cursor: pointer;
    transition: background-color .25s var(--mn-ease), color .25s var(--mn-ease), transform .2s var(--mn-ease);
}
.mn .rb-moment::before {
    content: "";
    flex: 0 0 auto;
    width: 11px;
    height: 13px;
    background: var(--mn-motif);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
    transition: background-color .25s var(--mn-ease);
}
.mn .rb-moment:hover { background: #eadfc4; }
.mn .rb-moment:active { transform: translateY(1px); }
.mn .rb-moment[aria-pressed="true"] { background: var(--mn-motif); color: #fff; }
.mn .rb-moment[aria-pressed="true"]::before { background: #fff; }

.mn .rb-intent__send { margin-top: 36px; }
.mn .rb-intent__preview {
    max-width: 52ch;
    font-style: italic;
    font-size: 19px;
    line-height: 1.55;
    color: var(--mn-ink);
    margin-bottom: 24px;
}
.mn .rb-intent__send .mn-actions { margin-top: 0; }

/* ---------- À 4 mains ---------- */

.mn .rb-duo { margin-top: var(--mn-gap-section); }
.mn .rb-duo .mn-lead { color: #fff; }
.mn .rb-duo .mn-split__body p:not(.mn-lead) { max-width: 52ch; }
.mn .rb-duo__link { color: #fff; overflow-wrap: anywhere; }
.mn .rb-duo__link:hover,
.mn .rb-duo__link:focus-visible { color: var(--mn-salmon); }
.mn .rb-duo a:focus-visible { outline-color: #fff; }

/* ---------- Fin de page ---------- */

.mn .rb-closing { margin-top: 0; }
.mn .rb-closing .mn-closing__figure > img { object-position: 76% 50%; }

.mn .rb-credits { padding-bottom: 40px; }

/* ---------- Tablette ---------- */

@media (max-width: 1024px) {
    .mn .rb-origin__figure { grid-column: 1 / span 8; }
    .mn .rb-origin__text { grid-column: 1 / -1; }

    .mn .rb-passage__head,
    .mn .rb-passage__text { grid-column: 1 / -1; }
    .mn .rb-passage__text { max-width: 60ch; }

    .mn .rb-note__text { grid-column: 1 / -1; }
    .mn .rb-note__figure { grid-column: 1 / span 7; }
}

/* ---------- Téléphone ---------- */

@media (max-width: 700px) {
    .mn .mn-hero h1 { font-size: clamp(34px, 9.4vw, 44px); }

    .mn .rb-origin__figure,
    .mn .rb-note__figure { grid-column: 1 / -1; }

    .mn .rb-moments { columns: 1; }
    .mn .rb-moments--js { gap: 8px; }
    .mn .rb-moment { min-height: 48px; padding: 10px 16px; font-size: 16px; }

    .mn .rb-intent__preview { font-size: 18px; }
}

/* La citation reste à l'encre pleine, quelle que soit la couleur du thème */
.mn .rb-note__quote,
.mn .rb-note__quote p { color: var(--mn-ink); }
.mn .rb-passage p { color: var(--mn-motif-ink); }
