
/* ========================================
   MA P'TITE PLACE - STYLES PERSONNALISÉS
   ========================================
   
   📋 TABLE DES MATIÈRES
   ====================================
   1. Variables & Configuration
   2. Styles de base (HTML, Body, Containers)
   3. Composants Bootstrap
      • Boutons
      • Formulaires
      • Liens
      • Alertes & Badges
      • Barres de progression
      • Cartes
      • Modales
      • Tables
      • Pagination
      • Dropdowns
      • Breadcrumb
      • Classes utilitaires
   4. Navigation (Navbar)
   5. Footer
   6. Dashboard & KPI
   7. Gestion des droits
   8. Parking & Réservations
   9. Sites & Entreprises
   10. Responsive
   11. Accessibilité
   ======================================== */

/* ==========================================
   1. VARIABLES & CONFIGURATION
   ========================================== */

/* Font personnalisée */
@font-face {
    font-family: "maptiteplace";
    src: url("fonts/maptiteplace.woff") format('woff');
}

/* Variables CSS */
:root {
    /* ========================================
       DIRECTION ARTISTIQUE - COULEURS PRINCIPALES
       Modifier ces valeurs pour changer toute la charte graphique
       ======================================== */
    
    /* Couleur primaire (violet clair) */
    --color-primary: #667eea;
    --color-primary-rgb: 102, 126, 234;
    --color-primary-hover: #5a6fd8;
    --color-primary-light: #8b9cf0;
    
    /* Couleur secondaire (violet foncé) */
    --color-secondary: #764ba2;
    --color-secondary-rgb: 118, 75, 162;
    --color-secondary-hover: #6a4190;
    --color-secondary-light: #8d64b3;
    
    /* Gradient principal (utilisé partout) */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-primary-hover: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-secondary-hover) 100%);
    
    /* ========================================
       COULEURS BOOTSTRAP (utilisent les variables DA)
       ======================================== */
    --bs-primary: var(--color-primary);
    --bs-primary-rgb: var(--color-primary-rgb);
    --bs-secondary: #898989;
    --bs-secondary-rgb: 137, 137, 137;
    --bs-success: #28a745;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-info: #17a2b8;
    --bs-light: #f8f9fa;
    --bs-dark: #0a2f57;
    
    /* Couleurs personnalisées (legacy, utilisent les nouvelles variables) */
    --primary-gradient: var(--gradient-primary);
    --primary-hover: var(--color-primary-hover);
    
    /* Géométrie */
    --border-radius-custom: 12px;
    --shadow-custom: 0 4px 15px rgba(var(--color-primary-rgb), 0.15);
    --transition-custom: all 0.3s ease;
    
    /* Couleurs métier */
    --mpp-primary: var(--color-primary);
    --mpp-secondary: var(--color-secondary);
    --mpp-border: #e2e8f0;
    --mpp-text: #1e293b;
    --mpp-bg-soft: #f8fafc;
    --mpp-glow: rgba(var(--color-primary-rgb), 0.25);
}

.brandfont {
    font-family: 'maptiteplace', sans-serif !important;
    color: var(--bs-dark) !important;
}


/* ==========================================
   2. STYLES DE BASE
   ========================================== */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Support pour les appareils avec encoche (iOS) */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* Cache les barres de défilement (PWA iOS) */
::-webkit-scrollbar {
    display: none;
}

.container-fluid {
    padding: 0;
}

.main-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    padding: 2rem;
}

.border-end {
    border-right: 1px solid #dee2e6 !important;
}


/* ==========================================
   3. COMPOSANTS BOOTSTRAP
   ========================================== */

/* --- Transitions globales --- */
.btn,
.form-control,
.form-select,
.card,
a {
    transition: var(--transition-custom) !important;
}


/* --- Boutons --- */

.btn-primary {
    background: var(--gradient-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--gradient-primary-hover) !important;
    border-color: var(--color-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.4) !important;
    color: white !important;
}

.btn-outline-primary {
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3) !important;
    color: white !important;
}

