/* VimaLabs — feuille de style du site vitrine */

@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0F1114;
  --ink-2: #16191D;
  --ink-3: #15171A;
  --line: #2E3238;
  --line-soft: #23262B;
  --paper: #F2F0EB;
  --paper-line: #D5D2CA;
  --text: #F2F0EB;
  --text-2: #C9CCD1;
  --text-3: #8E939A;
  --text-dark: #15171A;
  --text-dark-2: #2B2F35;
  --text-dark-3: #4E545C;
  --accent: #FF7A2F;
  --accent-text: #FF8A45;
  --accent-dark: #B4410C;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1840px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #FFB283; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p, h1, h2, h3, ul, ol { margin: 0; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: var(--header-h); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Typographie ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; }
.light .eyebrow { color: var(--accent-dark); }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; max-width: 860px; letter-spacing: -0.015em; }
.lead { margin-top: 20px; max-width: 760px; font-size: 19px; color: var(--text-2); }
.light .lead { color: var(--text-dark-2); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; font-weight: 600; font-size: 16px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #FF9354; color: var(--ink); }
.btn-ghost { border-color: #4A4F57; color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--text-2); color: var(--text); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 17, 20, 0.94); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand svg { width: 40px; height: 25px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.1em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--text-2); }
.nav a:hover { color: var(--text); }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 15px; color: var(--ink); }
.nav .btn:hover { color: var(--ink); }
.lang { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.lang a { color: var(--text-3); }
.lang [aria-current="true"] { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: 2px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line-soft); padding: 8px 24px 24px; }
  .nav.is-open { display: flex; }
  .nav > a, .nav > .lang { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); overflow: hidden; background: var(--ink); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 17, 20, 0.92) 0%, rgba(15, 17, 20, 0.62) 60%, rgba(15, 17, 20, 0.35) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 96px; padding-bottom: 80px; }
