/* ═══════════════════════════════════════════════════════════════
   3A WORKSPACE — Styles principaux
   Palette : Or (#D4A843), Noir (#1a1a1a), Blanc (#fff), Gris (#f8f9fa)
   ═══════════════════════════════════════════════════════════════ */

:root {
    --gold: #D4A843;
    --gold-dark: #b8922f;
    --gold-light: #f0dba8;
    --dark: #1a1a1a;
    --dark-2: #2d2d2d;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --green: #2ecc71;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* ─── Base ────────────────────────────────────────────────────── */
body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}
h1, h2, h3, .section-title { font-family: var(--font-heading); }
.section-title {
    font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--gray); font-size: 1.1rem; margin-bottom: 3rem;
}
.gold-accent { color: var(--gold); }
.bg-dark-section { background: var(--dark); color: var(--white); }
.bg-light-section { background: var(--light); }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn-gold {
    background: var(--gold); color: var(--dark); border: none;
    font-weight: 600; padding: 10px 28px; border-radius: 6px;
    transition: all 0.3s ease;
}
.btn-gold:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(212,168,67,.4); }
.btn-outline-gold {
    border: 2px solid var(--gold); color: var(--gold);
    font-weight: 600; padding: 8px 24px; border-radius: 6px;
    transition: all 0.3s ease; background: transparent;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--dark); }
.btn-dark-3a {
    background: var(--dark); color: var(--white);
    font-weight: 600; padding: 10px 28px; border-radius: 6px;
}
.btn-dark-3a:hover { background: var(--dark-2); color: var(--gold); }

/* ─── Navbar ──────────────────────────────────────────────────── */
#mainNav {
    background: rgba(26,26,26,0.95); backdrop-filter: blur(10px);
    padding: 12px 0; transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
#mainNav.scrolled { padding: 8px 0; background: rgba(26,26,26,0.98); }
.brand-3a { color: var(--gold); font-family: var(--font-heading); font-weight: 700; font-size: 1.8rem; }
.brand-workspace { font-weight: 300; font-size: 1.2rem; letter-spacing: 2px; }
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85); font-weight: 500; margin: 0 8px;
    position: relative; transition: color 0.3s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--gold); }
.navbar-nav .nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 2px;
    background: var(--gold); transition: all 0.3s; transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::after { width: 70%; }

/* ─── Hero Section ────────────────────────────────────────────── */
.hero-section {
    min-height: 100vh; position: relative; display: flex; align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: var(--white); padding-top: 80px;
}
.hero-badge {
    display: inline-block; background: rgba(212,168,67,0.15);
    border: 1px solid var(--gold); color: var(--gold);
    padding: 6px 20px; border-radius: 50px; font-size: 0.85rem;
    font-weight: 600; letter-spacing: 1px; margin-bottom: 20px;
}
.hero-title {
    font-family: var(--font-heading); font-size: 3.8rem; font-weight: 700;
    line-height: 1.15; margin-bottom: 20px;
}
.hero-title .highlight { color: var(--gold); }
.hero-text { font-size: 1.2rem; color: rgba(255,255,255,0.8); margin-bottom: 30px; max-width: 600px; }
.hero-stats {
    display: flex; gap: 40px; margin-top: 50px; padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-number { font-size: 2.5rem; font-weight: 800; color: var(--gold); display: block; }
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }

/* ─── Espace Cards ────────────────────────────────────────────── */
.espace-card {
    border: none; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease; height: 100%;
}
.espace-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.espace-card .card-img-top { height: 220px; object-fit: cover; }
.espace-card .card-body { padding: 24px; }
.espace-card .card-title { font-family: var(--font-heading); font-size: 1.25rem; }
.espace-card .gamme-badge {
    display: inline-block; padding: 3px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px;
}
.espace-card .price-tag {
    font-size: 1.4rem; font-weight: 700; color: var(--gold);
}
.espace-card .price-unit { font-size: 0.8rem; color: var(--gray); font-weight: 400; }
.equipement-icon { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--gray); margin-right: 10px; }

/* ─── Tarifs Table ────────────────────────────────────────────── */
.tarif-card {
    background: var(--white); border-radius: 16px; padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s;
    border: 2px solid transparent; height: 100%;
}
.tarif-card:hover { border-color: var(--gold); }
.tarif-card.featured { border-color: var(--gold); position: relative; }
.tarif-card.featured::before {
    content: 'POPULAIRE'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: var(--dark); padding: 4px 16px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
}
.tarif-header { text-align: center; margin-bottom: 24px; }
.tarif-prix { font-size: 2.5rem; font-weight: 800; color: var(--dark); }
.tarif-unite { font-size: 0.9rem; color: var(--gray); }
.tarif-features { list-style: none; padding: 0; }
.tarif-features li { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 0.95rem; }
.tarif-features li i { color: var(--gold); margin-right: 8px; width: 16px; }

