/**
 * Styles pour le bloc Double CTA Levrard
 */

/* ============================================
   CONTENEUR PRINCIPAL
   ============================================ */

   .double-cta-block {
    width: 97%;
    padding: 0;
    margin: 0 auto 60px;
}

.double-cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 300px;
}

/* ============================================
   ITEMS CTA
   ============================================ */

.double-cta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
}

.double-cta-content {
    max-width: 500px;
    text-align: center;
    width: 100%;
}

/* Séparateur vertical entre les 2 CTA */
.double-cta-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */

.double-cta-surtitle {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
}

.double-cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.double-cta-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 30px 0;
    line-height: 1.5;
}

/* ============================================
   BOUTONS
   ============================================ */

.double-cta-btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Style bouton blanc */
.double-cta-btn-white {
    background: #ffffff;
    color: #333333;
    border: 2px solid #ffffff;
}

.double-cta-btn-white:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Style bouton outline */
.double-cta-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.double-cta-btn-outline:hover {
    background: #ffffff;
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   VARIANTES DE COULEURS DE FOND
   ============================================ */

/* Vert (par défaut - comme sur le screenshot) */
.double-cta-green {
    background: linear-gradient(135deg, #2d9a6e 0%, #3bb883 100%);
}

.double-cta-green .double-cta-btn-white {
    background: #ffffff;
    color: #2d9a6e;
}

.double-cta-green .double-cta-btn-white:hover {
    background: transparent;
    color: #ffffff;
}

/* Rouge Levrard */
.double-cta-red {
    background: linear-gradient(135deg, #E73331 0%, #F04442 100%);
}

.double-cta-red .double-cta-btn-white {
    background: #ffffff;
    color: #E73331;
}

.double-cta-red .double-cta-btn-white:hover {
    background: transparent;
    color: #ffffff;
}

/* Gris foncé */
.double-cta-dark {
    background: linear-gradient(135deg, #2c2c2c 0%, #3d3d3d 100%);
}

.double-cta-dark .double-cta-btn-white {
    background: #ffffff;
    color: #2c2c2c;
}

.double-cta-dark .double-cta-btn-white:hover {
    background: transparent;
    color: #ffffff;
}

/* Bleu */
.double-cta-blue {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.double-cta-blue .double-cta-btn-white {
    background: #ffffff;
    color: #2563eb;
}

.double-cta-blue .double-cta-btn-white:hover {
    background: transparent;
    color: #ffffff;
}

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

/* Tablette */
@media (max-width: 992px) {
    .double-cta-title {
        font-size: 28px;
    }
    
    .double-cta-subtitle {
        font-size: 15px;
    }
    
    .double-cta-item {
        padding: 50px 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .double-cta-container {
        grid-template-columns: 1fr;
    }
    
    /* Supprimer le séparateur vertical en mobile */
    .double-cta-left::after {
        display: none;
    }
    
    /* Ajouter un séparateur horizontal */
    .double-cta-left {
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .double-cta-title {
        font-size: 24px;
    }
    
    .double-cta-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .double-cta-item {
        padding: 40px 20px;
    }
    
    .double-cta-btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .double-cta-title {
        font-size: 22px;
    }
    
    .double-cta-subtitle {
        font-size: 13px;
    }
    
    .double-cta-surtitle {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .double-cta-item {
        padding: 35px 15px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.double-cta-content {
    animation: fadeInUp 0.6s ease-out;
}

.double-cta-left .double-cta-content {
    animation-delay: 0.1s;
}

.double-cta-right .double-cta-content {
    animation-delay: 0.2s;
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */

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

/* Améliorer le contraste pour l'accessibilité */
@media (prefers-contrast: high) {
    .double-cta-surtitle {
        background: rgba(0, 0, 0, 0.5);
    }
    
    .double-cta-btn-outline {
        border-width: 3px;
    }
}

/* Mode sombre système */
@media (prefers-color-scheme: dark) {
    /* Déjà optimisé pour le mode sombre */
}

/* ============================================
   PRINT
   ============================================ */

@media print {
    .double-cta-block {
        break-inside: avoid;
    }
}