﻿/* ============================================================================
 * Hero A propos — copy | mosaique L | cards parcours + planning
 * Conteneur : .vitrine-shell + .vitrine-page__inner (= navbar)
 * ============================================================================ */

/* Bat vitrine-layout (padding-bottom: --vitrine-section-y) sans toucher au global */
main > section.apropos-hero {
  --ap-bg: #090f1d;
  --ap-cyan: #20d2ea;
  --ap-text: #f8fafc;
  --ap-muted: #c5ced9;
  --ap-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ap-radius: 1.35rem;
  --ap-gap-media: 0.65rem;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--ap-bg);
  padding-top: 0.75rem !important;
  padding-bottom: clamp(2.75rem, 5.5vw, 4.5rem) !important;
}

@media (min-width: 640px) {
  main > section.apropos-hero {
    padding-top: 1rem !important;
    /* RÃ©affirme le bas : vitrine-layout remet --vitrine-section-y dÃ¨s sm */
    padding-bottom: clamp(2.75rem, 5.5vw, 4.5rem) !important;
  }
}

.apropos-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 36% at 82% 38%, rgba(36, 90, 180, 0.11) 0%, transparent 70%),
    radial-gradient(38% 32% at 22% 78%, rgba(40, 120, 190, 0.07) 0%, transparent 72%),
    linear-gradient(180deg, #070c16 0%, #0a1220 52%, #090f1d 100%);
}

/* Variation lumineuse discrÃ¨te derriÃ¨re les panneaux */
.apropos-hero__bg::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 28%;
  background: radial-gradient(
    55% 70% at 50% 80%,
    rgba(56, 110, 180, 0.1) 0%,
    transparent 72%
  );
  pointer-events: none;
}

.apropos-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

/* â€”â€” RangÃ©e haute : copy | mosaÃ¯que â€”â€” */
.apropos-hero__top {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .apropos-hero__top {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: clamp(1.75rem, 3vw, 3.25rem);
  }
}

.apropos-hero__copy {
  text-align: left;
  max-width: 36rem;
}

/* SpÃ©cificitÃ© + !important : bat typography.css chargÃ© aprÃ¨s (main h1 â†’ 1.08) */
main h1.apropos-hero__title {
  margin: 0;
  color: var(--ap-text);
  font-family: var(--font-title);
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05 !important;
  text-wrap: balance;
}

.apropos-hero__lead {
  margin: 1rem 0 0;
  max-width: 33rem;
  color: var(--ap-muted);
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.65;
}

.apropos-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 0.9rem;
  margin-top: 1.35rem;
}

/* Couleurs uniquement â€” tailles = .vitrine-cta partagÃ© */
.apropos-hero__cta--primary {
  background: #fff;
  color: #0b1220;
  border: 1px solid transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 8px 22px rgba(0, 0, 0, 0.28);
}

.apropos-hero__cta--primary:hover {
  background: #f5f8fc;
}

.apropos-hero__cta--ghost {
  background: rgba(8, 14, 26, 0.35);
  color: #fff;
  border: 1px solid rgba(200, 220, 255, 0.42);
}

.apropos-hero__cta--ghost:hover {
  background: rgba(14, 22, 38, 0.7);
  border-color: rgba(255, 255, 255, 0.7);
}

.apropos-hero__cta--primary:focus-visible,
.apropos-hero__cta--ghost:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--ap-bg),
    0 0 0 4px var(--ap-cyan);
}

.apropos-hero__cta svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  transition: transform 0.2s var(--ap-ease);
}

.apropos-hero__cta--primary:hover svg {
  transform: translateX(2px);
}

/* â€”â€” MosaÃ¯que : vidÃ©o dÃ©coupÃ©e + inset (gÃ©omÃ©trie 1000Ã—720) â€”â€” */
.apropos-hero__mosaic {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  justify-self: stretch;
  aspect-ratio: 1000 / 720;
  background: transparent;
}

.apropos-hero__clip-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.apropos-hero__main-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  /* Fond alignÃ© sur le MP4 (Ã©vite bande noire avec object-fit: contain) */
  background: #07090f;
  -webkit-clip-path: url("#aproposHeroMainClip");
  clip-path: url("#aproposHeroMainClip");
  pointer-events: none;
}

