    /* ══════════════════════════════════════
       VARIABLES & RESET
    ══════════════════════════════════════ */
    :root {
      --primary:   #2563eb;
      --bg:        #f6faff;
      --cardex:      #ffffff;
      --border2:    #e2e2d9;
      --text:      #0f172a;
      --muted:     #6b7280;
      --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.05);
      --shadow-md: 0 8px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
      --shadow-lg: 0 20px 48px rgba(0,0,0,.12);
      --radius-cardex: 22px;
      --radius-btn:  12px;
    }

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      font-family: 'Outfit', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
    }

    /* ══════════════════════════════════════
       FOND DÉCORATIF
    ══════════════════════════════════════ */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 40% at 10% 10%, rgba(37,99,235,.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 90% 80%, rgba(16,185,129,.05) 0%, transparent 70%);
      pointer-events: none;
      z-index: 0;
    }

    /* ══════════════════════════════════════
       LAYOUT
    ══════════════════════════════════════ */
    .container {
      position: relative;
      z-index: 1;
      width: min(1280px, 95%);
      margin: auto;
      padding: 3.5rem 0 4rem;
    }

    /* ══════════════════════════════════════
       EN-TÊTE
    ══════════════════════════════════════ */
    .page-header {
      text-align: center;
      margin-bottom: 3.5rem;
    }

    .page-eyebrow {
      display: inline-block;
      font-size: .75rem;
      font-weight: 600;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--primary);
      background: rgba(37,99,235,.08);
      padding: .35rem .9rem;
      border-radius: 999px;
      margin-bottom: 1rem;
    }

    .page-title {
      font-family: 'Lora', serif;
      font-size: clamp(2rem, 4vw, 2.8rem);
      font-weight: 700;
      line-height: 1.15;
      letter-spacing: -.02em;
      margin-bottom: .75rem;
      color: var(--text);
    }

    .page-subtitle {
      color: var(--muted);
      font-size: 1rem;
      font-weight: 300;
      max-width: auto;
      margin: auto;
      line-height: 1.7;
    }

    /* ══════════════════════════════════════
       GRILLE
    ══════════════════════════════════════ */
    .exercices-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
      gap: 1.5rem;
    }

    /* ══════════════════════════════════════
       CARTE
    ══════════════════════════════════════ */
    .exercices-cardex {
      background: var(--cardex);
      border: 1px solid var(--border2);
      border-radius: var(--radius-cardex);
      overflow: hidden;
      min-height: 300px;
      display: flex;
      flex-direction: column;
      box-shadow: var(--shadow-sm);
      transition: transform .28s cubic-bezier(.22,.68,0,1.2), box-shadow .28s ease;
    }

    .exercices-cardex:hover {
      transform: translateY(-7px);
      box-shadow: var(--shadow-lg);
    }

    /* ── Bande colorée ── */
    .cardex-band {
      height: 7px;
      width: 100%;
      flex-shrink: 0;
    }

    .cardex-band.band-slate   { background: linear-gradient(90deg, #04748b, #22b8d1, #7de3f0); }
    .cardex-band.band-blue    { background: linear-gradient(90deg, #1d4ed8, #3b82f6, #93c5fd); }
    .cardex-band.band-amber   { background: linear-gradient(90deg, #d97706, #f59e0b, #fcd34d); }
    .cardex-band.band-emerald { background: linear-gradient(90deg, #059669, #10b981, #6ee7b7); }
    .cardex-band.band-purple  { background: linear-gradient(90deg, #7c3aed, #8b5cf6, #c4b5fd); }
    .cardex-band.band-rose    { background: linear-gradient(90deg, #e11d48, #f43f5e, #fda4af); }

    /* ── Corps ── */
    .cardex-body {
      padding: 1.4rem 1.5rem 1.5rem;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .cardex-top  {
      display: flex;
      align-items: center;
      gap: .6rem;
      width: 100%;
      margin-bottom: 1rem;
      background: #f0f9ff;
      padding: 6px 10px;
      border-radius: 10px;
    }

   .cardex-badge {
    display: inline-block;
    background: rgba(37,99,235,.05);;
    color: #000000;font-weight: bolder;
    padding: 6px 10px;
    border-radius: 3px;word-spacing: 10px;
    font-size: 0.9rem;width:100%;
    margin-bottom: 15px;text-transform: uppercase;
    }

    .badge-slate   { background: #04748b; }
    .badge-blue    { background: #2563eb; }
    .badge-amber   { background: #f59e0b; }
    .badge-emerald { background: #10b981; }
    .badge-purple  { background: #8b5cf6; }
    .badge-rose    { background: #f43f5e; }

    .cardex-time {
      color: var(--muted);
      font-size: .82rem;
      font-weight: 400;
      margin-left: auto;
    }

    .cardex-title {
      font-family: 'Arial', serif;
      font-size: 1.15rem;
      font-weight: 700;
      line-height: 1.35;
      margin-bottom: .65rem;
      color: var(--text);
    }

    .cardex-desc {
      color: var(--muted);
      font-size: .9rem;
      line-height: 1.75;
      font-weight: 300;
      flex: 1;
    }

    /* ── Footer ── */
    .cardex-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 1.4rem;
      gap: .6rem;
    }

    .cardex-videos {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: white;
      background: var(--muted);
      font-size: .78rem;
      font-weight: 500;
      padding: .35rem .75rem;
      border-radius: 999px;
    }

    .cardex-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    }

    /* ── Boutons CTA ── */
    .cardex-cta {
      border: none;
      color: white;
      padding: .48rem .5rem;
      border-radius: var(--radius-btn);
      font-family: 'Outfit', sans-serif;
      font-size: .8rem;
      font-weight: 600;
      cursor: pointer;
      transition: transform .18s, box-shadow .18s, opacity .18s;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .cardex-cta:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(37,99,235,.35);
    }

    .cardex-cta.cta-outline {
      background: rgba(37,99,235,.06);
      color: var(--primary);
      border: 1.5px solid rgba(37,99,235,.35);
    }

    .cardex-cta.cta-outline:hover {
      background: rgba(37,99,235,.7);
      box-shadow: none;color:#fff;
    }
      .cta-fiche{      border: none;
      color: white;
      padding: .48rem .7rem;
      border-radius: var(--radius-btn);
      font-family: 'Outfit', sans-serif;
      font-size: .8rem;
      font-weight: 600;
      cursor: pointer;
      transition: transform .18s, box-shadow .18s, opacity .18s;
      display: inline-flex;
      align-items: center;
      gap: 5px;right:2px;}

   .cta-fiche:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(37,99,235,.35);
    }

    .cta-fiche.cta-outline {
      background: transparent;
      color: var(--primary);
      border: 1.5px solid rgba(37,99,235,.35);
    }

    .cta-fiche.cta-outline:hover {
      background: rgba(37,99,235,.06);
      box-shadow: none;
    }

  
    /* ══════════════════════════════════════
       ANIMATION D'ENTRÉE DES CARTES
    ══════════════════════════════════════ */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .exercices-cardex {
      animation: fadeUp .5s ease both;
    }

    .exercices-cardex:nth-child(1) { animation-delay: .05s; }
    .exercices-cardex:nth-child(2) { animation-delay: .10s; }
    .exercices-cardex:nth-child(3) { animation-delay: .15s; }
    .exercices-cardex:nth-child(4) { animation-delay: .20s; }
    .exercices-cardex:nth-child(5) { animation-delay: .25s; }
    .exercices-cardex:nth-child(6) { animation-delay: .30s; }

    /* ══════════════════════════════════════
       RESPONSIVE
    ══════════════════════════════════════ */
    @media (max-width: 600px) {
      .cardex-footer { flex-wrap: wrap; }
      .cardex-actions { width: 100%; }
      .cardex-cta { flex: 1; justify-content: center; }
    }
