/* ==========================================================================
   Page À propos — styles spécifiques (préfixe .ap-)
   Héro (badge mascotte) · Histoire (porte qui s’ouvre : moment fort de la
   page) · Votre interlocuteur · Pourquoi un lapin · Engagements & clients · CTA
   ========================================================================== */

/* --- Mascotte en SVG intégré (reprend les tracés de bunny.svg) ----------- */
.apb-fur { fill: #ffedee; }
.apb-s { stroke: #2b1621; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.apb-s2 { stroke-width: 6; }
.apb-s3 { stroke-width: 6.5; }
.apb-s4 { stroke-width: 4.5; }

/* --- HÉRO ---------------------------------------------------------------- */
.ap-hero {
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(255, 211, 219, .75), transparent 62%),
    radial-gradient(55% 45% at 0% 55%, rgba(230, 220, 255, .45), transparent 72%),
    linear-gradient(180deg, var(--blush-100), var(--paper) 86%);
}
.ap-hero__grid { gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
@media (min-width: 1000px) {
  .ap-hero__grid { grid-template-columns: 1.04fr .96fr; }
}
.ap-hero__content { align-self: start; justify-items: start; } /* fil d’Ariane à la même hauteur que sur les autres pages */
/* taille du H1 et padding-top : échelle commune .page-hero (main.css) */
.ap-hero h1 {
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 13ch;
}
.ap-hero h1 .hl::after { bottom: -.06em; height: .26em; }
.ap-hero .lead { max-width: 44ch; }
.ap-hero__ctas { --cluster-gap: .8rem; margin-top: .3rem; }
@media (max-width: 560px) {
  .ap-hero__ctas { width: 100%; }
  .ap-hero__ctas .btn { width: 100%; white-space: normal; }
}

/* Badge : grand cercle rose façon logo + anneau de texte qui tourne */
.ap-hero__visual { display: grid; place-items: center; }
.ap-badge {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.ap-badge__ring,
.ap-badge__core { position: absolute; display: block; overflow: visible; }
.ap-badge__ring {
  inset: 0;
  width: 100%;
  height: 100%;
  animation: apSpin 60s linear infinite;
}
.ap-badge__ring-text {
  font-family: var(--font-display);
  font-size: 41px;
  font-weight: 600;
  letter-spacing: .1em;
  fill: var(--ink);
}
.ap-badge__dots {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 0 23.5;
  opacity: .45;
}
/* Ombre portée du disque : élément statique sous le SVG (dont l’intérieur est animé),
   pour ne pas recalculer un filtre flou à chaque image d’animation. */
.ap-badge::before {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  box-shadow: 0 22px 68px rgba(176, 42, 75, .28);
  pointer-events: none;
}
.ap-badge__core {
  inset: 12%;
  width: 76%;
  height: 76%;
}
.ap-badge__core .apb-s { stroke-width: 9; }
.ap-badge__core .apb-s2 { stroke-width: 7; }
.ap-badge__core .apb-s3 { stroke-width: 7.5; }
.ap-badge__core .apb-s4 { stroke-width: 5; }
@keyframes apSpin { to { transform: rotate(360deg); } }

.ap-badge .sparkle { z-index: 3; }

@media (max-width: 999px) {
  .ap-badge { width: min(100%, 440px); }
}
@media (max-width: 520px) {
  .ap-badge { width: min(100%, 360px); }
}

/* --- HISTOIRE : la porte qui s’ouvre (moment fort) ------------------------ */
.ap-story { padding-top: clamp(3rem, 2rem + 4vw, 6rem); }
@media (min-width: 960px) {
  .ap-story__grid { grid-template-columns: .84fr 1.16fr; }
}
.ap-story__visual {
  --open: .86;
  position: relative;
  display: grid;
  justify-items: center;
  padding: 2.6rem 0 1rem;
}
.ap-story__visual.is-live { --open: 0; }
.ap-door {
  position: relative;
  width: min(100%, 360px);
  rotate: -2deg;
}
.ap-door::before { /* halo de lumière qui s’échappe */
  content: "";
  position: absolute;
  inset: -10% -2% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(71% 50% at 50% 52%, rgba(255, 207, 110, .7), rgba(255, 207, 110, 0) 70%);
  opacity: var(--open);
  pointer-events: none;
}
.ap-door__frame {
  position: relative;
  aspect-ratio: 5 / 7.2;
  padding: 14px;
  border: var(--border);
  border-radius: 50% 50% 18px 18px / 34.7% 34.7% 18px 18px;
  background: linear-gradient(180deg, var(--white), var(--blush-50));
  box-shadow: var(--shadow-sticker-lg);
  perspective: 1500px;
  perspective-origin: 20% 50%;
}
.ap-door__opening,
.ap-door__leaf {
  position: absolute;
  inset: 14px;
  border: var(--border);
  border-radius: 50% 50% 8px 8px / 33.5% 33.5% 8px 8px;
}
.ap-door__opening {
  overflow: hidden;
  background: var(--blush-100);
}
.ap-door__room {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.ap-door__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 26, 32, .7), rgba(42, 26, 32, .35));
  opacity: calc(1 - var(--open));
  pointer-events: none;
}
.ap-door__leaf {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .22), transparent 30%, rgba(42, 26, 32, .06) 100%),
    var(--pink-400);
  transform-origin: 0 50%;
  transform: rotateY(calc(var(--open) * -80deg));
  box-shadow: inset -8px 0 0 rgba(42, 26, 32, .07);
  will-change: transform;
}
.ap-door__panel {
  position: absolute;
  left: 17%;
  right: 17%;
  border: var(--border);
  background: rgba(255, 255, 255, .2);
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35);
}
.ap-door__panel:nth-child(1) { top: 13%; height: 36%; border-radius: 50% 50% 10px 10px / 34% 34% 10px 10px; }
.ap-door__panel:nth-child(2) { top: 56%; bottom: 7%; border-radius: 10px; }
.ap-door__knob {
  position: absolute;
  right: 8%;
  top: 51.5%;
  width: 24px;
  height: 24px;
  border: var(--border);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 3px 0 var(--ink);
}
.ap-story__note {
  position: absolute;
  top: 0;
  right: max(-1rem, calc(50% - 250px));
  z-index: 4;
  display: grid;
  justify-items: end;
  gap: .1rem;
  font-size: clamp(1.4rem, 1.1rem + .9vw, 1.85rem);
  rotate: 5deg;
  opacity: clamp(0, calc((var(--open) - .5) * 3), 1);
  pointer-events: none;
}
.ap-story__note svg { width: 54px; height: 44px; margin-right: 3.2rem; color: var(--brand); }

