/* Page Assos - konect-group.fr/associations/ (s'appuie sur konect.css, marques.css et reporting.css) */

/* Ouverture */
.as-hero { background: var(--night); color: var(--white); padding: 140px 0 90px; overflow: hidden; position: relative; }
.as-hero::before {
  content: ''; position: absolute; left: -160px; bottom: -220px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 126, 57, .28), transparent); pointer-events: none;
}
.as-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.as-hero .eyebrow { color: var(--orange-2); }
.as-hero h1 { margin-top: 16px; font-size: clamp(52px, 7.2vw, 108px); }
.as-hero h1 em { font-style: normal; color: var(--orange); }
.as-hero .btn-ghost { color: var(--white); }
.as-hero .stats { margin-top: 40px; }
/* La carte du réseau (même rendu que la page Marques, sans la fenêtre agrandie) */
.as-map .map-stage { cursor: default; }
@media (max-width: 900px) {
  .as-hero .wrap { grid-template-columns: 1fr; }
  .as-map { max-width: 560px; margin: 10px auto 0; width: 100%; }
}

/* Bandeau des écoles, sous l'ouverture (reprend .band de la page Marques) */
.as-band-roll { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.as-band .band-track { list-style: none; margin: 0; padding: 0; animation-duration: 40s; }
.as-band .band-track li { display: flex; align-items: center; padding: 12px 0; }
/* Chaque logo sur une tuile blanche, à hauteur égale : les logos gardent leurs couleurs sur l'orange. */
.as-band .band-track li::after { content: '✦'; font-size: 22px; margin: 0 18px; color: var(--white); }
.as-band .band-track img {
  display: block; height: clamp(46px, 5vw, 64px); width: auto; padding: 9px 16px; box-sizing: border-box;
  background: var(--white); border-radius: 14px; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .5);
}

/* Comment ça marche : réutilise .steps (reporting.css) */
.as-how { background: var(--cream); }
.as-how .step:last-child { background: var(--orange); border-color: var(--orange); color: var(--white); }
.as-how .step:last-child .k { color: var(--white); }
.as-how .step:last-child p { color: #fff3ea; }

/* Pourquoi Konect */
.as-why { background: var(--white); }
.as-why .sec-head h2 em { font-style: normal; color: var(--orange); }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.perk { padding: 26px 26px 24px; border-radius: var(--radius); background: var(--cream-2); border: 1px solid var(--line); }
.perk .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(225, 126, 57, .14); color: var(--orange); }
.perk .ico svg { width: 24px; height: 24px; }
.perk h3 { margin-top: 18px; font-size: 28px; }
.perk p { margin-top: 8px; color: var(--muted-dark); font-size: 16px; }
.perk.hl { background: var(--ink); color: var(--white); border-color: var(--ink); }
.perk.hl p { color: #aeb9c0; }
@media (max-width: 900px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } }

/* Le studio et la KRT */
.as-tools { background: var(--cream); }
.as-tools .feature + .feature { margin-top: clamp(56px, 8vw, 100px); }
.as-krt-phones { display: flex; justify-content: center; gap: 18px; }
.as-krt-phones img { width: 42%; max-width: 230px; height: auto; filter: drop-shadow(0 26px 30px rgba(23, 26, 51, .35)); }
.as-krt-phones img:first-child { transform: rotate(-4deg) translateY(10px); }
.as-krt-phones img:last-child { transform: rotate(4deg); }
.link-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; color: var(--orange); text-decoration: none; border-bottom: 2px solid currentColor; }
.link-more:hover { color: var(--ink); }

/* Partenaires */
.as-partners { background: var(--night); color: var(--white); overflow: hidden; }
.as-partners .sec-head p { color: #aeb9c0; }
.as-partners .wrap.after { margin-top: 36px; }

/* Ce qu'on attend de vous */
.as-deal { background: var(--white); }
.deal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.deal-col { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream-2); }
.deal-col.us { background: var(--ink); color: var(--white); border-color: var(--ink); }
.deal-col h3 { font-size: 30px; }
.deal-col ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.deal-col li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 16px; }
.deal-col li::before { content: '✓'; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--white); font-size: 11px; font-weight: 700; }
.deal-note { margin-top: 18px; color: var(--muted-dark); font-size: 15px; }
@media (max-width: 760px) { .deal { grid-template-columns: 1fr; } }

/* FAQ */
.as-faq { background: var(--cream); }

/* Rejoindre */
.as-join .form .row:last-of-type { grid-template-columns: 1fr 1fr; }

/* Ancienneté */
.as-age { background: var(--orange); color: var(--white); overflow: hidden; }
.as-age-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.as-age-big { margin: 0; display: flex; flex-direction: column; align-items: center; font-family: var(--font-title); font-weight: 900; line-height: .8; color: var(--ink); }
.as-age-big b { font-size: clamp(200px, 30vw, 420px); letter-spacing: -.04em; }
.as-age-big span { margin-top: .1em; font-size: clamp(48px, 7vw, 100px); text-transform: uppercase; color: var(--white); }
.as-age .sec-head { margin-bottom: 36px; }
.as-age .sec-num { -webkit-text-stroke-color: var(--white); }
.as-age .sec-head h2 { font-size: clamp(42px, 5.6vw, 84px); }
.as-age .sec-head h2 em { color: var(--ink); }
.as-age .sec-head p { color: #fff3ea; }
.as-age-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .35); }
.as-age-facts div { padding: 18px 16px 0 0; }
.as-age-facts div + div { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .35); }
.as-age-facts b { display: block; font-family: var(--font-title); font-weight: 800; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; color: var(--ink); }
.as-age-facts span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: #fff3ea; }
@media (max-width: 900px) {
  .as-age-grid { grid-template-columns: 1fr; }
  .as-age-big { flex-direction: row; align-items: baseline; gap: 14px; }
  .as-age-big b { font-size: clamp(140px, 40vw, 220px); }
}
@media (max-width: 520px) {
  .as-age-facts { grid-template-columns: 1fr 1fr; }
  .as-age-facts div:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .35); margin-top: 16px; }
}

