/* =========================================================
   PAGE « À PROPOS » — HOPES FORMATION

   Construite sur les variables du thème (--primary, --card-bg,
   --heading-color…) : elle suit donc automatiquement le mode
   clair et le mode sombre, sans règles dupliquées.

   Écrite en mobile d'abord : le socle vaut à partir de 320px,
   les media queries n'élargissent qu'ensuite.
========================================================= */

.about-page {
  background: var(--body-bg);
  color: var(--text);
}

.ap-container {
  width: min(100% - 28px, var(--container-width));
  margin-inline: auto;
}

/* ---------------------------------------------------------
   En-tête de page
--------------------------------------------------------- */
.ap-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 44px;
  background:
    radial-gradient(circle at 85% -10%, rgba(112, 197, 0, .16), transparent 55%),
    var(--section-bg);
  border-bottom: 1px solid var(--border);
}

.ap-hero-glow {
  position: absolute;
  z-index: 0;
  top: -140px;
  right: -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 197, 0, .22), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

.ap-hero .ap-container {
  position: relative;
  z-index: 1;
}

.ap-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: var(--text-light);
  /* Le fil d'Ariane peut glisser sans afficher de barre parasite. */
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.ap-breadcrumb::-webkit-scrollbar {
  height: 0;
}

.ap-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  transition: color .25s ease;
}

.ap-breadcrumb a:hover {
  color: var(--primary-dark);
}

.ap-breadcrumb i {
  font-size: 9px;
  opacity: .7;
}

.ap-breadcrumb span[aria-current] {
  color: var(--heading-color);
  font-weight: 700;
}

.ap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid rgba(112, 197, 0, .3);
  border-radius: 999px;
  background: rgba(112, 197, 0, .1);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

body.dark-mode .ap-kicker {
  color: var(--primary);
}

.ap-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(1.95rem, 8vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--heading-color);
}

.ap-hero h1 span {
  color: var(--primary);
}

.ap-tagline {
  margin: 12px 0 0;
  font-size: clamp(.98rem, 3.6vw, 1.3rem);
  font-weight: 700;
  color: var(--primary-dark);
}

body.dark-mode .ap-tagline {
  color: var(--primary);
}

.ap-intro {
  margin-top: 24px;
  max-width: 74ch;
}

.ap-intro p {
  margin: 0 0 14px;
  font-size: clamp(.94rem, 3.1vw, 1.05rem);
  line-height: 1.68;
  color: var(--text);
}

.ap-intro-strong {
  padding-left: 15px;
  border-left: 3px solid var(--primary);
  font-weight: 650;
  color: var(--heading-color) !important;
}

/* ---------------------------------------------------------
   Sections
--------------------------------------------------------- */
.ap-section {
  padding: 46px 0;
}

.ap-section--alt {
  background: var(--section-bg);
}

.ap-section-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

body.dark-mode .ap-section-kicker {
  color: var(--primary);
}

.ap-section h2 {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--heading-color);
}

.ap-section-head {
  max-width: 68ch;
  margin-bottom: 28px;
}

.ap-section-head p {
  margin: 14px 0 0;
  font-size: clamp(.93rem, 3vw, 1.02rem);
  line-height: 1.65;
  color: var(--text-light);
}

.ap-split-body p {
  margin: 0 0 14px;
  font-size: clamp(.93rem, 3vw, 1.02rem);
  line-height: 1.68;
  color: var(--text);
}

.ap-split-body p:last-child {
  margin-bottom: 0;
}

.ap-split-head {
  margin-bottom: 20px;
}

.ap-highlight-line {
  margin-top: 18px !important;
  padding: 15px 17px;
  border-radius: 15px;
  border: 1px solid rgba(112, 197, 0, .24);
  background: rgba(112, 197, 0, .07);
  color: var(--heading-color) !important;
}

