/* ============================================================
   COCO CABAÑAS TELA — style.css
   Palette : Ocean (#1A5F7A), Sand (#F5EFE0), Coral (#C9612A)
   Police  : DM Sans (corps) + Playfair Display (titres)
   Auteur  : généré pour hotelcabanastela.com
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap');

/* ---- Variables CSS ---- */
:root {
  /* Couleurs principales */
  --ocean:        #1A5F7A;
  --ocean-deep:   #0D3D52;
  --ocean-light:  #2E8DAA;
  --ocean-pale:   #E8F4F8;
  --sand:         #F5EFE0;
  --sand-dark:    #E8DFC8;
  --coral:        #C9612A;
  --coral-light:  #E8845A;
  --white:        #FEFCF8;
  --text:         #1C1C1C;
  --text-muted:   #6B6257;
  --gold:         #B8943F;

  /* Typographie */
  --font-body:    'DM Sans', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Espacements */
  --gap-sm:   0.75rem;
  --gap-md:   1.5rem;
  --gap-lg:   3rem;
  --gap-xl:   5rem;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(13, 61, 82, 0.08);
  --shadow-md: 0 4px 20px rgba(13, 61, 82, 0.12);
  --shadow-lg: 0 8px 40px rgba(13, 61, 82, 0.18);

  /* Transition globale */
  --transition: 0.25s ease;
}

/* ---- Reset minimal ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ocean);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--coral);
}

ul {
  list-style: none;
}

/* ---- Typographie ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--ocean-deep);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* ---- Conteneur principal ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap-md);
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ocean);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ocean-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.btn-coral:hover {
  background: #a8501f;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--ocean);
  border: 2px solid var(--ocean);
}

.btn-outline:hover {
  background: var(--ocean);
  color: var(--white);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1ebe5a;
  color: var(--white);
}

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-ocean  { background: var(--ocean-pale); color: var(--ocean-deep); }
.badge-coral  { background: #fdeee6; color: var(--coral); }
.badge-gold   { background: #fdf6e3; color: var(--gold); }
.badge-green  { background: #e8f5e9; color: #2e7d32; }

/* ---- Sections ---- */
.section {
  padding: var(--gap-xl) 0;
}

.section-alt {
  background-color: var(--sand);
}

.section-ocean {
  background-color: var(--ocean-deep);
  color: var(--white);
}

.section-ocean h2,
.section-ocean h3 {
  color: var(--white);
}

.section-ocean p {
  color: rgba(255,255,255,0.8);
}

.section-title {
  text-align: center;
  margin-bottom: var(--gap-lg);
}

.section-title h2 {
  margin-bottom: 0.75rem;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---- Vague décorative (séparateur de sections) ---- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ---- Cards bungalow ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap-md);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--ocean-pale), var(--sand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean);
  font-size: 2.5rem;
}

.card-body {
  padding: var(--gap-md);
}

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.92rem;
  margin-bottom: var(--gap-sm);
}

.card-footer {
  padding: var(--gap-sm) var(--gap-md);
  border-top: 1px solid var(--sand-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-price {
  font-weight: 700;
  color: var(--ocean-deep);
  font-size: 1.05rem;
}

.card-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ---- Navigation principale ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(254, 252, 248, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-dark);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: var(--gap-md);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.navbar-logo img {
  height: 42px;
  width: auto;
}

.navbar-logo span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ocean-deep);
  line-height: 1.2;
}

.navbar-logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Menu principal */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-nav a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  white-space: nowrap;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--ocean-pale);
  color: var(--ocean);
}

/* Dropdown bungalows */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.5rem;
  border: 1px solid var(--sand-dark);
  z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
}

.dropdown-menu a:hover {
  background: var(--sand);
  color: var(--ocean);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Burger mobile */
.navbar-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.navbar-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ocean-deep);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero section ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ocean-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 61, 82, 0.3) 0%,
    rgba(13, 61, 82, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: var(--gap-lg) var(--gap-md);
  max-width: 800px;
}

.hero-content h1 {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: var(--gap-sm);
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: var(--gap-md);
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 3;
}

/* ---- Footer ---- */
.footer {
  background: var(--ocean-deep);
  color: rgba(255,255,255,0.85);
  padding: var(--gap-lg) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap-lg);
  padding-bottom: var(--gap-lg);
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--gap-sm);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--gap-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--sand);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.footer-contact-item a {
  color: #25D366;
  font-weight: 600;
}

.footer-contact-item a:hover {
  color: #1ebe5a;
}

.footer-reviews a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}

.footer-reviews a:hover {
  color: var(--sand);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--gap-sm) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
}

/* ---- WhatsApp flottant ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: var(--white);
  padding: 0.7rem 1.2rem 0.7rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition);
  animation: wa-pulse 3s infinite;
}

.whatsapp-float:hover {
  background: #1ebe5a;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  animation: none;
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* ---- Galerie photos ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-grid .gallery-main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-grid img,
.gallery-grid .gallery-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  background: linear-gradient(135deg, var(--ocean-pale), var(--sand-dark));
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--ocean);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--sand);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sand-dark);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--ocean);
}

.breadcrumb-list span {
  color: var(--text-muted);
}

/* ---- Tableau prix ---- */
.price-table {
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
  margin: var(--gap-md) 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--sand-dark);
  font-size: 0.95rem;
}

.price-row:last-child {
  border-bottom: none;
  font-weight: 700;
  color: var(--ocean-deep);
}

.price-amount {
  font-weight: 600;
  color: var(--ocean-deep);
}

/* ---- Équipements / icônes ---- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--gap-sm);
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.amenity-item span {
  font-size: 1.1rem;
}

/* ---- FAQ accordéon ---- */
.faq-item {
  border-bottom: 1px solid var(--sand-dark);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--gap-sm) 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--ocean-deep);
  gap: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--ocean);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ocean-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean);
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-bottom: var(--gap-sm);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---- Blog cards ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap-md);
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--ocean-pale), var(--sand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--ocean);
}

.blog-card-body {
  padding: var(--gap-md);
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.blog-card-body p {
  font-size: 0.88rem;
  margin-bottom: var(--gap-sm);
}

/* ---- Activités ---- */
.activites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap-md);
}

.activite-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.activite-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.activite-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.activite-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--ocean-pale), var(--sand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--ocean);
}

.activite-card-body {
  padding: var(--gap-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activite-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.activite-card-body p {
  font-size: 0.88rem;
  flex: 1;
}

.activite-card-footer {
  padding: var(--gap-sm) var(--gap-md);
  border-top: 1px solid var(--sand-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- Alertes / notifications ---- */
.alert {
  padding: var(--gap-sm) var(--gap-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--gap-md);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
  }
}

@media (max-width: 768px) {
  :root {
    --gap-xl: 3rem;
    --gap-lg: 2rem;
  }

  .navbar-nav,
  .navbar-cta .btn:not(.btn-reservar) {
    display: none;
  }

  .navbar-burger {
    display: flex;
  }

  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--sand-dark);
    padding: var(--gap-sm);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--sand);
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }

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

  .gallery-grid .gallery-main {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .card-grid,
  .blog-grid,
  .activites-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Accessibilité : réduction de mouvement ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