/* Konect Run : la tuile « Jouer » du bandeau et la fenêtre du jeu (.map-modal de la page Marques) */
.as-band-roll:hover .band-track { animation-play-state: paused; }  /* la tuile ne file pas sous la souris */
.band-game {
  display: flex; align-items: center; gap: 10px; height: clamp(46px, 5vw, 64px); padding: 0 18px 0 12px; border: 0; border-radius: 14px;
  background: var(--ink); color: var(--white); cursor: pointer; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: game-pulse 2.4s infinite;
  font: 900 clamp(22px, 2.4vw, 30px)/1 var(--font-title); text-transform: uppercase; transition: background .2s, color .2s;
}
.band-game svg { height: 70%; width: auto; }
.band-game span::after { content: none; }  /* pas l’étoile de .band-track span (page Marques) */
.band-game i { font-style: normal; font-size: .62em; color: var(--orange); }
.band-game:hover, .band-game:focus-visible { background: var(--white); color: var(--ink); }
@keyframes game-pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.run-modal { width: min(920px, calc(100vw - 32px)); overflow-y: auto; }  /* classement : peut dépasser sur mobile */
.run-modal .map-modal-head { justify-content: space-between; }
.run-modal .map-modal-head b { font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.run-score { font-family: var(--font-title); font-weight: 700; font-size: 17px; color: var(--sky); white-space: nowrap; }
.run-stage { border-radius: 16px; overflow: hidden; }
.run-canvas { display: block; width: 100%; touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: pointer; }
.run-canvas:focus { outline: none; }
.run-over { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 18px 28px; margin-top: 16px; }
.run-over[hidden], .run-save[hidden] { display: none; }
.run-final { margin: 0; color: #c9d2d8; }
.run-final b { color: var(--white); }
.run-save { margin-top: 16px; }
.run-save-title { margin: 0 0 10px; font: 800 18px var(--font-title); letter-spacing: .04em; text-transform: uppercase; color: var(--sky); }
.run-save-fields { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; margin-bottom: 12px; }
.run-field label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.run-save input {
  width: 100%; box-sizing: border-box;
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06); color: var(--white); font: 600 16px Raleway, sans-serif;
}
.run-save input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
/* Liste des écoles sous le champ, filtrée à la frappe */
.run-combo { position: relative; }
.run-combo ul {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; margin: 0; padding: 6px; list-style: none;
  max-height: 232px; overflow-y: auto; border-radius: 16px; background: var(--ink); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8);
}
.run-combo ul[hidden] { display: none; }
.run-combo li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 10px; cursor: pointer; color: var(--white); font-size: 15px; }
.run-combo li small { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.run-combo li:hover, .run-combo li[aria-selected="true"] { background: rgba(225, 126, 57, .22); }
.run-combo li.add { color: var(--orange-2); font-weight: 700; }
.run-save .btn:disabled { opacity: .55; cursor: default; }
.run-msg { margin: 10px 0 0; min-height: 1.4em; font-size: 14px; color: var(--orange-2); }
.run-over .link-more { margin-top: 6px; }
.run-over .link-more:hover { color: var(--white); }
.run-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.run-tabs button {
  flex: 1; padding: 7px 10px; border: 0; border-radius: 999px; background: none; color: #c9d2d8; cursor: pointer;
  font: 800 15px var(--font-title); letter-spacing: .05em; text-transform: uppercase;
}
.run-tabs button[aria-selected="true"] { background: var(--orange); color: var(--white); }
.run-board-head { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font: 800 17px var(--font-title); text-transform: uppercase; color: var(--white); }
.run-board-head[hidden] { display: none; }
.run-board-head button { border: 0; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--sky); cursor: pointer; font: 700 13px var(--font-title); }
.run-top { list-style: none; counter-reset: run; margin: 10px 0 0; padding: 0 4px 0 0; display: grid; gap: 4px; max-height: 300px; overflow-y: auto; }
.run-top li { counter-increment: run; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 5px 10px; border-radius: 10px; font-size: 15px; }
.run-top li::before { content: counter(run); font: 800 16px var(--font-title); color: var(--muted); }
.run-top li:nth-child(-n+3)::before { color: var(--orange); }
.run-top li.me { background: rgba(225, 126, 57, .18); }
.run-top li.empty { display: block; color: var(--muted); }
.run-top li.empty::before { content: none; }
.run-top .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); }
.run-top .who small { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: var(--muted); }
/* Campus : toute la ligne est un bouton qui ouvre le classement de l'école */
.run-top li.campus { padding: 0; }
.run-top li.campus::before { padding: 5px 0 0 10px; }
.run-top li.campus button {
  grid-column: 2 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: baseline;
  padding: 5px 10px 5px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.run-top li.campus:hover { background: rgba(255, 255, 255, .06); }
.run-top .m { font: 700 16px var(--font-title); color: #c9d2d8; }
.run-board-note { margin: 8px 0 0; font-size: 14px; color: var(--orange-2); }
@media (max-width: 700px) { .run-over { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .run-save-fields { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .run-modal .map-modal-head { flex-wrap: wrap; } }
