/*------------------------------------------------Fonts------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Lora&family=Playfair+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600&family=Montserrat:wght@600;800&display=swap');

/*------------------------------------------------Global------------------------------------------------*/
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: rgb(28, 12, 0) !important;
    font-family: 'Open Sans', sans-serif;
    color: #f5f5f5;
}

/*------------------------------------------------Hero Banner------------------------------------------------*/
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 80px; /* ← hauteur de la navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-banner .btn-warning {
    background-color: #B16A18;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.hero-banner .btn-warning:hover {
    background-color: #9c5714;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}


.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.9); /* <1 pour dézoomer, >1 pour zoomer */
    transform-origin: center;
    transition: transform 0.3s ease;
}


.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/accueil/photo1.b27b576ab397.png"); /* ton image */
    background-size: auto 100%; /* conserve la hauteur réelle */
    background-repeat: no-repeat;
    background-position: center top;
    filter: brightness(0.75); /* assombrir légèrement */
    z-index: 1;
}

.hero-banner > .container {
    position: relative;
    z-index: 2;
}


.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.25); /* overlay léger */
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    text-align: center;
    padding: 0 1rem;
}

.hero-content .intro-text {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-content .main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.hero-content .slogan {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.hero-content .btn {
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-content .btn:hover {
    background: white;
    color: black;
}

/* Responsive Hero Text */
@media (max-width: 992px) {
    .hero-content .main-title { font-size: 3rem; }
    .hero-content .slogan { font-size: 1.3rem; }
}
@media (max-width: 768px) {
    .hero-content .main-title { font-size: 2.5rem; }
    .hero-content .slogan { font-size: 1.1rem; }
}
@media (max-width: 576px) {
    .hero-content .main-title { font-size: 2rem; }
    .hero-content .slogan { font-size: 1rem; }
}

/*------------------------------------------------About Section------------------------------------------------*/
.first-part {
  font-family: 'Bodoni moda', sans-serif;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  padding: 1.5rem 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  color: whitesmoke;
}

.first-part:hover {
  color: #e3a86b;
  text-shadow: 0 0 10px rgba(227, 168, 107, 0.4);
}
.about-elba .about-us {
    font-family: 'Bodoni Moda', serif;
    font-size: 3rem;
    font-weight: bold;
    border-bottom: 2px solid rgba(245, 179, 81, 0.2);
    margin-bottom: 2rem;
}

.about-elba .btn-outline-warning {
    border-radius: 30px;
    border: 2px solid #B16A18;
    color: #B16A18;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-elba .btn-outline-warning:hover {
    background: #B16A18;
    color: white;
}

/*------------------------------------------------Pack Section------------------------------------------------*/
/* =========================
   Variables
   ========================= */
:root {
  --card-w: 320px;
  --card-h: 420px;
  --gutter: 2rem;
  --scroll-duration: 40s;
}

@media (max-width: 576px) {
  :root {
    --card-w: 280px;
    --card-h: 440px;
  }
}

/* =========================
   Section / typo
   ========================= */
.pack-elba {
  background: linear-gradient(135deg, #f3e9dc, #e6d5b8);
  padding: 4rem 0;
  font-family: 'Lora', serif;
}

/* =========================
   Wrapper scrollable
   ========================= */
.packs-window {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-height: thin;
  scrollbar-color: #c49b2d #f3e9dc;
}

/* Scrollbar style (Chrome, Edge, Safari) */
.packs-window::-webkit-scrollbar {
  height: 8px;
}
.packs-window::-webkit-scrollbar-track {
  background: #f3e9dc;
}
.packs-window::-webkit-scrollbar-thumb {
  background-color: #c49b2d;
  border-radius: 4px;
}

/* =========================
   Rail de packs défilant
   ========================= */
.packs-row {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--gutter);
  padding: 0 var(--gutter) var(--gutter);
  align-items: flex-start;
  width: max-content;
  will-change: transform;
}

/* Animation auto-scroll */
.scroll-track {
  animation: autoScroll var(--scroll-duration) linear infinite;
}

/* Pause animation au survol ou scroll manuel */
.scroll-track:hover,
.packs-window:active .scroll-track,
.packs-window:focus .scroll-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-track {
    animation: none !important;
  }
}

@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================
   Cartes
   ========================= */
.pack-card {
  background: #fffdf9;
  border-radius: 20px;
  color: #2c2c2c;
  width: var(--card-w);
  height: var(--card-h);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid #e1c87a;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  padding: 1.5rem;
  flex: 0 0 auto;
}

.pack-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  border-color: #c49b2d;
}

.pack-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-height: 0;
}

.pack-card-footer {
  margin-top: auto;
}

/* Titres */
.pack-card h4 {
  font-family: 'Lora', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #1f1f1f;
}

.pack-card h5 {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  color: #7c6f57;
  margin: 0;
}

/* Clamp utilitaire */
.clamp-1,
.clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-1 {
  -webkit-line-clamp: 1;
}
.clamp-2 {
  -webkit-line-clamp: 2;
}

/* Liste des activités */
.pack-activites {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  overflow: auto;
  max-height: calc(var(--card-h) - 2.5rem - 2.5rem - 2.8rem - 1.6rem - 3.2rem - 3.2rem);
}

.pack-activites li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #444;
}

/* Prix */
.pack-card p.prix {
  font-weight: 500;
  font-size: 1rem;
  margin: 0.5rem 0 0;
  text-align: center;
  color: #000;
}

/* Bouton */
.pack-card .btn {
  padding: 0.6rem 1.6rem;
  border-radius: 30px;
  border: 2px solid #B16A18;
  color: #B16A18;
  background: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pack-card .btn:hover {
  background: #B16A18;
  color: white;
  transform: scale(1.05);
}


/*------------------------------------------------Footer------------------------------------------------*/
footer {
    background-color: #111;
    color: #f5f5f5;
    padding: 2rem 0;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #B16A18;
}

/*------------------------------------------------Responsive fixes------------------------------------------------*/
@media (max-width: 768px) {
    .pack-elba .d-flex { flex-wrap: nowrap; overflow-x: auto; }
}
