/* Communauté de communes de Valbourg — feuille de style commune */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1f2933;
  background: #ffffff;
}
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
a:focus-visible { outline: none; box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #1d4ed8; border-radius: 2px; }

.lien-evitement {
  position: absolute; left: -9999px; top: 0;
  background: #1f5f3f; color: #ffffff; padding: .5rem 1rem; z-index: 10;
}
.lien-evitement:focus { left: 1rem; top: 1rem; }

.entete { background: #ffffff; border-bottom: 4px solid #1f5f3f; }
.entete-inner, .contenu, .pied-inner {
  max-width: 68rem; margin: 0 auto; padding: 0 1rem;
}
.entete-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.logo img { display: block; width: 15rem; }

.nav-principale ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.nav-principale a {
  display: block; padding: .5rem .85rem; color: #1f5f3f; font-weight: 600; text-decoration: none; border-radius: 4px;
}
.nav-principale a:hover { background: #e6f0ea; text-decoration: underline; }
.nav-principale a[aria-current="page"] { background: #1f5f3f; color: #ffffff; }

.contenu { padding-top: 1.5rem; padding-bottom: 3rem; }
h1 { font-size: 2rem; line-height: 1.25; color: #14402a; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; color: #14402a; margin: 2rem 0 .75rem; }
h3 { font-size: 1.2rem; color: #14402a; margin: 1.25rem 0 .5rem; }
a { color: #1f5f3f; }

.bandeau {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center;
  background: #e6f0ea; border-radius: 8px; padding: 1.5rem;
}
@media (min-width: 48rem) { .bandeau { grid-template-columns: 3fr 2fr; } }
.bandeau p { margin: 0 0 .75rem; }

.bouton {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  background: #1f5f3f; color: #ffffff; border: 2px solid #1f5f3f; border-radius: 4px;
  padding: .55rem 1.1rem; text-decoration: none;
}
.bouton:hover { background: #14402a; }
.bouton-secondaire { background: #ffffff; color: #1f5f3f; }
.bouton-secondaire:hover { background: #e6f0ea; }

.grille-actus { display: grid; gap: 1.25rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 48rem) { .grille-actus { grid-template-columns: repeat(3, 1fr); } }
.actu { border: 1px solid #c4d3ca; border-radius: 8px; padding: 1rem; background: #ffffff; }
.actu-titre { font-size: 1.15rem; font-weight: 700; color: #14402a; margin: 0 0 .25rem; }
.actu-date { color: #999999; font-size: .875rem; margin: 0 0 .5rem; }

.titre-section { font-size: 1.5rem; font-weight: 700; color: #14402a; margin: 2rem 0 .75rem; }

.encart { border-left: 6px solid #1f5f3f; background: #f4f8f5; padding: 1rem 1.25rem; margin: 1.5rem 0; }

.faq-question { margin: 0; }
.faq-question button {
  width: 100%; text-align: left; font: inherit; font-weight: 600; color: #14402a;
  background: #f4f8f5; border: 1px solid #c4d3ca; border-radius: 4px; padding: .75rem 1rem; cursor: pointer;
}
.faq-question button::after { content: " +"; }
.faq-question button[aria-expanded="true"]::after { content: " −"; }
.faq-reponse { padding: .5rem 1rem 1rem; }
.faq-reponse[hidden] { display: none; }

.newsletter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.newsletter input {
  font: inherit; padding: .5rem .75rem; border: 2px solid #5b6b63; border-radius: 4px; min-width: 16rem;
}
.newsletter input::placeholder { color: #5f6368; opacity: 1; }

.vague { display: block; width: 100%; margin: 2rem 0 0; }

table { border-collapse: collapse; width: 100%; margin: .5rem 0 1.5rem; }
caption { text-align: left; font-weight: 700; color: #14402a; padding: .5rem 0; }
th, td { border: 1px solid #c4d3ca; padding: .5rem .75rem; text-align: left; vertical-align: top; }
thead th { background: #1f5f3f; color: #ffffff; }
.cellule-site { font-weight: 700; background: #f4f8f5; }

.note-maj { color: #767676; font-size: .9rem; }

.pied { background: #14402a; color: #ffffff; margin-top: 2rem; }
.pied-inner { padding-top: 1.5rem; padding-bottom: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.pied a { color: #ffffff; }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.pied p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Page horaires */
.panneau-signalement { margin-top: 1rem; max-width: 40rem; border: 1px solid #c4d3ca; border-radius: 8px; padding: 1rem 1.25rem; }
.panneau-signalement[hidden] { display: none; }
.champ-signalement { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1rem; }
.champ-signalement label { font-weight: 600; }
.champ-signalement select, .champ-signalement textarea { font: inherit; padding: .5rem .75rem; border: 2px solid #5b6b63; border-radius: 4px; }
.erreur-signalement { color: #9b1c1c; font-weight: 600; margin: 0; }
#bouton-signalement svg { vertical-align: -2px; margin-right: .25rem; }
