/* ─────────────────────────────────────────────
   MAISON HOULI — DESIGN SYSTEM
   Colors:
     --green-dark:    #071b13
     --green-primary: #0a271b
     --gold:          #bf9c54
     --gold-light:    #d8bf7a
     --cream:         #f7f3ea
───────────────────────────────────────────── */

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

:root {
    --green-dark: #071b13;
    --green-primary: #0a271b;
    --green-mid: #0d3020;
    --gold: #bf9c54;
    --gold-light: #d8bf7a;
    --gold-dim: #8a6e38;
    --cream: #f7f3ea;
    --cream-dim: #c9c3b6;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 4px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--green-dark);
    color: var(--cream);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--green-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}

/* ─── NAV ─── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(7, 27, 19, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(191, 156, 84, 0.15);
    transition: var(--transition);
}

#navbar.scrolled {
    border-bottom-color: rgba(191, 156, 84, 0.3);
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo {
    height: 44px;
    width: 44px;
    border-radius: 4px;
    border: 1px solid rgba(191, 156, 84, 0.22);
    display: block;
    object-fit: cover;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--cream-dim);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--gold-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--gold-light);
    transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--green-dark);
    border-bottom: 1px solid rgba(191, 156, 84, 0.2);
    padding: 8px 0 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-link {
    display: block;
    padding: 12px 24px;
    color: var(--cream-dim);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color var(--transition), background var(--transition);
}

.mobile-link:hover {
    color: var(--gold-light);
    background: rgba(191, 156, 84, 0.06);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(191, 156, 84, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse 100% 100% at 0% 100%, rgba(13, 48, 32, 0.6) 0%, transparent 50%),
        var(--green-dark);
}

/* Subtle noise texture */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}

/* Ornamental frame */
.ornament-frame {
    position: relative;
    padding: 52px 48px;
}

.ornament-frame::before,
.ornament-frame::after,
.ornament-frame>*:first-child::before,
.ornament-frame>*:first-child::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.5;
}

.ornament-frame::before {
    top: 0;
    left: 0;
    border-width: 1px 0 0 1px;
}

.ornament-frame::after {
    top: 0;
    right: 0;
    border-width: 1px 1px 0 0;
}

.ornament-frame-bl,
.ornament-frame-br {
    position: absolute;
    width: 32px;
    height: 32px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.5;
}

.ornament-frame-bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 1px 1px;
}

.ornament-frame-br {
    bottom: 0;
    right: 0;
    border-width: 0 1px 1px 0;
}

.hero-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--cream);
    margin-bottom: 28px;
}

.hero-title em {
    font-style: italic;
    color: var(--gold-light);
}

.hero-divider {
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 28px;
    opacity: 0.6;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--cream-dim);
    letter-spacing: 0.06em;
}

.hero-meta .dot {
    color: var(--gold);
    opacity: 0.6;
}

/* Hero logo */
.hero-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.hero-logo-img {
    width: 136px;
    height: 136px;
    border-radius: 10px;
    border: 1px solid rgba(191, 156, 84, 0.32);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
    object-fit: cover;
    display: block;
}

/* ─── SECTIONS ─── */
.section {
    padding: 96px 24px;
}

.section-alt {
    background: var(--green-primary);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(191, 156, 84, 0.3), transparent);
}

.section-alt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(191, 156, 84, 0.3), transparent);
}

.container {
    max-width: 1080px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-top: 12px;
    opacity: 0.8;
}

.section-title .gold {
    color: var(--gold-light);
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--cream-dim);
    letter-spacing: 0;
}

.section-intro {
    color: var(--cream-dim);
    font-size: 0.95rem;
    max-width: 720px;
    margin-bottom: 48px;
    line-height: 1.8;
}

.section-intro strong {
    color: var(--gold-light);
    font-weight: 500;
}

/* ─── STATS ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.stat-card {
    background: var(--green-primary);
    border: 1px solid rgba(191, 156, 84, 0.18);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    transition: border-color var(--transition), transform var(--transition);
}

.stat-card:hover {
    border-color: rgba(191, 156, 84, 0.45);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dim);
    font-weight: 500;
}

/* ─── SOCIAL ─── */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(191, 156, 84, 0.04);
    border: 1px solid rgba(191, 156, 84, 0.16);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--cream);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.social-card:hover {
    background: rgba(191, 156, 84, 0.09);
    border-color: rgba(191, 156, 84, 0.4);
    transform: translateY(-1px);
}

.social-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--gold);
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.social-platform {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

.social-handle {
    font-size: 0.9rem;
    color: var(--cream);
    font-weight: 300;
}

.social-arrow {
    color: var(--gold-dim);
    font-size: 1rem;
    transition: transform var(--transition), color var(--transition);
}

.social-card:hover .social-arrow {
    transform: translateX(4px);
    color: var(--gold-light);
}

.drive-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border: 1px dashed rgba(191, 156, 84, 0.3);
    border-radius: var(--radius);
    color: var(--cream-dim);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.drive-link:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.drive-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gold);
}

