/* 1. Variables */
:root {
    --fond: #FFF7F9;
    --prune: #6B2A5E;
    --mauve: #8B5A8B;
    --texte: #835D86;
    --lilas: #E9D5FF;
    --creme: #FFF8E6;
}

/* 2. Polices */
@font-face {
    font-family: 'Abril Fatface';
    src: url(../fonts/abril-fatface.woff2) format('woff2'),
        url(../fonts/abril-fatface.ttf) format('truetype');
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: 'Inter';
    src: url(../fonts/inter.woff2) format('woff2'),
        url(../fonts/inter.ttf) format('truetype');
    font-display: swap;
    font-weight: 100 900;
}

@font-face {
    font-family: 'Playfair Display';
    src: url(../fonts/playfair-display.woff2) format('woff2'),
        url(../fonts/playfair-display.ttf) format('truetype');
    font-display: swap;
    font-weight: 400 900;
}

/* 3. Reset */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--fond);
    color: var(--texte);
    font-family: 'Inter', sans-serif;
    font-size: 24px;
}

img {
    display: block;
    max-width: 100%;
}

/* 4. Mise en page */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 10dvh;
    min-height: 64px;
    padding: 0 6%;
}

nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cartes {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 16px;
}

#famille .cartes {
    grid-template-columns:
        repeat(4, 1fr);
}

/* 5. Textes */
.logo {
    font-size: 21px;
    color: var(--prune);
    text-decoration: none;
}

h1 {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    font-size: 108px;
    line-height: 1;
    color: var(--prune);
    margin: 0 0 0 -0.02em;
}

h1 span {
    display: block;
    color: var(--mauve);
}

h2 {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    font-size: 72px;
    color: var(--prune);
    margin: 0 0 24px;
}

nav a {
    font-size: 21px;
    color: var(--prune);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    transition: text-decoration-color 0.2s;
}

nav a:hover,
nav a[aria-current="page"] {
    text-decoration-color: currentColor;
}

.hero-texte p {
    max-width: 390px;
    margin: 16px 0;
    color: var(--prune);
}

.carte h3 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    color: var(--prune);
    margin: 8px 0 4px;
}

#hobbies .carte h3 {
    margin: 0 0 12px;
}

.carte p {
    font-size: 20px;
    line-height: 1.5;
}

/* 6. Sections et bouton */
.hero {
    background-image:
        linear-gradient(to right, rgba(255, 247, 249, 0.85), rgba(255, 247, 249, 0) 55%),
        url(../img/hero-norah.jpg);
    background-size: cover;
    background-position: center;
    min-height: calc(100dvh - max(10dvh, 64px));
    padding: 48px 6%;
}

section {
    padding: 64px 6%;
}

.btn {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    background: var(--lilas);
    font-size: 28px;
    color: var(--prune);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
}

/* 7. Images */
.carte img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
}

/* 8. Page motivation */
.intro h1 {
    font-size: 72px;
}

.intro p {
    margin-top: 8px;
}

.texte h2 {
    font-size: clamp(28px, 4.5vh, 45px);
    font-weight: 400;
    color: var(--mauve);
    margin-bottom: 16px;
}

.texte p {
    font-size: clamp(17px, 3vh, 26px);
    line-height: 1.7;
}

.bloc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 48px;
}

.bloc img {
    width: 100%;
    max-height: 85vh;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.bloc img.img-entiere {
    object-fit: contain;
    background-color: var(--creme);
}

#forces img,
#faiblesses img {
    aspect-ratio: 5 / 4;
}

/* 9. Page parcours */
.texte h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 3.4vh, 34px);
    color: var(--prune);
    margin: clamp(12px, 2.5vh, 32px) 0 6px;
}

.texte strong {
    color: var(--prune);
}

.etape {
    border-left: 3px solid var(--lilas);
    padding-left: 24px;
    margin-bottom: clamp(12px, 2.5vh, 32px);
}

.etape.objectif {
    border-left-color: var(--prune);
}

.texte .etape .date {
    font-size: clamp(14px, 2vh, 18px);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--mauve);
    margin: 0;
}

.etape h3 {
    margin: 2px 0 4px;
}

.etape p {
    margin: 0;
}

.parcours .bloc img {
    aspect-ratio: 4 / 3;
}

.parcours .texte p {
    font-size: clamp(16px, 2.4vh, 22px);
    line-height: 1.6;
}

.suite {
    text-align: center;
}

/* 10. Tablette et téléphone */
@media (max-width: 1100px) {
    body {
        font-size: 20px;
    }

    .logo,
    nav a {
        font-size: 18px;
    }

    nav ul {
        gap: 18px;
    }

    h1 {
        font-size: 84px;
    }

    h2,
    .intro h1 {
        font-size: 56px;
    }

    .carte h3 {
        font-size: 28px;
    }

    .carte p {
        font-size: 18px;
    }

    #famille .cartes {
        grid-template-columns: repeat(2, 1fr);
    }

    .bloc {
        gap: 40px;
    }

    .bloc {
        grid-template-columns: 3fr 2fr;
    }

    .bloc.inverse {
        grid-template-columns: 2fr 3fr;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 18px;
    }

    header {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        height: auto;
        padding: 14px 5%;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 16px;
    }

    .logo {
        font-size: 18px;
    }

    nav a {
        font-size: 16px;
    }

    .hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 78dvh;
        padding: 32px 5%;
        background-image:
            linear-gradient(to top, rgba(255, 247, 249, 0.92), rgba(255, 247, 249, 0.6) 40%, rgba(255, 247, 249, 0) 65%),
            url(../img/hero-norah.jpg);
    }

    .hero-texte p {
        max-width: none;
    }

    section {
        padding: 40px 5%;
    }

    h1 {
        font-size: 56px;
    }

    h2 {
        font-size: 40px;
    }

    .intro h1 {
        font-size: 44px;
    }

    .texte h2 {
        font-size: 28px;
    }

    .texte p {
        font-size: 18px;
        line-height: 1.7;
    }

    .carte h3,
    .texte h3 {
        font-size: 22px;
    }

    .carte p {
        font-size: 16px;
    }

    .btn {
        font-size: 22px;
        padding: 12px 24px;
    }

    .cartes,
    .bloc {
        grid-template-columns: 1fr;
    }

    #famille .cartes {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .bloc {
        gap: 20px;
        margin-bottom: 40px;
    }

    .bloc img {
        order: -1;
    }

    .etape {
        padding-left: 16px;
    }

    .texte .etape .date {
        font-size: 15px;
    }
}