.btn-success {
    color: white !important;
}
.btn-success:hover, .btn-success:focus {
    color: white !important;
}

/* Nav-links actifs (onglets Bootstrap) */
.nav-link {
    color: white !important;
}
.nav-link.active {
    color: var(--bs-primary) !important;
}

.nav-pills .nav-link {
    color: var(--color-primary) !important;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link{
    color: white !important;
    background: var(--gradient-primary) !important;
}

.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: btn-loading-spin 1s linear infinite;
    display: inline-block;
    margin-left: 0.5rem;
}

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

.btn-modern {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-modern:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px);
}

/* --- Formulaires --- */
.form-control:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

.form-select:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

.form-check-input:checked {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

/* Validation states */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: var(--bs-success) !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25) !important;
}

.form-select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25) !important;
}

.form-check-input:checked {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25) !important;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: var(--bs-danger) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Liens */
a {
    color: var(--bs-primary) !important;
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover) !important;
}

/* Alertes */
.alert-primary {
    background-color: rgba(var(--color-primary-rgb), 0.1) !important;
    border-color: rgba(var(--color-primary-rgb), 0.2) !important;
    color: var(--color-primary) !important;
}

.alert-secondary {
    background-color: rgba(var(--color-secondary-rgb), 0.1) !important;
    border-color: rgba(var(--color-secondary-rgb), 0.2) !important;
    color: var(--color-secondary) !important;
}

/* Badges */
.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Progress bars */
.progress-bar {
    background: var(--gradient-primary) !important;
}

/* Navbar */
.navbar-brand {
    color: var(--bs-dark) !important;
    font-family: 'maptiteplace', sans-serif;
}

/* Cards avec style moderne */
.card {
    border: none !important;
    border-radius: var(--border-radius-custom) !important;
    box-shadow: var(--shadow-custom) !important;
    transition: var(--transition-custom);
}

.card-header {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--border-radius-custom) var(--border-radius-custom) 0 0 !important;
}

.card-header .text-muted {
    color:#dee2e6 !important;
}

/* --- Modales --- */
.modal-header {
    border-bottom: 2px solid var(--bs-light) !important;
}

.modal-footer {
    border-top: 2px solid var(--bs-light) !important;
}

/* --- Tables --- */
.table-primary {
    background-color: rgba(102, 126, 234, 0.1) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05) !important;
}

/* Pagination */
.page-link:hover {
    background-color: rgba(102, 126, 234, 0.1) !important;
    border-color: var(--bs-primary) !important;
}

.page-item.active .page-link {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

/* Dropdowns */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(102, 126, 234, 0.1) !important;
    color: var(--bs-primary) !important;
}

/* Borders et radius personnalisés */
.rounded-custom {
    border-radius: var(--border-radius-custom) !important;
}

/* Classes utilitaires personnalisées */
.text-primary-custom {
    color: var(--color-primary) !important;
}

.bg-primary-custom {
    background: var(--gradient-primary) !important;
}

.border-primary-custom {
    border-color: var(--color-primary) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-custom) !important;
}

/* Effets de transition sur les composants */
.btn,
.form-control,
.form-select,
.card,
a {
    transition: var(--transition-custom) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        border-radius: 10px !important;
    }
    
    .btn {
        font-size: 16px !important; /* Évite le zoom sur iOS */
    }
    
    .form-control {
        font-size: 16px !important; /* Évite le zoom sur iOS */
    }
}

/* Animation pour les boutons avec état de loading */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: btn-loading-spin 1s linear infinite;
    display: inline-block;
    margin-left: 0.5rem;
}

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


/* ==========================================
   4. NAVIGATION (NAVBAR)
   ========================================== */

.navbar {
    z-index: 1030;
}

.navbar-collapse {
    z-index: 1030;
}

.navbar {
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 0;
}

.navbar-brand img {
    filter: brightness(0) invert(1);
}

.navbar-custom .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.7rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 0.1rem;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    transform: translateY(-1px);
}

.navbar-custom .navbar-brand span {
    color: white !important;
    font-size: 1.3rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    margin: 0 0.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    color: white !important;
    transform: translateX(5px);
}

