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

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

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

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

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

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

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

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

.peniche__split-text h2,
.peniche__title,
.peniche__assoc h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 20px;
}

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

.peniche__split-cta { margin: 24px 0 0; }
.peniche__split-cta .cta { display: inline-flex; margin: 0; }

.peniche__split-media { margin: 0; }

.peniche__split-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

.peniche__title { text-align: center; }

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

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

.peniche__usage {
  background: #f8f4e8;
  border: 2px solid #000;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.peniche__usage-media {
  display: block;
  background: #fff;
  border-bottom: 2px solid #000;
}

.peniche__usage-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

/* La photo de privatisation n'est pas détourée : elle remplit le cadre. */
.peniche__usage:last-child .peniche__usage-media img { object-fit: cover; }

.peniche__usage-media:hover img,
.peniche__usage-media:focus-visible img { transform: scale(1.04); }

.peniche__usage-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.peniche__usage-body strong { display: block; font-size: 19px; margin-bottom: 10px; }
.peniche__usage-body p { font-size: 15px; line-height: 1.55; margin: 0 0 20px; }

.peniche__usage-body .cta,
.peniche__access-text .cta {
  display: inline-flex;
  width: auto;
  min-width: 200px;
  max-width: 100%;
  padding: 0 20px;
}

/* Carte d'activité : le bouton reste collé en bas, centré dans la carte. */
.peniche__usage-body .cta {
  align-self: center;
  margin: auto 0 0;
}

/* Bloc d'accès : pas de conteneur flex ici, on centre à la marge (display: flex,
   sinon les marges auto n'ont pas de prise sur un élément en ligne). */
.peniche__access-text .cta {
  display: flex;
  margin: 24px auto 0;
}

.peniche__access {
  background: #f8f4e8;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 28px 26px;
  margin-bottom: 72px;
  display: grid;
  gap: 28px;
  align-items: center;
}

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

.peniche__access h2 { font-size: 26px; line-height: 1.2; margin: 0 0 16px; }
.peniche__access ul { margin: 0 0 24px; padding-left: 20px; }
.peniche__access li { line-height: 1.6; margin-bottom: 8px; }

.peniche__access-map {
  display: block;
  border: 2px solid #000;
  border-radius: 6px;
  overflow: hidden;
}

.peniche__access-map img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.peniche__access-map:hover img,
.peniche__access-map:focus-visible img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .peniche__usage-media img,
  .peniche__access-map img { transition: none; }
  .peniche__usage-media:hover img,
  .peniche__access-map:hover img { transform: none; }
}

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

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

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

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

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

.peniche__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;
}

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

.peniche__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;
}

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

.peniche__faq p { margin: 0 0 20px; line-height: 1.6; }