.hero-text { max-width: 720px; }
.hero-text .eyebrow { margin-bottom: 24px; }
.hero-text .lead { margin-top: 28px; max-width: 560px; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

.frame { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; }
.frame-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background-image: linear-gradient(#1C1F24 1px, transparent 1px), linear-gradient(90deg, #1C1F24 1px, transparent 1px); background-size: 40px 40px; background-position: center; }
.frame-fallback img { width: 26%; height: auto; opacity: 0.9; }
.frame-fallback span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.frame > video, .frame > img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.corner { position: absolute; width: 18px; height: 18px; z-index: 2; pointer-events: none; }
.corner.tl { top: 12px; left: 12px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.corner.tr { top: 12px; right: 12px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.corner.bl { bottom: 12px; left: 12px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.corner.br { bottom: 12px; right: 12px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.light { background: var(--paper); color: var(--text-dark); }
.light + .light { border-top: 1px solid var(--paper-line); }
.alt { background: var(--ink-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* Constat */
.stats { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); }
.stat { flex: 1 1 300px; min-width: 0; background: var(--paper); padding: 36px 32px; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.stat-value small { font-size: 28px; color: var(--text-dark-3); font-weight: 700; }
.stat-label { margin-top: 14px; font-weight: 600; }
.stat-note { margin-top: 6px; font-size: 15px; color: var(--text-dark-3); }
.source { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dark-3); }
.source a { color: var(--text-dark-3); text-decoration: underline; text-underline-offset: 2px; }
.source a:hover { color: var(--text-dark); }

.callout { margin-top: 48px; background: var(--ink-3); color: var(--text); padding: 44px 40px; display: flex; flex-wrap: wrap; gap: 24px 56px; }
.callout-title { flex: 1 1 340px; min-width: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.015em; }
.callout-cite { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.5; }
.callout-cite a { color: var(--text-3); text-decoration: underline; text-underline-offset: 2px; }
.callout-cite a:hover { color: var(--text); }
.callout-body { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; font-size: 18px; color: var(--text-2); }
.callout-body .emph { font-weight: 600; color: var(--accent-text); }

/* RSE */
.cards { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 440px; min-width: 0; background: #FFFFFF; border: 1px solid var(--paper-line); padding: 40px; }
.card h3 { font-size: 24px; letter-spacing: -0.01em; }
.card ul { margin-top: 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; font-size: 16px; color: var(--text-dark-2); }
.card li { padding-left: 22px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--accent-dark); }
.card strong { color: var(--text-dark); }
.banner { margin-top: 24px; background: var(--ink-3); color: var(--text); padding: 32px 36px; }
.banner p:first-child { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.3; }
.banner p + p { margin-top: 8px; font-size: 16px; color: var(--text-2); }

/* Vision */
.pillars { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px; }
.pillar { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); padding: 40px 36px; color: var(--text); transition: border-color .2s, background-color .2s; }
.pillar:hover { color: var(--text); border-color: #4A4F57; background: var(--ink-2); }
.alt .pillar:hover { background: var(--ink); }
.pillar-num { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.pillar-title { margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; }
.pillar-text { margin-top: 16px; color: var(--text-2); }
.pillar-link { margin-top: 28px; font-weight: 600; color: var(--accent-text); }
.sectors-title { margin-top: 72px; margin-bottom: 24px; font-weight: 600; }
.sectors { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; }
.sector { flex: 1 1 180px; min-width: 0; padding: 20px 22px; border: 1px solid var(--line); }
.sector.now { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.sector-when { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.sector.now .sector-when { color: var(--ink); }
.sector-name { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }

/* Produit */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 480px; min-width: 0; }
.split h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; }
.split .lead { font-size: 17px; }
.points { margin-top: 32px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.points li { display: flex; gap: 16px; align-items: baseline; }
.points li::before { content: "→"; flex: 0 0 auto; font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); }
.points span { color: var(--text-2); }
.frame-dark { background: var(--ink); }
.frame-video { aspect-ratio: 16 / 9; }

/* Listes techno */
.tech { margin-top: 56px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.tech li { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.tech-num { flex: 0 0 64px; font-family: var(--font-mono); font-size: 14px; color: var(--accent-text); padding-top: 4px; }
.tech-name { flex: 1 1 320px; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.3; }
.tech-text { flex: 2 1 400px; color: var(--text-2); }

/* Équipe */
.team { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 32px 24px; }
.person { flex: 1 1 260px; min-width: 0; }
.person img { width: 200px; max-width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; background: #DEDAD1; }
.person-name { margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.person-role { margin-top: 4px; font-size: 15px; color: var(--text-dark-3); }
.team-note { flex: 1 1 100%; min-width: 0; font-size: 18px; color: var(--text-dark-2); }
.supporters { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--paper-line); }
.supporters .eyebrow { color: var(--text-dark-3); margin-bottom: 20px; }
.logos { display: flex; flex-wrap: wrap; gap: 16px; padding: 0; list-style: none; }
.logos li { flex: 1 1 200px; min-height: 112px; flex-direction: column; gap: 8px; border: 1px solid var(--paper-line); background: #FFFFFF; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-weight: 600; color: var(--text-dark-2); }
.logos img { height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.logos img.logo-sm { height: 40px; }
.logos img.logo-lg { height: 72px; }
.logos .logo-caption { font-size: 13px; font-weight: 500; color: var(--text-dark-3); }

/* Contact */
.contact .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-intro { flex: 1 1 520px; min-width: 0; }
.contact-intro .lead { max-width: 520px; font-size: 17px; }
.coords { margin-top: 40px; max-width: 520px; border-top: 1px solid var(--line); }
.coords div { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.coords dt { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.coords dd { margin: 0; font-size: 18px; text-align: right; }
.contact-cta { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 36px; background: var(--ink-2); border: 1px solid var(--line); align-self: flex-start; }
.btn-lg { min-height: 60px; padding: 0 40px; font-size: 18px; }
.contact-cta-email { margin: 0; font-size: 18px; }
.contact-cta-note { margin: 0; font-size: 15px; color: var(--text-2); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--text-3); }
.site-footer .brand-small { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.site-footer svg { width: 28px; height: 17px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--text-3); }
.site-footer a:hover { color: var(--text); }

/* Pages de texte (mentions légales, 404) */
.page { padding: 96px 0 112px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(36px, 4.4vw, 56px); }
.page h2 { font-size: 24px; margin-top: 48px; letter-spacing: -0.01em; }
.page p, .page ul { margin-top: 14px; color: var(--text-2); }
.page ul { padding-left: 20px; }
.page li + li { margin-top: 6px; }
.page .updated { margin-top: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .lead { font-size: 17px; }
  .stat { padding: 28px 24px; }
  .stat-value { font-size: 44px; }
  .callout { padding: 32px 24px; }
  .card { padding: 28px 24px; }
  .banner { padding: 28px 24px; }
  .pillar { padding: 32px 24px; }
  .tech-num { flex-basis: 100%; padding-top: 0; }
  .contact-cta { padding: 24px; }
  .contact-cta .btn-lg { align-self: stretch; }
  .coords dd { text-align: left; }
}
.team-photo { margin: 48px 0 0; max-width: 800px; }
.team-photo img { display: block; width: 100%; height: auto; border-radius: 2px; background: #DEDAD1; }

/* ---------- Médias : même format partout ---------- */
.tech + .media-grid { margin-top: 40px; }
.media-grid { display: grid; gap: 24px; }
.media-tile { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.media-tile video, .media-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-tile figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; padding: 6px 10px; background: rgba(15, 17, 20, 0.78); color: var(--text); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
@media (min-width: 641px) {
  .media-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 641px) and (max-width: 1080px) {
  .media-grid-5 > :last-child { grid-column: 1 / -1; }
}

/* ---------- PC : pleine largeur, hauteur naturelle, deux colonnes ---------- */
@media (min-width: 1081px) {
  .wrap { padding-left: clamp(32px, 4vw, 72px); padding-right: clamp(32px, 4vw, 72px); }
  .section { padding: clamp(72px, 6vw, 112px) 0; }
  h1 { font-size: clamp(44px, 3.9vw, 68px); line-height: 1.05; }
  h2 { font-size: clamp(30px, 2.6vw, 44px); line-height: 1.14; max-width: 1040px; }
  .lead { font-size: clamp(17px, 1.05vw, 19px); }

  .section > .split, .contact > .wrap { flex-wrap: nowrap; gap: clamp(40px, 4vw, 72px); }
  .hero .wrap { padding-top: clamp(56px, 5vw, 96px); padding-bottom: clamp(56px, 5vw, 96px); }
  .hero::after { background: linear-gradient(90deg, rgba(15, 17, 20, 0.84) 0%, rgba(15, 17, 20, 0.58) 42%, rgba(15, 17, 20, 0.08) 72%), linear-gradient(0deg, rgba(15, 17, 20, 0.7) 0%, rgba(15, 17, 20, 0) 45%); }
  .split > * { flex: 1 1 0; }
  .hero-text .lead { max-width: 680px; margin-top: 18px; }
  .frame { aspect-ratio: 16 / 9; }
  .split h2 { font-size: clamp(28px, 2.2vw, 38px); }
  .split .lead { margin-top: 12px; max-width: none; }
  .points { gap: 12px; margin-top: 18px; }

  .tech li { flex-wrap: nowrap; align-items: center; gap: 32px; padding: 24px 0; }
  .tech-num { padding-top: 0; }
  .tech-name, .tech-text { flex-basis: 0; }

  /* Qui sommes-nous : texte et portraits à gauche, photo à droite, soutiens en bas */
  .section.section-team > .wrap { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 4vw, 72px); }
  .section.section-team > .wrap > h2 { grid-row: auto; grid-column: 1; }
  .section.section-team > .wrap > .eyebrow, .section.section-team > .wrap > .lead, .section.section-team > .wrap > .team { grid-column: 1; }
  .section.section-team > .wrap > .lead { margin-top: 18px; }
  .section.section-team > .wrap > .team-photo { grid-column: 2; grid-row: 1 / 5; position: relative; margin: 0; max-width: none; min-height: 0; }
  .team-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
  .team { margin-top: 32px; gap: 16px 24px; }
  .person { flex: 1 1 0; }
  .person img { width: 160px; }
  .section.section-team > .wrap > .supporters { grid-column: 1 / -1; margin-top: 48px; }
  .logos { flex-wrap: nowrap; }

  /* Médias du pilier 01 : trois vidéos, puis deux images */
  .media-grid-5 { grid-template-columns: repeat(6, 1fr); }
  .media-grid-5 > * { grid-column: span 2; }
  .media-grid-5 > :nth-child(n+4) { grid-column: span 3; }

  /* Contact */
  .contact-intro .lead, .coords { max-width: none; }
  .contact-cta { align-self: stretch; justify-content: center; }

  /* Mentions légales : texte sur deux colonnes pour occuper la largeur */
  .page .wrap:has(h2) { max-width: var(--wrap); column-count: 2; column-gap: clamp(40px, 4vw, 72px); }
  .page .wrap:has(h2) > .eyebrow, .page .wrap:has(h2) > h1, .page .wrap:has(h2) > .updated { column-span: all; }
  .page .wrap:has(h2) > h2 { break-after: avoid; margin-top: 0; padding-top: 40px; }
  .page .wrap:has(h2) > p, .page .wrap:has(h2) > ul { break-inside: avoid; }
}