.ap-story__text { display: grid; gap: 1.2rem; justify-items: start; }
.ap-story__more { max-width: 58ch; color: var(--ink-2); }

.ap-mission {
  position: relative;
  width: 100%;
  margin-top: .6rem;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem) clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  border: var(--border);
  border-radius: var(--r-lg);
  background: var(--blush-100);
  box-shadow: var(--shadow-sticker);
}
.ap-mission__quote-mark {
  position: absolute;
  top: -1.1rem;
  right: 1.4rem;
  width: 2.6rem;
  height: 2.6rem;
  padding: .45rem;
  border: var(--border);
  border-radius: 50%;
  background: var(--pink-400);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.ap-mission__label {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--brand-dark);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ap-mission__label .icon { width: 1.05em; height: 1.05em; }
.ap-mission__quote {
  margin-top: .55rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.18;
  text-wrap: balance;
}

/* --- VOTRE INTERLOCUTEUR : une seule carte, un seul visage ---------------- */
.ap-founder {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 1.1rem;
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(2.2rem, 1.6rem + 2vw, 3rem) clamp(1.4rem, 1rem + 2.4vw, 3.2rem);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(55% 85% at 0% 0%, var(--blush-100), transparent 72%),
    var(--white);
  text-align: center;
}
@media (min-width: 760px) {
  .ap-founder {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(2rem, 1rem + 3vw, 3.4rem);
    text-align: left;
  }
}
.ap-founder > * { position: relative; z-index: 1; }
.ap-founder::after { /* grand cœur en filigrane */
  content: "";
  position: absolute;
  right: -2.4rem;
  bottom: -3rem;
  z-index: 0;
  width: clamp(10rem, 8rem + 6vw, 14rem);
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd3db' stroke-width='.3' stroke-linejoin='round'%3E%3Cpath d='M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5'/%3E%3C/svg%3E") center / contain no-repeat;
  rotate: -12deg;
  pointer-events: none;
}
.ap-founder__avatar {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: end;
  width: 160px;
  height: 178px;
  margin-bottom: .4rem;
}
.ap-founder__photo {
  width: 150px;
  height: 150px;
  margin-bottom: .4rem;
  object-fit: cover;
  border: var(--border);
  border-radius: 50%;
  box-shadow: 0 6px 0 var(--ink);
}
.ap-founder__ears {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 0;
  width: 128px;
  overflow: visible;
  translate: -50% 0;
}
.ap-founder__ears .apb-s { stroke-width: 6; }
.ap-ear { transform-box: fill-box; }
.ap-ear--l { transform-origin: 60% 100%; }
.ap-ear--r { transform-origin: 40% 100%; }
.ap-founder:hover .ap-ear--l { animation: apEarL .9s var(--ease-out); }
.ap-founder:hover .ap-ear--r { animation: apEarR .9s var(--ease-out) .08s; }
@keyframes apEarL { 30% { transform: rotate(-14deg); } 60% { transform: rotate(6deg); } }
@keyframes apEarR { 30% { transform: rotate(14deg); } 60% { transform: rotate(-6deg); } }
.ap-founder__disc {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ffd0d8, var(--pink-400) 72%);
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .6s var(--ease-bounce);
}
.ap-founder:hover .ap-founder__disc { transform: rotate(-6deg) scale(1.04); }
/* Cœur du logo, contour et ombre « sticker » */
.ap-founder__heart {
  width: 76px;
  height: 76px;
  overflow: visible;
  fill: var(--blush-50);
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 0 var(--ink));
  translate: 0 4%;
}
.ap-founder:hover .ap-founder__heart { animation: apBeat .9s var(--ease-out); }
@keyframes apBeat { 25% { scale: 1.16; } 50% { scale: .96; } 75% { scale: 1.06; } }

