/* ============================================
   Bijouterie Éclat - Luxury Effects
   ============================================ */

/* ========== Header & Navigation ========== */
/* Le fond flou est porte par ::before, pas par .header. Un backdrop-filter
   non nul ferait de .header le bloc conteneur de ses descendants en
   position:fixed : le bottom:0 de .nav se resoudrait alors sur la barre de
   60px au lieu du viewport, et le menu mobile resterait replie a 48px. */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 15, 15, 0.9);
  -webkit-backdrop-filter: var(--blur-glass);
  backdrop-filter: var(--blur-glass);
  transition: var(--transition);
}

.header.scrolled::before {
  background: rgba(15, 15, 15, 0.98);
}

.header.scrolled {
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.logo-text span {
  color: var(--gold-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: var(--transition);
}

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

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

/* Le bouton ne mesurait que 41 x 32 px : sous le minimum de 44 px recommande
   pour une cible tactile. Ce ::after elargit la zone cliquable a 44 x 44 px
   sans toucher a l'apparence ni a la hauteur de la barre de navigation. */
.menu-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Hero Section ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-dark);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.4) 0%,
    rgba(15, 15, 15, 0.8) 100%
  );
}

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

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--blur-glass);
  font-size: 0.85rem;
  color: var(--gold-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-title .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-primary);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ========== Glass Cards ========== */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--blur-glass);
  padding: var(--space-lg);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-5px);
}

/* Product Card */
.product-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--blur-glass);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold-strong);
}

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

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 0.25rem 0.75rem;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.product-content {
  padding: var(--space-md);
}

.product-category {
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.product-description {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Universe Card */
.universe-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

/* Le voile ne commencait qu'a 40 % de la hauteur. Sur telephone la carte passe
   en 16/10 (responsive.css) : elle est bien plus basse, et l'icone comme le
   haut du titre se retrouvaient sur la photo brute, sans voile — texte blanc
   illisible sur un cliche de bijou clair. Le degrade demarre donc plus haut et
   gagne un palier intermediaire. */
.universe-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 15%,
    rgba(15, 15, 15, 0.55) 45%,
    rgba(15, 15, 15, 0.95) 100%
  );
  z-index: 1;
  transition: var(--transition);
}

.universe-card:hover::before {
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.1) 0%,
    rgba(15, 15, 15, 0.6) 45%,
    rgba(15, 15, 15, 0.95) 100%
  );
}

.universe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.universe-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  z-index: 2;
}

.universe-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--gold-primary);
}

.universe-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.universe-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== Service Cards ========== */
.service-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--blur-glass);
  padding: var(--space-xl);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
  transform: translateY(-5px);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  color: var(--gold-primary);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.service-description {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== Testimonials ========== */
.testimonial-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--blur-glass);
  padding: var(--space-xl);
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-primary);
  position: absolute;
  top: var(--space-md);
  left: var(--space-lg);
  opacity: 0.3;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.testimonial-name {
  font-weight: 500;
  color: var(--text-primary);
}

.testimonial-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--gold-primary);
  margin-top: var(--space-xs);
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-primary);
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-3xl) 0 var(--space-lg);
}

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

.footer-brand .logo-text {
  margin-bottom: var(--space-md);
}

.footer-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

/* Meme correctif que pour le bouton menu : les icones mesurent 40 x 40 px,
   sous le minimum tactile de 44 px. La zone cliquable est etendue sans changer
   la taille visible des carres. */
.footer-social a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.footer-social a:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--gold-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--glass-border);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========== Gold Dust Particles ========== */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold-primary);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 15s infinite;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) rotate(0deg);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) rotate(720deg);
  }
}

/* ========== Glow Effects ========== */
/* Symptome : l'aureole doree annoncee par .glow-gold n'apparaissait sur aucune
   des trois pages qui l'utilisent (accueil, atelier, boutique). Cause : les
   cartes concernees portaient `overflow: hidden` en style inline — pose pour
   arrondir les coins de la photo — qui rognait aussi le ::before, lequel
   deborde volontairement de 10 % de chaque cote. Correctif : le rognage passe
   sur l'image elle-meme, la carte laisse depasser l'aureole. */
.glow-gold {
  position: relative;
}

.glow-gold img {
  border-radius: inherit;
}

.glow-gold::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(212, 175, 55, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* ========== Cartes d'appel a l'action ========== */
/* Ces cartes portaient `padding: var(--space-3xl)` (96 px) en style inline.
   Symptome sur telephone : a 375 px de large il ne restait que 151 px pour le
   contenu, et les boutons — qui ne peuvent pas se comprimer sous leur texte —
   depassaient de la carte des deux cotes. Le padding est desormais reduit sous
   768 px (voir responsive.css). */
.cta-card {
  padding: var(--space-3xl);
  max-width: 800px;
  margin: 0 auto;
}

.cta-card--inline {
  display: inline-block;
  max-width: 100%;
  padding: var(--space-xl) var(--space-2xl);
}

/* ========== Formulaires : etats d'erreur et de succes ========== */
/* Ces trois classes sont creees par main.js (showError / showSuccessMessage)
   mais n'avaient aucune regle CSS. Symptomes : le message d'erreur s'affichait
   en blanc, colle a droite du champ, indistinguable d'un libelle ; et le SVG du
   message de succes, sans width ni height, prenait sa taille par defaut de
   300x150 px et debordait du formulaire sur telephone. */
.error-message {
  display: block;
  margin-top: var(--space-xs);
  color: #ff8a80;
  font-size: 0.85rem;
}

input.error,
textarea.error,
select.error {
  border-color: #ff8a80;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
  padding: var(--space-lg) 0;
}

.form-success svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--gold-primary);
}

.form-success p {
  margin: 0;
}

/* ========== Page Header ========== */
.page-header {
  padding: calc(80px + var(--space-3xl)) 0 var(--space-2xl);
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.page-title {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.breadcrumb a:hover {
  color: var(--gold-primary);
}

.breadcrumb svg {
  width: 16px;
  height: 16px;
}

/* ========== Filter Buttons ========== */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--bg-primary);
}

/* ========== Map Container ========== */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(1) invert(1) contrast(1.1);
}

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

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered Animation */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Bandeau maquette de demonstration ========== */
:root {
  --demo-banner-height: 2.25rem;
}

body {
  padding-bottom: var(--demo-banner-height);
}

.demo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  min-height: var(--demo-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 0.35rem;
  padding: 0.35rem var(--container-padding);
  background: rgba(15, 15, 15, 0.96);
  backdrop-filter: var(--blur-glass);
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
}

.demo-banner a {
  color: var(--gold-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition-fast);
}

.demo-banner a:hover,
.demo-banner a:focus-visible {
  color: var(--gold-light);
  border-bottom-color: currentColor;
}
