/*
Theme Name: Le Comptoir d'Or de Versailles
Theme URI: https://www.lecomptoirdordeversailles.fr
Author: Le Comptoir d'Or
Description: Thème personnalisé pour Le Comptoir d'Or de Versailles - Expert en métaux précieux
Version: 1.0
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gold: #E8A020;
    --gold-dark: #C8860A;
    --gold-light: #FFF3DC;
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --bg: #f8f8f4;
    --bg-light: #f0f0eb;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-gray: #666666;
    --border: #e0e0d8;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: 1.3rem; }

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-white { background: var(--white); }

/* ===== HEADER / NAVIGATION ===== */
.site-header {
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1300px;
    margin: 0 auto;
}
.site-logo img { height: 48px; width: auto; }
.site-logo-text {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.3;
}
.site-logo-text span { display: block; color: var(--white); font-size: 0.65rem; font-weight: 400; }

.main-nav ul {
    display: flex;
    gap: 4px;
    align-items: center;
}
.main-nav ul li a {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.main-nav ul li a:hover {
    color: var(--gold);
    background: rgba(255,255,255,0.05);
}
.main-nav ul li.active a { color: var(--gold); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--white); margin: 5px 0;
    transition: all 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--dark); }
.btn-dark {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}
.btn-dark:hover { background: #333; }
.btn-white {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ===== BADGE ===== */
.badge {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
}
.badge-light {
    background: var(--gold-light);
    color: var(--gold-dark);
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header .badge { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p {
    color: var(--text-gray);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.card-icon {
    width: 56px; height: 56px;
    background: var(--gold-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card p { color: var(--text-gray); font-size: 0.95rem; }
.card-tag {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.card-featured { border: 2px solid var(--gold); }

/* ===== HERO ===== */
.hero {
    background: var(--white);
    padding: 80px 0 60px;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1.5px solid var(--gold);
}
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--gold); display: block; }
.hero p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 480px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-features {
    display: flex;
    gap: 28px;
}
.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}
.hero-feature .icon { font-size: 1.5rem; color: var(--gold); }
.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.hero-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}
.hero-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--gold);
    color: var(--dark);
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
}

/* ===== PRODUCTS CAROUSEL ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); }
.product-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-best-seller {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
}
.product-card-body { padding: 16px; }
.product-card-body h3 { font-size: 1rem; margin-bottom: 4px; }
.product-price { color: var(--gold); font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; }
.product-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-gray); }

/* ===== PROCESS STEPS ===== */
.process-box {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.process-steps { display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
    width: 36px; height: 36px; min-width: 36px;
    background: var(--gold);
    color: var(--dark);
    font-weight: 800;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
}
.step-content h4 { color: var(--gold-dark); font-weight: 700; margin-bottom: 4px; font-size: 1rem; }
.step-content p { color: var(--text-gray); font-size: 0.9rem; }
.process-image { position: relative; }
.process-image img {
    width: 100%; border-radius: var(--radius-lg);
    height: 320px; object-fit: cover;
}
.float-badge {
    position: absolute;
    bottom: -16px; right: -16px;
    background: var(--gold);
    color: var(--dark);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
}

/* ===== TWO COLUMN SECTION ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.col-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}
.col-content h2 { margin-bottom: 20px; }
.col-content p { color: var(--text-gray); margin-bottom: 20px; }
.bullet-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.bullet-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.95rem; color: var(--text-gray);
}
.bullet-list li::before {
    content: '●';
    color: var(--gold);
    font-size: 0.6rem;
    margin-top: 6px;
    flex-shrink: 0;
}
.arrow-list { display: flex; flex-direction: column; gap: 12px; }
.arrow-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.95rem; color: var(--text-gray);
}
.arrow-list li::before { content: '→'; color: var(--gold); flex-shrink: 0; font-weight: 700; }

/* ===== CARDS GRID ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ===== GOLD PRICE TABLE ===== */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.2s;
}
.price-card.featured { border: 2px solid var(--gold); position: relative; }
.price-card .metal-name {
    font-size: 0.75rem; font-weight: 700;
    color: var(--text-gray); text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 8px;
}
.price-card .price-val {
    font-size: 1.8rem; font-weight: 800; color: var(--dark);
    margin-bottom: 4px;
}
.price-card.featured .price-val { color: var(--gold); }
.price-card .price-unit { font-size: 0.8rem; color: var(--text-gray); }
.price-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 8px;
}
.price-change.down { background: #FEE2E2; color: #DC2626; }
.price-change.up { background: #D1FAE5; color: #059669; }
.ref-badge {
    position: absolute; top: -1px; right: -1px;
    background: var(--gold); color: var(--dark);
    font-size: 0.65rem; font-weight: 800;
    padding: 4px 8px;
    border-radius: 0 var(--radius) 0 var(--radius);
    text-transform: uppercase;
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--gold-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 24px;
}
.stat-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold-dark);
    margin-bottom: 6px;
}
.stat-label { font-size: 0.9rem; color: var(--text-gray); }

/* ===== NEWS CARDS ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}
.news-card:hover { transform: translateY(-3px); }
.news-card-img { height: 200px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 20px; }
.news-date {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 10px;
}
.news-card-body h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }
.news-card-body p { font-size: 0.88rem; color: var(--text-gray); margin-bottom: 14px; }
.news-link {
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}
.contact-info { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); }
.contact-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
    width: 44px; height: 44px;
    background: var(--gold-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-label { font-weight: 700; margin-bottom: 2px; font-size: 0.9rem; }
.contact-val { color: var(--text-gray); font-size: 0.9rem; }
.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
}
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--dark); }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--white);
    color: var(--dark);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.form-input::placeholder, .form-textarea::placeholder { color: #bbb; }
.form-textarea { height: 120px; resize: vertical; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 16px 0 20px; line-height: 1.7; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.footer-social:hover { background: var(--gold); color: var(--dark); }
.footer-col h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-item {
    display: flex; align-items: flex-start; gap: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    margin-bottom: 10px;
}
.footer-contact-item span:first-child { color: var(--gold); font-size: 1rem; flex-shrink: 0; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
}

/* ===== FLOATING BUTTONS ===== */
.float-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.float-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.float-btn-rdv { background: var(--gold); color: var(--dark); }
.float-btn-wa { background: #25D366; color: white; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.highlight-box h3 { margin-bottom: 16px; color: var(--gold-dark); font-size: 1rem; font-weight: 700; }
.highlight-box ul li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border);
}
.highlight-box ul li:last-child { border-bottom: none; }
.highlight-box ul li strong { color: var(--dark); }

/* ===== INLINE STAT ===== */
.inline-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.inline-stat {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
}
.inline-stat .val { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.inline-stat .lbl { font-size: 0.8rem; color: var(--text-gray); }

/* ===== UPDATE BAR ===== */
.update-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}
.update-dot { width: 8px; height: 8px; background: #10B981; border-radius: 50%; }
.update-time { font-size: 0.88rem; color: var(--text-gray); }
.btn-refresh {
    padding: 8px 16px;
    border: 1.5px solid var(--gold);
    background: transparent;
    color: var(--gold);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
}

/* ===== PAGE HERO ===== */
.page-hero {
    background: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}
.page-hero .badge { margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { color: var(--text-gray); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
    .price-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .hamburger { display: block; }
    .main-nav.open { display: block; position: absolute; top: 80px; left: 0; right: 0; background: var(--black); padding: 20px; }
    .main-nav.open ul { flex-direction: column; gap: 4px; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .two-col { grid-template-columns: 1fr; }
    .two-col.reverse { direction: ltr; }
    .cards-3, .cards-4, .cards-2 { grid-template-columns: 1fr; }
    .process-box { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }
    .price-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
}
