/* Voyages sub-pages: Nos circuits, Circuit detail, Voyage sur mesure */
@import url("../css/typography.css");

.voyages-page-hero {
  position: relative;
  min-height: clamp(280px, 55vh, 380px);
  height: clamp(280px, 55vh, 380px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  margin: 0 auto;
  max-width: 1280px;
  width: 100%;
  box-sizing: border-box;
  background-image: url("https://i.ibb.co/XZknf8ZT/4b8ff546-de49-4f23-ae94-4f05ffa17184.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.voyages-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.voyages-page-hero h1,
.voyages-page-hero .voyages-page-hero__intro {
  position: relative;
  z-index: 1;
}

.voyages-page-hero--short {
  min-height: clamp(260px, 50vh, 340px);
  height: clamp(260px, 50vh, 340px);
  padding: clamp(2rem, 5vw, 2.5rem) clamp(1rem, 4vw, 1.5rem);
}

.voyages-page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  margin: 0 0 0.5rem;
  max-width: 800px;
}

.voyages-page-hero__intro {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
  text-align: justify;
}

.voyages-text-block {
  margin: 2.5rem 100px;
  font-family: 'Poppins', sans-serif;
}

.voyages-text-block--centered {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.voyages-text-block__title {
  font-size: 1.75rem;
  color: #950101;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.voyages-text-block__content {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}

.voyages-text-block__content p {
  margin: 0 0 1rem;
}

/* Circuit cards section (image-based blog cards) */
.circuits-cards {
  padding: 2rem 100px 3rem;
}

.circuits-cards__title {
  font-size: 1.5rem;
  color: #950101;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Poppins', sans-serif;
}

.voyages-blog-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.voyages-blog-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.voyages-blog-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.voyages-blog-card:hover {
  transform: translateY(-6px) scale(1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.voyages-blog-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.voyages-blog-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.voyages-blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.voyages-blog-card:hover .voyages-blog-card__image {
  transform: scale(1.05);
}

.voyages-blog-card__image--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
}

.voyages-blog-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 80%
  );
  pointer-events: none;
}

.voyages-blog-card__text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  backdrop-filter: blur(2px);
}

.voyages-blog-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.voyages-blog-card__desc {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  opacity: 0.95;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .voyages-page-hero { min-height: 240px; height: 240px; }
  .circuits-cards { padding: 2rem 50px 3rem; }
  .voyages-blog-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .voyages-page-hero { min-height: 200px; height: 200px; padding: 2rem 1rem; }
  .voyages-page-hero h1 { font-size: clamp(1.5rem, 4vw, 1.75rem); }
  .voyages-text-block { margin: 2rem 20px; }
  .circuits-cards { padding: 2rem 20px 3rem; }
  .voyages-blog-cards { grid-template-columns: 1fr; gap: 1.25rem; }
  .voyages-blog-card__text { padding: 1.25rem 1rem; }
  .voyages-blog-card__title { font-size: 1.1rem; }
  .voyages-blog-card__desc { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .voyages-page-hero { min-height: 180px; height: 180px; padding: 1.5rem 1rem; }
  .voyages-page-hero h1 { font-size: 1.35rem; }
  .circuits-cards { padding: 1.5rem 10px 2rem; }
  .voyages-blog-card__title { font-size: 1.05rem; }
  .voyages-blog-card__desc { font-size: 0.8rem; -webkit-line-clamp: 2; }
}

/* Clickable thematic cards */
.circuits-thematiques-card {
  cursor: pointer;
}

/* Circuit detail modal (same-page, no redirect) */
.circuit-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.circuit-detail-modal.circuit-detail-modal--open {
  opacity: 1;
  visibility: visible;
}
.circuit-detail-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.circuit-detail-modal__box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  padding: 2rem;
  padding-top: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.circuit-detail-modal--open .circuit-detail-modal__box {
  transform: scale(1);
}
.circuit-detail-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}
.circuit-detail-modal__close:hover {
  color: #950101;
}
.circuit-detail-modal__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #950101;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.circuit-detail-modal__content {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
  text-align: justify;
}
.circuit-detail-modal__paragraph {
  margin: 0 0 0.75rem;
}
.circuit-detail-modal__paragraph:last-child {
  margin-bottom: 0;
}

.circuit-detail-modal__cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  background-color: #950101;
  color: #fff;
  border: 2px solid #950101;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.circuit-detail-modal__cta:hover {
  background-color: #7a0101;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .circuit-detail-modal__cta {
    width: 100%;
    padding: 1rem 1.5rem;
  }
}

