/* ═══════════════════════════════════════════════════════
   PORTFOLIO — Paul HANT
   Fichier : public/css/portfolio.css
   ═══════════════════════════════════════════════════════ */

  :root {
    --bg: #13182a;
    --bg2: #1a2035;
    --bg3: #202840;
    --blue: #2563ff;
    --blue-bright: #5b8aff;
    --blue-glow: rgba(37,99,255,0.2);
    --blue-subtle: rgba(37,99,255,0.12);
    --text: #f0f4ff;
    --text-muted: #9daec8;
    --text-dim: #5a6d8a;
    --border: rgba(91,138,255,0.25);
    --border-dim: rgba(255,255,255,0.09);
    --radius: 4px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* ── NOISE OVERLAY ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
    z-index: 999;
  }

  /* ── GRID BACKGROUND ── */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(37,99,255,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(37,99,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    background: rgba(19,24,42,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dim);
  }

  .nav-logo {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: var(--text);
    text-decoration: none;
  }

  .nav-logo span { color: var(--blue); }

  .nav-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
  }

  .nav-back:hover { color: var(--text); }

  .nav-back-arrow {
    font-size: 1rem;
    transition: transform 0.2s;
  }

  .nav-back:hover .nav-back-arrow { transform: translateX(-3px); }

  /* ── CONTAINER ── */
  .container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 1;
  }

  /* ── HERO CGU ── */
  .cgu-hero {
    padding: 140px 0 60px;
    border-bottom: 1px solid var(--border-dim);
    position: relative;
    z-index: 1;
  }

  .cgu-hero .section-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--blue);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .cgu-hero .section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--blue);
  }

  .cgu-hero h1 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 20px;
  }

  .cgu-hero-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }

  .cgu-meta-item {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
  }

  .cgu-meta-item span { color: var(--text-muted); }

  /* ── LAYOUT ── */
  .cgu-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
    padding: 60px 0 120px;
    align-items: start;
    position: relative;
    z-index: 1;
  }

  /* ── SOMMAIRE (sidebar) ── */
  .cgu-toc {
    position: sticky;
    top: 90px;
  }

  .cgu-toc-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }

  .cgu-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .cgu-toc-list a {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 10px;
    border-left: 2px solid var(--border-dim);
    transition: color 0.2s, border-color 0.2s;
    line-height: 1.4;
  }

  .cgu-toc-list a:hover {
    color: var(--text);
    border-color: var(--blue);
  }

  .cgu-toc-list a.active {
    color: var(--blue-bright);
    border-color: var(--blue);
  }

  /* ── CONTENU CGU ── */
  .cgu-content {
    display: flex;
    flex-direction: column;
    gap: 56px;
  }

  .cgu-section {
    scroll-margin-top: 100px;
  }

  .cgu-section-num {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.68rem;
    color: var(--blue);
    letter-spacing: 0.15em;
    margin-bottom: 8px;
  }

  .cgu-section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-dim);
  }

  .cgu-section p {
    font-size: 0.95rem;
    color: #b8c8e0;
    line-height: 1.85;
    margin-bottom: 16px;
  }

  .cgu-section p:last-child { margin-bottom: 0; }

  .cgu-section strong { color: var(--text); font-weight: 500; }

  .cgu-section ul {
    list-style: none;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .cgu-section ul li {
    font-size: 0.95rem;
    color: #b8c8e0;
    padding-left: 16px;
    position: relative;
    line-height: 1.7;
  }

  .cgu-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    background: var(--blue);
    border-radius: 50%;
  }

  .cgu-highlight {
    background: var(--blue-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px 24px;
    margin: 20px 0;
  }

  .cgu-highlight p {
    color: var(--text-muted) !important;
    font-size: 0.88rem !important;
    margin: 0 !important;
  }

  .cgu-highlight strong { color: var(--blue-bright) !important; }

  .cgu-contact-box {
    background: var(--bg2);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    padding: 28px;
    margin-top: 20px;
  }

  .cgu-contact-box p {
    margin-bottom: 12px !important;
  }

  .cgu-section p a {
    color: var(--blue-bright);
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
  }

  .cgu-contact-box a:hover {
    text-decoration: underline;
  }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--border-dim);
    padding: 32px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .footer-logo {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: var(--text);
  }

  .footer-logo span { color: var(--blue); }

  .footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .footer-link {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.2s;
  }

  .footer-link:hover { color: var(--blue); }
  .footer-sep { color: var(--text-dim); font-size: 0.72rem; }

  .footer-copy {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 1024px) {
    .container { padding: 0 32px; }
    nav { padding: 16px 32px; }
    .cgu-layout { grid-template-columns: 180px 1fr; gap: 40px; }
    footer { padding: 24px 32px; }
  }

  @media (max-width: 768px) {
    nav { padding: 14px 20px; }
    .container { padding: 0 20px; }
    .cgu-hero { padding: 100px 0 40px; }
    .cgu-hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .cgu-layout {
      grid-template-columns: 1fr;
      gap: 0;
      padding: 32px 0 80px;
    }
    .cgu-toc {
      position: static;
      background: var(--bg2);
      border: 1px solid var(--border-dim);
      border-radius: 8px;
      padding: 20px;
      margin-bottom: 40px;
    }
    .cgu-toc-list { flex-direction: row; flex-wrap: wrap; gap: 4px 8px; }
    .cgu-toc-list a { border-left: none; border-bottom: 2px solid var(--border-dim); padding: 4px 8px; font-size: 0.78rem; }
    footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px 20px; }
  }

  @media (max-width: 480px) {
    nav { padding: 12px 16px; }
    .container { padding: 0 16px; }
    .cgu-section h2 { font-size: 1.15rem; }
    footer { padding: 20px 16px; }
  }
