/* ---------- GENERAL ---------- */
body { font-family:"Segoe UI", sans-serif; }

/* HEADER */
header {
  background: linear-gradient(135deg, #2E7D32, #1B5E20);
}
header a { color:#fff !important; font-weight:600; }

/* ---------- HERO ---------- */
.hero {
  background:url('images/hero.jpg') center/cover no-repeat;
  color:white;
  padding:6rem 1rem;
  text-shadow:0 2px 8px rgba(0,0,0,.5);
}

/* Icônes */
.feature-icon { font-size:2rem; color:#2E7D32; }

/* ---------- FOOTER ---------- */
footer { background:#111; color:#ddd; }
footer a { color:#bbb; text-decoration:none; }

/* ---------- LOADER ---------- */
#loader {
  position: fixed;
  inset: 0;
  background: #1B5E20;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity .50s ease;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

#galerie img {
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
}

#contact h2 {
  font-weight: 700;
}

#contact h5 {
  font-weight: 600;
}

#contact .fa-brands {
  transition: 0.2s;
}

#contact .fa-brands:hover {
  transform: scale(1.2);
}


#horaires .card {
  backdrop-filter: blur(6px);
}

.horaires-list .list-group-item {
  font-size: 1.05rem;
  transition: background 0.3s;
}

.horaires-list .list-group-item:hover {
  background: #f4fdf4;
}

.horaires-today {
  background: #d9f8d9 !important;
  font-weight: bold;
  border-left: 5px solid #28a745;
}

.etat-horaire {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
}

.etat-horaire.ouvert {
    color: #198754; /* vert */
    font-weight: bold;
}

.etat-horaire.ferme {
    color: #dc3545; /* rouge */
    font-weight: bold;
}

.etat-horaire.bientot {
    color: #fd7e14; /* orange */
    font-weight: bold;
}

.etat-horaire.ouvre-bientot {
    color: #0d6efd; /* bleu */
    font-weight: bold;
}


footer a:hover { text-decoration: none; color: #d4f0d4; }
@media(max-width:576px){
  footer p, footer small { font-size:0.9rem; }
}

.hero img {
  filter: brightness(0.8); /* assombrit l'image pour mieux voir le texte */
}

/* --- IMPORTANT : NE PAS FIXER LA HAUTEUR SUR MOBILE --- */
/* => On laisse #accueil prendre la hauteur nécessaire */
@media (max-width: 768px) {
  .hero-content .d-grid.gap-2.d-md-block {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem; /* espace entre les boutons */
  }

  .hero-content .d-grid.gap-2.d-md-block .btn {
    width: 100%;          /* prend la majeure partie de la largeur, centrée */
    font-size: 0.95rem;   /* réduit légèrement le texte pour que ça tienne */
    padding: 0.4rem 0.8rem; /* réduit le padding vertical/horizontal */
    white-space: normal;   /* texte peut aller à la ligne si nécessaire */
  }
}




/* Boutons carrés par défaut */
.btn-square {
  width: 100%;
  padding: 1.5rem 0;
  border-radius: 1rem;
  font-size: 1rem;
}

/* Sur mobile : réduire la taille */
@media (max-width: 576px) {
  .btn-square {
    padding: 1rem 0;
    font-size: 0.85rem;
  }

  .btn-square i {
    font-size: 1.5rem; /* réduire icônes sur mobile */
  }
}

/* fin bouton carrés*/




.install-button {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 0.95rem;
  font-weight: bold;
  z-index: 9999;
  cursor: pointer;
}

.install-button i {
  margin-right: 6px;
}

/* Message iPhone */
.ios-tip {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 10px;
  right: 10px;
  background: #ffffff;
  color: #333;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  font-size: 0.9rem;
  z-index: 9999;
}

/* Masquer sur desktop */
@media(min-width: 992px){
  .install-button, .ios-tip {
    display: none !important;
  }
}


  /* Style général */
  .bouton-long {
    white-space: nowrap;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* Version smartphone */
  @media(max-width: 576px) {
    .bouton-long {
      font-size: 0.9rem;
      padding-left: 1.2rem;
      padding-right: 1.2rem;
    }
  }

/* ---- LOGO HERO ---- */

.hero-logo img {
    width: 190px;        /* taille desktop */
    height: auto;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
    opacity: 0.85;
}

/* Mobile : logo plus petit */
@media (max-width: 576px) {
    .hero-logo img {
        width: 60px;
    }
}