.drive-arrow {
    margin-left: auto;
    color: var(--gold-dim);
    transition: transform var(--transition);
}

.drive-link:hover .drive-arrow {
    transform: translateX(4px);
    color: var(--gold-light);
}

/* ─── WEEK FILTERS ─── */
.week-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 7px 16px;
    background: transparent;
    border: 1px solid rgba(191, 156, 84, 0.25);
    border-radius: 2px;
    color: var(--cream-dim);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(191, 156, 84, 0.12);
    border-color: var(--gold);
    color: var(--gold-light);
}

/* ─── TABLES ─── */
.table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(191, 156, 84, 0.18);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 560px;
}

.data-table thead tr {
    background: rgba(191, 156, 84, 0.1);
    border-bottom: 1px solid rgba(191, 156, 84, 0.25);
}

.data-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 18px;
    color: var(--cream-dim);
    border-bottom: 1px solid rgba(191, 156, 84, 0.08);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover td {
    background: rgba(191, 156, 84, 0.04);
    color: var(--cream);
}

.data-table tbody tr.hidden {
    display: none;
}

/* Badges */
.week-badge,
.campaign-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(191, 156, 84, 0.3);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--gold);
    background: rgba(191, 156, 84, 0.07);
}

.format-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.format-badge.video {
    background: rgba(191, 156, 84, 0.12);
    color: var(--gold-light);
    border: 1px solid rgba(191, 156, 84, 0.25);
}

.format-badge.carousel {
    background: rgba(216, 191, 122, 0.08);
    color: var(--cream-dim);
    border: 1px solid rgba(216, 191, 122, 0.18);
}

.obj-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
}

.obj-badge.engagement {
    background: rgba(191, 156, 84, 0.14);
    color: var(--gold-light);
    border: 1px solid rgba(191, 156, 84, 0.3);
}

.obj-badge.ventes {
    background: rgba(216, 191, 122, 0.1);
    color: var(--cream);
    border: 1px solid rgba(216, 191, 122, 0.25);
}

.budget-cell {
    font-family: var(--font-serif);
    color: var(--gold-light) !important;
    font-weight: 500;
    white-space: nowrap;
}

.total-row td {
    background: rgba(191, 156, 84, 0.07);
    border-top: 1px solid rgba(191, 156, 84, 0.25) !important;
}

.total-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold) !important;
    font-weight: 600;
    text-align: right;
}

.total-amount {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/* Phase legend */
.phase-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--cream-dim);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.engagement {
    background: var(--gold);
}

.legend-dot.ventes {
    background: var(--cream-dim);
}

/* Alert box */
.alert-box {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(191, 156, 84, 0.07);
    border: 1px solid rgba(191, 156, 84, 0.25);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.88rem;
    color: var(--cream-dim);
    line-height: 1.7;
}

.alert-box strong {
    color: var(--gold-light);
}

.alert-icon {
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ─── NEXT PHASE CARDS ─── */
.next-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.next-card {
    padding: 36px 28px;
    border: 1px solid rgba(191, 156, 84, 0.16);
    border-radius: var(--radius);
    background: var(--green-primary);
    transition: border-color var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}

.next-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(191, 156, 84, 0.4), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.next-card:hover {
    border-color: rgba(191, 156, 84, 0.38);
    transform: translateY(-3px);
}

.next-card:hover::before {
    opacity: 1;
}

.next-icon {
    width: 40px;
    height: 40px;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0.8;
}

.next-icon svg {
    width: 100%;
    height: 100%;
}

.next-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 12px;
    line-height: 1.4;
}

.next-text {
    font-size: 0.85rem;
    color: var(--cream-dim);
    line-height: 1.75;
}

/* ─── FOOTER ─── */
.footer {
    padding: 48px 24px;
    border-top: 1px solid rgba(191, 156, 84, 0.15);
    background: var(--green-dark);
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 1px solid rgba(191, 156, 84, 0.2);
    object-fit: cover;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.88;
}

.footer-divider {
    width: 32px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 16px;
    opacity: 0.4;
}

.footer-credit {
    font-size: 0.78rem;
    color: var(--cream-dim);
    letter-spacing: 0.06em;
}

.footer-credit strong {
    color: var(--gold);
    font-weight: 500;
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .next-grid {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 64px 20px;
    }

    .hero {
        padding: 100px 20px 64px;
    }

    .ornament-frame {
        padding: 36px 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .hero-meta {
        font-size: 0.72rem;
        gap: 6px;
    }

    .week-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.72rem;
    }

    .data-table th,
    .data-table td {
        padding: 12px 14px;
    }

    .alert-box {
        flex-direction: column;
        gap: 8px;
    }

    .phase-legend {
        flex-direction: column;
        gap: 12px;
    }
}