/* ===== VARIABLES ===== */
:root {
  --blue: #1a6fc4;
  --blue-dark: #0f4f96;
  --blue-light: #3b8fe8;
  --teal: #00b4b4;
  --teal-light: #e0f7f7;
  --white: #ffffff;
  --off-white: #f5f8fc;
  --text: #1a1a2e;
  --text-light: #5a6680;
  --border: #dce6f5;
  --shadow: 0 4px 24px rgba(26, 111, 196, 0.10);
  --shadow-lg: 0 12px 48px rgba(26, 111, 196, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--text);
  color: #aab2c8;
  font-size: 0.78rem;
  padding: 7px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 28px;
}
.topbar-link {
  color: #aab2c8;
  transition: color .2s;
}
.topbar-link:hover { color: var(--white); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 2px 12px rgba(26,111,196,.07);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 28px rgba(26,111,196,.13); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: grid; place-items: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: white;
  box-shadow: 0 4px 14px rgba(26,111,196,.3);
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.1;
}
.brand-name strong { color: var(--blue); }
.brand-tagline { font-size: 0.68rem; color: var(--text-light); font-style: italic; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all .2s;
}
.nav-links a:hover { background: var(--off-white); color: var(--blue); }
.btn-discord {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #5865F2;
  color: white !important;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(88,101,242,.3);
}
.btn-discord:hover { background: #4752c4; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(88,101,242,.4); }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ===== HERO ===== */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-light);
  color: var(--teal);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(0,180,180,.2);
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 18px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: white;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(26,111,196,.3);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,111,196,.4); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--border);
  transition: all .2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--blue); background: var(--off-white); }

/* HERO MOSAIC */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
}
.mosaic-1 { grid-row: 1 / 3; border-radius: var(--radius); overflow: hidden; }
.mosaic-2 { border-radius: var(--radius); overflow: hidden; }
.mosaic-3 { border-radius: var(--radius); overflow: hidden; }
.mosaic-img { position: relative; background: var(--off-white); overflow: hidden; }
.mosaic-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic-img:hover img { transform: scale(1.04); }
.mosaic-img.img-placeholder img { display: none; }
.placeholder-icon {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--off-white), var(--border));
}
.img-placeholder .placeholder-icon { display: flex; }

/* ===== STATS ===== */
.stats {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 56px 24px;
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-card {
  text-align: center;
  color: white;
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,.15);
  animation: countUp .6s ease both;
}
.stat-card:last-child { border-right: none; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 0.9rem;
  opacity: .85;
  line-height: 1.4;
}

/* ===== TEMOIGNAGES ===== */
.temoignages {
  padding: 80px 24px;
  background: var(--off-white);
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal);
  background: var(--teal-light);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--text);
}
.temoignages-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.temoignage-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  transition: all .25s;
}
.temoignage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.temoignage-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: grid; place-items: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
}
.temoignage-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
}
.temoignage-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-light);
  flex: 1;
}
.temoignage-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* ===== SERVICES ===== */
.services {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all .25s;
}
.service-card:hover { transform: translateY(-3px); }
.service-mail {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(26,111,196,.25);
}
.service-pronote {
  background: linear-gradient(135deg, #0f5e5e 0%, var(--teal) 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(0,180,180,.25);
}
.service-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: rgba(255,255,255,.15);
  border-radius: 14px;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.service-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-content p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: .88;
  margin-bottom: 18px;
}
.service-content a { color: rgba(255,255,255,.7); font-size: 0.85rem; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  color: white !important;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background .2s;
  border: 1px solid rgba(255,255,255,.25);
}
.service-link:hover { background: rgba(255,255,255,.28); }

/* ===== ETABLISSEMENTS APERCU ===== */
.etablissements-apercu {
  padding: 80px 24px;
  background: var(--off-white);
}
.etab-grid {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.etab-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.etab-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}
.etab-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.etab-card:hover::before { transform: scaleX(1); }
.etab-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal);
}
.etab-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.etab-ville { font-size: 0.85rem; color: var(--text-light); }
.etab-arrow {
  margin-top: auto;
  font-size: 1.1rem;
  color: var(--blue);
  font-weight: 700;
}
.etab-more { text-align: center; }

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: #c0c8dc;
  padding: 60px 24px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand .brand-icon {
  background: linear-gradient(135deg, var(--blue-light), var(--teal));
}
.footer-brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  color: white;
}
.footer-brand-name strong { color: var(--teal); }
.footer-brand-tag { font-size: 0.72rem; color: #7a869e; font-style: italic; margin-top: 3px; }
.footer-links {
  display: flex;
  gap: 48px;
  justify-content: flex-end;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: white;
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 0.88rem;
  color: #7a869e;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col a::before { content: '›'; color: var(--teal); font-weight: 700; }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0;
  font-size: 0.8rem;
  color: #4a5568;
  text-align: center;
}

/* ===== ANIMATIONS ===== */
@keyframes countUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-mosaic { max-height: 320px; }
  .services { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-links { display: none; }
  .btn-discord { display: none; }
  .nav-burger { display: flex; }
  .topbar-inner { gap: 14px; font-size: .72rem; }
}
