/* Styles spécifiques pour CVthèque BTS */

/* Variables CSS */
:root {
    --primary-color: #4c5a7d;
    --secondary-color: #28a745;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.8);
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* Section Hero */
.hero-section {
    background: linear-gradient(rgba(76, 90, 125, 0.8), rgba(76, 90, 125, 0.9));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Cartes d'espaces */
.space-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.space-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.space-card .card-header {
    border-bottom: none;
    padding: 2rem 1.5rem 1rem;
}

.space-card .card-body {
    padding: 1.5rem;
}

/* Boutons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3a4560;
    border-color: #3a4560;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Statistiques */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #5a6a8a);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
}

.stats-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.stats-card.success {
    background: linear-gradient(135deg, var(--secondary-color), #32c757);
}

/* Sections */
.section-title {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Feature boxes */
.feature-box {
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* CV Cards */
.cv-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.cv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cv-card-header {
    background: linear-gradient(135deg, var(--primary-color), #5a6a8a);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
}

.cv-card-body {
    padding: 1.5rem;
}

/* Formulaires */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
    line-height: 1.5;
    vertical-align: middle;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 90, 125, 0.25);
}

/* Correction des listes déroulantes */
select.form-control {
    height: calc(2.25rem + 4px);
    padding: 0.5rem 1.75rem 0.5rem 0.75rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select.form-control option {
    padding: 8px 12px;
    line-height: 1.4;
}

/* Correction spécifique pour les filtres */
.filters-section .form-control {
    min-height: 42px;
    display: flex;
    align-items: center;
}

.filters-section select.form-control {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

/* Badges */
.badge {
    border-radius: 15px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background-color: var(--secondary-color);
}

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

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

footer h5 {
    color: #ecf0f1;
    margin-bottom: 1rem;
}

footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ecf0f1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .card-columns {
        column-count: 1;
    }
    
    .btn-group-toggle .btn {
        margin-bottom: 0.5rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Mode sombre */
.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.dark-mode .card {
    background-color: #2d2d2d;
    border-color: #404040;
}

.dark-mode .navbar {
    background-color: #1a1a1a !important;
}

.dark-mode .btn-outline-primary {
    color: #4c5a7d;
    border-color: #4c5a7d;
}

.dark-mode .stats-card {
    box-shadow: 0 4px 6px rgba(255,255,255,0.1);
}

.dark-mode .form-control {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}
.dark-mode .form-control:focus {
    background-color: #2d2d2d;
    border-color: var(--primary-color);
    color: #e0e0e0;
}
