:root {
      --bg: #f5f5f7;
      --card-bg: #ffffff;
      --text: #1d1d1f;
      --text-secondary: #6e6e73;
      --border: #e5e5ea;
      --accent: #0071e3;
      --shadow: 0 8px 30px rgba(0,0,0,0.08);
    }

    [data-theme="dark"] {
      --bg: #000000;
      --card-bg: #1c1c1e;
      --text: #f5f5f7;
      --text-secondary: #a1a1a6;
      --border: #38383a;
      --accent: #0a84ff;
      --shadow: 0 8px 30px rgba(0,0,0,0.45);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
    /* Évite le decentrage quand la scrollbar apparaît */
      scrollbar-gutter: stable;
    /* Empêche le reload par scroll bas*/
      overscroll-behavior: none;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      justify-content: safe center;
      align-items: center;
      padding: max(20px, env(safe-area-inset-top)) 
               max(20px, env(safe-area-inset-right)) 
               max(20px, env(safe-area-inset-bottom)) 
               max(20px, env(safe-area-inset-left));
      transition: background 0.3s, color 0.3s;
    }

    .card {
      background: var(--card-bg);
      width: 100%;
      max-width: 420px;
      margin: auto;
      border-radius: 20px;
      padding: 32px 24px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
      text-align: center;
    }

    .photo {
      width: 130px;
      height: 130px;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid var(--border);
      box-shadow: 0 4px 15px rgba(0,0,0,0.12);
      margin-bottom: 20px;
    }

    h1 {
      font-size: 1.65rem;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .role {
      color: var(--text-secondary);
      font-size: 1rem;
      margin-bottom: 18px;
    }

    .bio {
      font-size: 0.95rem;
      line-height: 1.5;
      margin-bottom: 6px;
    }

    .links {
      display: grid;
      grid-template-columns: repeat(3, 1fr);  
      gap: 8px;
      justify-content: center;
      margin: 24px 0;
      width: 100%;
    }

    .link {
      text-decoration: none;
      color: var(--text);
      background: var(--bg);
      border: 1px solid var(--border);
      padding: 8px 6px;
      border-radius: 50px;
      font-size: 0.85rem;
      transition: all 0.2s;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .link:hover {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
    }

    .skills {
      font-size: 0.85rem;
      color: var(--text-secondary);
      margin-bottom: 24px;
    }

    footer {
      font-size: 0.8rem;
      color: var(--text-secondary);
    }

    .theme-btn {
      position: fixed;
      top: max(16px, env(safe-area-inset-top));
      right: max(16px, env(safe-area-inset-right));
      background: var(--card-bg);
      border: 1px solid var(--border);
      color: var(--text);
      width: 42px;
      height: 42px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1.2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
      z-index: 10;
    }
