﻿/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  background: #fff;
  color: #0A0F2B;
}

/* ================= HEADER PREMIUM ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid #eee;
  transition: .3s ease;
}

.header.shrink {
  padding: 4px 0;
  background: rgba(255,255,255,0.95);
}

.header-inner {
  max-width: 1400px;
  margin: auto;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  gap: 25px;
}

/* BURGER */
.burger {
  width: 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  height: 3px;
  background: #0A0F2B;
  border-radius: 3px;
}

/* LOGO */
.logo {
  font-weight: 700;
  font-size: 20px;
  color: #0A0F2B;
  white-space: nowrap;
  text-decoration: none;
}

.logo-header {
  display: block;
  height: 42px;
  width: auto;
}

.logo-mobile {
  display: block;
  width: 160px;
  margin: 0 auto 10px;
}

/* NAV DESKTOP */
.nav-desktop {
  display: flex;
  gap: 25px;
}

.nav-desktop a {
  text-decoration: none;
  color: #0A0F2B;
  font-weight: 500;
  transition: .2s;
}

.nav-desktop a:hover {
  color: #790078;
}

/* SEARCH */
.search {
  flex: 1;
  display: flex;
  justify-content: center;
}

.search input {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px 12px 45px;
  border-radius: 30px;
  border: 1px solid #ddd;
  background: #fafafa url('data:image/svg+xml;utf8,<svg fill="%23990088" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C8.01 14 6 11.99 6 9.5S8.01 5 10.5 5 15 7.01 15 9.5 12.99 14 10.5 14z"/></svg>') no-repeat 15px center;
  background-size: 18px;
  transition: .25s;
}

.search input:focus {
  border-color: #990088;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(153, 0, 136, 0.15);
}

/* ================= LANG DESKTOP (boutons sombres premium) ================= */
.lang-desktop {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-desktop div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: .25s;
  color: #0A0F2B;
}

.lang-desktop div:hover {
  background: #f5f0ff;
  border-color: #b86bff;
}

.lang-desktop div.active-lang {
  background: #b86bff;
  border-color: #b86bff;
  color: #fff;
  font-weight: 600;
}

.lang-desktop img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

/* ================= LANG MOBILE GRID ================= */
.lang-mobile-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
  background: #fff;
  border-top: 1px solid #eee;
}

.lang-mobile-grid div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  cursor: pointer;
  font-size: 14px;
  transition: .25s;
  color: #0A0F2B;
}

.lang-mobile-grid div:hover {
  background: #f5f0ff;
  border-color: #b86bff;
}

.lang-mobile-grid div.active-lang {
  background: #b86bff;
  border-color: #b86bff;
  color: #fff;
  font-weight: 600;
}

.lang-mobile-grid img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

/* ================= MENU MOBILE ================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 1500;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100%;
  background: #fff;
  transform: translateX(-100%);
  transition: .4s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  z-index: 2000;
  border-right: 1px solid #eee;
}

.side-menu.active {
  transform: translateX(0);
}

.menu-top {
  padding: 20px;
  border-bottom: 1px solid #eee;
  position: relative;
  color: #0A0F2B;
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 26px;
  cursor: pointer;
  color: #0A0F2B;
}

.menu-content {
  overflow-y: auto;
  flex: 1;
}

.menu-item {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  color: #0A0F2B;
}

.arrow {
  transition: .3s;
}

.menu-item.active .arrow {
  transform: rotate(90deg);
}

.submenu {
  display: none;
  background: #fafafa;
}

.submenu a {
  display: block;
  padding: 10px 40px;
  text-decoration: none;
  color: #333;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 60vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* L’image du hero */
.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Contenu du hero */
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Boutons */
.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn {
  padding: 14px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  min-width: 180px;
  text-align: center;
  display: inline-block;
}

.primary {
  background: #790078;
  color: #fff;
}

.secondary {
  background: #fff;
  color: #0A0F2B;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    height: 40vh; /* IMPORTANT */
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 992px) {
  .hero {
    height: 45vh; /* IMPORTANT */
  }
}

@media (max-width: 1200px) {
  .hero {
    height: 50vh; /* IMPORTANT */
  }
}

/* ================= CARDS ================= */
.section {
  padding: 60px 30px;
  max-width: 1200px;
  margin: auto;
  color: #0A0F2B;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* CARD PREMIUM 2026 */
.card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.25,.46,.45,.94),
              box-shadow .35s cubic-bezier(.25,.46,.45,.94);
}

/* Effet hover premium */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

/* Image (ratio 400x260 respecté via dimensions HTML) */
.card img {
  width: 100%;
  height: auto;          /* on laisse le ratio 400x260 faire le job */
  object-fit: cover;
  transition: transform .45s ease;
}

/* Zoom subtil au hover */
.card:hover img {
  transform: scale(1.06);
}

/* Overlay dégradé premium */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}

/* Texte */
.card span {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-shadow: 0 3px 8px rgba(0,0,0,0.45);
  z-index: 2;
}

/* ================= TRIP CARDS (inchangé) ================= */
.trip-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.trip-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.trip-content {
  padding: 15px;
  color: #0A0F2B;
}

.trip-content strong {
  color: #790078;
}

/* ================= RESPONSIVE ================= */

/* Mobile */
@media (max-width: 768px) {

  .nav-desktop { display: none; }
  .search { display: none; }

  .grid { grid-template-columns: 1fr; }

  /* IMPORTANT : réduire la hauteur */
  .hero { height: 40vh; }

  .side-menu { width: 260px; }

  .lang-desktop { display: none; }
  .lang-mobile-grid { display: grid; }
}

/* Tablette */
@media (max-width: 992px) {
  .grid { grid-template-columns: repeat(2, 1fr); }

  /* IMPORTANT : hauteur intermédiaire */
  .hero { height: 45vh; }
}

/* Tablette large */
@media (max-width: 1200px) {
  .section { padding: 50px 25px; }
  .grid { grid-template-columns: repeat(2, 1fr); }

  /* IMPORTANT : hauteur raisonnable */
  .hero { height: 50vh; }
}



