/* style.css - mobile first */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 1em;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 320px;
  background-color: #ffffff;
  padding: 1.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5em;
  color: #333;
}

.google-btn {
  display: inline-block;
  width: 100%;
  padding: 1em;
  background-color: #4285F4;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 5px rgba(66, 133, 244, 0.6);
  transition: background-color 0.3s ease;
}

.google-btn:hover {
  background-color: #357ae8;
}

.google-btn:active {
  background-color: #2a65c7;
}

/* Tablettes et écrans moyens */
@media (min-width: 480px) {
  .container {
    max-width: 400px;
    padding: 2em;
  }

  h1 {
    font-size: 1.8rem;
  }

  .google-btn {
    font-size: 1.2rem;
    padding: 1.25em;
  }
}

/* Grandes résolutions */
@media (min-width: 1024px) {
  .container {
    max-width: 480px;
    padding: 2.5em;
  }

  h1 {
    font-size: 2rem;
  }

  .google-btn {
    font-size: 1.3rem;
    padding: 1.5em;
  }
}
/*=========fonction clignoter + rotation 1/4 tour===========*/
.blink {
  animation: blinker 1s linear infinite;
}
@keyframes blinker {
  50% { opacity: 0; }
}
.rotate {
  animation: rotateQuarter 1s steps(4) infinite;
}
@keyframes rotateQuarter {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ======= Début section ecran principal ======= */
:root {
  /* ===== Variables globales pour la taille des bandeaux ===== */
  --header-height: 64px;
  --footer-height: 64px;
}

/* ===== MAIN-CONTENT SCROLLABLE ENTRE HEADER ET FOOTER ===== */
.main-content {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: var(--footer-height);
  overflow-y: auto;
  padding: 24px;
  box-sizing: border-box;
  background: #fafbfc; /* Adapter la couleur ici si besoin */
}

      
/* ======= Fin section ecran principal ======= */
  
/* ======= Début section Header ======= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  width: 100%;
  padding: 0 20px;
  background-color: #007AFF;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.menu-burger {
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 0;
  box-sizing: border-box;
}

.menu-burger .bar {
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-burger.active .bar1 {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-burger.active .bar2 {
  opacity: 0;
}

.menu-burger.active .bar3 {
  transform: rotate(-45deg) translate(7px, -7px);
}

.favicon-link {
  display: flex;
  align-items: center;
  margin-right: 0; /* 20px du bord via padding header */
}

.favicon-img {
  width: auto;
  height: 40px;
}

.logo-img {
  width: auto;
  height: 40px;
  
}
/* ======= Fin section Header ======= */

/* ======= Début section Menu Latéral ======= */
.nav-menu {
  position: fixed;
  top: 64px;           /* sous le header */
  left: 0;
  height: calc(100vh - 64px);
  width: 75%;
  background-color: #007AFF;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.nav-menu.active {
  transform: translateX(0);
}

