/* ============================================
   AFRILINK CAPITAL · DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
    --primary-color: #0f172a;
    --primary-color-light: #1e293b;
    --gold-color: #c9a063;
    --gold-color-light: rgba(201, 160, 99, 0.1);
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-on-dark: #94a3b8;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background: #ffffff;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding { padding: 100px 24px; }
.bg-light { background: var(--bg-light); }

.section-eyebrow {
    display: block;
    color: var(--gold-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-head {
    max-width: 620px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 16px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--primary-color); }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-gold {
    background: var(--gold-color);
    color: var(--primary-color);
}
.btn-gold:hover {
    background: #b88f4f;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 160, 99, 0.35);
}
.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}
.btn-outline-light {
    background: transparent;
    border-color: rgba(255,255,255,0.3);
    color: white;
}
.btn-outline-light:hover {
    border-color: var(--gold-color);
    background: rgba(201, 160, 99, 0.1);
}

/* === HEADER / NAVBAR === */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
}
.navbar {
    position: relative;
    z-index: 1001;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 48px;
    width: auto;
    display: block;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--gold-color);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-color);
}
.nav-cta { display: flex; align-items: center; gap: 20px; }

/* === HAMBURGER MENU === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === HERO === */
.hero {
    position: relative;
    background-color: var(--primary-color);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0),
        radial-gradient(circle at 50% 30%, rgba(201, 160, 99, 0.22) 0%, transparent 55%),
        linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-size: 26px 26px, 100% 100%, 100% 100%;
    padding: 100px 24px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}
.hero::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(201, 160, 99, 0.4), transparent 70%);
    top: -120px;
    right: 8%;
    animation: heroFloat 9s ease-in-out infinite;
}
.hero::after {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    bottom: -100px;
    left: 6%;
    animation: heroFloat 12s ease-in-out infinite reverse;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(26px) scale(1.08); }
}
.hero-container {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-content { flex: 1; display: flex; flex-direction: column; align-items: center; }
.hero-badge {
    display: inline-block;
    background: rgba(201, 160, 99, 0.12);
    color: var(--gold-color);
    border: 1px solid rgba(201, 160, 99, 0.35);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 600;
    margin-bottom: 22px;
    color: white;
}
.hero h1 em { color: var(--gold-color); font-style: normal; }
.hero p {
    font-size: 17px;
    color: var(--text-on-dark);
    max-width: 480px;
    margin: 0 auto 34px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; }
.hero-buttons .btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.3);
    color: white;
}
.hero-buttons .btn-outline:hover {
    border-color: var(--gold-color);
    background: rgba(201, 160, 99, 0.1);
}
.hero-media { flex: 1; display: flex; justify-content: center; }

/* Abstract geometric visual used in place of photography */
.hero-graphic {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
}

.hero-photo-frame {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
}
.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.8) 0%, rgba(15,23,42,0.05) 45%, transparent 65%);
}
.hero-photo-caption {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 24px;
    z-index: 2;
    color: white;
}
.hero-photo-caption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}
.hero-photo-caption span {
    font-size: 12px;
    color: var(--text-on-dark);
}

/* === STORY / PHOTO GRID === */
.story-section {
    background: var(--primary-color);
    padding: 100px 24px;
}
.story-section .section-head h2 { color: white; }
.story-section .section-head p { color: var(--text-on-dark); }
.story-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 50px;
}
.story-photo {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255,255,255,0.08);
}
.story-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.story-photo:hover img { transform: scale(1.06); }
.story-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.92) 0%, transparent 55%);
}
.story-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    color: white;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.story-caption span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-color);
    margin-bottom: 4px;
}

/* === FOUNDER BLOCK === */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.founder-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 32px;
}
.founder-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--gold-color);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-role {
    display: block;
    color: var(--gold-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.founder-text h3 { font-size: 21px; margin-bottom: 2px; }
.founder-text p { color: var(--text-muted); font-size: 14px; line-height: 1.75; }

/* === FEATURE PHOTO (replaces abstract SVG illustrations) === */
.feature-photo {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.25);
}
.feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* === STATS BAR === */
.stats-bar {
    background: var(--primary-color);
    padding: 30px 20px;
}
.stats-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.stat-item { text-align: center; color: white; }
.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--gold-color);
    display: block;
    line-height: 1;
    font-family: var(--font-display);
}
.stat-label { font-size: 13px; color: var(--text-on-dark); margin-top: 5px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* === PAGE HEADER (pages internes) === */
.page-header {
    background: var(--primary-color);
    padding: 160px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header .section-eyebrow { justify-content: center; display: flex; }
.page-header h1 {
    color: white;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
}
.page-header p {
    color: var(--text-on-dark);
    max-width: 560px;
    margin: 0 auto;
    font-size: 16px;
}
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-on-dark);
}
.breadcrumb a { color: var(--text-on-dark); transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--gold-color); }

