/* =========================
   Rêves Boréals Vintage Retro CSS
   ========================= */

/* 1. FONT IMPORTS (Vintage/Retro + Brand) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;700&family=Pacifico&family=Roboto+Slab:wght@700&display=swap');

:root {
  /* Brand Colors */
  --primary: #014B7B;
  --secondary: #86C2E0;
  --accent: #F7FAFB;
  /* Vintage/Retro Palette */
  --retro-yellow: #F9D77E;
  --retro-orange: #F7A072;
  --retro-red: #D7263D;
  --retro-green: #4E937A;
  --retro-brown: #A67C52;
  --retro-blue: #3B6BA5;
  --retro-bg: #F7FAFB;
  --retro-bg-alt: #F9F6F0;
  --retro-border: #E2C290;
  --retro-shadow: 0 4px 24px 0 rgba(166,124,82,0.10);
  /* Typography */
  --font-display: 'Montserrat', 'Roboto Slab', 'Pacifico', cursive;
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-vintage: 'Pacifico', 'Roboto Slab', serif;
  /* Spacing */
  --section-mb: 60px;
  --section-py: 40px;
  --section-px: 20px;
  --card-gap: 24px;
  --card-mb: 20px;
  --flex-gap: 20px;
  --testimonial-gap: 20px;
  --feature-gap: 15px;
  /* Effects */
  --transition: all 0.3s cubic-bezier(.4,1.4,.6,1);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-sm: 8px;
  --z-cookie: 9999;
  --z-mobile-menu: 9998;
}

html {
  box-sizing: border-box;
  font-size: 18px;
  background: var(--retro-bg);
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  color: var(--primary);
  background: var(--retro-bg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  margin: 0 0 18px 0;
  color: var(--primary);
  letter-spacing: 0.03em;
  text-shadow: 1px 2px 0 var(--retro-yellow), 0 2px 8px rgba(1,75,123,0.07);
}
h1 {
  font-size: 2.2rem;
  font-family: var(--font-vintage);
  color: var(--retro-red);
  text-shadow: 2px 2px 0 var(--retro-yellow), 0 2px 8px rgba(1,75,123,0.10);
}
h2 {
  font-size: 1.6rem;
  color: var(--retro-blue);
  font-family: var(--font-display);
}
h3 {
  font-size: 1.2rem;
  color: var(--retro-brown);
  font-family: var(--font-display);
}
h4 {
  font-size: 1.1rem;
  color: var(--retro-green);
  font-family: var(--font-display);
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 1em;
}
strong {
  color: var(--retro-red);
  font-weight: 700;
}

/* ========== LAYOUT CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.section {
  margin-bottom: var(--section-mb);
  padding: var(--section-py) var(--section-px);
  background: var(--retro-bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--retro-shadow);
  position: relative;
}

/* ========== FLEXBOX PATTERNS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
}
.card {
  margin-bottom: var(--card-mb);
  position: relative;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--retro-shadow);
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 1 300px;
  transition: var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(1,75,123,0.13);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--flex-gap);
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: var(--testimonial-gap);
  padding: 20px;
  background: var(--retro-yellow);
  border-radius: var(--radius);
  box-shadow: var(--retro-shadow);
  margin-bottom: 20px;
  color: #222;
  font-family: var(--font-body);
  font-size: 1.05rem;
  border: 2px dashed var(--retro-brown);
  position: relative;
}
.testimonial-card p {
  color: #222;
  margin: 0 0 8px 0;
}
.testimonial-card span {
  color: var(--retro-brown);
  font-style: italic;
  font-size: 0.98em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--feature-gap);
}

/* ========== GALLERY, BLOG, DESTINATIONS, FEATURES ========== */
.gallery, .blog-list, .destination_grid, .feature_grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--flex-gap);
  margin-bottom: 20px;
}
.gallery > div, .blog-list > div, .destination_grid > div, .feature_grid > div {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--retro-shadow);
  padding: 22px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  border: 1.5px solid var(--retro-border);
  transition: var(--transition);
  position: relative;
}
.gallery > div:hover, .blog-list > div:hover, .destination_grid > div:hover, .feature_grid > div:hover {
  background: var(--retro-yellow);
  box-shadow: 0 8px 32px 0 rgba(1,75,123,0.13);
  transform: translateY(-3px) scale(1.02) rotate(-1deg);
}