.ap-note {
  max-width: 74ch;
  margin: 24px 0 0;
  font-size: clamp(.9rem, 2.9vw, 1rem);
  line-height: 1.65;
  color: var(--text-light);
}

.ap-note--center {
  margin-inline: auto;
  text-align: center;
}

/* ---------------------------------------------------------
   Domaines de formation
--------------------------------------------------------- */
.ap-domain-grid,
.ap-values-grid,
.ap-certif-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.ap-domain-card,
.ap-value-card,
.ap-certif-card {
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: var(--shadow-small);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.ap-domain-card:hover,
.ap-value-card:hover,
.ap-certif-card:hover {
  border-color: rgba(112, 197, 0, .45);
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.ap-domain-icon,
.ap-value-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #b4e96b);
  font-size: 19px;
  color: #10220f;
}

.ap-domain-card h3,
.ap-value-card h3,
.ap-certif-card h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.25;
  color: var(--heading-color);
}

.ap-domain-card ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-domain-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--text-light);
}

.ap-domain-card li i {
  margin-top: 4px;
  font-size: 10px;
  color: var(--primary);
}

.ap-value-card p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* ---------------------------------------------------------
   Certifications
--------------------------------------------------------- */
.ap-certif-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(112, 197, 0, .13);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

body.dark-mode .ap-certif-badge {
  color: var(--primary);
}

.ap-certif-card p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* ---------------------------------------------------------
   Engagement employabilité
--------------------------------------------------------- */
.ap-pledge {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 24px 20px;
  border: 1px solid rgba(112, 197, 0, .28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(112, 197, 0, .14), transparent 60%),
    var(--card-bg);
  box-shadow: var(--shadow-small);
}

.ap-pledge-figure {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(3rem, 15vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--primary);
}

.ap-pledge-figure small {
  font-size: .4em;
  font-weight: 800;
}

.ap-pledge-body h3 {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 4.4vw, 1.45rem);
  line-height: 1.25;
  color: var(--heading-color);
}

.ap-pledge-body p {
  margin: 0 0 12px;
  font-size: clamp(.93rem, 3vw, 1.02rem);
  line-height: 1.65;
  color: var(--text);
}

.ap-pledge-note {
  color: var(--text-light) !important;
}

.ap-pledge-body p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   Méthode : les huit étapes
--------------------------------------------------------- */
.ap-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ap-step {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-bg);
}

.ap-step-index {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--primary);
}

.ap-step-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: rgba(112, 197, 0, .13);
  font-size: 15px;
  color: var(--primary-dark);
}

body.dark-mode .ap-step-icon {
  color: var(--primary);
}

.ap-step-label {
  min-width: 0;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading-color);
}

/* ---------------------------------------------------------
   Conclusion
--------------------------------------------------------- */
.ap-closing {
  padding: 10px 0 60px;
}

.ap-closing-card {
  padding: 30px 20px;
  border: 1px solid rgba(112, 197, 0, .26);
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 0%, rgba(112, 197, 0, .15), transparent 58%),
    var(--card-bg);
  box-shadow: var(--shadow-medium);
  text-align: center;
}

.ap-closing-card h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 6vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--heading-color);
}

.ap-closing-card > p {
  max-width: 70ch;
  margin: 0 auto 14px;
  font-size: clamp(.93rem, 3vw, 1.03rem);
  line-height: 1.68;
  color: var(--text-light);
}

.ap-signature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px !important;
}

.ap-signature strong {
  font-size: 1.15rem;
  color: var(--heading-color);
}

.ap-signature span {
  font-size: .95rem;
  font-weight: 600;
  color: var(--primary-dark);
}

body.dark-mode .ap-signature span {
  color: var(--primary);
}

.ap-slogan {
  margin-top: 8px !important;
  font-weight: 650;
  color: var(--heading-color) !important;
}

.ap-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 26px;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  /* 48px : cible tactile confortable dès 320px. */
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 16px;
  font-size: .95rem;
  font-weight: 700;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.ap-btn--primary {
  background: var(--primary);
  color: #10220f;
  box-shadow: 0 14px 30px rgba(112, 197, 0, .22);
}

