@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Great+Vibes&display=swap");

/* Design tokens — alignés sur fasi-radiance/src/index.css */
:root {
  --background: hsl(240 100% 99%);
  --foreground: hsl(240 100% 17%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(240 100% 17%);
  --primary-foreground: hsl(0 0% 100%);
  --muted: hsl(40 100% 95%);
  --muted-foreground: hsl(0 0% 11%);
  --border: hsl(220 20% 88%);
  --destructive: hsl(3 81% 53%);
  --radius: 0.75rem;
  --fasi-indigo: hsl(240 100% 17%);
  --fasi-cyan: hsl(195 100% 40%);
  --fasi-dark: hsl(220 80% 9%);
  --fasi-navy: hsl(220 100% 23%);
  --fasi-yellow: hsl(54 100% 64%);
  --fasi-red: hsl(3 81% 53%);
  --gradient-hero: linear-gradient(135deg, hsl(220 80% 9%) 0%, hsl(220 100% 23%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(240 100% 17%) 0%, hsl(195 100% 40%) 100%);
  --shadow-card: 0 4px 24px -4px hsl(240 100% 17% / 0.1);
  --shadow-card-hover: 0 12px 40px -8px hsl(240 100% 17% / 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html {
    overflow-x: hidden;
  }
}

body {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

main {
  min-width: 0;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.font-vibes {
  font-family: "Great Vibes", cursive;
}

.bg-hero-gradient {
  background: var(--gradient-hero);
}

.bg-accent-gradient {
  background: var(--gradient-accent);
}

.text-fasi-cyan {
  color: var(--fasi-cyan);
}

.text-fasi-yellow {
  color: var(--fasi-yellow);
}

.text-primary-foreground {
  color: var(--primary-foreground);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.text-foreground {
  color: var(--foreground);
}

.bg-fasi-indigo {
  background: var(--fasi-indigo);
}

.bg-muted {
  background: var(--muted);
}

.bg-card {
  background: var(--card);
}

.bg-fasi-dark {
  background: var(--fasi-dark);
}

.border-border {
  border: 1px solid var(--border);
}

.shadow-fasi {
  box-shadow: var(--shadow-card);
}

.shadow-fasi-hover {
  box-shadow: var(--shadow-card-hover);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
  padding: 1rem 0;
  background: transparent;
}

.site-nav.is-scrolled {
  background: hsl(240 100% 17% / 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.site-nav__lead {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex-shrink: 1;
}

.site-nav__prefacture {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: hsl(0 0% 100% / 0.95);
  white-space: nowrap;
}

@media (max-width: 380px) {
  .site-nav__prefacture {
    font-size: 0.8125rem;
  }
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 1;
}

.site-nav__brand img {
  height: 3.75rem;
  width: auto;
  max-width: min(340px, 62vw);
  object-fit: contain;
}

.site-footer__logo {
  height: 4.5rem;
  width: auto;
  max-width: min(380px, 92vw);
  object-fit: contain;
}

.site-nav__title {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.1;
  color: var(--primary-foreground);
}

.site-nav__subtitle {
  font-size: 0.75rem;
  color: var(--fasi-cyan);
  font-weight: 500;
}

.site-nav__links {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .site-nav__links {
    display: flex;
  }
}

.site-nav__link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(0 0% 100% / 0.8);
  transition: background 0.2s, color 0.2s;
}

.site-nav__link:hover {
  color: #fff;
  background: hsl(0 0% 100% / 0.1);
}

.site-nav__link.is-active {
  background: var(--fasi-cyan);
  color: var(--primary-foreground);
}

.site-nav__toggle {
  display: flex;
  padding: 0.5rem;
  color: #fff;
  background: none;
  border: none;
  position: relative;
  flex-shrink: 0;
}

.site-nav__toggle .nav-icon-close {
  display: none;
}

.site-nav__toggle.is-open .nav-icon-menu {
  display: none;
}

.site-nav__toggle.is-open .nav-icon-close {
  display: block;
}

@media (min-width: 768px) {
  .site-nav__toggle {
    display: none;
  }
}

.site-nav__drawer {
  overflow: hidden;
  transition: max-height 0.3s, opacity 0.3s;
}

.site-nav__drawer.is-open {
  max-height: 24rem;
  opacity: 1;
}

.site-nav__drawer:not(.is-open) {
  max-height: 0;
  opacity: 0;
}

.site-nav__drawer-inner {
  padding: 0.5rem 1rem 1rem;
  background: hsl(240 100% 17% / 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-nav__drawer .site-nav__link {
  display: block;
  margin-bottom: 0.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--fasi-dark);
  color: var(--primary-foreground);
}

.site-footer a:hover {
  color: var(--fasi-cyan);
}

/* ---------- Hero (animations = framer-motion équivalent) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fr-hero-up {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fr-hero-up-sm {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fr-hero-scale {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .hero-motion-1 {
    animation: fr-hero-up 0.7s ease forwards;
  }

  .hero-motion-2 {
    opacity: 0;
    animation: fr-hero-up-sm 0.7s ease 0.3s forwards;
  }

  .hero-motion-3 {
    opacity: 0;
    animation: fr-hero-scale 0.8s ease 0.2s forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-motion-1,
  .hero-motion-2,
  .hero-motion-3 {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-section__glow1 {
  position: absolute;
  top: 5rem;
  right: 2.5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: hsl(195 100% 40% / 0.05);
  filter: blur(48px);
  pointer-events: none;
}

.hero-section__glow2 {
  position: absolute;
  bottom: 5rem;
  left: 2.5rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: hsl(240 100% 17% / 0.1);
  filter: blur(48px);
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  min-width: 0;
}

.hero-grid > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.hero-poster-wrap {
  position: relative;
  display: block;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .hero-poster-wrap {
    margin-top: 0;
  }
}

.hero-poster-wrap::before {
  content: "";
  position: absolute;
  inset: -1rem;
  background: hsl(195 100% 40% / 0.1);
  border-radius: 1rem;
  filter: blur(24px);
}

.hero-poster-carousel__viewport {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  max-width: min(28rem, 100%);
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 4 / 5;
  max-height: min(52vh, 440px);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: hsl(222 35% 8%);
}

/* Affiches 2+ : taille du cadre = ratio réel du fichier (pas de bandes + pas de zoom) */
.hero-poster-carousel__viewport.hero-poster-carousel__viewport--intrinsic {
  aspect-ratio: unset;
  width: auto;
  height: auto;
}

@media (min-width: 1024px) {
  .hero-poster-carousel__viewport {
    max-height: min(78vh, 620px);
  }
}

.hero-poster-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  pointer-events: none;
}

.hero-poster-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-poster-carousel__slide:first-child img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.hero-poster-carousel__slide:not(:first-child) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-poster-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  color: #fff;
  background: hsl(210 40% 10% / 0.45);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero-poster-carousel__btn:hover {
  background: hsl(210 40% 10% / 0.65);
}

.hero-poster-carousel__btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.hero-poster-carousel__btn:active {
  transform: translateY(-50%) scale(0.94);
}

.hero-poster-carousel__btn--prev {
  left: 0.5rem;
}

.hero-poster-carousel__btn--next {
  right: 0.5rem;
}

.hero-poster-carousel__dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 2.75rem;
  pointer-events: auto;
}

.hero-poster-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: hsl(0 0% 100% / 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.hero-poster-carousel__dot:hover {
  background: hsl(0 0% 100% / 0.75);
}

.hero-poster-carousel__dot:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.hero-poster-carousel__dot.is-active {
  background: var(--fasi-yellow);
  transform: scale(1.25);
}

.hero-poster-carousel:focus-visible {
  outline: none;
}

.hero-poster-carousel:focus-visible .hero-poster-carousel__viewport {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

@media (prefers-reduced-motion: reduce) {
  .hero-poster-carousel__slide {
    transition-duration: 0.2s;
  }
}

.badge-pill {
  display: inline-block;
  background: hsl(195 100% 40% / 0.2);
  color: var(--fasi-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 1rem;
}

.hero-title span.accent {
  color: var(--fasi-cyan);
}

.hero-lead {
  color: hsl(0 0% 100% / 0.7);
  font-size: 1.125rem;
  max-width: 28rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Bandeau sous le héros : rappel visuel */
.home-suggestion-strip {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0;
  background: linear-gradient(180deg, hsl(240 100% 99%) 0%, hsl(195 30% 97%) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-suggestion-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .home-suggestion-strip__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.home-suggestion-strip__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fasi-cyan);
  margin: 0 0 0.35rem;
}

.home-suggestion-strip__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.3;
}

.home-suggestion-strip__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.55;
  max-width: 36rem;
}

.home-suggestion-strip .btn-primary {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .home-suggestion-strip .btn-primary {
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .home-suggestion-strip .btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-cta-row {
  align-items: center;
}

@media (max-width: 639px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-outline-light {
    width: 100%;
    justify-content: center;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fasi-cyan);
  color: var(--primary-foreground);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: hsl(195 100% 36%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px hsl(195 100% 30% / 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover,
  .btn-primary:active {
    transform: none;
  }
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid hsl(0 0% 100% / 0.3);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.btn-outline-light:hover {
  background: hsl(0 0% 100% / 0.1);
}

/* ---------- Stats ---------- */
.stats-section {
  padding: 4rem 0;
  background: var(--fasi-indigo);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Wrapper étroit (.icon/.icon-lg) : éviter stretch horizontal pour le centrer sous le chiffre */
.stat-item > .icon {
  align-self: center;
  color: var(--fasi-cyan);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.stat-item > .icon svg {
  width: 2rem;
  height: 2rem;
  display: block;
}

.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0;
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(0 0% 100% / 0.6);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ---------- Cards grid ---------- */
.section-pad {
  padding: 5rem 0;
}

@media (max-width: 480px) {
  .section-pad {
    padding: 3.25rem 0;
  }
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-kicker {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fasi-cyan);
}

@media (max-width: 380px) {
  .section-kicker {
    letter-spacing: 0.1em;
  }
}

.section-title {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0.5rem 0 0;
}

.section-rule {
  width: 4rem;
  height: 0.25rem;
  background: var(--fasi-cyan);
  margin: 1rem auto 0;
  border-radius: 9999px;
}

.cards-3 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card-elevated {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-elevated:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-elevated .icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: hsl(195 100% 40% / 0.1);
  color: var(--fasi-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s, color 0.3s;
}

.card-elevated:hover .icon-box {
  background: var(--fasi-cyan);
  color: var(--primary-foreground);
}

.card-elevated h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.card-elevated p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

/* ---------- AnimatedSection (scroll reveal) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-reveal-x="-40"] {
  transform: translateX(-40px);
}

[data-reveal][data-reveal-x="-40"].is-visible {
  transform: translateX(0);
}

[data-reveal][data-reveal-x="40"] {
  transform: translateX(40px);
}

[data-reveal][data-reveal-x="40"].is-visible {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Organigramme ---------- */
.org-center {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.org-box {
  background: var(--fasi-indigo);
  color: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid hsl(195 100% 40% / 0.3);
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
}

.org-connector {
  width: 2px;
  height: 2rem;
  background: hsl(195 100% 40% / 0.3);
  margin: 0 auto;
}

.grid-2-sm {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .grid-2-sm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card-pad-sm {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
}

.card-pad-sm:hover {
  box-shadow: var(--shadow-card-hover);
}

.ministere-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  height: 100%;
  min-width: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ministere-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.grid-min-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-min-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.text-xs-muted {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.text-destructive {
  color: var(--destructive);
  font-weight: 600;
}

/* ---------- Formulaires & retours utilisateur (Contact, Suggestions, etc.) ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.label-block {
  display: block;
}

:root {
  --focus-ring: 2px solid hsl(195 100% 40%);
  --focus-ring-offset: 2px;
}

.container--narrow {
  max-width: 36rem;
}

.container--form {
  max-width: 40rem;
}

.container--mes {
  max-width: 48rem;
}

/* Marge haute pour la barre de navigation fixe (logo ~3.75rem + padding nav) */
.section-pad--compact {
  padding: 6.75rem 0 5rem;
}

@media (max-width: 480px) {
  .section-pad--compact {
    padding: 5.75rem 0 3.25rem;
  }
}

.section-head--form {
  margin-bottom: 2.25rem;
}

.section-intro {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.section-intro a {
  color: var(--fasi-cyan);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-intro a:hover {
  color: var(--fasi-indigo);
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-stack .form-field {
  margin-bottom: 0;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder {
  color: hsl(240 10% 48%);
}

.form-control:focus-visible {
  outline: none;
  border-color: var(--fasi-cyan);
  box-shadow: 0 0 0 3px hsl(195 100% 40% / 0.22);
}

textarea.form-control {
  resize: vertical;
  min-height: 7rem;
}

.form-search-wrap {
  margin-bottom: 1.25rem;
}

.form-search-wrap .form-control {
  max-width: 24rem;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.radio-group label:hover {
  background: var(--muted);
  border-color: var(--border);
}

.radio-group input {
  accent-color: var(--fasi-cyan);
}

.radio-group input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.form-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--muted);
  border: 1px solid var(--border);
}

.form-switch-row input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--fasi-cyan);
}

.card-elevated--static {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-elevated--static:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.alert-success {
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: hsl(160 45% 96%);
  border: 1px solid hsl(160 35% 82%);
  color: hsl(160 30% 22%);
  border-left: 4px solid hsl(160 42% 38%);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.alert-success__lead {
  margin: 0 0 0.5rem;
}

.alert-success__lead strong {
  font-weight: 700;
}

.alert-success__text {
  margin: 0;
  line-height: 1.55;
}

.alert-success a {
  color: hsl(160 32% 28%);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.alert-success a:hover {
  color: hsl(160 35% 18%);
}

.form-errors {
  margin: 0 0 1rem 1.15rem;
  padding: 0;
  color: var(--destructive);
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-errors li {
  margin-bottom: 0.35rem;
}

a.btn-primary {
  text-decoration: none;
  cursor: pointer;
}

button.btn-primary {
  cursor: pointer;
}

.btn-primary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.form-grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.empty-state {
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.empty-state__title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--foreground);
}

.empty-state__hint {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.empty-state__hint a {
  color: var(--fasi-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.empty-state__hint a:hover {
  color: var(--fasi-indigo);
}

.mes-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mes-suggestion-card {
  padding: 1.35rem 1.5rem;
}

.mes-suggestion-card__reply {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--muted);
}

.mes-suggestion-card__reply-label {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.mes-suggestion-card__meta {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  background: var(--gradient-hero);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: hsl(195 100% 40% / 0.05);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  text-align: center;
}

@media (max-width: 480px) {
  .cta-band {
    padding: 3.25rem 0;
  }

  .cta-band .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band .btn-row .btn-primary,
  .cta-band .btn-row .btn-outline-light {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Pages intérieures ---------- */
.page-shell {
  padding-top: 6rem;
  padding-bottom: 5rem;
  min-height: 100vh;
  background: var(--background);
}

@media (max-width: 480px) {
  .page-shell {
    padding-top: 5.25rem;
    padding-bottom: 3.5rem;
  }
}

.news-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.team-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.team-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  overflow: hidden;
  background: hsl(240 50% 30% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--fasi-cyan);
  transition: background 0.3s;
  position: relative;
}

/* Photo : remplit tout le cercle (évite un crop bizarre avec flex + overflow) ; priorité au visage en haut du cliché */
.team-avatar > .team-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.06);
  transform-origin: 50% 28%;
}

/* Bradley NGONDE : cliché avec beaucoup de fond au-dessus du visage — recentrer vers le buste/tête */
.team-avatar > .team-avatar-img--bradley-ngonde {
  object-position: center 54%;
  transform: scale(1.04);
  transform-origin: 50% 50%;
}

.team-card:hover .team-avatar {
  background: hsl(195 100% 40% / 0.2);
}

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.news-card-top {
  height: 0.5rem;
  background: var(--gradient-accent);
}

/* Vignette actualités : remplit toute la largeur du bloc (pas de bandes grises) — léger recadrage possible */
.news-card-top--thumb {
  flex-shrink: 0;
  height: clamp(7rem, 17vh, 9.25rem);
  padding: 0;
  overflow: hidden;
  background: hsl(210 25% 94%);
}

.news-card-top--thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Accueil — cartes « dernières actus », même remplissage que liste actualités */
.home-news-thumb-wrap {
  display: block;
  margin: -1rem -1rem 1rem -1rem;
  border-radius: 0.75rem 0.75rem 0 0;
  overflow: hidden;
  background: hsl(210 25% 94%);
  height: clamp(6.5rem, 15vh, 8.25rem);
}

.home-news-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Page article — même logique que les cartes : image qui remplit la largeur */
.article-hero-wrap {
  margin: 1rem 0 1.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: hsl(210 25% 94%);
  height: clamp(12rem, 32vh, 20rem);
}

.article-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Contenu article : éviter le débordement horizontal (URLs, mots longs) */
.prose {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose img {
  height: auto;
}

.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-btn:hover {
  border-color: var(--fasi-cyan);
  color: var(--fasi-cyan);
}

.filter-btn.is-active {
  background: var(--fasi-cyan);
  color: var(--primary-foreground);
  border-color: var(--fasi-cyan);
}

.exam-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.exam-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.exam-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exam-list--dynamic {
  max-width: none;
  width: 100%;
}

.exam-year-block {
  margin-bottom: 2.5rem;
}

.exam-year-title {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  color: var(--fasi-indigo);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid hsl(195 100% 40% / 0.35);
}

.exam-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.exam-file-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--fasi-cyan);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exam-file-meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--fasi-cyan);
  margin: 0;
}

.exam-file-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  line-height: 1.3;
}

.exam-file-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
  margin: 0 0 0.35rem;
  flex-grow: 1;
}

.exam-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.exam-file-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--gradient-accent);
  color: var(--primary-foreground);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exam-file-link--view {
  background: transparent;
  color: var(--fasi-indigo);
  border: 2px solid color-mix(in srgb, var(--fasi-cyan) 45%, var(--border));
  box-shadow: none;
}

.exam-file-link--view:hover {
  background: color-mix(in srgb, var(--fasi-cyan) 8%, var(--card));
  color: var(--fasi-indigo);
}

.exam-file-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  color: var(--primary-foreground);
}

.exam-file-link--soon {
  background: var(--muted);
  color: var(--muted-foreground);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.exam-load-error {
  text-align: center;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: hsl(3 81% 53% / 0.08);
  color: var(--destructive);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.exam-empty-state {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.form-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--fasi-cyan);
  box-shadow: 0 0 0 3px hsl(195 100% 40% / 0.25);
}

.form-card .field {
  margin-bottom: 1.25rem;
}

.notfound-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  text-align: center;
}

.notfound-page a {
  color: var(--fasi-indigo);
  text-decoration: underline;
}

/* ---------- Quiz / QCM ---------- */
.quiz-intro {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.quiz-intro p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0.75rem 0 0;
}

.quiz-intro code {
  font-size: 0.8125rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  background: hsl(195 100% 40% / 0.12);
  color: var(--fasi-cyan);
  font-family: ui-monospace, monospace;
}

.quiz-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .quiz-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quiz-pick-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: left;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
  width: 100%;
  font: inherit;
  color: inherit;
  display: block;
}

.quiz-pick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: hsl(195 100% 40% / 0.45);
}

.quiz-pick-card:focus-visible {
  outline: 2px solid var(--fasi-cyan);
  outline-offset: 2px;
}

.quiz-pick-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.quiz-pick-card__meta {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fasi-cyan);
}

.quiz-pick-card__title {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  line-height: 1.25;
}

.quiz-pick-card__desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.5;
}

.quiz-pick-card__cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fasi-cyan);
}

.quiz-player {
  max-width: 40rem;
  margin: 0 auto;
}

.quiz-player__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.quiz-player__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--foreground);
}

.quiz-q {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.quiz-q__num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fasi-cyan);
  margin-bottom: 0.5rem;
}

.quiz-q__text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.quiz-option:hover {
  background: hsl(195 100% 40% / 0.06);
}

.quiz-option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--fasi-cyan);
}

.quiz-option span {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--foreground);
}

.quiz-option.is-correct {
  border-color: hsl(142 76% 36%);
  background: hsl(142 76% 36% / 0.08);
}

.quiz-option.is-wrong {
  border-color: var(--destructive);
  background: hsl(3 81% 53% / 0.08);
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--fasi-cyan);
  color: var(--fasi-cyan);
}

.quiz-result {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.quiz-result__score {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--fasi-cyan);
  margin: 0 0 0.5rem;
}

.quiz-result__detail {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin: 0;
}

.quiz-hidden {
  display: none !important;
}

/* ---------- Live (style type Mentimeter, même navigateur) ---------- */
.page-live {
  padding-bottom: 4rem;
}

.live-admin-intro {
  max-width: 42rem;
  margin: 0 auto;
}

.live-admin-intro code {
  font-size: 0.8125rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: hsl(195 100% 40% / 0.12);
  color: var(--fasi-cyan);
  font-family: ui-monospace, monospace;
}

.live-admin-intro a {
  color: var(--fasi-cyan);
  font-weight: 600;
  text-decoration: underline;
}

.page-live .live-disclaimer a {
  color: var(--fasi-cyan);
  font-weight: 600;
  text-decoration: underline;
}

.live-landing {
  max-width: 52rem;
  margin: 0 auto;
}

.live-mode-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .live-mode-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.live-mode-card {
  text-align: left;
  padding: 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
}

.live-mode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: hsl(195 100% 40% / 0.4);
}

.live-mode-card:focus-visible {
  outline: 2px solid var(--fasi-cyan);
  outline-offset: 2px;
}

.live-mode-card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fasi-cyan);
  margin-bottom: 0.5rem;
}

.live-mode-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--foreground);
}

.live-mode-card__desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
  margin: 0;
}

