    :root {
      --sidebar-w: 230px;
      --bg: #f7f7f7;
      --dark: #1e1e1e;
      --accent: #00bfff;
      --section-gap: 40px;
      --anchor-offset: 24px;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: var(--anchor-offset); }
    body {
      margin: 0;
      font-family: 'Segoe UI', Arial, sans-serif;
      background: var(--bg);
      color: #111;
      min-height: 100dvh;
      overflow-x: hidden;
    }

    /* ===== Layout Desktop ===== */
    .page {
      display: grid;
      grid-template-columns: var(--sidebar-w) 1fr;
      min-height: 100dvh;
    }

    /* Barre latérale gauche */
    nav.sidebar {
      position: sticky;
      top: 0;
      height: 100dvh;
      background: var(--dark);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 40px 10px 20px;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
      z-index: 10;
    }

    .brand {
      color: #fff;
      font-weight: 700;
      margin-bottom: 20px;
      text-align: center;
    }

    .menu {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      text-align: center;
    }

    .menu a {
      color: #fff;
      text-decoration: none;
      font-weight: 600;
      padding: 12px 10px;
      border-radius: 10px;
      display: block;
      transition: background 0.2s, color 0.2s;
    }

    .menu a:hover {
      background: rgba(255, 255, 255, 0.1);
      color: var(--accent);
    }

    /* Contenu principal */
    main {
      padding: 40px 24px 60px;
    }

    section {
      margin: 0 0 var(--section-gap);
      padding: 32px 32px 40px;
      border-radius: 14px;
      color: #fff;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
      scroll-margin-top: var(--anchor-offset);
    }

    h1 {
      margin: 0 0 8px;
      font-size: 30px;
      text-align: center;
    }

    h2 {
      margin: 0 0 14px;
      font-size: 18px;
      font-weight: 600;
      opacity: 0.95;
      text-align: center;
    }

    p {
      margin: 0 auto;
      font-size: 16px;
      line-height: 1.6;
      text-align: justify;
    }

    /* Couleurs par section */
    #apropos     { background: linear-gradient(135deg, #ff416c, #ff4b2b); }
    #experiences { background: linear-gradient(135deg, #1e3c72, #2a5298); }
    #cursus      { background: linear-gradient(135deg, #00b09b, #96c93d); }
    #competences { background: linear-gradient(135deg, #7b4397, #dc2430); }
    #passions    { background: linear-gradient(135deg, #ff8008, #ffc837); }
    #projets     { background: linear-gradient(135deg, #232526, #414345); }

    footer {
      color: #555;
      text-align: center;
      padding: 24px 0;
    }

    /* ==== Section À propos en 2 colonnes ==== */
    .apropos-grid {
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: 32px;
      align-items: center;
    }

    .apropos-logo {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .apropos-logo img {
      width: 180px;
      height: 180px;
      object-fit: cover;
      border-radius: 50%;
      box-shadow: 0 4px 15px rgba(0,0,0,0.25);
      border: 3px solid rgba(255,255,255,0.7);
    }

    .apropos-text h1,
    .apropos-text h2 {
      text-align: left;
    }

    .apropos-text p {
      text-align: justify;
      margin-left: 0;
      margin-right: 0;
    }

    /* === Blocs structurés (expériences, cursus, projets) === */
    .experience,
    .school-container,
    .project-container {
      margin-top: 32px;
      display: flex;
      flex-direction: column;
      gap: 32px;
    }

    .job,
    .school,
    .project {
      background: rgba(255, 255, 255, 0.15);
      padding: 20px 24px;
      border-radius: 12px;
      backdrop-filter: blur(2px);
      box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }

    .job-header,
    .project-header,
    .school-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
    }

    .job-title,
    .school-title,
    .project-title {
      margin: 0;
      font-size: 22px;
      font-weight: 700;
    }

    .job-date,
    .school-date,
    .project-date {
      font-size: 15px;
      opacity: 0.9;
    }

    .job-company,
    .school-name,
    .project-type {
      margin: 6px 0 12px;
      font-size: 16px;
      font-weight: 600;
      opacity: 0.95;
    }

    .project-type-desc {
      margin: 6px 0 12px;
      font-size: 16px;
      opacity: 0.95;
    }

    .job-tasks,
    .school-details,
    .project-details {
      margin: 0;
      padding-left: 20px;
    }

    .job-tasks li,
    .school-details li,
    .project-details li {
      margin-bottom: 6px;
      line-height: 1.5;
    }

/* === Styles pour les compétences === */
.skill-container {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.skill {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px 24px;
  border-radius: 12px;
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.skill-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.skill-level {
  font-size: 15px;
  opacity: 0.9;
}

.skill-details {
  margin: 10px 0 0;
  padding-left: 20px;
}

.skill-details li {
  margin-bottom: 6px;
  line-height: 1.5;
}

    /* ===== Menu bas Mobile (par défaut caché) ===== */
    nav.bottom {
      display: none;
    }

    /* ======= MODE MOBILE ======= */
    @media (max-width: 768px) {
      .page {
        grid-template-columns: 1fr;
      }

      nav.sidebar { display: none; }

      main {
        padding: 20px 16px 140px; /* place pour le menu mobile sur 2 lignes */
      }

      section {
        padding: 24px;
        border-radius: 12px;
        margin-bottom: 32px;
      }

      .apropos-grid {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .apropos-text h1,
      .apropos-text h2 {
        text-align: center;
      }

      /* Menu bas mobile sur deux lignes */
      nav.bottom {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--dark);
        padding: 6px 0;
        box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.25);
        z-index: 20;
      }

      nav.bottom .bottom-row {
        display: flex;
        justify-content: space-around;
        padding: 4px 0;
      }

      nav.bottom a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        font-size: 12px;
        text-align: center;
        padding: 8px 10px;
        border-radius: 8px;
      }

      nav.bottom a:active {
        background: rgba(255, 255, 255, 0.15);
      }
    }