/* giguellerie_horaires : pastille d'en-tête, carte « Avant de prendre la
   route » et page de pilotage. Couleurs et polices du thème uniquement
   (00-variables.css) : vert herbe pour « ouvert », ardoise et gris pour
   « fermé », crème (dérivée du vert mousse) pour les encadrés. */

.horaires-pastille,
.horaires-carte,
.pilotage {
  --hor-ouvert: var(--bootstrap_barrio_giguellerie-vert-herbe);
  --hor-ouvert-fonce: var(--bootstrap_barrio_giguellerie-vert-prairie);
  --hor-bientot: var(--bootstrap_barrio_giguellerie-vert-mousse);
  --hor-ferme: var(--bootstrap_barrio_giguellerie-gris-moyen);
  --hor-texte: var(--bootstrap_barrio_giguellerie-gris-fonce);
  --hor-titre: var(--bootstrap_barrio_giguellerie-vert-feuillage);
  --hor-filet: var(--bootstrap_barrio_giguellerie-gris-clair);
  --hor-creme: color-mix(in srgb, var(--bootstrap_barrio_giguellerie-vert-mousse) 12%, white);
  font-family: var(--font-body);
}

/* --- Pastille d'en-tête : suit la couleur de l'en-tête ------------------ */

.horaires-pastille {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .75rem;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 999px;
  color: inherit;
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s ease;
}

.horaires-pastille:hover,
.horaires-pastille:focus-visible {
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: inherit;
  text-decoration: none;
}

.horaires-pastille[hidden] {
  display: none;
}

.horaires-pastille__point,
.horaires-carte__point {
  flex: none;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--hor-ferme);
}

.horaires-pastille--ouvert .horaires-pastille__point,
.horaires-carte--ouvert .horaires-carte__point {
  background: var(--hor-ouvert);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hor-ouvert) 25%, transparent);
}

.horaires-pastille--bientot .horaires-pastille__point,
.horaires-carte--bientot .horaires-carte__point {
  background: var(--hor-bientot);
  animation: horaires-pouls 2s ease-in-out infinite;
}

@keyframes horaires-pouls {
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--hor-bientot) 30%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .horaires-pastille--bientot .horaires-pastille__point,
  .horaires-carte--bientot .horaires-carte__point { animation: none; }
}

/* Sur téléphone : le point et un mot, pour ne pas pousser le logo ni le menu */
.horaires-pastille__mini { display: none; }

@media (max-width: 767.98px) {
  .horaires-pastille { padding: .2rem .55rem; font-size: .8rem; }
  .horaires-pastille__texte { display: none; }
  .horaires-pastille__mini { display: inline; }
}

/* --- « Heures d'ouverture » (page Contact) ------------------------------
   Le titre reprend le style des h2 du site ; seul l'état en direct est
   encadré, le reste se lit comme le texte de la page. */

.horaires-carte {
  color: var(--hor-texte);
}

.horaires-carte__direct {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: .5rem;
  background: var(--hor-creme);
}

.horaires-carte__etat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .6rem;
}

.horaires-carte__point {
  align-self: center;
  width: .75rem;
  height: .75rem;
}

.horaires-carte__statut {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hor-titre);
}

.horaires-carte__detail {
  font-size: 1.05rem;
}

.horaires-carte__jour,
.horaires-carte__note,
.horaires-carte__hors-saison {
  margin: .5rem 0 0;
}

.horaires-carte--exceptionnel .horaires-carte__jour {
  font-weight: 600;
  color: var(--hor-titre);
}

.horaires-carte__note {
  font-style: italic;
}

.horaires-carte__changements {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid var(--hor-filet);
}

.horaires-carte__changements h3 {
  margin: 0 0 .35rem;
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 600;
  color: var(--hor-titre);
}

.horaires-carte__changements ul,
.horaires-carte__periode ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.horaires-carte__changements li {
  margin: .3rem 0;
  padding-left: .65rem;
  border-left: 3px solid var(--hor-ferme);
}

.horaires-carte__changements li.horaires-carte__changement--ouvert {
  border-left-color: var(--hor-ouvert);
}

.horaires-carte__changement-note {
  display: block;
  font-size: .9em;
  font-style: italic;
}

.horaires-carte__periode + .horaires-carte__periode {
  margin-top: .85rem;
}

