/**
 * Feuille de style pour la partie publique du plugin Landing Pages UTM v3.0
 */

/* === STYLES POUR LES ÉLÉMENTS DE CONTENU === */
.lp-content {
    margin-bottom: 2em;
    line-height: 1.6;
}

/* === TITRES === */
.lp-main-title {
    font-size: 2.2em;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.lp-secondary-title {
    font-size: 1.8em;
    margin-bottom: 1em;
    font-weight: 600;
    color: #444;
    line-height: 1.3;
}

/* === CHAPEAU D'INTRODUCTION === */
.lp-intro-text {
    font-size: 1.2em;
    margin-bottom: 1.5em;
    font-style: italic;
    color: #555;
    line-height: 1.5;
    text-align: justify;
}

/* === IMAGES === */
.lp-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5em;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Image centrée */
.lp-image.center {
    margin-left: auto;
    margin-right: auto;
}

/* Image flottante */
.lp-image.float-left {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.lp-image.float-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

/* === CONTENU PRINCIPAL === */
.lp-main-content {
    font-size: 1.1em;
    line-height: 1.7;
    color: #333;
}

.lp-main-content h2 {
    font-size: 1.8em;
    margin: 1.5em 0 0.8em 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.3em;
}

.lp-main-content h3 {
    font-size: 1.5em;
    margin: 1.3em 0 0.7em 0;
    color: #34495e;
}

.lp-main-content p {
    margin-bottom: 1.2em;
    text-align: justify;
}

.lp-main-content ul,
.lp-main-content ol {
    margin: 1.2em 0;
    padding-left: 2em;
}

.lp-main-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.lp-main-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    font-style: italic;
    color: #555;
}

/* === CLASSES UTILITAIRES === */
.lp-highlight {
    background-color: rgba(255, 255, 0, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

.lp-emphasis {
    font-weight: 600;
    color: #2c3e50;
}

.lp-muted {
    color: #6c757d;
    font-size: 0.9em;
}

/* === LIENS TRACKÉS === */
.lp-track-click, 
.lp-track-link {
    position: relative;
    transition: all 0.3s ease;
}

.lp-track-click:hover, 
.lp-track-link:hover {
    text-decoration: underline;
    color: #3498db;
}

/* === CONTAINERS ET LAYOUTS === */
.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lp-section {
    margin: 2em 0;
    padding: 1.5em 0;
}

.lp-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5em;
}

.lp-flex {
    display: flex;
    gap: 1.5em;
    align-items: flex-start;
}

.lp-flex-center {
    align-items: center;
}

.lp-flex-wrap {
    flex-wrap: wrap;
}

/* === BOUTONS ET CALL-TO-ACTION === */
.lp-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.lp-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-decoration: none;
}

.lp-btn-large {
    padding: 16px 32px;
    font-size: 1.1em;
}

.lp-btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

.lp-btn-secondary {
    background-color: #95a5a6;
}

.lp-btn-secondary:hover {
    background-color: #7f8c8d;
}

.lp-btn-success {
    background-color: #27ae60;
}

.lp-btn-success:hover {
    background-color: #229954;
}

/* === FORMULAIRES === */
.lp-form-group {
    margin-bottom: 1.5em;
}

.lp-form-label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #2c3e50;
}

.lp-form-input,
.lp-form-textarea,
.lp-form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.lp-form-input:focus,
.lp-form-textarea:focus,
.lp-form-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* === ALERTES ET NOTIFICATIONS === */
.lp-alert {
    padding: 1em 1.5em;
    border-radius: 6px;
    margin-bottom: 1.5em;
    border-left: 4px solid;
}

.lp-alert-info {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #0d47a1;
}

.lp-alert-success {
    background-color: #e8f5e8;
    border-color: #4caf50;
    color: #1b5e20;
}

.lp-alert-warning {
    background-color: #fff3e0;
    border-color: #ff9800;
    color: #ef6c00;
}

.lp-alert-error {
    background-color: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lp-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.lp-delay-1 { animation-delay: 0.1s; }
.lp-delay-2 { animation-delay: 0.2s; }
.lp-delay-3 { animation-delay: 0.3s; }

/* === RESPONSIVE DESIGN === */
@media screen and (max-width: 768px) {
    .lp-container {
        padding: 0 15px;
    }
    
    .lp-main-title {
        font-size: 1.8em;
    }
    
    .lp-secondary-title {
        font-size: 1.5em;
    }
    
    .lp-intro-text {
        font-size: 1.1em;
    }
    
    .lp-flex {
        flex-direction: column;
        gap: 1em;
    }
    
    .lp-image.float-left,
    .lp-image.float-right {
        float: none;
        margin: 0 0 1em 0;
    }
    
    .lp-btn {
        display: block;
        text-align: center;
        margin: 0.5em 0;
    }
}

@media screen and (max-width: 480px) {
    .lp-main-title {
        font-size: 1.5em;
    }
    
    .lp-secondary-title {
        font-size: 1.3em;
    }
    
    .lp-card {
        padding: 1em;
    }
    
    .lp-btn {
        padding: 14px 20px;
        font-size: 1em;
    }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    .lp-main-title,
    .lp-secondary-title {
        color: #f8f9fa;
    }
    
    .lp-intro-text,
    .lp-main-content {
        color: #e9ecef;
    }
    
    .lp-card {
        background-color: #2c3e50;
        color: #f8f9fa;
    }
    
    .lp-form-input,
    .lp-form-textarea,
    .lp-form-select {
        background-color: #34495e;
        color: #f8f9fa;
        border-color: #4a5f7a;
    }
}

/* === PRINT STYLES === */
@media print {
    .lp-btn,
    .lp-track-click,
    .lp-track-link {
        display: none;
    }
    
    .lp-image {
        box-shadow: none;
        transform: none;
    }
    
    .lp-main-title,
    .lp-secondary-title,
    .lp-intro-text,
    .lp-main-content {
        color: #000;
    }
}