/* ══════════════════════════════════════════════════════════════════
   VARIABLES — Palette lumineuse & chaleureuse
   ══════════════════════════════════════════════════════════════════ */
:root {
  /* Fond clair ivoire */
  --bg:          #f5f2ed;
  --bg2:         #ffffff;
  --bg3:         #ede9e2;
  --border:      #d9d2c5;
  --border-dark: #b8ae9e;
  /* Texte */
  --text:        #1a1612;
  --text-muted:  #6b6358;
  --text-light:  #9c9080;
  /* Accent principal : bleu marine profond */
  --accent:      #1a3a5c;
  --accent-light:#2557a7;
  --accent-glow: rgba(26,58,92,0.10);
  /* Accent secondaire : or chaud */
  --gold:        #c8860a;
  --gold-light:  #f5a623;
  --gold-glow:   rgba(200,134,10,0.12);
  /* Succès vert */
  --green:       #1a7a4a;
  /* Radius */
  --radius:      10px;
  --radius-lg:   18px;
  --radius-xl:   28px;
  /* Typo */
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  /* Nav */
  --nav-h:       68px;
  /* Ombres */
  --shadow-sm:   0 2px 8px rgba(26,22,18,.08);
  --shadow:      0 4px 20px rgba(26,22,18,.12);
  --shadow-lg:   0 12px 40px rgba(26,22,18,.16);
}

/* ══════════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--text);
  min-height: 100vh; display: flex; flex-direction: column;
  font-size: 15px; line-height: 1.7;
}
a { color: var(--accent-light); text-decoration: none; }
img { max-width: 100%; display: block; }
textarea, input, select, button { font-family: var(--font-body); }

/* ══════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: var(--nav-h);
  background: #fff;
  border-bottom: 2px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 800;
  color: var(--accent); text-decoration: none; flex-shrink: 0; z-index: 201;
  letter-spacing: -.02em;
}
.logo-bracket { color: var(--gold); font-size: 1.4rem; }
.logo-text    { color: var(--accent); }
.logo-full    { color: var(--text-muted); font-size: .78rem; font-weight: 400; margin-left: .45rem; }
.nav-links    { display: flex; align-items: center; gap: .2rem; }
.nav-link {
  padding: .38rem .8rem; border-radius: var(--radius);
  color: var(--text-muted); font-size: .85rem; font-weight: 500;
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-link:hover { color: var(--accent); background: var(--accent-glow); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  font-weight: 700; padding: .45rem 1.1rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--accent-light); color: #fff !important; }
.nav-cta--outline {
  background: transparent; border: 1.5px solid var(--border-dark);
  color: var(--text-muted) !important; border-radius: var(--radius);
}
.nav-cta--outline:hover { border-color: var(--accent); color: var(--accent) !important; }

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 30px; height: 20px;
  background: none; border: none; cursor: pointer; padding: 0; z-index: 201;
}
.nav-burger span {
  display: block; width: 100%; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s; transform-origin: center;
}
.nav-burger--open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-burger--open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger--open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 820px) {
  .logo-full { display: none; }
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 2px solid var(--accent);
    box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch;
    padding: .75rem 1.25rem 1.5rem; gap: .2rem;
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s;
    z-index: 199;
  }
  .nav-links--open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: .8rem 1rem; font-size: .95rem; border-radius: var(--radius); }
  .nav-cta  { text-align: center; margin-top: .3rem; }
  .navbar   { padding: 0 1.25rem; }
}

/* ══════════════════════════════════════════════════════════════════
   GOOGLE TRANSLATE WIDGET
   ══════════════════════════════════════════════════════════════════ */
/* Masque la barre de traduction flottante de Google en haut de page */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

.nav-translate { display: flex; align-items: center; margin-left: .5rem; }
.nav-translate .goog-te-gadget { line-height: 1 !important; font-size: 0 !important; }
.nav-translate .goog-te-gadget > span { display: none !important; }
.nav-translate .goog-te-gadget select {
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  padding: .32rem .6rem;
  font-size: .78rem; font-family: var(--font-body);
  color: var(--text-muted); background: #fff;
  cursor: pointer; outline: none;
  max-width: 140px;
  transition: border-color .2s, color .2s;
}
.nav-translate .goog-te-gadget select:hover,
.nav-translate .goog-te-gadget select:focus {
  border-color: var(--accent); color: var(--accent);
}
@media (max-width: 820px) {
  .nav-translate { margin-left: 0; padding: .5rem 1rem; }
  .nav-translate .goog-te-gadget select { max-width: 100%; width: 100%; font-size: .92rem; padding: .55rem .7rem; }
}

/* ══════════════════════════════════════════════════════════════════
   FLASH / FOOTER
   ══════════════════════════════════════════════════════════════════ */
