/* =============================================
   COMMON.CSS — Styles globaux (toutes pages)
   ============================================= */

/* ===== VARIABLES ===== */
:root {
  --primary:        #1B3C8C;
  --primary-light:  #2B52C8;
  --primary-dark:   #0F2260;
  --gold:           #C9941A;
  --gold-light:     #F2B93B;
  --gold-pale:      #FDF3DC;
  --white:          #FFFFFF;
  --offwhite:       #F8F7F4;
  --surface:        #FFFFFF;
  --border:         #E2E0DA;
  --text-primary:   #12213B;
  --text-secondary: #4A5674;
  --text-muted:     #8896B0;
  --glass-bg:       rgba(255, 255, 255, 0.65);
  --glass-border:   rgba(255, 255, 255, 0.85);
  --glass-shadow:   0 8px 32px rgba(27, 60, 140, 0.12);
  --glass-blur:     blur(18px) saturate(180%);
  --gradient-hero:    linear-gradient(135deg, rgba(15,34,96,0.82) 0%, rgba(27,60,140,0.62) 60%, rgba(201,148,26,0.45) 100%);
  --gradient-section: linear-gradient(160deg, #F8F7F4 0%, #EEF2FF 100%);
  --gradient-gold:    linear-gradient(90deg, #C9941A, #F2B93B);
  --gradient-blue:    linear-gradient(90deg, #1B3C8C, #2B52C8);
}

/* ===== TYPOGRAPHIE GLOBALE ===== */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--offwhite);
  color: var(--text-primary);
  overflow-x: hidden;
}
h1, h2, h3, .font-display { font-family: 'Playfair Display', Georgia, serif; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 600; }
p  { font-size: 1rem; line-height: 1.75; font-weight: 400; color: var(--text-secondary); }

/* ===== COMPOSANTS PARTAGÉS ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

.cta-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gradient-blue);
  color: white; padding: 0.9rem 2rem;
  border-radius: 50px; font-weight: 600;
  box-shadow: 0 4px 20px rgba(27,60,140,0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cta-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(27,60,140,0.4); color: white; }

.cta-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 2px solid var(--gold); color: var(--gold);
  padding: 0.85rem 1.8rem; border-radius: 50px;
  font-weight: 600; transition: all 0.3s ease;
}
.cta-secondary:hover { background: var(--gold); color: white; }

.badge-blue {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(27,60,140,0.1); color: var(--primary);
  border: 1px solid rgba(27,60,140,0.25);
  padding: 0.3rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
}
.badge-gold {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(201,148,26,0.1); color: var(--gold);
  border: 1px solid rgba(201,148,26,0.3);
  padding: 0.3rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
}

.label-small {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); display: block; margin-bottom: 0.5rem;
}
.section-title em { color: var(--primary); font-style: italic; }

/* ===== NAVBAR ===== */
.glass-nav {
  background: rgba(248, 247, 244, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 148, 26, 0.2);
  box-shadow: 0 2px 24px rgba(27, 60, 140, 0.08);
  transition: all 0.3s ease;
}
nav.scrolled { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.monogram {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient-blue); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 800; font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(27,60,140,0.3);
}
.brand-text { font-size: 0.8rem; line-height: 1.2; font-weight: 600; color: var(--primary); }
.brand-text small { font-weight: 400; color: var(--text-muted); font-size: 0.7rem; }

.nav-links a {
  color: var(--text-secondary); font-weight: 500; font-size: 0.9rem;
  position: relative; transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.cta-nav {
  background: var(--primary) !important; color: white !important;
  padding: 0.6rem 1.4rem; border-radius: 50px; font-weight: 600 !important;
  box-shadow: 0 3px 12px rgba(27,60,140,0.25); transition: transform 0.3s ease !important;
}
.cta-nav:hover { transform: translateY(-2px); }
.cta-nav::after { display: none !important; }

#burger span { display: block; width: 24px; height: 2px; background: var(--primary); transition: 0.3s; }

/* ===== DÉLAIS REVEAL (utilitaires réutilisables) ===== */
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* ===== ANIMATIONS SCROLL REVEAL ===== */
[data-reveal]          { opacity: 0; transform: translateY(30px);   transition: opacity 0.8s ease, transform 0.8s ease; }
[data-reveal="left"]   { opacity: 0; transform: translateX(-40px);  transition: opacity 0.8s ease, transform 0.8s ease; }
[data-reveal="right"]  { opacity: 0; transform: translateX(40px);   transition: opacity 0.8s ease, transform 0.8s ease; }
[data-reveal].revealed,
[data-reveal="left"].revealed,
[data-reveal="right"].revealed { opacity: 1; transform: translate(0); }

/* ===== FOND DÉCORATIF GLOBAL ===== */
.bg-blobs { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.12;
  animation: float 8s ease-in-out infinite alternate;
}
.blob-blue   { width: 600px; height: 600px; background: #1B3C8C; top: -10%; left: -15%; }
.blob-gold   { width: 400px; height: 400px; background: #C9941A; top: 30%; right: -10%; animation-delay: 3s; }
.blob-blue-2 { width: 300px; height: 300px; background: #2B52C8; bottom: -5%; left: 30%; animation-delay: 6s; }
@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -40px) scale(1.05); }
}

/* ===== FOOTER ===== */
.footer-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.social-links { display: flex; flex-direction: column; gap: 0.75rem; }
.social-links a { color: var(--primary); font-size: 0.9rem; font-weight: 600; transition: color 0.3s; }
.social-links a:hover { color: var(--gold); }
.footer-gold-bar { height: 6px; background: var(--gradient-gold); width: 100%; }

/* ===== LUCIDE ICON UTILITIES ===== */
/* display:inline-block overrides Tailwind preflight svg{display:block} */
svg.lucide { display: inline-block; vertical-align: middle; flex-shrink: 0; }
svg.lucide.icon-xs  { width: 14px; height: 14px; }
svg.lucide.icon-sm  { width: 16px; height: 16px; }
svg.lucide.icon-md  { width: 20px; height: 20px; }
svg.lucide.icon-lg  { width: 28px; height: 28px; }
svg.lucide.icon-xl  { width: 36px; height: 36px; }
svg.lucide.icon-2xl { width: 48px; height: 48px; }

/* ===== UTILITIES ===== */
.label-small--light { color: var(--gold-light); }
.bg-gradient-section { background: var(--gradient-section); }
.text-muted { color: var(--text-muted); }

/* ===== RESPONSIVE GLOBAL ===== */
@media (max-width: 768px) {
  .glass-nav { padding-left: 1rem !important; padding-right: 1rem !important; }
  .monogram { width: 38px; height: 38px; font-size: 0.8rem; border-radius: 10px; }
  .brand-text { font-size: 0.72rem; }
  .cta-primary, .cta-secondary { max-width: 320px; justify-content: center; text-align: center; }
  .footer-title { font-size: 1rem; margin-bottom: 1rem; }
  .footer-links a, .social-links a { font-size: 0.85rem; }
}

.credit-link { color: var(--gold); font-weight: 600; transition: color 0.2s; }
.credit-link:hover { color: var(--gold-light); }

@media (max-width: 480px) {
  .brand-text small { display: none; }
  .monogram { width: 36px; height: 36px; font-size: 0.75rem; }
  .blob-blue  { width: 320px; height: 320px; }
  .blob-gold  { width: 220px; height: 220px; }
  .blob-blue-2 { width: 180px; height: 180px; }
  .badge-blue, .badge-gold { font-size: 0.72rem; padding: 0.25rem 0.75rem; }
}
