/* === STYLE GLOBAL === */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #f5f5f5;
  padding-top: 65px;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.25s ease-in-out;
}

/* Effet hover global (sauf logo) */
img:not(.logo-section img):hover {
  opacity: 0.85;
}

/* === BARRE SUPÉRIEURE FIXÉE === */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 8px 20px;
  height: 65px;
}

/* Recherche */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

#searchInput {
  display: none;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 14px;
}

#searchInput.active {
  display: inline-block;
}

.search-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  font-size: 18px;
  transition: color 0.3s ease;
}

.search-button:hover {
  color: #00455F;
}

/* Menu */
.main-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-menu ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.main-menu a {
  text-decoration: none;
  color: #333;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.main-menu a:hover {
  color: #00455F;
}

/* Icônes sociales */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #333;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #00455F;
}

/* === LIGNE SÉPARATRICE === */
.header-separator {
  width: 100%;
  height: 1px;
  background-color: #e5e5e5;
}

/* === SECTION LOGO === */
.logo-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #fef1d4;
}

.logo-section img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  transition: all 0.3s ease;
}

/* === SECTION BANNIÈRE === */
.banner-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  padding: 10px 0;
  margin-top: 20px;
}

.banner-container {
  position: relative;
  width: 99.2%;
  max-width: 1400px;
  overflow: hidden;
  max-height: 380px;
  margin: 0 auto;
}

.banner-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 0.4%;
}

.banner-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #cccbca;
  font-size: 48px;
  font-weight: 400;
  font-family: "Pacifico", cursive;
}

/* === SECTION DÉCOUVERTE RIVIAN === */
.discover-section {
  background-color: #fff;
  padding: 60px 0;
  display: flex;
  justify-content: center;
}

.discover-container {
  background-color: #f8f8f8;
  width: 80%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 20% 80%;
  align-items: center;
  gap: 50px;
  border-radius: 8px;
  padding: 40px;
}

/* Texte à gauche du slider */
.discover-text h2 {
  font-family: 'Zen Loop', cursive;
  font-size: 20px;
  font-weight: 400;
  color: #333;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

/* Partie droite (slider) */
.discover-slider {
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 15px;
  margin-right: 30px;
  overflow: hidden;
  position: relative;
}

/* Slides */
.slider-item {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  justify-items: center;
  gap: 20px;
  transition: opacity 0.5s ease;
}

.slider-item img {
  width: 90%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin: 10px auto;
  background-color: #fff;
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-item img:hover {
  transform: scale(1.02);
  box-shadow: 0px 10px 24px rgba(0, 0, 0, 0.25);
}

/* Infos dans le slider */
.slider-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  gap: 15px;
}

.slider-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin: 0 0 15px 0;
}

/* Boutons du slider */
.slider-controls {
  display: flex;
  gap: 10px;
}

.slider-controls button {
  background: none;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: #555;
  transition: all 0.3s ease;
}

.slider-controls button:hover {
  background-color: #00455F;
  color: #fff;
  border-color: #dfa794;
}

/* === SECTION ABONNEMENT === */
.subscribe-section {
  background-color: #fff;
  padding: 15px 0;
  display: flex;
  justify-content: center;
}

.subscribe-container {
  background-color: #f8f8f8;
  width: 80%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 70% 30%;
  align-items: center;
  border-radius: 8px;
  padding: 40px;
  gap: 30px;
}

.subscribe-text h2 {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.subscribe-text p {
  color: #555;
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.subscribe-form input {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 70%;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.subscribe-form input:focus {
  border-color: #dfa794;
}

.subscribe-form button {
  padding: 10px 18px;
  background-color: #0046ad;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
  background-color: #c87e69;
}

/* === SECTION ARTICLES (INDEX) === */
.articles-section {
  background-color: #fff;
  padding: 80px 20px;
}

.articles-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.article-item {
  width: 300px;
  background-color: #fafafa;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.article-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-item h3 {
  font-size: 18px;
  margin: 15px 20px 10px;
  color: #222;
}

.article-item p {
  font-size: 14px;
  margin: 0 20px 20px;
  color: #555;
  line-height: 1.6;
}

/* === PAGE VOYAGES === */
.voyages-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  background-color: #fff;
}

.voyage-card {
  width: 320px;
  background-color: #fafafa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.voyage-card:hover {
  transform: translateY(-6px);
}

.voyage-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.voyage-card h3 {
  font-size: 18px;
  margin: 15px 20px 5px;
}

.voyage-card p {
  font-size: 14px;
  color: #555;
  margin: 0 20px 15px;
  line-height: 1.6;
}

/* === ARTICLES (pages individuelles) === */
.article-content {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
  line-height: 1.9;
  font-family: "Merriweather", serif;
  font-size: 17px;
  color: #333;
}

/* === BANDEAU ARTICLES RELIÉS === */
.related-articles {
  background-color: #ffffff;
  padding: 60px 0;
  text-align: center;
  font-family: "Merriweather", serif;
  border-top: 1px solid #e0e0e0;
}

.related-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 26px;
  color: #00455F;
  margin-bottom: 40px;
}

.related-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.related-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  width: 300px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.related-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-item h3 {
  font-size: 18px;
  color: #222;
  margin: 15px 0 8px;
}

.related-item p {
  font-size: 14px;
  color: #555;
  padding: 0 15px;
  line-height: 1.6;
  margin: 0 0 10px;
}

.related-link {
  display: inline-block;
  margin-bottom: 18px;
  background-color: #a8d3d3;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.related-link:hover {
  background-color: #c87e69;
}

/* === FOOTER === */
.site-footer,
.article-footer {
  background-color: #fff;
  text-align: center;
  padding-top: 20px;
  color: #555;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
}

.footer-separator {
  width: 100%;
  height: 1px;
  background-color: #ddd;
  margin-bottom: 15px;
}

/* === BOUTON REMONTER === */
#scrollToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background-color: #a8d3d3;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 9999;
}

