/* Variables couleurs */
:root {
  --ocre: #d99b4c;
  --bordeaux: #7a1f2d;
  --beige: #f4ecd8;
  --doré: #cba135;
  --font-title: 'Lobster', sans-serif;
  --font-text: 'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-text);
}
section h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

#bal-mobile,
#contact,
#collectif {
  scroll-margin-top: 80px;
}


#videos { 
  scroll-margin-top: 140px;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.caravan {
    font-size: 70px;
    color: var(--doré);
    margin-bottom: 20px;
}

.hero-content h1 {
  font-family: var(--font-title);
  font-size: 4rem;
  color: var(--doré);
  margin: 0;
}

.hero-content p {
  font-size: 1.5rem;
  margin: 5px 0 15px;
  color: var(--beige);
}

.hero-card {
  background: #f4ecd8bb;
  padding: 30px 30px;
  border-radius: 15px;
  display: inline-block;
  backdrop-filter: blur(6px);
  max-width: 90%;
  margin: 15px;
}

.hero-card h1 {
  margin-bottom: 10px;
  font-size: 4rem;
}

.hero-card p {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--bordeaux);
  
}


.btn-hero {
  padding: 10px 25px;
  background: var(--bordeaux);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: transform 0.3s, background 0.3s;
}

.btn-hero:hover {
  background: var(--ocre);
  transform: scale(1.1);
}


.hero-carousel {
  position: relative;
}

.slide {
  display: none;
  text-align: center;
}

.slide.active {
  display: block;
  animation: fadeSlide 0.8s ease-in-out;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card .btn {
  margin-top: 10px;
  display: inline-block;
}

.logo-bar {
  position: sticky;
  top: 0;
  height: 60px;
  z-index: 1001;
  width: 100%;
  background: linear-gradient(rgba(244, 236, 216, 0.596), rgba(244, 236, 216, 0.856)), 
  url(../img/hero/vichy.png) center/cover no-repeat;
  text-align: center;
}




.logo-bar .logo {
  position: relative;
  z-index: 2; 
  max-height: 50px;
  object-fit: contain;
}


.navbar {
  position: sticky;
  top: 60px; 
  background-color: rgb(255, 255, 255);
  z-index: 1002;
}

.navbar ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 15px 20px;
  list-style: none;
}

.navbar a {
  text-decoration: none;
  color: var(--bordeaux);
  font-weight: 600;
  transition: color 0.3s;
}

.navbar a:hover {
  color: var(--ocre);
}

/* Dropdown spécifique pour Accueil */
.navbar li.dropdown {
    position: relative; /* nécessaire pour positionner le sous-menu */
}

/* Sous-menu caché avec décalage */
.navbar .dropdown-menu {
    position: absolute;
    top: 100%; /* juste en dessous du lien parent */
    left: -35px; /* décalage horizontal */
    margin-top: 15px; /* espace sous le lien */
  background-color: rgb(255, 255, 255);
    backdrop-filter: blur(5px);
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    min-width: 140px;
    flex-direction: column;
    text-align: left; /* texte aligné à gauche */
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* Affichage avec animation */
.navbar .dropdown-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Items du sous-menu */
.navbar .dropdown-menu li a {
    color: var(--bordeaux);
    font-weight: 600;
    display: block;
    text-align: left; /* aligné à gauche */
    transition: color 0.3s;
}

.navbar .dropdown-menu li a:hover {
    color: var(--ocre);
}


/* Animation dropdown */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px); /* part légèrement au-dessus */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* arrive à sa place */
  }

}


.intro-video {
  padding: 40px 20px 0;
  background-color: var(--beige);
  text-align: center;
}

.intro-video-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--bordeaux);
  margin-bottom: 20px;
}

/* Conteneur centré */
.intro-video-wrapper {
  display: flex;
  justify-content: center;
}

.intro-video-inner {
  width: 100%;
  max-width: 800px;      /* plus large sur desktop */
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

/* L'iframe devient responsive avec un vrai 16/9 */
.intro-video-inner iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}



.bal-mobile {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--beige);
  z-index: -2;
}

.bal-mobile h2 {
  padding: 10px 20px;
  border-radius: 12px;
  font-family: var(--font-title);
  color: var(--bordeaux);
  margin-bottom: 40px;
  margin: auto;
  padding: 10px 20px;
  margin-bottom: 15px;

}

.bal-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.bal-block {
  display: flex;
  flex-direction: column; /* mobile = empilé */
  align-items: center;
  gap: 20px;
}

.bal-paragraph {
  position: relative;
  overflow: hidden;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 500px;
  text-align: justify;
  color: #333;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bal-paragraph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/bal-mobile/fond.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2; 
}

.bal-paragraph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(250, 235, 215, 0.849);
  backdrop-filter: blur(2px);
  z-index: -1;
}

.bal-paragraph h3 {
  text-align: center;
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--bordeaux);
}

.bal-paragraph p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.bal-images img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.bal-block.fade-in-up {
  animation: fadeUp 0.8s ease-out forwards;
}




#more-content .bal-block {
  margin-bottom: 60px; 
}

#more-content .bal-block:last-child {
  margin-bottom: 0; 
}