.ap-founder__text { display: grid; justify-items: center; gap: .55rem; }
@media (min-width: 760px) {
  .ap-founder__text { justify-items: start; }
}
.ap-founder__name { font-size: var(--step-2); line-height: 1.25; }
.ap-founder__name mark.todo { font-family: var(--font-body); font-size: .62em; font-weight: 700; }
.ap-founder__role {
  color: var(--brand-dark);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ap-founder__role mark.todo { letter-spacing: normal; text-transform: none; }
.ap-founder__bio { max-width: 46ch; color: var(--ink-2); }
.ap-founder__bio mark.todo { font-size: .92em; line-height: 1.8; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ap-founder__promise {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  max-width: 50ch;
  margin-top: .55rem;
  padding: .8rem 1.1rem;
  border: 2px dashed rgba(42, 26, 32, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .8);
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
}
.ap-founder__promise .icon { width: 1.35em; height: 1.35em; margin-top: .05em; color: var(--mint-dark); }

/* --- POURQUOI UN LAPIN ? (section rose) ----------------------------------- */
.ap-why .lead { color: var(--ink); }
.ap-why .hl { color: var(--ink); }
.ap-why__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) {
  .ap-why__grid { grid-template-columns: .86fr 1.14fr; }
}
.ap-why__content { display: grid; gap: 1.2rem; justify-items: start; }

.ap-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1.06;
  margin-inline: auto;
}
.ap-stage__disc {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 3%;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, .7), transparent 42%),
    radial-gradient(circle at 50% 50%, #c4f2e5, var(--mint) 70%);
  box-shadow: 0 10px 0 var(--ink);
}
.ap-stage__disc::after { /* reflet pointillé intérieur */
  content: "";
  position: absolute;
  inset: 7%;
  border: 3px dashed rgba(42, 26, 32, .16);
  border-radius: 50%;
}
.ap-stage__bunny {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 50%;
  height: auto;
  translate: -56% 0;
}
.ap-rosette {
  position: absolute;
  right: 2%;
  bottom: 6%;
  z-index: 3;
  width: clamp(92px, 24%, 118px);
  rotate: 9deg;
}
.ap-rosette__svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 5px 0 rgba(42, 26, 32, .22)); }