.horaires-carte__periode-nom {
  font-weight: 600;
  color: var(--hor-titre);
}

.horaires-carte__periode li {
  margin: .15rem 0;
}

.horaires-carte [hidden] {
  display: none;
}

/* --- Page de pilotage (/horaires/pilotage), pensée pour le téléphone ----- */

.pilotage {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--hor-texte);
}

.pilotage__etat {
  margin: 0 0 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: .5rem;
  background: var(--hor-texte);
  color: white;
}

.pilotage__etat--ouvert { background: var(--hor-ouvert-fonce); }
.pilotage__etat--rendez_vous { background: var(--hor-ferme); }

.pilotage__etat-titre {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}

.pilotage__etat-detail {
  font-size: 1.1rem;
}

.pilotage__etat-jour {
  margin-top: .35rem;
  font-size: .9rem;
  opacity: .85;
}

.pilotage__gestes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin-bottom: 1.5rem;
}

.pilotage .pilotage__bouton {
  width: 100%;
  min-height: 3.5rem;
  margin: 0;
  padding: .6rem .75rem;
  border: 0;
  border-radius: .5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
  color: white;
  cursor: pointer;
}

.pilotage .pilotage__bouton--ouvrir { background: var(--hor-ouvert-fonce); }
.pilotage .pilotage__bouton--fermer { background: var(--hor-texte); }
.pilotage .pilotage__bouton--principal {
  margin-top: .75rem;
  background: var(--hor-titre);
}

.pilotage__carte {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: .5rem;
  background: var(--hor-creme);
}

.pilotage__titre {
  margin: 0 0 .75rem;
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--hor-titre);
}

/* Choix en pastilles : un toucher, pas de petite case à viser */
.pilotage__choix {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.pilotage__choix--liste {
  flex-direction: column;
}

.pilotage__choix .form-check,
.pilotage__choix .js-form-type-radio {
  margin: 0;
  padding: 0;
}

.pilotage__choix input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pilotage__choix label {
  display: block;
  margin: 0;
  padding: .6rem .9rem;
  border: 1px solid var(--hor-filet);
  border-radius: .4rem;
  background: white;
  cursor: pointer;
}

.pilotage__choix .form-check:has(input:checked) label,
.pilotage__choix .js-form-type-radio:has(input:checked) label {
  border-color: var(--hor-titre);
  background: var(--hor-titre);
  color: white;
}

.pilotage__choix .form-check:has(input:focus-visible) label,
.pilotage__choix .js-form-type-radio:has(input:focus-visible) label {
  outline: 2px solid var(--hor-ouvert);
  outline-offset: 2px;
}

.pilotage__autre {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: .6rem;
  margin: -.75rem 0 1.5rem;
}

.pilotage__autre .form-item,
.pilotage__autre .js-form-item {
  margin: 0;
}

.pilotage__autre .pilotage__bouton--principal {
  margin-top: 0;
  min-height: 2.75rem;
  padding-inline: 1.25rem;
}

.pilotage select {
  width: 100%;
  min-height: 2.75rem;
  font-size: 1.05rem;
}

.pilotage__plage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.pilotage input[type="time"],
.pilotage input[type="date"],
.pilotage input[type="text"] {
  width: 100%;
  min-height: 2.75rem;
  font-size: 1.05rem;
}

.pilotage__ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem 0;
  border-top: 1px solid var(--hor-filet);
}

.pilotage__ligne-texte {
  padding-left: .6rem;
  border-left: 3px solid var(--hor-ferme);
}

.pilotage__ligne--ouvert .pilotage__ligne-texte {
  border-left-color: var(--hor-ouvert);
}

.pilotage .pilotage__annuler {
  flex: none;
  padding: .45rem .8rem;
  border: 1px solid var(--hor-filet);
  border-radius: .4rem;
  background: white;
  color: var(--hor-texte);
  font-size: .95rem;
}

.pilotage__vide {
  margin: 0;
  color: var(--hor-ferme);
}


/* --- Plus de point de couleur : le mot porte l'état --------------------
   « Ouvert » en vert prairie ; « Fermé », « Réouvre… », « Sur rendez-vous »
   en gris. La pastille a un fond blanc, pour rester lisible sur les photos
   de l'accueil comme sur l'en-tête blanc. */

.horaires-pastille__point,
.horaires-carte__point {
  display: none;
}

