/* ─── Self-hosted Inter font ─── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('media/fonts/inter-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('media/fonts/inter-500.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('media/fonts/inter-600.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('media/fonts/inter-700.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('media/fonts/inter-800.ttf') format('truetype');
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ibou-pink: #EC3AA7;
    --ibou-pink-light: #f472b6;
    --ibou-pink-dark: #be185d;
    --ibou-teal: #2EC7D3;
    --ibou-orange: #FF8A65;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --bg-page: linear-gradient(180deg, #FCE1E4 0%, #E0F7FA 50%, #E8F5E9 100%);
    --bg-card: #ffffff;
    --bg-tertiary: var(--color-slate-100);
    --text-primary: var(--color-slate-900);
    --text-secondary: var(--color-slate-600);
    --text-tertiary: var(--color-slate-500);
    --text-muted: var(--color-slate-400);
    --text-on-dark: #ffffff;
    --border-default: var(--color-slate-200);
    --border-subtle: rgba(226, 232, 240, .8);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, .08);
    --shadow-lg: 0 12px 30px rgba(15, 23, 42, .15);
    --shadow-xl: 0 20px 45px rgba(15, 23, 42, .35);
    --glass-bg: rgba(255, 255, 255, .35);
    --glass-border: rgba(255, 255, 255, .55);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --neo-btn-bg: rgba(255, 255, 255, .85);
    --border-light: rgba(255, 255, 255, .6);
    --focus-ring: 2px solid var(--ibou-pink);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-page);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ─── SKIP LINK (accessibilité) ─── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 1000;
    padding: .75rem 1.5rem;
    background: var(--color-slate-900);
    color: #fff;
    border-radius: .5rem;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: top .15s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* ─── FOCUS VISIBLE (accessibilité) ─── */
:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 3px;
}

.btn:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(236, 58, 167, .2);
}

.social-btn:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(236, 58, 167, .2);
}

/* ─── HEADER ─── */
header { position: relative; padding: 1.5rem 1.5rem 1rem; }

.header-container {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left { display: flex; flex: 1; }

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
}

.logo-wrapper a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
    border-radius: .5rem;
}

.logo-wrapper a:hover { opacity: .8; transform: scale(1.02); }
.logo-wrapper a:active { transform: scale(.98); }

.header-logo { width: 12rem; height: auto; display: block; }

.header-right {
    display: flex;
    gap: .5rem;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
}

/* ─── HERO ─── */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem 5rem;
}

.hero-content { max-width: 680px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(236, 58, 167, .08);
    border: 1px solid rgba(236, 58, 167, .15);
    color: var(--ibou-pink-dark);
    font-size: .8125rem;
    font-weight: 600;
    padding: .5rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    animation: fadeIn .6s ease both;
}

.badge-dot {
    width: 7px; height: 7px;
    background: var(--ibou-pink);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    animation: fadeUp .6s ease .05s both;
}

h1 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--ibou-pink), #c026d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: .15em;
    margin-right: -.05em;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
    animation: fadeUp .6s ease .15s both;
}

.hero-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
    justify-content: center;
    animation: fadeUp .6s ease .25s both;
}

.social-links { display: flex; gap: .5rem; align-items: center; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: all .2s ease;
    cursor: pointer;
    border: none;
}

.btn-pink {
    background: linear-gradient(135deg, var(--ibou-pink), #c026d3);
    color: var(--text-on-dark);
    box-shadow: 0 4px 12px rgba(236, 58, 167, .3);
}

.btn-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 58, 167, .45);
}

.btn-glass {
    background: var(--neo-btn-bg);
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, .12);
    box-shadow: var(--shadow-md);
}

.btn-glass:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── SOCIAL LINKS ─── */
.social-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(15, 23, 42, .1);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all .2s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: #fff;
    color: var(--ibou-pink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.social-btn svg, .social-btn img { width: 18px; height: 18px; }

/* ─── GLASS CARD SECTION ─── */
.glass-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
}

.section-tag {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ibou-pink-dark);
    margin-bottom: .75rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: .75rem;
}