/* Circuit detail page */
.circuit-detail__back {
  display: inline-block;
  margin: 1.5rem 100px 0;
  font-family: 'Poppins', sans-serif;
  color: #950101;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.circuit-detail__back:hover {
  text-decoration: underline;
}

.circuit-detail__content {
  margin: 1rem 100px 3rem;
  max-width: 720px;
  font-family: 'Poppins', sans-serif;
}

.circuit-detail__image-wrap {
  margin-bottom: 1.75rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.circuit-detail__image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.circuit-detail__title {
  font-size: 1.75rem;
  color: #950101;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.circuit-detail__body {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}

.circuit-detail__cta {
  margin-top: 2.5rem;
}

.circuit-detail__cta .voyages-cta-btn {
  display: inline-block;
}

@media (max-width: 768px) {
  .circuit-detail__back { margin: 1rem 20px 0; }
  .circuit-detail__content { margin: 1rem 20px 2rem; }
}

@media (max-width: 480px) {
  .circuit-detail__back { margin: 1rem 10px 0; }
  .circuit-detail__content { margin: 1rem 10px 1.5rem; }
}

/* Voyage sur mesure page */
.voyage-mesure-hero {
  position: relative;
  min-height: clamp(280px, 55vh, 380px);
  height: clamp(280px, 55vh, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
  background-image: url("https://i.ibb.co/XZknf8ZT/4b8ff546-de49-4f23-ae94-4f05ffa17184.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.voyage-mesure-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.voyage-mesure-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

.voyage-mesure-hero__title {
  position: relative;
  z-index: 1;
  color: #fff;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.voyage-mesure-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voyage-mesure-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  box-sizing: border-box;
}

.voyage-mesure-content {
  margin: 2.5rem 0 3rem;
  max-width: 780px;
  font-family: 'Poppins', sans-serif;
}

.voyage-mesure-content h1 {
  font-size: 1.75rem;
  color: #950101;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.voyage-mesure-content .voyages-text-block__content,
.voyage-mesure-content p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.voyage-mesure-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  color: #444;
  font-size: 1.05rem;
  line-height: 1.8;
}

.voyage-mesure-list li {
  margin-bottom: 0.5rem;
}

.voyage-mesure-list ul {
  margin: 0.5rem 0 0.5rem 1rem;
  padding-left: 1rem;
}

.voyage-mesure-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.voyage-mesure-cta .voyages-cta-btn {
  display: inline-block;
}

.voyage-mesure-cta button.voyages-cta-btn {
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 768px) {
  .voyage-mesure-hero { min-height: 200px; height: 200px; padding: 2rem 1rem; }
  .voyage-mesure-hero__title { font-size: 1.75rem; }
  .voyage-mesure-container { padding: 0 1.25rem; }
  .voyage-mesure-content { margin: 2rem 0 2.5rem; }
  .voyage-mesure-list { padding-left: 1.25rem; }
}

@media (max-width: 480px) {
  .voyage-mesure-hero { min-height: 180px; height: 180px; padding: 1.5rem 1rem; }
  .voyage-mesure-hero__title { font-size: 1.5rem; }
  .voyage-mesure-container { padding: 0 1rem; }
  .voyage-mesure-content { margin: 1.5rem 0 2rem; }
  .voyage-mesure-cta { flex-direction: column; margin-top: 2rem; }
  .voyage-mesure-cta .voyages-cta-btn { width: 100%; text-align: center; padding: 1rem; }
}

/* Contact modal on Voyage sur mesure: dark / elegant */
.voyage-modal--contact .voyage-modal__overlay {
  background: rgba(0, 0, 0, 0.75);
}

.voyage-modal--contact .voyage-modal__box {
  background: #2d2d2d;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.voyage-modal--contact .voyage-modal__title {
  color: #fff;
}

.voyage-modal--contact .voyage-modal__content {
  color: #e0e0e0;
}

.voyage-modal--contact .voyage-modal__content a {
  color: #e88;
}

.voyage-modal--contact .voyage-modal__content a:hover {
  color: #fff;
  text-decoration: underline;
}

.voyage-modal--contact .voyage-modal__close {
  color: #999;
}

.voyage-modal--contact .voyage-modal__close:hover {
  color: #fff;
}