.flash-container { max-width: 900px; margin: 1.25rem auto 0; padding: 0 1rem; }
.flash { padding: .8rem 1.1rem; border-radius: var(--radius); font-size: .88rem; margin-bottom: .5rem; border: 1px solid; }
.flash--success { background: #edfaf4; border-color: #6ed4a4; color: #1a7a4a; }
.flash--danger  { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.flash--warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.flash--info    { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
main { flex: 1; }

/* ══════════════════════════════════════════════════════════════════
   CTA BOTTOM
   ══════════════════════════════════════════════════════════════════ */
.cta-bottom {
  background: var(--bg3); border-top: 2px solid var(--border);
  padding: 3rem 2rem;
}
.cta-bottom-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
}
.cta-bottom-block--full { grid-column: 1 / -1; border-top: 1.5px solid var(--border); padding-top: 2rem; }
.cta-bottom-title {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 800;
  color: var(--accent); margin-bottom: .75rem;
}
.cta-bottom-block p {
  color: var(--text-muted); font-size: .9rem; line-height: 1.75;
}
.cta-bottom-networks {
  margin-top: .75rem !important;
  font-weight: 600; font-size: .85rem !important;
}
.cta-bottom-networks a {
  color: var(--accent-light); font-weight: 600;
  text-decoration: none; transition: color .2s;
}
.cta-bottom-networks a:hover { color: var(--gold); text-decoration: underline; }
@media (max-width: 580px) {
  .cta-bottom-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-bottom { padding: 2rem 1.25rem; }
  .cta-bottom-block--full { border-top: none; padding-top: 0; }
}
.cta-bottom-link {
  display: inline-block; margin-top: .85rem;
  color: var(--accent-light); font-weight: 700; font-size: .88rem;
  text-decoration: none; border-bottom: 2px solid var(--accent-light);
  transition: color .2s, border-color .2s;
}
.cta-bottom-link:hover { color: var(--gold); border-color: var(--gold); }

.footer {
  background: var(--accent); color: rgba(255,255,255,.85);
  padding: 2rem 1.5rem; text-align: center;
}
.footer-main {
  font-size: .9rem; font-weight: 500; color: #fff; margin-bottom: .5rem;
}
.footer-tagline {
  font-size: .8rem; color: rgba(255,255,255,.65);
  font-style: italic; max-width: 560px; margin: 0 auto;
}
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: .75rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .78rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact {
  margin-top: 1rem; font-size: .78rem; color: rgba(255,255,255,.55);
  border-top: 1px solid rgba(255,255,255,.12); padding-top: .85rem;
}
.footer-contact a { color: var(--gold-light); text-decoration: underline; }
.footer-contact a:hover { color: #fff; }
.footer-credit { margin-top: .5rem; font-size: .75rem; color: rgba(255,255,255,.4); font-style: italic; }

/* ══════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; padding: .65rem 1.5rem;
  border-radius: var(--radius); border: none; cursor: pointer;
  font-family: var(--font-head); font-size: .9rem; font-weight: 700;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn--ghost:hover { background: var(--accent-glow); }
.btn--white { background: #fff; color: var(--accent); font-weight: 700; }
.btn--white:hover { background: var(--bg3); }
.btn--full { width: 100%; }
.btn--sm   { font-size: .78rem; padding: .38rem .85rem; }
.btn--lg   { font-size: 1rem; padding: .8rem 2.2rem; }
.btn-icon  { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: .8rem; transition: color .2s; }
.btn-icon:hover { color: #b91c1c; }

/* ══════════════════════════════════════════════════════════════════
   HERO ACCUEIL — Image VISIBLE avec overlay léger
   ══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 5rem 1.5rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  /* Overlay très léger pour garder l'image visible */
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.15) 0%,
    rgba(26,58,92,0.45) 55%,
    rgba(26,58,92,0.75) 100%
  );
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-tag {
  display: inline-block; background: rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.5);
  color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .35rem 1rem; border-radius: 99px; margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 800; line-height: 1.05; margin-bottom: 1.1rem;
  letter-spacing: -.03em; color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hero-title em { font-style: normal; color: var(--gold-light); }
.hero-sub {
  color: rgba(255,255,255,.92); font-size: clamp(.9rem, 2.5vw, 1.08rem);
  max-width: 540px; margin: 0 auto 2rem; line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,.2);
}
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center; margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-head); font-size: 2rem; font-weight: 800;
  color: var(--gold-light); line-height: 1;
}
.hero-stat-label { font-size: .75rem; color: rgba(255,255,255,.75); margin-top: .2rem; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 480px) {
  .hero { min-height: 460px; padding: 3.5rem 1.25rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════════
   BANDE PHOTO DÉFILANTE
   ══════════════════════════════════════════════════════════════════ */
.photo-strip {
  overflow: hidden; background: var(--bg3);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: .6rem 0;
}
.photo-strip-track { display: flex; gap: .6rem; animation: stripScroll 32s linear infinite; width: max-content; }
.photo-strip:hover .photo-strip-track { animation-play-state: paused; }
.strip-item { flex-shrink: 0; width: 185px; height: 110px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.strip-item:hover img { transform: scale(1.06); }
@keyframes stripScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 480px) { .strip-item { width: 130px; height: 78px; } }

/* ══════════════════════════════════════════════════════════════════
   SECTION POURQUOI (accueil)
   ══════════════════════════════════════════════════════════════════ */
.pourquoi-section {
  background: var(--accent); color: #fff;
  padding: 4rem 1.5rem;
}
.pourquoi-inner { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block; font-size: .7rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: .75rem;
}
.pourquoi-section .section-eyebrow { color: var(--gold-light); }
.pourquoi-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.pourquoi-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
}
.pourquoi-icon { font-size: 2rem; margin-bottom: 1rem; }
.pourquoi-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; color: var(--gold-light); }
.pourquoi-card p  { font-size: .88rem; color: rgba(255,255,255,.8); line-height: 1.65; }
@media (max-width: 700px) { .pourquoi-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* ══════════════════════════════════════════════════════════════════
   FILIÈRES
   ══════════════════════════════════════════════════════════════════ */
.filieres-section { max-width: 1200px; margin: 3.5rem auto; padding: 0 1.25rem; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; color: var(--accent); margin-top: .4rem; }
.section-header p   { color: var(--text-muted); margin-top: .45rem; font-size: .92rem; }
.filieres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .9rem; }
.filiere-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1.5px solid var(--border); background: var(--bg2);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.filiere-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.filiere-img-wrap { height: 120px; overflow: hidden; }
.filiere-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.filiere-card:hover .filiere-img-wrap img { transform: scale(1.07); }
.filiere-label { padding: .65rem .9rem; font-size: .78rem; font-weight: 700; color: var(--accent); font-family: var(--font-head); }
@media (max-width: 480px) {
  .filieres-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .filiere-img-wrap { height: 90px; }
}

/* ══════════════════════════════════════════════════════════════════
   ANNUAIRE
   ══════════════════════════════════════════════════════════════════ */
