/* ========================================
   STYLES GÉNÉRAUX
   ======================================== */

body {
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    margin: 0;
    padding: 0;
}

a.link-primary { color: #0d6efd; }        /* par défaut Bootstrap */
a.link-primary:hover { color: #0b5ed7; }
.hero a.link-primary { color:#0d6efd; text-shadow:none; } /* évite le blanc dans la carte */


/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../img/bg-hero3.webp') center/cover no-repeat;
    border-radius: 2rem;
    z-index: 0;
}

.hero-background::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15));
  pointer-events:none;
  border-radius: 2rem;
}

.hero .container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 1rem;
}

.hero h1 {
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
    font-size: 2rem;
    margin-bottom: auto;
}

.hero .card, 
.hero .bg-white {
    margin-top: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
}

/* ========================================
   FORMULAIRES
   ======================================== */



.form-card{
  background:#fff; border-radius:1rem; /* ou var(--bs-border-radius-xl) */
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  padding: 0.5rem 2rem;
  max-width: 980px;
}
@media (max-width: 575.98px){
  .form-card{ padding: 1rem; }
  .hero .display-4{ font-size:2rem; } /* H1 un poil plus petit sur mobile */
}

.form-card h2,
.form-card .form-label {
    color: #212529 !important;
    text-align: left;
}

.form-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    color: #0055A5;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.form-section-title i {
    margin-right: 0.5rem;
}

.form-control {
    border-radius: 0.75rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #0055A5;
    box-shadow: 0 0 0 0.2rem rgba(0, 85, 165, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Validation des champs */
input.is-invalid, select.is-invalid, textarea.is-invalid {
    border-color: #dc3545;
    background-color: #fff6f6;
}

.invalid-feedback {
    font-size: 0.9em;
}

.form-control.is-valid {
    border-color: #28a745;
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* ========================================
   BOUTONS
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, #0055A5, #004080);
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004080, #003366);
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0,85,165,0.3);
}

.btn-outline-primary {
    border-color: #0055A5;
    color: #0055A5;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: #0055A5;
    border-color: #0055A5;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(220,53,69,0.3);
}

.btn-outline-danger {
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    transform: translateY(-1px);
}

.btn-outline-dark.rounded-pill {
    border-width: 1.5px;
    padding: 0.4rem 1.2rem;
    font-weight: 500;
}

/* Boutons spécialisés */
.btn-continue {
    background: #00a8cc;
    color: white;
    font-weight: 500;
    padding: 12px;
}

.btn-continue:hover {
    background: #0099b8;
    color: white;
}

.btn-add-ride {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-add-ride:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    background: white !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    font-size: 1.1rem;
}

.navbar-brand img {
    height: 80px;
    transition: all 0.2s ease;
    object-fit: contain;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: #495057 !important;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: #0055A5 !important;
    background-color: #f8f9fa;
}

.dropdown-menu {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0055A5;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    margin-right: 0.5rem;
}

/* ========================================
   PROFIL UTILISATEUR
   ======================================== */

.profile-header {
    background: linear-gradient(135deg, #0055A5 0%, #004080 100%);
    color: white;
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 0;
}

.profile-content {
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.profile-card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    animation: fadeInUp 0.5s ease-out;
}

.profile-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0055A5, #004080);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #0055A5;
}

.badge-custom {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.8rem;
}

.badge-warning-custom {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.8rem;
}

.quick-action {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.quick-action:hover {
    color: inherit;
    text-decoration: none;
}

/* ========================================
   ZONE DANGEREUSE (SUPPRESSION COMPTE)
   ======================================== */

.danger-zone {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.danger-card {
    background: rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.warning-list {
    list-style: none;
    padding: 0;
}

.warning-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
}

.warning-list li:last-child {
    border-bottom: none;
}

.warning-list li i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* ========================================
   FORCE DU MOT DE PASSE
   ======================================== */

.password-strength {
    margin-bottom: 1rem;
}

.password-strength .progress {
    height: 6px;
    border-radius: 3px;
    background-color: #e9ecef;
}

.password-strength .progress-bar {
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.password-strength-indicator {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.password-strength-indicator h6 {
    color: #1565c0;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.password-strength-indicator ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.password-strength-indicator li {
    font-size: 0.8rem;
    color: #1976d2;
    margin-bottom: 2px;
}

.password-requirement {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.password-requirement.valid {
    color: #28a745;
}

.password-requirement.invalid {
    color: #dc3545;
}

.password-requirement i {
    margin-right: 6px;
    font-size: 0.75rem;
}

/* ========================================
   MODALES
   ======================================== */

.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 1rem 1rem;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #212529;
}

.modal .modal-dialog {
    max-width: 800px;
}

.modal-lg {
    max-width: 95vw;
}

/* Modale de déactivation */
#deactivateModal .modal-body ul li {
    display: flex;
    align-items: center;
}

#deactivateModal .modal-body ul li i {
    min-width: 1.5rem;
    text-align: center;
}

#deactivateModal .modal-body .text-muted {
    text-align: center;
}

#deactivateModal .modal-body .modal-description {
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   AVATAR ET CROPPING
   ======================================== */

#avatarPreview {
    display: block;
    max-width: 100%;
    height: auto;
}

#openCropModal {
    margin-top: 0.5rem;
}

