/* ==========================================================
   Mihoz — landing page
   Même design, espacements et tailles harmonisés
   ========================================================== */

:root {
    --black: #40382F;
    --bg: #f2ebdc;

    /* Échelle d'espacement (base 8px) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;

    --content-width: 100%;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--bg);
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, p {
    margin: 0;
}

/* ---------- STRUCTURE ---------- */

.contain {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4) var(--space-6);
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.zone_top,
.zone_text_intro,
.explain {
    width: 100%;
    max-width: var(--content-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Le bloc central prend l'espace disponible, donc plus de hauteurs figées en vh */
.zone_text_intro {
    flex: 1;
}

/* ---------- TOP ---------- */

.zone_top h1 {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--black);
}

.zone_top p {
    margin-top: var(--space-2);
    max-width: 260px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.75;
}

/* ---------- INTRO ---------- */

.zone_text_intro img {
    display: block;
    width: 56px;
    height: auto;
    margin-bottom: var(--space-3);
}

.zone_text_intro p {
    font-family: 'Roboto Slab', serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: var(--black);
    opacity: 0.8;
}

/* ---------- EXPLAIN ---------- */

.explain h2 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--black);
}

.explain p {
    margin: var(--space-3) 0 var(--space-5);
    max-width: 280px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--black);
    opacity: 0.85;
}

.explain a {
    display: inline-block;
    text-decoration: none;
    border-radius: var(--radius);
}

.explain button {
    height: 52px;
    min-width: 180px;
    padding: 0 var(--space-5);
    background-color: var(--black);
    color: var(--bg);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(64, 56, 47, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.explain button:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(64, 56, 47, 0.22);
}

.explain button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 8px rgba(64, 56, 47, 0.18);
}

.explain a:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 4px;
}

/* ---------- DESKTOP ---------- */

@media (min-width: 768px) {
    :root {
        --content-width: 480px;
    }

    .contain {
        padding: var(--space-7) var(--space-4);
        gap: var(--space-7);
    }

    .zone_top h1 {
        font-size: 38px;
    }

    .zone_top p {
        margin-top: var(--space-3);
        max-width: none;
        font-size: 18px;
    }

    .zone_text_intro img {
        width: 72px;
        margin-bottom: var(--space-4);
    }

    .zone_text_intro p {
        font-size: 21px;
    }

    .explain h2 {
        font-size: 15px;
    }

    .explain p {
        margin: var(--space-3) 0 var(--space-5);
        max-width: 380px;
        font-size: 18px;
    }

    .explain button {
        height: 56px;
        min-width: 200px;
        font-size: 17px;
    }
}

/* Réduit les animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
    .explain button {
        transition: none;
    }
}