/* ===== ANIMATIONS COMMUNES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

/* ===== STYLES DE CARTE COMMUNS ===== */
.card {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Carte de base blanche avec ombre */
.card-base {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.card-base:hover {
    box-shadow: 0 6px 20px rgba(17, 145, 81, 0.2);
}

.card-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0.5rem 0;
    letter-spacing: 0.5px;
}

.card-header h3 strong {
    color: var(--primary-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(17, 145, 81, 0.1);
}

/* ===== STYLES D'INPUT COMMUNS ===== */
input.form-control,
.form-control {
    border-radius: 0.5rem;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    background-color: #fff;
}

input.form-control::placeholder,
.form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}

input.form-control:hover,
.form-control:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(17, 145, 81, 0.25);
    transform: translateY(-1px);
}

input.form-control:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(17, 145, 81, 0.15),
                0 4px 12px rgba(17, 145, 81, 0.1);
    transform: scale(1.02);
    outline: none;
    background-color: #fff;
}

/* ===== STYLES DE LABEL COMMUNS ===== */
label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

label:hover {
    color: var(--primary-dark);
}

/* ===== STYLES DE GROUPE DE FORMULAIRE ===== */
.form-group {
    margin-bottom: 1.5rem;
}

/* ===== STYLES D'ALERTE COMMUNS ===== */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 500;
    animation: slideIn 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--primary-color);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* ===== STYLES DE BOUTONS COMMUNS ===== */
.btn-base {
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
}

button.btn-primary,
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(17, 145, 81, 0.3);
    position: relative;
    overflow: hidden;
    color: white;
}

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

button.btn-primary:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 145, 81, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

button.btn-primary:hover::before,
.btn-primary:hover::before {
    left: 100%;
}

button.btn-primary:active,
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(17, 145, 81, 0.3);
}

button.btn-primary:focus,
.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(17, 145, 81, 0.25);
}

button.btn-success,
.btn-success {
    background: var(--gradient-primary);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(17, 145, 81, 0.3);
    color: white;
}

button.btn-success:hover,
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 145, 81, 0.4);
}

button.btn-success:active,
.btn-success:active {
    transform: translateY(0);
}

/* ===== STYLES DE BOUTONS DE TRANSPORT COMMUNS ===== */
.transport-btn {
    background-color: #34495E;
    border: 2px solid transparent;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.transport-btn:hover:not(.active) {
    background-color: #3E5568;
    transform: translateY(-2px);
}

.transport-btn.active,
button.transport-btn.active {
    background-color: #0066B3 !important;
    border: 2px solid #3399DD !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.3) !important;
    transform: scale(1.05) !important;
}

.transport-btn.active:hover,
button.transport-btn.active:hover {
    background-color: #004D8A !important;
    border: 2px solid #3399DD !important;
    box-shadow: 0 0 0 4px rgba(0, 102, 179, 0.4) !important;
    transform: scale(1.08) !important;
}

.transport-btn.active i,
button.transport-btn.active i {
    color: #fff !important;
    font-weight: bold !important;
}

/* ===== STYLES DE LOADER COMMUNS ===== */
.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(74, 144, 226, 0.2);
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== STYLES DE GRADIENT TEXT ===== */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    button.btn-primary,
    button.btn-success {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}