.annuaire { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem 4rem; }
.annuaire-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem;
  padding: 1.5rem; background: var(--bg2);
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.annuaire-title { font-family: var(--font-head); font-size: clamp(1.2rem, 4vw, 1.5rem); font-weight: 800; color: var(--accent); }
.annuaire-count { color: var(--text-muted); font-size: .83rem; margin-top: .2rem; }
.search-bar input {
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text); border-radius: var(--radius);
  padding: .5rem 1rem; font-size: .88rem; width: 260px;
  transition: border-color .2s; box-shadow: var(--shadow-sm);
}
.search-bar input:focus { outline: none; border-color: var(--accent); }
@media (max-width: 560px) {
  .annuaire-header { flex-direction: column; }
  .search-bar input { width: 100%; }
}

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
@media (max-width: 320px) { .cards-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
@media (hover: none) { .card:hover { transform: none; } }
.card-photo {
  position: relative; height: 320px; background: var(--bg3);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-default-photo { object-position: top; }
.card-initials { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.card-lock {
  position: absolute; bottom: .6rem; right: .6rem;
  background: rgba(255,255,255,.9); border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.card-name  { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--accent); }
.card-titre { color: var(--text-muted); font-size: .83rem; line-height: 1.4; }
.card-meta  { display: flex; flex-wrap: wrap; gap: .3rem; }
.card-skills { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto; padding-top: .5rem; }
.chip {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 6px; padding: .2rem .55rem; font-size: .72rem; color: var(--text-muted);
}
.chip--entrevue {
  background: #edfaf4; border-color: #6ed4a4; color: var(--green); font-weight: 600;
}
.skill-tag {
  background: rgba(26,58,92,.08); border: 1px solid rgba(26,58,92,.2);
  color: var(--accent); border-radius: 6px; padding: .18rem .52rem; font-size: .7rem; font-weight: 600;
}
.skill-tag--more { background: var(--bg3); color: var(--text-muted); border-color: var(--border); }
.empty-state {
  grid-column: 1 / -1; text-align: center;
  padding: 4rem 1rem; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.empty-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; opacity: .4; }

/* ══════════════════════════════════════════════════════════════════
   SPORTS
   ══════════════════════════════════════════════════════════════════ */
.sports-section { max-width: 1200px; margin: 3.5rem auto 4rem; padding: 0 1.25rem; }
.sports-section h2 { font-family: var(--font-head); font-size: clamp(1.2rem, 4vw, 1.6rem); font-weight: 800; margin-bottom: 1.25rem; text-align: center; color: var(--accent); }
.sports-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.sport-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  height: 185px; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.sport-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sport-card img { width: 100%; height: 100%; object-fit: cover; }
.sport-card span {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .55rem .85rem;
  background: linear-gradient(transparent, rgba(26,22,18,.8));
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: #fff;
}
@media (max-width: 640px) { .sports-grid { grid-template-columns: 1fr 1fr; } .sport-card { height: 145px; } }

/* ══════════════════════════════════════════════════════════════════
   AUTH
   ══════════════════════════════════════════════════════════════════ */
.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 2.5rem 2rem; width: 100%; max-width: 460px; box-shadow: var(--shadow); }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-icon { font-size: 1.5rem; width: 56px; height: 56px; background: var(--accent-glow); border: 2px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.auth-header h1 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.auth-header p  { color: var(--text-muted); font-size: .9rem; margin-top: .35rem; }
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-footer { text-align: center; color: var(--text-muted); font-size: .85rem; margin-top: 1.25rem; }
.auth-footer a { color: var(--accent-light); font-weight: 600; }

/* ══════════════════════════════════════════════════════════════════
   FORMULAIRES
   ══════════════════════════════════════════════════════════════════ */
.form-wrap { padding: 2rem 1rem 4rem; }
.form-card { max-width: 840px; margin: 0 auto; background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 2.5rem 2rem; box-shadow: var(--shadow); }
.form-header { margin-bottom: 2rem; }
.form-header h1 { font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; color: var(--accent); }
.form-header p  { color: var(--text-muted); margin-top: .45rem; font-size: .9rem; }
.form-section { border-top: 1.5px solid var(--border); padding-top: 1.5rem; margin-bottom: 1.5rem; }
.section-title { font-family: var(--font-head); font-size: .95rem; font-weight: 800; display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; color: var(--accent); }
.section-title span { background: var(--accent); color: #fff; font-size: .68rem; padding: .2rem .6rem; border-radius: 6px; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text); border-radius: var(--radius);
  padding: .65rem .9rem; font-size: .9rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,58,92,.1); }
.field textarea { resize: vertical; }
.field-hint { color: var(--text-light); font-size: .73rem; }
.field--center { justify-content: center; }
.req { color: #b91c1c; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: .9rem; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; padding-top: 1.5rem; border-top: 1.5px solid var(--border); flex-wrap: wrap; }
@media (max-width: 400px) { .form-actions { flex-direction: column; } .form-actions .btn { width: 100%; } }
.comp-row { display: flex; align-items: center; gap: .65rem; margin-bottom: .65rem; flex-wrap: wrap; }
.comp-nom   { flex: 1; min-width: 120px; }
.comp-range { flex: 1; min-width: 80px; max-width: 140px; accent-color: var(--accent); cursor: pointer; }
.comp-val   { font-size: .78rem; color: var(--text-muted); width: 36px; text-align: right; font-weight: 700; }
.real-block { background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.btn-remove-real { background: none; border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; font-size: .76rem; padding: .3rem .7rem; border-radius: 6px; margin-top: .4rem; transition: border-color .2s, color .2s; }
.btn-remove-real:hover { border-color: #b91c1c; color: #b91c1c; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .87rem; color: var(--text-muted); }
.checkbox-label input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════════════════
   MUR CODE D'ACCÈS
   ══════════════════════════════════════════════════════════════════ */
.access-wall { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: var(--bg3); }
.access-card { background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 3rem 2rem; text-align: center; max-width: 480px; width: 100%; box-shadow: var(--shadow-lg); }
.access-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.access-card h1 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.access-card p  { color: var(--text-muted); margin: .7rem 0 1.5rem; font-size: .92rem; }
.access-preview { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-bottom: 1.75rem; padding: 1rem 1.5rem; background: var(--bg3); border-radius: var(--radius-lg); flex-wrap: wrap; }
.ap-photo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--bg3); flex-shrink: 0; border: 2px solid var(--border); }
.ap-photo img { width: 100%; height: 100%; object-fit: cover; }
.ap-initials { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-glow); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.access-form { display: flex; gap: .65rem; justify-content: center; margin-bottom: 1.25rem; flex-wrap: wrap; }
.access-form input { background: var(--bg); border: 1.5px solid var(--border); color: var(--text); border-radius: var(--radius); padding: .65rem 1rem; font-size: .9rem; flex: 1; min-width: 0; transition: border-color .2s; }
.access-form input:focus { outline: none; border-color: var(--accent); }
.back-link { color: var(--text-muted); font-size: .85rem; }
.back-link:hover { color: var(--accent); }
@media (max-width: 400px) { .access-form { flex-direction: column; } .access-form .btn { width: 100%; } }

/* ══════════════════════════════════════════════════════════════════
   PROFIL COMPLET
   ══════════════════════════════════════════════════════════════════ */
.profil-wrap { max-width: 900px; margin: 0 auto; padding: 1.75rem 1rem 5rem; }
.owner-bar { display: flex; align-items: center; justify-content: space-between; background: #eef3ff; border: 1.5px solid rgba(26,58,92,.2); border-radius: var(--radius); padding: .75rem 1.25rem; margin-bottom: 1.25rem; font-size: .83rem; color: var(--accent); flex-wrap: wrap; gap: .5rem; }
.profil-header { display: flex; gap: 1.75rem; align-items: flex-start; background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; margin-bottom: 1.25rem; flex-wrap: wrap; box-shadow: var(--shadow); }
.profil-photo-wrap { flex-shrink: 0; }
.profil-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); box-shadow: var(--shadow); }
.profil-initials { width: 96px; height: 96px; border-radius: 50%; background: var(--accent-glow); border: 3px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--accent); }
.profil-meta { flex: 1; min-width: 0; }
.profil-name  { font-family: var(--font-head); font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 800; color: var(--accent); }
.profil-titre { color: var(--text-muted); font-size: .93rem; margin-bottom: .75rem; }
.profil-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.profil-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.social-link { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .8rem; border-radius: 6px; font-size: .78rem; font-weight: 600; transition: opacity .2s; }
.social-link:hover { opacity: .8; }
.social-link--li   { background: rgba(10,102,194,.1); border: 1px solid rgba(10,102,194,.3); color: #0a66c2; }
.social-link--port { background: rgba(26,58,92,.1); border: 1px solid rgba(26,58,92,.25); color: var(--accent); }
.social-link--fb   { background: rgba(66,103,178,.1); border: 1px solid rgba(66,103,178,.25); color: #4267b2; }
.profil-body { display: flex; flex-direction: column; gap: 1.1rem; }
.profil-section { background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.ps-title { font-family: var(--font-head); font-size: 1rem; font-weight: 800; color: var(--accent); margin-bottom: 1.1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--border); }
.profil-bio { color: var(--text-muted); line-height: 1.75; font-size: .92rem; }
.profil-back { margin-top: 1.5rem; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 480px) { .skills-grid { grid-template-columns: 1fr; } }
.skill-bar-wrap { display: flex; flex-direction: column; gap: .35rem; }
.skill-bar-header { display: flex; justify-content: space-between; font-size: .83rem; font-weight: 500; }
.skill-pct { color: var(--accent); font-weight: 700; }
.skill-bar-bg { background: var(--bg3); border-radius: 99px; height: 7px; overflow: hidden; }
.skill-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); width: var(--w); animation: barGrow .8s ease forwards; }
@keyframes barGrow { from { width: 0; } to { width: var(--w); } }
.reals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 540px) { .reals-grid { grid-template-columns: 1fr; } }
.real-card { background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.real-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.real-card-header h3 { font-family: var(--font-head); font-size: .92rem; font-weight: 700; color: var(--accent); min-width: 0; }
.real-link { color: var(--accent-light); font-size: .72rem; font-weight: 600; flex-shrink: 0; padding: .2rem .55rem; border: 1px solid var(--accent-light); border-radius: 6px; }
.real-desc  { color: var(--text-muted); font-size: .83rem; line-height: 1.65; }
.real-techs { display: flex; flex-wrap: wrap; gap: .3rem; }

/* ── Certifications (profil display) ─────────────────────────────────────── */
.certs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 540px) { .certs-grid { grid-template-columns: 1fr; } }
.cert-card { background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.cert-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.cert-nom { font-family: var(--font-head); font-size: .92rem; font-weight: 700; color: var(--accent); margin: 0 0 .2rem; }
.cert-organisme { font-size: .8rem; color: var(--text-muted); margin: 0; }
/* ── Certifications (form row) ───────────────────────────────────────────── */
.cert-row { background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; display: flex; flex-direction: column; gap: .5rem; }

/* ══════════════════════════════════════════════════════════════════
   PAGE ENTREPRISES
   ══════════════════════════════════════════════════════════════════ */
.ent-hero { position: relative; overflow: hidden; height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; }
.ent-hero-bg { position: absolute; inset: 0; }
.ent-hero-img { width: 100%; height: 100%; object-fit: cover; }
.ent-hero-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.05) 0%, rgba(26,58,92,.6) 100%); }
.ent-hero-content { position: relative; z-index: 1; padding: 1.5rem; max-width: 600px; }
@media (max-width: 480px) { .ent-hero { height: 260px; } }

