/* ============================================
   Vision RH - Stylesheet LIGHT THEME
   Palette: Violet #8B00FF | Blanc #ffffff | Noir #111
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables Light ── */
:root {
  --primary: #9400D3;
  --primary-dark: #7300a3;
  --primary-light: #8000bb;
  --primary-glow: rgba(148,0,211,0.08);
  --primary-glow-strong: rgba(148,0,211,0.14);

  /* Remapping complet dark → light pour compatibilité styles inline */
  --black: #111111;
  --dark: #f7f7f7;          /* dark → gris très clair */
  --dark2: #efefef;         /* dark2 → gris clair */
  --grey: #f0f0f0;          /* grey → très clair */
  --grey2: #666666;         /* grey2 → gris texte lisible */

  /* Variables propres light */
  --light: #f7f7f7;
  --light2: #efefef;
  --white: #ffffff;
  --text: #111111;
  --text-muted: #555555;
  --text-light: #888888;
  --border: #e0e0e0;
  --border-strong: #cccccc;

  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-purple: 0 8px 32px rgba(139,0,255,0.18);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  padding-top: 70px; /* compensation navbar fixed */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  /* Force GPU layer pour iOS Safari - corrige position:fixed */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.99);
  box-shadow: var(--shadow);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img { height: 42px; width: auto; }
.nav-logo span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}
.nav-logo span em { color: var(--primary); font-style: normal; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--black); background: var(--grey); }
.nav-link.active { color: var(--primary); background: var(--primary-glow); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown-menu a:hover {
  background: var(--primary-glow);
  color: var(--primary);
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 1rem;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-light);
  transition: var(--transition);
  text-transform: uppercase;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 2rem 4rem;
  background: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 30%, rgba(139,0,255,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(139,0,255,0.04) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,0,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,0,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-glow);
  border: 1px solid rgba(139,0,255,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 {
  font-family: Cambria, 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--black);
}
.hero h1 .accent { color: var(--primary); }
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 550px;
  letter-spacing: 0.02em;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139,0,255,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── Section ── */
section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #c44dff);
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover {
  border-color: rgba(139,0,255,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-glow);
  border: 1px solid rgba(139,0,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Why Us ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.why-card {
  text-align: center;
  padding: 2rem;
  background: var(--light);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.why-card:hover {
  border-color: rgba(139,0,255,0.3);
  background: var(--primary-glow);
}
.why-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.why-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--black); }
.why-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Jobs Cards ── */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.job-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.job-card:hover {
  border-color: rgba(139,0,255,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-purple);
}
.job-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.job-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
}
.job-badge {
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(139,0,255,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.job-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.job-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.job-meta-item svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--primary); }
.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.job-deadline { font-size: 0.8rem; color: var(--text-light); }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--light);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.filter-select {
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--primary); }

/* ── Training Cards ── */
.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.training-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.training-card:hover {
  border-color: rgba(139,0,255,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-purple);
}
.training-icon {
  width: 48px; height: 48px;
  background: var(--primary-glow);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.training-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
}
.training-card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.training-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.training-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ── Page Hero ── */
.page-hero {
  padding: 130px 0 4rem;
  background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--black);
}
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ── Forms ── */
.form-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.form-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
label .req { color: var(--primary); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select,
textarea {
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,0,255,0.08);
  background: var(--white);
}
textarea { resize: vertical; min-height: 120px; }

.radio-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0.75rem 0;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
input[type="radio"], input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
}
.lang-table { width: 100%; border-collapse: collapse; }
.lang-table th {
  font-size: 0.78rem;
  color: var(--text-light);
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.lang-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.lang-table select { padding: 0.4rem 0.75rem; font-size: 0.85rem; }

/* File upload */
.file-input-wrapper {
  position: relative;
  border: 2px dashed rgba(139,0,255,0.3);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--light);
}
.file-input-wrapper:hover { border-color: var(--primary); background: var(--primary-glow); }
.file-input-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-label-text { font-size: 0.85rem; color: var(--text-light); pointer-events: none; }
.file-label-text strong { color: var(--primary); }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text p { color: var(--text-muted); margin-bottom: 1.25rem; }
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.about-image img { width: 100%; height: 400px; object-fit: cover; }
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(139,0,255,0.2);
  border-radius: var(--radius);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.value-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--primary-glow);
  border: 1.5px solid rgba(139,0,255,0.15);
  border-radius: var(--radius);
}
.value-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.value-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--black); }
.value-item p { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.contact-card:hover { border-color: rgba(139,0,255,0.3); box-shadow: var(--shadow-purple); }
.contact-icon {
  width: 44px; height: 44px;
  background: var(--primary-glow);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-detail h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.contact-detail p, .contact-detail a { color: var(--text); font-size: 0.95rem; }
.contact-detail a:hover { color: var(--primary); }

/* ── Footer ── */
footer {
  background: #111111;
  color: rgba(255,255,255,0.8);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 50px; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.9rem; max-width: 280px; line-height: 1.6; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}
.footer-contact-item a { color: rgba(255,255,255,0.55); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
}
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: rgba(255,255,255,0.6);
}
.social-link:hover { background: var(--primary); color: var(--white); }

/* ── Admin (sidebar reste sombre) ── */
.admin-body { background: #f4f4f6; min-height: 100vh; }
.admin-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 100vh;
  background: #111111;
  border-right: none;
  padding: 2rem 1rem;
  overflow-y: auto;
  z-index: 100;
}
.admin-sidebar .logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0 1rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.admin-sidebar .logo span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.admin-sidebar .logo em { color: var(--primary); font-style: normal; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
  margin-bottom: 0.25rem;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: var(--primary-glow-strong);
  color: var(--white);
}
.admin-nav-link.active { color: #c97eff; }
.admin-main {
  margin-left: 260px;
  padding: 2rem;
  min-height: 100vh;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--border);
}
.admin-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--black);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.stat-card .stat-label { color: var(--text-light); font-size: 0.85rem; margin-top: 0.5rem; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.data-table th {
  background: var(--light);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem;
  text-align: left;
  border-bottom: 1.5px solid var(--border);
}
.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--light); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-green { background: rgba(0,180,80,0.1); color: #007a3d; border: 1px solid rgba(0,180,80,0.25); }
.badge-yellow { background: rgba(200,140,0,0.1); color: #7a5300; border: 1px solid rgba(200,140,0,0.25); }
.badge-red { background: rgba(200,0,0,0.08); color: #c00; border: 1px solid rgba(200,0,0,0.2); }
.badge-purple { background: var(--primary-glow); color: var(--primary); border: 1px solid rgba(139,0,255,0.25); }

.action-btn {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  transition: var(--transition);
}
.action-btn-view { background: rgba(139,0,255,0.1); color: var(--primary); }
.action-btn-del { background: rgba(200,0,0,0.08); color: #c00; }
.action-btn:hover { filter: brightness(0.9); }

.admin-form {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* ── Popup / Modal ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.popup-overlay.active { display: flex; }
.popup-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-md);
  animation: popupIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popupIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.popup-icon { font-size: 3rem; margin-bottom: 1rem; text-align: center; }
.popup-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--black);
}
.popup-message { text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; }
.popup-actions { display: flex; gap: 0.75rem; justify-content: center; }
.popup-success .popup-title { color: #007a3d; }
.popup-error .popup-title { color: #c00; }
.popup-warning .popup-title { color: #7a5300; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--white);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text);
  box-shadow: var(--shadow-md);
  z-index: 9999;
  transform: translateX(150%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  max-width: 360px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: #007a3d; }
.toast.error { border-color: #c00; }

/* ── Login Admin ── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--light) 0%, #e8d5ff 100%);
  padding: 2rem;
}
.login-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}
.login-card .logo { text-align: center; margin-bottom: 2.5rem; }
.login-card .logo img { height: 60px; }

/* ── Transitions ── */
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Wrapper de page pour l'animation (jamais sur body directement) */
.page-wrapper {
  animation: fadeInSlide 0.5s ease forwards;
}
@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.page-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.page-link.active, .page-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ── Sections alternées ── */
.section-alt { background: var(--light); }
.section-accent {
  background: linear-gradient(135deg, var(--primary-glow) 0%, rgba(200,150,255,0.06) 100%);
  border-top: 1px solid rgba(139,0,255,0.1);
  border-bottom: 1px solid rgba(139,0,255,0.1);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-link { color: var(--text-muted); }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: var(--light);
    border: 1px solid var(--border);
    box-shadow: none;
    padding-left: 1rem;
  }
  .nav-toggle { display: flex; }
  .admin-sidebar { transform: translateX(-100%); transition: var(--transition); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .form-card { padding: 1.5rem; }
  .contact-grid { gap: 1.5rem; }
}

/* ── Overrides pour styles inline hardcodés ── */

/* Sections avec background dark en inline */
[style*="background:var(--dark)"],
[style*="background: var(--dark)"] { background: var(--light) !important; }

[style*="background:var(--dark2)"],
[style*="background: var(--dark2)"] { background: var(--light2) !important; }

/* Textes rgba(255,255,255,...) en inline → couleur sombre */
[style*="color:rgba(255,255,255,0.7)"] { color: var(--text-muted) !important; }
[style*="color:rgba(255,255,255,0.75)"] { color: var(--text-muted) !important; }
[style*="color:rgba(255,255,255,0.6)"] { color: var(--text-muted) !important; }
[style*="color:rgba(255,255,255,0.65)"] { color: var(--text-muted) !important; }
[style*="color:rgba(255,255,255,0.55)"] { color: var(--text-muted) !important; }
[style*="color:rgba(255,255,255,0.5)"] { color: var(--text-light) !important; }
[style*="color:rgba(255,255,255,0.4)"] { color: var(--text-light) !important; }
[style*="color:rgba(255,255,255,0.35)"] { color: var(--text-light) !important; }
[style*="color:rgba(255,255,255,0.85)"] { color: var(--text) !important; }

/* Borders rgba(255,255,255,...) → border visible */
[style*="border:1px solid rgba(255,255,255,0.08)"] { border-color: var(--border) !important; }
[style*="border:1px solid rgba(255,255,255,0.06)"] { border-color: var(--border) !important; }
[style*="border-top:1px solid rgba(255,255,255,0.06)"] { border-top-color: var(--border) !important; }
[style*="border-bottom:1px solid rgba(255,255,255,0.06)"] { border-bottom-color: var(--border) !important; }

/* Section bande CTA */
section[style*="border-top:1px solid rgba(139,0,255,0.2)"],
section[style*="border-bottom:1px solid rgba(139,0,255,0.2)"] {
  background: linear-gradient(135deg, rgba(139,0,255,0.04) 0%, rgba(200,150,255,0.04) 100%) !important;
}

/* Stat cards dans apropos */
div[style*="background:var(--dark2)"] {
  background: var(--white) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow) !important;
}

/* Band info formations */
div[style*="background:var(--primary-glow)"] {
  border-color: rgba(139,0,255,0.2) !important;
}

/* Textes ul dans service cards */
ul[style*="color:rgba(255,255,255,0.6)"] { color: var(--text-muted) !important; }

/* Admin candidature detail */
div[style*="background:var(--grey)"] { background: var(--light) !important; }
