/* Nicolas Materne, portfolio, feuille de style commune */

/* Police Inter auto-hébergée (aucun appel externe) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/inter-800.woff2') format('woff2'); }

  :root {
    --bg: #FAFAF7;
    --surface: #FFFFFF;
    --ink: #16161A;
    --ink-soft: #55555E;
    --ink-faint: #8A8A94;
    --accent: #3B5BFE;
    --accent-soft: #EAEEFF;
    --border: #E8E8E3;
    --radius: 20px;
    --font: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  ::selection { background: var(--accent); color: #fff; }

  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

  /* ---------- NAV ---------- */
  nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250,250,247,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
  }
  .logo { font-weight: 800; font-size: 17px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); display: flex; align-items: center; }
  .logo-sig { height: 34px; width: auto; display: block; }
  .logo-sig path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: sigdraw 1.2s ease-out forwards; }
  .logo-sig path + path { animation-delay: .8s; }
  @keyframes sigdraw { to { stroke-dashoffset: 0; } }
  .logo-name { margin-left: 12px; font-weight: 800; font-size: 16px; letter-spacing: -.02em; color: var(--accent); }
  .btn-nav { background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 600; padding: 9px 20px; border-radius: 99px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
  .btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(59,91,254,.35); color: #fff; }
  .nav-links a.btn-nav { color: #fff; }
  .nav-links a.btn-nav:hover { color: #fff; }
  .nav-links { display: flex; align-items: center; gap: 32px; }
  .nav-links a {
    text-decoration: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 500;
    transition: color .2s;
  }
  .nav-links a:hover { color: var(--ink); }
  .lang-toggle {
    display: flex; border: 1px solid var(--border); border-radius: 99px; overflow: hidden;
    background: var(--surface);
  }
  .lang-toggle button {
    border: none; background: transparent; padding: 6px 14px; cursor: pointer;
    font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--ink-faint);
    transition: all .2s;
  }
  .lang-toggle button.active { background: var(--accent); color: #fff; }

  /* ---------- HERO ---------- */
  .hero { position: relative; overflow: hidden; padding: 80px 0 96px; }
  .hero-content { position: relative; z-index: 2; }
  .hero-photo { width: 92px; height: 92px; border-radius: 50%; margin-bottom: 28px; position: relative; overflow: hidden; border: 3px solid #fff; box-shadow: 0 10px 30px rgba(22,22,26,.15); }
  .hero-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
  .hero-photo .ph-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), #7C3AED); color: #fff; font-weight: 800; font-size: 26px; }
  .hero-in { opacity: 0; animation: fadeUp .9s cubic-bezier(.22,1,.36,1) forwards; }
  .di-1 { animation-delay: .05s; } .di-2 { animation-delay: .18s; }
  .di-3 { animation-delay: .32s; } .di-4 { animation-delay: .46s; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

  /* Décor : skeletons UI flottants */
  .hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .deco { position: absolute; opacity: 0; animation: pop 1.1s cubic-bezier(.22,1,.36,1) forwards; }
  @keyframes pop {
    from { opacity: 0; transform: translateY(50px) scale(.6) rotate(var(--rot, 0deg)); }
    to   { opacity: 1; transform: translateY(0)    scale(1)  rotate(var(--rot, 0deg)); }
  }
  .fl { animation: floaty var(--dur, 7s) ease-in-out infinite alternate; }
  @keyframes floaty { from { transform: translateY(-8px); } to { transform: translateY(12px); } }
  .skel { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 44px rgba(22,22,26,.09); }
  .bar { background: #ECECE6; border-radius: 4px; height: 8px; }
  .blob { position: absolute; top: -120px; right: -100px; width: 520px; height: 520px; border-radius: 50%;
          background: radial-gradient(closest-side, rgba(59,91,254,.10), transparent); }

  .deco-browser { top: 13%; right: 3%; --rot: 5deg; animation-delay: .55s; }
  .deco-browser .skel { width: 240px; padding-bottom: 18px; }
  .b-top { display: flex; gap: 5px; padding: 11px 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
  .b-dot { width: 8px; height: 8px; border-radius: 50%; background: #ECECE6; }
  .deco-browser .bar { margin: 8px 14px 0; }
  .deco-browser .hero-block { margin: 0 14px; height: 54px; border-radius: 8px; background: var(--accent-soft); }

  .deco-phone { bottom: 9%; right: 12%; --rot: -8deg; animation-delay: .7s; }
  .deco-phone .skel { width: 122px; padding: 16px 12px; border-radius: 22px; }
  .deco-phone .notch { width: 40px; height: 5px; border-radius: 3px; background: #ECECE6; margin: 0 auto 12px; }
  .deco-phone .hero-block { height: 64px; border-radius: 10px; background: var(--accent-soft); margin-bottom: 10px; }
  .deco-phone .bar { margin-top: 7px; }

  .deco-card { top: 7%; right: 27%; --rot: -4deg; animation-delay: .85s; }
  .deco-card .skel { width: 190px; padding: 16px; display: flex; gap: 12px; align-items: center; }
  .deco-card .avatar { width: 34px; height: 34px; border-radius: 50%; background: url('../../images/photo-nicolas.jpg') center/cover, linear-gradient(135deg, var(--accent), #7C3AED); flex-shrink: 0; }
  .deco-card .lines { flex: 1; }
  .deco-card .bar + .bar { margin-top: 7px; width: 65%; }

  .deco-aa { bottom: 26%; right: 31%; --rot: 7deg; animation-delay: 1s; }
  .deco-aa .skel { padding: 10px 18px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }

  .deco-cursor { top: 46%; right: 20%; --rot: 0deg; animation-delay: 1.2s; }
  .deco-cursor svg { display: block; filter: drop-shadow(0 4px 10px rgba(59,91,254,.35)); }
  .deco-cursor .cursor-tag { margin: 4px 0 0 16px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; display: inline-block; }

  .deco-cursor2 { top: 51%; right: 28%; --rot: 0deg; animation-delay: 1.35s; }
  .deco-cursor2 svg { display: block; transform: scaleX(-1); filter: drop-shadow(0 4px 10px rgba(249,115,22,.35)); }
  .deco-cursor2 .cursor-tag { margin: 4px 16px 0 0; background: #F97316; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; display: inline-block; }

  .deco-palette { top: 10%; left: 4%; --rot: -6deg; animation-delay: 1.5s; }
  .deco-palette .skel { display: flex; gap: 9px; padding: 13px 15px; }
  .swatch { width: 22px; height: 22px; border-radius: 7px; }
  .sw-1 { background: var(--accent); } .sw-2 { background: #7C3AED; }
  .sw-3 { background: #F97316; } .sw-4 { background: #2BC48A; }

  .deco-logos { top: 9%; left: 31%; --rot: -4deg; animation-delay: 1.8s; }
  .deco-logos .skel { display: flex; align-items: center; gap: 10px; padding: 13px 15px; }
  .logo-dot { width: 27px; height: 27px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  .logo-sq { width: 27px; height: 27px; border-radius: 8px; border: 2px solid var(--ink); color: var(--ink); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  .logo-mark { width: 27px; height: 27px; border-radius: 9px 9px 9px 0; background: linear-gradient(135deg, #F97316, #E11D48); }

  .deco-toggle { right: 2.5%; bottom: 33%; --rot: 4deg; animation-delay: 1.65s; }
  .deco-toggle .skel { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
  .tgl { width: 36px; height: 21px; border-radius: 99px; background: var(--accent); position: relative; flex-shrink: 0; }
  .tgl::after { content: ''; position: absolute; right: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
  .deco-toggle .bar { width: 44px; }

  @media (max-width: 1040px) { .hero-deco { display: none; } }
  @media (prefers-reduced-motion: reduce) { .hero-in, .deco, .fl { animation: none; opacity: 1; } }
  .hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-soft); color: var(--accent);
    font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 99px;
    margin-bottom: 32px;
  }
  .hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #2BC48A; animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
  .hero h1 {
    font-size: clamp(40px, 6.5vw, 72px);
    font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
    max-width: 800px;
    background: linear-gradient(110deg, var(--ink) 42%, #7D95FF 50%, var(--ink) 58%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero h1 em {
    font-style: normal;
    background: linear-gradient(110deg, var(--accent) 42%, #C3CEFF 50%, var(--accent) 58%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 10s linear 2s infinite;
  }
  .hero h1.hero-in { animation: fadeUp .9s cubic-bezier(.22,1,.36,1) .18s forwards, shine 10s linear 2s infinite; }
  @keyframes shine {
    0% { background-position: 200% 0; }
    45% { background-position: -200% 0; }
    100% { background-position: -200% 0; }
  }
  .hero-sub {
    margin-top: 32px; font-size: 19px; color: var(--ink-soft); max-width: 560px;
  }
  .hero-cta { margin-top: 56px; display: flex; gap: 16px; flex-wrap: wrap; }
  .btn {
    display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
    padding: 14px 28px; border-radius: 99px; transition: transform .2s, box-shadow .2s;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(59,91,254,.35); }
  .btn-ghost { border: 1.5px solid var(--border); color: var(--ink); background: var(--surface); }

  /* ---------- SECTIONS ---------- */
  .sect { padding: 60px 0; scroll-margin-top: 48px; }
  .section-head { margin-bottom: 48px; }
  .kicker {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
    color: var(--accent); margin-bottom: 14px;
  }
  h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
  .section-head p { margin-top: 16px; color: var(--ink-soft); max-width: 520px; }

  /* ---------- PROJECTS GRID ---------- */
  .grid {
    display: grid; gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(22,22,26,.10); }
  .card-cover {
    height: 190px; display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: #fff;
  }
  .cover-jooxter  { background: linear-gradient(135deg, #3B5BFE, #7C3AED); }
  .cover-sgha     { background: linear-gradient(135deg, #0EA5A4, #14532D); }
  .cover-inside   { background: linear-gradient(135deg, #16A34A, #A3E635); }
  .cover-lyreco   { background: linear-gradient(135deg, #1D4ED8, #38BDF8); }
  .cover-neoledge { background: linear-gradient(135deg, #E11D48, #F97316); }
  .card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
  .card-body h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
  .card-body p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); flex: 1; }
  .tags { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
  .tag {
    font-size: 12px; font-weight: 600; color: var(--ink-soft);
    background: var(--bg); border: 1px solid var(--border);
    padding: 4px 12px; border-radius: 99px;
  }
  .card-link {
    margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent);
  }

  /* ---------- ABOUT ---------- */
  .about-box {
    background: linear-gradient(135deg, #17171C 0%, #1D1C33 55%, #272057 100%); color: #fff; border-radius: 28px;
    padding: clamp(40px, 6vw, 80px);
    display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px 56px; align-items: center;
  }
  .about-box h2 { color: #fff; }
  .about-box p { margin-top: 22px; color: rgba(255,255,255,.72); font-size: 16.5px; }
  .about-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.15); margin-bottom: 32px; display: block; }
  .viz { display: flex; flex-direction: column; gap: 26px; }
  .exp { display: flex; align-items: center; gap: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 24px 28px; background: rgba(255,255,255,.04); }
  .exp b { font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
    background: linear-gradient(100deg, #7D95FF, #C89BFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .exp-cap { display: block; font-weight: 700; font-size: 16.5px; }
  .exp-sub { display: block; color: rgba(255,255,255,.6); font-size: 13.5px; margin-top: 3px; }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .chip { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); padding: 9px 18px; border-radius: 99px; font-size: 13.5px; font-weight: 600; }
  .chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #7D95FF; flex-shrink: 0; }
  .chip:nth-child(4n+2)::before { background: #F97316; }
  .chip:nth-child(4n+3)::before { background: #2BC48A; }
  .chip:nth-child(4n)::before { background: #E879F9; }
  .about-stats { grid-column: 1 / -1; display: flex; border-top: 1px solid rgba(255,255,255,.12); padding-top: 32px; }
  .ms { flex: 1; text-align: center; border-left: 1px solid rgba(255,255,255,.12); padding: 0 12px; }
  .ms:first-child { border-left: none; }
  .ms b { display: block; font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
    background: linear-gradient(100deg, #7D95FF, #C89BFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .ms span { display: block; margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.4; }
  .about-box .chips { grid-column: 1 / -1; }

  /* ---------- TÉMOIGNAGES ---------- */
  .quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .quote-featured { position: relative; overflow: hidden; margin-top: 24px; background: linear-gradient(120deg, var(--accent), #7C3AED); color: #fff; border-radius: var(--radius); padding: 44px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
  .quote-featured > * { position: relative; z-index: 1; }
  .qf-golfer { position: absolute; right: 24px; bottom: -14px; height: 118%; width: auto; opacity: .16; pointer-events: none; z-index: 0 !important; }
  .quote-featured .qf-mark { font-size: 64px; font-weight: 800; line-height: 1; opacity: .5; }
  .quote-featured p { font-size: 18px; line-height: 1.6; }
  .quote-featured .quote-author { margin-top: 18px; }
  .quote-featured .qa-av { background: #fff; color: var(--accent); }
  .quote-featured .qa-name span { color: rgba(255,255,255,.75); }
  .quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; }
  .quote-mark { font-size: 46px; font-weight: 800; color: var(--accent); line-height: 1; }
  .quote p { margin-top: 12px; font-size: 15.5px; color: var(--ink-soft); flex: 1; }
  .quote-author { margin-top: 24px; display: flex; align-items: center; gap: 13px; }
  .qa-av { width: 42px; height: 42px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .qa-name b { display: block; font-size: 14.5px; }
  .qa-name span { font-size: 13px; color: var(--ink-faint); }
  .badge-founder { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: 11px 20px; border-radius: 99px; font-size: 13.5px; font-weight: 600; }
  .badge-founder::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2BC48A; }

  /* ---------- FRISE OUTILS ---------- */
  .tools { margin-top: 64px; }
  .tools .kicker { text-align: center; }
  .tools-strip { overflow: hidden; margin-top: 28px; position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .tools-track { display: flex; gap: 14px; width: max-content; animation: tscroll 42s linear infinite; }
  .tools-strip:hover .tools-track { animation-play-state: paused; }
  @keyframes tscroll { to { transform: translateX(-50%); } }
  .tool { display: flex; align-items: center; gap: 11px; padding: 10px 20px 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; white-space: nowrap; font-size: 14px; font-weight: 600; }
  .tool-ic { width: 30px; height: 30px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

  /* ---------- CONTACT ---------- */
  .contact { text-align: center; padding: 72px 0; }
  .contact-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .contact h2 { font-size: clamp(32px, 5vw, 52px); }
  .contact p { margin: 20px auto 44px; color: var(--ink-soft); max-width: 460px; }

  footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
  .footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
  .f-logo { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
  .f-logo span { color: var(--accent); }
  .f-role { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
  .f-social { display: flex; gap: 10px; flex-wrap: wrap; }
  .f-social a { text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--ink); border: 1px solid var(--border); background: var(--surface); padding: 9px 18px; border-radius: 99px; transition: all .2s; }
  .f-social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
  .f-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--ink-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

  @media (max-width: 760px) {
    .nav-links a { display: none; }
    .wrap { padding-left: 24px !important; padding-right: 24px !important; }
    .about-box { grid-template-columns: 1fr; gap: 40px; }
    .quotes { grid-template-columns: 1fr; }
    .about-stats { flex-direction: column; gap: 20px; }
    .ms { border-left: none; text-align: left; padding: 0; }
    .quote-featured { grid-template-columns: 1fr; padding: 32px; }
    .hero { padding: 56px 0 68px; }
    .sect { padding: 44px 0; }
    .nav-links .btn-nav { display: inline-block; }
  }

  /* ---------- PAGES PROJETS ---------- */
  .banner { background: linear-gradient(135deg, #3B5BFE, #7C3AED); color: #fff; padding: 72px 0 60px; }
  .banner .crumb { font-size: 13.5px; font-weight: 600; opacity: .85; margin-bottom: 24px; }
  .banner .crumb a { color: #fff; text-decoration: none; opacity: .85; }
  .banner h1 { font-size: clamp(44px, 7vw, 80px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
  .banner .role { margin-top: 20px; font-size: 18px; opacity: .9; max-width: 620px; }
  .banner .tags { margin-top: 36px; display: flex; gap: 10px; flex-wrap: wrap; }
  .banner .tag { font-size: 12.5px; font-weight: 600; padding: 6px 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.4); }


  .mission { display: grid; grid-template-columns: 1.5fr .8fr; gap: 72px; align-items: start; }
  .mission-text p { margin-top: 22px; font-size: 17px; color: var(--ink-soft); }
  .meta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
  .meta-row { padding: 16px 0; border-bottom: 1px solid var(--border); }
  .meta-row:first-child { padding-top: 0; }
  .meta-row:last-child { border-bottom: none; padding-bottom: 0; }
  .meta-row .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
  .meta-row .value { margin-top: 4px; font-size: 15.5px; font-weight: 600; }

  .visuals { padding-top: 0; }
  .visuals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 72px; }
  .visual { aspect-ratio: 16 / 10; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-faint); }
  .visual.wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .visual svg { opacity: .5; }
  .visual span { font-size: 13.5px; font-weight: 600; }

  .proj-nav { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0 60px; }
  .proj-nav a { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 32px; flex: 1; transition: transform .2s, box-shadow .2s; }
  .proj-nav a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(22,22,26,.08); }
  .proj-nav .dir { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
  .proj-nav .pname { margin-top: 6px; font-size: 18px; font-weight: 700; }
  .proj-nav .next { text-align: right; }

  @media (max-width: 760px) {
    .mission { grid-template-columns: 1fr; gap: 48px; }
    .visuals-grid { grid-template-columns: 1fr; }
    .banner { padding: 48px 0 40px; }
  }


/* ---------- ACCESSIBILITÉ ---------- */
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 600; font-size: 14px; text-decoration: none; }
.skip:focus { left: 16px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .tools-track, .gauge i { animation: none !important; } }

/* ---------- PHOTO ---------- */
.hero-photo picture { display: block; width: 100%; height: 100%; position: relative; z-index: 1; }

/* ---------- COUVERTURES DES CARTES (images/projets/<client>/couverture.jpg) ---------- */
.card-cover { position: relative; overflow: hidden; }
.card-cover .cover-name { position: relative; z-index: 0; }
.card-cover .cover-img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .cover-img { transform: scale(1.04); }

/* ---------- VISUELS DES PROJETS (images/projets/<client>/visuel-N.jpg) ---------- */
figure.visual { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--border); background: #F1F1EC; display: block; }
figure.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
figure.visual .visual-ph { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink-faint); text-align: center; padding: 16px; }
figure.visual .visual-ph span { font-size: 13px; font-weight: 600; font-family: ui-monospace, Menlo, monospace; color: var(--ink-soft); }
figure.visual .visual-ph small { font-size: 12px; }
figure.visual.is-empty { border: 2px dashed var(--border); background: var(--surface); }
figure.visual.is-empty .visual-ph { display: flex; }

.contact h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