.dropdown-item:hover .text-muted {
    color:#dee2e6 !important;
}





.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    display: none;
    z-index: 1060;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Flèche avec CSS au lieu de caractère Unicode */
.dropdown-submenu > a::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid #6c757d;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    margin-left: 0;
}

/* Changer la couleur de la flèche au hover */
.dropdown-submenu > a:hover::after {
    border-left-color: #fff;
}

/* S'assurer que le texte ne chevauche pas la flèche */
.dropdown-submenu > a {
    position: relative;
    padding-right: 40px !important;
}

/* Mobile - pas de sous-menu, on liste tout */
@media (max-width: 991.98px) {
    .dropdown-submenu .dropdown-menu {
        position: static;
        display: block !important;
        left: auto;
        background: rgba(0,0,0,0.05);
        border: none;
        box-shadow: none;
        margin: 0;
        padding-left: 20px;
    }
    
    .dropdown-submenu > a::after {
        display: none;
    }
    
    .dropdown-submenu > a {
        padding-right: 16px !important;
    }
}

/* Amélioration de l'affichage du sous-menu */
.dropdown-submenu .dropdown-menu {
    margin-left: 0 2px;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.col-title {
    background: var(--primary-gradient) !important; 
    border-radius: 20px; 
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1); 
    padding: 10px 15px 1px 15px; 
    color: white; 
    margin-bottom: 20px;
}





.notif-item {
    cursor: pointer !important;
}

.search-container {
    position: relative;
}

.search-input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 25px;
    padding: 0.5rem 1rem 0.5rem 2.5rem; 
    backdrop-filter: blur(10px);
    position: relative; 
    z-index: 1;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-input:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
    color: white;
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    z-index: 2;             
    pointer-events: none;  
    font-size: 1rem;    
    line-height: 1;
}

.btn-modern {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-modern:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    color: white;
    transform: translateY(-2px);
}

.notification-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.user-avatar {
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.05);
}

.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.main-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 2rem auto;
    padding: 2rem;
}

@media (max-width: 768px) {
    .search-container {
        margin-top: 1rem;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
}


/* ==========================================
   5. FOOTER
   ========================================== */
.footer-custom {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer-links a {
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-primary) !important;
    transform: translateY(-1px);
}

.footer-links i {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive footer */
@media (max-width: 767.98px) {
    .footer-custom .row {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
}

/* Animation au hover du logo */
.footer-custom img {
    transition: all 0.3s ease;
}

.footer-custom img:hover {
    transform: scale(1.05);
    opacity: 1 !important;
}


/* ==========================================
   6. DASHBOARD & KPI
   ========================================== */

/* Mini tableau de bord */

/* Cartes KPI */
.kpi {
  border-left: 6px solid rgba(0,0,0,0.06) !important;
}
.kpi-success { border-left-color: var(--bs-success) !important; }
.kpi-warning { border-left-color: var(--bs-warning) !important; }
.kpi-danger { border-left-color: var(--bs-danger) !important; }
.kpi-info    { border-left-color: var(--bs-info) !important; }

.kpi-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  box-shadow: var(--shadow-custom);
  font-size: 1.1rem;
}

.kpi-label {
  font-weight: 600;
  letter-spacing: .2px;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--bs-dark);
}

/* Boutons du sélecteur période */
.btn-group .btn.active {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}

/* Petites utilitaires pour les "subtle" si Bootstrap < 5.3 */
.bg-success-subtle { background-color: rgba(40,167,69,.12) !important; }
.bg-warning-subtle { background-color: rgba(255,193,7,.16) !important; }
.bg-danger-subtle  { background-color: rgba(220,53,69,.14) !important; }
.bg-info-subtle    { background-color: rgba(23,162,184,.14) !important; }
.bg-primary-subtle { background-color: rgba(var(--color-primary-rgb),.14) !important; }
.bg-secondary-subtle { background-color: rgba(var(--color-secondary-rgb),.14) !important; }

/* Accessibilité focus */
.kpi .stretched-link:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
  outline: 3px solid rgba(var(--color-primary-rgb),.35);
  outline-offset: 2px;
}