.apropos-hero__video,
.apropos-hero__video-still {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  /* cover + lÃ©ger zoom : le MP4 a des marges sombres internes ; la boule doit remplir le L */
  object-fit: cover;
  object-position: 52% 44%;
  transform: scale(1.24);
  transform-origin: 52% 42%;
  border: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

@media (prefers-reduced-motion: reduce) {
  .apropos-hero__video,
  .apropos-hero__video-still {
    transform: scale(1.18);
  }
}

.apropos-hero__video[hidden],
.apropos-hero__video-still[hidden] {
  display: none !important;
}

.apropos-hero__inset {
  --badge-glass-top: rgba(210, 225, 245, 0.16);
  --badge-glass-edge: rgba(120, 160, 210, 0.22);
  position: absolute;
  left: 0;
  top: calc(500 / 720 * 100%);
  z-index: 2;
  width: calc(320 / 1000 * 100%);
  height: calc(220 / 720 * 100%);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 6.25% / 9.0909%; /* rx=20/320 ; ry=20/220 */
  border: 1px solid transparent;
  border-top-color: rgba(230, 240, 255, 0.28);
  border-right-color: rgba(110, 155, 210, 0.2);
  border-bottom-color: rgba(40, 70, 120, 0.4);
  border-left-color: rgba(150, 185, 225, 0.2);
  background:
    linear-gradient(155deg, rgba(58, 84, 122, 0.62) 0%, rgba(20, 34, 58, 0.82) 42%, rgba(8, 14, 26, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 var(--badge-glass-top),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(32, 210, 234, 0.08),
    0 0 0 1px rgba(32, 210, 234, 0.1);
  pointer-events: none;
  padding: 0.45rem 0.55rem;
  animation: apropos-inset-in 0.7s var(--ap-ease) both;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .apropos-hero__inset {
    background:
      linear-gradient(155deg, rgba(52, 78, 118, 0.42) 0%, rgba(16, 28, 48, 0.62) 48%, rgba(8, 14, 26, 0.78) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    backdrop-filter: blur(14px) saturate(1.25);
  }
}

/* Reflet haut discret â€” calque sÃ©parÃ©, hors du texte */
.apropos-hero__inset::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(180, 210, 255, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.apropos-hero__inset::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 42%;
  background: radial-gradient(60% 80% at 50% 100%, rgba(32, 210, 234, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@keyframes apropos-inset-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apropos-hero__inset {
    animation: none;
  }
}

/* â€”â€” Badge Rating (Untitled UI / lauriers) â€”â€” */
.apropos-hero-badge__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.apropos-hero-badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 100%;
  height: 100%;
  margin: 0;
  color: rgba(236, 242, 250, 0.92);
  text-decoration: none;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

.apropos-hero-badge--link {
  pointer-events: auto;
  cursor: pointer;
}

.apropos-hero-badge--link:focus-visible {
  outline: 2px solid rgba(32, 210, 234, 0.85);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

.apropos-hero__inset:has(.apropos-hero-badge--link) {
  pointer-events: auto;
}

.apropos-hero-badge__wreath {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  align-self: stretch;
  color: #c9d4e4;
  margin-inline: -2px;
  filter:
    drop-shadow(0 0 5px rgba(170, 200, 240, 0.22))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.12));
}

.apropos-hero-badge__wreath--mirror {
  transform: scaleX(-1);
}

.apropos-hero-badge__wreath-svg {
  display: block;
  width: clamp(1.7rem, 24%, 2.35rem);
  height: auto;
  max-height: 92%;
  opacity: 0.92;
}

/* DÃ©gradÃ© argentÃ© : dÃ©fini dans _AproposHeroBadge (id aproposBadgeWreathGrad) */

.apropos-hero-badge__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 0;
  padding-inline: 0.2rem;
  text-align: center;
}

.apropos-hero-badge__stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  color: #e0c778;
  margin-bottom: 0.05rem;
  filter: drop-shadow(0 0 4px rgba(224, 199, 120, 0.35));
}

.apropos-hero-badge__star {
  display: inline-flex;
  line-height: 0;
}

.apropos-hero-badge__star svg {
  width: 0.78rem;
  height: 0.78rem;
}

.apropos-hero-badge__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}

.apropos-hero-badge__title {
  font-family: inherit;
  font-size: clamp(0.68rem, 1.12vw, 0.84rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #f8fafc;
  text-shadow: 0 1px 12px rgba(80, 140, 220, 0.22);
  max-width: 9.8em;
}

.apropos-hero-badge__title::after {
  content: "";
  display: block;
  width: 1.65rem;
  height: 1px;
  margin: 0.32rem auto 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(32, 210, 234, 0.15) 20%,
    rgba(210, 225, 245, 0.7) 50%,
    rgba(32, 210, 234, 0.15) 80%,
    transparent 100%
  );
  box-shadow: 0 0 6px rgba(32, 210, 234, 0.25);
}

.apropos-hero-badge__subtitle {
  font-family: inherit;
  font-size: clamp(0.56rem, 0.88vw, 0.7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(186, 200, 218, 0.9);
  max-width: 12em;
}

/* —— Cards Hero : parcours + planning —— */
.apropos-hero__panels {
  --ap-card-pad: 1.55rem;
  --ap-card-gap: 1.35rem;
  --ap-card-radius: 1.3rem;
  --ap-card-line: rgba(186, 208, 236, 0.2);
  --ap-card-ink: #c2cedc;
  --ap-card-accent: #5b8fea;
  display: grid;
  gap: 1.2rem;
  width: 100%;
  align-items: stretch;
}

@media (min-width: 1100px) {
  .apropos-hero__panels {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.3rem;
  }
}

.apropos-hero__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: var(--ap-card-gap);
  align-items: stretch;
  min-height: 20.75rem;
  height: auto;
  padding: var(--ap-card-pad);
  border-radius: var(--ap-card-radius);
  border: 1px solid var(--ap-card-line);
  background:
    radial-gradient(95% 80% at 100% 8%, rgba(72, 128, 210, 0.16) 0%, transparent 48%),
    radial-gradient(70% 55% at 0% 100%, rgba(28, 55, 100, 0.28) 0%, transparent 58%),
    linear-gradient(
      125deg,
      #09111e 0%,
      #0c1526 38%,
      #101b30 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(230, 240, 255, 0.1),
    inset 0 0 0 1px rgba(120, 150, 190, 0.04),
    0 22px 48px rgba(1, 6, 16, 0.34);
  overflow: hidden;
  cursor: default;
  transition:
    border-color 0.25s var(--ap-ease),
    box-shadow 0.25s var(--ap-ease),
    transform 0.25s var(--ap-ease);
}

/* Reflet supérieur */
.apropos-hero__panel::before {
  content: "";
  display: block;
  position: absolute;
  left: 6%;
  width: 56%;
  top: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(220, 235, 255, 0.2) 16%,
    rgba(255, 255, 255, 0.5) 48%,
    rgba(190, 215, 245, 0.2) 84%,
    transparent 100%
  );
}

/* Fondus de transition texte → scène visuelle */
.apropos-hero__panel::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 34%,
    rgba(8, 16, 30, 0.18) 42%,
    rgba(10, 20, 38, 0.08) 58%,
    transparent 100%
  );
}

