/* Page Marques - konect-group.fr/marques/ */

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--gutter); color: var(--white);
  transition: background .3s, padding .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(22, 26, 28, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none;
  text-decoration: none; padding: 8px 14px; border-radius: 999px; color: #c9d2d8; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.on { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav .btn { padding: 11px 20px; font-family: var(--font); font-weight: 700; font-size: 15px; letter-spacing: 0; text-transform: none; }
.nav-swap { font-size: 13px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.nav-swap::before { content: ''; width: 18px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--blue) 50%, var(--orange) 50%); }
.nav-swap:hover { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 18px; }
@media (max-width: 1080px) { .nav-links { display: none; } }
.nav .btn .short { display: none; }
@media (max-width: 560px) {
  .nav { gap: 12px; }
  .nav-swap { display: none; }
  .nav .btn { padding: 9px 16px; font-size: 14px; }
  .nav .btn .long { display: none; } .nav .btn .short { display: inline; }
  .nav .brand b { font-size: 19px; letter-spacing: .2em; }
}

/* ── Hero : le compteur et la carte ── */
.hero {
  position: relative; background: var(--night); color: var(--white); overflow: hidden;
  padding: 130px 0 70px; min-height: 100svh; display: flex; align-items: center;
}
.hero::before { /* trame discrète */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(174, 233, 248, .07) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero .eyebrow { color: var(--sky); }
.counter {
  display: flex; align-items: flex-end; margin: 10px 0 0;
  font-family: var(--font-title); font-weight: 900; line-height: 1; letter-spacing: -.02em;
  font-size: clamp(104px, 15.5vw, 236px); color: var(--white);
}
.counter .slot { position: relative; display: inline-block; height: 1em; overflow: hidden; }
.counter .strip { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(.16, 1, .3, 1); }
.counter .strip span { height: 1em; line-height: 1; }
.counter .gap { display: inline-block; width: .18em; }
/* Chiffre écrit dans le HTML (instantané) : lu sans JS ; avec JS, il garde la place jusqu'au rouleau. */
.js .counter-static { visibility: hidden; }
.counter.flash .slot.changed { color: var(--orange); transition: color 1.2s; }
.hero h1 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 800; color: var(--white); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-cta .btn-ghost { color: var(--white); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .12); }
.stat { padding: 18px 16px 0 0; }
.stat + .stat { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat b { display: block; font-family: var(--font-title); font-weight: 800; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.off .live-dot { background: var(--muted); animation: none; }

.map-card { position: relative; }
.map { width: 100%; height: auto; overflow: visible; }
.map .d { fill: #2b3337; }
.map .d.l1 { fill: #31505d; } .map .d.l2 { fill: #2886aa; } .map .d.l3 { fill: #63c0df; } .map .d.l4 { fill: #aee9f8; }
.map .city { fill: rgba(225, 126, 57, .16); stroke: var(--orange); stroke-width: 2; transition: fill .2s; cursor: pointer; }
.map .city:hover, .map .city.hot { fill: rgba(225, 126, 57, .45); }
.map .city.small { fill: transparent; stroke: transparent; }
.map .city.small:hover, .map .city.small.hot { fill: rgba(225, 126, 57, .45); stroke: var(--orange); }
.map .core { fill: var(--orange); pointer-events: none; }
.map .ping { fill: none; stroke: var(--sky); stroke-width: 3; opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: center; animation: ping 1.8s var(--ease) forwards; }
@keyframes ping { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(3.2); } }
.map-tip {
  position: absolute; pointer-events: none; z-index: 3; transform: translate(-50%, calc(-100% - 14px));
  background: var(--white); color: var(--ink); border-radius: 10px; padding: 7px 11px; white-space: nowrap;
  font-family: var(--font-title); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); opacity: 0; transition: opacity .15s;
}
.map-tip b { color: var(--orange); }
.map-tip.on { opacity: 1; }
.map-stage { position: relative; cursor: zoom-in; }
.map-modal {
  width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 22px clamp(16px, 3vw, 34px) 26px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 26px; background: var(--night); color: var(--white); overflow: hidden;
}
.map-modal::backdrop { background: rgba(10, 12, 14, .86); }
/* Carte agrandie : la page derrière s'arrête de bouger, rien à recalculer sous la fenêtre. */
body.map-open main *, body.map-open .nav * { animation-play-state: paused !important; }
.map-modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.map-modal-head { display: flex; align-items: center; gap: 10px; margin: 0 40px 10px 0; color: #aeb9c0; font-size: 15px; }
.map-modal-head b { color: var(--white); font-family: var(--font-title); font-size: 20px; }
@media (max-width: 600px) { .map-hint { display: none; } }
.map-modal .map-stage { cursor: default; }
.map-modal .map { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 130px); margin: 0 auto; }
.map-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: var(--white); font-size: 24px; line-height: 1;
}
.map-close:hover { background: var(--orange); }
.map-legend { display: flex; justify-content: flex-start; gap: 16px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--muted); }
.map-legend .scale { display: inline-flex; align-items: center; gap: 4px; }
.map-legend .scale i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

