/* ============================================================
   Maï Natura — page d'accueil
   ------------------------------------------------------------
   S'appuie sur css/mn-pages.css (thème des soins .mn--soin,
   motif du galet .mn--galet). Textes et images inchangés :
   seule la mise en page est reprise.
   Sélecteurs toujours sous .mn (spécificité ≥ 0,2,0).
   ============================================================ */

.mn.mn-home {
    --mn-gap-section: clamp(80px, 9vw, 144px);
    --mn-accent-ink: #b84c35;     /* le saumon, assombri pour être lisible en texte */
    --mn-galet: 58% 42% 52% 48% / 46% 54% 46% 54%;
}

/* ---------- 1. Hero : les trois photos en fondu ---------- */

.mn .mn-home-hero__orn{
    width: 169px;
    height: auto;
    margin-bottom: 24px;
}

.mn .mn-home-hero__title{
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mn .mn-home-hero__script{
    font-family: "Mr De Haviland", cursive;
    font-weight: 400;
    font-size: clamp(50px, 5vw, 76px);
    line-height: 1;
    letter-spacing: 0;
    color: var(--mn-accent-ink);
    padding-left: .08em;          /* la capitale cursive déborde à gauche */
}
.mn .mn-home-hero__main{
    font-size: clamp(40px, 4.6vw, 68px);
    line-height: 1.04;
    white-space: nowrap;
}

.mn .mn-home-slides{
    margin-top: 28px;
    display: grid;
    gap: 22px;
    max-width: 40ch;
}
.mn .mn-home-slide .mn-hero__lead{ margin-top: 0; color: var(--mn-text); }
.mn .mn-home-slide__title{
    margin-bottom: 8px;
    font-family: "Raleway", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--mn-ink);
}
.mn .mn-home-slide__title span{ color: var(--mn-deep); margin-left: .35em; }

/* Avec le script : les trois textes occupent la même case et se relaient */
.mn .mn-home-hero.is-live .mn-home-slides{ gap: 0; }
.mn .mn-home-hero.is-live .mn-home-slide{
    grid-area: 1 / 1;
    align-self: start;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s var(--mn-ease), visibility 0s linear .9s;
}
.mn .mn-home-hero.is-live .mn-home-slide.is-active{
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s var(--mn-ease) .35s, visibility 0s linear 0s;
}

.mn .mn-home-hero__foot{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 36px;
}

/* Pastilles : petits galets, cible tactile de 44px */
.mn .mn-home-dots{ display: flex; gap: 2px; }
.mn .mn-home-dots[hidden]{ display: none; }
.mn .mn-home-dot{
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}
.mn .mn-home-dot::before{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 13px;
    transform: translate(-50%, -50%);
    border-radius: var(--mn-galet);
    background: #b9d8d4;
    transition: background-color .3s var(--mn-ease), width .3s var(--mn-ease);
}
.mn .mn-home-dot:hover::before{ background: var(--mn-motif); }
.mn .mn-home-dot.is-active::before{ background: var(--mn-deep); width: 26px; }
.mn .mn-home-dot:focus-visible{ outline: 2px solid var(--mn-brown); outline-offset: -4px; }

.mn .mn-home-hero__figure{ position: relative; }
.mn .mn-home-hero__figure > .mn-home-photo{
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.8s var(--mn-ease);
}
.mn .mn-home-hero__figure > .mn-home-photo.is-active{ opacity: 1; }
.mn .mn-home-photo[data-slide="1"]{ object-position: 38% 50%; }
.mn .mn-home-photo[data-slide="2"]{ object-position: 50% 62%; }

/* ---------- 2. Maï Natura ---------- */

