/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --cream:    #F5EFE6;
  --gold:     #D6A86B;
  --bordeaux: #6B1F2A;
  --brown:    #2B2B2B;
  --terra:    #B76E45;
  --white:    #FFFFFF;
  --shadow-card: 0 4px 24px rgba(43,43,43,0.07);
  --shadow-hero: 0 20px 60px rgba(43,43,43,0.18);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─────────────────────────────────────────────────── */
#main-nav {
  border-bottom: 1px solid rgba(43,43,43,0.06);
}

/* Active nav link */
nav a.nav-active {
  color: var(--terra);
  position: relative;
}

nav a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--terra);
}

/* Mobile drawer active */
#mobile-menu a.nav-active {
  color: var(--terra);
}

#main-nav.scrolled {
  box-shadow: 0 2px 20px rgba(43,43,43,0.08);
}

/* Hamburger button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--brown);
  transition: all 0.25s ease;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────────── */
.shadow-hero {
  box-shadow: var(--shadow-hero);
}

.hero-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--bordeaux);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(107,31,42,0.32);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .hero-cta {
    display: inline-block;
    width: auto;
    padding: 1rem 3rem;
  }
}

/* ─── Category accordion ─────────────────────────────────────── */

.cat-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-accordion.open .cat-body {
  max-height: 600px;
}

.cat-accordion.open .cat-chevron {
  transform: rotate(90deg);
  color: var(--terra);
}

/* ─── Category list rows ─────────────────────────────────────── */
.cat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  text-decoration: none;
  background: none;
  border: none;
  color: var(--brown);
  cursor: pointer;
  transition: background 0.18s ease;
  width: 100%;
}

.cat-row:hover {
  background: rgba(43,43,43,0.025);
}

.cat-emoji {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff6e9;
  border-radius: 14px;
  flex-shrink: 0;
  font-size: 1.15rem;
  color: var(--terra);
  border: 1px solid rgba(183,110,69,0.15);
}

.cat-text { flex: 1; }

.cat-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown);
  margin: 0;
}

.cat-desc {
  font-size: 0.74rem;
  color: rgba(43,43,43,0.50);
  margin: 2px 0 0;
}

.cat-chevron {
  color: rgba(43,43,43,0.30);
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}

.cat-row:hover .cat-chevron {
  transform: translateX(3px);
  color: var(--terra);
}

/* ─── Snippet grid inside accordion ─────────────────────────── */
.snippet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}

.snippet-item {
  background: #fff6e9;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--brown);
  line-height: 1.4;
}

/* Icons inside snippet grid items */
.si {
  color: var(--terra);
  font-size: 0.8rem;
  margin-right: 5px;
  flex-shrink: 0;
}

/* Icons in mockup bullet list */
.mockup-check {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.cat-dl-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bordeaux);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cat-dl-cta:hover {
  opacity: 0.88;
}

/* ─── Stat cards ─────────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.stat-num {
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0;
}

.stat-lbl {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(43,43,43,0.55);
  margin: 8px 0 0;
}

/* ─── Section header ─────────────────────────────────────────── */
.section-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: rgba(183,110,69,0.80);
  margin: 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--brown);
  margin: 0.4rem 0 0;
  line-height: 1.2;
}

.section-desc {
  max-width: 40rem;
  margin: 0.4rem auto 0;
  font-size: 0.875rem;
  line-height: 1.9;
  color: rgba(43,43,43,0.65);
}

@media (min-width: 768px) {
  .section-title { font-size: 2.75rem; }
}

/* ─── Content cards ──────────────────────────────────────────── */
.content-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(43,43,43,0.12);
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--terra);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brown);
  margin: 0;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.82rem;
  line-height: 1.85;
  color: rgba(43,43,43,0.62);
  margin: 0.5rem 0 0;
}

/* ─── Image cards ────────────────────────────────────────────── */
.image-card {
  position: relative;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
  overflow: hidden;
}

.image-full {
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Fallback overlay when image not yet loaded */
.image-card:not(.loaded)::after,
.image-full:not(.loaded)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,239,230,0.6), rgba(214,168,107,0.15));
}

@media (max-width: 640px) {
  .image-card, .image-full { min-height: 220px; }
}

