/* style.css - Styles principaux */

:root {
    --primary-color: #0d47a1;
    --secondary-color: #42a5f5;
    --success-color: #2e7d32;
    --info-color: #0288d1;
    --warning-color: #f57c00;
    --danger-color: #d32f2f;
    --light-color: #f8f9fa;
    --dark-color: #1a237e;
    --text-color: #333;
    --border-radius: 10px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f5f7fa;
    padding-top: 20px;
}

/* Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-subtext {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.navbar-dark .logo-text {
    color: white;
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    font-weight: 600;
}

/* Boutons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

/* Formulaires */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(66, 165, 245, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 500;
}

/* Tableaux */
.table {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(66, 165, 245, 0.1);
}

/* Offre Cards */
.offer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Avatar */
.avatar-circle {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

/* Progress Bar */
.progress {
    border-radius: 10px;
    height: 10px;
}

.progress-bar {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 10px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-subtext {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .navbar, .btn, .card-footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    body {
        background-color: white !important;
        padding: 0 !important;
    }
}


/* Styles supplémentaires pour la page d'accueil */

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #0d47a1 0%, #1a237e 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300286a" fill-opacity="0.3" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
}

/* Cartes de fonctionnalités */
.feature-card {
    transition: transform 0.3s ease;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #42a5f5, #0d47a1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
}

/* Bouton CTA */
.cta-button {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
}

/* Cartes agents */
.agent-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.agent-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #42a5f5, #0d47a1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 40px;
}

/* Compteurs */
.stats-counter {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0d47a1, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section offres */
.offers-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.offer-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff9800;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Conteneur vidéo */
.video-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .stats-counter {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
}