/* ============================================
   CMS Pepperstone - Styles Principaux
   Fidèle au design pepperstone.com
   ============================================ */

:root {
    --primary: #0a0e17;
    --primary-blue: #1a56ff;
    --green: #00b67a;
    --green-dark: #009d69;
    --dark: #0a0e17;
    --dark2: #131722;
    --light: #f5f7fa;
    --light2: #eef1f6;
    --gray: #6b7280;
    --gray-dark: #374151;
    --white: #ffffff;
    --border: #e5e7eb;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.25s ease;
}

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

body {
    font-family: var(--font);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 100%; margin: 0 auto; padding: 0 40px; }

/* ============================================
   RISK WARNING BAR (barre bleue en haut)
   ============================================ */
.risk-bar {
    background: var(--primary-blue);
    color: var(--white);
    font-size: 0.72rem;
    line-height: 1.5;
    padding: 8px 24px;
    text-align: center;
}
.risk-bar strong { font-weight: 700; }

/* ============================================
   HEADER - Full width noir Pepperstone
   ============================================ */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--dark);
}

.header-top-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-tabs { display: flex; }
.header-tabs a {
    display: inline-block; padding: 8px 18px;
    font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.1); border-bottom: none;
    border-radius: 6px 6px 0 0; margin-right: 4px;
    transition: var(--transition);
}
.header-tabs a:hover, .header-tabs a.active {
    color: var(--white); background: rgba(255,255,255,0.06);
}

.header-top-right {
    display: flex; align-items: center; gap: 18px;
    font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.header-top-right a { color: rgba(255,255,255,0.5); }
.header-top-right a:hover { color: var(--white); }

.header-main {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0;
    height: 60px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 28px; height: 28px; background: var(--primary-blue); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg, .logo-icon i { color: var(--white); font-size: 14px; }
.logo-text { font-size: 1.15rem; font-weight: 700; color: var(--white); letter-spacing: -0.3px; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-item > a {
    display: flex; align-items: center; gap: 5px;
    padding: 18px 16px; color: var(--white); font-size: 0.88rem; font-weight: 500;
    transition: var(--transition);
}
.nav-item > a:hover { color: rgba(255,255,255,0.7); }
.dropdown-arrow { font-size: 0.55rem; opacity: 0.5; transition: transform 0.3s; }
.nav-item:hover .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
    position: absolute; top: 100%; left: -20px;
    background: var(--white); border-radius: 10px; padding: 12px 8px;
    min-width: 300px; box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: var(--transition); z-index: 100;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
    display: block; padding: 10px 14px; border-radius: 8px;
    color: var(--dark); font-size: 0.88rem; font-weight: 500;
}
.nav-dropdown a:hover { background: var(--light); }
.nav-dropdown a .dropdown-desc { display: block; font-size: 0.76rem; color: var(--gray); margin-top: 2px; font-weight: 400; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 22px; border-radius: 6px; font-size: 0.88rem; font-weight: 600;
    border: none; cursor: pointer; transition: var(--transition); font-family: var(--font);
}
.btn-login {
    background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.25);
    padding: 8px 20px; border-radius: 6px;
}
.btn-login:hover { border-color: var(--white); }
.btn-blue {
    background: var(--primary-blue); color: var(--white);
}
.btn-blue:hover { background: #1347dd; }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark2); }
.btn-white { background: var(--white); color: var(--dark); border: 1.5px solid var(--border); }
.btn-white:hover { border-color: var(--dark); }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; padding: 8px; }

/* ============================================
   HERO - fond bleu foncé/noir, image à droite
   ============================================ */
.hero-section {
    background: var(--dark);
    position: relative; overflow: hidden;
    padding: 60px 0 0;
}
.hero-inner-wrap {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 420px; gap: 40px;
}
.hero-text { flex: 1; max-width: 540px; padding: 40px 0; }
.hero-text h1 {
    font-size: 2.8rem; font-weight: 800; color: var(--white); line-height: 1.15;
    margin-bottom: 16px; letter-spacing: -0.5px;
}
.hero-text p {
    font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 28px; line-height: 1.7;
}
.hero-text .btn-blue { padding: 14px 36px; font-size: 0.95rem; }

.hero-image {
    flex: 1; display: flex; align-items: center; justify-content: center;
    position: relative;
}
.hero-image-placeholder {
    width: 100%; max-width: 520px; height: 320px;
    background: linear-gradient(135deg, #131722 0%, #1a2332 50%, #0f1923 100%);
    border-radius: 16px; position: relative; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.hero-image-placeholder::before {
    content: ''; position: absolute; top: 20px; left: 20px; right: 20px; bottom: 20px;
    border: 1px solid rgba(26,86,255,0.15); border-radius: 10px;
}
.hero-image-placeholder::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 180px; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(26,86,255,0.4), transparent);
}
.chart-bars {
    position: absolute; bottom: 40px; left: 30px; right: 30px;
    display: flex; align-items: flex-end; gap: 6px; height: 140px;
}
.chart-bar {
    flex: 1; border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, rgba(26,86,255,0.6), rgba(26,86,255,0.2));
}
.chart-bar.red { background: linear-gradient(180deg, rgba(239,68,68,0.6), rgba(239,68,68,0.2)); }
.chart-bar.green { background: linear-gradient(180deg, rgba(34,197,94,0.6), rgba(34,197,94,0.2)); }