.section-desc {
    font-size: .9375rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.7;
}

/* ─── VISION CARDS ─── */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.v-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all .2s ease;
}

.v-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.v-icon {
    width: 3rem; height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: .75rem;
    background: linear-gradient(135deg, rgba(236, 58, 167, .1), rgba(192, 38, 211, .1));
}

.v-card:nth-child(2) .v-icon { background: linear-gradient(135deg, rgba(46, 199, 211, .1), rgba(16, 185, 129, .1)); }
.v-card:nth-child(3) .v-icon { background: linear-gradient(135deg, rgba(99, 102, 241, .1), rgba(139, 92, 246, .1)); }
.v-card:nth-child(4) .v-icon { background: linear-gradient(135deg, rgba(255, 138, 101, .1), rgba(251, 191, 36, .1)); }

.v-card h3 { font-size: .9375rem; font-weight: 700; color: var(--text-primary); margin-bottom: .35rem; }
.v-card p { font-size: .8125rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── EXPLORER SECTION ─── */
.explorer-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

.explorer-card {
    background: var(--color-slate-900);
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow-xl);
}

.explorer-card::before {
    content: '';
    position: absolute;
    top: -40%; right: -15%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(236, 58, 167, .15) 0%, transparent 65%);
    pointer-events: none;
}

.explorer-card::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(46, 199, 211, .08) 0%, transparent 65%);
    pointer-events: none;
}

.explorer-inner { position: relative; z-index: 1; }
.explorer-card .section-tag { color: var(--ibou-pink-light); }
.explorer-card h2 { color: #fff; }
.explorer-card .section-desc { color: var(--color-slate-300); }

.explorer-pills {
    display: flex;
    gap: .75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.e-pill {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 1rem;
    padding: 1.25rem;
    flex: 1;
    min-width: 200px;
    transition: all .2s ease;
}

.e-pill:hover { background: rgba(255, 255, 255, .1); border-color: rgba(236, 58, 167, .3); }
.e-pill h3 { font-size: .875rem; font-weight: 600; margin-bottom: .3rem; color: #fff; }
.e-pill p { font-size: .8125rem; color: var(--color-slate-300); line-height: 1.55; }

.explorer-cta { margin-top: 2rem; }

/* ─── ENGAGEMENTS ─── */
.engage-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 1.5rem;
    list-style: none;
    counter-reset: engage;
}

.engage-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: all .2s ease;
    counter-increment: engage;
}

.engage-row::before {
    content: counter(engage);
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    background: linear-gradient(135deg, var(--ibou-pink), #c026d3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.engage-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.engage-row h3 { font-size: .9375rem; font-weight: 600; color: var(--text-primary); margin-bottom: .2rem; }
.engage-row p { font-size: .8125rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── CLOSING ─── */
.closing {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.closing-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: var(--glass-shadow);
}

.closing blockquote {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

.closing .sig {
    margin-top: 1rem;
    font-size: .8125rem;
    color: var(--text-secondary);
}

/* ─── FOOTER ─── */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: .8125rem;
    color: var(--text-secondary);
}

footer a {
    color: var(--ibou-pink-dark);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover { text-decoration: underline; }

.footer-links {
    margin-top: .5rem;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-copy { margin-top: .75rem; color: var(--text-tertiary); }

/* ─── ANIMATIONS ─── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ─── ACCESSIBILITÉ : mouvements réduits ─── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    header { padding: .75rem 1rem; }
    .header-logo { width: 7.5rem; }
    .hero { padding: 2.5rem 1.25rem 4rem; }
    .hero-row { flex-direction: column; gap: 1rem; }
    .vision-grid { grid-template-columns: 1fr; }
    .explorer-pills { flex-direction: column; }
    .explorer-card { padding: 2rem 1.5rem; border-radius: 1rem; }
    .glass-card { padding: 1.5rem; border-radius: 1rem; }
    .glass-section, .explorer-section { padding: 0 1rem 3.5rem; }
}
