/* ============================================================
   BANGUILOC — Global Styles
   ============================================================ */

/* === VARIABLES === */
:root {
    --gold-dark:      #A87830;
    --gold-light:     #FDF0DC;
    --dark:           #1C1C1E;
    --gray:           #6B7280;
    --gray-light:     #F3F4F6;
    --border:         #E5E7EB;
    --white:          #FFFFFF;
    --green:          #16A34A;
    --blue:           #2563EB;
    --navy:           #0D1B2A;
    --navy-blue:      #1E3A5F;
    --sage:           #ADC4B9;
    --gold:           #C8963E;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius:    12px;
    --radius-sm: 8px;
    --radius-xs: 6px;

    --shadow:    0 2px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);

    --transition: 0.2s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
input, select, button { font-family: inherit; }

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === TYPOGRAPHY HELPERS === */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.25;
}
.section-title .highlight { color: var(--gold); }
.section-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}
.btn-primary {
    background: var(--gold);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232,150,30,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
}
.btn-ghost {
    background: var(--gray-light);
    color: var(--dark);
}
.btn-ghost:hover { background: var(--border); }

/* === BADGE === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.badge-new      { background: var(--gold); color: white; }
.badge-popular  { background: #7C3AED; color: white; }
.badge-info     { background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.4); }
.badge-gold     { background: var(--gold); color: white; border: none; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1001;
    background: var(--navy-blue);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 7px 24px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar a {
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.topbar a:hover { color: var(--gold); }
.topbar-right a { padding-left: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: sticky;
    top: 33px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 8px 24px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 12px;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
    flex-shrink: 0;
}
.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--gold);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
}
.logo-text { color: var(--navy-blue); }
.logo-text span { color: var(--gold); }
.logo-img { height: 65px; width: auto; max-width: 340px; object-fit: contain; }
.logo-img-footer { height: 90px; width: auto; max-width: 420px; object-fit: contain; }

/* Nav */
.header-nav-center {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}
.header-nav-center .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy-blue);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.header-nav-center .nav-link:hover { background: var(--gray-light); }
.header-nav-center .nav-link.active { background: var(--navy-blue); color: white; }
.header-nav-center .nav-link.active svg { stroke: white; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.header-cta {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 8px;
    white-space: nowrap;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}
.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--navy-blue);
    font-weight: 500;
}
.header-phone svg { color: var(--navy-blue); }
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy-blue);
}
.nav-link:hover { color: var(--gold); }
.nav-link-add {
    color: var(--gold);
    font-weight: 600;
}
.nav-link-login {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy-blue);
}
.nav-link-login:hover { background: none; color: var(--gold); }

.nav-sep {
    width: 1px;
    height: 18px;
    background: var(--navy-blue);
    opacity: 0.3;
}

/* Groupe droite mobile */
.mobile-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.mobile-connexion-btn {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--navy-blue);
    padding: 4px;
}
.mobile-connexion-btn:hover { color: var(--gold); }
@media (max-width: 768px) {
    .mobile-connexion-btn { display: flex; }
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy-blue);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    border-top: 1px solid var(--border);
    background: var(--white);
    flex-wrap: wrap;
}
.mobile-menu.open { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; position: relative; }
.mobile-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy-blue);
    transition: all var(--transition);
}
.mobile-link:hover { background: var(--gray-light); }
.mobile-link.active {
    background: var(--navy-blue);
    color: white;
    font-weight: 600;
}
.mobile-link.active:hover { background: var(--navy-blue); }
.mobile-link-cta {
    background: var(--gold);
    color: white !important;
    font-weight: 700 !important;
}
.mobile-link-cta:hover { background: var(--gold-dark) !important; color: white !important; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    background: var(--gold);
    padding: 64px 0;
    text-align: center;
}
.cta-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
}
.cta-banner p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.88);
    max-width: 420px;
    margin: 0 auto 32px;
    line-height: 1.65;
}
.cta-banner-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-btn-white {
    background: white;
    color: var(--navy-blue);
    font-weight: 700;
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.cta-btn-white:hover { background: rgba(255,255,255,0.9); }
.cta-btn-outline {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.55);
    font-weight: 700;
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.cta-btn-outline:hover { background: rgba(255,255,255,0.22); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--navy-blue);
    color: var(--sage);
    padding: 64px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}
.footer-brand {}
.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-logo .logo-icon { background: var(--gold); }
.footer-logo-text span { color: var(--gold); }
.footer-desc {
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--sage);
    max-width: 280px;
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition);
}
.footer-social a.social-facebook,
.footer-social a.social-tiktok { background: rgba(255,255,255,0.15); }
.footer-social a:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-2px);
}
.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li {
    font-size: 0.825rem;
    color: var(--sage);
}
.footer-col ul a {
    font-size: 0.825rem;
    color: var(--sage);
}
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-bottom-links a {
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
}
.footer-bottom-links a:hover { color: white; }

/* ============================================================
   RESPONSIVE — GLOBAL
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .header-nav  { display: none; }
    .header-nav-center { display: none; }
    .header-actions { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .logo-img { height: 44px; max-width: 180px; }
    .header-inner { padding: 8px 16px; height: 60px; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
}
