/* ==========================================================================
   SAMBA - Layout CSS (Containers, Header, Hero, Sections & Grid Systems)
   ========================================================================== */

/* Main Container */
.container {
  width: 96%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

/* Section Wrapper */
.section {
  padding-block: var(--space-xl);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 1000px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  color: var(--accent-gold);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-block: var(--space-sm);
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), padding var(--transition-normal);
}

.header.scrolled {
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding-block: 0.75rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.brand-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast), height var(--transition-fast);
}

.header.scrolled .brand-logo img {
  height: 60px;
}

.brand-logo:hover img {
  transform: scale(1.05);
}

.mobile-nav-logo {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Hamburger Active State */
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: auto;
  padding-top: calc(85px + var(--space-lg));
  padding-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(245, 197, 24, 0.08) 0%, rgba(10, 10, 10, 1) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.hero-badge::before {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 2rem + 2.5vw, 4.25rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.hero-title span {
  color: var(--accent-gold);
  display: block;
}

.hero-description {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 750px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-media-wrapper {
  position: relative;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  max-width: 850px;
  width: 100%;
  background: transparent;
  display: flex;
  justify-content: center;
}

.hero-media-wrapper img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 880px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--accent-gold-glow);
  border: 1px solid var(--border-gold);
  transition: transform var(--transition-normal);
}

.hero-media-wrapper:hover img {
  transform: scale(1.02);
}

/* Notre Histoire Logo Wrapper */
.histoire-logo-wrapper {
  max-width: 560px;
  width: 100%;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-card);
  margin-inline: auto;
  transition: transform var(--transition-bounce), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.histoire-logo-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-gold-hover);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px var(--accent-gold-glow);
}

.histoire-logo-wrapper img {
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.histoire-logo-wrapper:hover img {
  transform: scale(1.08);
  filter: brightness(1.15);
}

/* Info Bar at Bottom of Hero */
.hero-info-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 197, 24, 0.1);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: var(--text-sm);
  font-weight: 700;
}

.info-text p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* Contact Section Info List */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  width: 100%;
  max-width: 420px;
}

.contact-info-list .info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-align: left;
  width: 100%;
}

.contact-info-list .info-text {
  text-align: left;
}

.contact-info-list .info-text h4,
.contact-info-list .info-text p {
  text-align: left;
}

/* ==========================================================================
   Footer Layout
   ========================================================================== */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand img {
  height: 85px;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  max-width: 320px;
  margin-bottom: var(--space-md);
}

.footer-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);

}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-buttons {
    justify-content: center;
    width: 100%;
  }

  .contact-info-list {
    margin-inline: auto;
  }

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

/* App Promo Card */
.app-promo-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .section {
    overflow-x: hidden;
  }

  .app-promo-card {
    padding: var(--space-lg) var(--space-sm);
    max-width: 100%;
  }
  .section-title {
    font-size: clamp(1.4rem, 1.2rem + 2vw, 2.1rem);
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero-buttons {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 360px;
    text-align: center;
    justify-content: center;
    white-space: normal;
  }
  .brand-logo img {
    height: 52px;
  }

  .header.scrolled .brand-logo img {
    height: 45px;
  }

  .nav-phone-btn {
    display: inline-flex;
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  .nav-phone-btn .phone-text {
    display: none;
  }

  .nav-actions .btn-primary {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    transition: right var(--transition-normal);
  }

  .mobile-nav-logo {
    display: block;
    margin-bottom: var(--space-md);
    text-align: center;
  }

  .mobile-nav-logo img {
    height: 75px;
    width: auto;
    object-fit: contain;
    margin-inline: auto;
  }

  .nav-menu.is-active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .footer {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .footer-brand img {
    margin-inline: auto;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-links {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: var(--space-xs);
  }

  .hero-info-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
