/* ============================================
   SGEN ver-2 — COMMON STYLES
   PDDRCS Design System complet
   Poppins · Bleu #003DA5 · Jaune #F7D417 · Rouge #CE1126
   ============================================ */

/* ── Barre Tricolore RDC (h-1, PDDRCS) ────────────────────────── */
.drc-bar {
  background: linear-gradient(
    to right,
    #003DA5 0%,    #003DA5 33.33%,
    #F7D417 33.33%, #F7D417 66.66%,
    #CE1126 66.66%, #CE1126 100%
  );
}

/* Alias pour l'ancienne classe SGEN */
.tricolor-bar { background: linear-gradient(to right, #003DA5 33.33%, #F7D417 33.33% 66.66%, #CE1126 66.66%); height:4px; width:100%; position:fixed; top:0; left:0; z-index:100; }

/* ── Glassmorphism PDDRCS ──────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card-dark {
  background: rgba(0, 35, 102, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Alias SGEN glass-ultra → PDDRCS glass-card */
.glass-ultra {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(0, 35, 102, 0.06);
}
.glass-color {
  background: rgba(0, 35, 102, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.glass-red  { background: rgba(206,17,38,.55); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border:1px solid rgba(255,255,255,.2); }
.glass-gold { background: rgba(247,212,23,.12); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border:1px solid rgba(247,212,23,.35); }

/* ── Section Pattern Hero — PDDRCS ────────────────────────────── */
.section-pattern {
  background:
    linear-gradient(135deg, rgba(0, 35, 102, 0.95), rgba(0, 61, 165, 0.85)),
    url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Page hero secondaire (pages intérieures) */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 3rem;
  overflow: hidden;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,35,102,.95) 0%, rgba(0,61,165,.82) 100%);
  z-index: 1;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0; opacity: 0.25;
}
.page-hero-content {
  position: relative; z-index: 2;
  text-align: center; color: white;
  max-width: 800px;
}

/* ── Animations Scroll — PDDRCS (animate-in / visible) ─────────── */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Alias SGEN reveal/active → PDDRCS animate-in/visible */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.active, .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Délais cascade */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ── Footer Title Underline — PDDRCS ───────────────────────────── */
.footer-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #CE1126;
  margin-top: 8px;
  border-radius: 2px;
}

/* ── Typography Gradients ───────────────────────────────────────── */
.text-gradient-gold {
  background: linear-gradient(135deg, #F7D417 0%, #FFE97A 50%, #D4A800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-cyan {
  background: linear-gradient(135deg, #002366 0%, #003DA5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hover Premium (cartes PDDRCS) ─────────────────────────────── */
.hover-lift-premium {
  transition: all 0.3s ease;
}
.hover-lift-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -5px rgba(0, 35, 102, 0.12);
}

/* ── Blobs décoratifs (hero SGEN) ──────────────────────────────── */
.bg-mesh { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob-1  { position:absolute; top:-10%; left:-10%; width:50vw; height:50vw; background:rgba(26,91,196,.15); border-radius:50%; filter:blur(100px); animation:blob 12s infinite alternate; }
.blob-2  { position:absolute; top:40%; right:-20%; width:60vw; height:60vw; background:rgba(247,212,23,.1); border-radius:50%; filter:blur(120px); animation:blob 15s infinite alternate-reverse; }
.blob-3  { position:absolute; bottom:-20%; left:20%; width:50vw; height:50vw; background:rgba(0,35,102,.1); border-radius:50%; filter:blur(100px); animation:blob 10s infinite alternate; }

@keyframes blob {
  0%   { transform: translate(0px, 0px) scale(1); }
  33%  { transform: translate(30px, -50px) scale(1.1); }
  66%  { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}
@keyframes pulse-subtle {
  0%, 100% { opacity:1; transform:scale(1); }
  50%       { opacity:.8; transform:scale(1.05); }
}
.animate-pulse-subtle { animation: pulse-subtle 3s infinite; }
@keyframes float {
  0%, 100% { transform:translateY(0); }
  50%       { transform:translateY(-10px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* ── Formulaires ────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  background: #F9FAFB;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: #003DA5;
  box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
  background: white;
}
.form-input::placeholder { color: #9CA3AF; }
.form-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #1A1A2E;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
}
.form-required { color: #CE1126; font-weight: bold; }

/* ── Accordéon ──────────────────────────────────────────────────── */
.accordion-item {
  border-left: 4px solid #F7D417;
  margin-bottom: 0.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: white;
  border: 1px solid #E5E7EB;
  border-left: 4px solid #F7D417;
  transition: all 0.3s;
}
.accordion-item.open {
  background: white;
  box-shadow: 0 4px 16px rgba(0, 35, 102, 0.08);
}
.accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #003DA5;
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
  padding: 0 1.5rem;
  font-family: 'Poppins', sans-serif;
  color: #64748B;
  font-size: 0.95rem;
  line-height: 1.7;
}
.accordion-item.open .accordion-body { max-height: 600px; padding: 0 1.5rem 1.5rem; }
.accordion-chevron { transition: transform 0.3s; color: #CE1126; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }

/* ── Tableaux ────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 35, 102, 0.06);
}
.data-table thead { background: #003DA5; color: white; }
.data-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.data-table td {
  padding: 1rem 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  border-top: 1px solid #F3F4F6;
}
.data-table tbody tr:nth-child(even) { background: #F9FAFB; }
.data-table tbody tr:hover { background: #EEF2FF; }

/* ── Badges PDDRCS ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-blue   { background: #003DA5; color: white; }
.badge-cyan   { background: #1A5BC4; color: white; }
.badge-gold   { background: #F7D417; color: #002366; }
.badge-red    { background: #CE1126; color: white; }
.badge-green  { background: #27AE60; color: white; }
.badge-gray   { background: #8B95A5; color: white; }
.badge-orange { background: #E67E22; color: white; }
.badge-blue-soft    { background: rgba(0,61,165,.1);  color: #003DA5; }
.badge-cyan-soft    { background: rgba(26,91,196,.12); color: #1A5BC4; }
.badge-green-soft   { background: rgba(39,174,96,.12); color: #1E8449; }
.badge-gray-soft    { background: rgba(139,149,165,.15); color: #64748B; }
.badge-orange-soft  { background: rgba(230,126,34,.12); color: #B46015; }

/* ── Timeline ────────────────────────────────────────────────────── */
.timeline-wrap { position: relative; padding: 2rem 0; }
.timeline-wrap::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, #1A5BC4 10%, #1A5BC4 90%, transparent);
  transform: translateX(-50%);
}
@media (max-width: 768px) { .timeline-wrap::before { left: 20px; } }
.timeline-item { position: relative; width: 50%; padding: 1.5rem 2.5rem; }
.timeline-item.left  { margin-left: 0; }
.timeline-item.right { margin-left: 50%; }
.timeline-item .timeline-dot {
  position: absolute; top: 2rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #1A5BC4;
  border: 4px solid white;
  box-shadow: 0 0 0 3px rgba(26,91,196,.25);
  z-index: 2;
}
.timeline-item.left  .timeline-dot { right: -10px; }
.timeline-item.right .timeline-dot { left: -10px; }
@media (max-width: 768px) {
  .timeline-item, .timeline-item.left, .timeline-item.right {
    width: 100%; margin-left: 0; padding-left: 50px; padding-right: 0;
  }
  .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot { left: 10px; right: auto; }
}

/* ── Body ────────────────────────────────────────────────────────── */
body { background-color: #F9FAFB; font-family: 'Poppins', system-ui, sans-serif; }

/* ── Utility ─────────────────────────────────────────────────────── */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html { scroll-behavior: smooth; }
::selection { background: #003DA5; color: white; }
