  :root {
    --bg: #FDF6F8;
    --bg-alt: #FFFFFF;
    --fg: #4A2E3C;
    --fg-dim: #7A5568;
    --accent: #E8A0B4;
    --accent-text: #B8395F;
    --accent-soft: rgba(232, 160, 180, 0.18);
    --peach: #F0C4B8;
    --cherry: #D98CA0;
    --blue: #C7DCE8;
    --line: rgba(74, 46, 60, 0.10);
    --mono: 'IBM Plex Mono', monospace;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --maxw: 1040px;
  }

  * { box-sizing: border-box; }

  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
  }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button {
    cursor: none;
  }

  a { color: inherit; }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
  }

  /* ---------- Custom cursor : plume (la pointe = la pointe du curseur) ---------- */

  #quill-trail {
    position: fixed;
    inset: 0;
    z-index: 997;
    pointer-events: none;
  }

  .quill-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 999;
    will-change: transform;
    /* La rotation se fait autour de (0,0), qui correspond exactement à la
       pointe de la plume (voir décalage du <svg> ci-dessous) — donc la
       pointe reste toujours collée au curseur, quel que soit l'angle. */
    transform-origin: 0 0;
  }

  /* Le <svg> est décalé pour que sa pointe interne (coordonnée 2,22 dans le
     viewBox 24x24) tombe exactement sur le (0,0) du wrapper. */
  .quill-cursor svg {
    position: absolute;
    top: -22px;
    left: -2px;
    stroke: var(--fg);
    transition: stroke 0.18s ease;
  }

  .quill-cursor.is-hover-active svg {
    stroke: var(--accent);
  }

  /* ---------- Nav ---------- */

  header.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 246, 248, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }

  .nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-name {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.01em;
  }

  .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-links a {
    text-decoration: none;
    font-size: 14px;
    color: var(--fg-dim);
    transition: color 0.15s ease;
  }
  .nav-links a:hover { color: var(--fg); }

  .nav-toggle {
    display: none;
    width: 34px;
    height: 34px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--fg);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  @media (max-width: 640px) {
    .nav-toggle { display: flex; }

    .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      gap: 0;
      background: var(--bg-alt);
      border-bottom: 1px solid var(--line);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.25s ease;
    }

    .nav-links.is-open { max-height: 260px; }

    .nav-links a {
      display: block;
      padding: 14px 28px;
      font-size: 15px;
      border-top: 1px solid var(--line);
    }
  }

  /* ---------- Hero ---------- */

  .hero {
    padding: 96px 0 88px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.28;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    pointer-events: none;
    z-index: 1;
  }

  /* Couche d'effets de fond, fixe : visible sur toute la page pendant le scroll */
  .page-fx {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
  }

  /* Halo : deux taches de couleur floues qui dérivent chacune sur un chemin
     irrégulier et à des rythmes différents, pour un mouvement organique. */
  .aura-blob {
    position: fixed;
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    mix-blend-mode: multiply;
  }

  .aura-blob.a {
    top: -10%;
    left: -8%;
    background: radial-gradient(circle, rgba(232, 160, 180, 0.75), transparent 70%);
    animation: auraDriftA 26s ease-in-out infinite;
  }

  .aura-blob.b {
    bottom: -14%;
    right: -10%;
    background: radial-gradient(circle, rgba(240, 196, 184, 0.68), transparent 70%);
    animation: auraDriftB 31s ease-in-out infinite;
  }

  @keyframes auraDriftA {
    0%   { transform: translate(0, 0) scale(1); }
    22%  { transform: translate(6vw, 4vh) scale(1.08); }
    48%  { transform: translate(-3vw, 8vh) scale(0.95); }
    71%  { transform: translate(4vw, -3vh) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
  }

  @keyframes auraDriftB {
    0%   { transform: translate(0, 0) scale(1); }
    18%  { transform: translate(-5vw, -6vh) scale(1.06); }
    40%  { transform: translate(3vw, -2vh) scale(0.96); }
    66%  { transform: translate(-6vw, 3vh) scale(1.04); }
    88%  { transform: translate(2vw, 5vh) scale(0.98); }
    100% { transform: translate(0, 0) scale(1); }
  }

  @media (max-width: 640px) {
    /* Sur petit écran le halo touche presque toute la largeur : on l'adoucit
       (plus de flou, moins d'opacité) pour éviter l'effet tache. */
    .aura-blob {
      width: 92vw;
      height: 92vw;
      filter: blur(90px);
    }
    .aura-blob.a {
      background: radial-gradient(circle, rgba(232, 160, 180, 0.42), transparent 70%);
    }
    .aura-blob.b {
      background: radial-gradient(circle, rgba(240, 196, 184, 0.38), transparent 70%);
    }
    .hero::before { opacity: 0.16; }
  }

  /* Braises : petits points flous qui dérivent lentement vers le haut */
  .ember {
    position: fixed;
    bottom: -20px;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
    opacity: 0.9;
    animation-name: emberDrift;
    animation-timing-function: ease-in;
    animation-iteration-count: infinite;
  }

  @keyframes emberDrift {
    0%   { transform: translate(0, 0); opacity: 0; }
    12%  { opacity: 0.95; }
    85%  { opacity: 0.45; }
    100% { transform: translate(var(--drift, 20px), -100vh); opacity: 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    .aura-blob, .ember { animation: none; }
  }

  .hero-inner { position: relative; z-index: 2; }

  .eyebrow {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent-text);
    margin: 0 0 18px;
  }

  h1.hero-title {
    font-family: var(--serif);
    font-size: clamp(40px, 7vw, 68px);
    font-weight: 500;
    line-height: 1.04;
    margin: 0 0 10px;
    max-width: 14ch;
    letter-spacing: -0.015em;
  }

  .hero-formation {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--fg-dim);
    margin: 0 0 20px;
  }

  .hero-pitch {
    font-size: 17px;
    color: var(--fg-dim);
    max-width: 56ch;
    margin: 0 0 34px;
  }

  .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 3px;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
  }

  .btn-primary {
    background: var(--accent);
    color: #191308;
  }
  .btn-primary:hover { filter: brightness(1.08); }

  .btn-ghost {
    border-color: var(--line);
    color: var(--fg);
    background: transparent;
  }
  .btn-ghost:hover { border-color: var(--fg-dim); }

  /* ---------- Section shell ---------- */

  section { padding: 80px 0; border-bottom: 1px solid var(--line); }
  section:last-of-type { border-bottom: none; }

  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
  }

  .section-tag {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--accent-text);
  }

  h2.section-title {
    font-family: var(--serif);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 500;
    margin: 6px 0 0;
    letter-spacing: -0.01em;
  }

  /* ---------- About ---------- */

  .about-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
  }

  @media (max-width: 680px) {
    .about-grid { grid-template-columns: 1fr; }
  }

  .about-photo {
    width: 200px;
    height: 200px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    box-shadow:
      0 2px 4px rgba(74, 46, 60, 0.10),
      0 14px 28px rgba(74, 46, 60, 0.22),
      0 4px 10px rgba(74, 46, 60, 0.12);
  }

  .about-text p { color: var(--fg-dim); font-size: 15.5px; margin: 0 0 16px; }
  .about-text p:last-child { margin-bottom: 0; }

  .facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 28px;
  }

  @media (max-width: 460px) {
    .facts { grid-template-columns: 1fr; }
  }

  .fact {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 14px 16px;
  }
  .fact .k {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-dim);
    margin-bottom: 4px;
  }
  .fact .v { font-size: 14px; }

  .stage-callout {
    margin-top: 24px;
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 5px;
    padding: 16px 18px;
  }
  .stage-callout-title {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 6px;
    color: var(--fg);
  }
  .stage-callout p:last-child {
    margin: 0;
    color: var(--fg-dim);
    font-size: 14px;
  }

  /* ---------- Timeline (parcours de formation) ---------- */

  .timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--line);
  }

  .timeline-item {
    position: relative;
    padding: 0 0 32px 28px;
  }
  .timeline-item:last-child { padding-bottom: 0; }

  .timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
  }

  .timeline-date {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent-text);
    margin-bottom: 4px;
  }

  .timeline-body h3 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 4px;
  }

  .timeline-place {
    font-size: 13px;
    color: var(--fg-dim);
    margin: 0 0 6px;
  }

  .timeline-body p:last-child {
    font-size: 14px;
    color: var(--fg-dim);
    margin: 0;
  }

  /* ---------- Projects ---------- */

  .project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  @media (max-width: 760px) {
    .project-grid { grid-template-columns: 1fr; }
  }

  .project-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    flex-direction: column;
    transition: border-color 0.18s ease, transform 0.18s ease;
  }
  .project-card:hover {
    border-color: var(--peach);
    transform: translateY(-2px);
  }

  .project-media {
    aspect-ratio: 16 / 9;
    background:
      repeating-linear-gradient(45deg, #F7E9EE, #F7E9EE 10px, #FDF6F8 10px, #FDF6F8 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-dim);
    font-family: var(--mono);
    font-size: 12px;
    border-bottom: 1px solid var(--line);
  }

  .project-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }

  .project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .badge {
    font-family: var(--mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 3px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    color: var(--fg-dim);
  }

  .project-date {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--fg-dim);
  }

  .skills-tag-label {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--fg-dim);
    margin: 4px 0 8px;
  }

  .tag.skill-tag {
    background: var(--accent-soft);
    color: var(--accent-text);
  }

  .section-note {
    font-size: 14px;
    color: var(--fg-dim);
    max-width: 60ch;
    margin: -20px 0 36px;
  }

  .subsection-title {
    font-family: var(--mono);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fg-dim);
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }

  .project-grid + .subsection-title { margin-top: 48px; }

  .project-title {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 8px;
  }

  .project-desc {
    font-size: 14px;
    color: var(--fg-dim);
    margin: 0 0 16px;
    flex: 1;
  }

  .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
  }

  .tag {
    font-family: var(--mono);
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent-text);
  }

  .project-card:nth-of-type(2) .tag { background: rgba(240, 196, 184, 0.28); color: #C97A66; }
  .project-card:nth-of-type(3) .tag { background: rgba(199, 220, 232, 0.4); color: #6E93A8; }
  .project-card:nth-of-type(4) .tag { background: rgba(217, 140, 160, 0.2); color: var(--cherry); }

  .project-link {
    font-size: 13px;
    text-decoration: none;
    color: var(--fg);
    border-bottom: 1px solid var(--line);
    align-self: flex-start;
    padding-bottom: 2px;
  }
  .project-link:hover { border-color: var(--accent); color: var(--accent-text); }

  /* ---------- Skills ---------- */

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  @media (max-width: 700px) {
    .skills-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 460px) {
    .skills-grid { grid-template-columns: 1fr; }
  }

  .skill-group h3 {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: none;
    color: var(--accent-text);
    margin: 0 0 14px;
    font-weight: 500;
  }

  .skill-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .skill-group li {
    font-size: 14.5px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    color: var(--fg-dim);
  }
  .skill-group li:last-child { border-bottom: none; }
  .skill-group li strong { color: var(--fg); font-weight: 500; }

  /* ---------- Contact ---------- */

  .contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }

  @media (max-width: 680px) {
    .contact-wrap { grid-template-columns: 1fr; }
  }

  .contact-text p {
    color: var(--fg-dim);
    max-width: 46ch;
    font-size: 15.5px;
    margin: 0 0 20px;
  }

  .contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--mono);
    font-size: 14px;
  }

  .contact-links a, .contact-links span {
    text-decoration: none;
    color: var(--fg);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .contact-links a:hover { color: var(--accent-text); }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--fg-dim);
  }

  .contact-form input,
  .contact-form textarea {
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--fg);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 10px 12px;
    resize: vertical;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
  }

  .contact-form button { align-self: flex-start; }

  footer {
    padding: 30px 0 50px;
    text-align: center;
    font-size: 12.5px;
    color: var(--fg-dim);
  }

  /* Editing helper — remove this block once the site is filled in */
  .edit-note {
    background: var(--accent-soft);
    border: 1px dashed var(--accent);
    color: var(--accent-text);
    font-family: var(--mono);
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 10px;
  }

  /* Images cliquables (galerie / captures) + lightbox */
  .lightbox-trigger {
    position: relative;
    display: block;
    cursor: zoom-in;
    overflow: hidden;
  }
  .lightbox-trigger img {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease, filter 0.35s ease;
  }
  .lightbox-trigger:hover img {
    transform: scale(1.06);
    filter: brightness(0.85);
  }
  .lightbox-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
  }
  .lightbox-trigger:hover::after { opacity: 1; }

  .lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 14, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
  }
  .lightbox-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  .lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.96);
    transition: transform 0.25s ease;
  }
  .lightbox-overlay.is-open img { transform: scale(1); }
  .lightbox-close {
    position: fixed;
    top: 22px;
    right: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--mono);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }
  .lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }
