/* StudyAlready - Styles personnalisés (complète Tailwind) */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Socle local pour les pages clés : évite un rendu brut si le CDN Tailwind
   arrive lentement ou est bloqué sur mobile. */
.font-sans { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.font-display { font-family: Poppins, Inter, system-ui, sans-serif; }
.text-brand-dark { color: #0a2540; }
.text-brand-blue { color: #1e3a8a; }
.text-brand-gold { color: #f5b800; }
.bg-brand-dark { background-color: #0a2540; }
.bg-brand-blue { background-color: #1e3a8a; }
.bg-brand-gold { background-color: #f5b800; }
.bg-brand-cream { background-color: #fff8e7; }
.bg-white { background-color: #fff; }
.text-white { color: #fff; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.fixed { position: fixed; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.inline-flex { display: inline-flex; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; border-style: solid; }
.border-t-4 { border-top-width: 4px; border-top-style: solid; }
.border-brand-gold { border-color: #f5b800; }
.max-w-md { max-width: 28rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.pt-8 { padding-top: 2rem; }
.pt-28 { padding-top: 7rem; }
.pb-0 { padding-bottom: 0; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-14 { padding-bottom: 3.5rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-5 { margin-bottom: 1.25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-8 { gap: 2rem; }
.leading-tight { line-height: 1.15; }
.leading-snug { line-height: 1.35; }
.uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.tracking-wider { letter-spacing: .05em; }
.tracking-widest { letter-spacing: .1em; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops, #0a2540, #1e3a8a, #0a2540)); }
.from-brand-dark { --tw-gradient-from: #0a2540; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(10,37,64,0)); }
.via-brand-blue { --tw-gradient-stops: var(--tw-gradient-from), #1e3a8a, var(--tw-gradient-to, rgba(30,58,138,0)); }
.to-brand-dark { --tw-gradient-to: #0a2540; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-400 { color: #94a3b8; }
.text-slate-600 { color: #475569; }
.bg-white\/90 { background-color: rgba(255,255,255,.9); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.border-slate-200 { border-color: #e2e8f0; }
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex-wrap { flex-wrap: wrap; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-center { justify-content: center; }
  .sm\:text-xs { font-size: .75rem; line-height: 1rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:pt-9 { padding-top: 2.25rem; }
  .lg\:pb-16 { padding-bottom: 4rem; }
  .lg\:mb-6 { margin-bottom: 1.5rem; }
  .lg\:gap-10 { gap: 2.5rem; }
}

/* Sélection de texte aux couleurs de la marque */
::selection {
  background-color: #f5b800;
  color: #0a2540;
}

/* Scrollbar personnalisée (Chrome / Edge) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #0a2540;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1e3a8a;
}

/* Animation au scroll (utilisée par main.js) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibilité : pas d'animation masquante si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Header rétréci au scroll */
#header.scrolled {
  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.08);
}

/* Détails (FAQ) : retire la flèche par défaut */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Focus states accessibles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 2px;
}

/* Bouton WhatsApp flottant (main.js — hors chemins contenant « admin ») */
.sa-float-wa {
  position: fixed;
  right: 14px;
  bottom: 88px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 9999px;
  background: #128c7e;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sa-float-wa:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.sa-float-wa__inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-float-wa__icon {
  display: flex;
  line-height: 0;
}
.sa-float-wa__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.95;
}
@media (min-width: 640px) {
  .sa-float-wa {
    bottom: 24px;
  }
}

/* --------------------------------------------------------------------------
   Articles blog — typographie hors plugin « typography » du CDN Tailwind
   (les classes prose ne sont pas actives sans @tailwindcss/typography).
   -------------------------------------------------------------------------- */

.sa-blog-article-body {
  box-sizing: border-box;
  max-width: 40rem; /* ~64 car., lecture confortable */
  margin-left: auto;
  margin-right: auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #334155;
}

.sa-blog-article-body > p {
  margin: 0 0 1.25rem;
}

.sa-blog-article-body h2 {
  font-family: Poppins, system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: #0a2540;
  margin: 3rem 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  scroll-margin-top: 6.5rem;
}

.sa-blog-article-body h3 {
  font-family: Poppins, system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a2540;
  margin: 2rem 0 0.65rem;
}

.sa-blog-article-body ul,
.sa-blog-article-body ol {
  margin: 1rem 0 1.25rem;
  padding-left: 1.35rem;
}

.sa-blog-article-body li {
  margin: 0.45rem 0;
}

.sa-blog-article-body ul li::marker {
  color: #f5b800;
}

.sa-blog-article-body ol li::marker {
  color: #f5b800;
  font-weight: 700;
}

.sa-blog-article-body a {
  color: #1e40af;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sa-blog-article-body a:hover {
  color: #1e3a8a;
}

.sa-blog-article-body strong {
  color: #0a2540;
  font-weight: 600;
}

.sa-blog-article-body em {
  font-style: italic;
}

.sa-blog-article-body sup {
  font-size: 0.72em;
  vertical-align: super;
}

/* Encadrés « À retenir » / crème dans le flux article */
.sa-blog-article-body .not-prose {
  box-sizing: border-box;
}

/* Sommaire */
.sa-blog-sommaire {
  margin: 0 0 2.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

@media (min-width: 640px) {
  .sa-blog-sommaire {
    padding: 1.5rem 1.75rem;
  }
}

.sa-blog-sommaire-title {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e40af;
}

.sa-blog-sommaire-ol {
  margin: 0;
  padding-left: 1.25rem;
  list-style-type: decimal;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #475569;
}

.sa-blog-sommaire-ol li {
  margin: 0.45rem 0;
  padding-left: 0.25rem;
}

.sa-blog-sommaire-ol a {
  color: #1e40af;
  font-weight: 600;
  text-decoration: none;
}

.sa-blog-sommaire-ol a:hover {
  text-decoration: underline;
}

/* Chapô hors grille typographique (optionnel sur les articles) */
.sa-blog-lead {
  margin: 0 0 2.5rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #475569;
}

/* Compteurs communauté (pages publiques d'adhésion) */
.sa-community-stats {
  margin-top: 1.75rem;
}
.sa-community-stats-lead {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.65rem;
}
.sa-community-stats--hero .sa-community-stats-lead {
  color: #f5b800;
}
.sa-community-stats--hero.mx-0 .sa-community-stats-lead,
.sa-community-stats--hero.mx-0 .sa-community-stats-foot {
  text-align: left;
}
.sa-community-stats--hero.mx-0 .sa-community-stats-grid {
  margin-left: 0;
  margin-right: auto;
  max-width: 28rem;
}
.sa-community-stats--light .sa-community-stats-lead {
  color: #1e3a8a;
}
.sa-community-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {
  .sa-community-stats-grid {
    max-width: 26rem;
    gap: 0.65rem;
  }
}
.sa-community-stats-card {
  border-radius: 0.75rem;
  padding: 0.75rem 0.35rem;
  text-align: center;
}
.sa-community-stats--hero .sa-community-stats-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.sa-community-stats--light .sa-community-stats-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sa-community-stats-card strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
  font-family: Poppins, system-ui, sans-serif;
}
@media (min-width: 640px) {
  .sa-community-stats-card strong {
    font-size: 1.6rem;
  }
}
.sa-community-stats--hero .sa-community-stats-card strong {
  color: #f5b800;
}
.sa-community-stats--light .sa-community-stats-card strong {
  color: #0a2540;
}
.sa-community-stats-card span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  line-height: 1.2;
}
.sa-community-stats--hero .sa-community-stats-card span {
  color: rgba(226, 232, 240, 0.92);
}
.sa-community-stats--light .sa-community-stats-card span {
  color: #64748b;
}
.sa-community-stats-foot {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.35;
}
.sa-community-stats--hero .sa-community-stats-foot {
  color: rgba(203, 213, 225, 0.85);
}
.sa-community-stats--light .sa-community-stats-foot {
  color: #64748b;
}
@keyframes sa-stats-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.sa-community-stats-pulse {
  animation: sa-stats-pulse 1.2s ease-in-out infinite;
}

/* Matrice étudiants / pros × Belgique / Cameroun */
.sa-community-matrix {
  margin-top: 2.5rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
.sa-community-matrix-lead {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f5b800;
  margin-bottom: 1rem;
}
.sa-community-matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .sa-community-matrix-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}
.sa-community-matrix-block {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.sa-community-matrix-block--students {
  box-shadow: 0 4px 24px rgba(30, 58, 138, 0.25);
}
.sa-community-matrix-block--pros {
  box-shadow: 0 4px 24px rgba(245, 184, 0, 0.12);
}
.sa-community-matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.sa-community-matrix-block--students .sa-community-matrix-head {
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.55), rgba(10, 37, 64, 0.2));
}
.sa-community-matrix-block--pros .sa-community-matrix-head {
  background: linear-gradient(90deg, rgba(245, 184, 0, 0.22), rgba(10, 37, 64, 0.15));
}
.sa-community-matrix-title {
  font-family: Poppins, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sa-community-matrix-total {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f5b800;
  font-family: Poppins, system-ui, sans-serif;
  line-height: 1;
}
.sa-community-matrix-subs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.sa-community-matrix-sub {
  padding: 1rem 0.85rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.sa-community-matrix-sub:last-child {
  border-right: none;
}
.sa-community-matrix-sub strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  font-family: Poppins, system-ui, sans-serif;
  color: #f5b800;
  line-height: 1.1;
}
@media (min-width: 640px) {
  .sa-community-matrix-sub strong {
    font-size: 2rem;
  }
}
.sa-community-matrix-sub-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sa-community-matrix-sub-flag {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.65rem;
  color: rgba(203, 213, 225, 0.8);
}
.sa-community-matrix-sub a {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.15s, border-color 0.15s;
}
.sa-community-matrix-sub a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #f5b800;
  color: #f5b800;
}
.sa-community-matrix-foot {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(203, 213, 225, 0.85);
}
.sa-community-matrix-sub--compact a {
  display: none;
}
.sa-community-matrix-sub--compact {
  padding-bottom: 0.85rem;
}

/* Intro compacte — portes d'entrée communauté */
.sa-portes-intro-row {
  line-height: 1.25;
}
@media (min-width: 640px) {
  .sa-portes-intro-row {
    flex-wrap: nowrap;
  }
  .sa-portes-intro > p {
    white-space: nowrap;
  }
}
@media (max-width: 639px) {
  .sa-portes-intro > p {
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Portes d'entrée Communauté (Étudiants / Professionnels) */
.sa-porte-card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(10, 37, 64, 0.08);
  overflow: hidden;
}
.sa-porte-card--etudiants {
  border-top: 4px solid #1e3a8a;
}
.sa-porte-card--pros {
  border-top: 4px solid #f5b800;
}
.sa-porte-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.sa-porte-card--etudiants .sa-porte-head {
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}
.sa-porte-card--pros .sa-porte-head {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.sa-porte-head-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sa-porte-icon {
  font-size: 1.75rem;
  line-height: 1;
}
.sa-porte-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.sa-porte-title {
  font-family: Poppins, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0a2540;
  line-height: 1.2;
}
.sa-porte-total {
  text-align: right;
  flex-shrink: 0;
}
.sa-porte-total span:first-child {
  display: block;
  font-family: Poppins, system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1;
}
.sa-porte-card--pros .sa-porte-total span:first-child {
  color: #b45309;
}
.sa-porte-total-label {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sa-porte-subs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px) {
  .sa-porte-subs {
    grid-template-columns: 1fr;
  }
  .sa-porte-sub:first-child {
    border-bottom: 1px solid #e2e8f0;
  }
}
.sa-porte-sub {
  padding: 1.1rem 1rem 1.25rem;
  border-right: 1px solid #e2e8f0;
}
.sa-porte-sub:last-child {
  border-right: none;
}
@media (max-width: 520px) {
  .sa-porte-sub {
    border-right: none;
  }
}
.sa-porte-sub-count {
  font-family: Poppins, system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0a2540;
  line-height: 1;
  margin: 0;
}
.sa-porte-card--pros .sa-porte-sub-count {
  color: #b45309;
}
.sa-porte-sub-title {
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a2540;
}
.sa-porte-sub-hint {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: #64748b;
}
.sa-porte-list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #475569;
}
.sa-porte-list li {
  position: relative;
  padding-left: 0.85rem;
  margin-bottom: 0.45rem;
}
.sa-porte-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #f5b800;
  font-weight: 700;
}
.sa-porte-list a {
  color: #1e3a8a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sa-porte-list a:hover {
  color: #0a2540;
}
.sa-porte-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1rem;
}
.sa-porte-btn {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sa-porte-btn-primary {
  background: #0a2540;
  color: #fff;
}
.sa-porte-btn-primary:hover {
  background: #1e3a8a;
}
.sa-porte-btn-outline {
  border: 1px solid #cbd5e1;
  color: #0a2540;
  background: #fff;
}
.sa-porte-btn-outline:hover {
  border-color: #f5b800;
  color: #1e3a8a;
}
