/* --- Base & Normalized Styles --- */

.home_tarifs {
  position: relative;
  z-index: 888;
}

.home_tarifs_wave {
  display: flex;
  position: relative;
  z-index: 1;
  height: clamp(100px, 20vw, 180px); /* Fluid wave height */
  overflow: hidden;
}

.wave-svg {
  width: 100%;
  height: 100%;
}

.wave-move {
  animation: waveMove 25s linear infinite;
}

@keyframes waveMove {
  from { transform: translateX(0); }
  to { transform: translateX(-1600px); }
}

/* --- CANOE SECTION (Untouched exactly as requested) --- */
.home_tarifs_canoe {
    display: flex;
    justify-content: flex-end;
  align-items: center;
    width: calc(100% - 50px);
    max-width: 1560px;
    height: 400px;
    overflow: visible;
    margin-top: -200px;
    margin-block: -200px;
    z-index: 99999999;
    position: relative
}

.home_tarifs_canoe img {
  max-width: 500px;
  height: auto;
}
/* ------------------------------------------------------- */

.home_tarifs_data {
  background-image: linear-gradient(180deg, #C3E2B345 0%, #C3E2B345 80%, transparent 100%);
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.home_tarifs_sized {
  display: flex;
  width: 100%;
  max-width: 1280px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 10px 120px;
  box-sizing: border-box;
}

.home_tarifs_sized h2 {
  display: flex;
  width: 100%;
  align-items: flex-start;
}

.home_tarifs_sized h2 div.tilde {
  display: flex;
  align-items: center;
  width: 36px;
  height: clamp(40px, 6vw, 60px);
  margin-right: 10px;
  flex-shrink: 0;
}

.home_tarifs_sized h2 div.tilde img {
  width: 100%;
  height: auto;
}

.home_tarifs_sized h2 div.flex_title_text {
  display: flex;
  flex-wrap: wrap;
  width: calc(100% - 46px);
}

.home_tarifs_sized h2 div.flex_title_text > div:nth-child(1) {
  width: 100%;
  color: #3FB0E5;
  font: 400 clamp(2rem, 5vw, 3.75rem) / 1.1 OS_ALT_Regular_Italic;
  text-align: left;
  letter-spacing: -0.84px;
}

.home_tarifs_sized h2 div.flex_title_text > div:nth-child(2) {
  width: 100%;
  color: #242424;
  font: 400 clamp(1.5rem, 4vw, 2.5rem) / 1.1 OS_ALT_Regular_Italic;
  text-align: left;
  letter-spacing: -0.84px;
}

/* --- Auto-Wrapping Grid --- */
.home_tarifs_list {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* Centers items perfectly on all screen sizes */
}

.home_tarifs_item {
  display: flex;
  flex: 1 1 280px; /* Grows and shrinks automatically, wrapping when needed */
  max-width: 348px; /* Prevents cards from getting too wide on large screens */
  justify-content: center;
  align-items: stretch; /* Makes all cards in a row the same height */
  cursor: pointer;
  margin-top: 20px;
  text-decoration: none;
}

.home_tarifs_item_sized {
  display: flex;
  width: 100%;
  overflow: hidden;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 32px;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.home_tarifs_item_img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.home_tarifs_item_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home_tarifs_item_data {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 40px 20px 24px;
  box-sizing: border-box;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 20px 20px 0px 0px;
  margin-top: -20px;
  position: relative; 
  transition: background-color 0.3s ease; 
  flex-grow: 1; /* Ensures the white background fills to the bottom of the card */
}

.home_tarifs_item:hover .home_tarifs_item_data {
  background-color: #F8CA07;
}

.home_tarifs_item_data_label {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.home_tarifs_item_data_label_text div:nth-child(1) {
  margin: 0;
  color: #242424;
  font: 400 clamp(1.5rem, 3vw, 1.875rem) / 1.2 OS_ALT_Regular;
  text-align: center;
}

.home_tarifs_item_data_label_text div:nth-child(2) {
  margin: 10px 0 0 0;
  color: #242424;
  font: 400 clamp(1.125rem, 2vw, 1.375rem) / 1.2 OS_Regular;
  text-align: center;
}

.home_tarifs_item_data_label_arrow {
  display: none;
  align-items: center;
}

.home_tarifs_item:hover .home_tarifs_item_data_label_arrow {
  display: flex;
}

.home_tarifs_item_data_date_time {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  margin-top: 40px;
  gap: 10px;
}

.home_tarifs_item_data_date,
.home_tarifs_item_data_time {
    display: flex;
    align-items: center;
    /*! width: 50%; */
}

.home_tarifs_item_data_date > div:nth-child(1),
.home_tarifs_item_data_time > div:nth-child(1) {
  display: flex;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

.home_tarifs_item_data_date > div:nth-child(1) > svg,
.home_tarifs_item_data_time > div:nth-child(1) > svg {
  width: 20px;
  height: auto;
  color: #242424;
  fill: #242424;
}

.home_tarifs_item_data_date > div:nth-child(2),
.home_tarifs_item_data_time > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  width: calc(100% - 25px);
  color: #242424;
  text-align: left;
}

.home_tarifs_item_data_price_note {
  font-size: 0.7em;
}

.home_tarifs_item_data_date > div:nth-child(2) {
  font: 400 clamp(0.9rem, 2vw, 1.25rem) / 1.3 OS_SemiBold;
}

.home_tarifs_item_data_time > div:nth-child(2) {
  font: 400 clamp(0.9rem, 2vw, 1.25rem) / 1.3 OS_Regular;
}

/* --- Responsive Partition --- */

/* Mobile Devices */
@media (max-width: 480px) {
  .home_tarifs_sized {
    padding-bottom: 60px;
  }

  .home_tarifs_item {
    flex-basis: 100%; /* Forces full width single column on mobile */
  }

  .home_tarifs_item_data_date_time {
    flex-direction: column; /* Stack date and time vertically */
    gap: 15px;
    align-items: center;
  }
  
  .home_tarifs_item_data_date,
  .home_tarifs_item_data_time {
    justify-content: center;
  }

  .home_tarifs_canoe {
    display: none;
  }
}