.ent-toolbar { max-width: 1200px; margin: 1.5rem auto .75rem; padding: 0 1.25rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ent-count { color: var(--text-muted); font-size: .83rem; flex: 1; min-width: 80px; }
.view-switcher { display: flex; gap: .3rem; }
.view-btn { display: flex; align-items: center; gap: .35rem; background: var(--bg2); border: 1.5px solid var(--border); color: var(--text-muted); border-radius: var(--radius); padding: .4rem .8rem; font-size: .8rem; cursor: pointer; font-family: var(--font-head); font-weight: 700; transition: border-color .2s, color .2s, background .2s; }
.view-btn:hover { border-color: var(--accent); color: var(--accent); }
.view-btn--active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ent-search { flex: 1; min-width: 160px; max-width: 280px; }
.ent-search input { background: var(--bg2); border: 1.5px solid var(--border); color: var(--text); border-radius: var(--radius); padding: .42rem .9rem; font-size: .85rem; width: 100%; transition: border-color .2s; }
.ent-search input:focus { outline: none; border-color: var(--accent); }
@media (max-width: 480px) { .ent-search { max-width: 100%; width: 100%; order: 3; flex-basis: 100%; } }

.ent-wrap { max-width: 1200px; margin: 0 auto 3rem; padding: 0 1.25rem; }
.ent-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.ent-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--bg2); border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--border); }
@media (max-width: 640px) {
  .ent-table { min-width: 0; }
  .ent-table thead th:nth-child(3),
  .ent-table tbody td.td-desc { display: none; }
}
.ent-table thead tr { background: var(--accent); }
.ent-table th { font-family: var(--font-head); font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.9); padding: .9rem 1rem; text-align: left; border-bottom: none; white-space: nowrap; }
.ent-table td { padding: .85rem 1rem; font-size: .85rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.ent-table tbody tr { transition: background .15s; }
.ent-table tbody tr:hover { background: var(--bg3); }
.ent-table tbody tr:last-child td { border-bottom: none; }
.td-num  { color: var(--text-light); font-size: .72rem; width: 36px; font-weight: 700; }
.td-name { font-family: var(--font-head); font-weight: 700; white-space: nowrap; color: var(--accent); }
.td-desc { color: var(--text-muted); font-size: .82rem; }
.dom-tag { display: inline-block; background: rgba(26,58,92,.08); border: 1px solid rgba(26,58,92,.2); color: var(--accent); border-radius: 6px; padding: .13rem .45rem; font-size: .7rem; font-weight: 600; margin: .1rem .08rem; }

.ent-lignes { display: flex; flex-direction: column; gap: 2px; }
.ent-ligne-block { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 2px; }
.ent-ligne { display: flex; align-items: center; gap: .9rem; padding: .7rem 1.1rem; transition: background .15s; }
.ent-ligne--nom { background: var(--accent); cursor: pointer; }
.ent-ligne--nom:hover { background: var(--accent-light); }
.ent-ligne-num { font-family: var(--font-head); font-weight: 800; font-size: .72rem; color: var(--gold-light); width: 26px; flex-shrink: 0; }
.ent-ligne-text { flex: 1; font-size: .9rem; font-family: var(--font-head); font-weight: 700; color: #fff; }
.ent-ligne-toggle { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; cursor: pointer; transition: background .2s; }
.ent-ligne-toggle:hover { background: rgba(255,255,255,.35); }
.ent-ligne--desc { background: #eef3ff; border-left: 3px solid var(--accent); display: none; }
.ent-ligne--dom  { background: var(--bg3); border-left: 3px solid var(--border-dark); display: none; }
.ent-ligne-detail--open { display: flex !important; }
.ent-ligne-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); width: 72px; flex-shrink: 0; }
.ent-ligne--desc .ent-ligne-text { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--text-muted); }
.dom-tag--light { display: inline-block; background: rgba(26,58,92,.08); border: 1px solid rgba(26,58,92,.2); color: var(--accent); border-radius: 6px; padding: .1rem .42rem; font-size: .7rem; font-weight: 600; margin: .08rem; }
@media (max-width: 480px) { .ent-ligne { padding: .55rem .75rem; gap: .6rem; } .ent-ligne-label { width: 58px; font-size: .63rem; } }

