/* ========================================
   GEO BOIS - Site Public
   ======================================== */
:root {
    --wood: #8B4513;
    --wood-light: #c97a3a;
    --wood-dark: #5a2d0c;
    --cream: #faf5ef;
    --cream-dark: #f0e6d8;
    --dark: #1a1a2e;
    --dark-card: #16213e;
    --text-dark: #2c2c2c;
    --text-mid: #5a5a6e;
    --text-light: #8a8a9a;
    --white: #ffffff;
    --green: #27ae60;
    --red: #e74c3c;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}
a { color: var(--wood); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--wood-light); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === NAVBAR === */
.pub-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.pub-nav.scrolled { box-shadow: var(--shadow); }
.pub-nav .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.pub-nav-logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 22px; font-weight: 800; color: var(--wood-dark);
    letter-spacing: 1px;
}
.pub-nav-logo img { height: 40px; width: auto; border-radius: 8px; }
.pub-nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.pub-nav-links a {
    color: var(--text-mid); font-weight: 500; font-size: 15px;
    transition: color 0.3s; position: relative; padding: 4px 0;
}
.pub-nav-links a:hover, .pub-nav-links a.active { color: var(--wood); }
.pub-nav-links a.active::after {
    content:''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--wood); border-radius: 2px;
}
.pub-nav-cta {
    background: var(--wood); color: white !important; padding: 10px 24px;
    border-radius: 8px; font-weight: 600; font-size: 14px;
    transition: background 0.3s;
}
.pub-nav-cta:hover { background: var(--wood-dark); color: white !important; }

/* Burger mobile */
.burger { display: none; background: none; border: none; font-size: 24px; color: var(--text-dark); cursor: pointer; }
.mobile-menu {
    display: none; position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    background: white; z-index: 999; padding: 24px;
    flex-direction: column; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    display: block; padding: 16px 0; font-size: 18px; font-weight: 500;
    color: var(--text-dark); border-bottom: 1px solid #eee;
}

/* === HERO === */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #2c1810 100%);
    position: relative; overflow: hidden; padding-top: 70px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="none" stroke="%238B451315" stroke-width="0.5"/></svg>') repeat;
    opacity: 0.3;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge {
    display: inline-block; background: rgba(201,122,58,0.15); color: var(--wood-light);
    padding: 8px 20px; border-radius: 50px; font-size: 13px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 {
    font-size: 56px; font-weight: 800; color: white; line-height: 1.1; margin-bottom: 20px;
}
.hero h1 span { color: var(--wood-light); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary-pub {
    background: var(--wood); color: white; padding: 16px 36px; border-radius: 10px;
    font-weight: 700; font-size: 16px; display: inline-flex; align-items: center;
    gap: 10px; transition: all 0.3s; border: none; cursor: pointer;
}
.btn-primary-pub:hover { background: var(--wood-light); color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,69,19,0.3); }
.btn-outline-pub {
    background: transparent; color: white; padding: 16px 36px; border-radius: 10px;
    font-weight: 600; font-size: 16px; border: 2px solid rgba(255,255,255,0.2);
    display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s; cursor: pointer;
}
.btn-outline-pub:hover { border-color: var(--wood-light); color: var(--wood-light); }
.hero-visual {
    position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
    width: 45%; height: 70%; background: linear-gradient(135deg, var(--wood-dark), var(--wood));
    border-radius: 30px; opacity: 0.1;
}

/* === SECTIONS === */
.pub-section { padding: 100px 0; }
.pub-section.alt { background: var(--cream); }
.pub-section.dark { background: var(--dark); color: white; }
.section-title {
    text-align: center; margin-bottom: 60px;
}
.section-title h2 {
    font-size: 38px; font-weight: 800; margin-bottom: 12px;
}
.section-title .accent { color: var(--wood-light); }
.section-title p {
    font-size: 17px; color: var(--text-mid); max-width: 600px; margin: 0 auto;
}
.pub-section.dark .section-title p { color: rgba(255,255,255,0.6); }

/* === SERVICES GRID === */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
}
.service-card {
    background: white; border-radius: var(--radius-lg); padding: 40px 30px;
    text-align: center; box-shadow: var(--shadow); transition: all 0.3s;
    border: 1px solid transparent;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--wood-light); }
.service-icon {
    width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 24px; font-size: 32px;
    background: linear-gradient(135deg, var(--cream), var(--cream-dark)); color: var(--wood);
}
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-mid); font-size: 15px; line-height: 1.7; }