/* Bannière slider sous le hero */
.hero-banner {
    background: var(--primary-blue); color: var(--white); text-align: center;
    padding: 16px 24px; font-size: 0.95rem; font-weight: 600;
}
.hero-banner .slider-dot-row { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.hero-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); display: inline-block; }
.hero-banner .dot.active { background: var(--white); }

/* ============================================
   TRUSTPILOT BAR
   ============================================ */
.trustpilot-bar {
    padding: 32px 0; text-align: center;
    border-bottom: 1px solid var(--border);
}
.trustpilot-bar p { font-size: 0.85rem; color: var(--gray); margin-bottom: 6px; }
.trustpilot-stars { display: inline-flex; gap: 3px; color: var(--green); font-size: 1.1rem; }
.trustpilot-label { font-size: 1rem; font-weight: 700; color: var(--dark); margin-left: 8px; }
.trustpilot-sub { font-size: 0.85rem; color: var(--gray); margin-top: 4px; }
.payment-icons { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.payment-icon {
    width: 40px; height: 26px; background: var(--light); border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; color: var(--gray); border: 1px solid var(--border);
}

/* ============================================
   MARKET TABLE
   ============================================ */
.market-section { padding: 50px 0; }
.market-section h3 { font-size: 0.8rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }

.market-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.market-tab {
    padding: 10px 20px; font-size: 0.85rem; font-weight: 600; color: var(--gray);
    cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: var(--transition);
}
.market-tab:hover, .market-tab.active { color: var(--dark); border-color: var(--dark); }

.market-table { width: 100%; border-collapse: collapse; }
.market-table th {
    text-align: left; padding: 10px 12px; font-size: 0.78rem; font-weight: 600;
    color: var(--gray); text-transform: uppercase; border-bottom: 1px solid var(--border);
}
.market-table td {
    padding: 12px; font-size: 0.9rem; border-bottom: 1px solid var(--light2);
}
.market-table tr:hover td { background: var(--light); }
.market-table .instrument { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.market-table .instrument-icon {
    width: 28px; height: 28px; border-radius: 50%; background: var(--light);
    display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--primary-blue);
}
.price-up { color: #22c55e; }
.price-down { color: #ef4444; }

/* ============================================
   SECTIONS COMMUNES
   ============================================ */
.section { padding: 70px 0; }
.section-gray { background: var(--light); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark2 { background: var(--dark2); color: var(--white); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-label {
    display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--gray); margin-bottom: 12px;
}
.section-dark .section-label { color: rgba(255,255,255,0.4); }
.section-header h2 { font-size: 2.1rem; font-weight: 800; line-height: 1.2; margin-bottom: 14px; letter-spacing: -0.5px; }
.section-header p { font-size: 1rem; color: var(--gray); line-height: 1.7; }
.section-dark .section-header p { color: rgba(255,255,255,0.55); }

/* ============================================
   PLATFORMS
   ============================================ */
.platforms-section { padding: 70px 0; border-bottom: 1px solid var(--border); }

.platforms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.platforms-grid-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.platform-card {
    background: var(--white); border: 1px solid var(--border); border-radius: 12px;
    padding: 28px 24px; transition: var(--transition);
}
.platform-card:hover { border-color: var(--primary-blue); box-shadow: 0 4px 20px rgba(26,86,255,0.08); }

.platform-card-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--primary-blue); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: 16px;
}
.platform-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.platform-card p { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }
.platform-card .learn-more {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.82rem; font-weight: 600; color: var(--primary-blue); margin-top: 12px;
}
.platform-card .learn-more:hover { gap: 8px; }

/* ============================================
   FEATURES (Pourquoi Pepperstone)
   ============================================ */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.feature-card {
    background: var(--dark2); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 0;
    transition: var(--transition); overflow: hidden;
}
.feature-card:hover { border-color: rgba(26,86,255,0.3); }
.feature-card:has(.feature-card-img) { padding: 0; }
.feature-card:has(.feature-card-img) > div { padding: 20px 24px 24px; }

.feature-icon-box {
    width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 12px;
}
.feature-icon-blue { background: rgba(26,86,255,0.15); color: var(--primary-blue); }
.feature-icon-green { background: rgba(34,197,94,0.15); color: #22c55e; }
.feature-icon-purple { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.feature-icon-orange { background: rgba(249,115,22,0.15); color: #f97316; }

.feature-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.feature-card-img { width: 100%; border-radius: 10px; margin-bottom: 16px; max-height: 180px; object-fit: cover; }

/* ============================================
   AWARDS
   ============================================ */
.awards-section { padding: 50px 0; border-top: 1px solid var(--border); }
.awards-row {
    display: flex; justify-content: center; align-items: center;
    gap: 32px; flex-wrap: wrap;
}
.award-badge {
    text-align: center; padding: 12px 16px; transition: var(--transition);
}
.award-badge:hover { transform: scale(1.05); }
.award-badge .award-icon-circle {
    width: 64px; height: 64px; border-radius: 50%;
    border: 2px solid var(--border); margin: 0 auto 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800; color: var(--dark);
    background: var(--white);
}
.award-badge .award-icon-circle.best { border-color: var(--primary-blue); color: var(--primary-blue); }
.award-badge h5 { font-size: 0.78rem; font-weight: 600; color: var(--dark); }
.award-badge span { font-size: 0.72rem; color: var(--gray); }

/* ============================================
   CTA
   ============================================ */
.cta-section {
    background: var(--dark); color: var(--white); text-align: center; padding: 60px 0;
}
.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-section p { font-size: 1rem; color: rgba(255,255,255,0.55); margin-bottom: 28px; max-width: 550px; margin-left: auto; margin-right: auto; }

/* ============================================
   HERO INNER (pages secondaires)
   ============================================ */
.hero-inner {
    background: var(--dark); padding: 100px 0 60px; color: var(--white);
}
.hero-inner h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.hero-inner p { font-size: 1.05rem; color: rgba(255,255,255,0.55); max-width: 600px; }

/* ============================================
   CONTENT
   ============================================ */
.content-section { padding: 60px 0; }
.content-section h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 18px; color: var(--dark); }
.content-section h3 { font-size: 1.3rem; font-weight: 700; margin: 24px 0 12px; color: var(--dark); }
.content-section p, .content-section li { font-size: 0.95rem; line-height: 1.8; color: var(--gray-dark); }
.content-section ul { padding-left: 20px; margin: 12px 0; }
.content-section strong { color: var(--dark); }
.content-body img { border-radius: 10px; margin: 20px 0; }

/* ============================================
   FOOTER - Style Pepperstone
   ============================================ */
.site-footer {
    background: var(--dark); color: rgba(255,255,255,0.5); padding-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 30px;
}
.footer-top .logo-text { color: var(--white); font-size: 1.1rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: var(--transition);
}
.footer-social a:hover { color: var(--white); border-color: var(--white); }

.footer-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px;
    padding-bottom: 30px;
}
.footer-col h4 { color: var(--white); font-size: 0.82rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 0.82rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); }

.footer-disclaimer-section {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
}
.footer-disclaimer {
    font-size: 0.72rem; color: rgba(255,255,255,0.35); line-height: 1.7;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 16px 0; text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--dark); font-size: 0.88rem; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 0.9rem; transition: var(--transition); font-family: var(--font); background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(26,86,255,0.1);
}
.contact-info-card {
    padding: 24px; background: var(--light); border-radius: 12px; margin-bottom: 16px;
    display: flex; gap: 14px; align-items: flex-start;
}
.contact-icon {
    width: 42px; height: 42px; background: var(--primary-blue); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0;
}
.contact-info-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; }
.contact-info-card p { font-size: 0.85rem; color: var(--gray); }