.ent-gallery { max-width: 1200px; margin: 0 auto 4rem; padding: 0 1.25rem; }
.ent-gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: .75rem; }
.gal-item { border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gal-item:hover img { transform: scale(1.04); }
.gal-item--large { grid-row: span 2; }
@media (max-width: 640px) { .ent-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 120px 120px 120px; } .gal-item--large { grid-row: span 1; } }
@media (max-width: 380px) { .ent-gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; } .gal-item { height: 160px; } }

/* ══════════════════════════════════════════════════════════════════
   PAGES STATIQUES (qui sommes nous, mission, utilitaires, guide)
   ══════════════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--accent); color: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 250px; height: 250px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.page-hero::after {
  content: ''; position: absolute; bottom: -80px; left: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(200,134,10,.15);
}
.page-hero .hero-tag { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; margin-top: .5rem; letter-spacing: -.02em; }
.page-hero p   { color: rgba(255,255,255,.8); font-size: 1rem; max-width: 580px; margin: .75rem auto 0; }

.page-content { max-width: 900px; margin: 3rem auto 5rem; padding: 0 1.25rem; }
.page-content section { margin-bottom: 3rem; }

.content-block {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.content-block h2 {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 800;
  color: var(--accent); margin-bottom: 1rem;
  padding-bottom: .6rem; border-bottom: 2px solid var(--border);
}
.content-block p { color: var(--text-muted); line-height: 1.8; font-size: .93rem; margin-bottom: .85rem; }
.content-block p:last-child { margin-bottom: 0; }
.content-block strong { color: var(--accent); font-weight: 700; }
.content-block em { color: var(--gold); font-style: normal; font-weight: 600; }

/* ── Page Augmenter en compétences ──────────────────────────────────────── */
.ressources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.ressource-card {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem;
  text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ressource-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.ressource-card h3 { font-family: var(--font-head); font-size: .97rem; font-weight: 800; color: var(--accent); }
.ressource-card p  { color: var(--text-muted); font-size: .83rem; line-height: 1.65; flex: 1; }
.ressource-badge {
  display: inline-block; align-self: flex-start;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 99px;
}
.ressource-badge.gratuit  { background: #edfaf4; color: var(--green); border: 1px solid #6ed4a4; }
.ressource-badge.freemium { background: #eff6ff; color: #1d4ed8; border: 1px solid #93c5fd; }
.ressource-badge.payant   { background: var(--gold-glow); color: var(--gold); border: 1px solid var(--gold-light); }
.ressources-legende { margin-top: 1rem; font-size: .82rem; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ressource-domaines { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto; padding-top: .5rem; }
.ressource-domaines span {
  font-size: .7rem; font-weight: 600; color: var(--accent);
  background: var(--accent-glow); border: 1px solid rgba(26,58,92,.15);
  border-radius: 99px; padding: .15rem .5rem;
}

.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .75rem 2rem; border-radius: var(--radius);
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: background .2s, box-shadow .2s;
}
.btn-primary:hover { background: var(--accent-light); box-shadow: var(--shadow); }

/* ══════════════════════════════════════════════════════════════════
   PAGE STATISTIQUES
   ══════════════════════════════════════════════════════════════════ */
.stats-login-card {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem 2rem;
  width: 100%; max-width: 380px; box-shadow: var(--shadow);
  text-align: center;
}
.stats-login-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--accent); margin-bottom: .4rem; }
.stats-login-sub   { color: var(--text-muted); font-size: .88rem; margin-bottom: 1.5rem; }
.stats-login-input {
  width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: .95rem; background: var(--bg);
  color: var(--text); margin-bottom: .75rem; outline: none;
  transition: border-color .2s;
}
.stats-login-input:focus { border-color: var(--accent); }
.stats-login-btn {
  width: 100%; background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .7rem; border: none; border-radius: var(--radius);
  cursor: pointer; transition: background .2s;
}
.stats-login-btn:hover { background: var(--accent-light); }

.stats-wrap { max-width: 1000px; margin: 2.5rem auto 5rem; padding: 0 1.25rem; }
.stats-section { background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; }
.stats-h2 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: var(--accent); margin-bottom: 1rem; }