/* ─── Restaurant swiper ──────────────────────────────────────── */
.restaurant-slide {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.restaurant-slide .p-7 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.restaurant-swiper {
  padding-bottom: 1.5rem;
}

.restaurant-swiper .swiper-wrapper {
  align-items: stretch;
}

.restaurant-swiper .swiper-slide {
  height: auto !important;
}

/* ─── Swiper shared ──────────────────────────────────────────── */
.swiper-pagination-bullet {
  background: rgba(183,110,69,0.30);
}

.swiper-pagination-bullet-active {
  background: var(--terra);
}

.swiper-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(183,110,69,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(43,43,43,0.09);
  transition: all 0.22s ease;
  color: var(--terra);
  flex-shrink: 0;
}

.swiper-nav-btn:hover {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}

.swiper-nav-btn.swiper-button-disabled {
  opacity: 0.30;
  pointer-events: none;
}

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-button {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 1rem;
}

.faq-icon {
  color: var(--terra);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0;
}

.faq-item.open .faq-body {
  max-height: 200px;
  margin-top: 0.75rem;
}

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

/* ─── Shadow utility ─────────────────────────────────────────── */
.shadow-card {
  box-shadow: var(--shadow-card);
}

/* ─── Download button ────────────────────────────────────────── */
.download-big-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: var(--bordeaux);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 1.25rem 2.5rem;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(107,31,42,0.38);
  transition: opacity 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.01em;
}

.download-big-btn:hover {
  opacity: 0.93;
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(107,31,42,0.45);
}

@media (min-width: 640px) {
  .download-big-btn {
    width: auto;
    font-size: 1.1rem;
    padding: 1.35rem 3rem;
  }
}

/* ─── Cover heading: CITY GUIDE / MARRAKECH ─────────────────── */
.cover-heading {
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  line-height: 1;
}

.cover-subline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  letter-spacing: 0.32em;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.cover-city  { color: #2B2B2B; }
.cover-guide { color: #D6A86B; }

.cover-marrakech {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: #2B2B2B;
  letter-spacing: 0.025em;
  line-height: 0.88;
  text-shadow: 0 1px 3px rgba(43,43,43,0.20);
}

/* Section mockup — desktop scale */
@media (min-width: 768px) {
  .cover-subline    { font-size: 1.35rem; }
  .cover-marrakech  { font-size: 4.25rem; }
}

/* Hero — mobile override (légèrement plus grand que le mockup) */
.cover-heading-hero .cover-subline   { font-size: 1.1rem; }
.cover-heading-hero .cover-marrakech { font-size: 3rem; }

/* Hero — desktop */
@media (min-width: 768px) {
  .cover-heading-hero .cover-subline   { font-size: 1.9rem; }
  .cover-heading-hero .cover-marrakech { font-size: 5.75rem; }
}

/* ─── Lead generation form (hero) ───────────────────────────── */
.lead-form-card {
  background: #f5efe6;
  border-radius: 24px;
  padding: 1.75rem;
  margin-top: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(214,168,107,0.18);
}

.lead-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lead-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lead-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(43,43,43,0.55);
}

.lead-input {
  width: 100%;
  border: 1.5px solid rgba(43,43,43,0.12);
  background: var(--cream);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--brown);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lead-input::placeholder {
  color: rgba(43,43,43,0.35);
}

.lead-input:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(214,168,107,0.18);
}

.lead-phone-group {
  display: flex;
  gap: 8px;
}

.lead-phone-group .lead-input {
  flex: 1;
}

.lead-phone-code {
  flex: 0 0 108px;
  border: 1.5px solid rgba(43,43,43,0.12);
  background: var(--cream);
  border-radius: 16px;
  padding: 0.9rem 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: var(--brown);
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-phone-code:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(214,168,107,0.18);
}

.lead-form-card .download-big-btn {
  width: 100%;
  margin-top: 0.15rem;
}

.lead-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(43,43,43,0.50);
}

.lead-disclaimer i {
  color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
}

.lead-success {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--bordeaux);
}

.lead-success i {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.lead-form-card.submitted .lead-form-fields {
  display: none;
}

.lead-form-card.submitted .lead-success {
  display: flex;
}

/* ─── Bouton formulaire : effet "pop" pour attirer l'attention ─── */
@keyframes btn-pop {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 40px rgba(107,31,42,0.38);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 16px 52px rgba(107,31,42,0.55);
  }
}

/* On cible uniquement les boutons dans le formulaire (pas ceux du header) */
.lead-form-card .download-big-btn {
  animation: btn-pop 1.6s ease-in-out infinite;
  will-change: transform;
}

/* Au survol : on stoppe le pop et on laisse ton effet hover d'origine reprendre */
.lead-form-card .download-big-btn:hover {
  animation: none;
}

/* Accessibilité : on désactive pour les gens qui réduisent les animations */
@media (prefers-reduced-motion: reduce) {
  .lead-form-card .download-big-btn {
    animation: none;
  }
}

.lead-error-msg {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #B3261E;
}

.lead-error-msg i {
  margin-top: 2px;
  flex-shrink: 0;
}

.lead-form-card.lead-error .lead-error-msg {
  display: flex;
}

.download-big-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.download-big-btn .bi-arrow-repeat {
  animation: lead-spin 0.8s linear infinite;
}

@keyframes lead-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