/* === REALISATIONS GRID === */
.real-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.real-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    height: 320px; cursor: pointer; group: true;
}
.real-card img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s;
}
.real-card:hover img { transform: scale(1.08); }
.real-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
    transition: all 0.3s;
}
.real-card-overlay h3 { color: white; font-size: 18px; font-weight: 700; }
.real-card-overlay span { color: var(--wood-light); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* === BOUTIQUE === */
.shop-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.shop-card {
    background: white; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: all 0.3s; border: 1px solid #eee;
}
.shop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shop-card-img {
    height: 200px; background: var(--cream); display: flex; align-items: center;
    justify-content: center; overflow: hidden;
}
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-img .placeholder { color: var(--text-light); font-size: 48px; }
.shop-card-body { padding: 20px; }
.shop-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.shop-card-body .cat { font-size: 12px; color: var(--wood-light); font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
.shop-card-body .dims { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.shop-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-top: 1px solid #f0f0f0;
}
.shop-price { font-size: 20px; font-weight: 800; color: var(--wood-dark); }
.shop-price small { font-size: 12px; font-weight: 500; color: var(--text-light); }
.btn-cart {
    background: var(--wood); color: white; border: none; padding: 10px 18px;
    border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: all 0.3s;
}
.btn-cart:hover { background: var(--wood-dark); }

/* === CONTACT FORM === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { font-weight: 600; font-size: 14px; margin-bottom: 6px; display: block; color: var(--text-dark); }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: 14px 16px; border: 2px solid #e8e8e8; border-radius: 10px;
    font-size: 15px; font-family: inherit; transition: border-color 0.3s;
    background: white; color: var(--text-dark);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--wood); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-item {
    display: flex; gap: 16px; align-items: flex-start;
}
.contact-info-icon {
    width: 50px; height: 50px; border-radius: 12px; background: var(--cream);
    display: flex; align-items: center; justify-content: center;
    color: var(--wood); font-size: 20px; flex-shrink: 0;
}
.contact-info-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.contact-info-item p { color: var(--text-mid); font-size: 15px; }

/* === FOOTER === */
.pub-footer {
    background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 30px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand h3 { color: white; font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); font-size: 14px; padding: 4px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--wood-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}

/* === CLIENT AREA === */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--cream); padding: 40px 20px;
}
.auth-card {
    background: white; border-radius: var(--radius-lg); padding: 48px 40px;
    box-shadow: var(--shadow-lg); width: 100%; max-width: 460px;
}
.auth-card h1 { text-align: center; font-size: 28px; margin-bottom: 8px; }
.auth-card .subtitle { text-align: center; color: var(--text-mid); margin-bottom: 32px; }
.auth-card .form-group { margin-bottom: 20px; }
.auth-card .btn-submit {
    width: 100%; padding: 16px; background: var(--wood); color: white;
    border: none; border-radius: 10px; font-size: 16px; font-weight: 700;
    cursor: pointer; transition: all 0.3s;
}
.auth-card .btn-submit:hover { background: var(--wood-dark); }
.auth-card .alt-link { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-mid); }
.auth-card .alt-link a { font-weight: 600; }

/* === PANIER === */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 14px 16px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--text-light); border-bottom: 2px solid #eee; }
.cart-table td { padding: 16px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.cart-table .qty-input { width: 70px; padding: 8px; border: 2px solid #e8e8e8; border-radius: 8px; text-align: center; font-weight: 600; }
.cart-summary { background: var(--cream); border-radius: var(--radius); padding: 30px; }
.cart-summary .total { font-size: 28px; font-weight: 800; color: var(--wood-dark); }

/* === ALERTS === */
.pub-alert {
    padding: 14px 20px; border-radius: 10px; margin-bottom: 20px; font-weight: 500;
}
.pub-alert-success { background: #d4edda; color: #155724; }
.pub-alert-error { background: #f8d7da; color: #721c24; }
.pub-alert-info { background: #d1ecf1; color: #0c5460; }

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .pub-nav-links { display: none; }
    .burger { display: block; }
    .hero h1 { font-size: 36px; }
    .hero-visual { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 28px; }
    .hero-btns { flex-direction: column; }
    .pub-section { padding: 60px 0; }
    .section-title h2 { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .shop-grid { grid-template-columns: 1fr; }
}
