
/* ── ACCESSIBILITE ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── BARRE D'ANNONCE ── */
.annonce-bar {
  width: 100%; background: var(--bg-elevated);
  border-bottom: 1px solid rgba(26,63,255,0.3);
  padding: .55rem 2rem;
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; position: relative; z-index: 1000;
}
.annonce-content {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: center;
}
.annonce-icon { font-size: 1rem; }
.annonce-texte {
  color: var(--text-secondary); font-size: .85rem;
  font-family: 'DM Sans', sans-serif;
}
.annonce-btn {
  background: #1a3fff; color: #fff;
  padding: .3rem .9rem; border-radius: 100px;
  font-size: .8rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.annonce-btn:hover { background: #0d2fd4; }
.annonce-close {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-secondary);
  font-size: 1rem; cursor: pointer; padding: .2rem .4rem; line-height: 1;
  transition: color .2s;
}
.annonce-close:hover { color: var(--text); }
@media (max-width: 768px) {
  .annonce-bar { padding: .5rem 2.5rem .5rem 1rem; }
  .annonce-texte { font-size: .78rem; }
}

/* Note : le hero (haut de chaque page) et le footer restent volontairement toujours sombres
   dans les deux modes -- c'est la signature visuelle forte du site. Seuls le corps de page,
   les sections, la nav, les cartes et les formulaires suivent le mode clair/sombre. */
:root {
  --bg: #0a0f2c;
  --bg-elevated: #0d1535;
  --bg-alt-tint: rgba(255,255,255,0.02);
  --bg-alt-solid: #0f1430;
  --text: #fff;
  --text-secondary: #8892b0;
  --text-on-accent: #0a0f2c;
  --accent: #00d4ff;
  --brand: #1a3fff;
  --brand-hover: #0d2fd4;
  --brand-light: #7b9fff;
  --amber: #fbbf24;
  --border-soft: rgba(255,255,255,0.1);
  --border-softer: rgba(255,255,255,0.06);
  --scheme: dark;
}
[data-theme="light"] {
  --bg: #ffffff;
  --bg-elevated: #f5f7fb;
  --bg-alt-tint: rgba(10,15,44,0.03);
  --bg-alt-solid: #f8f8f9;
  --text: #14182b;
  --text-secondary: #5b6478;
  --text-on-accent: #ffffff;
  --accent: #0891b2;
  --brand: #1a3fff;
  --brand-hover: #0d2fd4;
  --brand-light: #2f4bc7;
  --amber: #a5670a;
  --border-soft: rgba(10,15,44,0.22);
  --border-softer: rgba(10,15,44,0.16);
  --scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { width: 100%; overflow-x: hidden; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); }

/* ── ANIMATIONS (scroll-reveal + transition de page) ──
   Garde-fous : le contenu est TOUJOURS visible par defaut. L'opacite 0 ne
   s'applique que si le JS a confirme etre pret (classe js-reveal-ready sur
   body) ET seulement pendant quelques secondes max (filet de securite JS). */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageFadeIn .35s ease; }
body.page-leaving { opacity: 0; transition: opacity .18s ease; }

@keyframes revealIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
body.js-reveal-ready .reveal { opacity: 0; transform: translateY(24px); }
/* opacity/transform en dur = etat garanti, meme si l'animation ne joue pas pour une raison quelconque */
body.js-reveal-ready .reveal.revealed { opacity: 1; transform: translateY(0); animation: revealIn .7s cubic-bezier(.16,.84,.44,1); }

/* Selects : suit le theme actif, la popup native des <option> doit suivre (sinon texte illisible) */
select { color-scheme: var(--scheme); }
select option { background: var(--bg-elevated); color: var(--text); }