.live-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background: hsl(195 100% 40% / 0.08);
  border: 1px solid hsl(195 100% 40% / 0.2);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.live-disclaimer strong {
  color: var(--foreground);
}

.live-disclaimer code {
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: hsl(0 0% 100% / 0.12);
  font-family: ui-monospace, monospace;
}

.live-host-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--gradient-hero);
  color: var(--primary-foreground);
  margin-bottom: 2rem;
  box-shadow: 0 12px 40px hsl(220 80% 9% / 0.25);
}

.live-code-big {
  font-family: ui-monospace, monospace;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--fasi-yellow);
}

.live-host-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.live-host-actions .btn-secondary {
  background: hsl(0 0% 100% / 0.12);
  border-color: hsl(0 0% 100% / 0.25);
  color: #fff;
}

.live-host-actions .btn-secondary:hover {
  background: hsl(0 0% 100% / 0.2);
  color: #fff;
  border-color: hsl(0 0% 100% / 0.4);
}

.live-join-url {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  word-break: break-all;
  color: hsl(0 0% 100% / 0.75);
}

.live-join-url a {
  color: var(--fasi-yellow);
  text-decoration: underline;
}

.live-host-banner--with-qr {
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.live-host-banner__main {
  flex: 1 1 16rem;
  min-width: 0;
}

.live-host-banner__qr {
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
}

.live-host-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.2rem;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow:
    0 10px 32px hsl(220 80% 9% / 0.28),
    0 0 0 1px hsl(0 0% 100% / 0.2);
}

