/* ==========================================================================
   CTA - Call-to-Actions et sections d'appel à l'action
   ========================================================================== */

/* ==========================================================================
   CTA PRINCIPALE
   ========================================================================== */

.cta-section {
    background-color: var(--primary-hover); /* #1565c0 — ratio 6.4:1 avec blanc — WCAG AA */
    color: white;
    text-align: center;
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 15px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    /* opacity: 0.9 supprimé — réduisait le contraste à ~3.8:1 */
    line-height: 1.6;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary);
    margin: 10px;
}

.cta-section .btn:hover {
    background-color: var(--accent);
    color: white;
}

.cta-section .btn-primary {
    background: white;
    color: #1a73e8;
    border-color: white;
}

.cta-section .btn-primary:hover {
    background: #f0f0f0;
}

.cta-section .btn-outline:hover {
    background: white;
    color: #1a73e8;
}

/* Contenu de la CTA */
.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ==========================================================================
   CTA BUTTONS - Groupes de boutons CTA avec texte visible
   ========================================================================== */

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Styles pour les boutons CTA principaux */
.cta-buttons .btn {
    /* Couleurs et contraste */
    background-color: #007bff;
    color: #ffffff;
    border: 2px solid #007bff;
    
    /* Typographie */
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    
    /* Espacement et forme */
    padding: 12px 24px;
    border-radius: 6px;
    
    /* Transitions */
    transition: all 0.3s ease;
    
    /* Assurer la lisibilité */
    text-shadow: none;
    opacity: 1;
}

.cta-buttons .btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.cta-buttons .btn:focus {
    outline: 3px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}

/* Boutons secondaires */
.secondary-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-buttons .btn {
    /* Couleurs et contraste pour boutons secondaires */
    background-color: transparent;
    color: #333333;
    border: 2px solid #6c757d;
    
    /* Typographie */
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    
    /* Espacement et forme */
    padding: 10px 20px;
    border-radius: 6px;
    
    /* Transitions */
    transition: all 0.3s ease;
    
    /* Assurer la lisibilité */
    text-shadow: none;
    opacity: 1;
}

.secondary-buttons .btn:hover {
    background-color: #6c757d;
    color: #ffffff;
    transform: translateY(-1px);
}

.secondary-buttons .btn:focus {
    outline: 3px solid rgba(108, 117, 125, 0.5);
    outline-offset: 2px;
}

/* Variantes de couleurs pour différents types de CTA */
.cta-buttons .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.cta-buttons .btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

.cta-buttons .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529; /* Texte sombre pour fond clair */
}

.cta-buttons .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.cta-buttons .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.cta-buttons .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Responsive design */
@media (max-width: 768px) {
    .cta-buttons .btn {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 120px;
    }
    
    .secondary-buttons .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .cta-buttons,
    .secondary-buttons {
        gap: 10px;
    }
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .secondary-buttons .btn {
        color: #ffffff;
        border-color: #6c757d;
    }
    
    .secondary-buttons .btn:hover {
        background-color: #495057;
    }
}

/* ==========================================================================
   CTA SPÉCIALISÉES
   ========================================================================== */

/* CTA Highlight - Mise en avant */
.cta-highlight {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
}

.cta-highlight h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.cta-highlight p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
}

/* CTA Advanced */
.advanced-cta {
    background: linear-gradient(135deg, #1a73e8, #0d5bbc);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.advanced-cta h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.advanced-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* CTA Professional */
.cta-professional {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
}

.cta-professional h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cta-professional p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* ==========================================================================
   CTA OFFICIELLES ET LIENS EXTERNES
   ========================================================================== */

.official-link {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    padding: 40px 0;
    text-align: center;
    color: white;
    margin: 40px 0;
}

.official-link h3 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.official-btn {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: #4caf50;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.official-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #f8f9fa;
    color: #4caf50;
    text-decoration: none;
}

/* ==========================================================================
   CTA CONTACT ET BETA
   ========================================================================== */

.contact-cta {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact-cta h3 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.beta-btn {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: #ff6b35;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.beta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #f8f9fa;
    color: #ff6b35;
    text-decoration: none;
}

/* ==========================================================================
   CTA INTÉGRATION ET THÉMATIQUES
   ========================================================================== */

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

.integration-cta .btn {
    text-decoration: none;
}

/* CTA Astronomique */
.astro-cta {
    background-color: var(--astro-blue);
}

/* ==========================================================================
   CTA CARDS - Cartes d'appel à l'action
   ========================================================================== */

.cta-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.cta-card h3 {
    color: #1a73e8;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.cta-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Grille de cartes CTA */
.conclusion-cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ==========================================================================
   CTA MATRIX ET ASTRO - Boutons spécialisés
   ========================================================================== */

/* Boutons Matrix */
.btn-matrix {
    background: transparent;
    color: #00ff00;
    border: none;
    padding: 12px 30px;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Courier New', 'Monaco', monospace;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 10px;
    position: relative;
    overflow: hidden;
}

.btn-matrix::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 255, 0, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn-matrix:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 
        0 0 20px #00ff00,
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 10px #00ff00;
    color: #00ff00;
    text-decoration: none;
}

.btn-matrix:hover::before {
    left: 100%;
}

/* Boutons Astro */
.btn-astro-primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a365d;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    border: none;
}

.btn-astro-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    color: #1a365d;
    text-decoration: none;
}

.btn-astro-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 13px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-astro-outline:hover {
    background: white;
    color: #1a365d;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ==========================================================================
   CTA HERO - Boutons dans les sections hero
   ========================================================================== */

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

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: #2c3e50;
    text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .secondary-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .integration-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .integration-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .astro-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-astro-primary,
    .btn-astro-outline {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .conclusion-cta {
        grid-template-columns: 1fr;
    }
    
    .official-link h3,
    .contact-cta h3 {
        font-size: 1.5rem;
    }
    
    .advanced-cta,
    .cta-highlight,
    .cta-professional {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 40px 20px;
        margin: 30px 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .official-btn,
    .beta-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .btn-matrix {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 5px;
    }
    
    .btn-astro-primary,
    .btn-astro-outline {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .cta-card {
        padding: 25px 20px;
    }
    
    .advanced-cta h4,
    .cta-highlight h3,
    .cta-professional h4 {
        font-size: 1.2rem;
    }
}