/* Responsive : densifier sur mobile */
@media (max-width: 576px) {
  .kpi-value { font-size: 1.5rem; }
  .kpi-icon { width: 42px; height: 42px; border-radius: 10px; }
}

/* Lien "Détails" stylé pour les cartes KPI */
.kpi-link {
    position: relative; /* garde le comportement stretched-link */
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
    color: var(--color-primary) !important;
    background: rgba(var(--color-primary-rgb), 0.08);
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
    box-shadow: 0 2px 10px rgba(var(--color-primary-rgb), 0.12);
    transition: var(--transition-custom) !important;
    text-decoration: none !important;
}

.kpi-link:hover,
.kpi-link:focus {
    background: var(--gradient-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.30) !important;
}

.kpi-link .bi {
    font-size: 1.15rem;
    transition: transform .2s ease;
}

.kpi-link:hover .bi,
.kpi-link:focus .bi {
    transform: translateX(2px);
}

/* État "subtle" selon l’importance (optionnel) */
.kpi-danger .kpi-link {
    color: var(--bs-danger) !important;
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.25);
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.12);
}
.kpi-danger .kpi-link:hover,
.kpi-danger .kpi-link:focus {
    background: linear-gradient(135deg, #ff6b6b 0%, #dc3545 100%) !important;
    border-color: var(--bs-danger) !important;
}

/* Accessibilité */
.kpi-link:focus-visible {
    outline: 3px solid rgba(var(--color-primary-rgb), 0.35);
    outline-offset: 2px;
}











/* Cartes */
.mpp-card{
  background:#fff;
  border-radius:14px;
  border:1px solid var(--mpp-border) !important;
}

/* Sidebar catégories */
.mpp-cat-list .list-group-item{
  border:0;
  padding:.65rem .9rem;
  font-weight:500;
  color:var(--mpp-text);
}
.mpp-cat-list .list-group-item + .list-group-item{
  border-top:1px dashed var(--mpp-border);
}
.mpp-cat-list .list-group-item.active{
  color:#fff;
  /*background:linear-gradient(135deg, var(--mpp-secondary), var(--mpp-primary));*/
  background-color: white;
}
.mpp-cat-list .list-group-item:not(.active):hover .mpp-shortcut{
  opacity:.8;
}

/* Barre de recherche */
.mpp-search{
  background:var(--mpp-bg-soft);
  border-radius:10px;
}

/* Sections */
.mpp-section{ overflow:hidden; }
.mpp-section-header{
  background:linear-gradient(90deg, rgba(124,58,237,.08), rgba(84,105,212,.08));
  border-bottom:1px solid var(--mpp-border);
  z-index:1;
}

/* Lignes de droits */
.mpp-right-row{
  display:flex;
  align-items:center;
  padding:.65rem .9rem;
}
.mpp-right-row + .mpp-right-row{ border-top:1px dashed var(--mpp-border); }
.mpp-right-row:hover{ background:var(--mpp-bg-soft); }

/* Switch natif Bootstrap 5 (couleurs) */
.form-switch .form-check-input{
  cursor:pointer;
  border:1px solid #cfd4da;
  background-color:#eef1f7;
  transition:background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.form-switch .form-check-input:focus{
  box-shadow:0 0 0 .2rem var(--mpp-glow);
  border-color:var(--mpp-secondary);
}
.form-switch .form-check-input:checked{
  background-color:var(--mpp-primary);
  border-color:var(--mpp-primary);
}

.mpp-master.is-mixed{
  box-shadow: 0 0 0 .2rem rgba(124,58,237,.25);
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}



.parking-cta {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parking-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/CallToAction_GestionStationnementSite.png');
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    z-index: 0;
}

.parking-cta-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.8) 0%, rgba(99, 102, 241, 0.7) 100%);
}

.parking-cta-content {
    z-index: 1;
}

.parking-cta .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}



.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--bs-primary);
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--bs-primary-dark);
}