.live-host-qr-panel__kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(215 45% 32%);
  text-align: center;
}

.live-host-qr-panel__matrix-wrap {
  padding: 0.45rem;
  border-radius: 0.55rem;
  background: #fff;
  border: 2px solid hsl(195 90% 42% / 0.35);
  box-shadow: inset 0 0 0 1px hsl(0 0% 100% / 0.9);
}

.live-host-qr-panel__matrix {
  flex: 0 0 auto;
  width: 148px;
  height: 148px;
  overflow: hidden;
  line-height: 0;
}

/* qrcodejs injecte canvas + img : n’afficher que l’image */
.live-host-qr-panel__matrix canvas,
.live-qr-host > canvas {
  display: none !important;
}

.live-host-qr-panel__matrix img,
.live-qr-host > img {
  display: block !important;
  width: 148px !important;
  height: 148px !important;
  margin: 0 auto;
  border-radius: 0.25rem;
}

.live-host-qr-panel__matrix table,
.live-qr-host > table {
  display: none !important;
}

.live-host-qr-panel__caption {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 500;
  color: hsl(215 20% 38%);
  text-align: center;
  max-width: 11.5rem;
}

/* Ancienne légende (compatibilité) */
.live-host-qr-caption {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  max-width: 11rem;
  margin-left: auto;
  margin-right: auto;
  color: hsl(0 0% 100% / 0.88);
}

