/* =============================================
   Costco FlashRabais Sync - Styles CSS
   Conforme au BRANDING_SPECS.md
   Date: 2 février 2026
   ============================================= */

/* ===== VARIABLES (BRANDING_SPECS) ===== */
:root {
    /* Couleurs principales */
    --color-primary: #dc3545;
    --color-primary-dark: #c82333;
    
    /* Couleurs secondaires */
    --color-text-primary: #343a40;
    --color-text-secondary: #6c757d;
    --color-background: #f8f9fa;
    --color-background-light: #e9ecef;
    
    /* Couleurs d'accent */
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-info: #17a2b8;
    
    /* Typographie */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-button: 0 4px 12px rgba(220, 53, 69, 0.3);
    
    /* Bordures */
    --border-radius: 8px;
    --border-radius-full: 50%;
}

/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.header img {
    height: 80px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

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

/* ===== LOGO HEADER (pour pages CGU/Terms) ===== */
.logo-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-header img {
    height: 60px;
    margin-bottom: 15px;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

.btn-secondary {
    background: var(--color-text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* ===== SECTIONS ===== */
.download-section {
    background: white;
    padding: 40px;
    margin: -50px auto 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ===== FEATURES ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* ===== STEPS (Comment ça marche) ===== */
.steps {
    background: white;
    padding: 60px 40px;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.steps h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 40px;
    font-size: 2rem;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-content h3 {
    color: #495057;
    margin-bottom: 10px;
}

/* ===== VIDEO PLACEHOLDER ===== */
.video-placeholder {
    background: var(--color-background-light);
    padding: 100px 40px;
    text-align: center;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.video-placeholder h3 {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* ===== PLATFORMS ===== */
.platforms {
    text-align: center;
    padding: 40px 0;
}

.platforms h2 {
    color: var(--color-primary);
    margin-bottom: 30px;
}

.platform-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.platform {
    text-align: center;
}

.platform-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: white;
    padding: 60px 40px;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.faq-section h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 30px;
}

.faq-item h3 {
    color: #495057;
    margin-bottom: 10px;
}

/* ===== SEARCH BOX (FAQ) ===== */
.search-box {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.search-box input {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid var(--color-background-light);
    border-radius: var(--border-radius);
}

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

/* ===== CATEGORY (FAQ) ===== */
.category {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.category h2 {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.faq-question {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-answer {
    color: var(--color-text-secondary);
    margin-left: 30px;
}

.faq-answer ul {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-answer code {
    background: var(--color-background);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

/* ===== CONTACT BOX ===== */
.contact-box {
    background: #fff3cd;
    border-left: 4px solid var(--color-warning);
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.contact-box h3 {
    color: #856404;
    margin-bottom: 10px;
}

/* ===== CGU/TERMS STYLES ===== */
.highlight {
    background-color: #fff3cd;
    border-left: 4px solid var(--color-warning);
    padding: 15px;
    margin: 20px 0;
}

.date {
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: 30px;
}

h1 {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 10px;
}

h2 {
    color: #495057;
    margin-top: 30px;
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
}

h3 {
    color: var(--color-text-secondary);
    margin-top: 20px;
}

ul {
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-text-primary);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer img {
    height: 50px;
    margin-bottom: 15px;
}

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

.footer a:hover {
    text-decoration: underline;
}

/* ===== LANGUAGE TOGGLE ===== */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.language-toggle a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header img {
        height: 60px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .platform-icons {
        flex-direction: column;
    }
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
