/* ============================================================
   CoopKredi — Vitrine Publique
   Palette: Marine profond + Or naturel + Blanc chaud
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --navy:   #0f2d4a;
    --navy2:  #1a4a6e;
    --gold:   #c9922a;
    --gold2:  #e5b44e;
    --cream:  #faf7f2;
    --white:  #ffffff;
    --text:   #1a2332;
    --muted:  #5c6b7d;
    --border: #e8e2d9;
    --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.65;
}

/* TYPOGRAPHY */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }

/* NAVBAR */
.navbar {
    background: var(--white);
    padding: 16px 0;
    position: sticky; top: 0; z-index: 999;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(15,45,74,0.06);
}
.navbar-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.brand-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--navy), var(--navy2));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold2); font-size: 1.2rem;
}
.brand-text .name { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--navy); font-weight: 700; }
.brand-text .sub  { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
    color: var(--muted); text-decoration: none;
    font-size: 0.875rem; font-weight: 500;
    padding: 6px 14px; border-radius: 6px;
    transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: rgba(15,45,74,0.06); }
.btn-nav {
    background: var(--navy); color: var(--white) !important;
    border-radius: 8px; padding: 8px 18px !important;
}
.btn-nav:hover { background: var(--navy2) !important; }

nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, #2a6496 100%);
    padding: 100px 0 80px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 660px; }
.hero-eyebrow {
    display: inline-block;
    background: rgba(201,146,42,0.2);
    color: var(--gold2);
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px;
    padding: 6px 14px; border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(201,146,42,0.3);
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 16px; }
.hero-accent { color: var(--gold2); }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,0.75); margin-bottom: 36px; max-width: 500px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--gold); color: var(--white);
    border: none; border-radius: 10px;
    padding: 14px 28px; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all .2s;
}
.btn-hero-primary:hover { background: var(--gold2); color: var(--white); transform: translateY(-2px); }
.btn-hero-outline {
    background: transparent; color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 10px; padding: 14px 28px;
    font-weight: 500; font-size: 0.9rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all .2s;
}
.btn-hero-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }

/* STATS BAR */
.stats-bar {
    background: var(--white);
    padding: 0;
    box-shadow: 0 4px 20px rgba(15,45,74,0.08);
}
.stats-bar-inner {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 3px solid var(--gold);
}
.stat-item {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item .num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--navy); }
.stat-item .unit { color: var(--gold); font-size: 1rem; font-weight: 600; }
.stat-item .lbl { font-size: 0.8rem; color: var(--muted); font-weight: 500; margin-top: 4px; }

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); display: block; margin-bottom: 10px; }
.section-title { font-size: clamp(1.6rem, 2.5vw, 2.2rem); color: var(--navy); margin-bottom: 16px; }
.section-desc { font-size: 1rem; color: var(--muted); max-width: 560px; line-height: 1.7; }

/* SERVICES CARDS */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 48px; }
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--border);
    transition: all .3s;
    position: relative; overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(15,45,74,0.1); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 52px; height: 52px;
    background: rgba(15,45,74,0.07);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--navy);
    margin-bottom: 20px;
}
.service-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 0.875rem; color: var(--muted); }

/* ACTUALITES */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.news-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border);
    transition: box-shadow .2s;
}
.news-card:hover { box-shadow: 0 8px 30px rgba(15,45,74,0.1); }
.news-img { width: 100%; height: 180px; object-fit: cover; background: var(--navy2); }
.news-img-placeholder {
    width: 100%; height: 180px;
    background: linear-gradient(135deg, var(--navy), var(--navy2));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.3); font-size: 2rem;
}
.news-body { padding: 20px; }
.news-cat { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }
.news-title { font-size: 1rem; color: var(--navy); margin: 8px 0; font-family: 'Playfair Display', serif; line-height: 1.35; }
.news-excerpt { font-size: 0.83rem; color: var(--muted); margin-bottom: 14px; }
.news-date { font-size: 0.75rem; color: var(--muted); }
.news-link { font-size: 0.83rem; font-weight: 600; color: var(--navy2); text-decoration: none; }
.news-link:hover { color: var(--gold); }

/* POURQUOI NOUS */
.avantages-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 32px; }
.avantage-item { display: flex; gap: 14px; align-items: flex-start; }
.avantage-icon { width: 40px; height: 40px; min-width: 40px; border-radius: 8px; background: rgba(201,146,42,0.12); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1rem; }
.avantage-item h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.avantage-item p { font-size: 0.83rem; color: var(--muted); }

/* ADHÉSION CTA */
.adhesion-section {
    background: linear-gradient(135deg, var(--navy), var(--navy2));
    padding: 80px 0; text-align: center;
}
.adhesion-section h2 { color: var(--white); font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 16px; }
.adhesion-section p { color: rgba(255,255,255,0.7); font-size: 1rem; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-item-icon { width: 40px; height: 40px; min-width: 40px; border-radius: 8px; background: rgba(15,45,74,0.07); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.contact-item h5 { font-size: 0.8rem; color: var(--muted); margin-bottom: 2px; font-weight: 500; }
.contact-item p { font-size: 0.9rem; color: var(--text); font-weight: 500; }

.contact-form { background: var(--white); padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); }
.contact-form h4 { font-size: 1.2rem; color: var(--navy); margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { font-size: 0.83rem; font-weight: 500; color: var(--text); display: block; margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 0.875rem; font-family: inherit; background: var(--cream);
    transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--navy2);
    background: var(--white);
}
.btn-submit {
    background: var(--navy); color: var(--white);
    border: none; border-radius: 8px;
    padding: 12px 28px; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; width: 100%; transition: background .2s;
}
.btn-submit:hover { background: var(--navy2); }

/* FOOTER */
footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
footer h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
footer p { font-size: 0.83rem; line-height: 1.7; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.83rem; transition: color .2s; }
footer ul li a:hover { color: var(--gold2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.footer-gold { color: var(--gold2); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .avantages-grid { grid-template-columns: 1fr; }
    nav-container { flex-wrap: wrap; }
    .nav-links { display: none; }
}
@media (max-width: 480px) {
    .stats-bar-inner { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 60px 0 50px; }
}