.ap-btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.ap-btn--ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--heading-color);
}

.ap-btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

body.dark-mode .ap-btn--ghost:hover {
  color: var(--primary);
}

/* ---------------------------------------------------------
   Très petits écrans : on resserre sans jamais rogner.
--------------------------------------------------------- */
@media (max-width: 360px) {
  .ap-container {
    width: calc(100% - 20px);
  }

  .ap-domain-card,
  .ap-value-card,
  .ap-certif-card {
    padding: 17px 15px;
  }

  .ap-step {
    grid-template-columns: auto 1fr;
    gap: 11px;
    padding: 12px 13px;
  }

  /* Sous 360px, le numéro d'étape passe en pastille sur l'icône
     pour laisser toute la largeur au libellé. */
  .ap-step-index {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 11px;
    opacity: .75;
  }

  .ap-step-label {
    font-size: .9rem;
  }

  .ap-closing-card {
    padding: 24px 16px;
    border-radius: 22px;
  }
}

/* ---------------------------------------------------------
   Tablette
--------------------------------------------------------- */
@media (min-width: 620px) {
  .ap-hero {
    padding: 44px 0 56px;
  }

  .ap-section {
    padding: 58px 0;
  }

  .ap-domain-grid,
  .ap-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-certif-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-pledge {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 26px;
    padding: 30px 28px;
  }

  .ap-actions {
    grid-template-columns: auto auto;
    justify-content: center;
  }
}

/* ---------------------------------------------------------
   Ordinateur
--------------------------------------------------------- */
@media (min-width: 992px) {
  .ap-hero {
    padding: 56px 0 68px;
  }

  .ap-section {
    padding: 74px 0;
  }

  .ap-domain-grid,
  .ap-values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ap-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Titre à gauche, texte à droite : plus lisible sur large écran. */
  .ap-split {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .ap-split-head {
    position: sticky;
    top: 110px;
    margin-bottom: 0;
  }

  .ap-closing-card {
    padding: 46px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-domain-card,
  .ap-value-card,
  .ap-certif-card,
  .ap-btn {
    transition: none !important;
  }

  .ap-domain-card:hover,
  .ap-value-card:hover,
  .ap-certif-card:hover,
  .ap-btn:hover {
    transform: none !important;
  }
}

/* Fil d'Ariane : les liens sont des liens de texte en ligne, mais on leur
   donne quand même une hauteur de frappe confortable sur mobile. */
@media (max-width: 768px) {
  .ap-breadcrumb {
    gap: 10px;
  }

  .ap-breadcrumb a,
  .ap-breadcrumb span[aria-current] {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }
}

/* =========================================================
   V17 — GRAND SLIDER + PARTENAIRES
========================================================= */

/* ---------------------------------------------------------
   En-tête en deux colonnes : texte / grand visuel
--------------------------------------------------------- */
.ap-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

.ap-hero-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ap-hero-points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  font-size: clamp(.9rem, 3vw, .98rem);
  line-height: 1.5;
  color: var(--text);
}

.ap-hero-points i {
  margin-top: 3px;
  font-size: 14px;
  color: var(--primary);
}

.ap-hero-points strong {
  color: var(--heading-color);
}

.ap-hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 26px;
}

/* ---------------------------------------------------------
   Le slider
--------------------------------------------------------- */
.ap-slider {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ap-slider-frame {
  position: relative;
  overflow: hidden;
  /* `width: 100%` indispensable : toutes les diapos sont en position absolue,
     le cadre n'a donc aucun contenu en flux pour lui donner une largeur, et
     le `margin-inline: auto` du palier tablette annule l'étirement flex. */
  width: 100%;
  /* Ratio carré : les visuels de campagne HoPes sont en 1:1. */
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #0b0f0b;
  box-shadow: var(--shadow-medium);
}

.ap-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}

