/* TechVernia — page d'accueil « premium noir » (inspirée de unity.com) */
:root {
  --black: #000000;
  --panel: #0E0E0E;
  --card: #141414;
  --card-2: #1B1B1B;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --white: #FFFFFF;
  --text: #F5F5F5;
  --text-2: #A3A3A3;
  --text-3: #6E6E6E;
  --accent: #22CCEE;          /* le cyan TechVernia, à plat, sans lueur */
  --accent-ink: #001014;
  --display: 'Outfit', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--black); }
body { color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
#stage { min-height: 100vh; }
.w { max-width: 1312px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 900px) { .w { padding: 0 24px; } }
@media (max-width: 480px) { .w { padding: 0 16px; } }

/* Nav commune */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(0,0,0,.78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav .w { display: flex; align-items: center; height: 64px; gap: 36px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo .mk { width: 34px; height: 34px; }
.logo .wm { height: 15px; width: auto; }
@media (max-width: 480px) { .logo .wm { height: 12px; } .logo .mk { width: 30px; height: 30px; } }

/* Pied de page avec le logo officiel complet */
.foot { margin-top: 160px; border-top: 1px solid var(--line); padding: 72px 0 48px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-logo { width: 132px; height: auto; }
.foot p { color: var(--text-2); font-size: 15px; max-width: 300px; margin: 20px 0 0; }
.foot h4 { margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot li a { color: var(--text); font-size: 15px; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .foot li a:hover { color: var(--accent); } }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
@media (max-width: 760px) { .foot { margin-top: 112px; } .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.nav-links a { transition: color 150ms ease; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; color: var(--text-2); transition: color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out); }
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--white); }
  .icon-btn:hover { color: var(--white); background: rgba(255,255,255,.06); }
}
@media (max-width: 960px) { .nav-links { display: none; } }
@media (max-width: 480px) { .nav .w { gap: 12px; } .nav-right { gap: 4px; } .nav-right .pill { padding: 0 14px !important; } }

/* Boutons pilule */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); user-select: none; }
.pill:active { transform: scale(0.97); }
.pill .ar { transition: transform 200ms var(--ease-out); }
.pill-solid { background: var(--accent); color: var(--accent-ink); }
.pill-dark { background: #262626; color: var(--white); }
.pill-line { box-shadow: 0 0 0 1.5px var(--accent) inset; color: var(--white); }
.caps { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.tlink { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px; color: var(--white); }
.tlink .ar { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .pill-solid:hover { background: #5BDDF4; }
  .pill-dark:hover { background: #333; }
  .pill-line:hover { background: rgba(34, 204, 238, .1); }
  .pill:hover .ar, .tlink:hover .ar { transform: translateX(3px); }
}

/* Titres */
.d-xl { font-family: var(--display); font-weight: 500; font-size: clamp(64px, 9.4vw, 136px); line-height: .92; letter-spacing: -0.035em; margin: 0; }
.d-l  { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.03em; margin: 0; }
.d-m  { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -0.025em; margin: 0; }
.muted { color: var(--text-2); }
.lede { font-size: 19px; line-height: 1.55; color: var(--text); max-width: 460px; margin: 28px 0 0; }

/* Média : capture d'écran dans un cadre arrondi */
.media { position: relative; display: block; overflow: hidden; border-radius: 24px; background: var(--panel); box-shadow: 0 0 0 1px var(--line) inset; }
.media > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.media:hover > img { transform: scale(1.02); } }
.media .cap { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(0,0,0,.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; font-weight: 500; }
.media .cap img { width: 28px; height: 28px; border-radius: 8px; background: #fff; padding: 4px; object-fit: contain; }
.media .cap b { font-weight: 600; }
.media .cap .s { color: var(--accent); font-weight: 600; }

/* Mur de logos */
.wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 48px 32px; align-items: center; justify-items: center; }
.wall a { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; color: var(--white); transition: opacity 200ms ease; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .wall:hover a { opacity: .35; } .wall a:hover { opacity: 1; } }
@media (max-width: 760px) { .wall { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }

/* Cartes articles (façon « Anyone can build with Unity ») */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.post { background: var(--card); border-radius: 16px; padding: 16px 16px 24px; display: flex; flex-direction: column; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.post .im { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--panel); }
.post .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.post .t { font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; margin-top: 18px; }
.post .m { font-size: 15px; color: var(--text-2); margin-top: 8px; }
.post:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .post:hover { background: var(--card-2); } .post:hover .im img { transform: scale(1.03); } }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* Chiffres */
.figs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.figs div { padding: 28px 0 0; }
.figs b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.03em; }
.figs span { display: block; margin-top: 10px; color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .figs { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

.sec { padding: 144px 0 0; }
.sec-c { text-align: center; max-width: 900px; margin: 0 auto 64px; }
.sec-c p { font-size: 19px; color: var(--text-2); margin: 24px auto 0; max-width: 720px; }
.end { height: 160px; }
@media (max-width: 760px) { .sec { padding-top: 96px; } .end { height: 120px; } }

/* Entrées : une fois au montage */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.e { animation: rise 800ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 80ms); }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: block; animation: rise 900ms var(--ease-out) both; animation-delay: calc(100ms + var(--d, 0) * 90ms); }
.e-media { animation: settle 1200ms var(--ease-out) both 120ms; }
@media (prefers-reduced-motion: reduce) {
  .e, .ln > span, .e-media { animation: none !important; }
}

/* ============ 1 · CINÉMA ============ */
.ci-hero { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 72px 0 0; min-height: calc(100vh - 64px); }
.ci-cta { display: flex; gap: 14px; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.ci-row { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
.ci-row.flip { grid-template-columns: 5fr 7fr; }
.ci-row.flip .media { order: 2; }
.ci-row .media { aspect-ratio: 16 / 10; }
.ci-row p { font-size: 17px; color: var(--text); line-height: 1.6; margin: 24px 0 32px; max-width: 420px; }
.ci-row .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ci-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 32px; }
.ci-tools span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 500; }
.ci-tools img { width: 22px; height: 22px; border-radius: 6px; background: #fff; padding: 3px; object-fit: contain; }
.ci-tools em { font-style: normal; color: var(--accent); font-weight: 600; }
.ci-split { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; align-items: center; }
.ci-split p { font-size: 17px; line-height: 1.6; margin: 24px 0 32px; max-width: 400px; }
@media (max-width: 960px) {
  .ci-hero, .ci-row, .ci-row.flip, .ci-split { grid-template-columns: 1fr; gap: 40px; }
  .ci-hero { min-height: 0; padding-top: 48px; }
  .ci-row.flip .media { order: 0; }
}


/* Bandeau cookies (créé par main.js) */
.cookie-banner { background: #0E0E0E !important; border-top: 1px solid var(--line) !important; font-size: 14px; color: var(--text-2); }
.cookie-content { max-width: 1312px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-content p { margin: 0; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-banner .btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; font: 600 14px var(--body); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.cookie-banner .btn:active { transform: scale(0.97); }
.cookie-banner .btn-primary { background: var(--accent); color: var(--accent-ink); }
.cookie-banner .btn-outline { background: #262626; color: #fff; }

/* Sélecteur de langue (mémorise le choix pour les autres pages) */
.language-selector { position: relative; }
.lang-btn { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; border: 0; background: none; cursor: pointer; font: 500 13px var(--body); }
.lang-dropdown { position: absolute; top: calc(100% + 10px); right: 0; min-width: 190px; padding: 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 48px -12px rgba(0,0,0,.9);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top right; transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 150ms; z-index: 30; }
.language-selector.active .lang-dropdown { opacity: 1; visibility: visible; transform: none; }
.lang-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: 500 14px var(--body); text-align: left; cursor: pointer; }
.lang-option .code { width: 22px; font-size: 11px; letter-spacing: .08em; color: var(--text-3); }
.lang-option.active { color: var(--white); background: rgba(255,255,255,.06); }
.lang-option.active .code { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .lang-option:hover { color: var(--white); background: rgba(255,255,255,.06); } }
@media (max-width: 480px) { .lang-btn .lang-current { display: none; } .lang-btn { padding: 0; width: 38px; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .lang-dropdown { transition: none; } }
