:root {
  --primary: #ff385c;
  --dark: #1a1a1a;
  --light: #ffffff;
  --gray: #f5f5f5;
}

/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin :0;
  /*scroll-snap-type: y mandatory;*/
  overflow-y: scroll;
  background: var(--gray);
  color: var(--dark);
}

.loader-wrapper {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-wrapper.hide {
  opacity: 0;
  visibility: hidden;
}

.logo-box {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 50%;
  height: 50%;
  object-fit: contain;
  transform-origin: center;
  animation: pulse 1.8s infinite ease-in-out;
}

/* ANIMATIONS */
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* PAGE CONTENT */
.page-content {
  padding: 40px;
  text-align: center;
}

/* ================= NAVBAR (UNIQUE VERSION) ================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, opacity 0.35s ease;
  will-change: transform;
  z-index: 2000; /* FIX IMPORTANT */
}

/*.navbar.hide {
  transform: translateY(-100%);
  opacity: 0;
}*/

/* LOGO */
.logos {
  display: flex;
  align-items: center;
}

.logos img {
  height: /*60px;*/ 70px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

/* NAV LINKS (DESKTOP) */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #00aaff;
  transition: width 0.3s ease;
}

/* lien actif */
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: #00aaff;
}

/*.nav-links a:hover {
  color: var(--primary);
}*/

/* MOBILE BUTTON */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  font-size: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--dark);

  align-items: center;
  justify-content: center;

  z-index: 9999;
}

.menu-toggle:active {
  background: rgba(0,0,0,0.05);
}

/* ================= HERO ================= */

.hero {
  height: 100vh;
  background: url('../img/3.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 10px;
}

.btn {
  background: var(--primary);
  color: white;
  padding: 12px 22px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

/* ================= SECTIONS ================= */
section > * {
  max-width: 900px;
}

section,
header {
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  flex-direction: column;

  justify-content: center; /* vertical */
  align-items: center;     /* horizontal */

  text-align: center;

  scroll-snap-align: start;
}

section {  
  max-width: 1100px;
  margin: auto;
  opacity: 0.6;
  transform: scale(0.98);
  transition: all 0.6s ease;
}

section:target,
section:hover {
  opacity: 1;
  transform: scale(1);
}

.title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* ================= GRID ================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.grid img {
  width: 100%;
  border-radius: 15px;
  height: 220px;
  object-fit: cover;
}

/* ================= PRICING ================= */

.price {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: bold;
}

/* ================= TESTIMONIAL ================= */

.testimonial {
  background: white;
  padding: 20px;
  border-radius: 15px;
  font-style: italic;
}

/* ================= SERVICES SECTION ================= */

#services {
  text-align: center;
  padding: 80px 20px;
}

/* TITRE SECONDAIRE */
.sub-title {
  font-size: 1.4rem;
  margin-top: 50px;
  margin-bottom: 20px;
  color: var(--dark);
}

/* ================= GALERIE ================= */

.grid.gallery {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.grid.gallery img {
  height: 240px;
  border-radius: 18px;
  object-fit: cover;
  transition: 0.4s;
}

.grid.gallery img:hover {
  transform: scale(1.05);
}

/* ================= AMENITIES ================= */

.amenities {
  margin-top: 50px;
}

.amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.amenity {
  background: white;
  flex: 1 1 180px;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.amenity:hover {
  transform: translateY(-5px);
}

/* ================= FORM ================= */

form {
  display: grid;
  gap: 12px;
  max-width: 500px;
  margin: auto;
}

input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

input[type="tel"] {
  letter-spacing: 1px;
}

/* ================= BOOKING FORM ================= */

/*#booking {
  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 100vh;
  min-height: 100dvh;

  padding: 80px 15px;
}*/

.booking-form {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 500px;

  display: flex;
  flex-direction: column;
  gap: 15px;

  text-align: center;

  margin: auto; /* IMPORTANT */
}

.form-title {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.form-subtitle {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.form-group input {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row input {
  flex: 1;
}

input {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  outline: none;
  transition: 0.3s;
  font-size: 1rem;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,56,92,0.15);
}

.booking-form .btn {
  margin-top: 10px;
  width: 100%;
  font-size: 1rem;
}

/* ================= FOOTER ================= */

footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: white;
  margin-top: 40px;
}

/* ================= WHATSAPP FLOAT ================= */

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 15px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
}

