/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #1a56db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Header & Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a56db;
}

.logo span {
    color: #2563eb;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: #4b5563;
    font-weight: 500;
}

.nav-links a:hover {
    color: #1a56db;
    text-decoration: none;
}

/* Main Content */
main {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

h1 {
    font-size: 2.2rem;
    color: #111827;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

/* Promo Box (CTA) */
.promo-box {
    background-color: #eff6ff;
    border: 2px dashed #3b82f6;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.promo-code {
    display: inline-block;
    background-color: #1d4ed8;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    letter-spacing: 2px;
}

.btn-cta {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.btn-cta:hover {
    background-color: #1d4ed8;
    text-decoration: none;
    color: white;
}

/* Cards & Grid for Index / Blog */
.grid-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
}

/* Forms */
.contact-form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Footer */
footer {
    background-color: #1f2937;
    color: #f3f4f6;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Mobile First Adjustments */
@media (min-width: 768px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

/* Animations Micro-interactions */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-popup {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Social Proof Section */
.social-proof {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #25d366;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    background: #e5e7eb;
    object-fit: cover;
}

.avatar:first-child {
    margin-left: 0;
}

.social-text {
    font-size: 0.95rem;
    color: #4b5563;
}

.social-text strong {
    color: #111827;
}

/* Chart Container Responsiveness */
.chart-container {
    width: 100%;
    height: auto; /* Laisser le contenu définir la hauteur */
    min-height: 450px;
    background-color: #111827;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

#oddsChartCanvas {
    width: 100%;
    flex: 1; /* Prend tout l'espace disponible dans le conteneur */
    min-height: 300px;
}

@media (max-width: 639px) {
    .chart-container {
        min-height: 400px;
        padding: 1rem;
    }
    
    #oddsChartCanvas {
        min-height: 280px;
    }
}