#cropperImage {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ========================================
   PARTAGE WHATSAPP
   ======================================== */

.short-link {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-family: monospace;
    font-size: 14px;
    color: #333;
    outline: none;
    min-width: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.05);
}

.whatsapp-icon, .copy-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.copy-btn {
    background: white;
    border: 1px solid #dadce0;
    color: #5f6368;
}

.copy-btn:hover {
    background: #f8f9fa;
}

.copy-btn.copied {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.share-box .form-label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.share-box input[type="text"] {
    min-width: 0;
}

.share-box .btn {
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
}

.share-box input.form-control {
    font-size: 0.9rem;
}

#copyFeedback {
    font-size: 0.85rem;
}

/* ========================================
   CONNEXION/INSCRIPTION
   ======================================== */

.signup-choice-card {
    border-radius: 16px;
}

.signup-choice-card .btn {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.signup-choice-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.signup-choice-card .input-group-text {
    border-radius: 8px 0 0 8px;
}

.signup-choice-card .form-control {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.signup-choice-card .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 204, 0.25);
    border-color: #00a8cc;
}

.signup-choice-card .input-group:focus-within .input-group-text {
    border-color: #00a8cc;
    background-color: #f8f9fa;
}

/* Boutons de connexion sociale */
.social-login-btn {
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    padding: 12px 16px;
}

.social-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.social-login-btn.btn-google {
    background-color: #fff;
    color: #333;
}

.social-login-btn.btn-google:hover {
    background-color: #f8f9fa;
    color: #333;
}

.social-login-btn.btn-facebook {
    background-color: #1877f2;
    color: white;
}

.social-login-btn.btn-facebook:hover {
    background-color: #166fe5;
    color: white;
}

.social-login-btn.btn-apple {
    background-color: #000;
    color: white;
}

.social-login-btn.btn-apple:hover {
    background-color: #333;
    color: white;
}

/* Séparateur "ou" */
.separator-or {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.separator-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
    z-index: 1;
}

.separator-or span {
    background: white;
    padding: 0 15px;
    color: #6c757d;
    font-size: 0.875rem;
    position: relative;
    z-index: 2;
}

/* ========================================
   CRÉATION D'ÉVÉNEMENT
   ======================================== */

.event-new-page .ai-image-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
}

.event-new-page .ai-option-card {
    transition: all 0.3s ease;
    border: 2px solid #0d6efd;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
}

