/* ============================= */
/* CARTE HORAIRES */
/* ============================= */

.horaires-card {
  display: flex;
  flex-direction: column;

  width: 430px;
  max-width: calc(100vw - 40px);
  margin: 0;
  padding: 0;

  overflow: hidden;

  background: #fff;
  border-radius: 24px;

  font-family: "Roboto", sans-serif;

  box-shadow: 0 18px 45px rgba(4, 31, 45, 0.14);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.horaires-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 65px rgba(4, 31, 45, 0.20);
}

/* ============================= */
/* CURSEUR */
/* ============================= */

.horaires-card,
.horaires-card * {
  cursor: pointer;
}

/* ============================= */
/* IMAGE */
/* ============================= */

.horaires-image {
  width: 100%;
  height: 160px;

  margin: 0;
  padding: 0;

  overflow: hidden;
  flex-shrink: 0;
}

.horaires-image img {
  display: block;

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;

  object-fit: cover;

  transition: transform 0.45s ease;
}

.horaires-card:hover .horaires-image img {
  transform: scale(1.05);
}

/* ============================= */
/* CONTENU */
/* ============================= */

.horaires-content {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 18px;
}

/* ============================= */
/* EN-TÊTE */
/* ============================= */

.horaires-header {
  display: flex;
  align-items: center;

  gap: 16px;
  margin-bottom: 16px;

  text-align: left;
}

.horaires-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 68px;
  height: 68px;

  flex-shrink: 0;

  border-radius: 50%;
  background: #edf7f4;
  color: #20b191;
}

.horaires-icon i {
  font-size: 1.8rem;
  line-height: 1;
}

.horaires-divider {
  width: 2px;
  height: 48px;

  flex-shrink: 0;

  border-radius: 99px;
  background: #c9ebe2;
}

.horaires-heading h3 {
  margin: 0;

  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;

  color: #0f5f55;
}

.horaires-heading p {
  margin: 4px 0 0;

  font-size: 0.95rem;
  line-height: 1.25;

  color: #74828c;
}

/* ============================= */
/* LISTE DES HORAIRES */
/* ============================= */

.horaires-card-list {
  display: flex;
  flex-direction: column;

  gap: 6px;
}

.horaires-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;
  padding: 12px 14px;

  border: 1px solid #e4efec;
  border-radius: 12px;

  background: #fff;

  font-size: 0.9rem;
  color: #334957;
}

.horaires-card-row span {
  font-weight: 700;
}

.horaires-card-row strong {
  font-weight: 800;
  text-align: right;
  color: #0f5f55;
}

.horaires-card-row.is-today {
  position: relative;

  border: 2px solid #20b191;
  background: #fff;

  box-shadow: 0 6px 18px rgba(32, 177, 145, 0.10);
}

.horaires-card-row.is-today span,
.horaires-card-row.is-today strong {
  color: #0f5f55;
}

.horaires-card-row.closed strong {
  color: #d94a4a;
}

/* ============================= */
/* BOUTON DU BAS */
/* ============================= */

.horaires-arrow-wrapper {
  display: flex;
  justify-content: flex-end;

  margin-top: 18px;
}

.horaires-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  flex-shrink: 0;

  border: 3px solid #20b191;
  border-radius: 50%;

  background: transparent;
  text-decoration: none;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.horaires-arrow i {
  font-size: 1.8rem;
  color: #20b191;

  transition: color 0.3s ease;
}

.horaires-arrow:hover,
.horaires-card:hover .horaires-arrow {
  background: #20b191;
  border-color: #20b191;
}

.horaires-arrow:hover i,
.horaires-card:hover .horaires-arrow i {
  color: #fff;
}


/* ============================= */
/* CARTE HORAIRES — VERSION PAGE */
/* ============================= */

.horaires-page-card {
  width: 100%;
  max-width: none;
  cursor: default;
}

.horaires-page-card:hover {
  transform: none;
  box-shadow: 0 18px 45px rgba(4, 31, 45, 0.14);
}

.horaires-page-card .horaires-image {
  height: 160px;
}

.horaires-page-card .horaires-content {
  padding: 24px 30px;
}

.horaires-page-card .horaires-header {
  gap: 14px;
  margin-bottom: 12px;
}

.horaires-page-card .horaires-icon {
  width: 60px;
  height: 60px;
}

.horaires-page-card .horaires-divider {
  height: 42px;
}

.horaires-page-card .horaires-card-list {
  gap: 5px;
}

.horaires-page-card .horaires-card-row {
  padding: 9px 12px;
  border-radius: 11px;
}

.horaires-page-card .horaires-arrow-wrapper {
  margin-top: 14px;
}

.horaires-page-card .horaires-arrow {
  width: 52px;
  height: 52px;
}

.horaires-page-card .horaires-image img {
  transform: none;
}

/* ============================= */
/* INDICE VISUEL CARTE CLIQUABLE */
/* ============================= */

.hours-popup.active .horaires-arrow {
  animation: horairesArrowHalo 4s ease-in-out infinite;
}

.hours-popup.active .horaires-arrow i {
  animation: horairesArrowMove 4s ease-in-out infinite;
}

@keyframes horairesArrowHalo {
  0%, 50%, 100% {
    box-shadow: 0 0 0 0 rgba(32,177,145,0);
  }
  56% {
    box-shadow: 0 0 0 12px rgba(32,177,145,.20);
  }
  60% {
    box-shadow: 0 0 0 6px rgba(32,177,145,.10);
  }
}

