/* ============== SAINT MALO SHOP - MODERN CSS ============== */

/* --- RESET & VARIABLES --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  /* Colors - Ocean/Sand palette */
  --clr-bg: #fafafa;
  --clr-surface: #ffffff;
  --clr-txt: #1a1a2e;
  --clr-txt-muted: #64748b;
  --clr-primary: #0d4f8b;
  --clr-primary-light: #1a6bb5;
  --clr-accent: #e85d04;
  --clr-accent-light: #ff7a29;
  --clr-gold: #d4a84b;
  --clr-dark: #0f172a;
  --clr-dark-soft: #1e293b;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* Spacing */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- TYPOGRAPHY --- */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--clr-bg);
  color: var(--clr-txt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* --- UTILITIES --- */
.wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--clr-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(13, 79, 139, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-small {
  padding: 0.5rem 1rem;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.btn-small:hover {
  background: var(--clr-primary-light);
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease);
}

.site-header.scrolled {
  padding: 0.75rem 2rem;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--clr-txt);
}

.logo-dot {
  font-size: 2rem;
  color: var(--clr-accent);
  font-weight: 800;
  margin: 0 2px;
}

.logo-shop {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--clr-txt-muted);
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--clr-txt);
  transition: 0.3s var(--ease);
  border-radius: 2px;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  display: none;
}

@media (min-width: 900px) {
  .burger {
    display: none;
  }

  .primary-nav {
    display: block;
  }

  .primary-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }

  .primary-nav a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--clr-txt);
    position: relative;
    padding: 0.5rem 0;
  }

  .primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: width 0.3s var(--ease);
  }

  .primary-nav a:hover::after {
    width: 100%;
  }

  .has-sub {
    position: relative;
  }

  .submenu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--clr-surface);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
  }

  .has-sub:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .submenu a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }

  .submenu a:hover {
    background: var(--clr-bg);
  }
}

/* --- OVERLAY NAV (Mobile) --- */
#overlay-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-dark);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}

#overlay-nav.open {
  transform: translateX(0);
}

#overlay-nav .close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

#overlay-nav ul {
  list-style: none;
}

#overlay-nav li {
  margin-bottom: 1rem;
}

#overlay-nav a {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s;
}

#overlay-nav a:hover {
  color: var(--clr-accent);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(15, 23, 42, 0.7) 0%,
      rgba(13, 79, 139, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 2rem;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #fff, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* --- SECTIONS --- */
section {
  padding: 15rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 8rem;
  padding-top: 2rem;
}

.section-header-light {
  color: #fff;
}

.section-header-light .section-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.section-tag {
  display: inline-block;
  background: var(--clr-primary);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.section-header h2 {
  margin-bottom: 2.5rem;
  letter-spacing: -2px;
  line-height: 1.2;
}

.section-header p {
  color: var(--clr-txt-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section-header-light p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- ARTICLES GRID --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.article-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.article-card:hover img {
  transform: scale(1.05);
}

.article-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.article-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: #fff;
}

.article-card .tag {
  display: inline-block;
  background: var(--clr-accent);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 5;
}

.article-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.article-card p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-accent-light);
  transition: color 0.3s;
}

.article-link:hover {
  color: #fff;
}

.article-featured {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 500px;
}

.article-card:not(.article-featured) {
  grid-column: span 3;
  min-height: 250px;
}

@media (max-width: 1024px) {
  .article-featured {
    grid-column: span 12;
    grid-row: span 1;
    min-height: 400px;
  }

  .article-card:not(.article-featured) {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  .article-card:not(.article-featured) {
    grid-column: span 12;
  }
}

/* --- QUARTIERS --- */
.quartiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.quartier-card {
  position: relative;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.quartier-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.quartier-card:hover img {
  transform: scale(1.1);
}

.quartier-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
}

.quartier-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: #fff;
}

.quartier-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.quartier-content span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* --- MAP --- */
.map-section {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.map-filters {
  margin-bottom: 1.5rem;
}

.map-filters h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  padding: 0.5rem 1rem;
  border: 1px solid var(--clr-txt);
  border-radius: 100px;
  background: transparent;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.pill:hover,
.pill.active {
  background: var(--clr-txt);
  color: #fff;
}

.map-container {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* --- BEST SECTION --- */
.section-best {
  background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-dark-soft) 100%);
}

.best-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.best-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease);
}

.best-card:hover {
  transform: translateY(-8px);
}

.best-image {
  position: relative;
  height: 200px;
}

.best-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.best-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--clr-accent);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.best-rating {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.best-rating .stars {
  color: var(--clr-gold);
  font-size: 0.8rem;
}

.best-rating .score {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-left: 0.25rem;
}

.best-content {
  padding: 1.5rem;
}

.best-content h3 {
  margin-bottom: 0.25rem;
}

.best-cuisine {
  color: var(--clr-txt-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.best-desc {
  font-size: 0.9rem;
  color: var(--clr-txt);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.resto-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-bg);
  margin-top: 2rem;
}

.resto-card-footer .location {
  font-size: 0.9rem;
  color: var(--clr-txt-muted);
  flex: 1;
  padding-right: 1.5rem;
}

.resto-card-footer .btn-small {
  margin-left: 1.5rem;
  white-space: nowrap;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--clr-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.1);
}

/* --- CATEGORIES --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.category-card {
  background: var(--clr-surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

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

.category-card p {
  color: var(--clr-txt-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.category-count {
  display: inline-block;
  background: var(--clr-bg);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary);
}

/* --- REVIEWS --- */
.reviews-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--clr-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.review-stars {
  color: var(--clr-gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--clr-txt);
}

.review-author {
  display: flex;
  justify-content: space-between;
}

.author-name {
  font-weight: 600;
}

.author-date {
  color: var(--clr-txt-muted);
  font-size: 0.85rem;
}

/* --- ABOUT --- */
.section-about {
  background: var(--clr-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-content .section-tag {
  margin-bottom: 1rem;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--clr-txt-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-content .btn {
  margin-top: 1rem;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* --- NEWSLETTER --- */
.section-newsletter {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  padding: 5rem 0;
}

.newsletter-content {
  text-align: center;
  color: #fff;
}

.newsletter-content h2 {
  margin-bottom: 0.75rem;
}

.newsletter-content p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 100px;
  font-size: 1rem;
}

.newsletter-form .btn {
  background: var(--clr-dark);
}

.newsletter-form .btn:hover {
  background: var(--clr-txt);
}

/* --- FOOTER --- */
.site-footer {
  background: var(--clr-dark);
  color: #fff;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}



.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-logo .dot {
  color: var(--clr-accent);
}

.footer-brand p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links h4 {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Leaflet overrides */
.leaflet-container {
  font-family: inherit;
}