.ap-slide.is-active {
  /* La diapo entrante passe au-dessus de la sortante pendant le fondu. */
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.ap-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-slide-caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 44px 18px 18px;
  background: linear-gradient(to top, rgba(4, 9, 5, .92), rgba(4, 9, 5, .55) 55%, transparent);
  color: #fff;
  /* Le fond de la légende est opaque : sans ce décalage, elle se lit à pleine
     force alors que son image est encore transparente, et on voit le texte
     d'une diapo par-dessus l'image de la précédente. */
  opacity: 0;
  transition: opacity .3s ease;
}

.ap-slide.is-active .ap-slide-caption {
  opacity: 1;
  transition-delay: .4s;
}

.ap-slide-caption strong {
  font-size: clamp(.98rem, 3.6vw, 1.15rem);
  line-height: 1.25;
}

.ap-slide-caption span {
  font-size: clamp(.82rem, 2.9vw, .9rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, .8);
}

.ap-slider-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  /* 44px : cible tactile confortable des 320px. */
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(8, 14, 9, .55);
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color .25s ease, border-color .25s ease;
}

.ap-slider-nav:hover {
  border-color: var(--primary);
  background: rgba(112, 197, 0, .8);
  color: #10220f;
}

.ap-slider-prev { left: 10px; }
.ap-slider-next { right: 10px; }

.ap-slider-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.ap-slider-dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}

/* Surface de frappe de 44px sans grossir le point. */
.ap-slider-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 14px);
  height: 44px;
  transform: translate(-50%, -50%);
}

.ap-slider-dot.is-active {
  width: 26px;
  background: var(--primary);
}

/* ---------------------------------------------------------
   Bandeau de logos partenaires
--------------------------------------------------------- */
.ap-partners-strip {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--body-bg);
}

.ap-partners-strip-label {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-light);
}

.ap-partners-strip-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
}

.ap-partner-logo {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 12px;
}

/* Hauteur posée sur l'IMAGE et non sur le conteneur : dans une grille,
   `max-height: 100%` ne se résout pas et les logos s'affichaient à leur
   taille naturelle (jusqu'à 500px de large). */