/* ─── Domiciliation ───────────────────────────────────────────── */
.domiciliation-card {
    background: var(--white); border-radius: 16px; padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); text-align: center;
    transition: all 0.3s; border: 2px solid transparent; height: 100%;
}
.domiciliation-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.domiciliation-icon { font-size: 3rem; color: var(--gold); margin-bottom: 20px; }
.domiciliation-prix { font-size: 2rem; font-weight: 800; color: var(--gold); }

/* ─── Services Section ────────────────────────────────────────── */
.service-item {
    text-align: center; padding: 30px 20px; border-radius: 12px;
    transition: all 0.3s ease;
}
.service-item:hover { background: var(--white); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.service-icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: rgba(212,168,67,0.1); display: flex;
    align-items: center; justify-content: center; margin: 0 auto 16px;
    font-size: 1.6rem; color: var(--gold);
}

/* ─── Contact Form ────────────────────────────────────────────── */
.form-control-3a {
    border: 2px solid #e9ecef; border-radius: 10px; padding: 12px 16px;
    font-size: 0.95rem; transition: all 0.3s;
}
.form-control-3a:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.15); }
.form-label-3a { font-weight: 600; font-size: 0.9rem; color: var(--dark); margin-bottom: 6px; }

/* ─── Avis / Testimonials ─────────────────────────────────────── */
.avis-card {
    background: var(--white); border-radius: 16px; padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); position: relative;
}
.avis-card::before {
    content: '"'; font-family: var(--font-heading); font-size: 4rem;
    color: var(--gold); position: absolute; top: 10px; left: 20px; opacity: 0.3;
}
.avis-stars { color: var(--gold); margin-bottom: 10px; }
.avis-author { font-weight: 600; margin-top: 15px; }

/* ─── Member Portal ───────────────────────────────────────────── */
.member-sidebar {
    background: var(--dark); color: var(--white); min-height: 100vh;
    padding: 30px 20px; border-radius: 0 20px 20px 0;
}
.member-sidebar .nav-link { color: rgba(255,255,255,0.7); padding: 12px 16px; border-radius: 8px; margin-bottom: 4px; }
.member-sidebar .nav-link:hover, .member-sidebar .nav-link.active { background: rgba(212,168,67,0.15); color: var(--gold); }
.member-sidebar .nav-link i { width: 24px; margin-right: 10px; }
.stat-card {
    background: var(--white); border-radius: 12px; padding: 24px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06); border-left: 4px solid var(--gold);
}
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--dark); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }

/* ─── Payment Badges ──────────────────────────────────────────── */
.payment-option {
    border: 2px solid #e9ecef; border-radius: 12px; padding: 20px;
    text-align: center; cursor: pointer; transition: all 0.3s;
}
.payment-option:hover, .payment-option.selected { border-color: var(--gold); background: rgba(212,168,67,0.05); }
.payment-option img { height: 40px; margin-bottom: 8px; }

/* ─── Footer ──────────────────────────────────────────────────── */
.footer-section {
    background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 30px;
}
.footer-brand { color: var(--white); font-size: 1.6rem; margin-bottom: 16px; }
.footer-heading { color: var(--gold); font-weight: 600; margin-bottom: 16px; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { list-style: none; padding: 0; font-size: 0.9rem; }
.footer-contact li { margin-bottom: 10px; }
.footer-contact i { color: var(--gold); margin-right: 8px; width: 16px; }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 30px 0 20px; }
.footer-copy { font-size: 0.85rem; margin: 0; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); transition: all 0.3s;
}
.social-links a:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* ─── WhatsApp Float ──────────────────────────────────────────── */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; z-index: 1000;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: white; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: all 0.3s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* ─── HTMX Loading ────────────────────────────────────────────── */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }
.htmx-request.htmx-indicator { display: inline-block; }
.spinner-gold { color: var(--gold); }

/* ─── Auth Pages ──────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--dark) 50%, var(--gold) 50%);
    padding-top: 80px;
}
.auth-card {
    background: var(--white); border-radius: 20px; padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2); max-width: 480px;
    width: 100%; margin: 0 auto;
}
.auth-card h2 { font-family: var(--font-heading); margin-bottom: 30px; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .section-title { font-size: 1.8rem; }
    .member-sidebar { min-height: auto; border-radius: 0; }
}

/* ─── Gallery ─────────────────────────────────────────────────── */
.gallery-item {
    border-radius: 12px; overflow: hidden; position: relative;
    cursor: pointer; height: 250px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; inset: 0; background: rgba(26,26,26,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s; color: var(--white); font-size: 1.6rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ─── Utilities ───────────────────────────────────────────────── */
.text-light-muted { color: rgba(255,255,255,0.6); }
.bg-gold-light { background: rgba(212,168,67,0.08); }
.border-gold { border-color: var(--gold) !important; }
.text-gold { color: var(--gold); }
.fw-800 { font-weight: 800; }

/* ─── Animations ──────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