.support-card {
    padding: 24px; background: var(--dark); border-radius: 12px; color: var(--white); margin-top: 20px;
}
.support-card h4 { margin-bottom: 8px; font-size: 0.95rem; }
.support-card p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ============================================
   404
   ============================================ */
.page-404 {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; background: var(--dark); color: var(--white);
}
.page-404 h1 { font-size: 7rem; font-weight: 900; color: var(--primary-blue); line-height: 1; }
.page-404 h2 { font-size: 1.8rem; margin: 10px 0 16px; }
.page-404 p { color: rgba(255,255,255,0.5); margin-bottom: 28px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    .platforms-grid-bottom { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .hero-text h1 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .risk-bar { font-size: 0.65rem; padding: 6px 12px; }
    .header-tabs { display: none; }

    .main-nav {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background: var(--dark); flex-direction: column; padding: 70px 20px 20px;
        transition: right 0.3s ease; z-index: 1001; overflow-y: auto;
    }
    .main-nav.active { right: 0; }
    .nav-item > a { padding: 12px 16px; }
    .nav-dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; background: rgba(255,255,255,0.03); margin-top: 0; display: none;
    }
    .nav-item:hover .nav-dropdown, .nav-item.open .nav-dropdown { display: block; }
    .nav-dropdown a { color: rgba(255,255,255,0.6); }
    .nav-dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--white); }

    .hero-section { padding: 40px 0 0; }
    .hero-text h1 { font-size: 1.9rem; }
    .hero-text { padding: 20px 0; }

    .section-header h2 { font-size: 1.7rem; }
    .platforms-grid { grid-template-columns: 1fr; }
    .platforms-grid-bottom { grid-template-columns: 1fr; }
    .market-tabs { overflow-x: auto; flex-wrap: nowrap; }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .awards-row { gap: 16px; }
}

/* ---- Overlay mobile ---- */
.nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1000; display: none;
}
.nav-overlay.active { display: block; }

/* ---- Animations ---- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: fadeInUp 0.5s ease forwards; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
