/* ============================================================
   AKADEMI IA — BASE.CSS
   Variables, reset, typographie, boutons, utilitaires
   Chargé par TOUTES les pages
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

/* ── VARIABLES ── */
:root {
  /* Couleurs principales */
  --white:        #ffffff;
  --off-white:    #f8f9fb;
  --black:        #0c0c0f;

  /* Gris */
  --grey-800:     #1e2029;
  --grey-700:     #3d3d5c;
  --grey-600:     #4a4d5e;
  --grey-500:     #7a7a99;
  --grey-400:     #8a8ea8;
  --grey-300:     #c4c7d8;
  --grey-200:     #dde0eb;
  --grey-100:     #eef0f6;
  --grey-50:      #f5f6fa;

  /* Vert — couleur principale */
  --green:        #00b87a;
  --green-dark:   #008f5e;
  --green-deep:   #006644;
  --green-light:  #e6f9f1;
  --green-mid:    #99e8c9;

  /* Or */
  --gold:         #f0a500;
  --gold-dark:    #c07800;
  --gold-light:   #fff8e6;
  --gold-mid:     #ffd066;

  /* Rouge */
  --red:          #e8395a;
  --red-light:    #fff0f3;
  --red-mid:      #f9b8c4;

  /* Bleu */
  --blue:         #3d7eff;
  --blue-light:   #edf3ff;
  --blue-mid:     #a8c4ff;

  /* Violet */
  --purple:       #6c5ce7;
  --purple-light: #f0eeff;

  /* Border radius */
  --radius-xs:    6px;
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    22px;
  --radius-xl:    32px;

  /* Ombres */
  --shadow-xs:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.07);
  --shadow:       0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.12);
  --shadow-green: 0 6px 28px rgba(0,184,122,0.20);

  /* Typographie */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Transitions */
  --transition:   0.2s ease;
  --transition-slow: 0.35s ease;
}

/* ── RESET ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── CONTENEUR APP ── */
.app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--white);
  overflow-x: hidden;
  position: relative;
}

/* ── TYPOGRAPHIE ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--black);
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

p { line-height: 1.7; }

strong { font-weight: 700; color: var(--black); }

a {
  color: var(--green);
  text-decoration: none;
  transition: opacity var(--transition);
}
a:hover { opacity: 0.8; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -0.2px;
  text-align: center;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  transform: none !important;
}

/* Bouton primaire — vert */
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover:not(:disabled) {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(0,184,122,0.28);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

/* Bouton secondaire — outline */
.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--grey-200);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}

/* Bouton noir */
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover:not(:disabled) {
  background: var(--grey-800);
}

/* Bouton retour */
.btn-back {
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--grey-100);
  color: var(--black);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.btn-back:hover { background: var(--grey-200); }

/* ── BADGES & TAGS ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.badge-green  { background: var(--green-light);  color: var(--green-dark);  border: 1px solid var(--green-mid); }
.badge-gold   { background: var(--gold-light);   color: var(--gold-dark);   border: 1px solid var(--gold-mid); }
.badge-red    { background: var(--red-light);    color: var(--red);         border: 1px solid var(--red-mid); }
.badge-blue   { background: var(--blue-light);   color: var(--blue);        border: 1px solid var(--blue-mid); }
.badge-grey   { background: var(--grey-100);     color: var(--grey-500);    border: 1px solid var(--grey-200); }
.badge-black  { background: var(--black);        color: var(--white); }

/* ── PROGRESS BAR ── */
.progress-track {
  height: 5px;
  background: var(--grey-200);
  border-radius: 3px;
  overflow: hidden;
  flex: 1;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--green), #00e8a0);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--grey-300);
  box-shadow: var(--shadow);
}

.card-green {
  border-color: var(--green);
  box-shadow: var(--shadow-green);
}

/* ── SÉPARATEUR ── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--grey-200), transparent);
  margin: 0 22px;
}

.divider-full {
  height: 1px;
  background: var(--grey-200);
}

/* ── SECTION LABEL ── */
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.section-eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── INSIGHT BOX ── */
.insight-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey-700);
}
.insight-box strong { color: var(--green-dark); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--grey-200); border-radius: 2px; }

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInFast {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes waveBounce {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1.2); }
}

@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.85); }
  40%           { opacity: 1;   transform: scale(1); }
}

/* ── UTILITAIRES ── */
.text-green  { color: var(--green); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--grey-400); }
.text-bold   { font-weight: 700; }
.text-center { text-align: center; }

.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.px-22 { padding-left: 22px; padding-right: 22px; }