@media (max-width: 900px) {
  .hero { padding-top: 110px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .map-card { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 16px; }
}

/* ── Bandeau défilant ── */
/* Le bandeau incliné déborde de 20 px de chaque côté : sans ce clip, un mobile élargit la page. */
main { overflow-x: clip; }
.band { background: var(--orange); color: var(--ink); overflow: hidden; transform: rotate(-1.6deg); margin: -22px -20px 0; position: relative; z-index: 2; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .5); }
.band-track { display: flex; width: max-content; animation: slide 28s linear infinite; }
.band-track span {
  font-family: var(--font-title); font-weight: 900; font-size: clamp(30px, 4.4vw, 56px); text-transform: uppercase;
  padding: 14px 0; white-space: nowrap; display: inline-flex; align-items: center;
}
.band-track span::after { content: '✦'; font-size: .6em; margin: 0 .7em; color: var(--white); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Sections ── */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.sec-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px clamp(18px, 3vw, 40px); align-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-num {
  font-family: var(--font-title); font-weight: 900; font-size: clamp(56px, 8vw, 120px); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--ink); opacity: .35;
}
.perf .sec-num, .refs .sec-num { -webkit-text-stroke-color: var(--white); }
.sec-head h2 { font-size: clamp(46px, 7.4vw, 112px); }
.sec-head h2 em { font-style: normal; color: var(--orange); }
.sec-head p { grid-column: 2; max-width: 700px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted-dark); margin-top: 14px; }
@media (max-width: 640px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head p { grid-column: 1; }
}