.event-new-page .ai-option-card:hover {
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.event-new-page .manual-option-card {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.event-new-page .manual-option-card.active {
    opacity: 1;
    border: 2px solid #6c757d;
}

.event-new-page .manual-option-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-new-page .image-preview {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.event-new-page .image-preview img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.event-new-page .ai-preview-active {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border: 2px solid #0d6efd;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.event-new-page .section-header {
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.event-new-page .form-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.event-new-page .address-autocomplete-results {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1050;
}

.event-new-page .address-autocomplete-results .list-group-item {
    border: none;
    border-bottom: 1px solid #f8f9fa;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.event-new-page .address-autocomplete-results .list-group-item:hover {
    background-color: #f8f9fa;
}

.event-new-page .car-ride-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.event-new-page .car-ride-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.event-new-page .map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

/* ========================================
   DÉTAIL ÉVÉNEMENT
   ======================================== */

.event-show-page .event-header {
    margin-bottom: 2rem;
}

.event-show-page .event-header h1 {
    font-size: 2rem;
}

.event-show-page .event-header .meta {
    font-size: 0.95rem;
    color: #6c757d;
}

.event-show-page .event-main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
}

.event-show-page .event-image {
    flex: 1 1 40%;
    max-width: 400px;
}

.event-show-page .event-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 270px;
}

.event-show-page .event-infos {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-show-page .info-card {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.event-show-page .info-card h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-show-page .info-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.event-show-page #map {
    height: 180px;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.event-show-page .event-rides {
    margin-top: 2rem;
}

.event-show-page .event-rides h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.event-show-page .ride-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-show-page .car-card {
    background-color: #f1f3f5;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.event-show-page .car-card h6 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.event-show-page .car-card small {
    font-size: 0.85rem;
}

.event-show-page .car-card .btn {
    margin-top: 0.5rem;
}

.event-show-page .passenger-list {
    margin-top: 1rem;
}

.event-show-page .passenger-list ul {
    padding-left: 1rem;
}

.event-show-page .passenger-list li {
    font-size: 0.85rem;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
}

.breadcrumb-item a {
    color: #0055A5;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #004080;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ========================================
   ALERTES
   ======================================== */

.alert {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f1b0b7);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0c5460;
}

/* ========================================
   TOOLTIPS
   ======================================== */

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.tooltip-custom {
    position: relative;
    cursor: help;
}

.tooltip-custom::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.tooltip-custom:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    font-size: 0.9rem;
}

footer a {
    color: #dee2e6;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ========================================
   UTILITAIRES
   ======================================== */

.datepicker {
    z-index: 1055 !important;
}

.text-muted {
    color: #6c757d !important;
}

.txt_blue {
    color: #003366;
}

.border_blue {
    border-color: #003366;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.profile-card:nth-child(1) { animation-delay: 0.1s; }
.profile-card:nth-child(2) { animation-delay: 0.2s; }
.profile-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.btn-danger:focus {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */

.form-control:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 85, 165, 0.25);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .form-card {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .profile-header {
        padding: 1.5rem;
        text-align: center;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .info-icon {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .danger-zone {
        padding: 1.5rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .profile-header::before {
        width: 200px;
        height: 200px;
        top: -30%;
        right: -15%;
    }
    
    .event-show-page .event-main {
        flex-direction: column;
    }
    
    .event-show-page .event-image,
    .event-show-page .event-infos {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .profile-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .profile-card {
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
    }
    
    .d-flex.justify-content-between .btn:last-child {
        margin-bottom: 0;
    }
}

#addressResults li {
  cursor: pointer;
}

/* Sidebar tweaks */
.sidebar-search .form-control { min-width: 0; }

/* Social buttons : mêmes dimensions & alignés */
.social-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:.5rem; }
.btn-social{
  height:38px; width:100%;
  display:flex; align-items:center; justify-content:center;
  border-radius:.5rem; padding:0;
}
.btn-social i{ font-size:1rem; }

/* Harmonisation des polices - uniquement pour les articles */
.blog-article {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

/* Titres dans l'article */
.blog-article h1,
.blog-article h2,
.blog-article h3 {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

/* Espacement entre les sections */
.blog-article section {
  margin-bottom: 2.5em;
}

/* Listes */
.blog-article ul {
  margin: 1em 0 1.5em 1.5em;
  padding-left: 0;
}
.blog-article ul li {
  margin-bottom: 0.5em;
}

/* Paragraphes */
.blog-article p {
  margin-bottom: 1.2em;
}

/* Mise en valeur des sous-titres numérotés */
.blog-article h3 {
  color: #2b6cb0;
  font-size: 1.15rem;
}

/* Émojis alignés correctement */
.blog-article h2::before,
.blog-article h3::before {
  margin-right: 0.3em;
}

/* Largeur du contenu principal pour plus de confort */
.blog-article {
  max-width: 760px;
  margin: auto;
  padding: 0 20px;
}

/* ===========================
   Dashboard Administrateur
   =========================== */
.dashboard-admin {
    --ec-green: #2e7d32;
    --ec-green-100: #e8f5e9;
    --ec-blue: #1e88e5;
    --ec-blue-100: #e3f2fd;
    --ec-teal: #26a69a;
    --ec-teal-100: #e0f2f1;
    --ec-amber: #ffb300;
    --ec-amber-100: #fff8e1;
    --ec-ink: #1b1f23;
}

/* Titres */
.dashboard-admin .page-title {
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--ec-ink);
}
.dashboard-admin .page-subtitle {
    color: #6b7280;
    font-weight: 500;
}
.dashboard-admin .section-title {
    font-weight: 700;
    margin-top: 2rem;
}

/* Cards KPI */
.dashboard-admin .kpi-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    transition: transform .12s ease, box-shadow .12s ease;
}
.dashboard-admin .kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}
.dashboard-admin .kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem .25rem 1.25rem;
    font-weight: 600;
}
.dashboard-admin .kpi-body {
    padding: .25rem 1.25rem 1.25rem 1.25rem;
}
.dashboard-admin .kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .65);
}

/* Icônes sur blocs colorés (verts, bleus, teal, amber) */
.dashboard-admin .bg-ec-green .kpi-icon,
.dashboard-admin .bg-ec-blue .kpi-icon,
.dashboard-admin .bg-ec-teal .kpi-icon,
.dashboard-admin .bg-ec-amber .kpi-icon {
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
}

/* Icônes sur blocs "soft" (fonds pastels) */
.dashboard-admin .soft-ec-green .kpi-icon {
    background: var(--ec-green);
    color: #fff;
}
.dashboard-admin .soft-ec-blue .kpi-icon {
    background: var(--ec-blue);
    color: #fff;
}
.dashboard-admin .soft-ec-teal .kpi-icon {
    background: var(--ec-teal);
    color: #fff;
}
.dashboard-admin .soft-ec-amber .kpi-icon {
    background: var(--ec-amber);
    color: #fff;
}


.dashboard-admin .kpi-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    margin: .25rem 0 0 0;
}
.dashboard-admin .kpi-label {
    color: #6b7280;
    font-size: .95rem;
}
.dashboard-admin .muted {
    color: #6b7280;
}

/* Palettes */
.dashboard-admin .bg-ec-green {
    background: linear-gradient(135deg, var(--ec-green), #43a047);
    color: #fff;
}
.dashboard-admin .bg-ec-blue {
    background: linear-gradient(135deg, var(--ec-blue), #42a5f5);
    color: #fff;
}
.dashboard-admin .bg-ec-teal {
    background: linear-gradient(135deg, var(--ec-teal), #4db6ac);
    color: #fff;
}
.dashboard-admin .bg-ec-amber {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1b1f23;
}
.dashboard-admin .soft-ec-green { background: var(--ec-green-100); }
.dashboard-admin .soft-ec-blue { background: var(--ec-blue-100); }
.dashboard-admin .soft-ec-teal { background: var(--ec-teal-100); }
.dashboard-admin .soft-ec-amber { background: var(--ec-amber-100); }