.stats-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stats-card { background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.stats-card-val { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--accent); }
.stats-card-lbl { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }

.stats-chart { display: flex; align-items: flex-end; gap: .4rem; height: 160px; padding-bottom: 1.75rem; position: relative; }
.stats-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; height: 100%; justify-content: flex-end; }
.stats-bar-count { font-size: .65rem; color: var(--text-muted); min-height: 14px; }
.stats-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.stats-bar-fill  { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .3s; }
.stats-bar-lbl   { font-size: .62rem; color: var(--text-muted); white-space: nowrap; position: absolute; bottom: 0; }

.stats-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.stats-table thead tr { border-bottom: 2px solid var(--border); }
.stats-table th { text-align: left; padding: .5rem .75rem; font-size: .75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stats-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--bg3); }
.stats-table tbody tr:last-child td { border-bottom: none; }
.stats-table tbody tr:hover { background: var(--bg3); }
.stats-rank  { color: var(--text-light); font-size: .8rem; width: 2rem; }
.stats-count { font-weight: 700; color: var(--accent); text-align: right; }
.stats-muted { color: var(--text-muted) !important; font-weight: 500 !important; }
.stats-route { font-family: var(--font-body); font-size: .85rem; background: var(--bg3); padding: .15rem .45rem; border-radius: 5px; color: var(--text); }

.stats-geo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }

.stats-logout { color: var(--text-muted); font-size: .82rem; text-decoration: underline; cursor: pointer; }
.stats-logout:hover { color: var(--accent); }

@media (max-width: 700px) {
  .stats-cards { grid-template-columns: 1fr 1fr; }
  .stats-geo   { grid-template-columns: 1fr; }
  .stats-chart { gap: .2rem; }
  .stats-bar-lbl { font-size: .55rem; }
}

.quote-block {
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, rgba(200,134,10,.06) 0%, rgba(26,58,92,.04) 100%);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.5rem 2rem; margin: 1.5rem 0;
}
.quote-block p { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--accent); font-style: italic; margin: 0; line-height: 1.6; }

.stat-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.stat-box {
  flex: 1; min-width: 140px; text-align: center;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-lg); padding: 1.5rem 1rem;
}
.stat-box-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--gold-light); line-height: 1; }
.stat-box-label { font-size: .75rem; margin-top: .4rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .07em; }

.step-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.step-item { display: flex; gap: 1rem; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; margin-top: .1rem; }
.step-body h3 { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .95rem; }
.step-body p  { font-size: .87rem; color: var(--text-muted); margin-top: .25rem; line-height: 1.65; }

.images-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.5rem 0; }
.images-row.three { grid-template-columns: 1fr 1fr 1fr; }
.images-row img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-lg); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
@media (max-width: 560px) { .images-row, .images-row.three { grid-template-columns: 1fr; } .images-row img { height: 160px; } }

.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1rem; }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }
.video-card { background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-card-title { padding: .75rem 1rem; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--accent); background: var(--bg2); border-bottom: 1px solid var(--border); }
.video-card iframe { width: 100%; aspect-ratio: 16/9; display: block; border: none; }

.guide-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 580px) { .guide-cards { grid-template-columns: 1fr; } }
.guide-card {
  background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  border-top: 4px solid var(--accent);
  transition: box-shadow .2s, transform .2s;
}
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.guide-card-icon { font-size: 1.8rem; margin-bottom: .75rem; }
.guide-card h3 { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 1rem; margin-bottom: .5rem; }
.guide-card p  { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }

.highlight-box {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff; border-radius: var(--radius-xl); padding: 2.5rem 2rem;
  text-align: center; margin: 2rem 0;
}
.highlight-box h2 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; margin-bottom: .75rem; }
.highlight-box p  { color: rgba(255,255,255,.85); font-size: .95rem; max-width: 500px; margin: 0 auto 1.5rem; }

