/* --- VARIABLES & DESIGN SYSTEM --- */
:root {
  --acc: #169B5E;
  --acc-hover: #12854e;
  --acc-light: rgba(22, 155, 94, 0.1);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-body: #f1f5f9;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; }

body { 
    background-color: var(--bg-body); 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    color: var(--text-dark);
    margin: 0;
    padding-bottom: 140px; /* Espace pour ne pas cacher le contenu derrière le footer */
    line-height: 1.5;
}

/* --- GLASS UI (Cartes et Modules) --- */
.glass-card, .admin-card, .module-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  margin-bottom: 1rem;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(22, 155, 94, 0.12);
  border-color: var(--acc);
}

/* --- TITRES --- */
.glass-title { 
    font-size: 1.15rem; 
    font-weight: 800; 
    margin-bottom: 6px; 
    color: var(--text-dark);
}

.glass-desc { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    font-weight: 600; 
}

/* --- BOUTONS BUBBLES (Menu Principal) --- */
.glass-btn {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  text-align: center; 
  min-height: 150px; 
  padding: 1.5rem;
  text-decoration: none; 
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7); 
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  color: var(--text-dark);
}

.glass-btn:hover {
  transform: translateY(-6px); 
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--acc); 
  box-shadow: 0 20px 40px rgba(22, 155, 94, 0.15);
}

.icon-bubble {
  width: 64px; 
  height: 64px; 
  border-radius: 18px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 1.8rem; 
  margin-bottom: 12px; 
  transition: transform 0.4s ease;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef); 
  color: #495057;
}

.glass-btn:hover .icon-bubble { transform: scale(1.15) rotate(-5deg); }

/* Variantes de couleurs Bubbles */
.glass-btn.accent .icon-bubble { background: linear-gradient(135deg, #d1e7dd, #a3cfbb); color: #0f5132; }
.glass-btn.primary .icon-bubble { background: linear-gradient(135deg, #cfe2ff, #9ec5fe); color: #052c65; }
.glass-btn.warning .icon-bubble { background: linear-gradient(135deg, #fff3cd, #ffe69c); color: #664d03; }
.glass-btn.danger .icon-bubble { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #be185d; }

/* --- INPUTS & FORMULAIRES --- */
.form-control-taxi {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.2s;
}

.form-control-taxi:focus {
    outline: none;
    border-color: var(--acc);
    background: white;
    box-shadow: 0 0 0 4px var(--acc-light);
}

/* --- BANDEAU D'ACTIONS (Sticky Header) --- */
.actions-bar {
    background: rgba(255,255,255,0.85); 
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border); 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    padding: 15px 0; 
    margin-bottom: 20px;
}

/* --- FOOTER FLOTTANT (PRIX & DEVIS) --- */
.footer-bar {
    position: fixed;
    /* Gère les encoches des smartphones récents */
    bottom: calc(15px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 500px;
    
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    padding: 12px 22px;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    /* Z-index maximum pour passer devant la navigation du site */
    z-index: 9999999 !important;
}

.price-box { display: flex; flex-direction: column; }
.price-box .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.8px;
}
.price-box .amount {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--acc);
    line-height: 1;
}

.btn-generate {
    background: var(--acc);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 16px rgba(22, 155, 94, 0.25);
    transition: all 0.2s;
}

.btn-generate:active { transform: scale(0.95); background: var(--acc-hover); }

/* --- RESPONSIVE --- */
@media (max-width: 576px) {
    .footer-bar {
        width: 95%;
        padding: 10px 18px;
    }
    .price-box .amount { font-size: 1.6rem; }
    .btn-generate { padding: 10px 18px; font-size: 0.9rem; }
}

/* --- UTILS --- */
.hidden { display: none !important; }