.mn .mn-home-intro__inner{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.mn .mn-home-intro__name{
    font-family: "Mr De Haviland", cursive;
    font-weight: 400;
    font-size: clamp(60px, 6.4vw, 92px);
    line-height: 1;
    letter-spacing: 0;
    color: var(--mn-accent-ink);
}
.mn .mn-home-intro__logo{
    width: clamp(180px, 18vw, 248px);
    margin: 12px auto 36px;
}

/* ---------- 3. Les soins, à côté de Maïté ---------- */

.mn .mn-home-soins__grid{
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(20px, 3vw, 40px);
    row-gap: 48px;
    align-items: start;
}
.mn .mn-home-soins__figure{
    grid-column: 1 / span 4;
    position: sticky;
    top: 96px;
    aspect-ratio: 3 / 4;
    max-height: calc(100svh - 140px);
}
.mn .mn-home-soins__figure > img{ object-position: 76% 34%; }

.mn .mn-home-soins__list{
    grid-column: 5 / span 8;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.mn .mn-home-soin{ display: flex; }
.mn .mn-home-soin > div{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 30px 26px;
    background: #fff;
}
.mn .mn-home-soin__picto{
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 56px;
    border-radius: var(--mn-galet);
    background: var(--mn-field);
    color: var(--mn-deep);
    font-size: 30px;
    line-height: 1;
    text-decoration: none;
    transition: background-color .3s var(--mn-ease), color .3s var(--mn-ease);
}
.mn .mn-home-soin__picto span::before{ margin: 0; width: auto; }
.mn .mn-home-soin:hover .mn-home-soin__picto{ background: var(--mn-motif); color: #fff; }

.mn .mn-home-soin__title{
    margin-top: 22px;
    font-size: clamp(20px, 1.6vw, 23px);
}
.mn .mn-home-soin__title a{ text-decoration: none; color: var(--mn-ink); }
.mn .mn-home-soin__title a:hover{ color: var(--mn-accent-ink); }

.mn .mn-home-soin__tarif{
    margin-top: 8px;
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--mn-deep);
}
.mn .mn-home-soin__sep{ margin: 0 .5em; }

.mn .mn-home-soin__desc{
    margin-top: 14px;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.65;
    flex: 1;
}

.mn .mn-home-soin__more{
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--mn-ink);
    text-decoration: underline;
    text-decoration-color: var(--mn-salmon);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    transition: color .2s var(--mn-ease);
}
.mn .mn-home-soin__more:hover,
.mn .mn-home-soin__more:focus-visible{ color: var(--mn-accent-ink); }

/* ---------- 4. Praticienne certifiée, marques partenaires ---------- */

.mn .mn-home-partners__title{
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: 1.2;
    max-width: 32ch;
}
.mn .mn-home-partners__logos{
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
/* Six logos entiers, du bord gauche au bord droit du texte */
.mn .mn-home-partners__logos > li{ flex: 0 1 180px; min-width: 0; }
.mn .mn-home-partners__logos img{ width: 100%; }

/* ---------- 5. Choisir mon massage ---------- */

.mn .mn-home-choose__visual{
    position: relative;
    padding-bottom: 14%;
}
.mn .mn-home-choose__figure{
    width: 86%;
    aspect-ratio: 3 / 2;
}
.mn .mn-home-choose__figure > img{ object-position: 60% 50%; }

.mn .mn-home-choose__stone{
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48%;
    aspect-ratio: 6 / 5;
    display: flex;
    align-items: center;
    padding: 0 9%;
    overflow: hidden;
    border-radius: var(--mn-galet);
    background: var(--mn-deep);
    color: #fff;
    transition: background-color .3s var(--mn-ease);
}
.mn .mn-home-choose__stone:hover{ background: #2a625c; }
.mn .mn-home-choose__letter{
    position: absolute;
    right: 12%;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-size: clamp(120px, 13vw, 200px);
    line-height: 1;
    color: rgba(255, 255, 255, .1);
    pointer-events: none;
}
.mn .mn-home-choose__name{
    position: static;
    max-width: 7.5em;             /* « Foot / Sensation » sur deux lignes, à gauche du F */
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.15;
    color: #fff;
}
.mn .mn-home-choose__name a{ color: #fff; text-decoration: none; }
/* Toute la pierre est cliquable */
.mn .mn-home-choose__name a::after{ content: ""; position: absolute; inset: 0; }
.mn .mn-home-choose__name a:focus-visible{ outline: none; }
.mn .mn-home-choose__stone:focus-within{ outline: 2px solid var(--mn-brown); outline-offset: 4px; }

/* ---------- 6. Prenons rendez-vous ---------- */

.mn .mn-home-closing__grid{
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(20px, 3vw, 40px);
    row-gap: 24px;
    align-items: center;
    padding-top: clamp(72px, 8vw, 128px);
    padding-bottom: clamp(72px, 8vw, 128px);
}
.mn .mn-home-closing__head{ grid-column: 1 / span 6; }
.mn .mn-home-closing__text{ grid-column: 8 / span 5; }
.mn .mn-home-closing__text p{ font-size: 18px; line-height: 1.7; color: var(--mn-text); }
.mn .mn-home-closing__text .mn-actions{ margin-top: 28px; }

/* Bouton au trait : le texte reste brun au survol (le blanc sur saumon ne se lit pas) */
.mn.mn-home .mn-btn--ghost:hover,
.mn.mn-home .mn-btn--ghost:focus-visible{ color: var(--mn-brown) !important; }

/* ---------- 7. Tablette ---------- */

@media (max-width: 1100px) {
    .mn .mn-home-soins__figure{
        grid-column: 1 / -1;
        position: relative;
        top: auto;
        aspect-ratio: 16 / 9;
        max-height: 480px;
    }
    .mn .mn-home-soins__figure > img{ object-position: 78% 30%; }
    .mn .mn-home-soins__list{ grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
    .mn .mn-home-slides{ max-width: 52ch; }
    .mn .mn-home-choose__visual{ max-width: 720px; }
    .mn .mn-home-closing__head{ grid-column: 1 / span 6; }
    .mn .mn-home-closing__text{ grid-column: 7 / span 6; }
}

@media (max-width: 860px) {
    .mn .mn-home-partners__logos{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
    .mn .mn-home-partners__logos img{ max-width: 170px; margin: 0 auto; }
    .mn .mn-home-partners__logos > li:nth-child(3n+1) img{ margin-left: 0; }
    .mn .mn-home-partners__logos > li:nth-child(3n) img{ margin-right: 0; }
}

/* ---------- 8. Téléphone ---------- */

@media (max-width: 700px) {
    .mn .mn-home-hero__orn{ margin-bottom: 18px; }
    .mn .mn-home-hero__script{ font-size: 50px; }
    .mn .mn-home-hero__main{ font-size: clamp(30px, 9vw, 40px); white-space: normal; }
    .mn .mn-home-hero__foot{ margin-top: 28px; gap: 12px 20px; }
    .mn .mn-home-slide__title{ font-size: 18px; }

    .mn .mn-home-intro__logo{ margin-bottom: 28px; }
    .mn .mn-home-intro .mn-btn{ width: 100%; }

    .mn .mn-home-soins__figure{ aspect-ratio: 4 / 3; }
    .mn .mn-home-soins__list{ grid-template-columns: 1fr; }
    .mn .mn-home-soin > div{ padding: 28px 22px 22px; }

    .mn .mn-home-partners__logos{ margin-top: 28px; gap: 16px 8px; }

    .mn .mn-home-choose__visual{ padding-bottom: 0; }
    .mn .mn-home-choose__figure{ width: 100%; }
    .mn .mn-home-choose__stone{
        position: relative;
        width: 78%;
        margin: -16% 0 0 auto;
    }
    .mn .mn-home-choose__letter{ font-size: 140px; }
    .mn .mn-home-closing__head,
    .mn .mn-home-closing__text{ grid-column: 1 / -1; }
    .mn .mn-home-choose .mn-btn{ width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .mn .mn-home-hero.is-live .mn-home-slide,
    .mn .mn-home-hero__figure > .mn-home-photo{ transition: none; }
}

/* La capitale cursive du titre de fin déborde à gauche : on la ramène sur la marge */
.mn .mn-home-closing__head .mn-closing__title{ padding-left: .08em; }
