/* ---------------------------------------------
   🌙 JARO TRANSPORT — THEME PREMIUM 2025
   --------------------------------------------- */

:root {
  --jaro-bg: #020314;
  --jaro-bg2: #061b39;
  --jaro-blue: #1e6bd6;
  --jaro-blue-light: #59a5ff;
  --jaro-text: #f5f5f7;
  --jaro-glass: rgba(255,255,255,0.06);
  --jaro-error: #e74c3c;
  --jaro-success: #2ecc71;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, var(--jaro-bg2), var(--jaro-bg));
  color: var(--jaro-text);
  min-height: 100vh;
}

/* ---------------------------------------------
   🔵 HEADER — Glass Premium
--------------------------------------------- */
.jaro-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.jaro-header-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.jaro-logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.jaro-logo span {
  opacity: 0.8;
  font-weight: 400;
}

/* NAV */
.jaro-nav a {
  color: var(--jaro-text);
  text-decoration: none;
  margin-left: 22px;
  font-size: 1rem;
  transition: 0.25s;
}
.jaro-nav a:hover {
  color: var(--jaro-blue-light);
  text-shadow: 0 0 6px rgba(89,165,255,0.6);
}
.nav-admin {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ---------------------------------------------
   🖼️ BANNIÈRE RESPONSIVE PREMIUM
--------------------------------------------- */
.jaro-banner {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
}

.jaro-banner img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* OVERLAY BLEU */
.jaro-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0,0,0,0.35),
    rgba(2,3,20,0.72)
  );
  pointer-events: none;
}

/* TEXTE BANNIÈRE */
.jaro-banner-text {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.jaro-banner-text h1,
.jaro-banner-text .jaro-banner-titre {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 0;
  opacity: 1;
  margin-bottom: 4px;
}
.jaro-banner-text p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* MOBILE BANNIÈRE */
@media (max-width: 600px) {
  .jaro-banner {
    height: 180px;
  }
  .jaro-banner img {
    object-position: center 30%;
  }
  .jaro-banner-text {
    bottom: 10px;
    padding: 10px 16px;
  }
  .jaro-banner-text h1, .jaro-banner-text .jaro-banner-titre { font-size: 1rem; }
  .jaro-banner-text p { font-size: 0.8rem; }
}

/* ---------------------------------------------
   🧊 CARDS (GLASS)
--------------------------------------------- */
.page-card {
  background: var(--jaro-glass);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
  margin-bottom: 25px;
}

h1 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}
h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* ---------------------------------------------
   ✏️ FORMULAIRES PREMIUM
--------------------------------------------- */
input, textarea, select {
  width: 100%;
  padding: 12px;
  background: rgba(0,0,0,0.45);
  color: var(--jaro-text);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 12px;
  font-size: 0.95rem;
}
textarea { min-height: 100px; resize: vertical; }

label { font-size: 0.95rem; margin-bottom: 4px; display: block; }

/* Bouton */
.btn-primary {
  background: linear-gradient(90deg, var(--jaro-blue), var(--jaro-blue-light));
  padding: 12px 22px;
  border-radius: 999px;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.25s;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ---------------------------------------------
   📍 TARIF BOX
--------------------------------------------- */
.tarif-box {
  background: rgba(0,0,0,0.55);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
.tarif-value {
  font-size: 1.5rem;
  color: var(--jaro-blue-light);
  font-weight: 700;
}

/* ---------------------------------------------
   📱 RESPONSIVE GLOBALE
--------------------------------------------- */
@media (max-width: 768px) {
  .jaro-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .jaro-nav a { margin-left: 0; margin-right: 18px; }
}

/* FOOTER */
.jaro-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  opacity: 0.75;
}


/* ---------------------------------------------
   ⚙️ ADMIN — LIGHT GLASS
--------------------------------------------- */
.admin-sidebar {
  background: rgba(0,0,0,0.5);
  padding: 16px;
  border-radius: 16px;
}
.admin-sidebar a {
  display: block;
  padding: 8px;
  margin-bottom: 6px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--jaro-text);
}
.admin-sidebar a:hover {
  background: rgba(255,255,255,0.08);
}




.spot-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.spot-box h2 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--jaro-blue-light);
}

.spot-price {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 600;
}





/* === POPUP JARO === */
.jaro-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease-in-out;
    padding: 20px; /* Ajout important pour éviter que le contenu touche les bords */
    overflow-y: auto; /* Permet de scroller si l'image est trop grande */
}

.jaro-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.jaro-popup-content {
    position: relative;
    background: rgba(2,3,20,0.92);
    padding: 12px;
    border-radius: 14px;

    /* ADAPTATION PC + FULL RESPONSIVE */
    width: 100%;
    max-width: 480px; /* Taille max contrôlée */
    max-height: 90vh; /* Empêche le débordement vertical */

    overflow-y: auto; /* Scroll interne si nécessaire */
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    animation: popupScale 0.35s ease;
}

@keyframes popupScale {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.jaro-popup-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;

    /* Empêche l'image de déborder de son conteneur */
    max-height: 80vh;
    object-fit: contain;
}

.jaro-popup-close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 8px;
    right: 14px;
    cursor: pointer;
    text-shadow: 0 2px 10px black;
}





.btn-add-reservation {
    display: inline-block;
    background: #1e6bd6;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 15px;
}
.btn-add-reservation:hover {
    background: #1553a6;
}



