/* Page « Dormir sur une péniche à Lille » : mise en page dédiée. */

.page-template-hebergement .hublot .big-title {
  font-size: 17px;
  line-height: 1.2;
  width: 72%;
  left: 50%;
  word-break: normal;
  hyphens: none;
}

@media screen and (min-width: 768px) {
  .page-template-hebergement .hublot .big-title { font-size: 25px; }
}

@media screen and (min-width: 1280px) {
  .page-template-hebergement .hublot .big-title { font-size: 30px; }
}

.hebergement {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 80px;
  color: #1a1a1a;
}

.hebergement__chapo {
  font-size: 20px;
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.hebergement__split {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-bottom: 72px;
}

@media screen and (min-width: 900px) {
  .hebergement__split { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.hebergement__split-text h2,
.hebergement__title,
.hebergement__assoc h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 20px;
}

.hebergement__split-text p { margin: 0 0 16px; line-height: 1.6; }

.hebergement__split-media { margin: 0; }

.hebergement__split-media img,
.hebergement__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.hebergement__split-media img { aspect-ratio: 4 / 3; }

.hebergement__title { text-align: center; }

.hebergement__features {
  list-style: none;
  margin: 0 0 72px;
  padding: 0;
  display: grid;
  gap: 20px;
}

@media screen and (min-width: 700px) {
  .hebergement__features { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.hebergement__features li {
  background: #f8f4e8;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 20px 22px;
}

.hebergement__features strong { display: block; font-size: 17px; margin-bottom: 6px; }
.hebergement__features span { font-size: 15px; line-height: 1.5; }

.hebergement__gallery {
  display: grid;
  gap: 16px;
  margin-bottom: 72px;
  grid-template-columns: 1fr;
}

@media screen and (min-width: 700px) {
  .hebergement__gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Les photos du studio sont toutes en paysage : un cadre portrait les amputait. */
.hebergement__gallery figure { margin: 0; aspect-ratio: 4 / 3; }

.hebergement__assoc {
  background: #f8f4e8;
  border-radius: 6px;
  padding: 36px 28px;
  margin-bottom: 56px;
  text-align: center;
}

.hebergement__assoc p { max-width: 640px; margin: 0 auto; line-height: 1.6; }

.hebergement__cta { text-align: center; }

.hebergement__cta-note { font-size: 15px; margin: 0 0 20px; }

/* Calendrier de disponibilités */

.hebergement__calendar {
  display: grid;
  gap: 32px;
  margin: 0 auto 16px;
  max-width: 720px;
}

@media screen and (min-width: 700px) {
  .hebergement__calendar { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.hebergement__month-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 14px;
}

.hebergement__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.hebergement__dow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  padding-bottom: 6px;
  opacity: 0.6;
}

.hebergement__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 4px;
  background: #f8f4e8;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.hebergement__day abbr { text-decoration: none; border: 0; }
.hebergement__day.is-empty { background: none; border: 0; }
.hebergement__day.is-past { opacity: 0.35; }

.hebergement__day.is-busy {
  background: #e6534e;
  border-color: #e6534e;
  color: #fff;
  text-decoration: line-through;
}

.hebergement__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  margin: 0 0 28px;
}

.hebergement__key {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}

.hebergement__key--free { background: #f8f4e8; border: 1px solid rgba(0, 0, 0, 0.2); }
.hebergement__key--busy { background: #e6534e; margin-left: 14px; }

/* Sélection des dates */

button.hebergement__day {
  font: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

button.hebergement__day:hover { background: #ffd202; }

button.hebergement__day:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

button.hebergement__day.is-in-range { background: #ffe98a; }

button.hebergement__day.is-selected {
  background: #000;
  border-color: #000;
  color: #fff;
}

.hebergement__summary {
  text-align: center;
  font-size: 15px;
  margin: 0 0 12px;
  min-height: 22px;
}

.hebergement__booking { text-align: center; margin-bottom: 28px; }

/* Navigation entre les mois */

.hebergement__month[hidden] { display: none; }

.hebergement__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto 22px;
}

.hebergement__period {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}

.hebergement__nav-button {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid #000;
  border-radius: 50%;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.hebergement__nav-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.hebergement__nav-button--next svg { transform: rotate(180deg); }

.hebergement__nav-button:hover:not(:disabled) {
  background: #000;
  color: #fff;
}

.hebergement__nav-button:disabled {
  opacity: 0.25;
  cursor: default;
}

.hebergement__nav-button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* Questions fréquentes */

.hebergement__faq {
  max-width: 760px;
  margin: 0 auto 48px;
  background: #f8f4e8;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 8px 24px;
}

.hebergement__note {
  text-align: center;
  font-size: 15px;
  margin: 0 0 40px;
}

.hebergement__faq details {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.hebergement__faq details:last-of-type { border-bottom: 0; }

.hebergement__faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.hebergement__faq summary::-webkit-details-marker { display: none; }

.hebergement__faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}

.hebergement__faq details[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px);
}

.hebergement__faq summary:hover { color: #e6534e; }

.hebergement__faq summary:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.hebergement__faq p {
  margin: 0 4px 22px;
  line-height: 1.6;
  max-width: 62ch;
}