.live-slide-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.live-slide-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: hsl(0 0% 100% / 0.04);
}

.live-slide-row-label {
  font-size: 0.8125rem;
  flex: 1 1 10rem;
  min-width: 0;
  text-align: left;
}

.live-slide-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.live-slide-row-actions .btn-secondary {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.live-present-qr-wrap {
  display: none;
  position: absolute;
  top: max(4.25rem, calc(env(safe-area-inset-top, 0px) + 3rem));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 2;
}

.live-present-qr-wrap--visible {
  display: block;
}

.live-present-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: hsl(0 0% 0% / 0.45);
  border: 1px solid hsl(0 0% 100% / 0.22);
  box-shadow: 0 8px 32px hsl(0 0% 0% / 0.35);
  backdrop-filter: blur(8px);
  min-width: 8.5rem;
}

.live-present-qr-panel__caption {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(0 0% 100% / 0.82);
}

.live-present-qr-panel__code-label {
  margin: 0.2rem 0 0;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(0 0% 100% / 0.65);
}

.live-present-qr-panel__code {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--fasi-cyan, #00b4d8);
  font-variant-numeric: tabular-nums;
}

.live-present-qr-panel__joined {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: hsl(0 0% 100% / 0.9);
  max-width: 11rem;
}

.live-present .live-join-info {
  display: none !important;
}