#scrollToTop:hover {
  background-color: #c87e69;
  transform: translateY(-4px);
}

/* === ALBUM PHOTO (3 PHOTOS VERTICALES) === */
.album-section {
  background-color: #f2f2f2;
  padding: 60px 0;
  display: flex;
  justify-content: center;
}

.album-container {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.album-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.album-photo {
  width: 240px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 10px solid #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  border-radius: 4px;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.album-photo:hover {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 16px 35px rgba(0,0,0,0.3);
}

/* Rotations */
.album-item:nth-child(1) .album-photo { transform: rotate(-5deg); }
.album-item:nth-child(2) .album-photo { transform: rotate(3deg); }
.album-item:nth-child(3) .album-photo { transform: rotate(-4deg); }

/* Légendes */
.album-caption {
  font-family: "Pacifico", cursive;
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #7a7a7a;
  opacity: 0.9;
  white-space: nowrap;
  text-align: center;
}

/* === ALBUM PHOTO (2 PHOTOS HORIZONTALES) === */
.album-horizontal {
  background-color: #f2f2f2;
  padding: 60px 0;
  display: flex;
  justify-content: center;
}

.album-horizontal-container {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.album-horizontal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.album-horizontal-photo {
  width: 420px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 10px solid #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  border-radius: 4px;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.album-horizontal-photo:hover {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 16px 35px rgba(0,0,0,0.3);
}

/* Légendes horizontales */
.album-horizontal-caption {
  font-family: "Pacifico", cursive;
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #7a7a7a;
  opacity: 0.9;
  white-space: nowrap;
  text-align: center;
}

/* === PHOTO À GAUCHE + TEXTE À DROITE === */
.album-photo-text {
  background-color: transparent;
  display: flex;
  justify-content: center;
  margin: 60px auto;
  max-width: 1000px;
  gap: 40px;
  position: relative;
}

.album-photo-text-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.album-photo-text-image {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.album-photo-text-image img {
  width: 400px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 10px solid #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  border-radius: 4px;
  transform: rotate(-3deg);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.album-photo-text-caption {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  font-family: "Pacifico", cursive;
  font-size: 11px;
  color: #7a7a7a;
  text-align: center;
  opacity: 0.9;
  white-space: nowrap;
}

/* Texte */
.album-photo-text-content {
  flex: 1;
  font-family: "Merriweather", serif;
  font-size: 15px;
  line-height: 1.9;
  color: #000;
  text-align: justify;
  margin-top: -30px;
}

/* === ALBUM PHOTO (3 PHOTOS INVERSES) === */
.album-section-inverse {
  background-color: #f2f2f2;
  padding: 60px 0;
  display: flex;
  justify-content: center;
}

.album-container-inverse {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.album-item-inverse {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Photos mêmes dimensions que le premier album */
.album-photo-inverse {
  width: 240px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 10px solid #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  border-radius: 4px;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

/* Inversion des rotations */
.album-item-inverse:nth-child(1) .album-photo-inverse { transform: rotate(5deg); }
.album-item-inverse:nth-child(2) .album-photo-inverse { transform: rotate(-3deg); }
.album-item-inverse:nth-child(3) .album-photo-inverse { transform: rotate(4deg); }

.album-photo-inverse:hover {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 16px 35px rgba(0,0,0,0.3);
}

/* Légendes uniformisées */
.album-caption-inverse {
  font-family: "Pacifico", cursive;
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #7a7a7a;
  opacity: 0.9;
  white-space: nowrap;
  text-align: center;
}




/* === RESPONSIVE DESIGN === */

/* Tablettes (768px–1024px) */
@media (max-width: 1024px) {
  .main-menu ul {
    gap: 20px;
  }

  .discover-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .subscribe-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .subscribe-form {
    justify-content: center;
  }

  .album-horizontal-container,
  .album-container,
  .album-container-inverse {
    flex-wrap: wrap;
  }
}

/* Mobiles (moins de 768px) */
@media (max-width: 768px) {
  body {
    padding-top: 55px;
    font-size: 15px;
  }

  .top-bar {
    flex-direction: column;
    height: auto;
    gap: 8px;
    padding: 10px;
  }

  .main-menu {
    position: static;
    transform: none;
  }

  .main-menu ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .logo-section {
    padding: 30px 10px;
  }

  .banner-container {
    max-height: 240px;
  }

  .banner-title {
    font-size: 28px;
  }

  .discover-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .discover-slider {
    margin: 0;
  }

  .subscribe-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .subscribe-form {
    flex-direction: column;
    gap: 10px;
  }

  .subscribe-form input {
    width: 100%;
  }

  .articles-container {
    gap: 20px;
  }

  .article-item {
    width: 100%;
  }

  .voyages-grid {
    gap: 20px;
  }

  .voyage-card {
    width: 100%;
  }

  .album-container,
  .album-container-inverse,
  .album-horizontal-container {
    flex-direction: column;
    gap: 25px;
  }

  .album-photo,
  .album-photo-inverse,
  .album-horizontal-photo {
    width: 100%;
    max-width: 90%;
  }

  .album-photo-text-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .album-photo-text-image img {
    width: 100%;
    max-width: 90%;
  }

  .album-photo-text-content {
    text-align: center;
    margin-top: 0;
  }

  #scrollToTop {
    right: 15px;
    bottom: 15px;
  }
}
