/* ============================================================
   L'Air des Pichoulis — style.css v1
   Prefixe universel : ap-
   Design : nature organique premium, Fraunces + Karla
   Anti-footprint : ZERO similitude avec inalta-formations.fr
   ============================================================ */

/* ----------------------------------------------------------------
   1. CUSTOM PROPERTIES
   ---------------------------------------------------------------- */
:root {
  /* Palette principale */
  --ap-vert-foret:      #2A5238;   /* dominant fonce */
  --ap-vert-mousse:     #3D7A57;   /* primaire medium */
  --ap-vert-sauge:      #6B9E7E;   /* clair, accents */
  --ap-vert-menthe:     #D4EAD8;   /* bg tres leger */
  --ap-vert-50:         #EEF6F0;   /* bg hover / zebra */

  /* Secondaires chauds */
  --ap-ocre:            #C47C2B;   /* cuivre/ocre — CTA */
  --ap-ocre-dark:       #A3651E;
  --ap-ocre-light:      #E09A4C;
  --ap-sable:           #F5EDD8;   /* bg chaud secondaire */
  --ap-terre:           #7A4F2A;   /* texte brun fonce */

  /* Neutres */
  --ap-creme:           #FAFAF6;   /* bg principal (pas blanc pur) */
  --ap-blanc:           #FFFFFF;
  --ap-gris-10:         #F2F2EE;
  --ap-gris-30:         #D6D6CF;
  --ap-gris-60:         #8A8A82;
  --ap-encre:           #1E2B22;   /* texte principal */
  --ap-encre-doux:      #3A4A3E;   /* texte secondaire */

  /* Semantique */
  --ap-success:         #2D7A45;
  --ap-warning:         #D4810A;
  --ap-error:           #C0392B;

  /* Typographie */
  --ap-font-titre:      'Fraunces', Georgia, serif;
  --ap-font-corps:      'Karla', system-ui, -apple-system, sans-serif;

  /* Tailles */
  --ap-text-xs:   0.75rem;
  --ap-text-sm:   0.875rem;
  --ap-text-base: 1.125rem;   /* 18px corps */
  --ap-text-lg:   1.25rem;
  --ap-text-xl:   1.5rem;
  --ap-text-2xl:  1.875rem;
  --ap-text-3xl:  2.375rem;
  --ap-text-4xl:  3rem;
  --ap-text-5xl:  3.75rem;
  --ap-text-hero: clamp(2.5rem, 5vw, 4.5rem);

  /* Espacement */
  --ap-space-1:   0.25rem;
  --ap-space-2:   0.5rem;
  --ap-space-3:   0.75rem;
  --ap-space-4:   1rem;
  --ap-space-5:   1.25rem;
  --ap-space-6:   1.5rem;
  --ap-space-8:   2rem;
  --ap-space-10:  2.5rem;
  --ap-space-12:  3rem;
  --ap-space-16:  4rem;
  --ap-space-20:  5rem;
  --ap-space-24:  6rem;
  --ap-space-32:  8rem;

  /* Radius (style organique : mixes asymetriques) */
  --ap-r-sm:    4px;
  --ap-r-md:    12px;
  --ap-r-lg:    24px;
  --ap-r-xl:    40px;
  --ap-r-pill:  999px;
  --ap-r-leaf:  4px 40px 4px 40px;   /* forme feuille */

  /* Ombres (chaudes, pas bleutees) */
  --ap-shadow-xs:  0 1px 3px rgba(42,82,56,.06);
  --ap-shadow-sm:  0 2px 8px rgba(42,82,56,.08), 0 1px 3px rgba(42,82,56,.05);
  --ap-shadow-md:  0 4px 16px rgba(42,82,56,.10), 0 2px 6px rgba(42,82,56,.06);
  --ap-shadow-lg:  0 8px 32px rgba(42,82,56,.12), 0 4px 12px rgba(42,82,56,.07);
  --ap-shadow-ocre: 0 4px 20px rgba(196,124,43,.25);

  /* Transitions */
  --ap-trans-fast:   150ms ease;
  --ap-trans-base:   250ms ease;
  --ap-trans-slow:   400ms cubic-bezier(.4,0,.2,1);

  /* Layout */
  --ap-max-w:        1200px;
  --ap-header-h:     72px;
  --ap-header-h-sm:  56px;
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ap-font-corps);
  font-size: var(--ap-text-base);
  line-height: 1.72;
  color: var(--ap-encre);
  background-color: var(--ap-creme);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset button — OBLIGATOIRE (CLAUDE.md) */
button {
  color: inherit;
  font-family: var(--ap-font-corps);
  font-weight: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

a {
  color: var(--ap-vert-mousse);
  text-decoration: none;
  transition: color var(--ap-trans-fast);
}

a:hover { color: var(--ap-vert-foret); }

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ap-font-titre);
  line-height: 1.18;
  color: var(--ap-encre);
  font-weight: 600;
}

p + p { margin-top: var(--ap-space-4); }

:focus-visible {
  outline: 2px solid var(--ap-vert-mousse);
  outline-offset: 3px;
  border-radius: var(--ap-r-sm);
}

/* ----------------------------------------------------------------
   3. UTILITAIRES
   ---------------------------------------------------------------- */
.ap-container {
  width: 100%;
  max-width: var(--ap-max-w);
  margin-inline: auto;
  padding-inline: var(--ap-space-5);
}

@media (min-width: 768px) {
  .ap-container { padding-inline: var(--ap-space-8); }
}

@media (min-width: 1024px) {
  .ap-container { padding-inline: var(--ap-space-12); }
}

.ap-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------
   4. BOUTONS
   ---------------------------------------------------------------- */
.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ap-space-2);
  padding: 0.875rem 1.875rem;
  font-family: var(--ap-font-corps);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ap-blanc);
  line-height: 1;
  border-radius: var(--ap-r-leaf);
  transition: all var(--ap-trans-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  min-height: 44px;
}

.ap-btn--primaire {
  background: var(--ap-ocre);
  border-color: var(--ap-ocre);
  color: var(--ap-blanc);
  box-shadow: var(--ap-shadow-ocre);
}

.ap-btn--primaire:hover {
  background: var(--ap-ocre-dark);
  border-color: var(--ap-ocre-dark);
  color: var(--ap-blanc);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(196,124,43,.35);
}

.ap-btn--secondaire {
  background: transparent;
  border-color: var(--ap-vert-mousse);
  color: var(--ap-vert-mousse);
  font-weight: 700;
  font-size: 1rem;
}

.ap-btn--secondaire:hover {
  background: var(--ap-vert-mousse);
  color: var(--ap-blanc);
  transform: translateY(-1px);
}

.ap-btn--blanc {
  background: var(--ap-blanc);
  border-color: var(--ap-blanc);
  color: var(--ap-vert-foret);
  font-weight: 700;
  font-size: 1rem;
}

.ap-btn--blanc:hover {
  background: var(--ap-vert-50);
  color: var(--ap-vert-foret);
}

.ap-btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: var(--ap-blanc);
  font-weight: 700;
  font-size: 1rem;
}

.ap-btn--ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
  color: var(--ap-blanc);
}

.ap-btn--lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.0625rem;
}

.ap-btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  border-radius: var(--ap-r-sm);
}

.ap-btn svg {
  flex-shrink: 0;
  transition: transform var(--ap-trans-fast);
}

.ap-btn:hover svg { transform: translateX(3px); }

/* ----------------------------------------------------------------
   5. HEADER
   ---------------------------------------------------------------- */
.ap-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--ap-header-h);
  background: var(--ap-creme);
  border-bottom: 1px solid var(--ap-gris-30);
  transition: height var(--ap-trans-base), box-shadow var(--ap-trans-base), background var(--ap-trans-base);
}

.ap-header.ap-header--scrolled {
  height: var(--ap-header-h-sm);
  background: rgba(250,250,246,.97);
  /* backdrop-filter removed for compat */
  box-shadow: var(--ap-shadow-sm);
  border-bottom-color: transparent;
}

.ap-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--ap-space-6);
}

/* Logo */
.ap-logo {
  display: flex;
  align-items: center;
  gap: var(--ap-space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.ap-logo__mark {
  width: 40px;
  height: 40px;
  background: var(--ap-vert-foret);
  border-radius: var(--ap-r-leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ap-trans-fast);
}

.ap-logo__mark svg {
  width: 22px;
  height: 22px;
  color: var(--ap-blanc);
}

.ap-logo:hover .ap-logo__mark { background: var(--ap-vert-mousse); }

.ap-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ap-logo__name {
  font-family: var(--ap-font-titre);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ap-vert-foret);
  letter-spacing: -0.01em;
}

.ap-logo__tagline {
  font-family: var(--ap-font-corps);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ap-vert-sauge);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Navigation principale */
.ap-nav {
  display: none;
  align-items: center;
  gap: 0;
}

@media (min-width: 1024px) {
  .ap-nav { display: flex; }
}

.ap-nav__item {
  position: relative;
}

.ap-nav__link {
  display: flex;
  align-items: center;
  gap: var(--ap-space-1);
  padding: var(--ap-space-3) var(--ap-space-4);
  font-family: var(--ap-font-corps);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ap-encre-doux);
  white-space: nowrap;
  transition: color var(--ap-trans-fast);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.ap-nav__link:hover,
.ap-nav__link[aria-expanded="true"] {
  color: var(--ap-vert-mousse);
}

.ap-nav__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--ap-trans-fast);
  flex-shrink: 0;
}

.ap-nav__link[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* CTA header */
.ap-header__cta {
  display: none;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .ap-header__cta { display: block; }
}

/* Burger mobile */
.ap-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--ap-space-2);
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .ap-burger { display: none; }
}

.ap-burger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ap-vert-foret);
  border-radius: 2px;
  transition: all var(--ap-trans-base);
  transform-origin: center;
}

.ap-burger[aria-expanded="true"] .ap-burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ap-burger[aria-expanded="true"] .ap-burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.ap-burger[aria-expanded="true"] .ap-burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----------------------------------------------------------------
   6. MEGA-MENU
   ---------------------------------------------------------------- */
.ap-megamenu {
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 680px;
  background: var(--ap-blanc);
  border: 1px solid var(--ap-gris-30);
  border-radius: var(--ap-r-lg);
  box-shadow: var(--ap-shadow-lg);
  padding: var(--ap-space-6);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ap-trans-base), transform var(--ap-trans-base), visibility var(--ap-trans-base);
  z-index: 100;
}

.ap-nav__item:hover .ap-megamenu,
.ap-nav__item:focus-within .ap-megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.ap-megamenu--formations {
  grid-template-columns: 1fr 1fr;
  gap: var(--ap-space-3);
}

.ap-megamenu__pole {
  padding: var(--ap-space-4);
  border-radius: var(--ap-r-md);
  transition: background var(--ap-trans-fast);
}

.ap-megamenu__pole:hover {
  background: var(--ap-vert-50);
}

.ap-megamenu__pole-titre {
  display: flex;
  align-items: center;
  gap: var(--ap-space-2);
  font-family: var(--ap-font-corps);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ap-vert-foret);
  margin-bottom: var(--ap-space-2);
  text-decoration: none;
}

.ap-megamenu__pole-titre svg {
  width: 18px;
  height: 18px;
  color: var(--ap-ocre);
  flex-shrink: 0;
}

.ap-megamenu__sous-liste {
  padding-left: var(--ap-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-1);
}

.ap-megamenu__sous-lien {
  font-size: 0.8375rem;
  color: var(--ap-encre-doux);
  text-decoration: none;
  padding: 2px 0;
  transition: color var(--ap-trans-fast);
}

.ap-megamenu__sous-lien:hover { color: var(--ap-vert-mousse); }

.ap-megamenu__footer {
  grid-column: 1 / -1;
  margin-top: var(--ap-space-3);
  padding-top: var(--ap-space-3);
  border-top: 1px solid var(--ap-gris-30);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ap-megamenu__footer-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ap-ocre);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--ap-space-1);
}

.ap-megamenu__footer-link:hover { color: var(--ap-ocre-dark); }

/* ----------------------------------------------------------------
   7. NAVIGATION MOBILE
   ---------------------------------------------------------------- */
.ap-mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--ap-creme);
  overflow-y: auto;
  padding-top: var(--ap-header-h);
  transform: translateX(-100%);
  transition: transform var(--ap-trans-slow);
}

.ap-mobile-nav.ap-mobile-nav--open {
  display: block;
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .ap-mobile-nav { display: none !important; }
}

.ap-mobile-nav__inner {
  padding: var(--ap-space-6) var(--ap-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-1);
}

.ap-mobile-nav__link {
  display: block;
  padding: var(--ap-space-4) var(--ap-space-3);
  font-family: var(--ap-font-corps);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ap-encre);
  border-radius: var(--ap-r-md);
  text-decoration: none;
  border-bottom: 1px solid var(--ap-gris-30);
}

.ap-mobile-nav__link:hover { background: var(--ap-vert-50); }

.ap-mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--ap-space-4) var(--ap-space-3);
  font-family: var(--ap-font-corps);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ap-encre);
  border-radius: var(--ap-r-md);
  background: none;
  border: none;
  border-bottom: 1px solid var(--ap-gris-30);
  cursor: pointer;
  text-align: left;
}

.ap-mobile-nav__toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--ap-trans-base);
  flex-shrink: 0;
}

.ap-mobile-nav__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.ap-mobile-nav__submenu {
  display: none;
  padding: var(--ap-space-2) var(--ap-space-3) var(--ap-space-4) var(--ap-space-6);
}

.ap-mobile-nav__submenu.ap-mobile-nav__submenu--open {
  display: block;
}

.ap-mobile-nav__submenu-group {
  margin-bottom: var(--ap-space-4);
}

.ap-mobile-nav__submenu-titre {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ap-vert-foret);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--ap-space-2);
}

.ap-mobile-nav__submenu-lien {
  display: block;
  padding: var(--ap-space-2) 0;
  font-size: 0.9375rem;
  color: var(--ap-encre-doux);
  text-decoration: none;
  border-bottom: 1px solid var(--ap-gris-10);
}

.ap-mobile-nav__submenu-lien:hover { color: var(--ap-vert-mousse); }

.ap-mobile-nav__cta {
  margin-top: var(--ap-space-6);
  padding-top: var(--ap-space-6);
  border-top: 2px solid var(--ap-gris-30);
}

/* ----------------------------------------------------------------
   8. HERO — ASYMETRIQUE GAUCHE (anti-template)
   ---------------------------------------------------------------- */
.ap-hero {
  position: relative;
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: var(--ap-vert-foret);
  padding-top: var(--ap-header-h);
}

@media (min-width: 1024px) {
  .ap-hero {
    grid-template-columns: 55% 45%;
    min-height: 85vh;
  }
}

/* Colonne gauche texte */
.ap-hero__contenu {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--ap-space-12) var(--ap-space-6) var(--ap-space-16);
  min-width: 0;
}

@media (min-width: 768px) {
  .ap-hero__contenu {
    padding: var(--ap-space-20) var(--ap-space-8) var(--ap-space-20);
  }
}

@media (min-width: 1024px) {
  .ap-hero__contenu {
    padding: var(--ap-space-20) var(--ap-space-16) var(--ap-space-20) var(--ap-space-16);
  }
}

.ap-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--ap-space-2);
  font-family: var(--ap-font-corps);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ap-ocre-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--ap-space-5);
}

.ap-hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ap-ocre);
}

.ap-hero__titre {
  font-family: var(--ap-font-titre);
  font-size: var(--ap-text-hero);
  font-weight: 700;
  color: var(--ap-blanc);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--ap-space-6);
}

.ap-hero__titre em {
  font-style: italic;
  color: var(--ap-vert-sauge);
}

.ap-hero__sous-titre {
  font-size: var(--ap-text-lg);
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  max-width: 100%;
  margin-bottom: var(--ap-space-8);
}

@media (min-width: 1024px) {
  .ap-hero__sous-titre {
    max-width: 52ch;
  }
}

.ap-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ap-space-3);
  margin-bottom: var(--ap-space-8);
}

.ap-badge-confiance {
  display: inline-flex;
  align-items: center;
  gap: var(--ap-space-2);
  padding: var(--ap-space-2) var(--ap-space-3);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--ap-r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  /* backdrop-filter: blur(4px); */
}

.ap-badge-confiance svg {
  width: 14px;
  height: 14px;
  color: var(--ap-ocre-light);
  flex-shrink: 0;
}

.ap-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ap-space-4);
  align-items: center;
}

.ap-hero__tel {
  display: flex;
  align-items: center;
  gap: var(--ap-space-2);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ap-blanc);
  text-decoration: none;
  transition: color var(--ap-trans-fast);
}

.ap-hero__tel:hover { color: var(--ap-ocre-light); }

.ap-hero__tel svg {
  width: 20px;
  height: 20px;
  color: var(--ap-ocre);
  flex-shrink: 0;
}

/* Colonne droite image */
/* Colonne droite hero : visuel decoratif */
.ap-hero__visuel {
  position: relative;
  overflow: hidden;
  display: none;
}

@media (min-width: 1024px) {
  .ap-hero__visuel {
    display: block;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  }
}

.ap-hero__pattern {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1E3A2A 0%, var(--ap-vert-mousse) 50%, var(--ap-vert-sauge) 100%);
}

.ap-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Forme organique overlay hero mobile */
.ap-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--ap-creme);
  clip-path: ellipse(60% 100% at 20% 100%);
  z-index: 3;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .ap-hero::after { display: none; }
}

/* ----------------------------------------------------------------
   9. SECTIONS COMMUNES
   ---------------------------------------------------------------- */
.ap-section {
  padding-block: var(--ap-space-16);
}

.ap-section--xl {
  padding-block: var(--ap-space-24);
}

.ap-section--sm {
  padding-block: var(--ap-space-10);
}

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

.ap-section--vert {
  background: var(--ap-vert-foret);
  color: var(--ap-blanc);
}

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

.ap-section--menthe {
  background: var(--ap-vert-menthe);
}

.ap-entete-section {
  margin-bottom: var(--ap-space-12);
}

.ap-entete-section--centre {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--ap-space-12);
}

.ap-kicker {
  display: inline-block;
  font-family: var(--ap-font-corps);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ap-ocre);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--ap-space-3);
}

.ap-kicker--vert { color: var(--ap-vert-sauge); }

.ap-titre-h2 {
  font-family: var(--ap-font-titre);
  font-size: clamp(1.875rem, 3.5vw, 2.625rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--ap-encre);
  margin-bottom: var(--ap-space-4);
}

.ap-titre-h2--blanc { color: var(--ap-blanc); }

.ap-titre-h2 em {
  font-style: italic;
  color: var(--ap-vert-mousse);
}

.ap-titre-h2--blanc em { color: var(--ap-ocre-light); }

.ap-chapeau {
  font-size: var(--ap-text-lg);
  color: var(--ap-encre-doux);
  line-height: 1.6;
}

.ap-chapeau--blanc { color: rgba(255,255,255,.75); }

/* ----------------------------------------------------------------
   10. POLES DE FORMATION (homepage)
   ---------------------------------------------------------------- */
.ap-poles-grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ap-space-4);
}

@media (min-width: 600px) {
  .ap-poles-grille { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ap-poles-grille { grid-template-columns: repeat(3, 1fr); }
}

/* Le 4e et 5e pole : centres sur la 3e ligne */
@media (min-width: 1024px) {
  .ap-pole-card:nth-child(4) { grid-column: 1; }
  .ap-pole-card:nth-child(5) { grid-column: 2; }
}

.ap-pole-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ap-blanc);
  border-radius: var(--ap-r-lg);
  overflow: hidden;
  box-shadow: var(--ap-shadow-sm);
  transition: all var(--ap-trans-base);
  text-decoration: none;
  min-width: 0;
}

.ap-pole-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ap-shadow-lg);
}

.ap-pole-card__barre {
  height: 5px;
  background: var(--ap-vert-mousse);
  transition: height var(--ap-trans-base);
}

.ap-pole-card:hover .ap-pole-card__barre { height: 8px; }

.ap-pole-card--eco   .ap-pole-card__barre { background: var(--ap-vert-mousse); }
.ap-pole-card--secu  .ap-pole-card__barre { background: #C0392B; }
.ap-pole-card--mgmt  .ap-pole-card__barre { background: #2E6DA4; }
.ap-pole-card--digit .ap-pole-card__barre { background: #7B52AB; }
.ap-pole-card--perso .ap-pole-card__barre { background: var(--ap-ocre); }

.ap-pole-card__corps {
  padding: var(--ap-space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ap-pole-card__icone {
  width: 52px;
  height: 52px;
  border-radius: var(--ap-r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--ap-space-5);
  background: var(--ap-vert-50);
  transition: background var(--ap-trans-fast);
}

.ap-pole-card--eco  .ap-pole-card__icone { background: var(--ap-vert-50); }
.ap-pole-card--secu .ap-pole-card__icone { background: #FDECEA; }
.ap-pole-card--mgmt .ap-pole-card__icone { background: #EBF3FE; }
.ap-pole-card--digit .ap-pole-card__icone { background: #F3EFF9; }
.ap-pole-card--perso .ap-pole-card__icone { background: var(--ap-sable); }

.ap-pole-card__icone svg {
  width: 26px;
  height: 26px;
}

.ap-pole-card--eco  .ap-pole-card__icone svg { color: var(--ap-vert-mousse); }
.ap-pole-card--secu .ap-pole-card__icone svg { color: #C0392B; }
.ap-pole-card--mgmt .ap-pole-card__icone svg { color: #2E6DA4; }
.ap-pole-card--digit .ap-pole-card__icone svg { color: #7B52AB; }
.ap-pole-card--perso .ap-pole-card__icone svg { color: var(--ap-ocre); }

.ap-pole-card__titre {
  font-family: var(--ap-font-titre);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ap-encre);
  margin-bottom: var(--ap-space-2);
  line-height: 1.25;
}

.ap-pole-card__desc {
  font-size: 0.9rem;
  color: var(--ap-encre-doux);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--ap-space-5);
}

.ap-pole-card__nb-formations {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ap-gris-60);
  display: flex;
  align-items: center;
  gap: var(--ap-space-1);
}

.ap-pole-card__fleche {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: var(--ap-space-3);
  color: var(--ap-vert-mousse);
  font-size: 0.875rem;
  font-weight: 700;
  gap: var(--ap-space-2);
  text-decoration: none;
  transition: gap var(--ap-trans-fast);
}

.ap-pole-card:hover .ap-pole-card__fleche { gap: var(--ap-space-3); }

/* ----------------------------------------------------------------
   11. TRUST STRIP (chiffres confiance)
   ---------------------------------------------------------------- */
.ap-trust-strip {
  background: var(--ap-vert-foret);
  padding-block: var(--ap-space-12);
}

.ap-trust-strip__grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ap-space-8) var(--ap-space-6);
}

@media (min-width: 768px) {
  .ap-trust-strip__grille { grid-template-columns: repeat(4, 1fr); }
}

.ap-trust-item {
  text-align: center;
  color: var(--ap-blanc);
}

.ap-trust-item__nb {
  font-family: var(--ap-font-titre);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ap-ocre-light);
  line-height: 1;
  margin-bottom: var(--ap-space-2);
  display: block;
}

.ap-trust-item__label {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: .8;
  line-height: 1.3;
  display: block;
}

/* ----------------------------------------------------------------
   12. SECTION PROCESS "COMMENT CA SE PASSE"
   ---------------------------------------------------------------- */
.ap-process-grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ap-space-6);
  position: relative;
}

@media (min-width: 768px) {
  .ap-process-grille {
    grid-template-columns: repeat(4, 1fr);
  }

  .ap-process-grille::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 20px);
    right: calc(12.5% + 20px);
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--ap-vert-sauge) 0,
      var(--ap-vert-sauge) 8px,
      transparent 8px,
      transparent 18px
    );
    z-index: 0;
  }
}

.ap-process-etape {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--ap-space-5);
}

.ap-process-etape__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ap-vert-foret);
  color: var(--ap-blanc);
  font-family: var(--ap-font-titre);
  font-size: 1.375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--ap-space-4);
  border: 3px solid var(--ap-creme);
  box-shadow: var(--ap-shadow-md);
}

.ap-process-etape__titre {
  font-family: var(--ap-font-titre);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ap-encre);
  margin-bottom: var(--ap-space-2);
}

.ap-process-etape__desc {
  font-size: 0.9rem;
  color: var(--ap-encre-doux);
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   13. TEMOIGNAGES
   ---------------------------------------------------------------- */
.ap-temoignages-grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ap-space-5);
}

@media (min-width: 768px) {
  .ap-temoignages-grille { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ap-temoignages-grille { grid-template-columns: repeat(3, 1fr); }
}

.ap-temoignage-card {
  background: var(--ap-blanc);
  border-radius: var(--ap-r-lg);
  padding: var(--ap-space-6);
  box-shadow: var(--ap-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-4);
  border-left: 4px solid var(--ap-vert-sauge);
  min-width: 0;
}

.ap-temoignage-card__etoiles {
  display: flex;
  gap: 3px;
  color: #F5A623;
}

.ap-temoignage-card__etoiles svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ap-temoignage-card__texte {
  font-size: 0.9375rem;
  color: var(--ap-encre-doux);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.ap-temoignage-card__texte::before { content: '"'; }
.ap-temoignage-card__texte::after  { content: '"'; }

.ap-temoignage-card__auteur {
  display: flex;
  align-items: center;
  gap: var(--ap-space-3);
}

.ap-temoignage-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ap-vert-foret);
  color: var(--ap-blanc);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--ap-font-corps);
  letter-spacing: 0.02em;
}

.ap-temoignage-card__nom {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ap-encre);
  display: block;
}

.ap-temoignage-card__poste {
  font-size: 0.8125rem;
  color: var(--ap-gris-60);
  display: block;
}

/* ----------------------------------------------------------------
   14. BLOG SECTION (3 derniers)
   ---------------------------------------------------------------- */
.ap-blog-grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ap-space-6);
}

@media (min-width: 768px) {
  .ap-blog-grille { grid-template-columns: repeat(3, 1fr); }
}

.ap-blog-card {
  background: var(--ap-blanc);
  border-radius: var(--ap-r-lg);
  overflow: hidden;
  box-shadow: var(--ap-shadow-sm);
  transition: all var(--ap-trans-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-width: 0;
}

.ap-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ap-shadow-lg);
}

.ap-blog-card__img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ap-vert-menthe);
}

.ap-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ap-blog-card:hover .ap-blog-card__img {
  transform: scale(1.04);
}

.ap-blog-card__corps {
  padding: var(--ap-space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ap-blog-card__categorie {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ap-vert-mousse);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--ap-space-2);
}

.ap-blog-card__titre {
  font-family: var(--ap-font-titre);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ap-encre);
  line-height: 1.3;
  margin-bottom: var(--ap-space-2);
  flex: 1;
}

.ap-blog-card:hover .ap-blog-card__titre { color: var(--ap-vert-mousse); }

.ap-blog-card__meta {
  font-size: 0.8125rem;
  color: var(--ap-gris-60);
  margin-top: var(--ap-space-4);
}

/* ----------------------------------------------------------------
   15. SECTION FINANCEMENT (bande)
   ---------------------------------------------------------------- */
.ap-financement-bande {
  background: var(--ap-sable);
  border-radius: var(--ap-r-lg);
  padding: var(--ap-space-10);
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-8);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .ap-financement-bande {
    flex-direction: row;
    align-items: center;
  }
}

.ap-financement-bande__texte { flex: 1; }

.ap-financement-bande__titre {
  font-family: var(--ap-font-titre);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ap-encre);
  margin-bottom: var(--ap-space-3);
}

.ap-financement-bande__desc {
  color: var(--ap-encre-doux);
  line-height: 1.65;
}

.ap-financement-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ap-space-3);
  align-items: center;
  flex-shrink: 0;
}

.ap-financement-badge {
  padding: var(--ap-space-3) var(--ap-space-4);
  background: var(--ap-blanc);
  border-radius: var(--ap-r-md);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ap-vert-foret);
  box-shadow: var(--ap-shadow-xs);
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   16. CTA SECTION FINALE
   ---------------------------------------------------------------- */
.ap-cta-finale {
  background: var(--ap-vert-foret);
  border-radius: var(--ap-r-xl);
  padding: var(--ap-space-16) var(--ap-space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ap-cta-finale::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(61,122,87,.4);
  pointer-events: none;
}

.ap-cta-finale::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(196,124,43,.2);
  pointer-events: none;
}

.ap-cta-finale__titre {
  font-family: var(--ap-font-titre);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ap-blanc);
  margin-bottom: var(--ap-space-4);
  position: relative;
  z-index: 1;
}

.ap-cta-finale__sous-titre {
  font-size: var(--ap-text-lg);
  color: rgba(255,255,255,.75);
  margin-bottom: var(--ap-space-8);
  position: relative;
  z-index: 1;
}

.ap-cta-finale__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ap-space-4);
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------
   17. FOOTER
   ---------------------------------------------------------------- */
.ap-footer {
  background: var(--ap-encre);
  color: rgba(255,255,255,.85);
  padding-top: var(--ap-space-16);
}

.ap-footer__grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ap-space-10);
  padding-bottom: var(--ap-space-12);
}

@media (min-width: 600px) {
  .ap-footer__grille { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ap-footer__grille { grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr; }
}

.ap-footer__col-titre {
  font-family: var(--ap-font-corps);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ap-blanc);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--ap-space-4);
}

.ap-footer__logo-wrap {
  margin-bottom: var(--ap-space-5);
}

.ap-footer__logo-name {
  font-family: var(--ap-font-titre);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ap-blanc);
  display: block;
  margin-bottom: var(--ap-space-1);
}

.ap-footer__logo-tag {
  font-size: 0.8rem;
  color: var(--ap-vert-sauge);
  font-weight: 500;
}

.ap-footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--ap-space-5);
  max-width: 28ch;
}

.ap-footer__badges {
  display: flex;
  gap: var(--ap-space-3);
  flex-wrap: wrap;
  margin-bottom: var(--ap-space-5);
}

.ap-footer__badge {
  padding: var(--ap-space-2) var(--ap-space-3);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--ap-r-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  gap: var(--ap-space-1);
}

.ap-footer__badge svg {
  width: 13px; height: 13px;
  color: var(--ap-ocre-light);
}

.ap-footer__social {
  display: flex;
  gap: var(--ap-space-3);
}

.ap-footer__social-lien {
  width: 36px;
  height: 36px;
  border-radius: var(--ap-r-sm);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--ap-trans-fast);
}

.ap-footer__social-lien:hover {
  background: var(--ap-vert-mousse);
  border-color: var(--ap-vert-mousse);
  color: var(--ap-blanc);
}

.ap-footer__social-lien svg { width: 16px; height: 16px; }

.ap-footer__liens {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-2);
}

.ap-footer__lien {
  font-size: 0.9rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color var(--ap-trans-fast);
  padding: 2px 0;
}

.ap-footer__lien:hover { color: var(--ap-ocre-light); }

.ap-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--ap-space-3);
  font-size: 0.9rem;
  color: rgba(255,255,255,.85);
  margin-bottom: var(--ap-space-3);
}

.ap-footer__contact-item svg {
  width: 16px; height: 16px;
  color: var(--ap-ocre-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.ap-footer__contact-item a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color var(--ap-trans-fast);
}

.ap-footer__contact-item a:hover { color: var(--ap-blanc); }

.ap-footer__bas {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--ap-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-3);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .ap-footer__bas {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.ap-footer__copyright {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
}

.ap-footer__legaux {
  display: flex;
  gap: var(--ap-space-5);
}

.ap-footer__legaux a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color var(--ap-trans-fast);
}

.ap-footer__legaux a:hover { color: rgba(255,255,255,.75); }

/* ----------------------------------------------------------------
   18. STICKY CTA MOBILE
   ---------------------------------------------------------------- */
.ap-sticky-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--ap-encre);
  border-top: 2px solid var(--ap-vert-mousse);
  padding: var(--ap-space-3);
  gap: var(--ap-space-2);
}

@media (min-width: 1024px) {
  .ap-sticky-mobile { display: none; }
}

.ap-sticky-mobile__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ap-space-2);
  padding: var(--ap-space-3);
  border-radius: var(--ap-r-md);
  font-family: var(--ap-font-corps);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ap-blanc);
  text-decoration: none;
  min-height: 48px;
  transition: all var(--ap-trans-fast);
}

.ap-sticky-mobile__btn--tel {
  background: var(--ap-vert-mousse);
}

.ap-sticky-mobile__btn--devis {
  background: var(--ap-ocre);
}

.ap-sticky-mobile__btn svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

/* Espace pour la barre sticky mobile */
body { padding-bottom: 72px; }

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

/* ----------------------------------------------------------------
   19. PAGE HEADER (sous-pages)
   ---------------------------------------------------------------- */
.ap-page-header {
  background: var(--ap-vert-foret);
  padding-block: var(--ap-space-16) var(--ap-space-12);
  margin-top: var(--ap-header-h);
  position: relative;
  overflow: hidden;
}

.ap-page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--ap-creme);
  clip-path: ellipse(55% 100% at 15% 100%);
}

.ap-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ap-space-2);
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  margin-bottom: var(--ap-space-5);
}

.ap-breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--ap-trans-fast);
}

.ap-breadcrumb a:hover { color: rgba(255,255,255,.9); }

.ap-breadcrumb__sep {
  color: rgba(255,255,255,.3);
  font-size: 0.75rem;
}

.ap-breadcrumb__courant {
  color: rgba(255,255,255,.85);
  font-weight: 600;
}

.ap-page-header__titre {
  font-family: var(--ap-font-titre);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ap-blanc);
  margin-bottom: var(--ap-space-4);
  line-height: 1.12;
  max-width: 16ch;
}

.ap-page-header__sous-titre {
  font-size: var(--ap-text-lg);
  color: rgba(255,255,255,.72);
  max-width: 58ch;
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   20. FORMATION HUB (pole hub page)
   ---------------------------------------------------------------- */
.ap-formations-grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ap-space-5);
}

@media (min-width: 600px) {
  .ap-formations-grille { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ap-formations-grille { grid-template-columns: repeat(2, 1fr); }
}

.ap-formation-card {
  background: var(--ap-blanc);
  border-radius: var(--ap-r-lg);
  border: 1.5px solid var(--ap-gris-30);
  padding: var(--ap-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-4);
  text-decoration: none;
  transition: all var(--ap-trans-base);
  min-width: 0;
  position: relative;
}

.ap-formation-card:hover {
  border-color: var(--ap-vert-mousse);
  box-shadow: var(--ap-shadow-md);
  transform: translateY(-2px);
}

.ap-formation-card__pictos {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ap-formation-card__titre {
  font-family: var(--ap-font-titre);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ap-encre);
  line-height: 1.3;
}

.ap-formation-card:hover .ap-formation-card__titre { color: var(--ap-vert-mousse); }

.ap-formation-card__desc {
  font-size: 0.9rem;
  color: var(--ap-encre-doux);
  line-height: 1.6;
}

.ap-formation-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ap-space-2);
  margin-top: auto;
}

.ap-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--ap-r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.ap-tag--cpf {
  background: var(--ap-sable);
  color: var(--ap-terre);
}

.ap-tag--duree {
  background: var(--ap-gris-10);
  color: var(--ap-encre-doux);
}

.ap-tag--qualiopi {
  background: var(--ap-vert-50);
  color: var(--ap-vert-foret);
}

.ap-tag--intra {
  background: #EBF3FE;
  color: #2E6DA4;
}

/* ----------------------------------------------------------------
   21. FORMATION FEUILLE
   ---------------------------------------------------------------- */
/* Hero compact formation */
.ap-fiche-hero {
  background: var(--ap-vert-foret);
  padding-block: var(--ap-space-12) var(--ap-space-16);
  margin-top: var(--ap-header-h);
  position: relative;
  overflow: hidden;
}

.ap-fiche-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70px;
  background: var(--ap-creme);
  clip-path: ellipse(60% 100% at 25% 100%);
}

.ap-fiche-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-6);
}

@media (min-width: 768px) {
  .ap-fiche-hero__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--ap-space-10);
  }
}

.ap-fiche-hero__gauche { flex: 1; }

.ap-fiche-hero__titre {
  font-family: var(--ap-font-titre);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--ap-blanc);
  margin-bottom: var(--ap-space-4);
  line-height: 1.1;
}

.ap-fiche-hero__desc {
  font-size: var(--ap-text-lg);
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  max-width: 56ch;
  margin-bottom: var(--ap-space-5);
}

.ap-fiche-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ap-space-2);
}

/* Bloc infos rapides flottant */
.ap-fiche-infos {
  background: var(--ap-blanc);
  border-radius: var(--ap-r-lg);
  padding: var(--ap-space-6);
  box-shadow: var(--ap-shadow-lg);
  min-width: 280px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.ap-fiche-infos__ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--ap-space-3);
  border-bottom: 1px solid var(--ap-gris-10);
  gap: var(--ap-space-4);
}

.ap-fiche-infos__ligne:last-of-type { border-bottom: none; }

.ap-fiche-infos__label {
  font-size: 0.8125rem;
  color: var(--ap-gris-60);
  display: flex;
  align-items: center;
  gap: var(--ap-space-2);
  flex-shrink: 0;
}

.ap-fiche-infos__label svg {
  width: 15px; height: 15px;
  color: var(--ap-vert-sauge);
}

.ap-fiche-infos__val {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ap-encre);
  text-align: right;
}

.ap-fiche-infos__prix {
  font-family: var(--ap-font-titre);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ap-vert-foret);
  margin-bottom: var(--ap-space-1);
}

.ap-fiche-infos__prix-note {
  font-size: 0.75rem;
  color: var(--ap-gris-60);
  margin-bottom: var(--ap-space-5);
}

/* Accordeon programme */
.ap-accordeon {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-2);
}

.ap-accordeon__item {
  border: 1.5px solid var(--ap-gris-30);
  border-radius: var(--ap-r-md);
  overflow: hidden;
  transition: border-color var(--ap-trans-fast);
}

.ap-accordeon__item.ap-accordeon__item--open {
  border-color: var(--ap-vert-sauge);
}

.ap-accordeon__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ap-space-4) var(--ap-space-5);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--ap-font-corps);
  font-size: 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ap-encre);
  gap: var(--ap-space-4);
  transition: background var(--ap-trans-fast);
  min-height: 44px;
}

.ap-accordeon__entete:hover { background: var(--ap-gris-10); }

.ap-accordeon__item--open .ap-accordeon__entete { background: var(--ap-vert-50); }

.ap-accordeon__icone {
  width: 20px; height: 20px;
  color: var(--ap-vert-mousse);
  flex-shrink: 0;
  transition: transform var(--ap-trans-base);
}

.ap-accordeon__item--open .ap-accordeon__icone {
  transform: rotate(180deg);
}

.ap-accordeon__corps {
  display: none;
  padding: 0 var(--ap-space-5) var(--ap-space-5);
  font-size: 0.9375rem;
  color: var(--ap-encre-doux);
  line-height: 1.7;
}

.ap-accordeon__item--open .ap-accordeon__corps {
  display: block;
}

/* ----------------------------------------------------------------
   22. LAYOUT ARTICLE BLOG
   ---------------------------------------------------------------- */
.ap-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ap-space-10);
  padding-block: var(--ap-space-10);
}

@media (min-width: 1024px) {
  .ap-article-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--ap-space-12);
  }
}

/* Contenu article */
.ap-article {
  max-width: 720px;
}

.ap-article > * + * { margin-top: var(--ap-space-6); }

.ap-article h2 {
  font-family: var(--ap-font-titre);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--ap-encre);
  margin-top: var(--ap-space-10);
  margin-bottom: var(--ap-space-4);
  line-height: 1.2;
}

.ap-article h3 {
  font-family: var(--ap-font-titre);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ap-vert-foret);
  margin-top: var(--ap-space-8);
  margin-bottom: var(--ap-space-3);
  line-height: 1.25;
}

.ap-article p {
  font-size: var(--ap-text-base);
  line-height: 1.78;
  color: var(--ap-encre-doux);
}

.ap-article ul,
.ap-article ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-2);
  padding-left: var(--ap-space-6);
}

.ap-article ul li,
.ap-article ol li {
  font-size: var(--ap-text-base);
  color: var(--ap-encre-doux);
  line-height: 1.65;
  position: relative;
}

.ap-article ul li::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 0.65em;
  width: 6px; height: 6px;
  background: var(--ap-vert-mousse);
  border-radius: 50%;
}

.ap-article ol { list-style: decimal inside; padding-left: 0; }

.ap-article blockquote {
  border-left: 4px solid var(--ap-vert-mousse);
  padding: var(--ap-space-4) var(--ap-space-6);
  background: var(--ap-vert-50);
  border-radius: 0 var(--ap-r-md) var(--ap-r-md) 0;
  font-style: italic;
  color: var(--ap-vert-foret);
  font-size: var(--ap-text-lg);
  line-height: 1.65;
}

.ap-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}

.ap-article th {
  background: var(--ap-vert-foret);
  color: var(--ap-blanc);
  padding: var(--ap-space-3) var(--ap-space-4);
  text-align: left;
  font-family: var(--ap-font-corps);
  font-weight: 700;
}

.ap-article td {
  padding: var(--ap-space-3) var(--ap-space-4);
  border-bottom: 1px solid var(--ap-gris-30);
  color: var(--ap-encre-doux);
}

.ap-article tr:nth-child(even) td { background: var(--ap-gris-10); }

.ap-article img {
  width: 100%;
  height: auto;
  border-radius: var(--ap-r-lg);
  margin-block: var(--ap-space-8);
}

.ap-encadre {
  background: var(--ap-sable);
  border: 1px solid rgba(196,124,43,.2);
  border-radius: var(--ap-r-md);
  padding: var(--ap-space-6);
  margin-block: var(--ap-space-6);
}

.ap-encadre__titre {
  font-family: var(--ap-font-titre);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ap-terre);
  margin-bottom: var(--ap-space-3);
}

/* Sidebar */
.ap-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-6);
  position: sticky;
  top: calc(var(--ap-header-h-sm) + var(--ap-space-6));
  height: fit-content;
}

.ap-sidebar__widget {
  background: var(--ap-blanc);
  border-radius: var(--ap-r-lg);
  padding: var(--ap-space-5);
  box-shadow: var(--ap-shadow-sm);
  border: 1px solid var(--ap-gris-30);
}

.ap-sidebar__widget-titre {
  font-family: var(--ap-font-corps);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ap-vert-foret);
  margin-bottom: var(--ap-space-4);
  padding-bottom: var(--ap-space-3);
  border-bottom: 2px solid var(--ap-vert-menthe);
}

.ap-sidebar__liste {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-3);
}

.ap-sidebar__lien {
  font-size: 0.9rem;
  color: var(--ap-encre-doux);
  text-decoration: none;
  padding: var(--ap-space-2) 0;
  border-bottom: 1px solid var(--ap-gris-10);
  display: flex;
  align-items: center;
  gap: var(--ap-space-2);
  transition: color var(--ap-trans-fast);
}

.ap-sidebar__lien:hover { color: var(--ap-vert-mousse); }

.ap-sidebar__lien svg { width: 14px; height: 14px; color: var(--ap-vert-sauge); flex-shrink: 0; }

.ap-sidebar__cta {
  background: var(--ap-vert-foret);
  border-radius: var(--ap-r-lg);
  padding: var(--ap-space-6);
  text-align: center;
}

.ap-sidebar__cta-titre {
  font-family: var(--ap-font-titre);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ap-blanc);
  margin-bottom: var(--ap-space-2);
}

.ap-sidebar__cta-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,.7);
  margin-bottom: var(--ap-space-5);
  line-height: 1.55;
}

/* ----------------------------------------------------------------
   23. FORMULAIRE
   ---------------------------------------------------------------- */
.ap-form {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-5);
}

.ap-form-grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ap-space-5);
}

@media (min-width: 600px) {
  .ap-form-grille { grid-template-columns: repeat(2, 1fr); }
}

.ap-champ {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-2);
}

.ap-champ--plein { grid-column: 1 / -1; }

.ap-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ap-encre);
}

.ap-label span {
  color: var(--ap-ocre);
  margin-left: 2px;
}

.ap-input,
.ap-select,
.ap-textarea {
  width: 100%;
  padding: var(--ap-space-3) var(--ap-space-4);
  font-family: var(--ap-font-corps);
  font-size: 1rem;
  color: var(--ap-encre);
  background: var(--ap-blanc);
  border: 1.5px solid var(--ap-gris-30);
  border-radius: var(--ap-r-md);
  transition: border-color var(--ap-trans-fast), box-shadow var(--ap-trans-fast);
  min-height: 44px;
  appearance: none;
  -webkit-appearance: none;
}

.ap-input:focus,
.ap-select:focus,
.ap-textarea:focus {
  outline: none;
  border-color: var(--ap-vert-mousse);
  box-shadow: 0 0 0 3px rgba(61,122,87,.15);
}

.ap-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.ap-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B9E7E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.ap-form-notice {
  font-size: 0.8125rem;
  color: var(--ap-gris-60);
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   24. PAGE CONTACT
   ---------------------------------------------------------------- */
.ap-contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ap-space-10);
}

@media (min-width: 1024px) {
  .ap-contact-layout { grid-template-columns: 1.2fr 1fr; }
}

.ap-contact-infos {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-6);
}

.ap-contact-bloc {
  background: var(--ap-blanc);
  border-radius: var(--ap-r-lg);
  padding: var(--ap-space-6);
  box-shadow: var(--ap-shadow-sm);
}

.ap-contact-bloc__titre {
  font-family: var(--ap-font-titre);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ap-encre);
  margin-bottom: var(--ap-space-5);
}

.ap-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--ap-space-4);
  padding-block: var(--ap-space-3);
  border-bottom: 1px solid var(--ap-gris-10);
}

.ap-contact-item:last-child { border-bottom: none; }

.ap-contact-item__icone {
  width: 40px;
  height: 40px;
  background: var(--ap-vert-50);
  border-radius: var(--ap-r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-contact-item__icone svg {
  width: 18px; height: 18px;
  color: var(--ap-vert-mousse);
}

.ap-contact-item__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ap-gris-60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 2px;
}

.ap-contact-item__val {
  font-size: 0.9375rem;
  color: var(--ap-encre);
  font-weight: 500;
}

.ap-contact-item__val a {
  color: var(--ap-vert-mousse);
  text-decoration: none;
  font-weight: 600;
}

.ap-contact-item__val a:hover { color: var(--ap-vert-foret); }

.ap-map-wrap {
  border-radius: var(--ap-r-lg);
  overflow: hidden;
  height: 260px;
  background: var(--ap-vert-menthe);
}

.ap-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ----------------------------------------------------------------
   25. ZONES (page zone)
   ---------------------------------------------------------------- */
.ap-zone-header {
  background: var(--ap-sable);
  border-radius: var(--ap-r-lg);
  padding: var(--ap-space-8);
  margin-bottom: var(--ap-space-10);
  border-left: 6px solid var(--ap-vert-mousse);
}

/* ----------------------------------------------------------------
   26. REVEAL ANIMATIONS
   ---------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.25,.46,.45,.94);
}

[data-reveal="left"] {
  transform: translateX(-24px);
}

[data-reveal="right"] {
  transform: translateX(24px);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal].ap-visible {
  opacity: 1;
  transform: none;
}

/* Delai en cascade */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }

/* ----------------------------------------------------------------
   27. FAQ SCHEMA
   ---------------------------------------------------------------- */
.ap-faq {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-2);
  max-width: 800px;
}

.ap-faq__item {
  border: 1.5px solid var(--ap-gris-30);
  border-radius: var(--ap-r-md);
  overflow: hidden;
}

.ap-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ap-space-4) var(--ap-space-5);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--ap-font-corps);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ap-encre);
  gap: var(--ap-space-4);
  transition: background var(--ap-trans-fast);
  min-height: 44px;
}

.ap-faq__question:hover { background: var(--ap-gris-10); }

.ap-faq__item--open .ap-faq__question { background: var(--ap-vert-50); color: var(--ap-vert-foret); }

.ap-faq__chevron {
  width: 20px; height: 20px;
  color: var(--ap-vert-sauge);
  flex-shrink: 0;
  transition: transform var(--ap-trans-base);
}

.ap-faq__item--open .ap-faq__chevron { transform: rotate(180deg); }

.ap-faq__reponse {
  display: none;
  padding: var(--ap-space-2) var(--ap-space-5) var(--ap-space-5);
  font-size: 0.9375rem;
  color: var(--ap-encre-doux);
  line-height: 1.72;
}

.ap-faq__item--open .ap-faq__reponse { display: block; }

/* ----------------------------------------------------------------
   28. BLOC FORMATEUR
   ---------------------------------------------------------------- */
.ap-formateur {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-5);
  background: var(--ap-sable);
  border-radius: var(--ap-r-lg);
  padding: var(--ap-space-8);
}

@media (min-width: 600px) {
  .ap-formateur { flex-direction: row; align-items: flex-start; }
}

.ap-formateur__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--ap-blanc);
  box-shadow: var(--ap-shadow-md);
}

.ap-formateur__nom {
  font-family: var(--ap-font-titre);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ap-encre);
  margin-bottom: var(--ap-space-1);
}

.ap-formateur__poste {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ap-vert-mousse);
  margin-bottom: var(--ap-space-3);
}

.ap-formateur__bio {
  font-size: 0.9375rem;
  color: var(--ap-encre-doux);
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   29. SECTION HORAIRES (contact)
   ---------------------------------------------------------------- */
.ap-horaires {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ap-space-2);
}

.ap-horaires__ligne {
  display: contents;
}

.ap-horaires__jour {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ap-encre);
  padding-block: var(--ap-space-2);
  border-bottom: 1px solid var(--ap-gris-10);
}

.ap-horaires__heure {
  font-size: 0.9rem;
  color: var(--ap-encre-doux);
  padding-block: var(--ap-space-2);
  border-bottom: 1px solid var(--ap-gris-10);
}

/* ----------------------------------------------------------------
   30. PRINT
   ---------------------------------------------------------------- */
@media print {
  .ap-header,
  .ap-sticky-mobile,
  .ap-footer__social,
  .ap-sidebar { display: none !important; }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
    padding-bottom: 0;
  }

  a { color: #000; text-decoration: underline; }
}

/* ----------------------------------------------------------------
   31. PREFERS REDUCED MOTION
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Dark mode supprime — pas necessaire pour ce site */
