/* ==========================================
   Gîte Matilona – Sainte-Rose, La Réunion
   ========================================== */

:root {
  --green-dark:   #1a5c38;
  --green:        #2F855A;
  --green-light:  #48bb78;
  --green-pale:   #f0fff4;
  --yellow:       #F6E05E;
  --yellow-dark:  #d69e2e;
  --brown:        #7B4F2E;
  --white:        #ffffff;
  --off-white:    #fafaf7;
  --gray-light:   #f7f7f7;
  --gray:         #6b7280;
  --dark:         #1a202c;
  --font-main:    'Lato', 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 48px rgba(0,0,0,0.15);
  --transition:   0.3s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { font-size: 1.05rem; color: var(--gray); }

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(26,92,56,0.97);
}
.navbar.scrolled .nav-link,
.navbar.scrolled .brand-name { color: var(--white); }

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  transition: var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--green); }
.navbar.scrolled .nav-link:hover { color: var(--yellow); }

.btn-reserve-nav {
  background: var(--yellow);
  color: var(--dark);
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-reserve-nav:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214,158,46,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(26,92,56,0.55) 100%
  );
}
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  max-width: 800px;
}
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active {
  background: var(--yellow);
  width: 24px;
  border-radius: 4px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47,133,90,0.4);
}
.btn-secondary {
  background: var(--yellow);
  color: var(--dark);
}
.btn-secondary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246,224,94,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-green-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-green-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==========================================
   FEATURES STRIP
   ========================================== */
.features-strip {
  background: var(--green-dark);
  padding: 1.5rem 2rem;
}
.features-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}
.feature-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.feature-item span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================
   SECTIONS COMMUNES
   ========================================== */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.section-title {
  margin-bottom: 1rem;
  color: var(--dark);
}
.section-lead {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 3rem;
  color: var(--gray);
}
.divider {
  width: 56px; height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 1rem 0 2rem;
}

/* ==========================================
   SECTION GÎTE
   ========================================== */
#gite { background: var(--off-white); }

.gite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.gite-text { }
.gite-image-wrap {
  position: relative;
}
.gite-image-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.gite-image-accent {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  width: 200px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-pale);
  border-radius: 10px;
}
.service-card h4 {
  font-size: 0.95rem;
  font-family: var(--font-main);
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--dark);
}
.service-card p {
  font-size: 0.85rem;
  margin: 0;
}

/* ==========================================
   GALERIE
   ========================================== */
#galerie { background: var(--white); }

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}
.gallery-header .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.gallery-header .divider {
  margin: 1rem auto 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 0.75rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item.large img { height: 100%; min-height: 460px; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,92,56,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}
.gallery-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 8px 64px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
  background: none;
  border: none;
}
.lightbox-close:hover { color: var(--yellow); transform: rotate(90deg); }

/* ==========================================
   SECTION DÉCOUVRIR
   ========================================== */
#decouvrir { background: var(--green-pale); }

.decouvrir-header { margin-bottom: 3rem; }

.attractions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.attraction-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.attraction-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.attraction-img-wrap {
  position: relative;
  overflow: hidden;
}
.attraction-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s;
}
.attraction-card:hover img { transform: scale(1.05); }
.attraction-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--yellow);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
}
.attraction-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.attraction-body h3 {
  margin-bottom: 0.75rem;
  color: var(--dark);
}
.attraction-body p {
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.25rem;
}
.attraction-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1rem;
}
.attraction-meta span { display: flex; align-items: center; gap: 0.3rem; }

.decouvrir-cta {
  text-align: center;
  margin-top: 3rem;
}
.decouvrir-cta p {
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

/* ==========================================
   SECTION CONTACT
   ========================================== */
#contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { }
.contact-info h2 { margin-bottom: 0.5rem; }
.contact-info .divider { margin: 1rem 0 1.5rem; }
.contact-info > p {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--green);
}
.contact-item-text h4 {
  font-size: 0.9rem;
  font-family: var(--font-main);
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--dark);
}
.contact-item-text a,
.contact-item-text span {
  font-size: 0.95rem;
  color: var(--gray);
  transition: var(--transition);
}
.contact-item-text a:hover { color: var(--green); }

.booking-box {
  background: var(--green-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--white);
  text-align: center;
}
.booking-box p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Formulaire */
.contact-form-wrap {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.contact-form-wrap h3 {
  margin-bottom: 0.5rem;
}
.contact-form-wrap > p {
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-notice {
  display: none;
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.form-notice.visible { display: block; }

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}
.footer-brand h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-col h4 {
  color: var(--yellow);
  font-size: 0.85rem;
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--yellow); }
.footer-col p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.footer-col .btn {
  font-size: 0.85rem;
  padding: 0.55rem 1.25rem;
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--yellow); }

/* ==========================================
   SCROLL TO TOP
   ========================================== */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  z-index: 900;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-top:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .features-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .gite-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gite-image-accent { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 1.25rem; }
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--green-dark);
    padding: 1.5rem 2rem 2rem;
  }
  .nav-links.open .nav-link { color: var(--white); padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open .nav-link::after { display: none; }
  .nav-links.open .btn-reserve-nav { margin-top: 1rem; text-align: center; }
  .hamburger { display: flex; }
  .hamburger.open span { background: var(--dark); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.large { grid-column: span 2; }
  .gallery-item.large img { min-height: 300px; }
  .gallery-item img { height: 180px; }

  .attractions-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .features-strip-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; }
}