/* ══════════════════════════════════════════════════════════════════
   TÉMOIGNAGES
   ══════════════════════════════════════════════════════════════════ */

/* Hero spécifique témoignages */
.page-hero--temoignages {
  background: linear-gradient(135deg, #0f2744 0%, var(--accent) 60%, #1a5c3a 100%);
}

/* Layout sidebar + main */
.tem-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.25rem;
  align-items: start;
}
@media (max-width: 820px) {
  .tem-layout { grid-template-columns: 1fr; }
}

/* ── Sidebar ── */
.tem-sidebar-inner {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  box-shadow: var(--shadow-sm);
}
.tem-sidebar-title {
  font-family: var(--font-head);
  font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1.5px solid var(--border);
}
.tem-fil-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .75rem; border-radius: var(--radius);
  color: var(--text-muted); font-size: .87rem;
  transition: background .15s, color .15s;
  margin-bottom: .2rem; text-decoration: none;
}
.tem-fil-link:hover { background: var(--accent-glow); color: var(--accent); }
.tem-fil-link--active {
  background: var(--accent); color: #fff;
  font-weight: 700;
}
.tem-fil-link--active .tem-fil-count {
  background: rgba(255,255,255,.25); color: #fff;
}
.tem-fil-label { flex: 1; }
.tem-fil-count {
  background: var(--bg3); color: var(--text-muted);
  font-size: .7rem; font-weight: 700;
  padding: .15rem .45rem; border-radius: 99px;
  margin-left: .5rem; flex-shrink: 0;
}
.tem-sidebar-cta { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1.5px solid var(--border); }

/* ── Grille témoignages ── */
.tem-main { min-width: 0; }
.tem-grid { display: flex; flex-direction: column; gap: 1.75rem; }

/* ── Carte témoignage ── */
.tem-card {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.tem-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.tem-card-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--bg3);
  border-bottom: 1.5px solid var(--border);
  flex-wrap: wrap;
}
.tem-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--accent);
}
.tem-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tem-avatar-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow);
  font-family: var(--font-head); font-weight: 800;
  color: var(--accent); font-size: 1rem;
}
.tem-card-author { flex: 1; min-width: 0; }
.tem-card-author strong { display: block; font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .95rem; }
.tem-card-filiere { font-size: .75rem; color: var(--text-muted); margin-top: .1rem; display: block; }
.tem-card-meta-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.tem-del-btn { color: #b91c1c !important; font-size: .85rem; padding: .2rem .4rem; }

.tem-card-body { padding: 1.5rem; }
.tem-card-title {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 800;
  color: var(--accent); margin-bottom: .75rem;
}
.tem-card-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tem-chip--entreprise { background: rgba(26,58,92,.08); border-color: rgba(26,58,92,.2); color: var(--accent); }
.tem-card-texte {
  color: var(--text-muted); line-height: 1.8; font-size: .92rem;
  margin-bottom: 1.25rem;
  /* Texte tronqué à 5 lignes avec "Lire la suite" géré en CSS */
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tem-card:target .tem-card-texte,
.tem-card-texte:focus { -webkit-line-clamp: unset; overflow: visible; }

/* ── Vidéos ── */
.tem-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.tem-video-block { display: flex; flex-direction: column; gap: .4rem; }
.tem-video-titre {
  font-size: .8rem; font-weight: 700;
  color: var(--accent); font-family: var(--font-head);
}
.tem-video {
  width: 100%; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: #000;
  max-height: 300px;
  box-shadow: var(--shadow-sm);
}

.tem-card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.tem-profil-link {
  font-size: .83rem; font-weight: 600; color: var(--accent-light);
  transition: color .2s;
}
.tem-profil-link:hover { color: var(--accent); }

/* ── État vide ── */
.tem-empty {
  text-align: center; padding: 4rem 1rem;
  color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  background: var(--bg2); border: 1.5px dashed var(--border);
  border-radius: var(--radius-xl);
}
.tem-empty-icon { font-size: 3rem; }
.tem-empty h2 { font-family: var(--font-head); font-size: 1.2rem; color: var(--accent); }

/* ── Barre CTA bas de page ── */
.tem-cta-bar {
  background: var(--accent);
  padding: 1.5rem;
}
.tem-cta-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; color: #fff;
}
@media (max-width: 600px) { .tem-cta-inner { flex-direction: column; text-align: center; } }

/* ── Formulaire ajout témoignage ── */
.tem-video-upload-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
@media (max-width: 560px) { .tem-video-upload-row { grid-template-columns: 1fr; } }
.tem-video-upload-block {
  background: var(--bg3); border: 1.5px dashed var(--border-dark);
  border-radius: var(--radius-lg); padding: 1.5rem;
  text-align: center;
}
.tem-video-icon { font-size: 2rem; margin-bottom: .5rem; }
.tem-video-upload-block h3 {
  font-family: var(--font-head); font-weight: 700;
  color: var(--accent); font-size: .95rem; margin-bottom: 1rem;
}
.tem-video-upload-block .field { text-align: left; }

/* ══════════════════════════════════════════════════════════════════
   PAGE ARCHIVES (temoignages_archives.html)
   ══════════════════════════════════════════════════════════════════ */

/* Hero archives : dégradé or + marine (distinctif des témoignages dynamiques) */
.page-hero--archives {
  background: linear-gradient(135deg, #1a2a0f 0%, #2d4a1e 30%, #7a5c0a 70%, #c8860a 100%);
}
.page-hero--temoignages {
  background: linear-gradient(135deg, #0f2744 0%, var(--accent) 60%, #1a5c3a 100%);
}

/* ── Intro éditoriale ── */
.arch-intro { background: var(--bg3); border-bottom: 1.5px solid var(--border); }
.arch-intro-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid; grid-template-columns: 1fr auto;
  gap: 2.5rem; align-items: center;
}
@media (max-width: 700px) { .arch-intro-inner { grid-template-columns: 1fr; } }
.arch-intro-text h2 {
  font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800; color: var(--accent); margin: .35rem 0 .75rem;
}
.arch-intro-text p { color: var(--text-muted); font-size: .93rem; line-height: 1.75; max-width: 520px; }
.arch-intro-stats {
  display: flex; flex-direction: column; gap: .75rem; flex-shrink: 0;
}
@media (max-width: 700px) { .arch-intro-stats { flex-direction: row; flex-wrap: wrap; } }
.arch-intro-stats .stat-box { min-width: 120px; }

/* ── Barre de navigation par filière ── */
.arch-nav-bar {
  background: var(--accent);
  padding: .75rem 1.25rem;
  position: sticky; top: var(--nav-h); z-index: 10;
  box-shadow: 0 2px 8px rgba(26,22,18,.15);
}
.arch-nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.arch-nav-label {
  color: rgba(255,255,255,.7); font-size: .75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  margin-right: .25rem;
}
.arch-nav-pill {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: .3rem .85rem; border-radius: 99px;
  font-size: .78rem; font-weight: 600;
  transition: background .2s;
}
.arch-nav-pill:hover { background: rgba(255,255,255,.3); color: #fff; }

/* ── Section stagiaire ── */
.arch-section { padding: 4rem 0; }
.arch-section:nth-child(even) { background: var(--bg3); }
.arch-section-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Header stagiaire */
.arch-stagiaire-header {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 1.5rem; align-items: start;
  margin-bottom: 2.5rem;
}
.arch-stagiaire-header--reverse { }
@media (max-width: 640px) {
  .arch-stagiaire-header { grid-template-columns: auto 1fr; }
  .arch-stagiaire-photo { display: none; }
}

.arch-stagiaire-num {
  font-family: var(--font-head); font-size: 4rem; font-weight: 800;
  color: var(--border-dark); line-height: 1; padding-top: .2rem;
  user-select: none;
}
.arch-filiere-badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 99px; margin-bottom: .6rem;
}
.arch-filiere-badge--info  { background: rgba(26,58,92,.1);  border: 1px solid rgba(26,58,92,.2);  color: var(--accent); }
.arch-filiere-badge--math  { background: rgba(200,134,10,.1); border: 1px solid rgba(200,134,10,.25); color: var(--gold); }
.arch-filiere-badge--ref   { background: var(--bg3); border: 1px solid var(--border); color: var(--text-muted); }

.arch-stagiaire-name {
  font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800; color: var(--accent); margin-bottom: .4rem;
}
.arch-stagiaire-sub { color: var(--gold); font-weight: 600; font-size: .9rem; margin-bottom: .65rem; }
.arch-stagiaire-bio { color: var(--text-muted); font-size: .9rem; line-height: 1.75; max-width: 500px; }

.arch-initiales {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: #fff;
  box-shadow: var(--shadow);
}
.arch-initiales--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

/* ── Grille vidéos (2 colonnes pour les sections stagiaires) ── */
.arch-videos-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 680px) { .arch-videos-grid { grid-template-columns: 1fr; } }

/* ── Grille références (3 colonnes) ── */
.arch-refs-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 820px) { .arch-refs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px)  { .arch-refs-grid { grid-template-columns: 1fr; } }