.live-present-joined {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(0 0% 100% / 0.92);
  letter-spacing: 0.02em;
}

.live-present-moderation {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: hsl(0 0% 100% / 0.08);
  border: 1px solid hsl(0 0% 100% / 0.22);
  max-height: 14rem;
  overflow-y: auto;
}

.live-present-mod-title {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: hsl(0 0% 100% / 0.95);
}

.live-present-mod-empty {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(0 0% 100% / 0.72);
}

.live-present-mod-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-top: 1px solid hsl(0 0% 100% / 0.12);
}

.live-present-mod-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.live-present-mod-text {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.9375rem;
  color: hsl(0 0% 100% / 0.92);
}

.live-present-mod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.live-host-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
}

.live-host-toolbar .btn-primary,
.live-host-toolbar .btn-secondary {
  font-size: 0.875rem;
}

.live-join-info {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px dashed var(--border);
  text-align: center;
}

.live-present .live-join-info {
  border-color: hsl(0 0% 100% / 0.35);
  background: hsl(0 0% 0% / 0.2);
}

.live-join-info__label {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.live-join-info__code {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.live-join-info__code code {
  background: transparent;
  padding: 0;
}

.live-guest-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.live-guest-poll-cta {
  width: 100%;
  justify-content: center;
  border: none;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  position: sticky;
  top: 0.5rem;
  z-index: 2;
  box-shadow: var(--shadow-card);
}

.live-present-qr-panel__qr,
.live-present-qr-wrap .live-qr-host {
  width: 120px;
  height: 120px;
  overflow: hidden;
  line-height: 0;
  background: #fff;
  border-radius: 0.35rem;
  margin: 0 auto;
}

.live-present-qr-panel__qr canvas,
.live-present-qr-wrap .live-qr-host canvas {
  display: none !important;
}

.live-present-qr-panel__qr img,
.live-present-qr-wrap .live-qr-host img {
  display: block !important;
  width: 120px !important;
  height: 120px !important;
  margin: 0 auto;
  border-radius: 0.35rem;
}

.live-present-qr-panel__qr table,
.live-present-qr-wrap .live-qr-host table {
  display: none !important;
}

.live-guest-frozen-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(45 100% 45% / 0.5);
  background: hsl(45 100% 50% / 0.12);
  color: var(--foreground);
  font-size: 0.8125rem;
  text-align: center;
}

.live-ranking-list--frozen {
  pointer-events: none;
  opacity: 0.88;
}

.live-ranking-item:focus {
  outline: 2px solid var(--fasi-cyan, #00b4d8);
  outline-offset: 2px;
}

.live-guest-announcer.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.live-participant-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

/* Dans la colonne « Résultats en direct », sous les actions (Vue présentation, etc.). */
.live-participant-panel--in-results {
  margin-top: 1.35rem;
  margin-bottom: 0;
  padding: 1.15rem 0 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-top: 1px solid var(--border);
  background: transparent;
}

.live-panel .live-participant-panel__title {
  font-size: 0.9375rem;
}

.live-participant-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  margin-bottom: 0.35rem;
}

.live-participant-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.live-participant-panel__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 999px;
  background: hsl(195 100% 40% / 0.12);
  color: hsl(195 100% 32%);
}

