/* Concept "Par lieu" — on choisit sa commune d'abord, tout le reste en découle */

.entete {
  text-align: center;
  padding: 1.25rem 1rem 0.5rem;
}

.entete {
  padding: 1.75rem 1.25rem 1rem;
}

.entete .logo {
  margin: 0 auto;
  width: min(100%, 680px);
  height: auto;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  text-align: center;
  padding: 1rem 0 2rem;
}

.hero h1 {
  color: var(--bleu);
  font-weight: 800;
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.hero p {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
}

.tuiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.tuiles a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: var(--bleu);
  color: #fff;
  border-radius: 14px;
  padding: 1.75rem 1rem;
  transition: transform 0.1s ease, background 0.15s ease;
}

.tuiles a:hover,
.tuiles a:focus-visible {
  background: #1a1aa8;
  transform: translateY(-2px);
}

.tuiles svg {
  width: 2.5rem;
  height: 2.5rem;
}

.tuiles .nom {
  font-size: 1.3rem;
  font-weight: 800;
}

.tuiles .freq {
  font-size: 0.95rem;
  opacity: 0.9;
}

.lieu-detail {
  scroll-margin-top: 1.5rem;
  border-top: 4px solid var(--teal);
  padding: 2rem 0;
}

#remuzat { border-top-color: var(--corail); }
#sainte-jalle { border-top-color: var(--orange); }

.lieu-detail h2 {
  color: var(--bleu);
  font-weight: 800;
  font-size: 1.5rem;
  margin-top: 0;
}

.horaires-liste {
  margin: 1rem 0 1.5rem;
  display: grid;
  gap: 0.4rem;
  max-width: 480px;
}

.horaires-liste > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.horaires-liste > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.horaires-liste dt {
  font-weight: 700;
}

.horaires-liste dd {
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bouton {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  background: var(--corail);
  color: #fff;
}

.bouton:hover,
.bouton:focus-visible {
  background: var(--corail-dark);
}

.bouton-tel {
  background: #fff;
  color: var(--bleu);
  border: 2px solid var(--bleu);
}

.bouton-tel:hover,
.bouton-tel:focus-visible {
  background: var(--bg-light);
}

.services {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.services h2,
.titre-section {
  color: var(--bleu);
  font-weight: 800;
  font-size: 1.5rem;
  margin-top: 0;
}

.titre-section {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-bottom: 0;
}

.titre-section + .lieu-detail {
  border-top: 4px solid var(--teal);
  margin-top: 1rem;
}

.note {
  font-style: italic;
  color: #444;
}

.grille-icones li.externe {
  grid-column: 1 / -1;
  padding: 0;
  background: var(--bleu);
}

.grille-icones li.externe a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  color: #fff;
  text-decoration: none;
}

.grille-icones li.externe svg {
  color: #fff;
}

.grille-icones li.externe:hover,
.grille-icones li.externe:focus-within {
  background: #1a1aa8;
}

.grille-icones {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

@media (min-width: 700px) {
  .grille-icones {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.grille-icones li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 0.85rem 0.7rem;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (min-width: 700px) {
  .grille-icones li {
    gap: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
  }
}

.grille-icones svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--bleu);
  flex-shrink: 0;
}

.lien-simple {
  color: var(--corail-dark);
  font-weight: 700;
}

.pied {
  background: var(--bg-light);
  padding: 2rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.pied-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.pied-logos img {
  max-height: 60px;
  width: auto;
}

.pied a {
  color: var(--bleu);
}

.mentions { padding: 1rem 0 2rem; max-width: 70ch; }
.mentions h1 { color: var(--bleu); font-weight: 800; font-size: 1.7rem; }
.mentions h2 { color: var(--bleu); font-size: 1.2rem; margin-top: 1.75rem; }

/* Pied de page : logo Aventic et liens alignés */
.pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.5rem;
}
.pied .pied-logo img { max-height: 60px; width: auto; }
.pied p { margin: 0; }

/* Bandeau « Contactez-nous » avant le pied de page */
.contact-bandeau {
  background: var(--bleu);
  color: #fff;
  text-align: center;
  padding: 2.25rem 1.25rem;
}
.contact-bandeau h2 { color: #fff; font-weight: 800; font-size: 1.5rem; margin: 0 0 0.75rem; }
.contact-bandeau p { margin: 0.4rem 0; }
.contact-bandeau a { color: #fff; }
.contact-bandeau .contact-tel a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  text-decoration: none;
}
.contact-bandeau .contact-tel svg { width: 1.2em; height: 1.2em; }

