/* ========== Base & Variables ========== */
:root {
  --gold: #FFD700;
  --dark: #0b0b0b;
  --slate: #2c3e50;
  --text: #0b0b0b;
  --muted: #5b5b5b;
  --border: rgba(0,0,0,0.1);
  --bg: #111;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Helvetica Neue", sans-serif;
  background: #fff;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; width: auto; height: auto; background: #000; color: #fff;
  padding: 10px 14px; border-radius: 6px; z-index: 9999;
}

/* ========== Header / Nav ========== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand .logo { display: inline-block; line-height: 1; }
.logo-main {
  display: block;
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: 30px;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.subtitle {
  display: block;
  font-size: 12px;
  color: #e8f1ff;
  background: var(--slate);
  padding: 2px 8px; border-radius: 999px;
  margin-top: 2px; width: max-content;
}

/* ========== Hamburger Menu - CORRIGÉ ========== */
.nav-toggle { display: none; }
.hamburger {
  --size: 44px;
  width: var(--size); height: var(--size);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; cursor: pointer; position: relative;
  border: 2px solid #333;
  background: var(--gold); /* FOND BLANC SOLIDE */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: #f8f8f8;
  border-color: var(--gold);
}

.hamburger::before, 
.hamburger::after {
  content: "";
  position: absolute;
  width: 22px; height: 3px;
  background: #000; /* BARRES NOIRES ÉPAISSES */
  transition: transform 0.3s ease, opacity 0.3s ease;
  left: 50%; top: 50%;
  border-radius: 2px;
}

.hamburger::before { transform: translate(-50%, -7px); }
.hamburger::after { transform: translate(-50%, 7px); }