@media (hover: hover) and (pointer: fine) {
  .apropos-hero__panel:hover {
    border-color: rgba(205, 222, 245, 0.36);
    box-shadow:
      inset 0 1px 0 rgba(240, 246, 255, 0.12),
      inset 0 0 0 1px rgba(140, 175, 220, 0.06),
      0 26px 52px rgba(1, 6, 16, 0.4);
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .apropos-hero__panel {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .apropos-hero__panel:hover {
    transform: none;
  }
}

.apropos-hero__panel-body {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: start;
  gap: 1.15rem;
  padding-top: 0.15rem;
  padding-right: 0.15rem;
}

.apropos-hero__panel-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  color: #c5dbf7;
  border-radius: 0.78rem;
  background:
    linear-gradient(160deg, rgba(70, 120, 200, 0.22) 0%, rgba(28, 48, 85, 0.35) 100%);
  border: 1px solid rgba(150, 185, 235, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(220, 235, 255, 0.16),
    0 8px 20px rgba(20, 50, 100, 0.22),
    0 0 0 1px rgba(60, 100, 170, 0.08);
}

.apropos-hero__panel-mark svg {
  display: block;
  width: 1.28rem;
  height: 1.28rem;
}

@media (hover: hover) and (pointer: fine) {
  .apropos-hero__panel:hover .apropos-hero__panel-mark {
    border-color: rgba(175, 205, 245, 0.45);
    color: #dceafc;
    box-shadow:
      inset 0 1px 0 rgba(230, 242, 255, 0.2),
      0 10px 24px rgba(30, 70, 140, 0.28),
      0 0 18px rgba(80, 140, 230, 0.12);
  }
}

/*
 * Classe *__lead : échappe typography.css « main p → --fs-body !important ».
 * Taille proche des leads Hero (~18–20 px).
 */
main section.apropos-hero p.apropos-hero__lead {
  margin: 0;
  max-width: var(--ap-hero-lead-measure, 29ch);
  color: var(--ap-card-ink);
  font-family: var(--font-body) !important;
  font-size: var(--ap-hero-lead-size, clamp(1.125rem, 1.12vw, 1.2rem)) !important;
  font-weight: 400 !important;
  line-height: 1.64 !important;
  letter-spacing: 0.004em;
  text-align: left;
  text-wrap: pretty;
}

main section.apropos-hero p.apropos-hero__lead strong {
  color: #f5f8fc;
  font-weight: 600 !important;
}

.apropos-hero__parcours,
.apropos-hero__planning-host {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 15.75rem;
  height: 100%;
  align-self: stretch;
}

.apropos-hero__planning-host {
  display: flex;
  padding: 0.1rem 0 0;
}

.apropos-hero__planning-host > .ap-plan {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

/* Parcours — scène visuelle immersible */
.apropos-hero__parcours {
  isolation: isolate;
  min-height: 15.75rem;
  border-radius: 1rem;
  padding: 0.35rem;
  background:
    radial-gradient(65% 55% at 72% 28%, rgba(70, 125, 210, 0.14) 0%, transparent 68%),
    radial-gradient(50% 45% at 20% 80%, rgba(30, 60, 110, 0.12) 0%, transparent 70%),
    linear-gradient(165deg, rgba(8, 14, 26, 0.72) 0%, rgba(11, 18, 32, 0.45) 100%);
  box-shadow:
    inset 0 1px 0 rgba(200, 220, 250, 0.07),
    inset 0 0 0 1px rgba(140, 170, 210, 0.12);
}

.apropos-hero__parcours-geo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.apropos-hero__parcours-link {
  fill: none;
  stroke: rgba(140, 175, 220, 0.42);
  stroke-width: 1.4;
  stroke-dasharray: 1.5 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.apropos-hero__parcours-link--trunk {
  stroke: rgba(150, 190, 235, 0.55);
  stroke-width: 1.55;
  stroke-dasharray: 2 4.5;
}

.apropos-hero__parcours-pulse {
  fill: var(--ap-card-accent);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(91, 143, 234, 0.55));
}

.apropos-hero__parcours-pulse.is-on {
  opacity: 0.95;
}

.apropos-hero__parcours-node {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 10.6rem;
  padding: 0.4rem 0.58rem 0.4rem 0.4rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(175, 200, 232, 0.28);
  background:
    linear-gradient(155deg, rgba(28, 42, 66, 0.94) 0%, rgba(14, 22, 38, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(230, 240, 255, 0.1),
    0 10px 22px rgba(2, 8, 18, 0.28);
  color: #e8eef6;
  pointer-events: none;
  user-select: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.apropos-hero__parcours-node--med {
  top: 5%;
  left: 4%;
}

.apropos-hero__parcours-node--rech {
  top: 10%;
  right: 4%;
  left: auto;
}

.apropos-hero__parcours-node--sys {
  top: 40%;
  left: 4%;
}

.apropos-hero__parcours-node--dest {
  border-color: rgba(110, 160, 240, 0.58);
  background:
    linear-gradient(155deg, rgba(28, 52, 92, 0.98) 0%, rgba(16, 30, 56, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(180, 215, 255, 0.14),
    0 12px 26px rgba(12, 40, 90, 0.32),
    0 0 0 1px rgba(90, 140, 220, 0.12);
  right: 5%;
  bottom: 7%;
  left: auto;
  top: auto;
}

.apropos-hero__parcours-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.42rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(180, 205, 235, 0.14);
  color: rgba(186, 210, 238, 0.96);
}

.apropos-hero__parcours-node--dest .apropos-hero__parcours-ico {
  background: rgba(90, 145, 235, 0.14);
  box-shadow: inset 0 0 0 1px rgba(140, 185, 245, 0.28);
  color: rgba(170, 210, 255, 1);
}

.apropos-hero__parcours-ico svg {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
}

.apropos-hero__parcours-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #eaf0f8;
}

/* Planning React */
.ap-plan {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  height: 100%;
  min-width: 0;
}

.ap-plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-shrink: 0;
  padding: 0.05rem 0.1rem 0.15rem;
}

.ap-plan__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: #e7eef8;
}

.ap-plan__brand-ico {
  width: 1rem;
  height: 1rem;
  color: #9ec0ef;
  flex: 0 0 auto;
}

.ap-plan__brand-ico svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ap-plan__brand-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-plan__toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem;
  border-radius: 999px;
  background: rgba(6, 12, 22, 0.85);
  border: 1px solid rgba(165, 188, 220, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(220, 235, 255, 0.07),
    0 4px 12px rgba(2, 8, 18, 0.18);
  flex: 0 0 auto;
}

.ap-plan__toggle-btn {
  appearance: none;
  margin: 0;
  border: 0;
  background: transparent;
  color: #97a6ba;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.42rem 0.74rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.18s var(--ap-ease),
    color 0.18s var(--ap-ease),
    box-shadow 0.18s var(--ap-ease);
}

.ap-plan__toggle-btn.is-active,
.ap-plan__toggle-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, #6498ec 0%, #4579d0 100%);
  color: #f8fbff;
  font-weight: 600;
  box-shadow:
    0 4px 12px rgba(45, 100, 185, 0.32),
    inset 0 1px 0 rgba(230, 240, 255, 0.22);
}

.ap-plan__toggle-btn:focus-visible {
  outline: 2px solid rgba(91, 143, 234, 0.75);
  outline-offset: 2px;
}

/* Grille : gouttière horaires + colonnes jours (en-tête séparé du corps) */
.ap-plan__shell {
  --ap-plan-gutter: 2.55rem;
  display: grid;
  grid-template-columns: var(--ap-plan-gutter) minmax(0, 1fr);
  grid-template-rows: auto minmax(13.125rem, 1fr);
  column-gap: 0.25rem;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  border: 1px solid rgba(165, 188, 220, 0.2);
  border-radius: 0.95rem;
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(55, 105, 185, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, rgba(13, 21, 36, 0.98) 0%, rgba(8, 14, 26, 0.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(220, 235, 255, 0.08),
    0 12px 28px rgba(2, 8, 18, 0.24);
  overflow: hidden;
}

.ap-plan__gutter-cap {
  grid-column: 1;
  grid-row: 1;
  border-bottom: 1px solid rgba(150, 170, 200, 0.14);
  background: linear-gradient(180deg, #121c30 0%, #0e1728 100%);
  border-radius: 0.85rem 0 0 0;
}

.ap-plan__dayheads {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(var(--ap-plan-cols, 5), minmax(0, 1fr));
  border-bottom: 1px solid rgba(150, 170, 200, 0.14);
  background: linear-gradient(180deg, #121c30 0%, #0e1728 100%);
  border-radius: 0 0.85rem 0 0;
  min-width: 0;
}

.ap-plan__dayhead {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #aebccd;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.48rem 0.15rem;
  cursor: pointer;
  border-right: 1px solid rgba(150, 170, 200, 0.12);
  transition: color 0.15s var(--ap-ease), background 0.15s var(--ap-ease);
}

.ap-plan__dayhead:last-child {
  border-right: 0;
}

.ap-plan__dayhead:hover {
  color: #e2eaf4;
  background: rgba(90, 140, 220, 0.08);
}

.ap-plan__dayhead.is-selected,
.ap-plan__dayhead[aria-pressed="true"] {
  color: #f4f8fc;
  background: rgba(75, 130, 220, 0.16);
  box-shadow: inset 0 -2px 0 var(--ap-card-accent);
}

.ap-plan__dayhead:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.65);
  outline-offset: -2px;
  z-index: 1;
}

.ap-plan__hours {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  align-self: stretch;
  min-height: 13.125rem;
  height: 100%;
}

.ap-plan__hour {
  position: absolute;
  left: 0.15rem;
  right: 0.1rem;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1;
  color: #8796a8;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.ap-plan__body {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--ap-plan-cols, 5), minmax(0, 1fr));
  align-self: stretch;
  min-height: 13.125rem;
  height: 100%;
  min-width: 0;
  overflow: visible;
}

.ap-plan__lane {
  position: relative;
  min-width: 0;
  height: 100%;
  border-right: 1px solid rgba(150, 170, 200, 0.1);
}

.ap-plan__lane:last-child {
  border-right: 0;
}

.ap-plan__rules {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ap-plan__rule {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(150, 170, 200, 0.055);
}

.ap-plan__body,
.ap-plan__hours {
  min-height: 13.125rem; /* 210 px */
}

/* Boutons d’événements : styles locaux explicites (contre font: inherit global) */
.ap-plan button.ap-plan__event {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  left: 0.16rem;
  right: 0.16rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  padding: 0.22rem 0.4rem 0.22rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.48rem;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  font-family: var(--font-body) !important;
  font-size: var(--ap-plan-font, .72rem) !important;
  font-weight: 600 !important;
  font-feature-settings: normal;
  font-variation-settings: normal;
  letter-spacing: 0.01em;
  line-height: 1.2 !important;
  color: #eef3f9;
  background: #355fad;
  box-shadow:
    inset 2.5px 0 0 rgba(175, 210, 255, 0.58),
    inset 0 1px 0 rgba(230, 240, 255, 0.1);
  min-height: 1.7rem;
  max-width: none;
  width: auto;
  height: auto;
  transition:
    border-color 0.15s var(--ap-ease),
    filter 0.15s var(--ap-ease),
    box-shadow 0.15s var(--ap-ease);
}

.ap-plan button.ap-plan__event--accent {
  background: linear-gradient(180deg, #4574c8 0%, #355fae 100%);
  border-color: rgba(140, 180, 235, 0.2);
  color: #eef3f9;
  box-shadow:
    inset 2.5px 0 0 rgba(180, 215, 255, 0.58),
    inset 0 1px 0 rgba(230, 240, 255, 0.1);
}

.ap-plan button.ap-plan__event--mute {
  background: linear-gradient(180deg, #1c263c 0%, #151d2e 100%);
  border-color: rgba(145, 165, 195, 0.16);
  color: #dce4ef;
  box-shadow:
    inset 2.5px 0 0 rgba(135, 170, 215, 0.45),
    inset 0 1px 0 rgba(210, 225, 245, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  .ap-plan button.ap-plan__event:hover {
    filter: brightness(1.07);
    z-index: 2;
  }
}

.ap-plan button.ap-plan__event.is-open,
.ap-plan button.ap-plan__event:focus-visible {
  border-color: rgba(191, 219, 254, 0.7);
  filter: brightness(1.08);
  outline: 2px solid rgba(91, 143, 234, 0.6);
  outline-offset: 1px;
  z-index: 3;
  box-shadow:
    inset 2.5px 0 0 rgba(190, 220, 255, 0.7),
    0 0 0 1px rgba(120, 170, 240, 0.2);
}

.ap-plan button.ap-plan__event .ap-plan__event-title {
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
  font-family: var(--font-body) !important;
  font-size: var(--ap-plan-font, .72rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: none;
  height: auto;
}

.ap-plan__detail-slot {
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  overflow: visible;
}

.ap-plan__detail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  min-height: 1.4rem;
  padding: 0.25rem 0.15rem 0.05rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.35;
  color: #b6c2d2;
  border-radius: 0.45rem;
  transition: background 0.18s var(--ap-ease);
}

.ap-plan__detail-title {
  color: #f4f8fc;
  font-weight: 600;
}

.ap-plan__detail-meta {
  color: #8fa0b4;
}

.ap-plan__detail--placeholder {
  visibility: visible;
  color: #6f8094;
  font-style: normal;
  letter-spacing: 0.01em;
}

/* Entrée Hero */
@media (prefers-reduced-motion: no-preference) {
  .apropos-hero__copy {
    animation: apropos-hero-enter 0.48s var(--ap-ease) both;
  }

  .apropos-hero__mosaic {
    animation: apropos-hero-enter 0.52s var(--ap-ease) 0.06s both;
  }

  .apropos-hero__panel:nth-child(1) {
    animation: apropos-hero-enter 0.48s var(--ap-ease) 0.16s both;
  }

  .apropos-hero__panel:nth-child(2) {
    animation: apropos-hero-enter 0.48s var(--ap-ease) 0.22s both;
  }
}

@keyframes apropos-hero-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .apropos-hero__copy,
  .apropos-hero__mosaic,
  .apropos-hero__panel {
    animation: none !important;
  }

  .apropos-hero__parcours-pulse {
    display: none;
  }
}

@media (max-width: 1099px) {
  .apropos-hero__panel {
    min-height: 0;
  }

  .apropos-hero__parcours,
  .apropos-hero__planning-host {
    min-height: 15.5rem;
  }
}

@media (max-width: 899px) {
  .apropos-hero__panels {
    --ap-card-pad: 1.35rem;
    --ap-card-gap: 1.1rem;
  }

  .apropos-hero__panel {
    min-height: 0;
  }

  .apropos-hero__parcours-label {
    font-size: 0.68rem;
  }
}

@media (max-width: 639px) {
  .apropos-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .apropos-hero__cta {
    width: 100%;
    justify-content: center;
  }

  .apropos-hero__mosaic {
    aspect-ratio: auto;
    display: grid;
    gap: 0.75rem;
  }

  .apropos-hero__main-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 1.15rem;
    -webkit-clip-path: none;
    clip-path: none;
  }

  .apropos-hero__inset {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 7.5rem;
    aspect-ratio: 16 / 11;
    border-radius: 1.15rem;
    padding: 0.75rem 1rem;
  }

  .apropos-hero__video,
  .apropos-hero__video-still {
    object-fit: cover;
    object-position: 50% 42%;
    transform: scale(1.12);
    transform-origin: 50% 40%;
  }

  .apropos-hero-badge__wreath-svg {
    width: clamp(2.15rem, 13vw, 2.65rem);
  }

  .apropos-hero-badge__title {
    font-size: 0.95rem;
    max-width: none;
  }

  .apropos-hero-badge__subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    max-width: none;
  }

  .apropos-hero__panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(14.5rem, auto);
    padding: 1.25rem;
    gap: 1.15rem;
    align-items: stretch;
  }

  .apropos-hero__panel::after {
    display: none;
  }

  .apropos-hero__panel-body {
    gap: 1rem;
    padding-right: 0;
  }

  .apropos-hero__panel-body p {
    max-width: none;
    font-size: 1.125rem;
  }

  .apropos-hero__parcours {
    min-height: 14.5rem;
  }

  .apropos-hero__parcours-node {
    max-width: 9.5rem;
  }

  .apropos-hero__parcours-node--dest {
    bottom: 6%;
  }

  .apropos-hero__planning-host {
    min-height: 16.5rem;
  }

  .ap-plan__shell {
    --ap-plan-gutter: 2.15rem;
  }

  .ap-plan__body,
  .ap-plan__hours {
    min-height: 13.125rem;
  }
}

@media (max-width: 1023px) {
  .apropos-hero__copy {
    max-width: 40rem;
  }
}


/* Proportions grand écran : cadre et rôles typographiques fluides. */

@media (min-width: 1600px) {
 .apropos-hero { --ap-hero-lead-size: var(--type-lead-wide); --ap-hero-lead-measure: 55ch; --ap-plan-font: var(--type-ui-small-wide); }
 .apropos-hero__copy { max-width: 72rem; }
 .apropos-hero__lead { max-width: 55ch; }
 .apropos-hero__top, .apropos-hero__panels { gap: var(--vitrine-gap); }
 .apropos-hero__panel { padding: clamp(1.5rem, calc(.5rem + 1vw), 3rem); }
 .ap-plan { font-size: var(--type-ui-wide); }
 .ap-plan__detail { font-size: var(--fs-small); }
 .apropos-hero-badge__title { font-size: clamp(.84rem, calc(.54rem + .3vw), 1.25rem); }
 .apropos-hero-badge__subtitle { font-size: var(--type-ui-small-wide); }
 .ap-plan :is(.ap-plan__brand-label, .ap-plan__toggle-btn, .ap-plan__dayhead, .ap-plan__dayhead-text) { font-size: var(--type-ui-small-wide); }
 .ap-plan__hour, .apropos-hero__parcours-label { font-size: var(--type-ui-small-wide); }
 .ap-plan__shell { --ap-plan-gutter: 3.5em; }
 .ap-plan__body, .ap-plan__hours { min-height: clamp(13.125rem, calc(5.125rem + 8vw), 24rem); }
}