.nav-menu ul {
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.nav-menu li {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-menu li:first-child {
  border-top: none;
}

.nav-menu a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
/* ======= Fin section Menu Latéral ======= */

/* ======= Début section Footer ======= */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 64px;
  width: 100%;
  background-color: #007AFF;
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* <- étire sur toute la hauteur */
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 1000;
}

.footer-icon {
  color: white;
  font-size: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;     /* <-- Icône au-dessus, texte en-dessous */
  align-items: center;
  justify-content: center;
  width: 64px;               /* Largeur suffisante pour centrer l’ensemble */
  height: 100%;
  flex: 1;
  /* supprime la hauteur/largeur trop petite éventuelle */
}

.footer-icon i {
  font-size: 1em;
  margin-bottom: 2px;
}

.footer-text {
  font-size: 0.5em;
  margin-top: 2px;
  display: block;
}

/* Correction pour les positions */
.footer-icon.left,
.footer-icon.center,
.footer-icon.right {
  position: relative;
  left: auto;
  transform: none;
  justify-content: center; /* garde le contenu centré verticalement */
}

/* ======= Fin section Footer ======= */

/* ======= Style admin-user.php ======= */

/* Form */
.form { margin-top: 1rem; }
.form-row { margin: .85rem 0; }
.form-label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form-inline { display: flex; gap: .5rem; align-items: center; }
.form-hint { color: #666; font-size: .9rem; margin-top: .25rem; }
.input { width: 100%; padding: .55rem .6rem; border: 1px solid #ccc; border-radius: 6px; }
.checkbox { display: inline-flex; gap: .5rem; align-items: center; }
.form-actions { margin-top: 1rem; }

/* Panels & Buttons */
.panel { border: 1px solid #ddd; border-radius: 6px; padding: .9rem; }
.panel--muted { background: #fafafa; }
.btn { display: inline-block; padding: .55rem .9rem; border-radius: 6px; border: 0; cursor: pointer; }
.btn-primary { background: #0b5ed7; color: #fff; }
.btn:disabled { opacity: .65; cursor: not-allowed; }
/* ======= Style admin-users.php ======= */

/* ======= Style profil.php ======= */
/* Conteneur de champs (compat large) */
/* CONTENEUR DE CHAMPS — 1 colonne tout le temps */
.grid { display: block; }

/* Chaque champ empilé : libellé au-dessus du contrôle */
.grid > label {
  display: block;
  margin: 10px 0;          /* espacement vertical */
  line-height: 1.2;
}

/* On neutralise les <br> du HTML pour éviter les décalages */
.grid > label > br { display: none; }

/* Contrôles pleine largeur */
.grid input,
.grid select,
.grid textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;         /* espace entre libellé et champ */
}

/* Lecture seule un peu estompée (optionnel) */
.grid input[readonly],
.grid textarea[readonly] { opacity: 0.75; }

/* ======= Style profil.php ======= */

/* ====== Dashboard layout (mobile-only) ====== */

  /* Assure que rien ne recouvre la carte par défaut */
  html, body, main { height: 100%; background: transparent; }

  /* Wrapper neutre (les boutons s’y ancrent) */
  .dash-wrap{ position:relative; height:100%; }

  /* Carte en FOND D’ÉCRAN entre header et footer (fixe) */
  #map{
    position: fixed;
    top: 64px;         /* hauteur header */
    bottom: 56px;      /* hauteur footer */
    left: 0; right: 0;
    z-index: 1;        /* sous les boutons, au-dessus du fond */
    background: #eaeaea; /* fallback pendant le chargement */
  }

  /* Boutons flottants au-dessus de la carte */
  .fab-add, .geo-toggle, .top-btn, .status-chip { z-index: 10; }

  .fab-add{
    position:fixed; bottom:80px; left:50%; transform:translateX(-50%);
    width:62px; height:62px; border-radius:999px;
    display:flex; align-items:center; justify-content:center;
    background:#0b5ed7; color:#fff; font-size:34px; line-height:1;
    box-shadow:0 8px 24px rgba(0,0,0,.25); text-decoration:none;
  }

  .geo-toggle{
    position:fixed; bottom:88px; left:20px;
    display:flex; align-items:center; gap:.5rem;
    background:rgba(255,255,255,.92); border:1px solid #ddd; border-radius:999px;
    padding:.4rem .7rem; box-shadow:0 6px 14px rgba(0,0,0,.12);
  }
  .switch{ position:relative; width:42px; height:24px; background:#ccc; border-radius:999px; cursor:pointer; }
  .switch::after{ content:""; position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:#fff;
    transition:transform .2s ease; box-shadow:0 2px 6px rgba(0,0,0,.2);}
  .switch.on{ background:#16a34a; }
  .switch.on::after{ transform:translateX(18px); }

  .top-btn{
    position:fixed; top:80px; background:rgba(255,255,255,.92); border:1px solid #ddd;
    border-radius:12px; padding:.5rem .7rem; box-shadow:0 6px 14px rgba(0,0,0,.12); display:flex; align-items:center; gap:.4rem;
  }
  .top-left{ left:12px;  }
  .top-right{ right:12px; }
  
  .bottom-btn{
    position:fixed; bottom:150px; background:rgba(255,255,255,.92); border:1px solid #ddd;
    border-radius:12px; padding:.5rem .7rem; box-shadow:0 6px 14px rgba(0,0,0,.12); display:flex; align-items:center; gap:.4rem;
  }
  .bottom-left{ left:12px;  }
  .bottom-right{ right:12px; }

  .car-marker{
    width:34px; height:34px; border-radius:999px; background:#111; color:#fff;
    display:flex; align-items:center; justify-content:center; font-size:18px;
    border:2px solid #fff; box-shadow:0 6px 14px rgba(0,0,0,.25);
  }

  .status-chip{
    position:fixed; bottom:150px; left:50%; transform:translateX(-50%);
    background:rgba(0,0,0,.65); color:#fff; padding:.35rem .6rem; border-radius:999px;
    font-size:.85rem;
  }


/* ====== Dashboard layout (mobile-only) ====== */