.ap-facts { list-style: none; display: grid; gap: .75rem; width: 100%; max-width: 36rem; margin-top: .2rem; }
.ap-fact {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .65rem 1.2rem .65rem .65rem;
  border: var(--border);
  border-radius: 999px;
  background: var(--white);
  font-weight: 650;
  line-height: 1.4;
  box-shadow: var(--shadow-sticker-sm);
}
.ap-fact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: var(--border);
  border-radius: 50%;
  background: var(--blush-100);
  color: var(--brand);
}
.ap-fact__icon .icon { width: 22px; height: 22px; }
.ap-fact__icon--mint { background: var(--mint); color: var(--ink); }
.ap-fact__icon--lilac { background: var(--lilac); color: var(--ink); }
.ap-why__punch {
  max-width: 30ch;
  margin-top: .5rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
.ap-why__punch strong { font-weight: 700; color: var(--white); -webkit-text-stroke: .05em var(--ink); paint-order: stroke fill; }

/* --- ENGAGEMENTS ---------------------------------------------------------- */
.ap-pledges__grid { align-items: stretch; }
.ap-pledge {
  display: grid;
  align-content: start;
  gap: .7rem;
  padding: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
}
.ap-pledge--1 { background: var(--blush-100); }
.ap-pledge--2 { background: #dcf6ee; }
.ap-pledge--3 { background: #eee8ff; }
.ap-pledge--4 { background: #fff0c9; }
.ap-pledge__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: .45rem;
  border: var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--brand);
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .6s var(--ease-bounce);
}
.ap-pledge__icon .icon { width: 28px; height: 28px; }
.ap-pledge:hover .ap-pledge__icon { transform: rotate(-10deg) scale(1.08); }
.ap-pledge__title { font-size: var(--step-1); line-height: 1.15; }
.ap-pledge__text { color: var(--ink-2); }

/* Pour qui nous intervenons */
.ap-clients {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  text-align: center;
}
.ap-clients__title {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--brand-dark);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.ap-clients__title::before,
.ap-clients__title::after {
  content: "";
  width: clamp(1.8rem, 5vw, 4.5rem);
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(42, 26, 32, .22) 0 6px, transparent 6px 12px);
}
.ap-clients__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.ap-clients__list .chip { padding: .5rem .95rem; font-size: .95rem; white-space: normal; box-shadow: 0 3px 0 var(--ink); }

/* --- CTA FINAL (mobile : règles communes de .cta-band dans main.css) --------- */
.ap-cta .cta-band .lead { max-width: 46ch; }

/* --- Rendu statique (sans animation, reduced motion, contrôle qualité) ---- */
.no-anim .ap-badge__ring { animation: none; }

@media (max-width: 959px) {
  .ap-story__visual { padding-top: 3.4rem; }
}
@media (max-width: 520px) {
  .ap-door { width: min(86%, 310px); }
  .ap-story__note { right: 0; top: .2rem; }
  .ap-story__note svg { margin-right: 2rem; }
  .ap-stage { width: min(100%, 330px); }
  .ap-fact { border-radius: 22px; }
  /* engagements plus compacts : pastille à gauche, texte à droite */
  .ap-pledge { grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1rem; padding: 1.25rem 1.2rem 1.35rem; }
  .ap-pledge__icon { grid-row: span 2; width: 52px; height: 52px; margin: 0; }
  .ap-pledge__icon .icon { width: 24px; height: 24px; }
}
