  /* ===== RESET & VARIABLES ===== */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --bg:         #060610;
      --bg2:        #0d0d1f;
      --surface:    rgba(255,255,255,0.04);
      --border:     rgba(255,255,255,0.08);
      --pink:       #ff2d78;
      /* --pink:       #007bffd0; */
      --cyan:       #00e5ff;
      --gold:       #ffd166;
      --text:       #e8e8f0;
      /* Éclairci pour atteindre le ratio de contraste WCAG AA sur fond sombre. */
      --muted:      #9d9dbb;
      --font-head:  'Bebas Neue', sans-serif;
      --font-body:  'Outfit', sans-serif;
      --font-mono:  'JetBrains Mono', monospace;
      --ease:       cubic-bezier(.4,0,.2,1);
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.6;
      overflow-x: hidden;
    }

    ::selection { background: var(--pink); color: #fff; }
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 3px; }

    /* ===== BACKGROUND GRID ===== */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,45,120,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,45,120,.04) 1px, transparent 1px);
      background-size: 60px 60px;
      pointer-events: none;
      z-index: 0;
    }

    /* ===== SPOTLIGHT DES CARTES =====
       Une lueur suit le curseur à l'intérieur de la carte survolée.
       Les coordonnées --mx / --my sont mises à jour en JS.
       `isolation` garantit un contexte d'empilement : le pseudo-élément en
       z-index:-1 passe alors au-dessus du fond de la carte, sous son contenu. */
    .project-card,
    .skill-card,
    .cert-card {
      position: relative;
      isolation: isolate;
      --mx: 50%;
      --my: 50%;
    }

    .project-card::after,
    .skill-card::after,
    .cert-card::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      opacity: 0;
      transition: opacity .35s var(--ease);
      background: radial-gradient(
        340px circle at var(--mx) var(--my),
        rgba(255,45,120,.16),
        transparent 62%
      );
    }
    .project-card:hover::after,
    .skill-card:hover::after { opacity: 1; }

    /* Les certifications reprennent leur accent doré plutôt que le rose. */
    .cert-card::after {
      background: radial-gradient(
        340px circle at var(--mx) var(--my),
        rgba(255,209,102,.14),
        transparent 62%
      );
    }
    .cert-card:hover::after { opacity: 1; }

    /* ===== EN-TÊTE DE SECTION AVEC VISUEL ===== */
    /* Titre à gauche, illustration poussée contre le bord droit. */
    .section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
      flex-wrap: wrap;
      margin-bottom: 60px; /* Reprend la marge portée par .section-title. */
    }
    .section-head > :first-child { flex: 1 1 auto; }
    /* Sinon la marge du titre décalerait le visuel vers le haut. */
    .section-head .section-title { margin-bottom: 0; }

    .section-visual {
      flex-shrink: 0;
      line-height: 0;
    }

    /* Le SVG d'origine se réduisait via `zoom`, non standard : on dimensionne
       plutôt le conteneur, ce qui laisse le viewBox gérer la mise à l'échelle. */
    .server-stack {
      width: 200px;
      height: auto;
      overflow: visible; /* Les serveurs sortent du cadre en flottant. */
    }

    /* Les animations (flottement, diodes) sont embarquées dans le SVG lui-même,
       pour qu'il reste autonome — voir partials/server-stack.svg. */

    /* ===== DÉCRYPTAGE DU TITRE ===== */
    /* nowrap : les caractères aléatoires ne doivent jamais provoquer
       de retour à la ligne pendant que le nom se résout. */
    .hero-name .decrypt { display: inline-block; white-space: nowrap; }

    /* ===== LIEN D'ÉVITEMENT (accessibilité clavier) ===== */
    .skip-link {
      position: absolute;
      left: -9999px;
      top: 0;
      z-index: 2000;
      background: var(--pink);
      color: #fff;
      padding: 12px 20px;
      border-radius: 0 0 8px 0;
      font-weight: 600;
      text-decoration: none;
    }
    .skip-link:focus { left: 0; }

    /* ===== CURSOR GLOW ===== */
    /* La position est pilotée en JS via `transform` (moins coûteux que left/top). */
    #cursor-glow {
      position: fixed;
      left: 0; top: 0;
      width: 400px;
      height: 400px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,45,120,.12) 0%, transparent 70%);
      pointer-events: none;
      transform: translate(-50%,-50%);
      will-change: transform;
      z-index: 1;
      transition: opacity .3s;
    }

    /* ===== HEADER / NAV ===== */
    header {
      position: fixed;
      top: 0; left: 0; width: 100%;
      z-index: 1000;
      padding: 18px 60px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(6,6,16,.85);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      transition: padding .3s var(--ease);
    }

    .logo {
      font-family: var(--font-head);
      font-size: 26px;
      letter-spacing: 2px;
      color: var(--pink);
      text-decoration: none;
    }
    .logo span { color: var(--text); }

    nav { display: flex; gap: 8px; align-items: center; }

    nav a {
      font-family: var(--font-mono);
      font-size: 12px;
      text-decoration: none;
      color: var(--muted);
      padding: 6px 14px;
      border-radius: 20px;
      transition: color .2s, background .2s;
      letter-spacing: .05em;
    }
    nav a:hover, nav a.active {
      color: #fff;
      background: rgba(255,45,120,.15);
    }

    .nav-cta {
      background: var(--pink);
      color: #fff !important;
      padding: 8px 20px !important;
      border-radius: 20px;
      font-weight: 600;
      transition: transform .2s, box-shadow .2s !important;
    }
    .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,45,120,.4) !important; background: var(--pink) !important; }

    /* ===== SECTIONS SHARED ===== */
    section {
      position: relative;
      z-index: 2;
      padding: 120px 60px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .section-label {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--pink);
      letter-spacing: .2em;
      text-transform: uppercase;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .section-label::before {
      content: '';
      width: 30px; height: 1px;
      background: var(--pink);
    }

    .section-title {
      font-family: var(--font-head);
      font-size: clamp(42px, 6vw, 72px);
      line-height: 1;
      letter-spacing: 2px;
      color: #fff;
      margin-bottom: 60px;
    }
    .section-title span { color: var(--pink); }

    .reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
    .reveal.visible { opacity: 1; transform: none; }
    .reveal-delay-1 { transition-delay: .1s; }
    .reveal-delay-2 { transition-delay: .2s; }
    .reveal-delay-3 { transition-delay: .3s; }
    .reveal-delay-4 { transition-delay: .4s; }

    /* ===== HERO ===== */
    #home {
      min-height: 100vh;
      display: flex;
      align-items: center;
      gap: 80px;
      max-width: 1200px;
      margin: 0 auto;
      padding: 140px 60px 80px;
    }

    .hero-content { flex: 1; }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(0,229,255,.08);
      border: 1px solid rgba(0,229,255,.2);
      border-radius: 30px;
      padding: 6px 16px;
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--cyan);
      margin-bottom: 28px;
      letter-spacing: .05em;
    }
    .hero-badge::before {
      content: '';
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--cyan);
      animation: pulse 2s infinite;
    }
    @keyframes pulse {
      0%,100% { opacity: 1; transform: scale(1); }
      50% { opacity: .4; transform: scale(.8); }
    }

    .hero-name {
      font-family: var(--font-head);
      font-size: clamp(48px, 7vw, 88px);
      line-height: 1;
      letter-spacing: 3px;
      margin-bottom: 10px;
      background: linear-gradient(135deg, #fff 30%, var(--pink));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero-role {
      font-family: var(--font-mono);
      font-size: clamp(16px, 2vw, 22px);
      color: var(--cyan);
      margin-bottom: 24px;
      min-height: 30px;
    }

    .cursor-blink {
      display: inline-block;
      width: 2px; height: 1em;
      background: var(--cyan);
      vertical-align: text-bottom;
      animation: blink 1s step-end infinite;
    }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

    .hero-desc {
      color: var(--muted);
      font-size: 17px;
      max-width: 520px;
      margin-bottom: 40px;
      line-height: 1.75;
    }

    .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--pink);
      color: #fff;
      padding: 14px 30px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      font-size: 15px;
      transition: transform .2s, box-shadow .2s;
      box-shadow: 0 0 30px rgba(255,45,120,.35);
    }
    .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(255,45,120,.5); }

    .btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: transparent;
      color: #fff;
      padding: 14px 30px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      font-size: 15px;
      border: 1px solid var(--border);
      transition: border-color .2s, background .2s;
    }
    .btn-secondary:hover { border-color: var(--pink); background: rgba(255,45,120,.08); }

    .hero-socials { display: flex; gap: 12px; }

    .social-link {
      width: 42px; height: 42px;
      border: 1px solid var(--border);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      text-decoration: none;
      font-size: 16px;
      transition: color .2s, border-color .2s, background .2s, transform .2s;
    }
    .social-link:hover { color: var(--pink); border-color: var(--pink); background: rgba(255,45,120,.08); transform: translateY(-3px); }

    .hero-visual {
      flex-shrink: 0;
      position: relative;
    }

    .hero-avatar-wrap {
      position: relative;
      width: 355px; height: 320px;
    }

    .hero-avatar-wrap::before {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 30px;
      background: linear-gradient(135deg, var(--pink), var(--cyan), var(--pink));
      animation: rotate-border 4s linear infinite;
      z-index: -1;
    }
    @keyframes rotate-border {
      0%   { filter: hue-rotate(0deg); }
      100% { filter: hue-rotate(360deg); }
    }

    .hero-avatar-wrap img {
      width: 100%; height: 100%;
      object-fit: cover;
      border-radius: 28px;
      display: block;
      background: var(--bg2);
    }

    .hero-stats {
      display: flex;
      gap: 20px;
      margin-top: 20px;
      justify-content: center;
    }

    .btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 45, 120, .4);
    color: var(--pink);
    background: rgba(255, 45, 120, .08);
    transition: all .3s ease;
    letter-spacing: .03em;
    }

    .btn-cv:hover {
    background: rgba(255, 45, 120, .18);
    border-color: var(--pink);
    box-shadow: 0 0 20px rgba(255, 45, 120, .25);
    transform: translateY(-2px);
    }

    .stat-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px 20px;
      text-align: center;
      flex: 1;
    }
    .stat-card .num {
      font-family: var(--font-head);
      font-size: 28px;
      color: var(--pink);
      display: block;
    }
    .stat-card .lbl {
      font-size: 11px;
      color: var(--muted);
      letter-spacing: .05em;
    }

    /* ===== ABOUT ===== */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }

    .about-img-wrap { position: relative; }

    .about-img-wrap img {
      width: 100%;
      border-radius: 20px;
      object-fit: cover;
      aspect-ratio: 4/5;
      background: var(--bg2);
    }


    .about-tag {
      position: absolute;
      bottom: -20px; right: -20px;
      background: var(--pink);
      color: #fff;
      padding: 16px 24px;
      border-radius: 12px;
      font-family: var(--font-head);
      font-size: 22px;
      letter-spacing: 1px;
    }

    .about-cards { display: flex; flex-direction: column; gap: 20px; }

    .about-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 24px;
      display: flex;
      gap: 18px;
      align-items: flex-start;
      transition: border-color .3s, transform .3s;
    }
    .about-card:hover { border-color: rgba(255,45,120,.3); transform: translateX(6px); }

    .about-icon {
      width: 48px; height: 48px;
      border-radius: 12px;
      background: rgba(255,45,120,.12);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      color: var(--pink);
      flex-shrink: 0;
    }

    .about-card h4 { font-weight: 600; margin-bottom: 6px; font-size: 15px; }
    .about-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }

    /* ===== SKILLS ===== */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
    }

    .skill-card {
      --skill-accent: var(--pink);
      --skill-wash: rgba(255,45,120,.08);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 28px;
      transition: border-color .3s, transform .3s;
      position: relative;
      overflow: hidden;
    }
    .skill-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      height: 2px;
      width: 0%;
      background: var(--skill-accent);
      transition: width .5s var(--ease);
    }
    .skill-card:hover::before { width: 100%; }
    .skill-card:hover { border-color: var(--skill-accent); transform: translateY(-5px); box-shadow: 0 14px 34px var(--skill-wash); }

    .skill-icon {
      font-size: 36px;
      color: var(--skill-accent);
      margin-bottom: 16px;
      display: block;
    }

    .skill-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

    .skill-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }

    .skill-tags { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; }

    .skill-tag,
    .stack-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: var(--font-mono);
      font-size: 11px;
      padding: 3px 10px;
      border-radius: 4px;
    }
    .skill-tag i, .skill-tag img,
    .stack-tag i, .stack-tag img { width: 14px; height: 14px; font-size: 14px; object-fit: contain; }

    .skill-tag { background: rgba(0,229,255,.07); border: 1px solid rgba(0,229,255,.15); }
    .stack-tag { background: rgba(0,229,255,.07); border: 1px solid rgba(0,229,255,.15); }

    .brand-html { color: #e34f26; }
    .brand-css { color: #1572b6; }
    .brand-javascript { color: #f7df1e; }
    .brand-php { color: #9b9bd4; }
    .brand-react { color: #61dafb; }
    .brand-node { color: #55b85a; }
    .brand-express { color: #e8eaf0; }
    .brand-laravel { color: #ff5b4d; }
    .brand-tailwind { color: #38c4d8; }
    .brand-bootstrap { color: #b19aff; }
    .brand-socket { color: #e8eaf0; }
    .brand-mysql { color: #5fa7d8; }
    .brand-postgresql { color: #77a8ed; }
    .brand-kali { color: #78a5c4; }
    .brand-metasploit { color: #46afe5; }
    .brand-nmap { color: #64c9ed; }
    .brand-ubuntu { color: #f1763b; }
    .brand-windows { color: #45a8f0; }
    .brand-vmware { color: #a4b6c2; }
    .brand-hyperv { color: #45a8f0; }
    .brand-docker { color: #4aaeff; }
    .brand-terraform { color: #ad92ff; }
    .brand-ansible { color: #ff6b6b; }
    .brand-proxmox { color: #f08456; }
    .brand-virtualbox { color: #73afea; }

    /* ===== EDUCATION ===== */
    .timeline { position: relative; }

    .timeline::before {
      content: '';
      position: absolute;
      left: 20px; top: 0; bottom: 0;
      width: 1px;
      background: linear-gradient(to bottom, var(--pink), transparent);
    }

    .timeline-item {
      display: flex;
      gap: 40px;
      margin-bottom: 48px;
      padding-left: 60px;
      position: relative;
    }

    .timeline-dot {
      position: absolute;
      left: 10px; top: 8px;
      width: 22px; height: 22px;
      border-radius: 50%;
      background: var(--bg);
      border: 2px solid var(--pink);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .timeline-dot::after {
      content: '';
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--pink);
    }

    .timeline-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 28px;
      flex: 1;
      transition: border-color .3s;
    }
    .timeline-card:hover { border-color: rgba(255,45,120,.3); }

    .timeline-meta {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px;
      flex-wrap: wrap;
      gap: 10px;
    }

    .timeline-title { font-size: 18px; font-weight: 700; }
    .timeline-org { color: var(--pink); font-size: 14px; margin-top: 4px; }

    .timeline-date {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--muted);
      background: rgba(255,255,255,.05);
      padding: 4px 12px;
      border-radius: 20px;
    }

    .timeline-desc { color: var(--muted); font-size: 14px; line-height: 1.65; }

    /* ===== PROJECTS ===== */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
      gap: 24px;
    }

    .project-card {
      --project-accent: #ff2d78;
      --project-wash: rgba(255,45,120,.13);
      background: var(--surface);
      border: 1px solid var(--border);
      border-top: 2px solid var(--project-accent);
      border-radius: 16px;
      overflow: hidden;
      transition: transform .3s, border-color .3s;
      display: flex;
      flex-direction: column;
    }
    .project-card--portfolio,
    .project-card--security,
    .project-card--transport,
    .project-card--mobile,
    .project-card--chat,
    .project-card--academic { --project-accent: #ff5c8a; --project-wash: rgba(255,92,138,.09); }

    .project-card:hover { transform: translateY(-6px); border-color: var(--project-accent); }

    .project-header {
      padding: 28px 28px 20px;
      background: linear-gradient(120deg, var(--project-wash), rgba(255,255,255,.015) 68%);
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .project-icon {
      width: 52px; height: 52px;
      border-radius: 14px;
      background: var(--project-wash);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      color: var(--project-accent);
    }

    .project-links { display: flex; gap: 8px; }

    .project-link {
      width: 36px; height: 36px;
      border: 1px solid var(--border);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      text-decoration: none;
      font-size: 14px;
      transition: color .2s, border-color .2s;
    }
    .project-link:hover { color: var(--project-accent); border-color: var(--project-accent); }

    .project-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }

    .project-name { font-size: 18px; font-weight: 700; margin-bottom: 10px; }

    .project-desc { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 20px; flex: 1; }

    .project-stack { display: flex; flex-wrap: wrap; gap: 8px 14px; }

    /* ===== CERTIFICATIONS ===== */
    .documents-intro {
      max-width: 620px;
      margin: -34px 0 28px;
      color: var(--muted);
      font-size: 15px;
    }

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

    .document-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(150px, .78fr) minmax(0, 1fr);
      min-height: 250px;
      transition: border-color .3s, transform .3s, box-shadow .3s;
    }
    .document-card:hover {
      border-color: var(--cover-accent);
      transform: translateY(-4px);
      box-shadow: 0 18px 42px rgba(0,0,0,.25);
    }

    .document-card--academic { --cover-accent: #ffd166; }
    .document-card--experience { --cover-accent: #00e5ff; }
    .document-card--certification { --cover-accent: #ff789f; }
    .document-card--diploma { --cover-accent: #83d6aa; }

    .document-cover {
      position: relative;
      min-height: 250px;
      padding: 18px;
      display: grid;
      place-items: center;
      overflow: hidden;
      background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--cover-accent) 17%, transparent), transparent 68%), var(--bg2);
      border-bottom: 1px solid var(--border);
      perspective: 1000px;
    }

    .book-preview {
      position: relative;
      width: min(100%, 230px);
      height: 205px;
      border: 0;
      padding: 0;
      color: inherit;
      background: transparent;
      cursor: pointer;
      transform-style: preserve-3d;
    }

    .book-preview:focus-visible {
      outline: 2px solid var(--cover-accent);
      outline-offset: 5px;
    }

    .book-pages,
    .book-cover {
      position: absolute;
      inset: 0;
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      text-align: left;
    }

    .book-pages {
      z-index: 0;
      padding: 7px;
      border: 1px solid rgba(255,255,255,.7);
      background: #f7f4ec;
      box-shadow: 5px 5px 0 rgba(255,255,255,.13), 10px 10px 0 rgba(255,255,255,.06);
      opacity: 0;
      transform: scale(.92);
      transition: opacity .12s ease, transform .24s var(--ease);
    }
    .preview-doc-header,
    .preview-doc-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--cover-accent);
      font-family: var(--font-mono);
      font-size: 8px;
    }
    .preview-doc-header i { font-size: 17px; }
    .preview-doc-title { color: #292a32; font-family: var(--font-head); font-size: 21px; line-height: 1.05; text-align: center; }
    .preview-doc-subtitle { color: #5f6168; font-size: 10px; text-align: center; }
    .preview-doc-lines { display: grid; gap: 5px; }
    .preview-doc-lines i { display: block; width: 100%; height: 3px; background: rgba(40,42,53,.16); }
    .preview-doc-lines i:nth-child(2) { width: 82%; }
    .preview-doc-lines i:nth-child(3) { width: 58%; }
    .preview-doc-seal { align-self: center; padding: 3px 9px; border: 1px solid var(--cover-accent); border-radius: 50%; color: #64656b; font-family: var(--font-mono); font-size: 7px; }

    .book-cover {
      z-index: 1;
      transform-origin: left center;
      backface-visibility: hidden;
      border: 1px solid color-mix(in srgb, var(--cover-accent) 50%, transparent);
      background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.015));
      box-shadow: 8px 8px 0 rgba(255,255,255,.035), 15px 15px 0 rgba(255,255,255,.02), inset 5px 0 0 rgba(0,0,0,.16);
      transform: rotate(-3deg);
      transition: transform .45s cubic-bezier(.2,.75,.25,1), opacity .12s ease, box-shadow .45s var(--ease);
    }

    .document-card.is-open .book-pages,
    .document-card.is-auto-open .book-pages,
    .document-card.is-hover-open .book-pages { opacity: 1; transform: scale(1); transition: opacity .16s .24s ease, transform .24s .12s var(--ease); }
    .document-card.is-open .book-cover,
    .document-card.is-auto-open .book-cover,
    .document-card.is-hover-open .book-cover { transform: rotateY(-165deg) rotate(-3deg); opacity: 0; box-shadow: none; }
    .document-card.is-open .book-cover,
    .document-card.is-auto-open .book-cover { transition: transform .45s cubic-bezier(.2,.75,.25,1), opacity .12s .3s ease, box-shadow .45s var(--ease); }

    .cover-topline,
    .cover-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: var(--cover-accent);
      font-family: var(--font-mono);
      font-size: 9px;
    }
    .cover-topline i { font-size: 11px; }
    .cover-symbol { color: var(--cover-accent); font-size: 34px; margin: 10px 0 4px; }
    .cover-kicker { color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
    .cover-title { color: var(--text); font-family: var(--font-head); font-size: 27px; line-height: 1; }

    .document-info { padding: 22px 22px 20px; align-self: center; }
    .document-type { color: var(--cover-accent); font-family: var(--font-mono); font-size: 10px; margin-bottom: 9px; }
    .document-info h4 { font-size: 17px; font-weight: 600; line-height: 1.35; margin-bottom: 10px; }
    .document-info p { color: var(--muted); font-size: 13px; line-height: 1.7; }

    @media (max-width: 900px) {
      .documents-grid { grid-template-columns: 1fr; }
      .document-card { grid-template-columns: minmax(160px, .65fr) minmax(0, 1fr); }
    }

    @media (max-width: 560px) {
      .document-card { grid-template-columns: 1fr; }
      .document-cover { min-height: 230px; }
      .book-preview { height: 185px; }
      .document-info { padding: 18px 20px 22px; }
      .documents-intro { margin-top: -34px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .book-cover,
      .book-pages { transition: none; }
    }

    /* ===== CONTACT ===== */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1.4fr;
      gap: 60px;
      align-items: start;
    }

    .contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
    .contact-info p { color: var(--muted); line-height: 1.75; margin-bottom: 32px; }

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

    .contact-item {
      display: flex;
      align-items: center;
      gap: 14px;
      color: var(--muted);
      font-size: 15px;
      text-decoration: none;
      transition: color .2s;
    }
    .contact-item:hover { color: #fff; }

    .contact-item-icon {
      width: 42px; height: 42px;
      border: 1px solid var(--border);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      color: var(--pink);
      flex-shrink: 0;
    }

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

    .form-group { display: flex; flex-direction: column; gap: 8px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

    label { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }

    input, textarea {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px 18px;
      font-family: var(--font-body);
      font-size: 15px;
      color: var(--text);
      transition: border-color .2s;
      width: 100%;
    }
    input::placeholder, textarea::placeholder { color: var(--muted); }
    input:focus, textarea:focus { outline: none; border-color: var(--pink); }

    textarea { resize: vertical; min-height: 140px; }

    .btn-submit {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: var(--pink);
      color: #fff;
      border: none;
      padding: 16px 32px;
      border-radius: 10px;
      font-family: var(--font-body);
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      transition: transform .2s, box-shadow .2s;
      box-shadow: 0 0 30px rgba(255,45,120,.3);
    }
    .btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(255,45,120,.5); }

    /* ===== FOOTER ===== */
    footer {
      position: relative;
      z-index: 2;
      border-top: 1px solid var(--border);
      padding: 40px 60px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
    }

    footer p { color: var(--muted); font-size: 14px; }
    footer .foot-logo { font-family: var(--font-head); font-size: 22px; color: var(--pink); }

    .footer-socials { display: flex; gap: 10px; }

    /* ===== MOBILE MENU ===== */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 8px;
      background: none;
      border: 0;
      color: inherit;
    }
    .hamburger span {
      display: block;
      width: 24px; height: 2px;
      background: var(--text);
      border-radius: 2px;
      transition: transform .3s, opacity .3s;
    }
    /* Croix lorsque le menu est ouvert */
    .hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.is-open span:nth-child(2) { opacity: 0; }
    .hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ===== CHAMP PIÈGE À ROBOTS ===== */
    /* Masqué visuellement sans `display:none`, que certains bots détectent. */
    .hp-field {
      position: absolute;
      left: -9999px;
      width: 1px; height: 1px;
      overflow: hidden;
    }

    /* ===== ÉTATS DU FORMULAIRE ===== */
    .btn-submit.is-success { background: #22c55e; }
    .btn-submit.is-error   { background: #ef4444; }
    .btn-submit:disabled   { opacity: .75; cursor: not-allowed; transform: none; }

    .form-status {
      margin-top: 14px;
      font-size: 14px;
      min-height: 1.4em;
      font-family: var(--font-mono);
    }
    .form-status.success { color: #4ade80; }
    .form-status.error   { color: #f87171; }

    /* ===== FOCUS VISIBLE (navigation clavier) ===== */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible {
      outline: 2px solid var(--cyan);
      outline-offset: 3px;
      border-radius: 4px;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 900px) {
      section, header { padding-left: 24px; padding-right: 24px; }
      #home { flex-direction: column; gap: 50px; padding-top: 120px; text-align: center; }
      .hero-actions { justify-content: center; }
      .hero-socials { justify-content: center; }
      .hero-avatar-wrap { width: 280px; height: 260px; margin: 0 auto; }
      .about-grid { grid-template-columns: 1fr; }
      .about-tag { display: none; }
      .contact-grid { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; }
      /* Le visuel passe sous le titre et se centre. */
      .section-head { justify-content: center; text-align: center; }
      .server-stack { width: 160px; }
      .hamburger { display: flex; }
      nav { display: none; position: fixed; top: 72px; left: 0; width: 100%; background: rgba(6,6,16,.97); flex-direction: column; padding: 20px 24px 30px; gap: 4px; border-bottom: 1px solid var(--border); }
      nav.open { display: flex; }
      nav a { font-size: 14px; padding: 10px 16px; border-radius: 8px; }
      footer { flex-direction: column; text-align: center; }
    }

    /* ===== PETITS ÉCRANS ===== */
    @media (max-width: 560px) {
      section, header { padding-left: 16px; padding-right: 16px; }
      .hero-name { font-size: clamp(38px, 13vw, 64px); line-height: 1.05; word-break: break-word; }
      .section-title { font-size: clamp(32px, 11vw, 56px); }
      .hero-actions { flex-direction: column; align-items: stretch; }
      .hero-actions > a { justify-content: center; width: 100%; }
      .hero-stats { flex-wrap: wrap; justify-content: center; }
      .skills-grid, .projects-grid, .certs-grid { grid-template-columns: 1fr; }
      .server-stack { width: 130px; }
      .about-tag { display: none; }
    }

    /* ===== ANIMATIONS RÉDUITES ===== */
    /* Respecte le réglage système des personnes sensibles au mouvement. */
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
      }
      .reveal { opacity: 1; transform: none; }
      #cursor-glow { display: none; }
    }