.live-participant-panel__hint {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.live-participant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 14rem;
  overflow-y: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: hsl(0 0% 100% / 0.4);
}

.live-participant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.live-participant-item:last-child {
  border-bottom: none;
}

.live-participant-name {
  font-weight: 600;
  color: var(--foreground);
  word-break: break-word;
}

.live-participant-id {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-family: ui-monospace, monospace;
  color: var(--muted-foreground);
  opacity: 0.85;
}

.live-participant-empty {
  padding: 0.85rem;
  font-size: 0.875rem;
  text-align: center;
  border: none;
}

.live-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .live-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.live-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.live-panel h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
}

.live-panel h4 {
  margin: 1.25rem 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}

.live-option-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.live-option-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

.live-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.live-preset-row .btn-secondary {
  font-size: 0.8125rem;
  padding: 0.45rem 0.75rem;
}

.live-host-question {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--foreground);
  line-height: 1.35;
}

.live-bar-question {
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--foreground);
}

.live-bar-row {
  margin-bottom: 1rem;
}

.live-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

.live-bar-count {
  font-weight: 600;
  color: var(--fasi-cyan);
  flex-shrink: 0;
}

.live-bar-track {
  height: 2.25rem;
  border-radius: 0.5rem;
  background: hsl(220 20% 92%);
  overflow: hidden;
}

.live-bar-fill {
  height: 100%;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, var(--fasi-cyan), hsl(195 100% 50%));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .live-bar-fill {
    transition: none;
  }
}