/* 01 - Data : la carte du réseau ville par ville */
.data { background: var(--cream); }
.cell { border-radius: var(--radius); padding: clamp(22px, 2.6vw, 34px); background: var(--cream-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cell p { margin-top: 10px; color: var(--muted-dark); font-size: 16px; }
.cell.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cell.dark p { color: #aeb9c0; }

.bars { margin-top: 26px; display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 116px minmax(0, 1fr) 62px; align-items: center; gap: 12px; font-size: 14px; }
.bar .name { font-family: var(--font-title); font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .track { display: block; height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar .fill { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--sky)); transition: width 1.4s var(--ease); }
.bar:first-child .fill { background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.bar .val { text-align: right; font-family: var(--font-title); font-weight: 800; font-size: 19px; }
.cell-foot { margin-top: 22px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
@media (max-width: 480px) { .bar { grid-template-columns: 92px minmax(0, 1fr) 52px; } }

/* 01 - Réseau : les villes, filtrables par type d'asso */
.net { padding: clamp(24px, 3.4vw, 44px); }
.net-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 28px; flex-wrap: wrap; }
.net-total { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0; color: #aeb9c0; font-size: 17px; }
.net-total b { font: 900 clamp(52px, 6vw, 84px)/.9 var(--font-title); color: var(--white); }
.net-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.net-chip {
  border: 1.5px solid rgba(255, 255, 255, .16); background: transparent; color: #c9d2d8; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; font: 700 16px var(--font-title); letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.net-chip:hover { border-color: var(--orange); color: var(--white); }
.net-chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--white); }
.net .bars { margin-top: 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 48px; }
.net .bar .fill { transition: width 1s var(--ease); }
.net-note { color: var(--muted); }
.net-more { margin-top: 26px; }
@media (max-width: 760px) { .net .bars { grid-template-columns: 1fr; } }

/* 02 - Performance */
.perf { background: var(--ink); color: var(--white); overflow: hidden; }
.perf .sec-head p { color: #aeb9c0; }
.perf-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .perf-grid { grid-template-columns: 1fr; } }
.chart-card { background: var(--ink-2); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 30px); border: 1px solid rgba(255, 255, 255, .06); }
.switch { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(0, 0, 0, .3); position: relative; }
.switch button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 10px 18px; border-radius: 999px;
  font-family: var(--font-title); font-weight: 700; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.switch button[aria-pressed="true"] { color: var(--white); }
.switch .knob { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--ink-3); transition: transform .45s var(--ease), width .45s var(--ease), background .45s; }
.switch.konect .knob { background: var(--orange); }
.perf-chart { width: 100%; height: auto; margin-top: 20px; overflow: visible; }
.perf-chart .axis { stroke: rgba(255, 255, 255, .15); stroke-width: 1.5; }
.perf-chart .lbl { fill: var(--muted); font: 600 13px var(--font); }
.perf-chart .scene { transition: opacity .5s var(--ease); }
.perf-chart .line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.perf-chart .on .line { animation: draw 1.6s var(--ease) forwards; }
.perf-chart .on .line.second { animation-delay: .35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.perf-chart .risk { fill: url(#riskfill); opacity: 0; transition: opacity .6s .9s; }
.perf-chart .on .risk { opacity: 1; }
.perf-chart .tag { font: 800 15px var(--font-title); letter-spacing: .08em; text-transform: uppercase; }
.perf-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: #c9d2d8; }
.perf-legend span { display: inline-flex; align-items: center; gap: 8px; }
.perf-legend i { width: 18px; height: 4px; border-radius: 4px; display: inline-block; }
.verdict { margin-top: 18px; font-family: var(--font-title); font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); text-transform: uppercase; line-height: 1.05; min-height: 2.2em; }
.verdict em { font-style: normal; color: var(--orange); }

.points { display: grid; gap: 14px; }
.point { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .1); transition: background .3s, border-color .3s; }
.point:hover { background: rgba(255, 255, 255, .04); border-color: rgba(225, 126, 57, .5); }
.point .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(225, 126, 57, .14); color: var(--orange); }
.point .ico svg { width: 28px; height: 28px; }
.point h3 { font-size: 26px; }
.point p { margin-top: 6px; color: #aeb9c0; font-size: 16px; }
.perf-more { justify-self: start; margin-top: 8px; }

/* 03 - La KRT : aux couleurs de l'app (jaune et marine de sa plaquette) */
.krt { --krt-y: #ffce1f; --krt-n: #171a33; background: var(--krt-y); color: var(--krt-n); overflow: hidden; }
.krt .sec-num { -webkit-text-stroke-color: var(--krt-n); }
.krt .sec-head { margin-bottom: 28px; }
.krt .sec-head h2 { line-height: 1.06; }
.krt .sec-head h2 em { color: var(--krt-y); background: var(--krt-n); padding: 0 .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.krt .sec-head p { color: #3b3a33; }
.krt-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.krt-points { display: grid; gap: 12px; }
.krt-point { background: var(--krt-n); color: var(--white); border-radius: 18px; padding: 18px 22px; }
.krt-point h3 { font-size: 24px; color: var(--krt-y); }
.krt-point p { margin-top: 6px; font-size: 15px; color: #c9cbe0; }
.krt-btn { margin-top: 24px; background: var(--krt-n); }
.krt-btn:hover { box-shadow: 0 10px 24px -10px rgba(23, 26, 51, .8); }

.krt-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 18.5; padding: 48px 14px 14px; border-radius: 46px;
  background: #0d1024; border: 10px solid #24273a; box-shadow: 0 40px 80px -30px rgba(23, 26, 51, .7), inset 0 0 0 2px #3a3e55;
  transform: rotate(-5deg); overflow: hidden;
}
.phone-notch { position: absolute; top: 10px; left: 50%; width: 96px; height: 26px; margin-left: -48px; border-radius: 20px; background: #000; }
.phone-head { display: flex; align-items: center; gap: 9px; color: var(--white); margin-bottom: 12px; }
.phone-head img { width: 28px; height: 28px; border-radius: 8px; }
.phone-head b { font: 800 22px var(--font-title); letter-spacing: .02em; }
.phone-plus { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--krt-y); color: var(--krt-n); font-weight: 800; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.offer { position: relative; aspect-ratio: 1 / 1.08; border-radius: 14px; overflow: hidden; background: #1c2040; }
.offer img { width: 100%; height: 100%; object-fit: cover; }
.offer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8, 10, 30, .92)); }
.offer b, .offer small { position: absolute; left: 8px; right: 6px; z-index: 1; color: var(--white); line-height: 1.1; }
.offer b { bottom: 20px; font: 700 13px var(--font-title); letter-spacing: .01em; }
.offer small { bottom: 7px; font-size: 10px; opacity: .85; }
.offer .new { position: absolute; top: 6px; right: 6px; z-index: 1; padding: 2px 6px; border-radius: 6px; background: #ff5a36; color: var(--white); font: 700 9px var(--font); }
.krt-visual.in .offer { animation: offer-in .7s var(--ease) both; animation-delay: calc(.25s + var(--i) * .1s); }
@keyframes offer-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.krt-stats {
  position: absolute; right: 0; bottom: 70px; min-width: 200px; display: grid; gap: 8px;
  padding: 16px 18px; border-radius: 18px; background: var(--white); color: var(--krt-n);
  box-shadow: 0 24px 50px -20px rgba(23, 26, 51, .55); transform: rotate(3deg);
}
.krt-stats .k { font: 700 12px var(--font-title); letter-spacing: .16em; text-transform: uppercase; opacity: .55; }
.krt-stats .st { display: flex; align-items: baseline; gap: 8px; }
.krt-stats .st b { font: 800 30px/1 var(--font-title); min-width: 2.6em; }
.krt-stats .st span { font-size: 13px; }
@media (max-width: 900px) {
  .krt-grid { grid-template-columns: 1fr; }
  .krt-visual { min-height: 0; padding: 10px 0 40px; }
  .krt-stats { right: 4px; bottom: 0; min-width: 0; padding: 12px 14px; }
}
@media (max-width: 480px) { .phone { width: 250px; } .krt-stats .st b { font-size: 24px; } }

/* 04 - Clé en main : trois étapes, ce que fait Konect et la part de la marque */
.turnkey { background: var(--cream); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.flow::before { /* la ligne qui relie les étapes */
  content: ''; position: absolute; left: 32px; right: 32px; top: 37px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 18px); z-index: 0;
}
.flow-step { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 26px 28px 24px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.flow-step:nth-child(2) { background: var(--sky); border-color: var(--sky); }
.flow-step:nth-child(3) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.flow-k {
  align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--orange); color: var(--white);
  font: 700 14px var(--font-title); letter-spacing: .14em; text-transform: uppercase;
}
.flow-step h3 { margin-top: 22px; font-size: clamp(34px, 3.4vw, 50px); }
.flow-step ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.flow-step li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 16px; }
.flow-step li::before {
  content: '✓'; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--white); font-size: 11px; font-weight: 700;
}
.flow-step:nth-child(3) li::before { background: var(--orange); }
.flow-you { margin-top: 22px; padding-top: 16px; border-top: 1px dashed currentColor; font-size: 15px; opacity: .8; }
.flow-you b { font-family: var(--font-title); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow::before { left: 44px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--orange) 0 10px, transparent 10px 18px); }
}
.zero {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px clamp(22px, 3vw, 40px); border-radius: var(--radius); background: var(--orange); color: var(--white);
}
.zero p { font-family: var(--font-title); font-weight: 800; font-size: clamp(26px, 3vw, 40px); text-transform: uppercase; line-height: 1; }
.zero b { font-family: var(--font-title); font-weight: 900; font-size: clamp(64px, 8vw, 110px); line-height: .8; }

/* 05 - Références */
.refs { background: var(--night); color: var(--white); overflow: hidden; }
.refs .sec-head p { color: #aeb9c0; }
.marquee { --gap: 18px; display: flex; overflow: hidden; padding: 12px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 6px; }
.marquee-track { display: flex; align-items: center; gap: var(--gap); padding-right: var(--gap); width: max-content; flex-shrink: 0; animation: slide 60s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-tile {
  --s: clamp(104px, 11vw, 148px);
  position: relative; flex-shrink: 0; width: var(--s); height: var(--s); border-radius: 26%;
  overflow: hidden; background: var(--white); transition: transform .35s var(--ease), box-shadow .35s;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.logo-tile.txt { display: grid; place-items: center; padding: 16px; text-align: center; }
.logo-tile.txt span { line-height: .95; }
.logo-tile.txt svg { width: 82%; height: auto; }
.logo-tile:hover { transform: translateY(-6px) rotate(-3deg) scale(1.06); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .8); }
.logo-tile::after {
  content: attr(data-name); position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 7px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78)); color: var(--white);
  font: 700 13px var(--font-title); letter-spacing: .06em; text-transform: uppercase; opacity: 0; transition: opacity .25s;
}
.logo-tile:hover::after { opacity: 1; }
.refs-count { display: flex; align-items: baseline; gap: 14px; margin-top: 46px; color: #aeb9c0; flex-wrap: wrap; }
.refs-you { color: var(--orange); font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; transition: color .2s; }
.refs-you:hover { color: var(--orange-2); }
.refs-count b { font-family: var(--font-title); font-weight: 900; font-size: clamp(56px, 7vw, 96px); line-height: .8; color: var(--white); }

/* 05 - Contact */
.contact { background: var(--orange); color: var(--ink); overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(56px, 8.6vw, 132px); }
.contact h2 em { font-style: normal; color: var(--white); }
.contact-lead { margin-top: 22px; font-size: 19px; max-width: 520px; }

.form { background: var(--ink); color: var(--white); border-radius: 28px; padding: clamp(22px, 3vw, 40px); display: grid; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-title); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--white);
  border-radius: 14px; padding: 14px 16px; font: 500 16px var(--font); transition: border-color .2s, background .2s;
}
.field select option { color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); background: rgba(255, 255, 255, .07); }
.form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

