/*
Theme Name: Un Cheval par Jour
Theme URI: https://un-cheval-jour.fr
Author: Bastien
Description: Thème pour pronostics hippiques
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: unchevaljour-theme
*/

:root {
    --color-bg: #f8fafc;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-primary: #059669;
    --color-primary-dark: #047857;
    --color-secondary: #b45309;
    --color-gold: #d97706;
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max-width: 1000px;
    --spacing: 2rem;
    --radius: 12px;
}

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

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.2);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo {
    font-size: 2rem;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-tagline {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    color: #ffffff;
    background: rgba(255,255,255,0.15);
}

.nav-cta {
    background: var(--color-gold) !important;
    color: #ffffff !important;
}

.nav-cta:hover {
    background: #b45309 !important;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Main Content */
.site-main {
    flex: 1;
    padding: 3rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
    margin: -3rem calc(-50vw + 50%) 3rem;
    width: 100vw;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: inline-block;
    background: var(--color-gold);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

.hero-cta:hover {
    background: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

/* Page Content */
.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.page-content {
    font-size: 1rem;
}

.page-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.page-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.card-highlight {
    border: 2px solid var(--color-gold);
    position: relative;
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: #ffffff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pricing-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 3px solid var(--color-gold);
    position: relative;
}

.pricing-card.featured::before {
    content: "Populaire";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: #ffffff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.pricing-features li::before {
    content: "✓";
    color: var(--color-success);
    font-weight: 700;
    margin-right: 0.5rem;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.pricing-btn:hover {
    background: var(--color-primary-dark);
}

/* Results */
.results-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.results-table th,
.results-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.results-table th {
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
}

.results-table tr:hover {
    background: #f1f5f9;
}

.result-win {
    color: var(--color-success);
    font-weight: 700;
}

.result-loss {
    color: var(--color-error);
    font-weight: 700;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 2.5rem 0;
    color: rgba(255,255,255,0.7);
}

.footer-content {
    text-align: center;
}

.footer-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-warning p {
    margin: 0;
    font-size: 0.85rem;
    color: #fcd34d;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero dans le contenu */
.page-content .hero {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    margin: -3rem calc(-50vw + 50%) 3rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.page-content .hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-content .hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #ffffff;
}

.page-content .hero-cta {
    display: inline-block;
    background: #d97706;
    color: #ffffff !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
    border-bottom: none !important;
}

.page-content .hero-cta:hover {
    background: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

@media (max-width: 768px) {
    .page-content .hero {
        padding: 3rem 1rem;
    }
    .page-content .hero h1 {
        font-size: 2rem;
    }
}

/* Prono Table Styles */
.prono-table table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.prono-table th {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 1rem;
}

.prono-table td {
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.prono-table tr:nth-child(even) td {
    background: #f8fafc;
}

.prono-table tr:hover td {
    background: #e0f2fe;
}

.prono-table td:first-child {
    font-weight: 600;
    color: var(--color-primary-dark);
    width: 40%;
}

.prono-table td:last-child {
    color: var(--color-text);
}

/* Restricted Content Styles */
.prono-restricted {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius);
    margin: 2rem 0;
}

.prono-restricted h2 {
    font-size: 1.8rem;
    color: #92400e;
    margin-bottom: 1rem;
}

.prono-restricted p {
    color: #78350f;
    margin-bottom: 1rem;
}

.prono-restricted .btn-premium {
    display: inline-block;
    background: var(--color-primary);
    color: #ffffff !important;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.prono-restricted .btn-premium:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Navigation mois */
.mois-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mois-nav .nav-btn {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mois-nav .nav-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.mois-nav .mois-actuel {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
}

.prono-mois {
    text-align: center;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form textarea {
    resize: vertical;
}

.contact-submit {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-submit:hover {
    background: var(--color-primary-dark);
}

.contact-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.contact-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Bouton Stripe Checkout */
.btn-stripe-checkout {
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff !important;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-stripe-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.pricing-card form {
    margin-top: 20px;
}