.live-bar-total {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.live-results-region {
  min-height: 2.5rem;
}

.live-results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.live-results-toolbar--split {
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.live-results-export {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

@media (max-width: 640px) {
  .live-results-toolbar--split {
    flex-direction: column;
    align-items: stretch;
  }

  .live-results-export {
    margin-left: 0;
    width: 100%;
  }

  .live-results-export .btn-secondary {
    flex: 1 1 auto;
    min-height: 2.75rem;
    justify-content: center;
  }
}

/* F13.1 — Console live : file + bannière sur tablette */
@media (max-width: 1023px) {
  .live-host-banner--with-qr {
    flex-direction: column;
    align-items: stretch;
  }

  .live-host-banner__qr {
    align-self: center;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .live-host-qr-panel {
    width: min(100%, 14.5rem);
  }

  .live-slide-row-actions .btn-secondary {
    min-height: 2.75rem;
    min-width: 2.5rem;
  }
}

.live-chart-toolbar {
  display: inline-flex;
  gap: 0.35rem;
}

.live-chart-toggle.is-active {
  border-color: var(--fasi-cyan);
  color: var(--fasi-cyan);
  box-shadow: 0 0 0 1px hsl(195 100% 40% / 0.35);
}

.live-pie-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-top: 0.5rem;
}

.live-pie-disk {
  width: min(14rem, 70vw);
  height: min(14rem, 70vw);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 8px 32px hsl(0 0% 0% / 0.12);
}

.live-pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  min-width: 12rem;
}

.live-pie-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.live-pie-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.live-pie-legend-label {
  flex: 1;
  min-width: 0;
}

.live-pie-legend-count {
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.live-present .live-pie-legend,
.live-present .live-pie-legend-count {
  color: hsl(0 0% 100% / 0.92);
}

.live-present .live-pie-legend-count {
  color: hsl(54 100% 85%);
}

.live-present .live-pie-disk {
  box-shadow: 0 12px 48px hsl(0 0% 0% / 0.35);
}

.live-likert-btn {
  display: inline-block;
  width: auto !important;
  min-width: 2.75rem;
  margin: 0 0.4rem 0.5rem 0 !important;
  text-align: center;
}

#live-guest-choices .live-likert-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.live-wordcloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.6rem;
  padding: 0.75rem 0;
  line-height: 1.2;
}

.live-wordcloud--compact {
  gap: 0.25rem 0.45rem;
  padding: 0.5rem 0;
}

.live-wordcloud__tag {
  display: inline-block;
  font-weight: 700;
  color: var(--fasi-cyan);
  letter-spacing: -0.02em;
}

.live-present .live-wordcloud {
  gap: 0.35rem 0.55rem;
  padding: 0.5rem 0;
  max-height: min(44vh, 20rem);
  overflow-y: auto;
}

.live-present .live-wordcloud__tag {
  color: hsl(54 100% 82%);
  font-size: clamp(0.85rem, 2.1vw, 1.35rem) !important;
}

.live-likert-summary {
  font-weight: 600;
}

.live-present {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--gradient-hero);
  color: #fff;
  padding: max(2rem, env(safe-area-inset-top, 0px)) max(1.5rem, env(safe-area-inset-right, 0px))
    max(3rem, env(safe-area-inset-bottom, 0px)) max(1.5rem, env(safe-area-inset-left, 0px));
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.live-present__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.live-present__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.85rem;
  position: relative;
  z-index: 5;
}

.live-present__nav[hidden] {
  display: none !important;
}

.live-present__nav-status {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(0 0% 100% / 0.88);
  min-width: 6rem;
  text-align: center;
}

.live-present__nav .live-present__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.live-present .live-present__btn.btn-secondary,
.live-present .btn-secondary.live-present__btn {
  background: hsl(0 0% 100% / 0.12);
  color: #fff;
  border: 1px solid hsl(0 0% 100% / 0.4);
  font-weight: 600;
}

.live-present .live-present__btn.btn-secondary:hover,
.live-present .btn-secondary.live-present__btn:hover {
  background: hsl(0 0% 100% / 0.22);
  color: #fff;
}

.live-present__question {
  flex-shrink: 0;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin: 0 auto 1.35rem;
  max-width: 52rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.live-present .live-results-region {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.5rem 0.75rem;
}

.live-present .live-bar-question {
  display: none;
}

.live-present .live-bar-row {
  margin-bottom: 0.65rem;
}

.live-present .live-bar-label {
  font-size: clamp(0.9375rem, 1.75vw, 1.125rem);
  margin-bottom: 0.25rem;
  gap: 0.5rem;
}

.live-present .live-bar-track {
  height: 2rem;
  border-radius: 0.45rem;
  background: hsl(0 0% 100% / 0.12);
}

.live-present .live-bar-fill {
  border-radius: 0.45rem;
  background: linear-gradient(90deg, var(--fasi-yellow), hsl(54 100% 75%));
}

.live-present .live-bar-count {
  font-size: 0.9rem;
  color: var(--fasi-yellow);
}

.live-present .live-bar-total {
  color: hsl(0 0% 100% / 0.7);
  text-align: center;
  font-size: 0.875rem;
  margin: 0.65rem 0 0;
}

.live-present .live-likert-axis {
  margin-bottom: 0.65rem;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
}

.live-present .live-likert-summary {
  margin: 0.5rem 0 0 !important;
  font-size: 0.875rem !important;
  color: hsl(0 0% 100% / 0.75) !important;
}

.live-present .live-open-list {
  margin-top: 0.5rem;
  max-height: min(42vh, 18rem);
  border-color: hsl(0 0% 100% / 0.2);
}

.live-present .live-open-item {
  padding: 0.55rem 0.75rem;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  border-bottom-color: hsl(0 0% 100% / 0.12);
  color: hsl(0 0% 100% / 0.92);
}

.live-present .live-qa-list {
  margin-top: 0.5rem;
  max-height: min(42vh, 18rem);
  overflow-y: auto;
}

.live-present .live-qa-item {
  padding: 0.45rem 0;
  border-bottom-color: hsl(0 0% 100% / 0.12);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.live-present .live-qa-text {
  color: hsl(0 0% 100% / 0.92);
}

.live-present .live-qa-badge {
  font-size: 0.8125rem;
  min-width: 2rem;
  padding: 0.2rem 0.4rem;
}

.live-present .live-results-empty {
  color: hsl(0 0% 100% / 0.75) !important;
  font-size: 0.9375rem !important;
}

.live-present .live-ranking-row .live-bar-count {
  font-size: 0.8125rem;
}

.live-guest-box {
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

.live-guest-field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
}

.live-guest-field-label + .live-guest-code {
  margin-top: 0;
}

#live-guest-code {
  margin-top: 0;
}

label[for="live-guest-code"].live-guest-field-label {
  margin-top: 1rem;
}

.live-guest-join-btn {
  min-height: 3rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.live-guest-code--identity {
  min-height: 3rem;
}

.live-guest-code {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1.25rem;
  text-align: center;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0.5rem;
  border: 2px solid var(--border);
  margin-bottom: 1rem;
  background: var(--card);
  color: hsl(240 100% 17%);
  -webkit-text-fill-color: hsl(240 100% 17%);
  caret-color: hsl(240 100% 17%);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.live-guest-link-required {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
}

.live-guest-join-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.live-guest-code::placeholder {
  color: var(--muted-foreground);
  letter-spacing: 0.12em;
}

.live-guest-code:focus-visible {
  outline: none;
  border-color: var(--fasi-cyan);
  box-shadow: 0 0 0 3px hsl(195 100% 40% / 0.22);
}

/* Même gabarit que le code session, sans mise en forme « code » (noms / pseudo). */
.live-guest-code.live-guest-code--identity {
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0;
}

.live-guest-code.live-guest-code--identity::placeholder {
  letter-spacing: 0;
  font-weight: 500;
}

.live-waiting {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.live-guest-sync-status {
  margin: 1.25rem auto 0;
  max-width: 28rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--muted-foreground);
  line-height: 1.45;
}

.live-guest-sync-status--warn {
  color: hsl(38 92% 32%);
  font-weight: 600;
}

.live-host-sync-status {
  font-size: 0.8125rem;
  margin: -0.5rem 0 1rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

.live-host-sync-status--warn {
  color: hsl(38 92% 36%);
  font-weight: 600;
}

.live-likert-extremes-guest {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

.live-likert-axis {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: clamp(0.875rem, 1.6vw, 1rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: inherit;
}

.live-likert-axis__min {
  text-align: left;
  max-width: 46%;
}

.live-likert-axis__max {
  text-align: right;
  max-width: 46%;
}

.live-present .live-likert-axis {
  color: hsl(0 0% 100% / 0.92);
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.live-choice-multi-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.live-choice-multi-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: 2px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}

.live-choice-multi-label input {
  margin-top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.live-choice-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  min-height: 2.875rem;
  margin-bottom: 0.75rem;
  border-radius: 0.65rem;
  border: 2px solid var(--border);
  background: var(--card);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.live-choice-btn:hover {
  border-color: var(--fasi-cyan);
  box-shadow: 0 4px 20px hsl(195 100% 40% / 0.2);
}

.live-choice-btn:active {
  transform: scale(0.98);
}

.live-guest-thanks {
  text-align: center;
}

.live-guest-thanks-msg {
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 0 1.25rem;
  color: var(--foreground);
}

.live-guest-thanks .live-bar-question {
  display: none;
}

.live-guest-thanks .live-bar-total {
  color: var(--muted-foreground);
}

/* F6 — Question ouverte (liste + modération host) */
.live-open-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  max-height: min(50vh, 22rem);
  overflow-y: auto;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius, 0.5rem);
  background: hsl(0 0% 100% / 0.03);
}

.live-open-item {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.live-open-item:last-child {
  border-bottom: none;
}

.live-open-item-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.live-host-moderation-wrap {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius, 0.5rem);
  border: 1px solid var(--border);
  background: hsl(220 14% 96% / 0.5);
}

.live-host-moderation-title {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.live-open-moderation-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.live-open-mod-row {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius, 0.5rem);
  border: 1px solid var(--border);
  background: #fff;
}

.live-open-mod-text {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.live-open-mod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* F7 — Classement (guest DnD) */
.live-ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.live-ranking-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius, 0.5rem);
  background: hsl(0 0% 100% / 0.04);
  cursor: grab;
  font-size: 0.9375rem;
  text-align: left;
}

.live-ranking-item:active {
  cursor: grabbing;
}

.live-ranking-grip {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  letter-spacing: -0.05em;
  user-select: none;
}

.live-ranking-label {
  flex: 1;
}

.live-ranking-row .live-bar-count {
  font-size: 0.75rem;
}

/* F8 — Q&R */
.live-qa-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  text-align: left;
}

.live-qa-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.live-qa-item:last-child {
  border-bottom: none;
}

.live-qa-badge {
  flex-shrink: 0;
  min-width: 2rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: hsl(195 100% 40% / 0.15);
  color: var(--fasi-cyan, hsl(195 100% 36%));
  font-weight: 700;
  font-size: 0.8125rem;
  text-align: center;
}

.live-qa-text {
  flex: 1;
  word-break: break-word;
}

.live-qa-guest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.live-qa-guest-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.live-qa-row-text {
  flex: 1;
  text-align: left;
  font-size: 0.875rem;
  word-break: break-word;
}

.live-qa-upbtn {
  flex-shrink: 0;
}

/* F9 — Quiz */
.live-quiz-countdown {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--fasi-cyan, hsl(195 100% 36%));
}

.live-choice-btn.is-disabled,
.live-choice-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.live-quiz-host-wrap {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius, 0.5rem);
  border: 1px solid var(--border);
  background: hsl(220 14% 98% / 0.8);
}

.live-quiz-host-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.live-quiz-podium {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: hsl(0 0% 0% / 0.55);
}

.live-quiz-podium__card {
  max-width: 26rem;
  width: 100%;
  padding: 1.75rem;
  border-radius: var(--radius, 0.75rem);
  background: #fff;
  box-shadow: 0 20px 50px hsl(0 0% 0% / 0.2);
}

.live-quiz-podium__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.live-quiz-podium-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
}

/* Icons inline */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

/* Phase C — slides contenu (intro, consignes, image) */
.live-content-slide {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  text-align: left;
}

.live-content-slide__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
}

