/* Rabbit in the Hat | Portfolio 2027 — Design system desktop/tablette */
:root {
  --ink: #171718;
  --ink-deep: #111111;
  --ink-soft: #242424;
  --paper: #f6f3ee;
  --paper-light: #fcfaf7;
  --yellow: #ffbf12;
  --yellow-hot: #ffcc27;
  --yellow-muted: #e5aa15;
  --text: #161616;
  --divider: rgba(23,23,23,.23);
  --container: 1300px;
  --radius: 13px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin:0; color:var(--text); background:var(--paper); font-family:Inter,"Arial",system-ui,-apple-system,sans-serif; -webkit-font-smoothing:antialiased; }
img,svg { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
a:focus-visible,button:focus-visible { outline:3px solid var(--yellow); outline-offset:5px; }
button { font:inherit; }
h1,h2,h3,p,figure { margin:0; }
h1,h2,h3 { font-weight:850; letter-spacing:-.045em; line-height:1.04; }
p { line-height:1.48; }
::selection { background:var(--yellow); color:var(--ink); }
.container { width:min(var(--container),calc(100% - 108px)); margin-inline:auto; }
.dark-section { background:var(--ink); color:#fff; }
.light-section { background:var(--paper); color:var(--ink); }
.skip-link { position:fixed; z-index:50; top:-100px; left:16px; background:#fff; color:#111; padding:12px 20px; border-radius:6px; }
.skip-link:focus { top:12px; }
.accent-rule { display:block; width:44px; height:6px; border-radius:10px; background:var(--yellow); margin-bottom:18px; }
.button { display:inline-flex; align-items:center; justify-content:space-between; gap:32px; border-radius:9px; padding:15px 22px; font-size:15px; line-height:1.3; font-weight:800; transition:transform .2s ease,filter .2s ease; }
.button:hover { transform:translateY(-2px); filter:brightness(1.07); }
.button span { font-size:24px; font-weight:400; line-height:1; }
.button-yellow { background:var(--yellow); color:var(--ink); }
.button-dark { background:var(--ink); color:white; }

/* Header */
.site-header { background:#181818; color:white; height:82px; position:relative; z-index:10; }
.nav-inner { display:flex; align-items:center; justify-content:space-between; height:100%; gap:32px; }
.brand,.footer-brand { display:flex; align-items:center; gap:13px; min-width:0; }
.rabbit-logo { flex:none; width:40px; height:47px; object-fit:contain; object-position:center; }
.brand-text,.footer-brand span { display:grid; gap:4px; }
.brand-text strong,.footer-brand strong { font-size:19px; font-weight:900; letter-spacing:.075em; white-space:nowrap; }
.brand-text small,.footer-brand small { color:#d1d1d1; font-size:9px; font-weight:650; letter-spacing:.22em; white-space:nowrap; }
.main-nav { display:flex; gap:42px; align-items:center; height:100%; }
.main-nav a { position:relative; height:100%; display:flex; align-items:center; font-size:14px; font-weight:750; color:#f7f7f7; }
.main-nav a::after { content:""; position:absolute; left:0; bottom:15px; height:4px; width:100%; border-radius:5px; background:var(--yellow); transform:scaleX(0); transform-origin:left; transition:transform .2s ease; }
.main-nav a.current::after,.main-nav a:hover::after { transform:scaleX(1); }
.menu-toggle { display:none; }

/* Navigation persistante sur ordinateur seulement.
   Les tailles tablette/mobile conservent leur comportement initial. */
@media (min-width: 861px) {
  html { scroll-padding-top: 92px; }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }
}

/* Hero */
.hero { isolation:isolate; position:relative; overflow:hidden; min-height:490px; background:radial-gradient(circle at 60% 77%,#b07004 0%,#513015 29%,transparent 57%),#171718; }
.hero-art { position:absolute; z-index:-1; inset:0 0 0 auto; width:61%; background:url("assets/hero-art.webp") right center / cover no-repeat; -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 23%); mask-image:linear-gradient(90deg,transparent 0%,#000 23%); }
.hero-inner { min-height:490px; display:flex; align-items:center; }
.hero-copy { max-width:620px; position:relative; z-index:1; padding-block:40px 48px; }
.hero h1 { font-size:clamp(49px,5.25vw,81px); line-height:.98; margin-bottom:24px; text-wrap:balance; }
.hero h1 em { font-style:normal; color:var(--yellow); }
.hero p { max-width:490px; margin-bottom:25px; font-size:17px; color:#f2f2f2; }

/* Shared section headings */
.section-heading { display:grid; grid-template-columns: minmax(0,320px) minmax(0,1fr); align-items:start; column-gap:54px; margin-bottom:37px; }
.section-heading h2 { font-size:clamp(40px,3.9vw,54px); }
.section-heading .section-intro { border-left:1px solid #5e5e5e; padding:4px 0 4px 42px; font-size:18px; max-width:790px; font-style:italic; }
.section-heading-dark .section-intro { color:#f0efec; }
.section-heading .accent-rule { margin-bottom:12px; }

/* Projects */
.projects { padding:78px 0 73px; }
.projects-visual { margin-top:7px; }
.projects-visual>a { display:block; overflow:hidden; }
.projects-visual img { width:100%; max-width:1210px; margin:0 auto; height:auto; }
.project-captions { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; max-width:1210px; margin:8px auto 0; }
.project-captions > div { padding:0 10px; display:grid; gap:4px; }
.project-captions strong { font-size:18px; letter-spacing:-.025em; }
.project-captions span { font-size:12px; color:#656363; }

/* Expertise */
.expertises { position:relative; overflow:hidden; min-height:335px; }
.expertises-art { pointer-events:none; position:absolute; top:0; right:0; bottom:0; width:37%; background:linear-gradient(90deg,var(--ink) 2%,rgba(23,23,24,.38) 50%,transparent),url('assets/expertise-fond.webp') right center / cover no-repeat; opacity:.82; }
.expertises-inner { position:relative; z-index:1; padding-block:66px 74px; }
.expertises .section-heading { grid-template-columns:minmax(0,250px) minmax(0,1fr); margin-bottom:34px; }
.expertises .section-heading .section-intro { font-size:16px; max-width:475px; }
.services-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); max-width:930px; }
.service { min-width:0; padding:0 27px; border-left:1px solid rgba(255,255,255,.44); }
.service:first-child { padding-left:0; border-left:0; }
.service svg { color:var(--yellow); width:35px; height:35px; margin-bottom:13px; }
.service h3 { font-size:19px; font-weight:850; margin-bottom:7px; }
.service p { font-size:14px; color:#eeeeee; line-height:1.4; }

/* Parcours */
.parcours { padding:80px 0 91px; }
.parcours .section-heading { margin-bottom:48px; }
.parcours .section-heading .section-intro { font-size:16px; }
.timeline { position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:27px; }
.timeline::before { content:""; position:absolute; top:-25px; height:2px; background:var(--yellow); left:0; right:0; }
.timeline-card { position:relative; display:grid; grid-template-columns:1.18fr .82fr; overflow:visible; min-height:180px; background:#eeeae4; border-radius:11px; }
.timeline-dot { position:absolute; top:-36px; left:12px; border:3px solid var(--yellow); background:var(--paper); width:22px; height:22px; border-radius:50%; z-index:1; }
.timeline-details { padding:19px 15px 20px 20px; }
.time-label { display:inline-block; padding:6px 13px; background:var(--yellow); color:#161616; border-radius:8px; font-weight:850; font-size:13px; margin-bottom:10px; }
.timeline-card h3 { font-size:17px; letter-spacing:-.032em; line-height:1.15; margin-bottom:7px; }
.timeline-card p { font-size:12.5px; line-height:1.35; }
.timeline-card img { width:100%; height:100%; max-height:220px; object-fit:cover; object-position:center; border-radius:0 11px 11px 0; }
.timeline-card:nth-child(2) img { object-position:50% 35%; }

/* Showreel */
.showreel { padding:68px 0 78px; }
.showreel-art { pointer-events:none; position:absolute; top:0; right:0; bottom:0; width:37%; background:linear-gradient(90deg,var(--ink) 2%,rgba(23,23,24,.38) 50%,transparent),url('assets/projet06.png') right center / cover no-repeat; opacity:.82; }
.showreel .section-heading { grid-template-columns:minmax(0,250px) minmax(0,1fr); margin-bottom:28px; }
.showreel .section-heading .section-intro { font-size:16px; }
.videos-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.video-card { isolation:isolate; position:relative; display:flex; align-items:center; gap:18px; overflow:hidden; min-height:106px; padding:20px 25px; border:1px solid #a4a4a4; border-radius:13px; background:linear-gradient(115deg,#080808 0%,#252525 56%,#111 100%); transition:transform .2s ease,border-color .2s ease; }
.video-card:hover { transform:translateY(-3px); border-color:var(--yellow); }
.video-card::after { position:absolute; content:""; z-index:-1; width:225px; height:150px; border-radius:100%; border:2px solid var(--yellow); right:-104px; bottom:-113px; box-shadow:0 0 65px 25px rgba(255,191,18,.38); }
.video-card-silver::after { border-color:#dadada; box-shadow:0 0 65px 22px rgba(255,255,255,.13); }
.video-card .play-icon { display:grid; place-items:center; flex:none; width:45px; height:45px; border:2px solid #fff; color:#fff; border-radius:50%; padding-left:2px; font-size:15px; }
.video-card strong { display:block; font-size:18px; margin-bottom:3px; letter-spacing:-.025em; }
.video-card small { display:block; font-size:14px; }

/* About + Contact */
.about-contact { padding:69px 0; }
.about-contact-grid { display:grid; grid-template-columns:1.25fr .9fr; gap:46px; align-items:stretch; }
.about-panel { display:grid; grid-template-columns:180px 1fr; gap:28px; align-items:center; }
.portrait-wrap { overflow:hidden; width:180px; height:195px; background:var(--yellow); border-radius:47% 47% 12% 12%; border-bottom:4px solid var(--yellow); }
.portrait-wrap img { width:100%; height:100%; object-fit:cover; object-position:center 23%; /*filter:saturate(.75) contrast(1.06); mix-blend-mode:multiply;*/ }
.about-copy .accent-rule { margin-bottom:10px; }
.about-copy h2 { font-size:40px; margin-bottom:13px; }
.about-copy p { font-size:15px; line-height:1.45; max-width:500px; }
.about-copy p+p { margin-top:8px; }
.contact-panel { padding:31px 35px; border-radius:16px; background:linear-gradient(125deg,#ffd02a,#ffba00); color:#151515; align-content:center; }
.contact-panel h2 { font-size:clamp(29px,3.2vw,43px); margin-bottom:15px; }
.contact-panel p { font-size:15px; max-width:400px; margin-bottom:18px; }
.contact-panel .button { padding:11px 17px; min-width:183px; }

/* Footer */
.site-footer { background:#151515; padding:24px 0; }
.footer-inner { display:grid; align-items:center; grid-template-columns:1fr auto 1fr; gap:35px; }
.footer-brand .rabbit-logo { width:30px; height:35px; }
.footer-brand strong { font-size:15px; }
.footer-brand small { font-size:8px; }
.footer-signature { font-family:Georgia,serif; font-size:17px; letter-spacing:.15em; font-style:italic; white-space:nowrap; }
.footer-links { display:flex; justify-content:flex-end; gap:18px; align-items:center; }
.footer-links a { font-size:12px; font-weight:700; color:#ddd; }
.footer-links a:hover { color:var(--yellow); }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } * { transition:none !important; animation:none !important; } }
