/* =====================================================
 BorneToBéAlive – style.css
 Design sobre, aucune dépendance CSS externe
 ===================================================== */
/* ■■■ RESET ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont,
 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 background: #f0f4f8; color: #1c2938; }
/* ■■■ HEADER ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
#site-header {
 position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
 height: 56px;
 display: flex; align-items: center; justify-content: space-between;
 padding: 0 16px;
 background: rgba(255,255,255,0.92);
 backdrop-filter: blur(12px);
 -webkit-backdrop-filter: blur(12px);
 border-bottom: 1px solid rgba(0,0,0,0.08);
 box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
/* Logo */
.logo {
 display: flex; align-items: center; gap: 10px;
 text-decoration: none; color: inherit;
}
.logo-text {
 font-size: 1.05rem; font-weight: 700; letter-spacing: -0.3px;
 color: #1a73e8;
}
/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; }
/* Barre de recherche */
.search-bar {
 display: flex; align-items: center;
 background: #f1f3f6; border-radius: 24px;
 overflow: hidden; border: 1px solid #dce1e8;
 transition: box-shadow 0.2s;
}
.search-bar:focus-within {
 box-shadow: 0 0 0 2px #1a73e840; border-color: #1a73e8;
}
.search-bar input {
 border: none; background: transparent;
 padding: 7px 14px; font-size: 0.88rem; outline: none;
 width: 240px; color: #1c2938;
}
.search-bar button {
 background: none; border: none; cursor: pointer;
 padding: 7px 12px; color: #5f6368;
 transition: color 0.15s;
}
.search-bar button:hover { color: #1a73e8; }
/* Bouton compte */
.btn-account {
 display: flex; align-items: center; gap: 7px;
 background: #1a73e8; color: #fff;
 border: none; border-radius: 24px;
 padding: 8px 16px; font-size: 0.88rem; font-weight: 500;
 cursor: pointer; transition: background 0.2s, box-shadow 0.2s;
 white-space: nowrap;
}
.btn-account:hover { background: #1558b0; box-shadow: 0 2px 8px #1a73e840; }
/* Dropdown compte */
.account-menu-wrapper { position: relative; }
.account-dropdown {
 position: absolute; top: calc(100% + 8px); right: 0;
 background: #fff; border-radius: 12px;
 box-shadow: 0 8px 24px rgba(0,0,0,0.12);
 min-width: 180px; overflow: hidden;
 border: 1px solid #e8eaed;
 animation: fadeInDown 0.15s ease;
}
.account-dropdown a {
 display: block; padding: 11px 18px;
 text-decoration: none; color: #3c4043;
 font-size: 0.88rem; transition: background 0.15s;
}
.account-dropdown a:hover { background: #f1f3f6; }
.account-dropdown hr { border: none; border-top: 1px solid #e8eaed; }
.account-dropdown .logout-link { color: #d93025; }
/* ■■■ CARTE ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
#map {
 position: fixed; top: 56px; left: 0; right: 0;
 bottom: 0; z-index: 1;
}
/* Icône borne SVG custom */
.borne-icon-div {
 width: 34px; height: 34px;
 background: #1a73e8;
 border-radius: 50% 50% 50% 0;
 transform: rotate(-45deg);
 display: flex; align-items: center; justify-content: center;
 box-shadow: 0 2px 6px rgba(26,115,232,0.45);
 border: 2px solid #fff;
}
.borne-icon-div svg { transform: rotate(45deg); }
/* Popup Leaflet custom */
.leaflet-popup-content-wrapper {
 border-radius: 14px !important;
 box-shadow: 0 8px 24px rgba(0,0,0,0.14) !important;
 padding: 0 !important; overflow: hidden;
}
.leaflet-popup-content { margin: 0 !important; }
.popup-borne {
 min-width: 240px; padding: 16px;
}
.popup-borne h4 {
 font-size: 0.95rem; font-weight: 600;
 color: #1c2938; margin-bottom: 6px;
 line-height: 1.3;
}
.popup-borne .popup-addr {
 font-size: 0.8rem; color: #5f6368; margin-bottom: 10px;
}
.popup-borne .popup-tags {
 display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px;
}
.tag {
 background: #e8f0fe; color: #1a73e8;
 border-radius: 20px; padding: 2px 10px;
 font-size: 0.75rem; font-weight: 500;
}
.tag.green { background: #e6f4ea; color: #188038; }
.tag.orange { background: #fef7e0; color: #b06000; }
.popup-actions { display: flex; gap: 8px; }
.popup-actions button {
 flex: 1; padding: 8px; border-radius: 8px;
 font-size: 0.82rem; font-weight: 500;
 border: none; cursor: pointer; transition: 0.15s;
}
.btn-detail {
 background: #1a73e8; color: #fff;
}
.btn-detail:hover { background: #1558b0; }
.btn-itineraire {
 background: #e8f0fe; color: #1a73e8;
 border: 1px solid #d2e3fc !important;
}
.btn-itineraire:hover { background: #d2e3fc; }
/* ■■■ PANNEAU LATÉRAL ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.side-panel {
 position: fixed; top: 56px; right: 0;
 width: 360px; max-width: 100vw;
 height: calc(100vh - 56px);
 background: #fff;
 box-shadow: -4px 0 20px rgba(0,0,0,0.1);
 z-index: 1050; overflow-y: auto;
 padding: 24px 20px;
 transition: transform 0.28s cubic-bezier(.4,0,.2,1);
 border-left: 1px solid #e8eaed;
}
.side-panel.hidden { transform: translateX(110%); }
.panel-close {
 position: absolute; top: 14px; right: 16px;
 background: none; border: none; font-size: 1.2rem;
 cursor: pointer; color: #5f6368; line-height: 1;
 padding: 4px 8px; border-radius: 6px;
 transition: background 0.15s;
}
.panel-close:hover { background: #f1f3f6; }
/* ■■■ CHARGEMENT ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
#loading-indicator {
 position: fixed; bottom: 20px; left: 50%;
 transform: translateX(-50%);
 background: rgba(28,41,56,0.85);
 color: #fff; border-radius: 24px;
 padding: 8px 20px; font-size: 0.85rem;
 z-index: 1200; backdrop-filter: blur(6px);
 pointer-events: none;
 transition: opacity 0.3s;
}
#loading-indicator.hidden { opacity: 0; }
/* ■■■ ZOOM TROP FAIBLE ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
#zoom-hint {
 position: fixed; bottom: 20px; left: 50%;
 transform: translateX(-50%);
 background: rgba(255,255,255,0.95);
 border: 1px solid #e8eaed;
 border-radius: 24px; padding: 8px 20px;
 font-size: 0.82rem; color: #5f6368;
 box-shadow: 0 4px 12px rgba(0,0,0,0.1);
 z-index: 1200; pointer-events: none;
}
#zoom-hint.hidden { display: none; }
/* ■■■ BOUTON POSITION ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
#locate-btn {
 position: fixed; bottom: 80px; right: 16px;
 z-index: 1100;
 background: #fff; border: 1px solid #dce1e8;
 border-radius: 50%; width: 44px; height: 44px;
 cursor: pointer; font-size: 1.2rem;
 box-shadow: 0 2px 8px rgba(0,0,0,0.12);
 display: flex; align-items: center; justify-content: center;
 transition: box-shadow 0.2s;
}
#locate-btn:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
/* ■■■ PANNEAUX ITINÉRAIRE ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
#route-info { margin: 14px 0; }
.route-step {
 display: flex; gap: 10px; align-items: flex-start;
 padding: 8px 0; border-bottom: 1px solid #f1f3f6;
 font-size: 0.85rem; color: #3c4043;
}
.route-step:last-child { border-bottom: none; }
.route-step-num {
 background: #1a73e8; color: #fff;
 border-radius: 50%; width: 22px; height: 22px;
 display: flex; align-items: center; justify-content: center;
 font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}
.route-summary {
 background: #e8f0fe; border-radius: 10px;
 padding: 12px 16px; margin-bottom: 14px;
 display: flex; gap: 20px;
}
.route-summary span { font-size: 0.9rem; font-weight: 600; color: #1a73e8; }
.route-summary small { display: block; font-weight: 400; color: #5f6368;
 font-size: 0.75rem; }
/* ■■■ MODALES ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.modal-overlay {
 position: fixed; inset: 0; z-index: 2000;
 background: rgba(0,0,0,0.45);
 display: flex; align-items: center; justify-content: center;
 backdrop-filter: blur(3px);
 animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
.modal-box {
 background: #fff; border-radius: 20px;
 padding: 36px 32px; width: 100%; max-width: 420px;
 position: relative;
 box-shadow: 0 20px 60px rgba(0,0,0,0.2);
 animation: slideUp 0.25s cubic-bezier(.4,0,.2,1);
}
.modal-close {
 position: absolute; top: 14px; right: 16px;
 background: none; border: none; font-size: 1.1rem;
 cursor: pointer; color: #5f6368; padding: 4px 8px;
 border-radius: 6px; transition: background 0.15s;
}
.modal-close:hover { background: #f1f3f6; }
.modal-logo { text-align: center; margin-bottom: 14px; }
.modal-title {
 font-size: 1.35rem; font-weight: 700;
 text-align: center; margin-bottom: 4px;
}
.modal-subtitle {
 font-size: 0.85rem; color: #5f6368;
 text-align: center; margin-bottom: 22px;
}
/* Boutons sociaux */
.social-btn {
 display: flex; align-items: center; justify-content: center; gap: 10px;
 width: 100%; padding: 11px 16px; border-radius: 10px;
 font-size: 0.9rem; font-weight: 500; cursor: pointer;
 border: 1px solid #dadce0; transition: 0.15s;
 text-decoration: none; margin-bottom: 8px;
}
.social-btn-google { background: #fff; color: #3c4043; }
.social-btn-google:hover {
 background: #f8f9fa; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.social-icon { width: 20px; height: 20px; flex-shrink: 0; }
/* Séparateur */
.auth-separator {
 display: flex; align-items: center; gap: 12px;
 margin: 6px 0 18px; color: #aaa; font-size: 0.82rem;
}
.auth-separator::before, .auth-separator::after {
 content: ''; flex: 1; height: 1px; background: #e0e0e0;
}
/* Formulaire */
.form-group { margin-bottom: 14px; }
.form-group label {
 display: block; font-size: 0.82rem; font-weight: 500;
 color: #3c4043; margin-bottom: 5px;
}
.form-group input {
 width: 100%; padding: 10px 14px;
 border: 1px solid #dce1e8; border-radius: 10px;
 font-size: 0.9rem; outline: none;
 transition: border-color 0.15s, box-shadow 0.15s;
 background: #fafafa; color: #1c2938;
}
.form-group input:focus {
 border-color: #1a73e8; background: #fff;
 box-shadow: 0 0 0 3px #1a73e820;
}
.input-password-wrapper { position: relative; }
.input-password-wrapper input { padding-right: 42px; }
.toggle-password {
 position: absolute; right: 10px; top: 50%;
 transform: translateY(-50%);
 background: none; border: none; cursor: pointer;
 color: #5f6368; padding: 4px;
}
/* Bouton primaire */
.btn-primary {
 display: block; width: auto;
 background: #1a73e8; color: #fff;
 border: none; border-radius: 10px;
 padding: 11px 20px; font-size: 0.9rem; font-weight: 600;
 cursor: pointer; transition: background 0.2s, box-shadow 0.2s;
 text-align: center;
}
.btn-primary:hover { background: #1558b0; box-shadow: 0 3px 10px #1a73e840; }
.btn-primary.full-width { width: 100%; }
/* Erreur auth */
.auth-error {
 background: #fce8e6; border-radius: 8px;
 color: #c5221f; font-size: 0.83rem;
 padding: 9px 14px; margin-bottom: 12px;
}
.auth-error.hidden { display: none; }
/* Footer modale */
.modal-footer-text {
 text-align: center; font-size: 0.82rem;
 color: #5f6368; margin-top: 16px;
}
.modal-footer-text a { color: #1a73e8; text-decoration: none; font-weight: 500; }
/* ■■■ ANIMATIONS ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown {
 from { opacity: 0; transform: translateY(-6px); }
 to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
 from { opacity: 0; transform: translateY(24px); }
 to { opacity: 1; transform: translateY(0); }
}
/* ■■■ UTILITAIRES ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.hidden { display: none !important; }
/* ■■■ RESPONSIVE ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
@media (max-width: 600px) {
 .logo-text { display: none; }
 .search-bar input { width: 130px; }
 .side-panel { width: 100vw; }
 .modal-box { padding: 28px 18px; margin: 0 12px; }