/* ============ VARIABLES ============ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #8b5cf6;
  --success: #10b981;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5d;

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --bg-white: #ffffff;
  --bg-soft: #f8fafc;
  --bg-gray: #f1f5f9;
  --border: #e2e8f0;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

/* ============ LAYOUT ============ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.section-header h2 { position: relative; padding-bottom: 10px; }
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
}
.link-all {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.link-all:hover { gap: 12px; }

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ============ BADGES ============ */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--primary-light);
  color: var(--primary-dark);
}
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 48px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 900;
}
.logo-text small {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-body);
  transition: var(--transition);
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-light); }
.nav-close { display: none; }
.menu-toggle { display: none; font-size: 1.4rem; color: var(--text-dark); padding: 8px; border-radius: var(--radius-sm); }
.menu-toggle:hover { background: var(--bg-gray); }

/* ============ HERO ============ */
.hero {
  padding: 60px 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-white) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 { margin: 16px 0 20px; }
.hero-text p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { color: var(--primary); }

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  aspect-ratio: 3/4;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-image:hover img { transform: scale(1.04); }
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.hero-image:hover .hero-image-overlay { opacity: 1; }
.btn-view {
  background: white;
  color: var(--text-dark);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.btn-view:hover { background: var(--primary); color: white; transform: scale(1.05); }

/* ============ INFO CARDS ============ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.info-card i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: inline-block;
}
.info-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.info-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ============ CTA ============ */
.cta-section { background: var(--bg-soft); }
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: white;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: white; margin: 12px 0; }
.cta-box p { color: rgba(255, 255, 255, 0.9); }
.cta-box .badge { background: rgba(255, 255, 255, 0.2); color: white; }
.cta-box .btn-primary { background: white; color: var(--primary); }
.cta-box .btn-primary:hover { background: var(--text-dark); color: white; }

/* ============ QR PAGE ============ */
.qr-page {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 32px;
}
.qr-page-text h1 { margin: 16px 0 20px; }
.qr-page-text p { margin-bottom: 24px; color: var(--text-muted); }
.qr-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.qr-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.qr-steps i { color: var(--primary); font-size: 1.2rem; width: 24px; text-align: center; }
.qr-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.qr-note i { color: var(--success); }

.qr-page-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.qr-page-box img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
}
.qr-page-box small {
  display: block;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.85rem;
}

/* ============ GALLERY ============ */
.gallery-intro { color: var(--text-muted); margin-bottom: 32px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-gray);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  z-index: 1;
}

.gallery-item:hover::after { opacity: 1; }

.gallery-download,
.gallery-view {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border: none;
}

.gallery-download {
  top: 12px;
  right: 12px;
}

.gallery-view {
  top: 12px;
  left: 12px;
}

.gallery-item:hover .gallery-download,
.gallery-item:hover .gallery-view {
  opacity: 1;
  transform: translateY(0);
}

.gallery-download:hover {
  background: var(--success);
  color: white;
  transform: scale(1.15) translateY(0) !important;
}

.gallery-view:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.15) translateY(0) !important;
}

/* Sur mobile : les boutons sont toujours visibles */
@media (hover: none) {
  .gallery-download,
  .gallery-view {
    opacity: 1;
    transform: translateY(0);
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
}
/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.96);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  animation: fadeIn 0.25s ease;
}
.lightbox.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.lightbox-close:hover { background: #ef4444; transform: rotate(90deg); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.lightbox-nav:hover { background: var(--primary); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
}
.lightbox-download {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--success);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lightbox-download:hover {
  background: #059669;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.6);
}
.lightbox-download i {
  font-size: 1.1rem;
  animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============ CONTACT ============ */
.contact-single {
  max-width: 720px;
  margin: 0 auto;
}

.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.contact-card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.contact-card > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-card .contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  align-items: center;
}

.contact-card .contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  background: var(--bg-soft);
  padding: 14px 24px;
  border-radius: 50px;
  transition: var(--transition);
  width: 100%;
  max-width: 420px;
  justify-content: flex-start;
}

.contact-card .contact-list li:hover {
  background: var(--primary-light);
  transform: translateX(4px);
}

.contact-card .contact-list i {
  color: var(--primary);
  width: 24px;
  font-size: 1.15rem;
  text-align: center;
}

.contact-card .contact-list a {
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.contact-card .contact-list a:hover {
  color: var(--primary);
}

.contact-card .social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.contact-card .social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  background: var(--bg-soft);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  border: 2px solid transparent;
}

.contact-card .social-links a:hover {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.contact-card .whatsapp-btn {
  background: var(--whatsapp) !important;
  color: white !important;
  padding: 18px 36px;
  font-size: 1.05rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  width: 100%;
  max-width: 420px;
}

.contact-card .whatsapp-btn:hover {
  background: var(--whatsapp-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.5);
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.1);
  animation: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.7); }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--text-dark);
  color: #cbd5e1;
  padding: 60px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 44px;
  width: auto;
  border-radius: 6px;
  background: #ffffff;
  padding: 4px;
  object-fit: contain; }
.footer-logo strong { color: white; font-family: 'Merriweather', serif; font-size: 1.15rem; }
.footer-col p { color: #94a3b8; font-size: 0.9rem; line-height: 1.7; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li {
  color: #94a3b8;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-col ul li i { color: var(--primary); }
.footer-col ul a { color: #94a3b8; transition: var(--transition); }
.footer-col ul a:hover { color: white; padding-left: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ============ BACK LINK ============ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
  transition: var(--transition);
}
.back-link:hover { gap: 12px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 16/10; }
  .qr-page { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
  .header-inner { padding: 12px 18px; }

  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(320px, 85vw);
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 90px 24px 24px;
    gap: 6px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }
  .nav.open { right: 0; }
  .nav a { padding: 14px 16px; font-size: 1rem; }
  .nav-close {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-gray);
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
  }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .cta-box { padding: 40px 24px; text-align: center; }
  .cta-box .btn { width: 100%; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .lightbox-nav { width: 44px; height: 44px; font-size: 1.2rem; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-download { bottom: 80px; right: 50%; transform: translateX(50%); }
}

@media (max-width: 480px) {
  .logo img { height: 40px; }
  .logo-text strong { font-size: 1.05rem; }
  .logo-text small { font-size: 0.6rem; }
  .whatsapp-float { width: 54px; height: 54px; font-size: 1.6rem; bottom: 20px; right: 20px; }
  .contact-form { padding: 28px 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}