.hours-page {
  font-family: 'Inter', Arial, sans-serif;
  color: #0b2d3a;
  background: #fff;
}

.hours-page .hours-main-card {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(360px, .8fr);
  gap: 28px;
  align-items: start;
  margin-top: 35px;
}

/* Carte principale des horaires */

.hours-left {
  min-width: 0;

  padding: 0;
  overflow: hidden;

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

  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}

/* Colonne Informations utiles */

.hours-page .hours-info-card {
  min-width: 0;

  padding: 35px;

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

  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}

/* Image et contenu de la carte principale */

.horaires-page-card {
  width: 100%;
  overflow: hidden;
}

.horaires-page-card .horaires-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.horaires-page-card .horaires-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.horaires-page-content {
  padding: 35px;
}

/* ==========================
   TITRE
========================== */

.hours-title-row{
  display:grid;
  grid-template-columns:58px 1fr auto;
  align-items:center;
  gap:22px;
  margin-bottom:35px;
}

.hours-title-row h2{
  margin:0;
  font-size:32px;
}

.hours-title-row p{
  margin:6px 0 0;
  color:#687985;
}

.hours-status{
  display:flex;
  align-items:center;
  gap:10px;

  font-size:18px;
  font-weight:700;

  color:#159a83;

  white-space:nowrap;
}

.led-dot-page{
  width:12px;
  height:12px;

  border-radius:50%;

  background:#54df7a;
  box-shadow:0 0 10px rgba(84,223,122,.5);

  flex-shrink:0;
}

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

.hours-list-page{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.hours-page-row{
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:22px 30px;

  border-radius:15px;

  background:#fff;
  border:1px solid #edf1f2;

  transition:.25s ease;
}

.hours-page-row:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(0,0,0,.05);
}

.hours-page-row strong{
  font-size:22px;
  font-weight:700;
}

.hours-time{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}

.hours-time span{
  font-size:20px;
  font-weight:700;
  line-height:1.2;
}

.hours-time em{
  margin-top:6px;

  font-style:normal;
  font-size:14px;
  font-weight:700;

  color:#159a83;

  text-align:right;
}

.hours-page-row.today{
  background:#eefaf8;
  border:1px solid #8fded2;
}

.hours-page-row.closed .hours-time span{
  color:#e04848;
}

/* ==========================
   NOTE
========================== */

.hours-note{
  margin-top:30px;
  padding:20px;

  display:flex;
  gap:15px;

  border-radius:18px;
  background:#f7fbfb;
}

.hours-note i{
  color:#159a83;
  font-size:22px;
}

.hours-note p{
  margin:0;
  line-height:1.7;
  color:#4d5c67;
}

.hours-right{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.hours-right .contact-map-card{
    width:100%;
    margin:0;
}

.hours-right .contact-card{
    max-width:none;
}

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

@media(max-width:1050px){

  .hours-page .hours-main-card {
    grid-template-columns: 1fr;
  }

  .hours-title-row{
    grid-template-columns:58px 1fr;
  }

  .hours-status{
    grid-column:2;
    margin-top:8px;
  }

}

@media(max-width:700px){

  .hours-title-row{
    grid-template-columns:1fr;
    text-align:center;
  }

  .hours-status{
    grid-column:auto;
    justify-content:center;
  }

  .hours-page-row{
    flex-direction:column;
    text-align:center;
    gap:14px;
  }

  .hours-time{
    align-items:center;
  }

  .hours-time em{
    text-align:center;
  }

  .hours-note{
    flex-direction:column;
    text-align:center;
  }

  .hours-info-item{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }

}

/* ===================================== */
/* GRANDE CARTE HORAIRES AVEC IMAGE      */
/* ===================================== */

.hours-left{
  padding:0;
  overflow:hidden;

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

  box-shadow:0 8px 28px rgba(0,0,0,.08);
}

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

  margin:0;
  padding:0;

  overflow:hidden;
  background:#fff;

  border-radius:inherit;
}

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

  margin:0;
  padding:0;

  overflow:hidden;
}

.horaires-page-card .horaires-image img{
  display:block;

  width:100%;
  height:100%;

  margin:0;
  padding:0;

  object-fit:cover;
  object-position:center;

  transition:transform .45s ease;
}

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

.horaires-page-content{
  padding:35px;
}

.horaires-page-content .hours-title-row{
  margin-bottom:35px;
}

/* ===================================== */
/* ALIGNEMENT TEXTE POPUP HORAIRES       */
/* ===================================== */

.horaires-header-text{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
}

.horaires-header-text p{
    margin:2px 0 0;
    text-align:left;
}

/* ==========================
   CARTE GARDE SOUS INFORMATIONS UTILES
========================== */

.hours-page .hours-right {
  gap: 28px;
}

.hours-page .hours-garde-card {
  width: 100%;
  min-width: 0;
}

.hours-page .hours-garde-card .garde-popup {
  width: 100%;
  max-width: none;
}

.hours-page .hours-garde-card .garde-popup:hover {
  transform: none;
}

/* ==========================
   COLONNE GAUCHE — ESPACEMENT ENTRE LES DEUX CARTES
========================== */

.hours-left-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

/* Le gap de la colonne gère seul l'espacement. */
.hours-left-column .hours-holidays-card {
  margin-top: 0;
}

/* ==========================
   ANIMATION DE LA FLÈCHE — CARTE GARDE DANS LA PAGE HORAIRES
========================== */

.hours-page .hours-garde-card .garde-arrow {
  animation: gardeArrowHalo 4s ease-in-out infinite;
}

.hours-page .hours-garde-card .garde-arrow i {
  animation: gardeArrowMove 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hours-page .hours-garde-card .garde-arrow,
  .hours-page .hours-garde-card .garde-arrow i {
    animation: none;
  }
}