@keyframes horairesArrowMove {
  0%, 50%, 100% {
    transform: translateX(0);
  }
  56% {
    transform: translateX(9px);
  }
  60% {
    transform: translateX(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hours-popup.active .horaires-arrow,
  .hours-popup.active .horaires-arrow i {
    animation: none;
  }
}

/* ============================= */
/* CARTE HORAIRES — VERSION PAGE */
/* ============================= */

.horaires-page-version {
  width: 100%;
  max-width: none;

  cursor: default;
}

.horaires-page-version,
.horaires-page-version * {
  cursor: default;
}

.horaires-page-version:hover {
  transform: none;

  box-shadow:
    0 18px 45px rgba(4, 31, 45, 0.14);
}

.horaires-page-version:hover .horaires-image img {
  transform: none;
}

.horaires-page-version .horaires-image {
  height: 160px;
}

.horaires-page-version .horaires-content {
  padding: 24px 30px;
}

.horaires-page-version .horaires-header {
  gap: 14px;
  margin-bottom: 12px;
}

.horaires-page-version .horaires-icon {
  width: 60px;
  height: 60px;
}

.horaires-page-version .horaires-divider {
  height: 42px;
}

.horaires-page-version .horaires-heading {
  min-width: 0;
}

.horaires-page-version .hours-status {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-left: auto;

  font-size: 0.9rem;
  font-weight: 700;

  color: #0f5f55;
}

.horaires-page-version .led-dot-page {
  width: 10px;
  height: 10px;

  flex-shrink: 0;

  border-radius: 50%;
  background: #6ff7c8;

  box-shadow: 0 0 12px rgba(111, 247, 200, 0.55);
}

.horaires-page-version .horaires-card-list {
  gap: 5px;
}

.horaires-page-version .horaires-card-row {
  padding: 9px 12px;

  border-radius: 11px;
}

.horaires-page-version .hours-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  margin-top: 16px;
  padding: 14px 16px;

  border: 1px solid #dceee9;
  border-radius: 12px;

  background: #f6fbfa;
  color: #50656f;
}

.horaires-page-version .hours-note i {
  margin-top: 2px;

  color: #20b191;
  font-size: 1rem;
}

.horaires-page-version .hours-note p {
  margin: 0;

  font-size: 0.88rem;
  line-height: 1.5;
}

.horaires-page-version .horaires-heading p {
  display: none;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 520px) {
  .horaires-card {
    width: calc(100vw - 32px);
  }

  .horaires-image {
    height: 130px;
  }

  .horaires-content {
    padding: 16px;
  }

  .horaires-header {
    gap: 12px;
  }

  .horaires-icon {
    width: 58px;
    height: 58px;
  }

  .horaires-card-row {
    align-items: flex-start;
    flex-direction: column;

    gap: 5px;
  }

  .horaires-card-row strong {
    text-align: left;
  }

  .horaires-arrow {
    width: 52px;
    height: 52px;
  }
}

@media (max-height: 850px) {
  .horaires-image {
    height: 105px;
  }

  .horaires-content {
    padding: 12px 16px 14px;
  }

  .horaires-header {
    gap: 12px;
    margin-bottom: 12px;
  }

  .horaires-icon {
    width: 58px;
    height: 58px;
  }

  .horaires-card-row {
    padding: 9px 12px;
  }
}

@media (max-width: 700px) {
  .horaires-page-version .horaires-content {
    padding: 20px 18px;
  }

  .horaires-page-version .horaires-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .horaires-page-version .hours-status {
    width: 100%;
    margin-left: 0;
  }
}

/* ============================= */
/* BLOC SÉPARÉ — JOURS FÉRIÉS */
/* ============================= */

.hours-holidays-card {
  width: 100%;
  margin-top: 0;
  padding: 24px 30px;

  border: 1px solid #e4efec;
  border-radius: 24px;

  background: #fff;
  box-shadow: 0 18px 45px rgba(4, 31, 45, 0.10);

  font-family: "Roboto", sans-serif;
}

.hours-holidays-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;

  margin-bottom: 20px;
}

.hours-holidays-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;
  flex-shrink: 0;

  border-radius: 50%;

  background: #edf7f4;
  color: #20b191;
}

.hours-holidays-icon i {
  font-size: 1.35rem;
}

.hours-holidays-heading h2 {
  margin: 0;

  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;

  color: #0f5f55;
}

.hours-holidays-heading p {
  margin: 5px 0 0;

  font-size: 0.95rem;
  line-height: 1.5;

  color: #50656f;
}

.hours-holidays-list {
  display: flex;
  flex-direction: column;
  gap: 8px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.hours-holidays-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 12px 14px;

  border: 1px solid #e4efec;
  border-radius: 12px;

  background: #fff;
}

.hours-holidays-list strong {
  font-size: 0.92rem;
  color: #17313b;
}

.hours-holidays-list span {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;

  color: #0f7f69;
}

.hours-holidays-footer{
    border-top:none;
    padding-top:0;
    margin-top:24px; /* ou 28px selon ton espacement */
}

@media (max-width: 700px) {
  .hours-holidays-card {
    padding: 20px 18px;
  }
}

@media (max-width: 520px) {
  .hours-holidays-card {
    margin-top: 18px;
    border-radius: 18px;
  }

  .hours-holidays-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .hours-holidays-list span {
    text-align: left;
  }
}
