/* ============================================
   IILMIQ Labs — design v2 (clair)
   Base crème, titres serif, accent terracotta.
   Références : Anthropic (palette), Pentagram/Koto (vitrine
   de projets), Ragged Edge (badges résultat), Instrument
   (mot clé en serif italique).
   ============================================ */

:root {
  --bg: #F5F2EC;
  --card: #FFFFFF;
  --alt: #ECE7DF;
  --ink: #16150F;
  --muted: #6B675E;
  --line: #DCD6CC;
  --accent: #D9653B;
  --accent-d: #B8512C;
  --sage: #5F7353;
  --sage-bg: #E4E9DE;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typo ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 400; }
.display {
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -.005em;
}
.display em, .h2 em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 640px; margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head .lead { margin-top: 18px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--sans);
  padding: 17px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 4px 5px 0 var(--accent); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); border-color: var(--accent-d); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 236, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 30px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang { font: 500 13px/1 var(--mono); display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { text-decoration: none; padding: 7px 10px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.nav .btn { padding: 12px 18px; font-size: 14.5px; box-shadow: 3px 4px 0 var(--accent); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: block; }
.hero .display { max-width: 1060px; }
.hero .lead { max-width: 720px; }
.hero .display { margin: 22px 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-note { margin-top: 22px; font: 13px/1.5 var(--mono); color: var(--muted); }
.hero-note strong { color: var(--ink); font-weight: 500; }

.stack { position: relative; aspect-ratio: 1 / 1; }
.stack figure {
  position: absolute; margin: 0; width: 70%;
  border-radius: 14px; overflow: hidden;
  border: 1.5px solid var(--ink);
  box-shadow: 6px 8px 0 var(--ink);
  background: var(--card);
  transition: transform .5s var(--ease);
}
.stack figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.stack figcaption { font: 500 12px/1 var(--mono); padding: 10px 12px; border-top: 1.5px solid var(--ink); display: flex; justify-content: space-between; background: var(--card); }
.stack figure:nth-child(1) { top: 0; right: 0; transform: rotate(3deg); }
.stack figure:nth-child(2) { top: 31%; left: 0; transform: rotate(-4deg); z-index: 2; }
.stack figure:nth-child(3) { bottom: 0; right: 0; transform: rotate(2deg); z-index: 3; }
.stack:hover figure:nth-child(1) { transform: rotate(5deg) translate(8px, -6px); }
.stack:hover figure:nth-child(2) { transform: rotate(-6deg) translate(-8px, 0); }
.stack:hover figure:nth-child(3) { transform: rotate(0deg) translate(0, 6px); }

/* ---------- Marquee outils ---------- */
.tools { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.tools-label { font: 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 16px; }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 30px; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
/* Étoile dessinée (un caractère ✳ devient un émoji vert sur mobile) */
.marquee span::after { content: ""; width: 15px; height: 15px; flex: none; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M2 12h20M4.9 4.9l14.2 14.2M19.1 4.9L4.9 19.1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M2 12h20M4.9 4.9l14.2 14.2M19.1 4.9L4.9 19.1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 132px) 0; }
.section-alt { background: var(--alt); }
.section-ink { background: var(--ink); color: var(--bg); }
.section-ink .lead, .section-ink .eyebrow { color: #B9B3A8; }

/* ---------- Filtres + grille projets ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font: 500 14px/1 var(--sans); padding: 11px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.project { grid-column: span 6; text-decoration: none; display: block; }
.project.is-wide { grid-column: span 7; }
.project.is-narrow { grid-column: span 5; }
.project.is-hidden { display: none; }
.project-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--alt); border: 1px solid var(--line); }
.project-media img, .project-media video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ease); display: block; }
.project:hover .project-media img, .project:hover .project-media video { transform: scale(1.04); }
.project-arrow {
  position: absolute; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg); display: grid; place-items: center;
  opacity: 0; transform: translateY(8px) rotate(-45deg); transition: opacity .3s, transform .4s var(--ease);
}
.project-arrow svg { width: 20px; height: 20px; }
.project:hover .project-arrow { opacity: 1; transform: translateY(0) rotate(-45deg); }
.badge {
  position: absolute; left: 16px; top: 16px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 11px; border-radius: 999px; background: var(--bg); color: var(--ink);
}
.badge.is-live { background: var(--sage-bg); color: var(--sage); }
.badge.is-live::before { content: "● "; }
.project-body { padding: 18px 4px 0; }
.project-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.project-title h3 { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.project-title span { font: 12.5px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.project-body p { margin: 8px 0 14px; color: var(--muted); font-size: 16px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.tags li { font: 12px/1 var(--mono); padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.projects-more { margin-top: 56px; display: flex; justify-content: center; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 34px 30px 30px; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service:hover { transform: translate(-3px, -3px); box-shadow: 6px 7px 0 var(--accent); }
.service-num { font: 500 13px/1 var(--mono); color: var(--accent); }
.service h3 { font-family: var(--serif); font-size: 34px; line-height: 1.08; margin: 18px 0 14px; }
.service > p { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.service ul { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.service li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; display: flex; gap: 10px; }
.service li::before { content: "→"; color: var(--accent); }
.service .link { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.service .link:hover { color: var(--accent); }

/* ---------- Engagement ---------- */
.impact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.impact-media { border-radius: var(--radius); overflow: hidden; border: 1px solid #3a3830; }
.impact-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 0; border-top: 1px solid #3a3830; }
.facts li { padding: 16px 0; border-bottom: 1px solid #3a3830; display: grid; grid-template-columns: 150px 1fr; gap: 16px; font-size: 16px; }
.facts b { font: 500 12.5px/1.6 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid var(--ink); counter-reset: step; }
.step { padding: 28px 24px 0 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font: 500 13px/1 var(--mono); color: var(--accent); }
.step h3 { font-family: var(--serif); font-size: 30px; margin: 16px 0 10px; line-height: 1.1; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Principes ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.principle { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.principle h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.principle p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: 19px; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px; font: 300 28px/1 var(--sans); color: var(--accent);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 680px; }

/* ---------- CTA final ---------- */
.cta {
  background: var(--accent); color: #fff; border-radius: 28px;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 80px);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end;
}
.cta .h2 { color: #fff; }
.cta .h2 em { color: var(--ink); }
.cta p { color: rgba(255, 255, 255, .88); margin: 20px 0 0; font-size: 18px; max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta .btn { justify-content: center; }
.cta .btn-primary { box-shadow: 4px 5px 0 rgba(0, 0, 0, .25); }
.cta .btn-ghost { border-color: #fff; color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--accent-d); }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--line); margin-top: clamp(72px, 10vw, 132px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--ink); }
.footer a:hover { color: var(--accent); }
.footer-pitch { color: var(--muted); font-size: 15.5px; margin: 16px 0 0; max-width: 320px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 12.5px/1.6 var(--mono); color: var(--muted); }
.footer-bottom button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Page Projets (fiches) ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-hero .display { margin: 20px 0 22px; font-size: clamp(44px, 6vw, 84px); }
.case { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.case-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.case-meta { position: sticky; top: 110px; }
.case-meta .badge { position: static; display: inline-block; margin-bottom: 18px; border: 1px solid var(--line); }
.case-meta h2 { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 58px); line-height: 1.04; margin: 0 0 6px; }
.case-meta .sub { font: 13px/1.5 var(--mono); color: var(--muted); margin: 0 0 24px; }
.case-meta dl { margin: 26px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.case-meta dl div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 15.5px; }
.case-meta dt { font: 500 12px/1.7 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.case-meta dd { margin: 0; }
.case-meta p { color: var(--muted); }
.case-shots { display: grid; gap: 18px; }
.case-shots img { border-radius: 14px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--alt); }
.case-shots .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Reveal au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step { padding-bottom: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-right .lang, .nav-right .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0; background: var(--bg);
    padding: 16px var(--gutter) 28px; border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-links a { font-size: 22px; padding: 10px 0; color: var(--ink); }
  .nav.is-open .nav-links .mobile-only { display: block; }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-grid, .impact, .faq-grid, .cta, .case-grid { grid-template-columns: 1fr; }
  .stack { max-width: 520px; width: 100%; margin: 12px auto 0; }
  .project, .project.is-wide, .project.is-narrow { grid-column: span 12; }
  .principles { grid-template-columns: 1fr; }
  .case-meta { position: static; }
}
@media (min-width: 901px) { .mobile-only { display: none !important; } }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .facts li, .case-meta dl div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .project-title h3 { font-size: 27px; }
  .case-shots .duo { grid-template-columns: 1fr; }
  .marquee span { font-size: 24px; gap: 40px; padding: 0 20px; }
}
.footer .footer-cookies { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.footer .footer-cookies:hover { color: var(--accent); }

/* ---------- Showreel (façon COLLINS : grand cadre vidéo sous l'accroche) ---------- */
.reel { position: relative; margin: clamp(40px, 5vw, 64px) 0 0; border-radius: 22px; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-sound {
  position: absolute; right: 18px; bottom: 18px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 999px; border: 0; background: rgba(245, 242, 236, .9); color: var(--ink); cursor: pointer;
}
/* Mobile : showreel au format exact d'un écran de téléphone (390×844), sans recadrage */
@media (max-width: 600px) {
  .reel { aspect-ratio: 390 / 844; width: auto; height: min(calc(100svh - 120px), calc((100vw - 32px) * 844 / 390)); margin-left: auto; margin-right: auto; border-radius: 22px; }
}
/* Cartes étroites : même hauteur d'image que la carte large voisine */
.project.is-narrow .project-media img, .project.is-narrow .project-media video { aspect-ratio: 8 / 7; }
@media (max-width: 900px) { .project.is-narrow .project-media img, .project.is-narrow .project-media video { aspect-ratio: 16 / 10; } }
/* Distinction (Anwar — Forum mondial de la démocratie) */
.award { display: flex; gap: 20px; align-items: center; margin: 28px 0 0; padding: 20px 22px; border: 1px solid #3a3830; border-radius: 16px; background: rgba(217, 101, 59, .08); }
.award-num { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--accent); flex: none; }
.award p { margin: 0; font-size: 16px; color: #D8D2C7; }
.award strong { color: var(--bg); font-weight: 600; }
.badge.is-award { left: auto; right: 16px; background: var(--accent); color: #fff; }
.case.is-hidden { display: none; }
.case-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.case-meta .case-badges .badge { position: static; margin: 0; }
.case-shots video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--alt); }
.display, .h2, .case-meta h2 { text-wrap: balance; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { font: 500 12px/1.8 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--accent); }
.contact-list b { font-weight: 600; }
.form-card { background: var(--card); border: 1.5px solid var(--ink); border-radius: 22px; padding: clamp(24px, 3vw, 38px); box-shadow: 8px 10px 0 var(--accent); }
.form-title { font-family: var(--serif); font-size: 34px; margin: 0 0 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 16px/1.4 var(--sans); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 15px; width: 100%;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { margin: 14px 0 0; font: 12.5px/1.5 var(--mono); color: var(--muted); text-align: center; }
.form-note.error { color: #B3261E; }
.form-note.success { color: var(--sage); }
.booking-placeholder { background: var(--card); border: 1.5px dashed var(--muted); border-radius: 22px; padding: 44px 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.booking.is-loaded .booking-placeholder { display: none; }
.booking-slot { font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.booking-privacy { margin: 0; font-size: 14px; color: var(--muted); max-width: 520px; }
.booking-embed { min-height: 0; }
.booking.is-loaded .booking-embed { min-height: 640px; background: var(--card); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.booking-fallback { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; }
.booking-fallback a { color: var(--accent-d); }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-grid p { color: var(--muted); }
.values { display: grid; gap: 14px; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.value h3 { font-family: var(--serif); font-size: 28px; margin: 0 0 6px; }
.value p { margin: 0; }

/* ---------- Pages légales ---------- */
.prose { padding-bottom: 40px; }
.prose > * { max-width: 820px; }
.prose h2 { font-family: var(--serif); font-size: 34px; margin: 44px 0 14px; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 28px 0 10px; }
.prose p, .prose li { color: #3b3933; }
.prose a { color: var(--accent-d); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 900px) {
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .prose table { display: block; overflow-x: auto; }
}
.project .badge.is-award { top: auto; bottom: 16px; left: 16px; right: auto; }
/* Bandeau secteurs (sous les services) */
.sectors { margin-top: 40px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.sectors ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sectors li { font-size: 15px; padding: 9px 15px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }

/* Mobile : tuiles vidéo verticales (4:5) quand une version mobile existe */
@media (max-width: 600px) {
  .project-media video.has-mobile, .project.is-narrow .project-media video.has-mobile, .case-shots video.has-mobile { aspect-ratio: 390 / 844; }
}

/* MUTA : sur ordinateur la tuile reste une image fixe 16:10 (pas de vidéo desktop) ; sur la page Projets, pas de doublon avec la capture */
@media (min-width: 601px) { .case-shots video.mobile-only-video { display: none; } }
.case-link { margin-top: 26px; }
