/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --dark: #1c2f42;
  --vert: #4CAF50;
  --vert-fonce: #388E3C;
  --creme: #fdf6ea;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   BASE
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  padding-top: 72px;
  scroll-behavior: smooth;
  background: #fafaf8;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  background: var(--dark);
  padding: 10px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

#mainNav.navbar-scrolled {
  background: rgba(28, 47, 66, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.navbar-brand {
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

/* ============================================================
   LOGO ANIMÉ EN ROTATION
   ============================================================ */
.logo-spinner {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-nav {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  animation: spinLogo 6s linear infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@keyframes spinLogo {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Arrêter l'animation au survol (optionnel) */
.logo-spinner:hover .logo-nav {
  animation-play-state: paused;
}

/* ============================================================
   NAV LINKS
   ============================================================ */
.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 14px;
  padding: 6px 16px !important;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  height: 50vh;
  min-height: 320px;
  background: url('assets/hero.jpg') center 30% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 28px 36px;
  max-width: 560px;
  margin: 0 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: fadeUp 0.8s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1c2f42;
  line-height: 1.3;
}

.hero-card p {
  font-size: 0.9rem;
  color: #475569;
  margin-top: 10px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.bg-cream {
  background: var(--creme);
}

.sec-title {
  color: #6faa5f;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
}

.sec-title::after {
  content: '';
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #6faa5f, #4CAF50);
  display: block;
  margin: 8px auto 0;
  border-radius: 4px;
}

/* ============================================================
   PHILOSOPHIE
   ============================================================ */
.philo-box {
  text-align: center;
  padding: 14px 10px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.philo-box:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.philo-box span {
  font-size: 1.3rem;
}

.bg-blue {
  background: #dbeafe;
  color: #1e40af;
}

.bg-blue-light {
  background: #e0e7ff;
  color: #3730a3;
}

.bg-pink {
  background: #fce7f3;
  color: #9d174d;
}

.bg-green {
  background: #dcfce7;
  color: #166534;
}

.bg-cream-box {
  background: #fef3c7;
  color: #92400e;
}

/* ============================================================
   DESTINATIONS
   ============================================================ */
.dest-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.dest-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.dest-card img {
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition);
}

.dest-card:hover img {
  transform: scale(1.04);
}

.dest-card .card-body {
  padding: 18px 20px;
}

.dest-card h6 {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.dest-card .btn-outline-success {
  border-width: 2px;
  font-weight: 600;
  transition: all var(--transition);
}

.dest-card .btn-outline-success:hover {
  background: var(--vert);
  border-color: var(--vert);
  color: #fff;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact .card {
  border-radius: 20px !important;
  background: #fff;
}

#contact .form-control {
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-size: 0.9rem;
  padding: 10px 14px;
}

#contact .form-control:focus {
  border-color: var(--vert);
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
}

#contact .form-control.is-invalid {
  border-color: #dc3545;
}

#contact .form-control.is-valid {
  border-color: var(--vert);
}

#contact .btn-success {
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablettes */
@media (max-width: 992px) {
  .hero-card h1 {
    font-size: 1.4rem;
  }
}

/* Mobiles */
@media (max-width: 768px) {
  body {
    padding-top: 62px;
  }

  .hero {
    height: 40vh;
    min-height: 260px;
  }

  .hero-card {
    padding: 20px 24px;
    margin: 0 16px;
  }

  .hero-card h1 {
    font-size: 1.2rem;
  }

  .hero-card p {
    font-size: 0.8rem;
  }

  .sec-title {
    font-size: 1.2rem;
  }

  .dest-card img {
    height: 160px;
  }

  .logo-nav {
    width: 30px;
    height: 30px;
  }

  .logo-spinner {
    width: 34px;
    height: 34px;
  }
}

/* Très petits écrans */
@media (max-width: 576px) {
  .hero {
    height: 35vh;
    min-height: 220px;
  }

  .hero-card h1 {
    font-size: 1rem;
  }

  .philo-box {
    font-size: 0.75rem;
    padding: 10px 6px;
    min-height: 48px;
  }

  .philo-box span {
    font-size: 1rem;
  }

  .dest-card img {
    height: 140px;
  }

  #contact .card-body {
    padding: 20px !important;
  }
}