/* Pied de page */
.foot { background: var(--night); color: var(--muted); padding: 50px 0 34px; font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.foot .brand { color: var(--white); }
.foot p { margin-top: 12px; max-width: 320px; }
.foot nav { display: flex; gap: 10px 26px; flex-wrap: wrap; }
.foot nav a { color: #c9d2d8; text-decoration: none; }
.foot nav a:hover { color: var(--white); }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Arrivée par la pilule bleue : le bleu se retire */
.entry { position: fixed; inset: 0; z-index: 100; background: var(--blue); pointer-events: none; animation: entry .9s cubic-bezier(.7, 0, .3, 1) .05s forwards; }
@keyframes entry { to { clip-path: circle(0% at 50% 50%); } }
.entry { clip-path: circle(150% at 50% 50%); }

/* Pac-Man caché : double-clic sur Paris dans la carte du réseau (assets/pacman.js) */
.map.pm-on + .map-tip { display: none; }
.map.pm-on .city, .map.pm-on .core, .map.pm-on .ping { display: none; }
.map.pm-on .d { fill-opacity: .45; }
.map.pm-on .d.pm-pellet { fill-opacity: 1; fill: #d6f6ff; }
.map.pm-on .d.pm-gone { visibility: hidden; }
.pm-layer { position: absolute; pointer-events: none; overflow: visible; }
.pm-pac { fill: #ffce1f; }
.pm-ghost-0 path { fill: var(--orange); }
.pm-ghost-1 path { fill: var(--blue-2); }
.pm-eye { fill: #fff; }
.pm-pupil { fill: var(--night); }
.pm-hud { position: absolute; left: 0; right: 0; bottom: 0; top: 0; pointer-events: none; }
.pm-hud > * { pointer-events: auto; }
.pm-score { position: absolute; left: clamp(16px, 3vw, 34px); bottom: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 206, 31, .14); color: #ffce1f; font: 700 15px var(--font-title); letter-spacing: .06em; text-transform: uppercase; }
.pm-score b { font-size: 20px; }
.pm-lives { margin-left: 8px; color: var(--orange); letter-spacing: .1em; }
.pm-help { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); color: var(--muted); font-size: 13px; white-space: nowrap; pointer-events: none; }
.pm-quit { position: absolute; right: clamp(16px, 3vw, 34px); bottom: 16px; border: 1px solid rgba(255, 255, 255, .2); background: none; color: #c9d2d8; border-radius: 999px; padding: 7px 14px; cursor: pointer; font: 700 13px var(--font-title); letter-spacing: .08em; text-transform: uppercase; }
.pm-quit:hover { border-color: var(--orange); color: var(--white); }
.pm-pad { display: none; position: absolute; right: 18px; bottom: 64px; width: 132px; height: 132px; }
.pm-pad button { position: absolute; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .12); color: var(--white); font-size: 16px; touch-action: none; }
.pm-pad [data-d="up"] { left: 44px; top: 0; } .pm-pad [data-d="down"] { left: 44px; bottom: 0; }
.pm-pad [data-d="left"] { left: 0; top: 44px; } .pm-pad [data-d="right"] { right: 0; top: 44px; }
@media (pointer: coarse) { .pm-pad { display: block; } .pm-help { display: none; } }
.pm-flash { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); padding: 12px 22px; border-radius: 999px; background: var(--orange); color: var(--white); font: 800 clamp(22px, 3vw, 32px) var(--font-title); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; pointer-events: none; animation: pm-flash .3s var(--ease); }
.pm-flash[hidden] { display: none; }
@keyframes pm-flash { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }
.pm-end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 24px; background: rgba(22, 26, 28, .86); }
.pm-end[hidden] { display: none; }
.pm-end .pm-title { font: 900 clamp(32px, 5vw, 56px)/.95 var(--font-title); text-transform: uppercase; color: #ffce1f; }
.pm-end p { color: #c9d2d8; }
.pm-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.pm-end .btn-ghost { color: var(--white); }

/* FAQ (aussi sur la page Assos) */
.mq-faq { background: var(--cream); }
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font: 800 22px var(--font-title); text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 28px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted-dark); }
.as-faq .faq summary::after { color: var(--orange); }
.faq details p a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