.horaires-pastille {
  border-color: var(--hor-filet);
  background: rgba(255, 255, 255, .92);
  color: var(--hor-ferme);
  font-weight: 600;
}

.horaires-pastille:hover,
.horaires-pastille:focus-visible {
  background: white;
  color: var(--hor-texte);
}

.horaires-pastille--ouvert,
.horaires-pastille--ouvert:hover,
.horaires-pastille--ouvert:focus-visible {
  color: var(--hor-ouvert-fonce);
}

.horaires-carte__statut {
  color: var(--hor-ferme);
}

.horaires-carte--ouvert .horaires-carte__statut {
  color: var(--hor-ouvert-fonce);
}

/* --- Page Contact : les horaires et l'adresse, deux blocs distincts -----
   Un filet et un vrai espace sous les horaires ; le bloc suivant (l'adresse)
   commence par son propre titre, « Nous trouver ». */

.horaires-carte {
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hor-filet);
}


/* --- Page de pilotage : la semaine, jour par jour ------------------------
   Sur téléphone, une liste ; sur grand écran, sept colonnes. Un jour se
   touche pour modifier ses plages sur place. */

.pilotage__semaine {
  margin-top: 1.5rem;
}

.pilotage__semaine-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
}

.pilotage__semaine-titre {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--hor-titre);
}

.pilotage__semaine-fleche {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--hor-filet);
  border-radius: .5rem;
  background: white;
  color: var(--hor-titre);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
}

.pilotage__jour {
  margin: 0 0 .45rem;
  border: 1px solid var(--hor-filet);
  border-radius: .5rem;
  background: white;
}

.pilotage__jour[open] {
  border-color: var(--hor-titre);
}

.pilotage__jour-resume {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .25rem .75rem;
  padding: .7rem .9rem;
  list-style: none;
  cursor: pointer;
}

.pilotage__jour-resume::-webkit-details-marker {
  display: none;
}

.pilotage__jour-nom {
  font-weight: 600;
}

.pilotage__jour-marque {
  margin-left: .3rem;
  font-size: .8rem;
  font-style: normal;
  font-weight: 500;
  color: var(--hor-titre);
}

.pilotage__jour-puces {
  text-align: right;
}

.pilotage__puce {
  display: inline-block;
  margin: .1rem 0 .1rem .3rem;
  padding: .15rem .5rem;
  border-radius: .35rem;
  background: var(--hor-creme);
  color: var(--hor-texte);
  font-size: .9rem;
  white-space: nowrap;
}

.pilotage__puce--vide {
  border: 1px solid var(--hor-filet);
  background: transparent;
  color: var(--hor-ferme);
}

.pilotage__puce--modifie {
  border-color: var(--hor-titre);
  background: var(--hor-titre);
  color: white;
}

.pilotage__jour-note {
  grid-column: 1 / -1;
  font-size: .9rem;
  font-style: italic;
}

.pilotage__jour-editeur {
  padding: .75rem .9rem .9rem;
  border-top: 1px solid var(--hor-filet);
}

.pilotage__jour-editeur .pilotage__plage {
  margin-bottom: .4rem;
}

.pilotage__plage--nouvelle {
  padding-top: .4rem;
  border-top: 1px dashed var(--hor-filet);
}

.pilotage__aide {
  margin: .2rem 0 .6rem;
  font-size: .85rem;
  color: var(--hor-ferme);
}

.pilotage__jour-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem;
}

.pilotage__jour-boutons .pilotage__bouton--principal {
  width: auto;
  min-height: 2.75rem;
  margin: 0;
  padding-inline: 1.1rem;
}

/* Grand écran : la semaine en sept colonnes, le haut de page reste étroit. */
@media (min-width: 992px) {
  .pilotage {
    max-width: 76rem;
  }

  .pilotage__etat,
  .pilotage__gestes,
  .pilotage__autre {
    max-width: 34rem;
  }

  .pilotage__jours {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .5rem;
    align-items: start;
  }

  .pilotage__jour {
    margin: 0;
  }

  .pilotage__jour-resume {
    grid-template-columns: 1fr;
  }

  .pilotage__jour-puces {
    text-align: left;
  }

  .pilotage__puce {
    margin: .15rem .3rem .15rem 0;
  }

  .pilotage__jour-editeur .pilotage__plage {
    grid-template-columns: 1fr;
    gap: .3rem;
  }
}