.hidden {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#show-more {
  margin-top: 20px;
  background: var(--bordeaux);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
}

#show-more:hover {
  background: var(--ocre);
  transform: scale(1.05);
}


/* Ajustement pour ancrage sous le header */
#fiche-technique {
    scroll-margin-top: 80px; /* hauteur de logo-bar + navbar sticky */
}

.fiche-technique {
    padding: 60px 20px;
    background-color: var(--bordeaux);
    text-align: center;
    color: #fff;
}

.fiche-technique h2 {
    font-family: var(--font-title);
    margin-bottom: 30px;
}

.fiche-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.6;
    color: #fff;
}

.fiche-content p {
    margin-bottom: 15px;
    text-align: justify;
}

a.contact {
    color: #fff;
    text-decoration: underline;
}

a.contact:hover {
    color: var(--ocre);
}

.contact-mail {
    color: #fff;
    text-decoration: underline;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
    flex-direction: column;
}

.download-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    text-align: center;
    padding: 10px 25px;
    background: #fff;
    color: var(--bordeaux);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s, color 0.3s;
}

.btn:hover {
    background: var(--ocre);
    color: #fff;
    transform: scale(1.05);
}

section#contact {
    padding: 25px 15px;
    background-color: var(--beige);
}

section#contact h2 {
  
    font-family: var(--font-title);
    color: var(--bordeaux);
}

/* Formulaire contact */
form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #f4ecd8; /* beige clair */
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: var(--font-text);
}

form label {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--bordeaux);
    font-size: 1rem;
}

form input,
form select,
form textarea {
    margin-top: 8px;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #d99b4c; /* ocre */
    font-size: 1rem;
    font-family: var(--font-text);
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--bordeaux);
    box-shadow: 0 0 8px rgba(122, 31, 45, 0.3);
    outline: none;
}

form select {
    appearance: none;
    background-color: #fff;
    cursor: pointer;
}

form button {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 12px 25px;
    background-color: var(--bordeaux);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    font-size: 1rem;
    margin: 0 auto; 
}

form button:hover {
    background-color: var(--ocre);
    transform: scale(1.05);
}

form i {
    font-size: 1.1rem;
}

footer {
  background-color: var(--bordeaux);
  color: var(--beige);
  text-align: center;
  padding: 25px 15px;
  font-family: var(--font-text);
}

footer p {
  margin: 10px 0 10px;
  font-size: 0.95rem;
}

footer .socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

footer .socials a i {
  font-size: 2rem;           
  width: 40px;                  
  height: 40px;                 
  line-height: 40px;            
  text-align: center;          
  background-color: var(--beige);
  border-radius: 50%;           
  color: var(--bordeaux);
  display: inline-block;       
  transition: transform 0.3s;
}


footer .socials i:hover {
  color: var(--ocre);
  transform: scale(1.1);
}

footer i {
  font-size: 1.5rem;
  background-color: var(--beige);
  border-radius: 35px;
  padding: 5px;
  color: var(--bordeaux);
}

footer .politiques {
  margin-bottom: 15px;
  margin-top: 15px;
}

footer .politiques a {
  color: var(--beige);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s, transform 0.3s;
  text-decoration: underline;
}

footer .politiques a:hover {
  color: var(--ocre);
  transform: scale(1.05);
}

.divider {
  height: 1px;
  background-color: var(--ocre);
  margin: 15px auto;
  max-width: 100%;
}

footer .sitemap {
    background-color: var(--beige);
    color: var(--bordeaux);
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px auto;
    text-align: center;
    max-width: 390px;
}

footer .sitemap h3 {
    font-family: var(--font-title);
    color: var(--bordeaux);
    font-size: 2rem;
    margin-bottom: 10px;
}

footer .sitemap ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

footer .sitemap ul li a {
    color: var(--bordeaux);
    text-decoration: none;
    transition: color 0.3s;
}

footer .sitemap ul li a:hover {
    color: var(--ocre);
    transform: scale(1.05);
}


@media (min-width: 768px)  {

  .logo-bar .logo {
    max-height: 80px;
  }

  .logo-bar {
    height: 90px;
  }
  .navbar {
    top: 80px; 
  }

  .intro-video {
    padding: 60px 20px 20px;
  }
  .bal-block {
    flex-direction: row; 
    justify-content: center;
    align-items: center;
    gap: 80px;
  }

  .bal-block:nth-child(even) {
    flex-direction: row-reverse; 
  }

  .bal-paragraph, .bal-images {
    flex: 1 1 45%;
    max-width: 500px;
  }

  .bal-images img {
    margin: 0 auto;
  }
  .hero-logo {
      max-width: 300px;
  }

  form {
        padding: 20px;
    }

    form input,
    form select,
    form textarea {
        font-size: 0.95rem;
    }

    form button {
        width: auto;
    }

  .contact-buttons,
  .download-btn
  {
    flex-direction: row;
    gap: 10px;
  }

  .contact-buttons .btn,
  .download-btn {
      width: 35%;
      text-align: center;
  }

  .divider {
      max-width: 50%;
  }
  
  footer .socials {
      gap: 40px;
  }
}  