/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1a2a3a; background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== VARIABLES ===== */
:root {
  --blue-dark: #0C2165;
  --blue-mid: #1D1DF5;
  --blue-nav: #08439F;
  --qse-color: #8CD0F8;
  --lean-color: #FCD553;
  --mgmt-color: #FD7E27;
  --devperso-color: #08439F;
  --text-dark: #1a2a3a;
  --text-gray: #5a6a7a;
  --bg-light: #f4f8fc;
  --border: #e2eaf4;
  --shadow: 0 4px 24px rgba(8,67,159,0.10);
  --shadow-lg: 0 8px 48px rgba(8,67,159,0.16);
  --radius: 14px;
  --radius-lg: 24px;
}

/* ===== PAGES ===== */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }
.admin-page { min-height: 100vh; background: #f0f4f8; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem; height: 72px;
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo { display: flex; align-items: center; gap: .75rem; }
.logo-badge {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #0C2165, #08439F);
  display: flex; align-items: center; justify-content: center;
  gap: 3px; color: #fff; font-size: .7rem;
}
.logo-badge.small { width: 36px; height: 36px; font-size: .6rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-size: 1.2rem; font-weight: 800; color: #0C2165; letter-spacing: -.5px; }
.logo-sub { font-size: .6rem; font-weight: 700; color: #08439F; letter-spacing: 2px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav-link {
  padding: .5rem 1rem; border-radius: 8px; font-size: .9rem; font-weight: 500;
  color: var(--text-gray); transition: all .2s; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--blue-nav); background: rgba(8,67,159,0.08); }
.nav-cta {
  padding: .55rem 1.4rem; background: var(--blue-nav); color: #fff;
  border: none; border-radius: 8px; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.nav-cta:hover { background: #0C2165; transform: translateY(-1px); box-shadow: var(--shadow); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 2rem 4rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f4f8fc 0%, #e8f0fb 60%, #dceeff 100%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(8,67,159,0.07) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 600px; flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(8,67,159,0.1); color: var(--blue-nav);
  padding: .4rem 1rem; border-radius: 50px; font-size: .8rem; font-weight: 600;
  margin-bottom: 1.5rem; border: 1px solid rgba(8,67,159,0.15);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800;
  color: var(--blue-dark); line-height: 1.2; margin-bottom: 1.5rem;
}
.hero-highlight { color: var(--blue-nav); }
.hero-subtitle { font-size: 1.05rem; color: var(--text-gray); line-height: 1.7; margin-bottom: 2.5rem; max-width: 520px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--blue-dark); }
.stat-label { font-size: .78rem; color: var(--text-gray); font-weight: 500; }
.hero-visual {
  position: relative; width: 400px; height: 400px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-circle {
  width: 200px; height: 200px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-nav));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px rgba(8,67,159,0.3);
  animation: pulse-circle 3s ease-in-out infinite;
}
.hero-circle-inner { text-align: center; color: #fff; }
.hero-circle-inner i { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.hero-circle-inner span { font-size: .85rem; font-weight: 600; line-height: 1.3; }
@keyframes pulse-circle {
  0%, 100% { box-shadow: 0 20px 60px rgba(8,67,159,0.3); }
  50% { box-shadow: 0 20px 80px rgba(8,67,159,0.5); }
}
.hero-card-float {
  position: absolute; background: #fff; border-radius: 12px;
  padding: .75rem 1.2rem; display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .85rem; box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}
.hero-card-float i { font-size: 1.2rem; }
.card-qse { top: 30px; left: 10px; color: #1a2a3a; animation-delay: 0s; }
.card-qse i { color: #8CD0F8; }
.card-lean { top: 60px; right: 10px; color: #1a2a3a; animation-delay: .8s; }
.card-lean i { color: #FCD553; }
.card-mgmt { bottom: 80px; left: 10px; color: #fff; background: #FD7E27; animation-delay: 1.4s; }
.card-devperso { bottom: 40px; right: 10px; color: #fff; background: #08439F; animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--blue-nav); color: #fff;
  border: 2px solid var(--blue-nav); border-radius: 10px;
  padding: .75rem 1.8rem; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.btn-primary:hover { background: #0C2165; border-color: #0C2165; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary.large { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-outline {
  display: inline-flex; align-items: center; gap: .6rem;
  background: transparent; color: var(--blue-nav);
  border: 2px solid var(--blue-nav); border-radius: 10px;
  padding: .75rem 1.8rem; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.btn-outline:hover { background: var(--blue-nav); color: #fff; transform: translateY(-2px); }
.btn-white {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #fff; color: var(--blue-nav);
  border: none; border-radius: 10px;
  padding: .9rem 2rem; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===== SECTIONS ===== */
.section { padding: 6rem 2rem; }
.container { max-width: 1280px; margin: 0 auto; }
.section-label {
  display: inline-block; text-transform: uppercase; letter-spacing: 2px;
  font-size: .75rem; font-weight: 700; color: var(--blue-nav);
  background: rgba(8,67,159,0.08); padding: .35rem 1rem; border-radius: 50px;
  margin-bottom: 1rem;
}
.section-label.white { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.2); }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--blue-dark); margin-bottom: 1.5rem; }
.text-blue { color: var(--blue-nav); }
.section-intro { font-size: 1.05rem; color: var(--text-gray); line-height: 1.8; max-width: 800px; margin-bottom: 3rem; }
.cta-center { text-align: center; margin-top: 3rem; }

/* ===== ABOUT ===== */
.about-section { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text p { color: var(--text-gray); line-height: 1.8; margin-bottom: 1.2rem; font-size: .97rem; }
.about-tagline { font-size: 1.05rem !important; color: var(--blue-dark) !important; }
.about-visual { display: flex; flex-direction: column; gap: 1.2rem; }
.about-card {
  background: var(--bg-light); border-radius: var(--radius); padding: 1.5rem;
  border-left: 4px solid var(--blue-nav); transition: transform .2s;
}
.about-card:hover { transform: translateX(4px); }
.about-icon { font-size: 1.5rem; color: var(--blue-nav); margin-bottom: .6rem; }
.about-card h3 { font-size: 1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .4rem; }
.about-card p { font-size: .88rem; color: var(--text-gray); }

/* ===== EXPERTISE ===== */
.expertise-section { background: var(--bg-light); }
.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.expertise-card {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem;
  border-top: 4px solid var(--accent); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.expertise-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.expertise-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.3rem; color: #fff;
  opacity: .85;
}
.expertise-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .75rem; }
.expertise-card p { font-size: .9rem; color: var(--text-gray); line-height: 1.7; }

/* ===== SERVICES ===== */
.services-section { background: #fff; }
.services-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.format-card {
  background: var(--bg-light); border-radius: var(--radius-lg); padding: 2.5rem;
  border: 2px solid var(--border); transition: all .2s;
}
.format-card:hover { border-color: var(--blue-nav); box-shadow: var(--shadow); }
.format-icon { font-size: 2rem; color: var(--blue-nav); margin-bottom: 1rem; }
.format-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .75rem; }
.format-card p { font-size: .92rem; color: var(--text-gray); line-height: 1.7; }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, #0C2165, #08439F);
  padding: 5rem 2rem; text-align: center; color: #fff;
}
.cta-band h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-band p { font-size: 1.05rem; opacity: .85; margin-bottom: 2.5rem; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 9rem 2rem 5rem; color: #fff;
  background: linear-gradient(135deg, #0C2165 0%, #08439F 100%);
  text-align: center;
}
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.page-hero h1 span { opacity: .85; }
.page-hero p { font-size: 1.05rem; opacity: .8; max-width: 600px; margin: 0 auto; }
.formations-hero { background: linear-gradient(135deg, #0C2165 0%, #1D1DF5 100%); }
.contact-hero { background: linear-gradient(135deg, #0C2165 0%, #08439F 100%); }

/* ===== FORMATIONS SECTION ===== */
.formations-section { background: #fff; padding: 4rem 2rem; }
.formations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.formation-bloc {
  background: var(--bloc-color); color: var(--text-color, #1a2a3a);
  border-radius: var(--radius-lg); padding: 2.5rem;
  cursor: pointer; transition: all .25s; position: relative; overflow: hidden;
}
.formation-bloc::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background .25s;
}
.formation-bloc:hover::before { background: rgba(0,0,0,0.07); }
.formation-bloc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bloc-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.formation-bloc h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.3; }
.bloc-count { font-size: .85rem; font-weight: 600; opacity: .75; margin-bottom: 1.5rem; }
.bloc-arrow { font-size: 1.2rem; opacity: .6; transition: transform .2s; }
.formation-bloc:hover .bloc-arrow { transform: translateX(6px); opacity: 1; }

/* ===== CATEGORY VIEW ===== */
.category-view { padding: 3rem 2rem; }
.hidden { display: none !important; }
.back-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg-light); color: var(--blue-nav); border: none;
  padding: .6rem 1.2rem; border-radius: 8px; font-size: .9rem; font-weight: 600;
  cursor: pointer; margin-bottom: 2rem; transition: all .2s;
}
.back-btn:hover { background: var(--blue-nav); color: #fff; }
.category-header {
  padding: 2rem; border-radius: var(--radius-lg); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
}
.category-header h2 { font-size: 1.6rem; font-weight: 800; }
.category-header .cat-icon { font-size: 2rem; }
.formations-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.formation-card {
  background: #fff; border-radius: var(--radius); border: 2px solid var(--border);
  padding: 1.5rem; cursor: pointer; transition: all .2s;
}
.formation-card:hover { border-color: var(--card-accent, var(--blue-nav)); box-shadow: var(--shadow); transform: translateY(-2px); }
.formation-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.formation-card h3 { font-size: 1rem; font-weight: 700; color: var(--blue-dark); line-height: 1.3; flex: 1; }
.formation-duree {
  background: var(--card-accent, var(--blue-nav)); color: #fff;
  padding: .25rem .7rem; border-radius: 50px; font-size: .75rem; font-weight: 700;
  white-space: nowrap;
}
.formation-card-arrow { color: var(--card-accent, var(--blue-nav)); font-size: .9rem; margin-top: .25rem; }

/* ===== FORMATION DETAIL ===== */
.formation-detail { padding: 3rem 2rem; }
.detail-hero {
  padding: 2.5rem; border-radius: var(--radius-lg); margin-bottom: 2rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.detail-hero h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: .5rem; }
.detail-hero .detail-category { font-size: .85rem; font-weight: 600; opacity: .75; }
.detail-duree-badge {
  background: rgba(255,255,255,0.25); padding: .6rem 1.5rem; border-radius: 50px;
  font-size: 1rem; font-weight: 700; text-align: center; white-space: nowrap;
}
.detail-body { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.detail-sidebar { display: flex; flex-direction: column; gap: 1.2rem; }
.detail-block { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }
.detail-block h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--blue-nav); margin-bottom: 1rem; }
.detail-block ul { display: flex; flex-direction: column; gap: .5rem; }
.detail-block li { font-size: .9rem; color: var(--text-gray); display: flex; align-items: flex-start; gap: .5rem; line-height: 1.5; }
.detail-block li::before { content: '✓'; color: var(--blue-nav); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.detail-block p { font-size: .9rem; color: var(--text-gray); line-height: 1.7; }
.detail-programme { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }
.detail-programme h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--blue-nav); margin-bottom: 1rem; }
.programme-module { margin-bottom: 1.5rem; }
.programme-module h4 { font-size: .95rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .6rem; padding-bottom: .4rem; border-bottom: 2px solid var(--border); }
.programme-module ul { display: flex; flex-direction: column; gap: .4rem; padding-left: .5rem; }
.programme-module li { font-size: .88rem; color: var(--text-gray); display: flex; align-items: flex-start; gap: .5rem; line-height: 1.5; }
.programme-module li::before { content: '•'; color: var(--blue-nav); font-weight: 900; flex-shrink: 0; }
.detail-cta { margin-top: 2rem; padding: 2rem; background: var(--bg-light); border-radius: var(--radius-lg); text-align: center; }
.detail-cta p { color: var(--text-gray); margin-bottom: 1rem; }

/* ===== CONTACT ===== */
.contact-section { background: var(--bg-light); }
.contact-container { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.contact-info { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.contact-info h3 { font-size: 1.2rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(8,67,159,0.1); color: var(--blue-nav);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: .85rem; color: var(--text-gray); font-weight: 600; margin-bottom: .2rem; }
.contact-item span { font-size: .95rem; color: var(--blue-dark); font-weight: 500; }
.qualiopi-badge {
  display: flex; align-items: center; gap: 1rem; margin-top: 2rem;
  background: rgba(8,67,159,0.06); padding: 1rem; border-radius: 10px;
  border: 1px solid rgba(8,67,159,0.15);
}
.qualiopi-badge i { font-size: 1.8rem; color: #08439F; }
.qualiopi-badge strong { display: block; color: var(--blue-dark); font-weight: 700; }
.qualiopi-badge span { font-size: .82rem; color: var(--text-gray); }
.contact-form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); }
.contact-form-wrap h3 { font-size: 1.2rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 1.5rem; }

/* ===== FORM ===== */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group.half { max-width: 50%; }
.form-label { display: block; font-size: .88rem; font-weight: 600; color: var(--blue-dark); margin-bottom: .5rem; }
.required { color: #e53e3e; }
.form-input {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: .95rem; font-family: inherit;
  color: var(--text-dark); background: #fff; transition: border-color .2s;
  outline: none;
}
.form-input:focus { border-color: var(--blue-nav); box-shadow: 0 0 0 3px rgba(8,67,159,0.1); }
.form-textarea { resize: vertical; min-height: 120px; }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.radio-option { display: flex; align-items: center; gap: .65rem; cursor: pointer; font-size: .9rem; }
.radio-option input[type="radio"] { display: none; }
.radio-custom {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border);
  flex-shrink: 0; transition: all .2s; position: relative;
}
.radio-option input[type="radio"]:checked + .radio-custom {
  border-color: var(--blue-nav); background: var(--blue-nav);
}
.radio-option input[type="radio"]:checked + .radio-custom::after {
  content: ''; position: absolute; inset: 3px;
  background: #fff; border-radius: 50%;
}
.submit-btn { width: 100%; justify-content: center; padding: .9rem; font-size: 1rem; margin-top: .5rem; border: none; }
.form-notif {
  padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem;
  font-size: .9rem; font-weight: 500;
}
.form-notif.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-notif.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.password-wrap { position: relative; }
.toggle-pwd {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-gray); cursor: pointer; font-size: .9rem;
}

/* ===== FOOTER ===== */
.footer { background: #0a1628; color: rgba(255,255,255,0.75); padding: 4rem 2rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-brand .logo-main { color: #fff; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.6); }
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-bottom: .5rem; }
.footer-tagline { font-size: .8rem !important; opacity: .5; }
.footer h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer ul { display: flex; flex-direction: column; gap: .6rem; }
.footer a { font-size: .88rem; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-contact p { font-size: .88rem; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.footer-contact i { color: var(--blue-nav); width: 16px; }
.qualiopi-small {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,0.08); padding: .4rem .9rem; border-radius: 50px;
  font-size: .8rem; font-weight: 600; margin-top: .5rem; color: rgba(255,255,255,0.8);
}
.qualiopi-small i { color: #8CD0F8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem;
}
.admin-dot {
  width: 14px; height: 14px; border-radius: 50%; background: #22c55e;
  cursor: pointer; transition: all .2s; box-shadow: 0 0 8px rgba(34,197,94,0.5);
}
.admin-dot:hover { transform: scale(1.3); box-shadow: 0 0 16px rgba(34,197,94,0.7); }

/* ===== ADMIN LOGIN ===== */
.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0C2165, #08439F);
  padding: 2rem;
}
.admin-login-card {
  background: #fff; border-radius: var(--radius-lg); padding: 3rem;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); text-align: center;
}
.admin-logo {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, #0C2165, #08439F);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff; margin: 0 auto 1.5rem;
}
.admin-login-card h2 { font-size: 1.5rem; font-weight: 800; color: var(--blue-dark); margin-bottom: .25rem; }
.admin-login-card > p { color: var(--text-gray); font-size: .9rem; margin-bottom: 2rem; }
.login-error { background: #f8d7da; color: #721c24; padding: .8rem; border-radius: 8px; margin-bottom: 1rem; font-size: .88rem; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.5rem; font-size: .88rem; color: var(--blue-nav); }

/* ===== ADMIN DASHBOARD ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar-logo { display: flex; align-items: center; gap: .75rem; padding: 1.5rem; border-bottom: 1px solid var(--border); }
.sidebar-logo i { font-size: 1.5rem; color: var(--blue-nav); }
.sidebar-logo .logo-main { font-size: 1.1rem; font-weight: 800; color: var(--blue-dark); }
.sidebar-logo .logo-sub { font-size: .65rem; color: var(--text-gray); letter-spacing: 1px; }
.sidebar-nav { flex: 1; padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: .4rem; }
.sidebar-link {
  display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem;
  border-radius: 10px; font-size: .9rem; font-weight: 500; color: var(--text-gray);
  transition: all .2s; cursor: pointer; border: none; background: none;
}
.sidebar-link:hover { background: var(--bg-light); color: var(--blue-nav); }
.sidebar-link.active { background: rgba(8,67,159,0.1); color: var(--blue-nav); font-weight: 700; }
.sidebar-link .badge {
  margin-left: auto; background: #e53e3e; color: #fff;
  border-radius: 50px; padding: .15rem .5rem; font-size: .72rem; font-weight: 700;
  min-width: 20px; text-align: center;
}
.sidebar-link .badge:empty, .sidebar-link .badge[data-count="0"] { display: none; }
.sidebar-footer { padding: 1rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .75rem; }
.btn-logout {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: #f8d7da; color: #721c24; border: none; border-radius: 8px;
  padding: .65rem; font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-logout:hover { background: #f5c6cb; }
.sidebar-site-link { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .85rem; color: var(--text-gray); }
.admin-main { flex: 1; padding: 2rem; overflow-y: auto; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.admin-header h1 { font-size: 1.6rem; font-weight: 800; color: var(--blue-dark); }
.admin-header p { color: var(--text-gray); font-size: .88rem; }
.admin-header-actions { display: flex; align-items: center; gap: 1rem; }
.live-indicator { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: #22c55e; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.btn-refresh {
  display: flex; align-items: center; gap: .4rem;
  background: var(--bg-light); color: var(--blue-nav); border: 1px solid var(--border);
  padding: .55rem 1rem; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.btn-refresh:hover { background: var(--blue-nav); color: #fff; }
.stats-row { display: flex; gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  display: flex; align-items: center; gap: 1rem; background: #fff;
  border-radius: var(--radius); padding: 1.25rem 1.5rem; border: 1px solid var(--border);
  flex: 1;
}
.stat-card i { font-size: 1.5rem; color: var(--blue-nav); }
.stat-card.new i { color: #e53e3e; }
.stat-card .stat-num { font-size: 1.5rem; font-weight: 800; color: var(--blue-dark); display: block; }
.stat-card .stat-label { font-size: .8rem; color: var(--text-gray); }
.messages-list { display: flex; flex-direction: column; gap: 1rem; }
.message-card {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--border); transition: box-shadow .2s;
}
.message-card.unread { border-left: 4px solid var(--blue-nav); background: rgba(8,67,159,0.02); }
.message-card:hover { box-shadow: var(--shadow); }
.message-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.message-meta { display: flex; flex-direction: column; gap: .25rem; }
.message-name { font-size: 1rem; font-weight: 700; color: var(--blue-dark); }
.message-motif { display: inline-block; background: rgba(8,67,159,0.1); color: var(--blue-nav); padding: .2rem .7rem; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.message-date { font-size: .8rem; color: var(--text-gray); }
.message-actions { display: flex; gap: .5rem; }
.btn-icon {
  width: 34px; height: 34px; border: none; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: all .2s;
}
.btn-read { background: #d4edda; color: #155724; }
.btn-read:hover { background: #155724; color: #fff; }
.btn-del { background: #f8d7da; color: #721c24; }
.btn-del:hover { background: #721c24; color: #fff; }
.message-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem; margin-bottom: .75rem; }
.message-field { font-size: .85rem; }
.message-field label { color: var(--text-gray); font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.message-field span { display: block; color: var(--blue-dark); }
.message-demande { font-size: .9rem; color: var(--text-gray); background: var(--bg-light); padding: .75rem; border-radius: 8px; line-height: 1.6; }
.loading { text-align: center; padding: 3rem; color: var(--text-gray); font-size: .95rem; }
.no-messages { text-align: center; padding: 4rem 2rem; color: var(--text-gray); }
.no-messages i { font-size: 3rem; color: var(--border); margin-bottom: 1rem; display: block; }

/* ===== SETTINGS ===== */
.settings-form { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.settings-section-title { font-size: 1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); grid-column: 1/-1; }
.settings-actions { grid-column: 1/-1; display: flex; gap: 1rem; margin-top: .5rem; }
.btn-save { background: var(--blue-nav); color: #fff; border: none; padding: .75rem 2rem; border-radius: 8px; font-size: .95rem; font-weight: 600; cursor: pointer; }
.btn-save:hover { background: #0C2165; }
.save-notif { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: #155724; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding: 7rem 2rem 4rem; }
  .hero-content { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 300px; height: 300px; }
  .hero-circle { width: 150px; height: 150px; }
  .about-grid, .expertise-grid, .formations-grid { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 1rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-toggle { display: flex; }
  .hero-visual { display: none; }
  .services-formats { grid-template-columns: 1fr; }
  .contact-container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .radio-grid { grid-template-columns: 1fr; }
  .form-group.half { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 220px; }
  .settings-grid { grid-template-columns: 1fr; }
  .formations-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .sidebar-nav { flex-direction: row; padding: .75rem; }
}
