/* Home page: the logo ring as the entry point, then one short section per kind of visitor.
   Loaded after site.css on index.html, and on partenaires.html for the same section style (see the end of file). */

/* ---------- Ring hero ---------- */

.ring-hero {
  padding: 56px 0 40px;
  text-align: center;
}

.ring-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 21ch;
  margin: 0 auto 12px;
}

.ring-lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 40ch;
}

.ring-wrap {
  max-width: 900px;
  margin: 8px auto 0;
}

.ring {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ring .fz {
  fill: none;
  stroke: var(--text);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ring .hit {
  fill: transparent;
}

.ring .t1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  fill: var(--text);
}

.ring .t2 {
  font-size: 10.5px;
  fill: var(--muted);
}

.ring .ul {
  stroke: var(--c);
  stroke-width: 2.5;
  stroke-linecap: round;
  transform: scaleX(0);
  transform-box: fill-box;
}

.ring .fig {
  transform: none;
}

.ring .who {
  cursor: pointer;
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  .ring .fig,
  .ring .ul {
    transition: transform 0.22s cubic-bezier(0.3, 0.7, 0.4, 1);
  }
}

/* Hover or keyboard focus: the person steps out of the circle and its name gets underlined. */
.ring .who:hover .fig,
.ring .who:focus-visible .fig {
  transform: translate(var(--dx), var(--dy));
}

.ring .who:hover .ul,
.ring .who:focus-visible .ul {
  transform: scaleX(1);
}

.ring .who:focus-visible .t1 {
  fill: var(--accent-text);
}

/* While one person is hovered, the others step back. */
.ring:has(.who:hover) .who:not(:hover) .fig,
.ring:has(.who:focus-visible) .who:not(:focus-visible) .fig {
  opacity: 0.35;
}

@media (prefers-reduced-motion: no-preference) {
  .ring .fig {
    transition: transform 0.22s cubic-bezier(0.3, 0.7, 0.4, 1), opacity 0.2s;
  }
}

/* Small screens: the ring alone, the names become a list under it. */
.who-chips {
  display: none;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.who-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.who-chips a:hover {
  border-color: var(--c);
}

.who-chips .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}

.ring-actions {
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.ring-note {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .ring-hero {
    padding-top: 36px;
  }

  .ring-wrap {
    overflow: hidden;
  }

  /* The labels sit around the ring in the drawing: crop to the ring and use the list instead. */
  .ring {
    width: 160%;
    max-width: none;
    margin: 0 0 0 -30%;
  }

  .ring .lbl {
    display: none;
  }

  .who-chips {
    display: flex;
  }

  .ring-actions {
    flex-direction: column;
  }
}

/* ---------- Sections, one per visitor ---------- */

.who-sec {
  scroll-margin-top: 72px;
}

#faq {
  scroll-margin-top: 72px;
}

.who-inner {
  max-width: 1120px;
}

.who-text {
  max-width: 620px;
}

.who-sec h2,
#faq h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.who-glyph {
  display: inline-block;
  width: 30px;
  height: 30px;
  vertical-align: -4px;
  margin-right: 12px;
}

.who-lead {
  font-size: 1.12rem;
  margin: 0 0 16px;
  max-width: 58ch;
}

.who-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.who-points li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
  color: var(--muted);
}

.who-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 3px;
  border-radius: 2px;
  background: var(--c);
}

.who-sec .actions {
  justify-content: flex-start;
}

.who-sec .small-links {
  text-align: left;
  margin-top: 16px;
}

.who-sec .cat-logos {
  justify-content: flex-start;
  margin: 0 0 24px;
}

#faq .faq-list {
  margin: 0;
  max-width: none;
}


/* Colour and hover offset of each profile. They used to come from style="" attributes, which the showcase CSP
   (style-src 'self') blocks: the bullets, the underline and the hover step-out did not show. */
#bons-plans, .who-chips a[href="#bons-plans"], .ring .who[href="#bons-plans"] { --c: #1EA7FF; }
#sortir, .who-chips a[href="#sortir"], .ring .who[href="#sortir"] { --c: #FF4D6A; }
#pour-tous, .who-chips a[href="#pour-tous"], .ring .who[href="#pour-tous"] { --c: #FFB020; }
#etablissements, .who-chips a[href="#etablissements"], .ring .who[href="#etablissements"] { --c: #D21FCB; }
#artistes, .who-chips a[href="#artistes"], .ring .who[href="#artistes"] { --c: #3B5BFF; }
#groupes, .who-chips a[href="#groupes"], .ring .who[href="#groupes"] { --c: #43D94B; }

.ring .who[href="#bons-plans"] { --dx: -3.5px; --dy: -6.1px; }
.ring .who[href="#sortir"] { --dx: 3.5px; --dy: -6.1px; }
.ring .who[href="#pour-tous"] { --dx: 7px; --dy: 0px; }
.ring .who[href="#etablissements"] { --dx: 3.5px; --dy: 6.1px; }
.ring .who[href="#artistes"] { --dx: -3.5px; --dy: 6.1px; }
.ring .who[href="#groupes"] { --dx: -7px; --dy: 0px; }

/* Labels on the left of the circle are right-aligned: their underline grows from the right. */
.ring .who[href="#bons-plans"] .ul,
.ring .who[href="#artistes"] .ul,
.ring .who[href="#groupes"] .ul { transform-origin: right; }
.ring .who[href="#sortir"] .ul,
.ring .who[href="#pour-tous"] .ul,
.ring .who[href="#etablissements"] .ul { transform-origin: left; }

/* ---------- "Le prochain événement" (launch mode, filled by next-event.js, hidden when there is none) ---------- */

.next-event { padding: 8px 0 40px; }
.next-event[hidden] { display: none; }

.next-event-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.next-event-kicker {
  margin: 0 0 6px;
  color: var(--accent-text);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.next-event-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.next-event-card p { margin: 4px 0; }
.next-event-when { font-weight: 600; }
.next-event-where, .next-event-seats, .next-event-host { color: var(--muted); }
.next-event-host { margin-top: 12px !important; font-size: .95rem; }
.next-event-card .actions { justify-content: center; margin-top: 20px; }

/* ---------- Partner page (partenaires.html): same plain sections as the home page ---------- */

.p-page { --c: #D21FCB; }

.p-hero {
  padding-top: 56px;
}

.p-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 20ch;
}

.p-page .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.ideas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px 48px;
}

.idea-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.idea-row img {
  flex: none;
  width: 44px;
  height: 44px;
}

.idea-row h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.idea-row p {
  margin: 0;
  color: var(--muted);
}

.p-final {
  text-align: center;
}

.p-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.p-final p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 24px;
}

.p-final .actions {
  justify-content: center;
}