.filters, .categories, .search-bar {
  margin: 18px 0 0 0;
  font-size: 1rem;
  color: var(--retro-brown);
  font-family: var(--font-display);
}
.filters span, .categories span {
  background: var(--retro-yellow);
  color: var(--retro-red);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  margin-right: 6px;
  font-weight: 700;
  font-family: var(--font-vintage);
}

.map {
  background: var(--retro-bg-alt);
  border: 2px dotted var(--retro-blue);
  border-radius: var(--radius);
  padding: 18px;
  margin: 18px 0 0 0;
  font-family: var(--font-body);
  color: var(--primary);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--retro-yellow);
  box-shadow: 0 2px 12px 0 rgba(1,75,123,0.07);
  border-bottom: 3px solid var(--retro-brown);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--retro-orange);
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(215,38,61,0.09);
}
header img {
  height: 48px;
  width: auto;
  margin-right: 18px;
}
.cta-btn {
  background: var(--retro-red);
  color: #fff;
  font-family: var(--font-vintage);
  font-size: 1.1rem;
  padding: 10px 28px;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: 0 4px 16px 0 rgba(215,38,61,0.13);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: var(--transition);
  margin-left: 18px;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
  box-shadow: 0 8px 32px 0 rgba(249,215,126,0.18);
  transform: scale(1.04) rotate(-2deg);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-red);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: var(--radius-lg);
  padding: 6px 16px;
  cursor: pointer;
  margin-left: 18px;
  transition: var(--transition);
  z-index: var(--z-mobile-menu);
}
.mobile-menu-toggle:active {
  background: var(--retro-yellow);
  color: var(--retro-red);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--retro-yellow) 60%, var(--retro-orange) 100%);
  z-index: var(--z-mobile-menu);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: var(--transition);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  animation: slideInMenu 0.4s cubic-bezier(.4,1.4,.6,1);
}
@keyframes slideInMenu {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--retro-red);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: var(--transition);
}
.mobile-menu-close:hover {
  color: #fff;
  background: var(--retro-red);
  border-radius: var(--radius-lg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 40px 0 0 40px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-red);
  color: #fff;
  padding-left: 16px;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 1024px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .mobile-menu {
    padding: 0;
  }
  .mobile-nav {
    margin: 32px 0 0 18px;
  }
}

/* ========== MAIN & SECTIONS ========== */
main {
  margin-top: 0;
  padding-bottom: 60px;
}
section {
  margin-bottom: var(--section-mb);
  padding: var(--section-py) var(--section-px);
  background: var(--retro-bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--retro-shadow);
  position: relative;
}