.live-content-slide__title {
  font-size: clamp(1.35rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.live-content-slide__body {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  margin: 0 0 0.75rem;
  color: inherit;
  max-width: 42em;
}

.live-content-slide__body:last-child {
  margin-bottom: 0;
}

.live-content-slide__bullets {
  margin: 0.25rem 0 0;
  padding-left: 1.5rem;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.55;
  list-style-type: disc;
}

.live-content-slide__bullets li {
  margin: 0 0 0.55rem;
  padding-left: 0.15rem;
}

.live-content-slide__bullets li:last-child {
  margin-bottom: 0;
}

.live-content-slide__figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-content-slide__img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: contain;
}

.live-content-slide--split .live-content-slide__img {
  max-height: min(46vh, 24rem);
  width: auto;
  max-width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.live-content-slide:not(.live-content-slide--split) .live-content-slide__figure {
  margin-top: 1.25rem;
}

.live-content-slide:not(.live-content-slide--split) .live-content-slide__img {
  max-height: min(40vh, 20rem);
  margin: 0 auto;
}

.live-content-slide__grid {
  display: grid;
  gap: 1.5rem 2rem;
  align-items: center;
}

@media (min-width: 640px) {
  .live-content-slide--split .live-content-slide__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .live-content-slide--split.live-content-slide--img-left .live-content-slide__grid {
    direction: rtl;
  }

  .live-content-slide--split.live-content-slide--img-left .live-content-slide__grid > * {
    direction: ltr;
  }
}

.live-content-slide--present {
  color: #f8fafc;
}

.live-content-slide--present .live-content-slide__body {
  color: hsl(0 0% 100% / 0.88);
}

.live-content-slide--present .live-content-slide__bullets {
  color: hsl(0 0% 100% / 0.92);
}

.live-content-slide--present .live-content-slide__bullets li::marker {
  color: hsl(195 90% 65%);
}

.live-guest-content {
  margin-bottom: 1rem;
}

.live-guest-content-mount {
  margin-bottom: 0.75rem;
}

.live-guest-content-cta {
  text-align: center;
  font-size: 0.8125rem;
  margin: 0;
}

.live-present-content-host {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
  box-sizing: border-box;
}

@media (max-width: 639px) {
  .live-content-slide--split .live-content-slide__grid {
    grid-template-columns: 1fr;
  }
}

/* —— Toasts & dialogues site public (FasiPublicUi) —— */
.public-ui-toast-host {
  position: fixed;
  z-index: 10050;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.public-ui-toast {
  pointer-events: auto;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.public-ui-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.public-ui-toast--ok {
  background: hsl(160 45% 96%);
  border: 1px solid hsl(160 35% 82%);
  color: hsl(160 30% 22%);
}

.public-ui-toast--err {
  background: hsl(0 70% 97%);
  border: 1px solid hsl(0 55% 88%);
  color: hsl(0 45% 28%);
}

.public-ui-toast--info {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
}

.public-ui-dialog {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.public-ui-dialog.quiz-hidden {
  display: none;
}

.public-ui-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.public-ui-dialog__card {
  position: relative;
  width: min(28rem, 100%);
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.public-ui-dialog__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.public-ui-dialog__body {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.public-ui-dialog__body p {
  margin: 0 0 0.5rem;
}

.public-ui-dialog__body p:last-child {
  margin-bottom: 0;
}

.public-ui-dialog__actions {
  display: flex;
  justify-content: flex-end;
}

body.public-ui-dialog-open {
  overflow: hidden;
}

.form-feedback {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.5;
  background: hsl(0 70% 97%);
  border: 1px solid hsl(0 55% 88%);
  color: hsl(0 45% 28%);
}

.live-guest-join-error {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
  background: hsl(0 70% 97%);
  border: 1px solid hsl(0 55% 88%);
  color: hsl(0 45% 28%);
}
