/* Styles personnalisés avec palette de couleurs raffinée */

/* Variables de couleurs */
:root {
    --indigo: #114d61;
    --indigo-light: rgba(17, 77, 97, 0.1);
    --indigo-medium: rgba(17, 77, 97, 0.2);
    --indigo-border: rgba(17, 77, 97, 0.3);
    --slate: #64748b;
    --slate-light: #f8fafc;
    --slate-dark: #334155;
}

/* Animation d'apparition uniquement au chargement */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Styles généraux */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
}

.bg-indigo {
    background-color: var(--indigo);
}

.btn-indigo {
    background-color: var(--indigo);
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-indigo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00acba;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-indigo:hover {
    color: white;
    box-shadow: 0 4px 12px rgba(0, 172, 186, 0.3);
}

.btn-indigo:hover::before {
    opacity: 1;
}

.btn-indigo:active {
    background-color: #00acba;
}

/* TomSelect personnalisations raffinées */
.ts-control {
    min-height: 46px;
    padding: 0.5rem 0.75rem;
    border-color: #e2e8f0;
    font-size: 15px;
    box-shadow: none;
}

.ts-control:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 0.25rem var(--indigo-light);
}

.ts-dropdown {
    border-radius: 0.5rem;
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.ts-dropdown .option.region-option {
    background-color: var(--indigo-light);
    font-weight: 500;
    padding: 12px 14px;
    margin-top: 8px;
    border-radius: 6px;
}

.ts-dropdown .option.dept-option {
    padding: 10px 16px 10px 26px;
    border-bottom: 1px solid #f0f0f0;
}

.ts-wrapper.multi .ts-control > div.region-item {
    background: var(--indigo-medium);
    color: var(--indigo);
    border-color: var(--indigo-border);
    border-radius: 20px;
    margin: 4px 8px 4px 0;
    padding: 4px 12px;
}

.ts-wrapper.multi .ts-control > div.dept-item {
    background: #f1f5f9;
    color: var(--slate-dark);
    border-radius: 20px;
    border-color: #e2e8f0;
    margin: 4px 8px 4px 0;
    padding: 4px 12px;
}

/* Styles pour la carte avec plus d'aération */
.card {
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* Amélioration des alertes et messages */
.toast {
    border-radius: 10px;
}

.alert {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alert-light {
    background-color: rgba(17, 77, 97, 0.03);
    border-color: rgba(17, 77, 97, 0.1) !important;
}

.text-primary {
    color: var(--indigo) !important;
}

a {
    color: var(--indigo);
    transition: color 0.2s ease;
}

a:hover {
    color: #00acba;
}

.ts-dropdown .option.region-option {
    background-color: rgba(17, 77, 97, 0.1);
    font-weight: bold;
}

.ts-dropdown .option.dept-option {
    padding-left: 20px;
}

.ts-wrapper.multi .ts-control > div.region-item {
    background: rgba(17, 77, 97, 0.2);
    color: #114d61;
}

.ts-dropdown .option {
    text-align: left;
}

button {
    background-color: #114d61;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0d3b4b;
}

button:active {
    background-color: #092935;
}

/* Styles déplacés depuis index.php */
.parlementaire-card {
    transition: transform 0.2s;
    cursor: pointer;
}
.parlementaire-card:hover {
    transform: translateY(-5px);
}
.photo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}
.photo-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.initials-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6c757d;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.type-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}
.type-badge.depute {
    color: #0d6efd;
    border: 2px solid #0d6efd;
}
.type-badge.senateur {
    color: #dc3545;
    border: 2px solid #dc3545;
}
.modal-photo-container {
    width: 150px; 
    height: 150px;
    position: relative;
}
.about-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.about-link:hover {
    color: #fff;
}
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fab-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.fab-container .dropdown-menu {
    margin-bottom: 0.5rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border: none;
    min-width: 250px;
}