/* ========== FOOTER ========== */
footer {
  background: var(--retro-blue);
  color: #fff;
  font-family: var(--font-body);
  padding: 0 0 0 0;
  border-top: 4px solid var(--retro-yellow);
  margin-top: 60px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 18px 0;
  border-bottom: 2px dashed var(--retro-yellow);
}
.footer-top nav {
  display: flex;
  gap: 18px;
}
.footer-top nav a {
  color: var(--retro-yellow);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.footer-top nav a:hover {
  background: var(--retro-yellow);
  color: var(--retro-blue);
}
.footer-top img {
  height: 38px;
  width: auto;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 0 32px 0;
  gap: 20px;
}
.footer-bottom nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom nav a {
  color: var(--retro-yellow);
  font-size: 0.98rem;
  text-decoration: underline dotted;
  transition: var(--transition);
}
.footer-bottom nav a:hover {
  color: var(--retro-orange);
}
.contact-info {
  font-size: 0.98rem;
  color: var(--retro-yellow);
  font-family: var(--font-body);
  margin-top: 8px;
}

/* ========== SOCIAL SHARE ========== */
.social-share {
  margin-top: 18px;
  font-family: var(--font-display);
  color: var(--retro-brown);
  font-size: 1rem;
}
.social-share a {
  color: var(--retro-red);
  text-decoration: underline;
  margin: 0 6px;
  transition: var(--transition);
}
.social-share a:hover {
  color: var(--retro-blue);
}

/* ========== LEGAL TEXT ========== */
.legal_text {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: var(--retro-shadow);
  border: 1.5px solid var(--retro-border);
  color: var(--primary);
  font-size: 1rem;
  margin-top: 18px;
}
.legal_text h2 {
  color: var(--retro-red);
  font-size: 1.1rem;
  margin-top: 18px;
}

/* ========== BUTTONS ========== */
button, .cta-btn, .cookie-btn {
  font-family: var(--font-vintage);
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}
button:focus, .cta-btn:focus, .cookie-btn:focus {
  box-shadow: 0 0 0 3px var(--retro-yellow);
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, var(--retro-yellow) 70%, var(--retro-orange) 100%);
  color: var(--primary);
  font-family: var(--font-body);
  padding: 24px 18px 18px 18px;
  box-shadow: 0 -4px 32px 0 rgba(166,124,82,0.13);
  z-index: var(--z-cookie);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  border-top: 3px solid var(--retro-brown);
  animation: slideInCookie 0.5s cubic-bezier(.4,1.4,.6,1);
}
@keyframes slideInCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 0 8px 0;
  color: var(--primary);
  font-size: 1rem;
}
.cookie-btn {
  background: var(--retro-red);
  color: #fff;
  padding: 10px 22px;
  margin-right: 12px;
  border-radius: var(--radius-lg);
  font-family: var(--font-vintage);
  font-size: 1.05rem;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(215,38,61,0.09);
  transition: var(--transition);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
}
.cookie-btn.settings {
  background: var(--retro-blue);
  color: #fff;
}
.cookie-btn.settings:hover {
  background: var(--retro-yellow);
  color: var(--retro-blue);
}

/* ========== COOKIE MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(1,75,123,0.25);
  z-index: calc(var(--z-cookie) + 1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s cubic-bezier(.4,1.4,.6,1);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(1,75,123,0.13);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  color: var(--primary);
  font-family: var(--font-body);
  position: relative;
  animation: slideInModal 0.4s cubic-bezier(.4,1.4,.6,1);
}
@keyframes slideInModal {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-family: var(--font-vintage);
  color: var(--retro-red);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 22px;
  background: var(--retro-yellow);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--retro-brown);
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .cookie-toggle span {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: var(--retro-red);
  border-radius: 50%;
  transition: var(--transition);
}
.cookie-modal .cookie-toggle input:checked + span {
  left: 18px;
  background: var(--retro-green);
}
.cookie-modal .cookie-category.essential label {
  color: var(--retro-brown);
  font-weight: 700;
}
.cookie-modal .cookie-category.essential .cookie-toggle {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: var(--retro-red);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-modal-close:hover {
  color: var(--retro-blue);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .gallery, .blog-list, .destination_grid, .feature_grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .gallery > div, .blog-list > div, .destination_grid > div, .feature_grid > div {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .section, section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-top nav, .footer-bottom nav {
    flex-direction: column;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  header img, .footer-top img {
    height: 32px;
  }
  .cookie-modal {
    padding: 18px 8px 18px 8px;
    min-width: 0;
  }
}

/* ========== MICRO-INTERACTIONS ========== */
a, button, .cta-btn, .cookie-btn {
  transition: var(--transition);
}
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px dashed var(--retro-red);
  outline-offset: 2px;
}

/* ========== VINTAGE/RETRO DECORATIVE ELEMENTS ========== */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -18px; left: 24px;
  width: 60px; height: 8px;
  background: repeating-linear-gradient(90deg, var(--retro-yellow), var(--retro-yellow) 10px, var(--retro-orange) 10px, var(--retro-orange) 20px);
  border-radius: 8px;
  opacity: 0.25;
  z-index: 1;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -18px; right: 24px;
  width: 60px; height: 8px;
  background: repeating-linear-gradient(90deg, var(--retro-yellow), var(--retro-yellow) 10px, var(--retro-orange) 10px, var(--retro-orange) 20px);
  border-radius: 8px;
  opacity: 0.25;
  z-index: 1;
}

/* ========== UTILITY CLASSES ========== */
.hide {
  display: none !important;
}

/* ========== END OF CSS ========== */
