/* Mi2D Informatique — feuille de style du site public */

:root {
  /* Couleurs du logo */
  --blue: #4a78b5;
  --blue-600: #3a6299;
  --blue-050: #edf2f9;
  --orange: #d26f2e;
  --orange-600: #b85c20;
  --navy: #0b1220;
  --navy-2: #121b2e;

  --bg: #ffffff;
  --bg-tint: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --border: #e3e8f0;
  --ring: color-mix(in srgb, var(--blue) 45%, transparent);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px -12px rgb(15 23 42 / .12);
  --shadow-lg: 0 24px 60px -24px rgb(15 23 42 / .35);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --container: 1180px;
  color-scheme: light;
}

/* Thème sombre : choisi au clic sur le logo (data-theme), sinon celui de l'appareil. */
:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-tint: #0f182b;
  --surface: #131e33;
  --text: #e8eef8;
  --text-2: #9fb0c8;
  --border: #22304a;
  --blue: #6c9bd6;
  --blue-050: #14233d;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0b1220;
    --bg-tint: #0f182b;
    --surface: #131e33;
    --text: #e8eef8;
    --text-2: #9fb0c8;
    --border: #22304a;
    --blue: #6c9bd6;
    --blue-050: #14233d;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 800px; }
.muted { color: var(--text-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.2em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--lg { padding: .95em 1.5em; font-size: 1rem; }
.btn--accent { background: var(--orange); color: #fff; box-shadow: 0 8px 24px -10px var(--orange); }
.btn--accent:hover { background: var(--orange-600); transform: translateY(-1px); }
.btn--ghost { color: inherit; border-color: color-mix(in srgb, currentColor 25%, transparent); background: color-mix(in srgb, currentColor 6%, transparent); }
.btn--ghost:hover { border-color: color-mix(in srgb, currentColor 50%, transparent); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn--sm { padding: .55em .95em; font-size: .85rem; border-radius: 10px; }
.modes .btn { margin-top: 10px; }
.modes .btn .icon { width: 1em; height: 1em; color: inherit; margin: 0; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-1px); }
.btn--outline-light { color: #fff; border-color: rgb(255 255 255 / .4); }
.btn--outline-light:hover { background: rgb(255 255 255 / .1); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 12px 0 auto; z-index: 50; pointer-events: none; }
.nav__inner {
  pointer-events: auto;
  width: min(100% - 24px, 1240px); margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 18px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background-color .3s;
}
.nav__logo {
  position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 10px; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.nav__logo:hover { transform: rotate(-6deg) scale(1.06); }
.nav__logo img { height: 46px; width: auto; }
.nav__logo-mode {
  position: absolute; right: -11px; top: -4px; width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: 0 2px 6px rgb(0 0 0 / .25);
}
.nav__logo-mode .icon { width: 12px; height: 12px; }
.nav__logo-mode .icon-sun { display: none; }
:root[data-theme="dark"] .nav__logo-mode .icon-sun { display: block; }
:root[data-theme="dark"] .nav__logo-mode .icon-moon { display: none; }
.nav__menu { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__menu ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__menu ul a {
  display: block; padding: .55em .85em; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 550; font-size: .93rem;
  transition: background-color .2s, color .2s;
}
.nav__menu ul a:hover { background: var(--blue-050); color: var(--blue); }
.nav__menu ul a[aria-current="page"] { background: var(--blue); color: #fff; }
.nav__call { padding: .65em 1.05em; }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--blue-050); cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, top .25s; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav--open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav--open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__burger { display: block; }
  .nav__menu {
    position: absolute; top: calc(100% + 8px); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav--open .nav__menu { opacity: 1; transform: none; visibility: visible; }
  .nav__menu ul { flex-direction: column; }
  .nav__menu ul a { padding: .8em 1em; font-size: 1rem; }
  .nav__call { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 80px; isolation: isolate; }
.hero--clair { background: var(--bg-tint); }
.hero--clair .hero__glow {
  position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 22%, transparent), transparent);
}
.hero--sombre, .hero--gaming { background: var(--navy); color: #fff; }
.hero--sombre .hero__glow, .hero--gaming .hero__glow { position: absolute; inset: 0; z-index: -1; }
.hero--sombre .hero__glow {
  background:
    radial-gradient(600px 400px at 15% 20%, rgb(61 135 200 / .35), transparent 70%),
    radial-gradient(500px 380px at 85% 75%, rgb(226 112 29 / .28), transparent 70%);
}
.hero--sombre .hero__glow::after, .hero--gaming .hero__glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero--gaming .hero__glow {
  background:
    linear-gradient(90deg, var(--navy) 35%, rgb(11 18 32 / .55) 70%, rgb(11 18 32 / .2)),
    var(--hero-img, none) center right / cover no-repeat;
}
.hero--gaming .hero__glow::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 360px at 20% 80%, rgb(168 85 247 / .35), transparent 70%), radial-gradient(400px 300px at 10% 10%, rgb(236 72 153 / .22), transparent 70%);
}
.hero--home { padding: 170px 0 110px; }
.hero__inner { display: grid; gap: 48px; align-items: center; }
.hero--home .hero__inner { grid-template-columns: 1.25fr .9fr; }
/* Accueil : photo de fond fondue derrière la carte de disponibilité */
.hero--bg::before {
  content: ""; position: absolute; inset: 0 0 0 30%; z-index: -1;
  background: var(--hero-img) center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 70% 50%, #000 35%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 85% at 70% 50%, #000 35%, transparent 75%);
  opacity: .85;
}
:root[data-theme="dark"] .hero--bg::before { opacity: .9; }
.hero--bg .status-card { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (max-width: 980px) { .hero--bg::before { inset: 40% 0 0 0; -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); } }
.hero--media .hero__inner { grid-template-columns: 1.15fr .85fr; }
.hero__media { margin: 0; position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); rotate: 1.5deg; }
.hero__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .15); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 750; max-width: 15ch; }
.hero--clair h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 20ch; }
.hero--home.hero--clair h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); max-width: 15ch; }
.hero--home.hero--clair .hero__glow {
  inset: 0; width: auto; aspect-ratio: auto;
  background: radial-gradient(600px 420px at 10% 15%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 70%), radial-gradient(520px 400px at 90% 85%, color-mix(in srgb, var(--orange) 14%, transparent), transparent 70%);
}
.hero--sombre h1, .hero--gaming h1 {
  background: linear-gradient(100deg, #fff 30%, #b9d6f2 70%, #ffc89c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero--gaming h1 { background-image: linear-gradient(100deg, #fff 20%, #f0abfc 60%, #a78bfa); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 58ch; color: var(--text-2); }
.hero--sombre .hero__lead, .hero--gaming .hero__lead { color: #c3cfe0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1em;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--orange); border-radius: 2px; }
.hero--sombre .eyebrow { color: #9cc6ec; }
.hero--gaming .eyebrow { color: #e9a8ff; }
.hero--gaming .eyebrow::before { background: #e879f9; }

/* Carte de disponibilité (accueil) */
.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 22px;
  box-shadow: var(--shadow-lg);
}
.status-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; margin-bottom: 14px; font-size: .9rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .9rem; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.status--open .status__dot { background: #22c55e; box-shadow: 0 0 0 0 rgb(34 197 94 / .6); animation: pulse 2s infinite; }
.status--closed .status__dot { background: #f59e0b; }
.status--inline { margin-left: 6px; font-size: .8rem; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(34 197 94 / 0); } 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); } }
.modes { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.modes li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--bg-tint); }
.modes .icon { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.modes strong { display: block; font-size: .98rem; }
.modes span { font-size: .87rem; color: var(--text-2); }
.status-card__call {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  background: var(--orange); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem;
  transition: background-color .2s;
}
.status-card__call:hover { background: var(--orange-600); }
.status-card__call small { display: block; font-size: .75rem; font-weight: 600; opacity: .85; }
.status-card__call .icon { width: 26px; height: 26px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 720; }
.section__intro { font-size: 1.12rem; color: var(--text-2); }

/* Publics */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience {
  --c: var(--blue);
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 30px; border-radius: var(--radius); text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.audience::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent);
  transition: transform .4s ease;
}
.audience:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, var(--border)); }
.audience:hover::after { transform: scale(1.3); }
.audience--1 { --c: var(--orange); }
.audience--2 { --c: #a855f7; }
.audience__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); margin-bottom: 14px; }
.audience__icon .icon { width: 26px; height: 26px; }
.audience h3 { font-size: 1.45rem; }
.audience p { color: var(--text-2); flex: 1; }
.audience__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--c); }
.audience__more .icon { transition: transform .2s; }
.audience:hover .audience__more .icon { transform: translateX(4px); }