/* === GRIDS & CARDS === */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.about-card, .target-card, .solution-card-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px 30px;
    transition: all 0.3s ease;
    cursor: default;
}
.about-card:hover,
.target-card:hover,
.solution-card-item:hover {
    border-color: var(--gold-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(201, 160, 99, 0.12);
}
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--gold-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.about-card h3, .target-card h3, .solution-card-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}
.about-card p, .target-card p, .solution-card-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}
.step-number {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    color: var(--gold-color);
    opacity: 0.5;
    margin-bottom: 14px;
}

/* === CTA BAND === */
.cta-band {
    background: var(--primary-color);
    padding: 70px 24px;
    text-align: center;
}
.cta-band h2 { color: white; font-size: 30px; margin-bottom: 14px; }
.cta-band p { color: var(--text-on-dark); margin-bottom: 30px; }
.cta-band-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* === NEWS CARDS (actualites.html) === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.news-card:hover {
    border-color: var(--gold-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(201, 160, 99, 0.12);
}
.news-media {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    overflow: hidden;
}
.news-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-content { padding: 24px; }
.news-tag {
    display: inline-block;
    background: var(--gold-color-light);
    color: var(--gold-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.news-content h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.4; }
.news-content p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.news-date { font-size: 12px; color: #94a3b8; font-weight: 600; }

/* === CONTACT SECTION === */
.contact-section {
    background: var(--primary-color);
    padding: 90px 24px;
}
.contact-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.contact-form-group { margin-bottom: 20px; }
.contact-form-group label {
    display: block;
    color: var(--text-on-dark);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.contact-form-group input,
.contact-form-group textarea,
.contact-form-group select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 14px 16px;
    color: white;
    font-size: 14px;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
    outline: none;
}
.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder { color: #64748b; }
.contact-form-group input:focus,
.contact-form-group textarea:focus,
.contact-form-group select:focus { border-color: var(--gold-color); }
.contact-form-group textarea { height: 120px; resize: vertical; }
.contact-info-item { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 25px; }
.contact-info-icon {
    width: 40px;
    height: 40px;
    background: rgba(201, 160, 99, 0.1);
    border: 1px solid rgba(201, 160, 99, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-info-text h4 { color: white; font-size: 14px; margin-bottom: 4px; }
.contact-info-text p { color: var(--text-on-dark); font-size: 13px; line-height: 1.5; }
.form-note { color: #64748b; font-size: 12px; margin-top: 10px; }

/* === FOOTER === */
footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 24px 30px;
}
.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}
.footer-logo-img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--text-on-dark); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-on-dark);
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
}
.footer-contact-item span:first-child { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}
.footer-col ul li a:hover { color: var(--gold-color); }
.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p { color: #64748b; font-size: 12px; }
.footer-legal { color: #64748b; font-size: 11px; }

/* === SCROLL ANIMATIONS === */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.fade-up.visible,
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }

/* === RESPONSIVE MOBILE === */
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-container { gap: 30px; }
    .story-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Navbar switches to the hamburger menu earlier than the rest of the
   mobile layout: 6 nav links + CTA button no longer fit past ~1024px. */
@media (max-width: 1024px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--primary-color);
        z-index: 999;
        padding: 80px 30px 30px;
        gap: 10px;
        overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        color: white !important;
        font-size: 18px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        width: 100%;
    }
    .nav-cta { display: none; }
}

@media (max-width: 768px) {
    .hero { padding: 60px 20px; min-height: auto; }
    .hero h1 { font-size: 28px; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .founder-block { flex-direction: column; text-align: center; padding: 30px; }
    .founders-grid { grid-template-columns: 1fr; gap: 16px; }
    .hero-media { order: -1; max-width: 280px; margin: 0 auto 20px; }
    .hero::before { width: 220px; height: 220px; right: -40px; }
    .hero::after { width: 180px; height: 180px; left: -40px; }
    .grid-3, .grid-4, .news-grid, .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-2.grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .about-card .btn, .target-card .btn, .solution-card-item .btn { white-space: normal; }
    .container { padding: 0 16px; }
    .about-card, .target-card, .solution-card-item {
        padding: 18px 16px;
    }
    .card-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    .about-card h3, .target-card h3, .solution-card-item h3 { font-size: 15px; margin-bottom: 6px; }
    .about-card p, .target-card p, .solution-card-item p { font-size: 12.5px; line-height: 1.55; }
    .about-card .btn, .target-card .btn, .solution-card-item .btn { font-size: 12px; padding: 10px 14px; }
    .news-content { padding: 14px; }
    .news-media { height: 100px; font-size: 26px; }
    .news-content h3 { font-size: 14px; margin-bottom: 6px; }
    .news-content p { font-size: 12px; margin-bottom: 8px; }
    .news-tag { font-size: 9px; padding: 4px 9px; margin-bottom: 8px; }
    .news-date { font-size: 11px; }
    .story-caption { font-size: 11px; left: 10px; right: 10px; bottom: 10px; }
    .story-caption span { font-size: 8px; }
    .step-number { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-grid { grid-template-columns: 1fr; }
    .stat-divider { display: none; }
    .stats-container { gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .page-header { padding: 130px 24px 60px; }
    .page-header h1 { font-size: 26px; }
    .section-padding { padding: 70px 20px; }
    .section-head h2 { font-size: 26px; }
}