.ap-partner-logo img {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

/* Chaque logo est posé sur sa propre tuile : ils viennent de sources
   différentes (fond blanc pour TOSA et World TESOL, fond noir pour
   LV Creation) et resteraient sinon illisibles selon le thème. */
.ap-partner-logo {
  border: 1px solid var(--border);
  background: #ffffff;
}

.ap-partner-logo.is-dark {
  border-color: rgba(255, 255, 255, .16);
  background: #0d0f0d;
}

/* ---------------------------------------------------------
   Section partenaires detaillee
--------------------------------------------------------- */
.ap-section-head--center {
  margin-inline: auto;
  text-align: center;
}

.ap-partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.ap-partner-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: var(--shadow-small);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.ap-partner-card:hover {
  border-color: rgba(112, 197, 0, .45);
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.ap-partner-logo-box {
  display: grid;
  height: 76px;
  place-items: center;
  margin-bottom: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.ap-partner-logo-box.is-dark {
  background: #0d0f0d;
}

/* Même raison que ci-dessus : hauteur explicite plutôt qu'un pourcentage. */
.ap-partner-logo-box img {
  height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.ap-partner-tag {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(112, 197, 0, .13);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

body.dark-mode .ap-partner-tag {
  color: var(--primary);
}

.ap-partner-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--heading-color);
}

.ap-partner-card p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* ---------------------------------------------------------
   Tablette
--------------------------------------------------------- */
@media (min-width: 620px) {
  .ap-hero-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  /* Les visuels sont carrés : sans plafond, le slider mesurerait 725px de
     haut sur une tablette et repousserait tout le reste de la page. */
  .ap-slider-frame {
    max-width: 460px;
    margin-inline: auto;
  }

  .ap-partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-partner-logo img {
    height: 40px;
  }
}

/* ---------------------------------------------------------
   Ordinateur : texte a gauche, grand visuel a droite
--------------------------------------------------------- */
@media (min-width: 992px) {
  .ap-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 48px;
  }

  .ap-slider-frame {
    /* Sur grand écran la colonne contraint déjà la largeur. */
    max-width: none;
    border-radius: 28px;
  }

  .ap-partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ap-partners-strip-logos {
    gap: 18px 44px;
  }

  .ap-partner-logo img {
    height: 46px;
  }
}

@media (min-width: 1200px) {
  .ap-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  }
}

/* ---------------------------------------------------------
   Tres petits ecrans
--------------------------------------------------------- */
@media (max-width: 360px) {
  .ap-slide-caption {
    padding: 34px 14px 14px;
  }

  .ap-slider-nav {
    width: 40px;
    height: 40px;
  }

  .ap-partner-card {
    padding: 18px 16px;
  }

  .ap-partners-strip-logos {
    gap: 12px 18px;
  }

  .ap-partner-logo img {
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-slide,
  .ap-partner-card {
    transition: none !important;
  }

  .ap-partner-card:hover {
    transform: none !important;
  }
}

/* =========================================================
   V18 — SLIDER « MORPHOSE » (Morph / Magic Move)

   Le visuel sortant et le visuel entrant portent le même
   `view-transition-name` : le navigateur interpole lui-même
   la forme de l'un vers l'autre au lieu d'un simple fondu.

   Sans l'API View Transitions, la classe `has-morph` n'est
   pas posée et le fondu enchaîné défini plus haut prend le
   relais : rien n'est perdu.
========================================================= */

/* Le cadre doit contenir le morphing, sinon l'image déborde pendant l'animation. */
.ap-slider-frame {
  isolation: isolate;
}

/* Quand la morphose est disponible, on coupe le fondu CSS : c'est
   l'animation de transition de vue qui pilote le changement. */
.ap-slider.has-morph .ap-slide {
  transition: none;
}

.ap-slider.has-morph .ap-slide-caption {
  transition: none;
}

/* ---------------------------------------------------------
   L'animation de morphose elle-même
--------------------------------------------------------- */
@keyframes hopesMorphSortie {
  from {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: scale(1.08) rotate(.6deg);
    filter: blur(7px);
  }
}

@keyframes hopesMorphEntree {
  from {
    opacity: 0;
    transform: scale(.9) rotate(-.6deg);
    filter: blur(9px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

::view-transition-old(hopes-morph) {
  animation: hopesMorphSortie .62s cubic-bezier(.62, .02, .34, 1) both;
  mix-blend-mode: normal;
}

::view-transition-new(hopes-morph) {
  animation: hopesMorphEntree .62s cubic-bezier(.22, .78, .2, 1) both;
  mix-blend-mode: normal;
}

/* Les deux visuels se superposent le temps de la déformation. */
::view-transition-image-pair(hopes-morph) {
  isolation: auto;
}

/* ---------------------------------------------------------
   La légende suit, décalée, et glisse dans le sens de lecture
--------------------------------------------------------- */
@keyframes hopesMorphLegendeSortie {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(14px); }
}

@keyframes hopesMorphLegendeEntree {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

::view-transition-old(hopes-morph-caption) {
  animation: hopesMorphLegendeSortie .3s ease both;
}

::view-transition-new(hopes-morph-caption) {
  /* Décalage volontaire : la légende n'apparaît qu'une fois l'image posée. */
  animation: hopesMorphLegendeEntree .42s cubic-bezier(.2, .8, .2, 1) .26s both;
}

/* Le reste de la page ne doit pas clignoter pendant la transition. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(hopes-morph),
  ::view-transition-new(hopes-morph),
  ::view-transition-old(hopes-morph-caption),
  ::view-transition-new(hopes-morph-caption) {
    animation: none !important;
  }
}