.hamburger:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Animation du hamburger quand ouvert */
.nav-toggle:checked ~ .hamburger::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-toggle:checked ~ .hamburger::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ========== Navigation ========== */
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav a {
  display: inline-block; padding: 8px 12px; border-radius: 8px; font-weight: 600; position: relative;
  transition: all 0.3s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: #000; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta .btn { margin-left: 6px; }

/* ========== Responsive Navigation - AMÉLIORÉ ========== */
@media (min-width: 768px) {
  .hamburger { display: none; }
  .nav { 
    position: static; inset: auto; background: transparent; transform: none; 
    opacity: 1; visibility: visible; 
  }
}

@media (max-width: 767.98px) {
  .header-inner {
    padding: 0 16px;
  }
  
  .nav {
    position: fixed; top: 68px; right: 0; bottom: 0; width: 280px;
    background: #fff; border-left: 2px solid var(--border);
    padding: 20px; transform: translateX(100%); 
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0; visibility: hidden;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    color: var(--gold);
  }
  
  .nav ul { 
    flex-direction: column; align-items: stretch; gap: 8px; 
  }
  
  .nav a { 
    width: 100%; padding: 14px 16px; border-radius: 10px; 
    background: #f8f9fa; border: 1px solid #e9ecef;
  }
  
  .nav a:hover {
    background: #e9ecef;
    transform: translateX(4px);
  }
  
  .nav .nav-cta { width: 100%; margin-top: 16px; }
  .nav .nav-cta .btn { width: 100%; padding: 16px; background: var(--gold); }
  
  .nav-toggle:checked ~ .nav { 
    transform: translateX(0); opacity: 1; visibility: visible; 
  }
}

/* ========== Hero Section ========== */
.hero {
  position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center; overflow: hidden;
  animation: fadeIn 0.8s ease both;
}
.hero.small { min-height: 48vh; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,0.58), rgba(0,0,0,0.42)), var(--hero);
  background-size: cover; background-position: center;
}
.hero .hero-inner { position: relative; z-index: 1; text-align: center; color: #fff; padding: 0 20px; }
.hero-title {
  font-size: clamp(24px, 5vw, 48px); margin: 0 0 10px; font-weight: 800; letter-spacing: 0.2px;
}
.script {
  display: block; margin-top: 8px;
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: clamp(40px, 8vw, 84px); color: var(--gold);
}
.hero-sub { max-width: 600px; margin: 8px auto 0; color: rgba(255,255,255,0.92); }
.hero-actions { 
  display: flex; gap: 12px; align-items: center; justify-content: center; 
  margin-top: 22px; flex-wrap: wrap; 
}
.hero-accent {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--gold), #caa800, var(--gold));
  opacity: 0.95;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  border: 1px solid transparent; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { filter: saturate(105%); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.btn-outline { background: #fff; border-color: var(--border); }
.btn-outline:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-ghost {
  background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ========== Sections ========== */
.section { padding: 64px 0; }
.section.muted { background: #f6f7f9; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-title { margin: 0; font-weight: 800; font-size: clamp(24px, 4vw, 34px); }
.section-sub { margin: 8px auto 0; max-width: 600px; color: var(--muted); }
.section-actions { display: flex; justify-content: center; margin-top: 24px; }

/* ========== Grid System - AMÉLIORÉ ========== */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ========== Cards ========== */
.cards .card {
  position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 16px;
  background: #fff; box-shadow: 0 6px 12px rgba(0,0,0,0.04);
  transform: translateY(6px); opacity: 0; animation: rise 0.8s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.cards .card:nth-child(1) { animation-delay: 0.1s; }
.cards .card:nth-child(2) { animation-delay: 0.2s; }
.cards .card:nth-child(3) { animation-delay: 0.3s; }

.card-media { 
  position: relative; height: 220px; overflow: hidden; 
  background: #f8f9fa;
}
.card-media img, .card-media video { 
  width: 100%; height: 100%; object-fit: cover; 
  transition: transform 0.7s ease; 
}
.card:hover .card-media img,
.card:hover .card-media video { 
  transform: scale(1.05); 
}

.card-body { padding: 20px; }
.card-title {
  margin: 0 0 12px; padding: 8px 12px; border-radius: 8px;
  background: #000; color: var(--gold); display: inline-block; font-size: 18px; font-weight: 600;
}

.card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--gold);
  transition: width 0.5s ease;
}
.card:hover::after { width: 100%; }
.card-link { position: absolute; inset: 0; }

/* ========== Forms ========== */
.form {
  border: 1px solid var(--border); border-radius: 18px; background: #fff; padding: 24px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.04); max-width: 800px; margin-inline: auto;
  transform: translateY(6px); opacity: 0; animation: rise 0.7s ease forwards;
}

.form-row { 
  display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .form-row { grid-template-columns: repeat(3, 1fr); }
  .form-row:first-child { grid-template-columns: repeat(2, 1fr); }
}

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }

label { font-weight: 600; color: var(--text); }
input, textarea, select {
  appearance: none; border: 2px solid var(--border); border-radius: 12px; 
  padding: 12px 16px; font: inherit; background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold); 
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

select {
  background-color: #fff;
  color: #333;
  cursor: pointer;
}

select:hover { border-color: #999; }
option { padding: 10px; }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.form-note { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ========== Toast Notifications ========== */
.toast {
  position: fixed; top: 20px; right: 20px; opacity: 0;
  transition: all 0.4s ease; background: #0f0f10;
  border: 1px solid transparent; border-radius: 10px;
  padding: 12px 16px; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 9999; color: #fff; min-width: 300px; max-width: 400px;
}
.toast .toast-inner { 
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; 
}
.toast.success { border-color: rgba(34,197,94,0.6); background: #14532d; }
.toast.error { border-color: rgba(239,68,68,0.6); background: #7f1d1d; }
.toast.show { opacity: 1; }

/* ========== Footer ========== */
.site-footer { 
  margin-top: 40px; background: #0f1724; color: #e6eef6; 
  border-top: 1px solid rgba(255,255,255,0.1); 
}

.footer {
  background: #0f1724;
  color: #e6eef6;
  padding: 40px 20px;
}

.footer-inner {
  display: grid; gap: 32px; max-width: 1200px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.brand { min-width: 220px; }
.brand h3 { margin: 0 0 8px; font-size: 1.2rem; }
.brand p { margin: 0; color: #9fb3c6; font-size: 0.95rem; }

.contacts {
  display: flex; flex-direction: column; gap: 12px; min-width: 220px;
}
.contacts a, .contacts div {
  display: inline-flex; gap: 10px; align-items: center;
  color: #e6eef6; text-decoration: none; font-size: 0.95rem;
}
.contacts a:hover { color: #06b6d4; }

.social {
  display: flex; gap: 12px; align-items: center; margin-top: 16px;
}
.social a {
  display: inline-flex; width: 44px; height: 44px; border-radius: 8px;
  background: rgba(255,255,255,0.05); align-items: center; justify-content: center;
  text-decoration: none; color: #e6eef6;
  transition: transform 0.3s ease, background 0.3s ease;
}
.social a:hover { 
  transform: translateY(-2px); 
  background: linear-gradient(135deg, #06b6d4, rgba(125,211,252,0.2)); 
}

.legal {
  width: 100%; border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  flex-wrap: wrap; color: #9fb3c6; font-size: 0.9rem;
}

/* ========== Responsive Improvements ========== */
@media (max-width: 768px) {
  .container { padding-inline: 16px; }
  .section { padding: 48px 0; }
  .hero { min-height: 60vh; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .legal { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding-inline: 12px; }
  .section { padding: 32px 0; }
  .hero { min-height: 50vh; }
  .hero-title { font-size: 1.5rem; }
  .script { font-size: 2.5rem; }
  .section-title { font-size: 1.3rem; }
  .card-body { padding: 16px; }
  .form { padding: 20px; }
}

/* ========== Animations ========== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Focus & Accessibility ========== */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 3px solid rgba(255, 215, 0, 0.5);
  outline-offset: 2px;
}

.icon { width: 20px; height: 20px; display: block; }

/* ========== Utility Classes ========== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }


html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* bloque le scroll horizontal */
}

/* Conteneurs flexibles */
.container {
  width: 100%;
  max-width: 1200px; /* largeur max pour les grands écrans */
  margin: 0 auto;
  padding: 0 16px;   /* espace intérieur */
}