/* Bento de services */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento--4, .bento--8 { grid-template-columns: repeat(4, 1fr); }
.bento--6 .card:last-child { grid-column: span 2; }
.bento--6 .card:first-child { grid-column: span 2; background: linear-gradient(135deg, var(--blue), var(--blue-600)); color: #fff; border-color: transparent; }
.bento--6 .card:first-child p { color: rgb(255 255 255 / .85); }
.bento--6 .card:first-child .card__icon { background: rgb(255 255 255 / .16); color: #fff; }
.bento--6 .card:first-child h3 { font-size: 1.6rem; }
.card {
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-050); color: var(--blue); margin-bottom: 18px; }
.card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.card p { color: var(--text-2); margin: 0; font-size: .98rem; }

/* Chiffres */
.section--stats { padding: 56px 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat dd { margin: 0; font: 750 clamp(2rem, 4vw, 3rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--blue); }
.stat:nth-child(even) dd { color: var(--orange); }
.stat dt { color: var(--text-2); font-size: .95rem; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step__num { display: inline-block; font: 750 .85rem/1 var(--font-display); color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, transparent); padding: 7px 10px; border-radius: 999px; margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--text-2); margin: 0; font-size: .98rem; }

/* Zone */
.zone { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.zone .section__head { margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: .6em 1em; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 550; }
.chips .icon { width: 1em; height: 1em; color: var(--orange); }
.chips__more { color: var(--text-2); border-style: dashed !important; }

/* Split texte + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--inverse .split__media { order: -1; }
.split--noimg { grid-template-columns: 1fr; max-width: 860px; }
.split__text p { color: var(--text-2); font-size: 1.08rem; }
.split__media { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.split--noimg .checks { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 550; }
.checks .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); flex: none; margin-top: 1px; }
.checks--cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.checks--cards li { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--bg-tint); }
.gallery__item button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery__item button:focus-visible { outline: 3px solid var(--ring); outline-offset: -3px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption { position: absolute; inset: auto 12px 12px; padding: 10px 14px; border-radius: 12px; background: rgb(11 18 32 / .6); backdrop-filter: blur(10px); color: #fff; font-size: .88rem; font-weight: 550; }

/* Page gaming : ambiance sombre néon */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1200px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgb(11 18 32 / .85); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 16px; margin-inline: auto; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 600; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; }

/* Page gaming : mêmes couleurs claires, accent violet */
.page-gaming { --blue: #9333ea; --blue-600: #7e22ce; --blue-050: #f3e8ff; }
:root[data-theme="dark"] .page-gaming { --blue: #c084fc; --blue-050: #2a1a45; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .page-gaming { --blue: #c084fc; --blue-050: #2a1a45; } }
.page-gaming .card__icon { background: linear-gradient(135deg, rgb(168 85 247 / .16), rgb(236 72 153 / .14)); }
.page-gaming .nav__menu ul a[aria-current="page"] { background: linear-gradient(90deg, #a855f7, #ec4899); }

/* Articles */
.posts { display: grid; gap: 24px; }
.post { display: grid; grid-template-columns: 380px 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.post img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.post__body { padding: clamp(24px, 4vw, 40px); }
.post__body h2 { font-size: 1.6rem; }
.post__body p { color: var(--text-2); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: start; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-tile { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: inherit; text-decoration: none; font-weight: 600; transition: border-color .2s, transform .2s; }
a.info-tile:hover { border-color: var(--blue); transform: translateY(-2px); }
.info-tile .icon { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.info-tile small { display: block; font-size: .78rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.info-tile:nth-child(n+3) { grid-column: span 2; }
.info-tile--remote { background: var(--blue); border-color: var(--blue); color: #fff; }
.info-tile--remote .icon, .info-tile--remote small { color: rgb(255 255 255 / .85); }
a.info-tile--remote:hover { border-color: var(--blue-600); background: var(--blue-600); }
.map { grid-column: span 2; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.map iframe { display: block; width: 100%; height: 260px; border: 0; }
.map a { display: block; padding: 12px 16px; font-size: .9rem; font-weight: 600; }
.form { padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.form .section__title { font-size: 1.8rem; margin: 0; }
.form > .muted { margin: -8px 0 0; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form textarea {
  width: 100%; padding: .85em 1em; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-tint); color: var(--text); font: inherit; font-weight: 400;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); background: var(--surface); }
.form textarea { resize: vertical; min-height: 140px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { justify-self: start; }
.form__note { font-size: .85rem; margin: 0; }
.segmented { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.segmented legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.segmented label { display: block; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: block; padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--border); cursor: pointer; font-weight: 600; transition: all .2s; }
.segmented input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.segmented input:focus-visible + span { box-shadow: 0 0 0 4px var(--ring); }
.hp { position: absolute !important; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.alert--ok { background: color-mix(in srgb, #22c55e 14%, transparent); color: #15803d; }
.alert--err { background: color-mix(in srgb, #ef4444 12%, transparent); color: #b91c1c; }
:root[data-theme="dark"] .alert--ok { color: #86efac; }
:root[data-theme="dark"] .alert--err { color: #fca5a5; }

/* Texte long */
.section--prose { padding: 40px 0; }
.section--prose:first-of-type { padding-top: 64px; }
.prose h2 { font-size: 1.4rem; }
.prose p { color: var(--text-2); }

/* Bandeau d'appel */
.cta-band { padding: 0 0 clamp(64px, 9vw, 112px); }
.page-accueil .cta-band, .section--tint + .cta-band { padding-top: clamp(64px, 9vw, 112px); }
.cta-band__inner {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(32px, 5vw, 56px); border-radius: 28px; color: #fff;
  background: radial-gradient(500px 300px at 90% 120%, rgb(226 112 29 / .55), transparent 70%), linear-gradient(120deg, var(--blue-600), var(--navy) 85%);
}
.page-gaming .cta-band__inner { background: radial-gradient(500px 300px at 90% 120%, rgb(236 72 153 / .5), transparent 70%), linear-gradient(120deg, #6d28d9, #0b0f1c 85%); }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgb(255 255 255 / .8); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pied de page */
.footer { background: var(--bg-tint); border-top: 1px solid var(--border); color: var(--text-2); padding: 64px 0 24px; font-size: .95rem; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--blue); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer__logo { height: 64px; width: auto; margin-bottom: 16px; }
.footer__title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 1em; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .85rem; }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero--home .hero__inner, .hero--media .hero__inner, .zone, .contact { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 16 / 10; rotate: none; }
  .audiences { grid-template-columns: 1fr; }
  .bento, .bento--4, .bento--8 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--inverse .split__media { order: 0; }
  .post { grid-template-columns: 1fr; }
  .post img { min-height: 0; aspect-ratio: 16 / 9; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { padding: 120px 0 56px; }
  .hero--home { padding: 120px 0 64px; }
  .bento, .bento--4, .bento--8 { grid-template-columns: 1fr; }
  .bento--6 .card:first-child, .bento--6 .card:last-child { grid-column: auto; }
  .contact__info, .form__row { grid-template-columns: 1fr; }
  .info-tile:nth-child(n+3), .map { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