/* ── Carte vidéo ── */
.arch-video-card {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.arch-video-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.arch-video-card--ref { border-top: 3px solid var(--gold); }

.arch-video-card-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.arch-video-num {
  display: inline-block; font-size: .65rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: .18rem .6rem; border-radius: 4px; margin-bottom: .5rem;
}
.arch-video-card--ref .arch-video-num { background: var(--gold); }
.arch-video-card-header h3 {
  font-family: var(--font-head); font-size: .95rem; font-weight: 700;
  color: var(--accent); margin-bottom: .3rem;
}
.arch-video-card-header p { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }

.arch-video-wrap { flex: 1; background: #000; }
.arch-video-wrap video {
  width: 100%; display: block;
  border: none; border-radius: 0;
  max-height: 280px;
}

/* ── Leçon retenue ── */
.arch-lecon {
  display: flex; gap: 1rem; align-items: flex-start;
  background: linear-gradient(135deg, rgba(26,58,92,.06) 0%, rgba(200,134,10,.05) 100%);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.25rem 1.5rem;
}
.arch-lecon-icon { font-size: 1.4rem; flex-shrink: 0; }
.arch-lecon p    { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }
.arch-lecon strong { color: var(--accent); }

/* ── Séparateur ornemental ── */
.arch-separator {
  text-align: center; padding: 2rem 0;
  color: var(--border-dark); font-size: 1.5rem;
  letter-spacing: .5rem;
}

/* ── Header références ── */
.arch-refs-header { margin-bottom: 1rem; }
.arch-refs-header h2 {
  font-family: var(--font-head); font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 800; color: var(--accent); margin: .4rem 0 .6rem;
}
.arch-refs-header p { color: var(--text-muted); font-size: .9rem; line-height: 1.75; max-width: 640px; }

/* ── Note de contact ── */
.arch-contact-note {
  background: var(--accent); color: #fff;
  border-radius: var(--radius-xl); padding: 1.5rem 2rem;
  margin-top: 2rem; font-size: .9rem; line-height: 1.8;
}
.arch-contact-note strong { color: var(--gold-light); }

/* ── Liens sidebar archives ── */
.tem-sidebar-sep {
  height: 1px; background: var(--border); margin: .75rem 0;
}
.tem-archives-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .75rem; border-radius: var(--radius);
  color: var(--gold); font-size: .83rem; font-weight: 600;
  background: rgba(200,134,10,.07); border: 1px solid rgba(200,134,10,.2);
  transition: background .15s;
  text-decoration: none;
}
.tem-archives-link:hover { background: rgba(200,134,10,.15); color: var(--gold); }