.breadcrumb-item.active {
    color: var(--bs-secondary);
}



/* Style pour les cartes avec effet hover */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* ==== Card principale avec gradient ==== */
.reservation-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reservation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

/* En-tête avec gradient */
.reservation-header {
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.reservation-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    backdrop-filter: blur(10px);
}

/* Animation du cercle de parking */
.icon-circle-animated {
    animation: pulseIcon 3s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
}

@keyframes pulseRotate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.3);
    }
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }
}

/* ==== État vide ==== */
.empty-state .empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #9ca3af;
}

/* ==== Badge numéro de place MODERNE ==== */
.spot-display-modern {
    background: var(--gradient-primary);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.spot-display-modern::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.spot-main-info {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.spot-badge-modern {
    position: relative;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 32px;
    font-weight: 900;
    color: white;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.badge-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), transparent);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spot-badge-modern:hover .badge-glow {
    opacity: 1;
}

.spot-info-text h5 {
    color: white;
    font-weight: 600;
    margin: 0;
    font-size: 18px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.spot-reference {
    text-align: right;
    color: white;
    z-index: 1;
}

.ref-label {
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ref-value {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* ==== Cards d'information élégantes ==== */
.info-cards-elegant {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.info-card-elegant {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card-elegant:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.15);
    border-color: #cbd5e1;
}

.info-card-elegant:hover::before {
    opacity: 1;
}

.info-icon-elegant {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    position: relative;
}

.info-icon-elegant.building {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.info-icon-elegant.level {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.info-icon-elegant.time {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #ea580c;
}

.info-text {
    flex: 1;
    min-width: 0;
}

.info-value {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-hint {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ==== Boutons d'action modernes ==== */
.action-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid;
    background: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn i {
    font-size: 18px;
}

.action-btn-primary {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.action-btn-primary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.3);
}

.action-btn-secondary {
    border-color: #64748b;
    color: #64748b;
}

.action-btn-secondary:hover {
    background: #64748b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.3);
}

.action-btn-danger {
    border-color: #ef4444;
    color: #ef4444;
}

.action-btn-danger:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* ==== Animation de chargement ==== */
.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 5px solid #f3f4f6;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==== Animations d'apparition ==== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.info-card-elegant {
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

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

.action-btn {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.action-btn:nth-child(1) { animation-delay: 0.4s; }
.action-btn:nth-child(2) { animation-delay: 0.5s; }
.action-btn:nth-child(3) { animation-delay: 0.6s; }

/* ==== Responsive ==== */
@media (max-width: 767.98px) {
    .spot-display-modern {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .spot-main-info {
        flex-direction: column;
        width: 100%;
    }

    .spot-badge-modern {
        font-size: 28px;
        padding: 14px 24px;
        min-width: 90px;
    }

    .spot-reference {
        text-align: center;
        width: 100%;
    }

    .info-cards-elegant {
        grid-template-columns: 1fr;
    }

    .action-bar {
        grid-template-columns: 1fr;
    }

    .action-btn span {
        display: inline;
    }
}

@media (max-width: 575.98px) {
    .reservation-card {
        border-radius: 16px;
    }

    .reservation-header {
        border-radius: 16px 16px 0 0;
        padding: 1.25rem !important;
    }

    .icon-circle {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .spot-badge-modern {
        font-size: 24px;
        padding: 12px 20px;
    }

    .spot-info-text h5 {
        font-size: 16px;
    }
}

/* Bannière de bienvenue */
.welcome-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid var(--bs-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.welcome-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.welcome-banner h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #495057;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.company-badge i {
    color: var(--color-primary);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .welcome-banner h1 {
        font-size: 1.5rem;
    }
    
    .welcome-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .company-badge {
        font-size: 0.85rem;
        padding: 0.3rem 0.7rem;
    }
}

/* = STYLES POUR LES CARTES DE SITES = */
.site-card {
    transition: var(--transition-custom);
}

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

.site-card .card-title {
    color: var(--bs-dark);
    font-weight: 600;
}

.site-action-btn {
    transition: var(--transition-custom);
}

.site-action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
