    :root {
      --primary: #7c3aed;
      --primary-dark: #5b21b6;
      --dark: #211536;
      --muted: #71647f;
      --border: #eadff5;
      --background: #faf7ff;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      color: #334155;
      background: #fff;
    }

    /* =========================
       NAVIGATION
    ========================= */

    .navbar {
      position: sticky;
      top: 0;
      z-index: 1030;
      padding: 14px 0;
      background: #fff;
      box-shadow: 0 2px 15px rgba(15, 23, 42, .07);
    }

    .navbar-brand {
      color: var(--dark);
      font-size: 23px;
      font-weight: 800;
      letter-spacing: -.5px;
    }

    .navbar-brand:hover { color: var(--primary); }

    .navbar-brand i {
      color: var(--primary);
      margin-right: 8px;
    }

    .nav-link {
      color: #475569;
      font-weight: 600;
      padding: 10px 13px !important;
      border-radius: 7px;
      transition: .2s;
    }

    .nav-link:hover {
      color: var(--primary);
      background: #f3e8ff;
    }

    .navbar-toggler {
      border-color: #ddd6fe;
      padding: 8px 11px;
    }

    .navbar-toggler:focus {
      box-shadow: 0 0 0 3px rgba(124,58,237,.15);
    }

    /* =========================
       BOUTONS
    ========================= */

    .btn-main {
      display: inline-block;
      padding: 11px 20px;
      color: #fff;
      background: linear-gradient(110deg, #6d28d9, #8b5cf6);
      border: 0;
      border-radius: 8px;
      font-weight: 700;
      text-decoration: none;
      text-align: center;
      cursor: pointer;
      transition: .2s;
      font-family: inherit;
      box-shadow: 0 7px 18px rgba(109, 40, 217, .18);
    }

    .btn-main:hover {
      color: #fff;
      background: linear-gradient(110deg, #5b21b6, #7c3aed);
      transform: translateY(-1px);
      box-shadow: 0 10px 22px rgba(109, 40, 217, .25);
    }

    /* =========================
       HEADER / HERO
    ========================= */

    .hero {
      padding: 75px 0;
      color: #fff;
      background: linear-gradient(125deg, #24113f 0%, #54218a 48%, #8b5cf6 100%);
      position: relative;
      overflow: hidden;
    }

    .hero h1 {
      font-size: clamp(34px, 4vw, 50px);
      line-height: 1.15;
      font-weight: 800;
    }

    .hero h1 span {
      color: #e9d5ff;
      background: linear-gradient(90deg, #f5d0fe, #c4b5fd);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero p {
      color: #e9ddff;
      font-size: 16px;
      line-height: 1.8;
    }

    .hero-label {
      display: inline-block;
      padding: 7px 12px;
      color: #ddd6fe;
      background: rgba(96, 165, 250, .15);
      border: 1px solid rgba(233, 213, 255, .25);
      border-radius: 5px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .7px;
    }

    /* Vidéo du Header */

    .hero-video-wrapper {
      padding: 12px;
      border: 1px solid rgba(255,255,255,.2);
      border-radius: 18px;
      background: rgba(255,255,255,.10);
      box-shadow: 0 20px 50px rgba(0,0,0,.2);
    }

    .hero-video {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      border-radius: 12px;
      background: #160d25;
    }

    .hero-video iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .video-caption {
      padding: 12px 5px 2px;
      color: #eee5ff;
      font-size: 13px;
      font-weight: 600;
    }

    .video-caption i {
      margin-right: 6px;
      color: #d8b4fe;
    }

    /* =========================
       FORMATIONS
    ========================= */

    .formations {
      padding: 65px 0 75px;
      background:
        radial-gradient(circle at 8% 12%, rgba(196,181,253,.16), transparent 28%),
        radial-gradient(circle at 92% 80%, rgba(216,180,254,.18), transparent 25%),
        var(--background);
    }

    .section-title {
      color: var(--dark);
      font-size: clamp(28px, 4vw, 36px);
      font-weight: 800;
    }

    .section-intro {
      max-width: 720px;
      margin: 0 auto;
      color: var(--muted);
      line-height: 1.7;
    }

    .course-card {
      height: 100%;
      padding: 25px;
      background: #fff;
      border: 1px solid #c4b5fd;
      border-radius: 18px;
      box-shadow: 0 16px 42px rgba(91, 33, 182, .10);
      transition: .2s;
    }

    .course-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 40px rgba(15,23,42,.10);
    }

    .course-card h3 {
      color: var(--dark);
      font-size: 21px;
      font-weight: 800;
    }

    .course-card p,
    .course-card li {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
    }

    .course-card ul {
      padding-left: 18px;
      margin: 12px 0 18px;
    }

    .course-meta {
      color: var(--muted);
      font-size: 13px;
    }

    .course-details {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin: 22px 0;
    }

    .detail-item {
      padding: 13px;
      background: #fbf9ff;
      border: 1px solid #eee5f8;
      border-radius: 9px;
    }

    .detail-item small {
      display: block;
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 5px;
    }

    .detail-item strong {
      color: var(--dark);
      font-size: 15px;
    }

    /* =========================
       PROGRAMME / MODALE
    ========================= */

    .modal-content {
      border: 0;
      border-radius: 14px;
      overflow: hidden;
    }

    .modal-header {
      padding: 16px 20px;
      background: linear-gradient(100deg, #faf5ff, #f3e8ff);
      border-color: var(--border);
    }

    .modal-footer {
      padding: 16px 20px;
      border-color: var(--border);
    }

    .modal-body {
      padding: 20px;
      background: #fff;
    }

    .modal-title,
    .program-heading h4 {
      color: #4c1d95;
    }

    .program-section {
      margin-top: 24px;
      padding-top: 22px;
      border-top: 1px solid var(--border);
    }

    .program-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 14px;
    }

    .program-heading h4 {
      margin: 0;
      font-size: 17px;
      font-weight: 800;
    }

    .tag {
      display: inline-block;
      padding: 6px 11px;
      color: #6d28d9;
      background: #f3e8ff;
      border-radius: 5px;
      font-size: 12px;
      font-weight: 800;
    }

    .program-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 12px 0 16px;
    }

    .program-summary span {
      padding: 6px 10px;
      color: #6d28d9;
      background: #f3e8ff;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 700;
    }

    .program-table-wrap {
      overflow-x: auto;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
    }

    .program-table {
      width: 100%;
      min-width: 760px;
      margin: 0;
      border-collapse: collapse;
      font-size: 12px;
    }

    .program-table th {
      padding: 11px 10px;
      color: #fff;
      background: linear-gradient(100deg, #4c1d95, #7c3aed);
      text-align: left;
      white-space: nowrap;
    }

    .program-table td {
      padding: 10px;
      border-top: 1px solid var(--border);
      vertical-align: top;
      line-height: 1.5;
    }

    .program-table tbody tr:nth-child(even) {
      background: #faf7ff;
    }

    .program-table .free {
      color: #15803d;
      font-weight: 800;
    }

    .program-table .paid {
      color: #6d28d9;
      font-weight: 700;
    }

    .program-table tfoot td {
      color: var(--dark);
      background: #f3e8ff;
      font-weight: 800;
    }

    .program-note {
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    /* =========================
       CALENDRIER
    ========================= */

    .calendar-section {
      padding: 65px 0 75px;
      background: #fff;
    }

    .calendar-shell {
      max-width: 1250px;
      margin: 0 auto;
      padding: 24px;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: #fff;
      box-shadow: 0 10px 30px rgba(48,25,76,.05);
    }

    .calendar-layout {
      display: grid;
      grid-template-columns: minmax(0,1.25fr) minmax(300px,.85fr);
      gap: 24px;
      align-items: start;
    }

    .calendar-main { min-width: 0; }

    .calendar-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 20px;
    }

    .calendar-toolbar h3 {
      margin: 0;
      color: var(--dark);
      font-size: 21px;
      font-weight: 800;
      text-transform: capitalize;
    }

    .calendar-nav {
      display: flex;
      gap: 8px;
    }

    .calendar-nav button {
      width: 38px;
      height: 38px;
      border: 1px solid var(--border);
      border-radius: 9px;
      background: #faf7ff;
      color: var(--primary);
    }

    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7,minmax(0,1fr));
      gap: 7px;
    }

    .calendar-weekday {
      padding: 8px 2px;
      text-align: center;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .calendar-day {
      min-width: 0;
      min-height: 100px;
      padding: 8px;
      border: 1px solid #eee5f8;
      border-radius: 10px;
      background: #fff;
      text-align: left;
      color: #334155;
      cursor: pointer;
      transition: .15s;
    }

    .calendar-day:hover,
    .calendar-day.selected {
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(124,58,237,.10);
    }

    .calendar-day.muted {
      opacity: .42;
      background: #fafafa;
    }

    .calendar-day.today {
      border-color: var(--primary);
    }

    .calendar-day.has-session {
      background: #faf7ff;
      border-color: #d8c5f5;
    }

    .calendar-day.past {
      color: #8b9099;
      background: #f1f2f4;
      border-color: #e2e4e8;
    }

    .calendar-day-number {
      display: block;
      margin-bottom: 7px;
      font-size: 13px;
      font-weight: 800;
    }

    .calendar-event {
      display: block;
      margin-top: 4px;
      padding: 4px 5px;
      border-radius: 5px;
      color: #5b21b6;
      background: #ede9fe;
      font-size: 10px;
      line-height: 1.35;
      font-weight: 700;
      overflow-wrap: anywhere;
    }

    .calendar-event.free {
      color: #166534;
      background: #dcfce7;
    }

    .calendar-event.past {
      color: #747b85;
      background: #e5e7eb;
    }

    .calendar-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      margin-top: 15px;
      color: var(--muted);
      font-size: 12px;
    }

    .calendar-legend span {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .legend-dot {
      width: 9px;
      height: 9px;
      display: inline-block;
      border-radius: 3px;
      background: #ede9fe;
    }

    .legend-dot.free { background: #dcfce7; }

    .calendar-details {
      margin-top: 0;
      padding: 18px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #fcfaff;
      min-height: 300px;
    }

    .calendar-details h4 {
      margin-bottom: 14px;
      color: var(--dark);
      font-size: 17px;
      font-weight: 800;
    }

    .session-list { display: grid; gap: 10px; }

    .session-item {
      padding: 14px 16px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      cursor: pointer;
      transition: .15s;
    }

    .session-item:hover,
    .session-item.active {
      border-color: var(--primary);
      background: #faf7ff;
    }

    .session-item.past {
      color: #858b95;
      background: #f3f4f6;
      border-color: #e5e7eb;
    }

    .session-item strong {
      display: block;
      color: var(--dark);
      font-size: 14px;
    }

    .session-item small {
      display: block;
      margin-top: 4px;
      color: var(--muted);
    }

    .session-item.past strong,
    .session-item.past p,
    .session-item.past small {
      color: #858b95;
    }

    .session-status {
      float: right;
      color: #7c838d;
      font-size: 12px;
    }

    .session-content {
      margin: 12px 0;
      color: #64748b;
      font-size: 13px;
      line-height: 1.65;
    }

    .resource-heading {
      margin: 18px 0 9px;
      color: var(--dark);
      font-size: 13px;
      font-weight: 800;
    }

    .resource-links {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .resource-link {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px;
      border: 1px solid var(--border);
      border-radius: 8px;
      color: #5b21b6;
      background: #fff;
      text-decoration: none;
      font-size: 12px;
      font-weight: 700;
    }

    .resource-link:hover {
      color: #4c1d95;
      background: #f3e8ff;
    }

    .resource-link.disabled {
      color: #9ca3af;
      background: #f8fafc;
      cursor: not-allowed;
    }

    .calendar-empty {
      padding: 20px;
      border: 1px dashed var(--border);
      border-radius: 10px;
      color: var(--muted);
      text-align: center;
      font-size: 13px;
    }

    /* =========================
       FOOTER
    ========================= */

    footer {
      padding: 35px 0 20px;
      color: #e9ddff;
      background: linear-gradient(125deg, #1e1633, #321653 58%, #4c1d72);
    }

    footer h2 {
      color: #fff;
      font-size: 20px;
      font-weight: 800;
    }

    footer a {
      color: #e9ddff;
      text-decoration: none;
      transition: color .2s;
    }

    footer a:hover { color: #d8b4fe; }

    .social-links a {
      margin-right: 14px;
      font-size: 20px;
    }

    /* =========================
       RESPONSIVE
    ========================= */

    @media(max-width: 991px) {
      .navbar-collapse {
        padding: 15px 0 5px;
      }

      .navbar-nav {
        align-items: stretch !important;
      }

      .navbar-nav .btn-main {
        display: block;
        width: 100%;
        margin-top: 10px;
      }

      .calendar-layout {
        grid-template-columns: 1fr;
      }

      .calendar-details { min-height: 0; }
    }

    @media(max-width: 767px) {
      .hero { padding: 45px 0; }

      .formations,
      .calendar-section {
        padding: 48px 0;
      }

      .calendar-shell { padding: 14px; }

      .calendar-day {
        min-height: 76px;
        padding: 5px;
      }

      .calendar-event { font-size: 9px; }

      .calendar-weekday { font-size: 10px; }

      .program-heading { align-items: flex-start; }

      .program-table { font-size: 11px; }
    }

    @media(max-width: 575px) {
      .hero { padding: 35px 0; }

      .hero-video-wrapper { padding: 8px; }

      .resource-links { grid-template-columns: 1fr 1fr; }

      .course-card { padding: 18px; }

      .course-details { gap: 8px; }

      .detail-item { padding: 10px; }

      .calendar-grid { gap: 3px; }

      .calendar-day { min-height: 65px; }

      .calendar-event {
        padding: 3px;
        font-size: 8px;
      }
    }

    @media(prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
      }
    }

    a:focus-visible,
    button:focus-visible {
      outline: 3px solid #c4b5fd;
      outline-offset: 3px;
    }