/* ─── Fonts ─── */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('media/fonts/nunito-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('media/fonts/nunito-semibold.ttf') format('truetype');
}

@font-face {
    font-family: 'Baloo 2';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('media/fonts/baloo2-600.ttf') format('truetype');
}

/* ─── Variables ─── */
:root {
    --text-primary: #1a1a1a;
    --accent: #EC3AA7;
    --accent-dark: #be185d;
    --heading: #4f8ecb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 40px 16px 80px;
    font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(180deg, #FCE1E4 0%, #E0F7FA 50%, #E8F5E9 100%);
}

/* ─── Page card ─── */
.page {
    max-width: 880px;
    margin: 0 auto;
    padding: 64px clamp(24px, 5vw, 72px);
    border-radius: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    box-shadow: 0 30px 60px rgba(20, 74, 104, 0.15);
}

.logo {
    display: block;
    margin: 0 auto 32px;
    width: clamp(160px, 28vw, 220px);
    height: auto;
}

/* ─── Headings ─── */
h1 {
    margin: 0;
    font-family: 'HK Grotesk', 'Baloo 2', cursive;
    font-size: clamp(48px, 6vw, 72px);
    letter-spacing: 1px;
    text-align: center;
    color: var(--heading);
}

.tagline {
    margin: 32px 0 48px;
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
}

.tagline strong { font-weight: 600; }

h2 {
    margin: 56px 0 32px;
    font-family: 'HK Grotesk', 'Baloo 2', cursive;
    font-size: clamp(32px, 4vw, 48px);
    color: var(--heading);
    text-align: center;
    letter-spacing: 1px;
}

section { margin-bottom: 48px; }

.section-title {
    display: inline-block;
    margin-bottom: 20px;
    font-family: 'Baloo 2', cursive;
    font-size: clamp(22px, 3vw, 28px);
    color: var(--accent-dark);
    letter-spacing: 0.5px;
}

p {
    margin: 0 0 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.emphasis { font-weight: 600; }

/* ─── Closing ─── */
.closing {
    margin-top: 64px;
    padding: 32px clamp(16px, 4vw, 48px);
    border-radius: 32px;
    background: rgba(79, 142, 203, 0.08);
}

.closing p { font-size: 1.1rem; }

.pledges {
    margin: 40px 0 48px;
    font-family: 'Baloo 2', cursive;
    font-size: clamp(22px, 3vw, 26px);
    color: var(--accent-dark);
    line-height: 1.8;
    text-align: center;
}

/* ─── Social links ─── */
.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    margin-top: 32px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(79, 142, 203, 0.2);
    color: var(--heading);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
    border-color: rgba(236, 58, 167, 0.6);
    box-shadow: 0 10px 24px rgba(79, 142, 203, 0.18);
    transform: translateY(-2px);
}

.social-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.social-label {
    color: inherit;
    white-space: nowrap;
}

/* ─── Language switcher ─── */
.lang-switcher {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.back-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--heading);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(79, 142, 203, 0.2);
    transition: border-color 0.2s, transform 0.2s;
}

.back-link:hover { border-color: var(--accent); transform: translateY(-1px); }

.lang-links { display: flex; gap: 8px; }

.lang-link {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--heading);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(79, 142, 203, 0.2);
    transition: border-color 0.2s, transform 0.2s;
}

.lang-link:hover { border-color: var(--accent); transform: translateY(-1px); }

.lang-link.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    cursor: default;
}

/* ─── Focus visible (accessibilité) ─── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ─── Mouvements réduits (accessibilité) ─── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    body { padding: 24px 12px 56px; }
    .page { padding: 48px 20px; border-radius: 32px; }
    .tagline { text-align: left; }
}
