/* SIRENDirect.fr - Main Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0055A4;
    --secondary: #EF4135;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #333;
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #003366 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.brand-flag {
    width: 40px;
    height: 28px;
    border-radius: 3px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
    border-bottom-color: var(--secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #003366 100%);
    color: white;
    padding: 3rem 0;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-card {
    background: white;
    color: var(--dark);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.hero-card h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.hero-subtitle {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Validation Form */
.validate-form {
    margin: 1.5rem 0;
}

.validate-input-row {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.validate-input-row input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.validate-input-row input:focus {
    outline: none;
    border-color: var(--primary);
}

.validate-input-row button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.validate-input-row button:hover {
    background: #003366;
}

/* Hero Tabs */
.hero-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.hero-tab {
    padding: 0.5rem 1rem;
    background: var(--light);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.hero-tab:hover,
.hero-tab-active {
    background: var(--primary);
    color: white;
}

/* Main Content */
main {
    padding: 2rem 0;
}

.content-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary);
}

h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin: 1.5rem 0 0.75rem;
}

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

ul, ol {
    margin: 1rem 0 1rem 2rem;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    color: var(--dark);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Info Boxes */
.info-box {
    background: #e8f4fc;
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box {
    background: #fff8e6;
    border-left: 4px solid var(--warning);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.success-box {
    background: #e8f5e9;
    border-left: 4px solid var(--success);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 1rem 0;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #003366;
    text-decoration: none;
}

.cta-button-secondary {
    background: var(--secondary);
}

.cta-button-secondary:hover {
    background: #c93429;
}

/* Ad Units */
.ad-unit {
    margin: 2rem 0;
    min-height: 250px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.ad-unit-horizontal {
    min-height: 100px;
}

/* FAQ Styles */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 0;
}

.faq-question {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.faq-question:before {
    content: "Q: ";
    color: var(--primary);
}

.faq-answer {
    color: #555;
    line-height: 1.7;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav {
        justify-content: center;
    }
    
    .hero-card {
        padding: 1.5rem;
    }
    
    .hero-card h1 {
        font-size: 1.5rem;
    }
    
    .validate-input-row {
        flex-direction: column;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
}

/* Code blocks */
code {
    background: #f4f4f4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.95em;
}

pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumbs a {
    color: var(--primary);
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

/* Number format display */
.number-format {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1.3rem;
    background: var(--light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    margin: 1rem 0;
    letter-spacing: 2px;
}

.number-format .highlight {
    color: var(--primary);
    font-weight: bold;
}

/* Comparison table */
.comparison-table th {
    background: var(--primary);
}

.comparison-table .feature-yes {
    color: var(--success);
    font-weight: bold;
}

.comparison-table .feature-no {
    color: var(--gray);
}
