/* ─── 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: 0 0 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 0;
    padding: 48px clamp(24px, 5vw, 72px) 64px;
    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);
}

/* ─── 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;
}

/* ─── HEADER (vertical-nav) ─── */
header { position: relative; padding: 1.5rem 1.5rem 1rem; }

.header-container {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vertical-nav {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    min-width: 0;
}

.vertical-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.vertical-nav-logo:hover { opacity: 0.85; transform: scale(1.02); }
.vertical-nav-logo:active { transform: scale(0.98); }

.vertical-nav-logo-img {
    height: 2.5rem;
    width: auto;
    display: block;
}

.vertical-nav-sep {
    width: 1px;
    height: 1.5rem;
    background: rgba(203, 213, 225, 0.8);
    opacity: 0.5;
    flex-shrink: 0;
}

.vertical-nav-tabs {
    display: flex;
    gap: 0.125rem;
    align-items: center;
}

.vertical-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
    color: #94a3b8;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    position: relative;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.vertical-tab:hover:not(.coming-soon) {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.35);
}

.vertical-tab.active {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--tab-color);
    background: transparent;
}

.vertical-tab.coming-soon { opacity: 0.6; cursor: default; }
.vertical-tab.coming-soon:hover { opacity: 0.75; }

.nav-icon {
    width: 0.85em;
    height: 0.85em;
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentColor;
    overflow: visible;
}

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

.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;
    }
}

/* ─── TOAST ─── */
.ibou-toast[hidden] { display: none; }

.ibou-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .15);
    border: 1px solid rgba(226, 232, 240, .8);
    border-left: 3px solid #EC3AA7;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
    min-width: 280px;
    max-width: 420px;
}

.ibou-toast-in { animation: toastIn .25s ease both; }
.ibou-toast-out { animation: toastOut .25s ease both; }

@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(-50%) translateY(0); } to { opacity: 0; transform: translateX(-50%) translateY(20px); } }

/* ─── Vertical nav: Tablet ─── */
@media (min-width: 641px) and (max-width: 1024px) {
    .vertical-tab { padding: 0.3rem 0.5rem; font-size: 0.75rem; gap: 0.2rem; }
    .vertical-tab.active { font-size: 0.8125rem; }
    .vertical-nav-logo-img { height: 2rem; }
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    body { padding: 0 0 56px; }
    header { padding: .75rem 1rem; }
    .vertical-nav { gap: 0.375rem; }
    .vertical-nav-logo-img { height: 2rem; }
    .vertical-nav-sep { height: 1.25rem; }
    .vertical-tab { padding: 0.25rem 0.4rem; font-size: 0.75rem; gap: 0.2rem; }
    .vertical-tab.active { font-size: 0.8125rem; }
    .vertical-tab.mobile-hidden { display: none; }
    .page { padding: 32px 20px; border-radius: 32px; margin: 0 12px; }
    .tagline { text-align: left; }
}