/* ── NAV ── */
nav {
  position: fixed; top: var(--ann-height, 0px); left: 0; right: 0; z-index: 200;
  background: rgba(10,15,44,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 72px;
}
.logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem; color: #fff; letter-spacing: -1px; }
.logo span { color: #00d4ff; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { color: #8892b0; text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: linear-gradient(135deg, #1a3fff, #00d4ff); color: #0a0f2c; padding: .6rem 1.5rem; border-radius: 7px; font-size: .9rem; font-weight: 700; border: none; cursor: pointer; font-family: "DM Sans", sans-serif; transition: opacity .2s, transform .2s; display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.nav-cta:hover { opacity: .88; transform: translateY(-1px); background: #00d4ff; color: #0a0f2c; }

/* ── BASCULE CLAIR / SOMBRE ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; cursor: pointer; flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.theme-toggle svg { display: none; }
.theme-toggle .theme-toggle-sun { display: block; }
[data-theme="light"] .theme-toggle .theme-toggle-sun { display: none; }
[data-theme="light"] .theme-toggle .theme-toggle-moon { display: block; }
#theme-toggle-mobile { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); width: 36px; height: 36px; }

/* ── DROPDOWN NAV ── */
.logo-img { display:flex; align-items:center; text-decoration:none; }
.has-dropdown { position: relative; }
.has-dropdown::after { content: ''; position: absolute; bottom: -10px; left: 0; right: 0; height: 10px; }
.has-dropdown > a { cursor: pointer; display:flex; align-items:center; gap:.3rem; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #0d1535;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: .5rem 0;
  list-style: none;
  min-width: 270px;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  z-index: 500;
padding-top: 12px; }
.has-dropdown:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown li a {
  display: block; padding: .55rem 1.2rem;
  color: #8892b0 !important; font-size: .85rem !important;
  font-weight: 500 !important;
  transition: all .15s; white-space: nowrap;
  text-decoration: none;
}
.dropdown li a:hover { color: #fff !important; background: rgba(26,63,255,0.15); padding-left: 1.5rem; }
.dropdown-label {
  display: block; padding: .5rem 1.2rem .25rem;
  font-size: .68rem; font-weight: 700; letter-spacing: 2px;
  color: #00d4ff; text-transform: uppercase; pointer-events: none;
}
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.07); margin: .4rem 0; display:block; }

/* ── NAV EN MODE CLAIR : fond blanc, texte bleu (le reste du site — hero, footer — reste sombre en permanence) ── */
[data-theme="light"] nav { background: rgba(255,255,255,0.95); border-bottom: 1px solid rgba(10,15,44,0.08); }
[data-theme="light"] .logo { color: var(--brand); }
[data-theme="light"] .logo span { color: var(--accent); }
[data-theme="light"] .logo-img img { filter: brightness(0) saturate(100%); }
[data-theme="light"] .nav-links a { color: #4b5563; }
[data-theme="light"] .nav-links a:hover { color: var(--brand); }
[data-theme="light"] .theme-toggle, [data-theme="light"] #theme-toggle-mobile { background: rgba(10,15,44,0.06); border-color: rgba(10,15,44,0.12); color: var(--brand); }
[data-theme="light"] .theme-toggle:hover { background: rgba(10,15,44,0.1); }
[data-theme="light"] .hamburger-btn span { background: var(--brand); }
[data-theme="light"] .dropdown { background: #fff; border: 1px solid rgba(10,15,44,0.1); box-shadow: 0 20px 60px rgba(10,15,44,0.15); }
[data-theme="light"] .dropdown li a { color: #4b5563 !important; }
[data-theme="light"] .dropdown li a:hover { color: var(--brand) !important; background: rgba(26,63,255,0.08); }
[data-theme="light"] .dropdown-label { color: var(--brand); }
[data-theme="light"] .dropdown-divider { background: rgba(10,15,44,0.08); }
[data-theme="light"] .nav-mobile-menu { background: #fff; border-left: 1px solid rgba(10,15,44,0.08); }
[data-theme="light"] .nav-mobile-header { border-bottom: 1px solid rgba(10,15,44,0.08); }
[data-theme="light"] .nav-mobile-close { background: rgba(10,15,44,0.06); color: var(--brand); }
[data-theme="light"] .nav-mob-link { color: #1f2937; border-bottom: 1px solid rgba(10,15,44,0.05); }
[data-theme="light"] .nav-mob-link:hover { background: rgba(26,63,255,0.08); color: var(--brand); }
[data-theme="light"] .nav-mob-group { border-bottom: 1px solid rgba(10,15,44,0.05); }
[data-theme="light"] .nav-mob-group-title { color: var(--brand); }
[data-theme="light"] .nav-mob-sub { color: #4b5563; }
[data-theme="light"] .nav-mob-sub:hover { color: var(--brand); background: rgba(10,15,44,0.04); }
[data-theme="light"] .nav-mob-sub-label { color: var(--brand); }
[data-theme="light"] .nav-mobile-footer { border-top: 1px solid rgba(10,15,44,0.08); }

/* ── HERO SLIDER ── */
#hero { width: 100%; height: 100vh; position: relative; overflow: hidden; padding-top: calc(72px + var(--ann-height, 0px)); }
.slides { width: 100%; height: 100%; position: relative; }
.slide {
  position: absolute; inset: 0;
  background-size: cover !important;
  background-position: center center !important;
  -webkit-background-size: cover !important;
  opacity: 0; transition: opacity 1.2s ease;
  display: block; text-decoration: none;
  will-change: opacity;
}
.slide.active { opacity: 1; }
.slide-label { position: absolute; top: 1.5rem; left: 60px; z-index: 3; background: #1a3fff; color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: 1px; padding: .35rem 1rem; border-radius: 100px; opacity: 0; transition: opacity .5s .5s; text-transform: uppercase; }
.slide.active .slide-label { opacity: 1; }
.badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(26,63,255,0.18); border: 1px solid rgba(26,63,255,0.4); color: #00d4ff; font-size: .8rem; font-weight: 600; padding: .4rem 1rem; border-radius: 100px; margin-bottom: 1.8rem; width: fit-content; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #00d4ff; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
h1 { font-family: 'Syne', sans-serif; font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 800; line-height: 1.06; letter-spacing: -2px; margin-bottom: 1.5rem; max-width: 700px; }
h1 .accent { color: #00d4ff; }
.hero-desc { color: rgba(255,255,255,0.75); font-size: 1.1rem; line-height: 1.75; margin-bottom: 2.5rem; max-width: 550px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.btn-primary { background: #1a3fff; color: #fff; padding: .9rem 2rem; border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid #1a3fff; transition: all .25s; }
.btn-primary:hover { background: #00d4ff; color: #0a0f2c; border-color: #00d4ff; }
.btn-outline { background: transparent; color: #fff; padding: .9rem 2rem; border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid rgba(255,255,255,0.3); transition: all .25s; }
.btn-outline:hover { border-color: #00d4ff; color: #00d4ff; }
.hero-stats { display: flex; gap: 4rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.stat-num { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: #00d4ff; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,0.55); margin-top: .2rem; }
.slider-dots { position: absolute; bottom: 2rem; left: 60px; z-index: 10; display: flex; gap: .6rem; }
.dot { width: 8px; height: 8px; border-radius: 100px; background: rgba(255,255,255,0.3); cursor: pointer; transition: all .3s; }
.dot.active { background: #00d4ff; width: 28px; }
.slider-arrows { position: absolute; right: 60px; bottom: 2rem; z-index: 10; display: flex; gap: .7rem; }
.arrow { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.arrow:hover { background: #1a3fff; }

/* ── SECTIONS ── */
.sec { width: 100%; padding-bottom: 5rem; }
.sec + .sec { border-top: 1px solid var(--border-softer); }
.sec-alt { background: var(--bg-alt-tint); }
.sec-grad { background: linear-gradient(135deg, rgba(26,63,255,0.07), rgba(0,212,255,0.04)); }
.sec-head { padding: 5rem 60px 0; text-align: center; }
.s-label { font-size: .73rem; font-weight: 700; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; margin-bottom: .7rem; }
.s-title { font-family: 'Syne', sans-serif; font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 800; letter-spacing: -1px; margin-bottom: .8rem; }
.s-sub { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; max-width: 520px; margin: 0 auto; }

/* ── FORMATIONS ── */
.formations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; width: 100%; }
.f-card { position: relative; overflow: hidden; height: 320px; border-radius: 16px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem; cursor: pointer; background: var(--bg-elevated); transition: transform .3s, box-shadow .3s; }
.f-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(26,63,255,0.2); }
.f-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s; filter: brightness(0.35); }
.f-card:hover .f-card-bg { transform: scale(1.06); filter: brightness(0.25); }
.f-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,15,44,0.92) 0%, rgba(10,15,44,0.3) 60%, transparent 100%); }
.f-card-top { position: absolute; top: 1.5rem; left: 1.5rem; background: #1a3fff; color: #fff; font-size: .75rem; font-weight: 700; padding: .3rem .8rem; border-radius: 100px; letter-spacing: .5px; }
.f-card-content { position: relative; z-index: 1; }
.f-icon-big { display: block; margin-bottom: .7rem; color: #fff; }
.f-icon-big svg { width: 32px; height: 32px; }
.f-title { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 800; margin-bottom: .4rem; line-height: 1.2; color: #fff; }
.f-desc-small { color: rgba(255,255,255,0.65); font-size: .83rem; line-height: 1.5; }
.f-arrow { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; font-size: 1rem; margin-top: .8rem; transition: background .2s, transform .2s; }
.f-card:hover .f-arrow { background: #00d4ff; color: #0a0f2c; transform: translateX(4px); }
.f-card:nth-child(1) .f-card-bg { background-image: url('https://images.unsplash.com/photo-1677442135703-1787eea5ce01?w=600&q=80'); }
.f-card:nth-child(2) .f-card-bg { background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=600&q=80'); }
.f-card:nth-child(3) .f-card-bg { background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=600&q=80'); }
.f-card:nth-child(4) .f-card-bg { background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=600&q=80'); }
.f-card:nth-child(5) .f-card-bg { background-image: url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?w=600&q=80'); }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; padding: 0 60px 5rem; }
.blog-card { background: var(--bg-elevated); border: 1px solid var(--border-softer); border-radius: 16px; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; cursor: pointer; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(26,63,255,0.18); border-color: rgba(26,63,255,0.35); }

/* ── BLOG (apercu accueil) : carrousel permanent, sur tous les ecrans ── */
.blog-carousel-wrap { position: relative; margin-top: 3rem; }
.blog-grid-preview {
  display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scroll-padding-left: 60px;
  padding: 0 60px 1rem; margin: 0; gap: 1.5rem; grid-template-columns: unset;
  scrollbar-width: none; -ms-overflow-style: none;
}
.blog-grid-preview::-webkit-scrollbar { display: none; }
.blog-grid-preview .blog-card { flex: 0 0 340px; scroll-snap-align: start; }
.blog-carousel-arrow {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-elevated);
  border: 1px solid var(--border-soft); color: var(--text); padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); transition: background .2s, border-color .2s, opacity .2s;
}
.blog-carousel-arrow svg { width: 20px; height: 20px; }
.blog-carousel-arrow:hover { border-color: var(--brand); color: var(--brand); }
.blog-carousel-arrow.prev { left: 20px; }
.blog-carousel-arrow.next { right: 20px; }
@media (max-width: 900px) {
  .blog-carousel-arrow { display: none; }
}

/* ── ARTICLE VEDETTE ── */
.featured-card { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--bg-elevated); border: 1px solid var(--border-softer); border-radius: 20px; overflow: hidden; cursor: pointer; }
.featured-card-media { min-height: 360px; position: relative; }
.featured-card-body { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }

/* ── RECHERCHE / FILTRES BLOG ── */
.search-bar { display: flex; gap: 1rem; flex-wrap: wrap; }
.search-input { background: rgba(255,255,255,0.06); border: 1px solid var(--border-soft); color: var(--text); border-radius: 9px; padding: .8rem 1.2rem; font-size: .9rem; outline: none; width: 340px; max-width: 100%; font-family: 'DM Sans', sans-serif; }
.filter-btn { display:inline-flex; align-items:center; gap:.5rem; background: rgba(255,255,255,0.06); color: var(--text-secondary); border: 1px solid var(--border-soft); border-radius: 100px; padding: .65rem 1.1rem; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s; font-family: 'DM Sans', sans-serif; }
.filter-btn:hover { color: var(--text); border-color: rgba(0,212,255,0.4); }
.filter-btn.active { background: #1a3fff; color: #fff; border-color: var(--brand); }
.filter-count { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 .35rem; border-radius:100px; font-size:.72rem; font-weight:700; background:rgba(255,255,255,0.12); color:var(--text-secondary); }
.filter-btn.active .filter-count { background:rgba(255,255,255,0.25); color:#fff; }
.filter-btn:hover .filter-count { color:var(--text); }
.blog-img { height: 200px; background-size: cover; background-position: center; position: relative; overflow: hidden; transition: transform .5s ease; }
.blog-card:hover .blog-img { transform: scale(1.06); }
.blog-tag { position: absolute; top: 1rem; left: 1rem; background: #1a3fff; color: #fff; font-size: .72rem; font-weight: 700; padding: .28rem .75rem; border-radius: 100px; }
.blog-body { padding: 1.5rem; }
.blog-date { font-size: .78rem; color: var(--text-secondary); margin-bottom: .6rem; }
.blog-title { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; line-height: 1.3; }
.blog-excerpt { color: var(--text-secondary); font-size: .87rem; line-height: 1.6; margin-bottom: 1rem; }
.blog-link { color: var(--accent); font-size: .85rem; font-weight: 600; text-decoration: none; transition: opacity .2s; }
.blog-link:hover { opacity: .75; }
.blog-card:nth-child(1) .blog-img { background-image: url('https://images.unsplash.com/photo-1677442135703-1787eea5ce01?w=600&q=80'); }
.blog-card:nth-child(2) .blog-img { background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?w=600&q=80'); }
.blog-card:nth-child(3) .blog-img { background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=600&q=80'); }

/* ── TÉMOIGNAGES ── */
.temoignages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; padding: 0 60px; }
.temo-card { background: var(--bg-elevated); border: 1px solid var(--border-softer); border-radius: 16px; padding: 2rem; position: relative; transition: transform .3s, border-color .3s; }
.temo-card:hover { transform: translateY(-5px); border-color: rgba(0,212,255,0.25); box-shadow: 0 14px 34px rgba(26,63,255,0.14); }
.temo-quote { font-size: 3rem; color: var(--accent); opacity: .3; line-height: 1; margin-bottom: .5rem; font-family: Georgia, serif; }
.temo-text { color: var(--text-secondary); font-size: .95rem; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.temo-footer { display: flex; align-items: center; gap: 1rem; }
.temo-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #1a3fff, #00d4ff); display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem; color: #fff; flex-shrink: 0; overflow: hidden; border: 3px solid rgba(0,212,255,0.3); }
.temo-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.temo-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: .93rem; }
.temo-role { font-size: .8rem; color: var(--text-secondary); }
.temo-stars { color: var(--amber); font-size: .9rem; margin-bottom: .3rem; }

/* ── CERTIFICATIONS (accueil) ── */
.cert-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; padding: 4rem 60px 0; }
.cert-items { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.cert-item { display: flex; align-items: center; gap: 1rem; background: var(--bg-elevated); border: 1px solid var(--border-softer); border-radius: 12px; padding: 1.1rem 1.4rem; transition: border-color .2s, transform .2s; }
.cert-item:hover { border-color: rgba(0,212,255,0.3); transform: translateX(4px); }
.cert-check { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: rgba(0,212,255,0.12); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: .88rem; }
.cert-name { font-weight: 600; font-size: .93rem; color: #fff; }
[data-theme="light"] .cert-name { color: #374151; }
.cert-org { font-size: .8rem; color: var(--text-secondary); }
.cert-visual { display: flex; align-items: center; justify-content: center; }
.cert-orb { width: 280px; height: 280px; border-radius: 50%; border: 2px solid rgba(0,212,255,0.35); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle, rgba(26,63,255,0.22), transparent 70%); position: relative; }
.cert-orb::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(0,212,255,0.28); animation: rot 20s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.orb-num { font-family: 'Syne', sans-serif; font-size: 3.8rem; font-weight: 800; color: var(--accent); line-height: 1; }
.orb-label { color: var(--text); font-size: .85rem; font-weight: 600; margin-top: .4rem; line-height: 1.4; text-align: center; }

/* ── POURQUOI ── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 3rem; border-top: 1px solid var(--border-softer); }
.why-card { padding: 2.5rem 2rem; border-right: 1px solid var(--border-softer); text-align: center; transition: background .3s; }
.why-card:last-child { border-right: none; }
.why-card:hover { background: rgba(255,255,255,0.03); }
.why-icon { display: block; margin-bottom: 1rem; color: var(--accent); }
.why-icon svg { width: 32px; height: 32px; }
.why-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.why-text { color: var(--text-secondary); font-size: .87rem; line-height: 1.65; }

/* ── CONTACT (infos seulement) ── */
.contact-wrap { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; padding: 5rem 60px; max-width: 600px; }
.contact-infos { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 2rem; }
.c-item { display: flex; align-items: center; gap: 1rem; }
.c-icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; background: rgba(26,63,255,0.15); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.c-icon svg { width: 20px; height: 20px; }
.c-text strong { display: block; font-size: .92rem; }
.c-text span { font-size: .83rem; color: var(--text-secondary); }

/* ── FOOTER ── */
footer { background: #060b20; border-top: 1px solid rgba(255,255,255,0.06); }
.foot-inner { padding: 2.5rem 60px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.foot-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; }
.foot-logo span { color: #00d4ff; }
.foot-copy { color: #8892b0; font-size: .83rem; }
.foot-links { display: flex; gap: 1.5rem; }
.foot-links a { color: #8892b0; font-size: .83rem; text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: #00d4ff; }

/* ── PAGE INTERNE (formations, certifications) ── */
#afitech-page-content { padding-top: calc(72px + var(--ann-height, 0px)); }

/* ── FORMATIONS PAGE ── */
.hero { padding: 5rem 60px 3rem; position: relative; background: linear-gradient(135deg, rgba(26,63,255,0.08), rgba(0,212,255,0.04)); border-bottom: 1px solid rgba(255,255,255,0.06); }
.hero .grid-lines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 60px 60px; }
.hero-inner { position: relative; z-index: 1; }
.hero-inner h1 { font-size: clamp(2rem,4vw,3.5rem); letter-spacing:-1.5px; color:#fff; }
.hero-stats { display:flex; gap:3rem; flex-wrap:wrap; margin-top:2rem; padding-top:2rem; border-top:1px solid rgba(255,255,255,0.08); }

.tabs-bar { display:flex; gap:.5rem; padding:2rem 60px 0; border-bottom:1px solid rgba(255,255,255,0.07); overflow-x:auto; }
.tab { padding:.75rem 1.5rem; border-radius:10px 10px 0 0; font-size:.9rem; font-weight:600; color:var(--text-secondary); cursor:pointer; border:1px solid transparent; border-bottom:none; transition:border-color .2s, background .2s; white-space:nowrap; }
.tab.active, .tab:hover { color:var(--text); background:rgba(26,63,255,0.15); border-color:rgba(26,63,255,0.3); }
.tab.active { color:var(--accent); }

.section { display:none; padding:3rem 60px 5rem; }
.section.active { display:block; }

.f-detail-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:2rem; margin-top:2rem; }
.f-detail-card { background:var(--bg-elevated); border:1px solid var(--border-softer); border-radius:18px; overflow:hidden; transition:border-color .3s, transform .3s; cursor:pointer; }
.f-detail-card:hover { border-color:rgba(0,212,255,0.25); transform:translateY(-4px); box-shadow: 0 14px 34px rgba(26,63,255,0.14); }
.f-card-header { display:flex; align-items:flex-start; gap:1rem; padding:1.5rem 1.5rem 0; }
.f-icon-wrap { width:52px; height:52px; border-radius:14px; background:rgba(26,63,255,0.18); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--prog-color, #1a3fff); }
.f-icon-wrap svg { width:26px; height:26px; }
.level-badge { font-size:.65rem; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; padding:.25rem .7rem; border-radius:100px; display:inline-block; margin-bottom:.4rem; }
.level-licence { background:rgba(26,63,255,0.15); color:var(--brand-light); border:1px solid rgba(26,63,255,0.3); }
.level-master { background:rgba(0,212,255,0.12); color:var(--accent); border:1px solid rgba(0,212,255,0.25); }
.level-cert, .level-certif { background:rgba(251,191,36,0.15); color:var(--amber); border:1px solid rgba(251,191,36,0.35); }
.f-name { font-family:'Syne',sans-serif; font-weight:800; font-size:1.1rem; line-height:1.2; }
.f-meta { font-size:.78rem; color:var(--text-secondary); margin-top:.3rem; }
.f-card-body { padding:1.2rem 1.5rem 1.5rem; }
.f-desc { color:var(--text-secondary); font-size:.9rem; line-height:1.65; margin-bottom:1rem; }
.block-title { font-size:.72rem; font-weight:700; letter-spacing:2px; color:var(--accent); text-transform:uppercase; margin-bottom:.7rem; }
.modules-list { display:flex; flex-direction:column; gap:.45rem; margin-bottom:1rem; }
.mod-item { display:flex; align-items:center; gap:.6rem; font-size:.87rem; color:var(--text-secondary); }
.mod-dot { width:5px; height:5px; border-radius:50%; background:#1a3fff; flex-shrink:0; }
.skills-wrap { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:1.2rem; }
.skill-tag { background:rgba(26,63,255,0.15); border:1px solid rgba(26,63,255,0.25); color:#7b9fff; font-size:.72rem; font-weight:600; padding:.25rem .7rem; border-radius:100px; }
.f-stats-row { display:flex; gap:1.5rem; padding:1rem 0; border-top:1px solid rgba(255,255,255,0.06); border-bottom:1px solid rgba(255,255,255,0.06); margin-bottom:1.2rem; }
.f-stat { text-align:center; }
.f-stat-num { font-family:'Syne',sans-serif; font-weight:800; font-size:1.1rem; color:var(--accent); }
.f-stat-lbl { font-size:.73rem; color:var(--text-secondary); }
.f-prereq { font-size:.82rem; color:var(--text-secondary); line-height:1.5; margin-bottom:1rem; }
.f-prereq strong { color:var(--text-secondary); }
.btn-cta { display:inline-block; background:linear-gradient(135deg,var(--brand),var(--accent)); color:var(--text-on-accent); padding:.7rem 1.5rem; border-radius:8px; font-weight:700; font-size:.9rem; text-decoration:none; transition:opacity .2s,transform .2s; }
.btn-cta:hover { opacity:.85; transform:translateY(-2px); }

/* ── CERTIFICATIONS PAGE ── */
.cert-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.5rem; }
.cert-card { background:var(--bg-elevated); border:1px solid var(--border-softer); border-radius:18px; padding:1.8rem; transition:border-color .3s,transform .3s; display:flex; flex-direction:column; gap:.8rem; }
.cert-card:hover { border-color:rgba(0,212,255,0.25); transform:translateY(-4px); box-shadow: 0 14px 34px rgba(26,63,255,0.14); }
.cert-icon { font-size:2rem; }
.cert-name { font-family:'Syne',sans-serif; font-weight:800; font-size:1.05rem; line-height:1.2; color: #fff; }
[data-theme="light"] .cert-name { color: #374151; }
.cert-desc { color:var(--text-secondary); font-size:.87rem; line-height:1.6; flex:1; }
.cert-footer { display:flex; align-items:center; justify-content:space-between; }
.cert-dur { font-size:.8rem; color:var(--text-secondary); }


/* ── PARTENAIRES CAROUSEL ── */
.partenaires-carousel-wrap { overflow:hidden; padding:3rem 0 4rem; position:relative; }
.partenaires-carousel-wrap::before,
.partenaires-carousel-wrap::after { content:''; position:absolute; top:0; bottom:0; width:80px; z-index:2; pointer-events:none; }
.partenaires-carousel-wrap::before { left:0; background:linear-gradient(to right, var(--bg), transparent); }
.partenaires-carousel-wrap::after  { right:0; background:linear-gradient(to left, var(--bg), transparent); }
.sec-alt .partenaires-carousel-wrap::before { background:linear-gradient(to right, var(--bg-alt-solid), transparent); }
.sec-alt .partenaires-carousel-wrap::after  { background:linear-gradient(to left, var(--bg-alt-solid), transparent); }
.partenaires-track { display:flex; gap:3rem; align-items:center; width:max-content; animation:scroll-partners 30s linear infinite; }
.partenaires-track:hover { animation-play-state:paused; }
@keyframes scroll-partners { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.partenaire-item { flex-shrink:0; display:flex; align-items:center; justify-content:center; height:60px; padding:0 1rem; }
.partenaire-item img { height:50px; max-width:160px; object-fit:contain; filter:none; opacity:.85; transition:opacity .3s; }
.partenaire-item img:hover { opacity:1; }
.partenaire-placeholder { background:rgba(255,255,255,0.05); border:1px solid var(--border-soft); border-radius:10px; min-width:130px; height:50px; display:flex; align-items:center; justify-content:center; padding:0 1.5rem; }
.partenaire-placeholder span { color:var(--text-secondary); font-size:.82rem; font-weight:600; white-space:nowrap; }

.confiance-groupe { margin-top:1.5rem; }
.confiance-groupe:first-of-type { margin-top:2.5rem; }
.confiance-groupe-label {
  text-align:center; font-size:.72rem; font-weight:700; letter-spacing:2px;
  text-transform:uppercase; color:var(--text-secondary);
  padding-bottom:.6rem; margin:0 60px;
  border-bottom:1px solid var(--border-softer);
}


/* ── MOT DU DIRECTEUR ── */
.mot-directeur-section { background: linear-gradient(135deg, rgba(26,63,255,0.06), rgba(0,212,255,0.03)); }
.mot-directeur-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
  width: 100%;
}
.mot-dir-left { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.mot-dir-photo {
  width: 240px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg,#1a3fff,#00d4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 3px solid rgba(0,212,255,0.2);
  flex-shrink: 0;
}
.mot-dir-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mot-dir-initiales { font-family: 'Syne', sans-serif; font-size: 4rem; font-weight: 800; color: #fff; }
.mot-dir-identite { text-align: center; width: 100%; }
.mot-dir-nom { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--text); margin-bottom: .3rem; }
.mot-dir-poste { font-size: .85rem; color: var(--accent); font-weight: 600; margin-bottom: 1.2rem; }
.mot-dir-signature-img { max-width: 160px; filter: brightness(0) invert(1); opacity: .6; margin-top: .5rem; }
.mot-dir-right { padding-top: .5rem; }
.mot-dir-guillemet { font-size: 9rem; color: var(--brand); opacity: .2; line-height: .7; font-family: Georgia, serif; margin-bottom: -.5rem; }
.mot-dir-titre-msg { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 2rem; line-height: 1.3; }
.mot-dir-texte { color: var(--text-secondary); font-size: 1rem; line-height: 2; }
.mot-dir-texte p { margin-bottom: 1.4rem; }
.mot-dir-texte p:last-child { margin-bottom: 0; }


/* ── PAGE À PROPOS ── */
.apropos-hero {
  padding: 5rem 60px 0;
  background: radial-gradient(ellipse 50% 80% at 80% 40%, rgba(0,212,255,0.1) 0%, transparent 60%), #0a0f2c;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.apropos-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
  color: #fff;
}
.apropos-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.apropos-stat {
  padding: 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.apropos-stat:last-child { border-right: none; }
.apropos-stat-icon { width: 22px; height: 22px; margin: 0 auto .7rem; color: #00d4ff; opacity: .75; }
.apropos-stat-icon svg { width: 100%; height: 100%; }
.apropos-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #00d4ff;
  line-height: 1;
}
.apropos-stat-label { font-size: .82rem; color: rgba(255,255,255,0.65); margin-top: .4rem; }
.apropos-section { padding: 4rem 60px; border-bottom: 1px solid var(--border-softer); }
.apropos-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.apropos-valeurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }

/* VISION & MISSION — panneaux plein ecran */
.vm-split { display: grid; grid-template-columns: 1fr 1fr; }
.vm-panel { padding: 5rem 60px; }
.vm-panel-vision { background: var(--bg-elevated); }
.vm-panel-mission { background: linear-gradient(135deg, var(--brand) 0%, #0d6fd1 55%, var(--accent) 130%); }
.vm-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.1; }
.vm-panel-vision .vm-title { color: var(--brand); }
.vm-panel-mission .vm-title { color: #fff; }
.vm-underline { width: 60px; height: 4px; border-radius: 2px; margin: 1.3rem 0 1.6rem; background: var(--accent); }
.vm-underline-light { background: #fff; }
.vm-text { font-size: .98rem; line-height: 1.85; }
.vm-panel-vision .vm-text { color: var(--text-secondary); }
.vm-panel-mission .vm-text { color: rgba(255,255,255,0.92); }
.vm-list { list-style: none; margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.vm-list li { display: flex; align-items: flex-start; gap: .7rem; color: #fff; font-size: .95rem; line-height: 1.5; }
.vm-list li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: .15rem; color: #fff; }
.valeur-card { background: var(--bg-elevated); border: 1px solid var(--border-softer); border-radius: 14px; padding: 1.5rem; transition: border-color .3s, transform .3s, box-shadow .3s; }
.valeur-card:hover { border-color: rgba(0,212,255,0.25); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(26,63,255,0.14); }
.valeur-icon { display: block; margin-bottom: .8rem; color: var(--accent); }
.valeur-icon svg { width: 30px; height: 30px; }
.valeur-titre { font-family: 'Syne', sans-serif; font-weight: 700; font-size: .95rem; margin-bottom: .4rem; color: var(--text); }
.valeur-texte { color: var(--text-secondary); font-size: .84rem; line-height: 1.6; }
.equipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.equipe-card { background: var(--bg-elevated); border: 1px solid var(--border-softer); border-radius: 16px; padding: 1.5rem; text-align: center; transition: border-color .3s, transform .3s; }
.equipe-card:hover { border-color: rgba(0,212,255,0.25); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(26,63,255,0.14); }
.equipe-photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; background: linear-gradient(135deg,#1a3fff,#00d4ff); display: flex; align-items: center; justify-content: center; font-family: 'Syne',sans-serif; font-weight: 800; font-size: 2rem; color: #fff; border: 3px solid rgba(0,212,255,0.2); }
.equipe-photo img { width: 100%; height: 100%; object-fit: cover; }
.equipe-nom { font-family: 'Syne',sans-serif; font-weight: 700; font-size: .95rem; color: var(--text); margin-bottom: .3rem; }
.equipe-poste { font-size: .8rem; color: var(--accent); margin-bottom: .5rem; }
.equipe-bio { font-size: .8rem; color: var(--text-secondary); line-height: 1.5; }



/* ── PAGE PROGRAMME & CERTIFICATION ── */
#afitech-page-content { padding-top: calc(72px + var(--ann-height, 0px)); }
.prog-hero { padding:4rem 60px 3rem; position:relative; background:linear-gradient(135deg,rgba(26,63,255,0.08),rgba(0,212,255,0.04)); border-bottom:1px solid var(--border-softer); overflow:hidden; }
.prog-hero::before { content:''; position:absolute; top:-100px; right:-100px; width:500px; height:500px; border-radius:50%; background:radial-gradient(circle,var(--prog-color,#1a3fff) 0%,transparent 70%); opacity:.12; pointer-events:none; }
.prog-hero-inner { position:relative; z-index:1; }
.prog-back { display:inline-flex; align-items:center; gap:.4rem; color:var(--text-secondary); font-size:.85rem; text-decoration:none; margin-bottom:1.5rem; transition:color .2s; }
.prog-back:hover { color:var(--accent); }
.prog-icon-big { font-size:3.5rem; margin-bottom:1rem; display:block; color:var(--prog-color, var(--brand)); }
.prog-icon-big svg { width:56px; height:56px; }
.prog-hero h1 { font-family:'Syne',sans-serif; font-size:clamp(2rem,4vw,3.2rem); font-weight:800; letter-spacing:-1.5px; margin-bottom:1rem; color:var(--text); }
.prog-desc { color:var(--text-secondary); font-size:1.05rem; line-height:1.75; max-width:650px; margin-bottom:2rem; }
.prog-meta-row { display:flex; flex-wrap:wrap; gap:1rem; margin-bottom:2rem; }
.prog-meta-item { display:flex; align-items:center; gap:.5rem; background:rgba(255,255,255,0.05); border:1px solid var(--border-soft); border-radius:8px; padding:.5rem 1rem; font-size:.87rem; color:var(--text-secondary); }
.prog-meta-icon { display:inline-flex; width:15px; height:15px; flex-shrink:0; }
.prog-meta-icon svg { width:100%; height:100%; }
.prog-hero-btns { display:flex; flex-wrap:wrap; gap:1rem; }
.prog-body { padding:0 60px; }
.prog-section { padding:4rem 0; border-bottom:1px solid var(--border-softer); }
.prog-section + .prog-section { padding-top:1.5rem; }
.prog-modules-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.5rem; margin-top:2rem; }
.prog-module-card { background:var(--bg-elevated); border:1px solid var(--border-softer); border-radius:16px; overflow:hidden; transition:border-color .3s, box-shadow .3s; }
.prog-module-card:hover { border-color:rgba(0,212,255,0.25); box-shadow: 0 14px 34px rgba(26,63,255,0.14); }
.prog-module-header { display:flex; align-items:center; gap:1rem; padding:1rem 1.5rem; background:rgba(26,63,255,0.15); border-bottom:1px solid var(--border-softer); }
.prog-module-num { font-size:.72rem; font-weight:700; letter-spacing:2px; color:var(--accent); text-transform:uppercase; background:rgba(0,212,255,0.1); border:1px solid rgba(0,212,255,0.2); padding:.3rem .7rem; border-radius:100px; white-space:nowrap; }
.prog-module-title { font-family:'Syne',sans-serif; font-weight:700; font-size:1rem; color:var(--text); }
.prog-module-list { list-style:none; padding:1.2rem 1.5rem; display:flex; flex-direction:column; gap:.6rem; }
.prog-module-list li { display:flex; align-items:center; gap:.6rem; font-size:.88rem; color:var(--text-secondary); }
.prog-debouches { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1rem; margin-top:1.5rem; }
.prog-debouche-item { display:flex; align-items:center; gap:.7rem; background:var(--bg-elevated); border:1px solid var(--border-softer); border-radius:10px; padding:1rem 1.2rem; font-size:.9rem; font-weight:500; }
.prog-cta-box { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:2rem; background:linear-gradient(135deg,rgba(26,63,255,0.15),rgba(0,212,255,0.08)); border:1px solid rgba(0,212,255,0.2); border-radius:18px; padding:2.5rem; margin:3rem 0 5rem; }
.prog-cta-left { flex:1 1 320px; min-width:260px; }
.prog-cta-right { display:flex; flex-wrap:wrap; gap:1rem; flex-shrink:0; }
.btn-download { background:transparent; color:var(--accent); padding:.9rem 2rem; border-radius:8px; font-weight:600; font-size:.95rem; text-decoration:none; border:2px solid var(--accent); transition:border-color .25s, background .25s; display:inline-flex; align-items:center; gap:.5rem; }
.btn-download:hover { background:var(--accent); color:var(--text-on-accent); }

/* ══════════════════════════════════════════════════════════════
   HAMBURGER MENU
══════════════════════════════════════════════════════════════ */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px; height: 22px;
  background: transparent; border: none; cursor: pointer;
  padding: 0; z-index: 300;
}
.hamburger-btn span {
  display: block; width: 100%; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Overlay sombre */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 250;
  backdrop-filter: blur(4px);
}
.nav-overlay.active { display: block; }

/* Menu mobile panel */
.nav-mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 88%; max-width: 360px;
  background: #0d1535;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 260;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: flex; flex-direction: column;
  visibility: hidden;
}
.nav-mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}

.nav-mobile-inner { display: flex; flex-direction: column; min-height: 100%; }

.nav-mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.nav-mobile-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: none;
  color: #fff; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.nav-mobile-links {
  display: flex; flex-direction: column;
  padding: 1rem 0; flex: 1;
}
.nav-mob-link {
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.5rem;
  color: #fff; text-decoration: none;
  font-size: .95rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background .2s, color .2s;
}
.nav-mob-link:hover { background: rgba(26,63,255,0.15); color: #00d4ff; }

.nav-mob-group { border-bottom: 1px solid rgba(255,255,255,0.04); }
.nav-mob-group-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.5rem;
  color: #00d4ff; font-size: .8rem;
  font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer; user-select: none;
}
.nav-mob-group-arrow { font-size: .9rem; transition: transform .25s ease; flex-shrink: 0; }
.nav-mob-group.open .nav-mob-group-arrow { transform: rotate(180deg); }
.nav-mob-group-links { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.nav-mob-group.open .nav-mob-group-links { max-height: 600px; padding-bottom: .5rem; }
.nav-mob-sub {
  display: block; padding: .6rem 1.5rem .6rem 2.5rem;
  color: #8892b0; text-decoration: none;
  font-size: .88rem; transition: color .2s, background .2s;
}
.nav-mob-sub:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-mob-sub-label {
  padding: .6rem 1.5rem .3rem 2.5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: 1.5px;
  color: #00d4ff; text-transform: uppercase; opacity: .85;
}

.nav-mobile-footer {
  padding: 1.5rem; border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.nav-mob-cta {
  display: block; width: 100%;
  background: linear-gradient(135deg,#1a3fff,#00d4ff);
  color: #0a0f2c; text-align: center; text-decoration: none;
  font-weight: 700; font-size: .95rem;
  padding: .9rem; border-radius: 10px;
  margin-bottom: 1rem;
}
.nav-mob-infos {
  display: flex; flex-direction: column; gap: .4rem;
  color: #8892b0; font-size: .82rem; text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLETTE (max 1024px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 30px; }
  .formations-grid { grid-template-columns: repeat(3,1fr) !important; }
  .blog-grid { grid-template-columns: repeat(2,1fr); padding: 0 30px 4rem; }
  .temoignages-grid { grid-template-columns: repeat(2,1fr); padding: 0 30px; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .why-card:nth-child(2) { border-right: none; }
  .cert-wrap { padding: 3rem 30px 0; }
  .sec-head { padding: 4rem 30px 0; }
  .sec { padding-bottom: 4rem; }
  .contact-wrap { padding: 4rem 30px; }
  .foot-inner { padding: 2rem 30px; }
  .hero { padding: 4rem 30px 3rem; }
  .tabs-bar { padding: 1.5rem 30px 0; }
  .section { padding: 2rem 30px 4rem; }
  .prog-hero { padding: 3rem 30px 2.5rem; }
  .prog-body { padding: 0 30px; }
  .apropos-hero, .apropos-section { padding-left: 30px; padding-right: 30px; }
  .mot-directeur-wrap { gap: 2.5rem; }
  .vm-panel { padding: 3.5rem 30px; }
  .partenaires-carousel-wrap { padding: 2rem 0 3rem; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (max 768px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* NAV */
  .nav-inner { padding: 0 20px; height: 60px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger-btn { display: flex; }
  .logo-img img { height: 38px !important; }

  /* HERO */
  #hero { padding-top: calc(60px + var(--ann-height, 0px)); height: 56vw; min-height: 280px; max-height: 460px; }
  .slider-dots { left: 20px; bottom: 1rem; }
  .slider-arrows { right: 20px; bottom: 1rem; }
  .arrow { width: 34px; height: 34px; font-size: .85rem; }

  /* SECTIONS */
  .sec-head { padding: 3rem 20px 0; }
  .sec { padding-bottom: 3rem; }
  .s-title { font-size: 1.6rem !important; }
  .s-sub { font-size: .9rem; }

  /* FORMATIONS : carrousel horizontal au lieu d'un empilement vertical (evite un scroll trop long) */
  .formations-grid {
    display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding: 0 20px .5rem; margin-left: -20px; margin-right: -20px; width: calc(100% + 40px);
    scroll-padding-left: 20px; scrollbar-width: none; -ms-overflow-style: none;
  }
  .formations-grid::-webkit-scrollbar { display: none; }
  .f-card { flex: 0 0 74%; scroll-snap-align: start; height: 220px; padding: 1.2rem; }
  .f-icon-big { font-size: 1.5rem; margin-bottom: .4rem; }
  .f-title { font-size: .95rem; }

  /* CERTIFICATIONS */
  .cert-wrap { grid-template-columns: 1fr !important; padding: 2.5rem 20px 0; gap: 2rem; }
  .cert-visual { display: none; }
  .cert-orb { display: none; }

  /* BLOG (archive complete /blog/) : reste en liste verticale, la pagination gere le volume */
  .blog-grid { grid-template-columns: 1fr; padding: 0 20px 3rem; gap: 1.2rem; }
  /* BLOG (apercu accueil) : le carrousel reste actif, juste des cartes plus etroites + marges reduites */
  .blog-grid-preview {
    padding: 0 20px 1rem; margin-left: -20px; margin-right: -20px; width: calc(100% + 40px);
    scroll-padding-left: 20px;
  }
  .blog-grid-preview::-webkit-scrollbar { display: none; }
  .blog-grid-preview .blog-card { flex: 0 0 78%; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card-media { min-height: 200px; }
  .featured-card-body { padding: 1.75rem; }
  .search-input { width: 100%; }
  .filter-btn { padding: .6rem 1rem; font-size: .8rem; }

  /* TEMOIGNAGES : meme traitement carrousel */
  .temoignages-grid {
    display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; grid-template-columns: unset;
    padding: 0 20px 1rem; margin-left: -20px; margin-right: -20px; width: calc(100% + 40px); gap: 1.2rem;
    scroll-padding-left: 20px; scrollbar-width: none; -ms-overflow-style: none;
  }
  .temoignages-grid::-webkit-scrollbar { display: none; }
  .temo-card { flex: 0 0 78%; scroll-snap-align: start; }

  /* POURQUOI */
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-card { padding: 1.5rem 1rem; border-right: none; border-bottom: 1px solid var(--border-softer); }

  /* CONTACT */
  .contact-wrap { padding: 3rem 20px; max-width: 100%; }

  /* FOOTER */
  .foot-inner { padding: 2rem 20px; flex-direction: column; text-align: center; gap: .8rem; }
  .foot-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  /* PARTENAIRES */
  .partenaires-carousel-wrap { padding: 1.5rem 0 2.5rem; }

  /* PAGE FORMATIONS */
  .hero { padding: 3rem 20px 2rem; }
  .hero-inner h1 { font-size: 1.6rem; }
  .hero-stats { gap: 1.5rem; }
  .tabs-bar { padding: 1rem 20px 0; gap: .3rem; overflow-x: auto; }
  .tab { padding: .6rem 1rem; font-size: .82rem; white-space: nowrap; }
  .section { padding: 2rem 20px 3rem; }
  .f-detail-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .cert-grid { grid-template-columns: 1fr; }

  /* PAGE PROGRAMME */
  .prog-hero { padding: 2.5rem 20px 2rem; }
  .prog-hero h1 { font-size: 1.5rem; }
  .prog-meta-row { gap: .6rem; }
  .prog-meta-item { font-size: .8rem; padding: .4rem .8rem; }
  .prog-hero-btns { flex-direction: column; }
  .prog-hero-btns a { text-align: center; }
  .prog-body { padding: 0 20px; }
  .prog-modules-grid { grid-template-columns: 1fr; }
  .prog-debouches { grid-template-columns: 1fr; }
  .prog-cta-box { flex-direction: column; }
  .prog-cta-right { flex-direction: column; width: 100%; }
  .prog-cta-right a { text-align: center; width: 100%; justify-content: center; }

  /* PAGE CANDIDATURE */
  .page > div > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* PAGE À PROPOS */
  .apropos-hero { padding: 3rem 20px 2rem; }
  .apropos-stats { grid-template-columns: repeat(2,1fr); }
  .apropos-stat { padding: 1.2rem .8rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .apropos-stat:nth-child(2) { border-right: none; }
  .apropos-stat:nth-child(3), .apropos-stat:nth-child(4) { border-bottom: none; }
  .apropos-stat-num { font-size: 1.8rem; }
  .apropos-section { padding: 2.5rem 20px; }
  .apropos-grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .vm-split { grid-template-columns: 1fr; }
  .vm-panel { padding: 2.5rem 20px; }
  .apropos-valeurs { grid-template-columns: 1fr; }
  .equipe-grid { grid-template-columns: repeat(2,1fr); }

  /* MOT DU DIRECTEUR */
  .mot-directeur-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .mot-dir-left { flex-direction: row; align-items: center; gap: 1.2rem; text-align: left; }
  .mot-dir-photo { width: 80px; height: 80px; margin-bottom: 0; flex-shrink: 0; }
  .mot-dir-guillemet { font-size: 5rem; }
  .mot-dir-titre-msg { font-size: 1.1rem; }
  .mot-dir-texte { font-size: .9rem; }

  /* PAGE BLOG */
  #afitech-page-content { padding-top: calc(60px + var(--ann-height, 0px)); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — PETIT MOBILE (max 480px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .f-card { flex-basis: 84%; }
  .blog-grid-preview .blog-card, .temo-card { flex-basis: 84%; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { border-right: none; }
  .hero-btns { flex-direction: column; }
  .apropos-stats { grid-template-columns: repeat(2,1fr); }
  .equipe-grid { grid-template-columns: 1fr; }
  .nav-mobile-menu { width: 95%; max-width: 100%; }
  .prog-hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline, .btn-download, .btn-cta {
    display: block; text-align: center; width: 100%;
  }
  .mot-dir-left { flex-direction: column; text-align: center; }
  .mot-dir-photo { width: 100px; height: 100px; }
}

/* ── RÉSEAUX SOCIAUX ── */
.foot-right { display:flex; flex-direction:column; align-items:flex-end; gap:.8rem; }
.foot-social { display:flex; gap:.55rem; align-items:center; }

.social-icon {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: transform .2s, background .2s, box-shadow .2s;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.social-icon:hover {
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.social-icon svg { width: 15px; height: 15px; }
.social-icon:hover { transform: translateY(-2px); }

/* Facebook */
.social-fb { background: #1877f2; color: #fff; }
.social-fb:hover { background: #0d65d9; }

/* Instagram */
.social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.social-ig:hover { opacity: .85; }

/* LinkedIn */
.social-li { background: #0077b5; color: #fff; }
.social-li:hover { background: #005f8e; }

/* Section contact social */
.contact-social .social-icon { width: 36px; height: 36px; }
.contact-social .social-icon svg { width: 17px; height: 17px; }

/* Responsive footer */
@media (max-width: 768px) {
  .foot-inner { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .foot-right { align-items: center; }
  .foot-links { flex-wrap: wrap; justify-content: center; }
  .foot-social { justify-content: center; }
}
@media (max-width: 480px) {
  .foot-social { gap: .55rem; }
  .social-icon { width: 28px; height: 28px; }
  .social-icon svg { width: 14px; height: 14px; }
}

/* TikTok */
.social-tt { background: #010101; color: #fff; }
.social-tt:hover { background: #333; }

/* ── SLIDE OVERLAY TEXT ── */
.slide-overlay-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: rgba(10,15,44,0.45);
  pointer-events: none;
  z-index: 3;
}
.slide-overlay-text .slide-btns,
.slide-overlay-text .slide-btn-main {
  pointer-events: auto !important;
  position: relative;
  z-index: 20;
}
.slide-overlay-inner {
  max-width: 600px; width: 85%;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.slide-accred-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(0,212,255,0.12); border: 1px solid rgba(0,212,255,0.35);
  color: #fff; padding: .45rem 1.1rem; border-radius: 100px;
  font-size: .8rem; font-weight: 700; letter-spacing: .3px;
  margin-bottom: .4rem; backdrop-filter: blur(6px);
}
.slide-accred-badge svg { width: 16px; height: 16px; color: #00d4ff; flex-shrink: 0; }
.slide-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  font-weight: 700; color: #fff;
  line-height: 1.3; margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.slide-sub {
  color: rgba(255,255,255,0.78);
  font-size: clamp(.75rem, 1.1vw, .9rem);
  font-weight: 400; margin: 0 0 .6rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.slide-btns { display: flex; justify-content: center; }
.slide-stats { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; }
.slide-stat { text-align: center; }
.slide-stat-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; color: #00d4ff; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.slide-stat-label { font-size: .72rem; color: rgba(255,255,255,0.75); text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
@media (max-width: 480px) {
  .slide-stats { gap: 1.2rem; margin-top: 1rem; }
  .slide-stat-num { font-size: 1.1rem; }
  .slide-stat-label { font-size: .65rem; }
}
.slide-btn-main {
  background: #1a3fff; color: #fff;
  padding: .7rem 2rem; border-radius: 100px;
  font-weight: 700; font-size: .9rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
  display: inline-block;
  position: relative;
  z-index: 20;
  pointer-events: auto !important;
  cursor: pointer;
}
.slide-btn-main:hover { background: #0d2fd4; transform: translateY(-2px); }

/* Responsive overlay */
@media (max-width: 768px) {
  .slide-title { font-size: clamp(1.3rem, 5vw, 2rem); }
  .slide-sub { font-size: .82rem; }
  .slide-btn-main { padding: .65rem 1.8rem; font-size: .88rem; }
}
@media (max-width: 480px) {
  .slide-title { font-size: 1.2rem; }
  .slide-btn-main { padding: .6rem 1.5rem; font-size: .85rem; }
}

/* ── GOOGLE MAPS ── */
.contact-map {
  margin-top: 1.5rem;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}
@media (max-width: 768px) {
  .contact-map iframe { height: 220px; }
}

/* ── NEWSLETTER BAR ── */
.newsletter-bar { background: var(--bg-elevated); border-bottom: 1px solid var(--border-softer); padding: 2.5rem 60px; }
.newsletter-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.newsletter-text { max-width: 460px; }
.newsletter-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; margin-bottom: .3rem; }
.newsletter-text p { color: var(--text-secondary); font-size: .87rem; line-height: 1.5; }
.newsletter-form { display: flex; gap: .6rem; flex: 1; max-width: 420px; min-width: 260px; }
.newsletter-form input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid var(--border-soft); color: var(--text); border-radius: 9px; padding: .8rem 1.1rem; font-size: .88rem; outline: none; font-family: 'DM Sans', sans-serif; }
.newsletter-form input::placeholder { color: var(--text-secondary); }
.newsletter-form input:focus { border-color: var(--brand); }
.newsletter-form button { background: linear-gradient(135deg, #1a3fff, #00d4ff); color: #fff; border: none; border-radius: 9px; padding: .8rem 1.5rem; font-weight: 700; font-size: .88rem; cursor: pointer; white-space: nowrap; transition: opacity .2s; }
.newsletter-form button:hover { opacity: .88; }
.newsletter-form button:disabled { opacity: .6; cursor: not-allowed; }
/* ── MESSAGES DE FORMULAIRE (unifie sur tous les formulaires) ── */
.form-msg { display: none; margin-top: 1rem; padding: .8rem 1.1rem; border-radius: 9px; font-size: .88rem; line-height: 1.5; }
.form-msg-success { display: block; background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3); color: var(--accent); }
.form-msg-error { display: block; background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.3); color: #ff6b6b; }
#newsletter-msg { max-width: 1100px; margin: .8rem auto 0; text-align: center; }
@media (max-width: 768px) {
  .newsletter-bar { padding: 2rem 30px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { max-width: 100%; width: 100%; }
}
@media (max-width: 480px) {
  .newsletter-bar { padding: 1.6rem 20px; }
  .newsletter-form { flex-direction: column; }
}

/* ── WHATSAPP FLOTTANT ── */
.afitech-whatsapp-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  transition: transform .2s;
}
.afitech-whatsapp-float:hover { transform: scale(1.08); }
@media (max-width: 480px) {
  .afitech-whatsapp-float { width: 52px; height: 52px; bottom: 16px; left: 16px; }
}

/* ── FAQ ACCORDION ── */
.faq-list { max-width: 800px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: .8rem; padding: 0 60px; }
.faq-item { background: var(--bg-elevated); border: 1px solid var(--border-softer); border-radius: 12px; overflow: hidden; }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 700; font-size: .95rem; user-select: none; }
.faq-question .faq-icon { flex-shrink: 0; color: var(--accent); font-size: 1.2rem; transition: transform .25s; }
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 1.5rem; color: var(--text-secondary); font-size: .88rem; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 400px; padding: 0 1.5rem 1.3rem; }
@media (max-width: 768px) {
  .faq-list { padding: 0 30px; }
}
@media (max-width: 480px) {
  .faq-list { padding: 0 20px; }
  .faq-question { padding: 1rem 1.1rem; font-size: .88rem; }
}

/* ── PROJETS ETUDIANTS ── */
.projets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; padding: 0 60px 5rem; max-width: 1300px; margin: 0 auto; }
.projet-card { background: var(--bg-elevated); border: 1px solid var(--border-softer); border-radius: 16px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.projet-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(26,63,255,0.14); }
.projet-img { height: 190px; background-size: cover; background-position: center; background: linear-gradient(135deg,#1a3fff33,#00d4ff33); transition: transform .5s ease; }
.projet-card:hover .projet-img { transform: scale(1.06); }
.projet-body { padding: 1.4rem; }
.projet-filiere { font-size: .68rem; font-weight: 700; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; margin-bottom: .5rem; }
.projet-title { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.projet-desc { color: var(--text-secondary); font-size: .85rem; line-height: 1.6; margin-bottom: 1rem; }
.projet-etudiant { font-size: .78rem; color: var(--text-secondary); margin-bottom: 1rem; }
.projet-links { display: flex; gap: .8rem; }
.projet-links a { font-size: .82rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.projet-links a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .projets-grid { padding: 0 30px 4rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 480px) {
  .projets-grid { padding: 0 20px 3rem; grid-template-columns: 1fr; }
}

/* ── VIE ETUDIANTE ── */
.vie-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; padding: 0 60px; max-width: 1200px; margin: 3rem auto 0; }
.vie-photo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(135deg,#1a3fff33,#00d4ff33); cursor: pointer; }
.vie-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.vie-photo:hover img { transform: scale(1.08); }
.vie-legende { position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem 1rem; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); font-size: .8rem; font-weight: 600; color: #fff; }
.vie-photo-zoom {
  position: absolute; top: .7rem; right: .7rem; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10,15,44,0.55); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .95rem; opacity: 0; transition: opacity .25s ease;
}
.vie-photo:hover .vie-photo-zoom { opacity: 1; }

/* ── LIGHTBOX GALERIE ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,7,20,0.94); align-items: center; justify-content: center;
  padding: 3rem; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 10px; object-fit: contain; cursor: default; }
.lightbox-caption { position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff;
  font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 768px) {
  .vie-gallery { padding: 0 30px; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .vie-gallery { padding: 0 20px; grid-template-columns: 1fr; }
}

/* ── FRAIS & FINANCEMENT ── */
.frais-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; padding: 0 60px; max-width: 1200px; margin: 3rem auto 0; }
.frais-card { background: var(--bg-elevated); border: 1px solid var(--border-softer); border-radius: 16px; padding: 1.8rem; }
.frais-filiere { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: .6rem; }
.frais-montant { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.frais-info-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 3rem 60px 5rem; max-width: 1200px; margin: 0 auto; }
.frais-info-card { background: var(--bg-elevated); border: 1px solid var(--border-softer); border-radius: 16px; padding: 1.8rem; }
.frais-info-card h3 { font-family: 'Syne', sans-serif; font-size: 1.05rem; margin-bottom: .8rem; }
.frais-info-card p { color: var(--text-secondary); font-size: .88rem; line-height: 1.7; white-space: pre-line; }
@media (max-width: 768px) {
  .frais-grid, .frais-info-blocks { padding-left: 30px; padding-right: 30px; }
  .frais-info-blocks { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .frais-grid, .frais-info-blocks { padding-left: 20px; padding-right: 20px; }
}

/* ── ARTICLE BLOG (single.php) ── */
.article-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
  font-family: 'DM Sans', sans-serif;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: 'Syne', sans-serif;
  color: var(--text);
  font-weight: 700;
  margin: 2rem 0 .8rem;
  line-height: 1.3;
}
.article-content h2 { font-size: 1.6rem; color: var(--text); }
.article-content h3 { font-size: 1.25rem; color: var(--accent); }
.article-content p { margin: 0 0 1.2rem; }
.article-content a { color: var(--accent); text-decoration: underline; }
.article-content ul, .article-content ol {
  padding-left: 1.5rem; margin: 0 0 1.2rem;
}
.article-content li { margin-bottom: .4rem; }
.article-content blockquote {
  border-left: 3px solid #1a3fff;
  padding: .8rem 1.2rem;
  margin: 1.5rem 0;
  background: rgba(26,63,255,0.08);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-style: italic;
}
.article-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1rem 0;
}
.article-content code {
  background: var(--bg-elevated);
  color: var(--accent);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .9em;
}
.article-content pre {
  background: var(--bg-elevated);
  padding: 1.2rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.2rem 0;
}
.article-content strong { color: var(--text); font-weight: 700; }

@media (max-width: 768px) {
  .article-content { font-size: .95rem; }
}

/* ── ALUMNI ── */
.alumni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; padding: 0 60px 6rem; max-width: 1300px; margin: 3rem auto 0; }
.alumni-card { background: var(--bg-elevated); border: 1px solid var(--border-softer); border-radius: 16px; padding: 1.6rem; text-align: center; transition: border-color .3s, transform .3s; }
.alumni-card:hover { border-color: rgba(0,212,255,0.25); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(26,63,255,0.14); }
.alumni-photo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto .9rem; overflow: hidden; background: linear-gradient(135deg,#1a3fff,#00d4ff); display: flex; align-items: center; justify-content: center; font-family: 'Syne',sans-serif; font-weight: 800; font-size: 1.6rem; color: #fff; border: 3px solid rgba(0,212,255,0.2); }
.alumni-promo { font-size: .68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.alumni-nom { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: .3rem; }
.alumni-poste { font-size: .82rem; color: var(--text-secondary); margin-bottom: .3rem; }
.alumni-filiere { font-size: .74rem; color: var(--text-secondary); margin-bottom: .8rem; }
.alumni-temoignage { font-size: .82rem; color: var(--text-secondary); font-style: italic; line-height: 1.6; margin-bottom: .8rem; }
.alumni-linkedin { font-size: .8rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.alumni-linkedin:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .alumni-grid { padding: 0 30px 4rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 480px) {
  .alumni-grid { padding: 0 20px 3rem; grid-template-columns: 1fr; }
}

/* Fonction reading_time fallback */

/* Coordonnees cliquables : meme apparence, mais tappables sur mobile */
.c-link, .nav-mob-tel { color: inherit; text-decoration: none; }
.c-link:hover, .nav-mob-tel:hover { text-decoration: underline; }

/* Zone tactile de 44px : l'icone reste petite, mais reste facile a atteindre au doigt.
   44px est le minimum recommande pour une cible tactile. */
.social-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
}

/* ══════════════════════════════════════
   ACCESSIBILITE
   Ces regles ne modifient aucune taille de texte.
   ══════════════════════════════════════ */

/* Indicateur de focus. :focus-visible ne se declenche qu'au clavier :
   l'apparence ne change pas pour qui navigue a la souris. */
:focus-visible {
  outline: 3px solid #00d4ff;
  outline-offset: 3px;
  border-radius: 2px;
}
[data-theme="light"] :focus-visible { outline-color: #1a3fff; }

/* Respect du reglage systeme "reduire les animations". */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Zone tactile de 44px sur les boutons de navigation : l'apparence ne change
   pas, seul le rayon d'action du doigt grandit. */
.hamburger-btn, .theme-toggle, .nav-mobile-close { position: relative; }
.hamburger-btn::after,
.theme-toggle::after,
.nav-mobile-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
}

/* Logos des organismes de certification : meme encombrement que la pastille
   qu'ils remplacent, pour ne pas decaler la mise en page. */
.cert-logo {
  width: 38px; height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
}
