/* ═══════════════════════════════════════════════════════════
   PETITE ENFANCE FORMATIONS — Maquette page intérieure
   Charte : brun #6d4228 · teal #61a6ab · jaune #ffde59
   Fond : blanc (#ffffff) — demandé (charte propose #f4f0ee)
   Typo : Poppins (titres) · Source Sans 3 (texte) · League Spartan (marque) · Aileron (sous-titre) · lh 1.4
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Aileron";
  src: url("fonts/aileron-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Elementor Canvas — reset léger pour coller à la maquette */
.pef-page {
  margin: 0;
  padding: 0;
}
.elementor-location-header,
.elementor-location-footer {
  display: none;
}

:root {
  --brown:        #6d4228;
  --brown-soft:   #8a5a3a;
  --teal:         #61a6ab;
  --teal-deep:    #4e8e93;
  --yellow:       #ffde59;
  --taupe:        #c4b8b0;
  --taupe-soft:   #e8e2de;
  --white:        #ffffff;
  --text:         #2a221c;
  --text-muted:   #5c534c;
  --line:         rgba(109, 66, 40, 0.12);

  --font-title: 'Poppins', system-ui, sans-serif;
  --font-body:  'Source Sans 3', system-ui, sans-serif;
  --font-script: 'League Spartan', system-ui, sans-serif;
  --font-brand-sub: 'Aileron', system-ui, sans-serif;

  --container: 1120px;
  --section-y: 88px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Échelle typo — surchargée en tablette / smartphone */
  --fs-body: 1.0625rem;
  --lh-body: 1.4;
  --fs-hero: clamp(2.4rem, 4.5vw, 3.4rem);
  --lh-hero: 1.15;
  --fs-h2: clamp(1.7rem, 3vw, 2.25rem);
  --lh-h2: 1.2;
  --fs-h3: 1.15rem;
  --fs-lead: 1.15rem;
  --lh-lead: 1.45;
  --fs-eyebrow: 0.78rem;
  --fs-brand-script: 1.7rem;
  --logo-size: 70px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: 8.5rem;
}

html:has(body.pef-has-studio-toolbar) {
  scroll-padding-top: 11rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }

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

/* ─── Motion ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orbit, .wave, .brand-star, .ressource-ring { animation: none !important; }
}

/* Hero entrance (above the fold — no IO dependency) */
.page-hero-copy,
.page-hero-visual {
  animation: heroIn 0.85s var(--ease) both;
}
.page-hero-visual { animation-delay: 0.12s; }

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

/* ─── Waves ─── */
.wave-band {
  line-height: 0;
  overflow: hidden;
  background: var(--white);
}
.wave-band svg {
  display: block;
  width: 100%;
  height: 40px;
}
.wave-band--top svg { height: 42px; }
.wave-band--bottom svg { height: 48px; }
.wave { transition: transform 8s var(--ease); }
.wave-a,
.elementor-widget-html .wave-a { fill: #61a6ab !important; opacity: 1; }
.wave-b,
.elementor-widget-html .wave-b { fill: #ffde59 !important; opacity: 1; }
.wave-c,
.elementor-widget-html .wave-c { fill: #6d4228 !important; opacity: 0.9; }

.wave-band--top .wave-a { animation: waveDrift 10s ease-in-out infinite alternate; }
.wave-band--top .wave-b { animation: waveDrift 12s ease-in-out infinite alternate-reverse; }
.wave-band--bottom .wave-a { animation: waveDrift 11s ease-in-out infinite alternate-reverse; }

@keyframes waveDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-18px); }
}

/* ─── Header ─── */
/* Conteneur Elementor qui enveloppe le widget HTML header */
.elementor-widget-html .site-header,
.elementor-widget-html .wave-band {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

/* Barre de retour — rôle auteur connecté */
.pef-studio-front-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #6d4228;
  color: #fff;
  font-family: var(--font-title);
}

.pef-studio-front-bar--fixed {
  position: fixed;
  left: 0;
  right: 0;
}

.pef-studio-front-bar-inner {
  width: min(var(--container), 100% - 32px);
  margin: 0 auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.pef-studio-front-bar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

.pef-studio-front-bar a {
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pef-studio-front-bar a:hover,
.pef-studio-front-bar a:focus-visible {
  text-decoration: underline;
}

.pef-studio-front-bar-home {
  padding-right: 10px;
  margin-right: 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.pef-studio-front-bar-logout {
  opacity: 0.85;
  flex-shrink: 0;
}

body.pef-has-studio-toolbar .site-header {
  top: 40px;
}

body.pef-has-studio-toolbar:has(.pef-studio-front-bar--fixed) {
  padding-top: 40px;
}

@media (max-width: 640px) {
  .pef-studio-front-bar-nav a:not(.pef-studio-front-bar-home) {
    display: none;
  }
  .pef-studio-front-bar-home {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }
}

.header-inner {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.header-inner > .btn {
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.brand-mark img {
  display: block;
  width: var(--logo-size);
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.brand-script {
  font-family: var(--font-script);
  font-size: var(--fs-brand-script);
  font-weight: 700;
  font-style: normal;
  color: var(--brown);
  letter-spacing: -0.01em;
  line-height: 0.92;
}

.brand-caps {
  font-family: var(--font-brand-sub);
  font-size: calc(var(--fs-brand-script) * 0.386);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  margin-top: calc(var(--fs-brand-script) * 0.30);
}

.brand-star {
  color: var(--yellow);
  font-size: 0.85rem;
  align-self: flex-start;
  margin-top: 4px;
  filter: drop-shadow(0 0 0 transparent);
  animation: starPulse 2.8s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50%      { transform: scale(1.15) rotate(12deg); opacity: 1; }
}

.nav,
.nav--desktop {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
}

/* Panneau mobile : hors flux, masqué sur desktop */
.pef-mobile-nav {
  display: none;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #61a6ab 0%, #ffde59 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.nav-link:hover {
  color: var(--brown);
}

.nav-link:hover::after {
  transform: scaleX(0.45);
}

.nav-link.is-active {
  color: var(--brown);
  font-weight: 600;
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

/* CTA du panneau mobile — masqué hors menu ouvert */
.nav-cta,
a.nav-cta.btn {
  display: none !important;
}

/* Hamburger — classe dédiée pour ne jamais masquer le widget Elementor parent */
.pef-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  place-content: center;
  align-content: center;
  gap: 5px;
  flex-shrink: 0;
  z-index: 60;
  text-decoration: none;
  color: inherit;
}

.pef-menu-toggle-bar {
  display: block;
  width: 22px;
  height: 1.75px;
  background: #6d4228;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.pef-menu-toggle.is-open .pef-menu-toggle-bar:nth-child(1) {
  transform: translateY(6.75px) rotate(45deg);
}

.pef-menu-toggle.is-open .pef-menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.pef-menu-toggle.is-open .pef-menu-toggle-bar:nth-child(3) {
  transform: translateY(-6.75px) rotate(-45deg);
}

body.pef-nav-open {
  overflow: hidden;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }

.btn-primary {
  background: #6d4228;
  color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #8a5a3a;
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--teal);
}
.btn-outline:hover,
.btn-outline:focus {
  background: var(--teal);
  color: #ffffff;
}

/* HTML widgets Elementor — forcer texte blanc au survol */
a.btn.btn-primary,
a.btn.btn-primary:visited {
  background: #6d4228 !important;
  color: #ffffff !important;
}
a.btn.btn-primary:hover,
a.btn.btn-primary:focus {
  background: #8a5a3a !important;
  color: #ffffff !important;
}
a.btn.btn-outline:hover,
a.btn.btn-outline:focus {
  background: #61a6ab !important;
  color: #ffffff !important;
}

/* ─── Page hero ─── */
.page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(97, 166, 171, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(255, 222, 89, 0.16), transparent 65%),
    var(--white);
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.brand-signal {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #61a6ab;
  margin-bottom: 14px;
}

.brand-signal span {
  color: #6d4228;
}

.page-hero h1 {
  font-family: var(--font-title);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-hero);
  color: var(--brown);
  margin-bottom: 18px;
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--text-muted);
  max-width: 38ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Elementor — forcer la charte (Elementor met des couleurs inline) */
.page-hero .elementor-heading-title,
.page-hero-copy .elementor-heading-title {
  font-family: var(--font-title) !important;
  font-size: var(--fs-hero) !important;
  font-weight: 700 !important;
  line-height: var(--lh-hero) !important;
  color: var(--brown) !important;
}

.page-hero .brand-signal .elementor-heading-title,
.page-hero-copy .brand-signal .elementor-heading-title,
.page-hero .brand-signal,
.page-hero-copy .brand-signal,
.elementor-widget-html .brand-signal {
  font-family: var(--font-title) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #61a6ab !important; /* teal — texte principal */
}

/* Le span DOIT venir après la règle teal, avec !important */
.brand-signal span,
.page-hero .brand-signal span,
.page-hero-copy .brand-signal span,
.elementor-widget-html .brand-signal span {
  color: #6d4228 !important; /* brun — FORMATIONS */
}

.page-hero .lead,
.page-hero-copy .lead,
.page-hero .elementor-widget-text-editor,
.page-hero-copy .elementor-widget-text-editor {
  font-size: 1.15rem !important;
  line-height: 1.45 !important;
  color: var(--text-muted) !important;
}

/*
 * Boutons Elementor :
 * les classes btn / btn-primary sont sur le widget,
 * le vrai bouton est .elementor-button (sinon double style vert + pilule).
 */
.elementor-widget-button.btn .elementor-button-wrapper,
.elementor-button-wrapper.btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.elementor-widget-button.btn .elementor-button,
.btn .elementor-button,
a.elementor-button.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 13px 26px !important;
  font-family: var(--font-title) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  border-style: solid !important;
  border-width: 2px !important;
  box-shadow: none !important;
  fill: currentColor !important;
}

.elementor-widget-button.btn-sm .elementor-button,
.btn.btn-sm .elementor-button {
  padding: 10px 20px !important;
  font-size: 0.82rem !important;
}

.elementor-widget-button.btn-primary .elementor-button,
.btn.btn-primary .elementor-button,
a.elementor-button.btn-primary {
  background-color: #6d4228 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #6d4228 !important;
}

.elementor-widget-button.btn-primary .elementor-button:hover,
.elementor-widget-button.btn-primary .elementor-button:focus,
.btn.btn-primary .elementor-button:hover,
.btn.btn-primary .elementor-button:focus,
.elementor-widget-button.btn-primary .elementor-button:hover span,
.btn.btn-primary .elementor-button:hover span {
  background-color: #8a5a3a !important;
  border-color: #8a5a3a !important;
  color: #ffffff !important;
}

.elementor-widget-button.btn-outline .elementor-button,
.btn.btn-outline .elementor-button,
a.elementor-button.btn-outline {
  background-color: transparent !important;
  background-image: none !important;
  color: #4e8e93 !important;
  border-color: #61a6ab !important;
}

.elementor-widget-button.btn-outline .elementor-button:hover,
.btn.btn-outline .elementor-button:hover {
  background-color: #61a6ab !important;
  border-color: #61a6ab !important;
  color: #ffffff !important;
}

/* Annuler le fond vert Elementor sur le contenu interne */
.btn .elementor-button-content-wrapper,
.btn .elementor-button-text,
.elementor-widget-button.btn .elementor-button span {
  background: none !important;
  color: inherit !important;
}

/* Orbits — ancrage visuel (cercles brochure) */
.page-hero-visual {
  display: grid;
  place-items: center;
  min-height: 320px;
}

.hero-orbits {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: floatOrb 7s ease-in-out infinite;
}

.orbit-teal {
  width: 58%;
  height: 58%;
  left: 8%;
  top: 18%;
  background: rgba(97, 166, 171, 0.55);
}

.orbit-yellow {
  width: 52%;
  height: 52%;
  right: 6%;
  top: 10%;
  background: rgba(255, 222, 89, 0.65);
  animation-delay: -2s;
}

.orbit-taupe {
  width: 54%;
  height: 54%;
  left: 28%;
  bottom: 6%;
  background: rgba(196, 184, 176, 0.55);
  animation-delay: -4s;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ─── Intro strip ─── */
.intro-strip {
  padding: 0 0 8px;
}

.intro-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}

.intro-strip strong {
  color: var(--brown);
  font-weight: 600;
}

/* ─── Section headers ─── */
.section-header {
  max-width: 560px;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-family: var(--font-title);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.section-header h2,
.ressource-ring h2,
.contact h2 {
  font-family: var(--font-title);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-h2);
  color: var(--brown);
  margin-bottom: 14px;
}

/* Elementor — titres de section uniformes */
.section-header .elementor-heading-title,
.section-header h2 .elementor-heading-title,
.section-header h2 {
  font-family: 'Poppins', var(--font-title), sans-serif !important;
  font-size: var(--fs-h2) !important;
  font-weight: 700 !important;
  line-height: var(--lh-h2) !important;
  color: #6d4228 !important;
}

.section-eyebrow,
.section-header .section-eyebrow,
.section-header .section-eyebrow .elementor-heading-title {
  font-family: 'Poppins', var(--font-title), sans-serif !important;
  font-size: var(--fs-eyebrow) !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #61a6ab !important;
}

.section-desc,
.section-header .section-desc,
.section-header .elementor-widget-text-editor {
  color: #5c534c !important;
  max-width: 48ch;
}

/* ─── Axes + Venn ─── */
.axes {
  padding: var(--section-y) 0;
}

.axes-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.venn {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

.venn-circle {
  position: absolute;
  width: 58%;
  height: 58%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--brown);
  mix-blend-mode: multiply;
  transition: transform 0.35s var(--ease);
}

.venn:hover .venn-circle { transform: scale(1.03); }

.venn-teal {
  left: 6%;
  top: 14%;
  background: rgba(97, 166, 171, 0.5);
  z-index: 1;
}

.venn-yellow {
  right: 4%;
  top: 8%;
  background: rgba(255, 222, 89, 0.62);
  z-index: 2;
}

.venn-taupe {
  left: 26%;
  bottom: 4%;
  background: rgba(196, 184, 176, 0.55);
  z-index: 3;
}

.venn-circle span {
  padding: 12px;
  max-width: 11ch;
}

.axes-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.axis {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.axis-num {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--yellow);
  background: var(--brown);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.axis h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 6px;
}

.axis p {
  color: var(--text-muted);
  max-width: 38ch;
}

/* ─── Themes ─── */
.themes {
  padding: 0 0 var(--section-y);
  background:
    linear-gradient(180deg, transparent, rgba(97, 166, 171, 0.05) 40%, transparent);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.theme h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.arrow {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--teal);
  flex-shrink: 0;
}

.theme ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-inline-start: 0 !important;
}

.elementor-widget-html .theme ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-inline-start: 0 !important;
}

.theme li {
  position: relative;
  padding-left: 18px;
  margin: 0;
  list-style: none !important;
}

.theme li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 2px rgba(109, 66, 40, 0.15);
}

/* ─── Process / timeline ─── */
.process {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--yellow), var(--brown));
  opacity: 0.45;
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 4px;
}

.timeline-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--teal-deep);
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 8px var(--white);
}

.timeline-icon--accent {
  color: var(--brown);
  border-color: var(--yellow);
  background: #fffbeb;
}

.timeline-step h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 8px;
}

.timeline-step p {
  color: var(--text-muted);
  max-width: 28ch;
  margin-inline: auto;
}

/* ─── Ressource (cercle brochure) ─── */
.ressource {
  padding: 24px 0 var(--section-y);
}

.ressource-inner {
  display: grid;
  place-items: center;
}

.ressource-ring {
  width: min(640px, 100%);
  aspect-ratio: 1;
  max-height: none;
  border: 3px solid var(--teal);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 8vw, 72px);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 222, 89, 0.18), transparent 45%),
    radial-gradient(circle at 70% 75%, rgba(97, 166, 171, 0.12), transparent 50%),
    var(--white);
  animation: ringBreathe 6s ease-in-out infinite;
}

@keyframes ringBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(97, 166, 171, 0); }
  50%      { box-shadow: 0 0 0 12px rgba(97, 166, 171, 0.08); }
}

.ressource-ring p:not(.section-eyebrow) {
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 22px;
}

.ressource-props {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  width: 100%;
  max-width: 34ch;
  text-align: left;
}

.ressource-props li {
  padding-left: 16px;
  border-left: 3px solid var(--yellow);
  color: var(--text);
}

.ressource-props span {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 2px;
}

/* ─── Contact ─── */
.contact {
  padding: 0 0 var(--section-y);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.contact-copy .section-desc {
  margin-bottom: 24px;
}

.contact-copy .btn {
  margin-top: 4px;
}

.contact-photo {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin-inline: auto;
  background: var(--taupe-soft);
}

.contact-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.75px solid #61a6ab;
  color: #6d4228;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-social-link:hover {
  background: #61a6ab;
  border-color: #61a6ab;
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-social-link svg {
  display: block;
}

@media (max-width: 800px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-photo {
    max-width: 320px;
    order: -1;
  }
}

/* ─── Footer ─── */
.site-footer {
  padding-top: 48px;
  background: var(--white);
}

.pef-site-footer {
  width: 100%;
  max-width: none;
}

.pef-site-footer .wave-band--bottom {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.footer-inner {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
  padding-bottom: 28px;
}

.footer-inner--columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.15fr auto;
  gap: 36px 40px;
  align-items: start;
}

.footer-col-title {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #61a6ab;
  margin: 0 0 14px;
}

.footer-tagline {
  margin: 14px 0 0;
  max-width: 28ch;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #5c534c;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 500;
  color: #5c534c;
  text-decoration: none;
}

.footer-links a:hover {
  color: #6d4228;
}

.brand--footer .brand-mark img {
  width: 48px;
  height: auto;
}

/* Qualiopi — ligne dédiée */
.footer-cert {
  width: min(var(--container), 100% - 40px);
  margin: 0 auto;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer-credit {
  margin: 0;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: #8a7d74;
  text-align: center;
}

.footer-credit a {
  color: #6d4228;
  text-decoration: none;
  border-bottom: 1px solid rgba(109, 66, 40, 0.35);
}

.footer-credit a:hover,
.footer-credit a:focus {
  color: #4e8e93;
  border-bottom-color: #4e8e93;
}

.footer-cert-logo {
  width: min(240px, 78vw);
  flex: 0 0 auto;
}

.footer-cert img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  opacity: 0.92;
}

@media (max-width: 900px) {
  .footer-inner--columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-inner--columns {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }

  .footer-col--brand {
    grid-column: auto;
  }

  .footer-tagline {
    max-width: none;
  }
}

/* Contenu pages classiques Astra + header/footer injectés */
body.pef-injected-chrome.ast-plain-container #primary,
body.pef-injected-chrome .site-content > .ast-container {
  padding-top: 0;
}

body.pef-injected-chrome .entry-header {
  width: min(720px, 100% - 40px);
  margin: 48px auto 0;
  text-align: left;
}

body.pef-injected-chrome .entry-header .entry-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: #6d4228;
  margin: 0 0 8px;
}

body.pef-injected-chrome .entry-content {
  width: min(720px, 100% - 40px);
  margin: 24px auto 72px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: #5c534c;
}

body.pef-injected-chrome .entry-content h2 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: #6d4228;
  margin: 2em 0 0.7em;
}

body.pef-injected-chrome .entry-content a {
  color: #4e8e93;
}

/* ─── Pages simples (mentions, confidentialité, etc.) ─── */
.pef-simple {
  padding: 56px 0 72px;
  background: #ffffff;
}

.pef-simple-inner {
  width: min(720px, 100% - 40px);
  margin-inline: auto;
}

.pef-simple .section-eyebrow,
.pef-simple-eyebrow {
  font-family: var(--font-title);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #61a6ab;
  margin: 0 0 10px;
}

.pef-simple h1,
.pef-simple .pef-simple-title,
.pef-simple .elementor-heading-title {
  font-family: var(--font-title) !important;
  font-size: clamp(1.6rem, 3vw, 2rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #6d4228 !important;
  margin: 0 0 28px !important;
}

.pef-simple .pef-simple-content,
.pef-simple .elementor-widget-text-editor {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: #2a221c;
}

.pef-simple .pef-simple-content h2,
.pef-simple .elementor-widget-text-editor h2 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: #6d4228;
  margin: 2em 0 0.7em;
  line-height: 1.3;
}

.pef-simple .pef-simple-content h3,
.pef-simple .elementor-widget-text-editor h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: #4e8e93;
  margin: 1.6em 0 0.55em;
}

.pef-simple .pef-simple-content p,
.pef-simple .elementor-widget-text-editor p {
  margin: 0 0 1em;
  color: #5c534c;
}

.pef-simple .pef-simple-content ul,
.pef-simple .pef-simple-content ol,
.pef-simple .elementor-widget-text-editor ul,
.pef-simple .elementor-widget-text-editor ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
  color: #5c534c;
  list-style: disc;
}

.pef-simple .pef-simple-content ol,
.pef-simple .elementor-widget-text-editor ol {
  list-style: decimal;
}

.pef-simple .pef-simple-content li,
.pef-simple .elementor-widget-text-editor li {
  margin-bottom: 0.4em;
  padding-left: 0;
}

.pef-simple .pef-simple-content a,
.pef-simple .elementor-widget-text-editor a {
  color: #4e8e93;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pef-simple .pef-simple-content a:hover,
.pef-simple .elementor-widget-text-editor a:hover {
  color: #6d4228;
}

.pef-simple .pef-simple-content a.btn,
.pef-simple .pef-simple-content a.btn:hover,
.pef-simple .pef-simple-content a.btn:focus,
.pef-offer-cta a.btn,
.pef-offer-cta a.btn:hover,
.pef-offer-cta a.btn:focus,
.pef-about-copy a.btn,
.pef-about-copy a.btn:hover,
.pef-about-copy a.btn:focus {
  text-decoration: none !important;
}

.pef-about-intro--solo {
  grid-template-columns: 1fr;
}

.pef-offer-block {
  margin: 0 0 2.5em;
  padding-bottom: 2em;
  border-bottom: 1px solid var(--line);
}

.pef-offer-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.pef-offer-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 1em;
}

.pef-offer-heading .accueil-offer-icon {
  flex-shrink: 0;
}

.pef-offer-heading h2 {
  margin: 0 !important;
  font-size: 1.2rem;
  font-weight: 600;
  color: #6d4228;
  line-height: 1.3;
}

.pef-offer-cta {
  margin-top: 2em;
  padding-top: 0.5em;
}

.pef-simple .pef-simple-meta {
  margin-top: 2.5em;
  padding-top: 1.25em;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: #5c534c;
}

.pef-simple .pef-simple-engagement {
  margin: 2em 0 0;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 600;
  color: #6d4228;
}

/* ─── Accueil (distinct de Formations) ─── */
.accueil {
  --accueil-pad-x: clamp(24px, 4vw, 48px);
  --accueil-pad-y: clamp(36px, 5vw, 64px);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(97, 166, 171, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(255, 222, 89, 0.14), transparent 50%),
    #faf7f2;
  padding: var(--accueil-pad-y) var(--accueil-pad-x);
  overflow: visible;
}

.accueil-hero {
  padding: 8px 0 40px;
}

.accueil-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.accueil-hero-copy .brand-signal {
  margin-bottom: 14px;
}

.accueil-hero h1 {
  font-family: var(--font-title);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-hero);
  color: var(--brown);
  margin: 0 0 18px;
}

.accueil-hero-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 0 28px;
}

.accueil-hero-photo {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 380px;
  margin-inline: auto;
  background: var(--taupe-soft);
  box-shadow: 0 24px 48px rgba(109, 66, 40, 0.12);
}

.accueil-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.accueil-engagement {
  margin: 0;
  padding: 0;
}

.accueil-engagement p {
  margin: 0;
  padding: 32px clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: #5c534c;
  width: 100%;
  max-width: none;
  text-align: center;
  overflow: visible;
  white-space: normal;
}

.accueil-engagement strong {
  color: #6d4228;
  font-weight: 600;
}

.accueil > section + section {
  border-top: 1px solid var(--line);
  padding-top: var(--section-y);
}

.accueil-offers {
  padding: 0;
}

.accueil-offers .section-header {
  margin-bottom: 36px;
}

.accueil-offers-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.accueil-offers-grid li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.accueil-offers-grid li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.accueil-offers-grid li:nth-last-child(-n+2) {
  border-bottom: none;
}

.accueil-offers-grid a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.accueil-offer-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(97, 166, 171, 0.12);
  color: #4e8e93;
}

.accueil-offer-icon svg {
  display: block;
}

.accueil-offer-body strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: #6d4228;
  margin-bottom: 8px;
  line-height: 1.3;
}

.accueil-offer-body span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  color: #5c534c;
}

.accueil-offers-grid a:hover .accueil-offer-body strong {
  color: #4e8e93;
}

.accueil-offers-grid a:hover .accueil-offer-icon {
  background: rgba(97, 166, 171, 0.22);
}

.accueil-contact {
  padding: 0 0 8px;
  max-width: 560px;
}

.accueil-contact h2 {
  font-family: var(--font-title);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-h2);
  color: #6d4228;
  margin: 0 0 14px;
}

.accueil-contact .section-desc {
  margin-bottom: 24px;
}

/* ─── Avis Google (dernière section accueil) ─── */
.accueil-reviews {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 8px;
  background: transparent;
}

.accueil-reviews-inner {
  width: 100%;
  margin: 0;
}

.accueil-reviews .section-header {
  margin-bottom: 0;
  max-width: none;
  flex: 1;
  min-width: 0;
}

.accueil-reviews .section-desc,
.accueil-reviews .section-header .section-desc {
  max-width: none;
}

.accueil-reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  margin-bottom: 36px;
}

.accueil-reviews-score {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 7.5rem;
  padding: 8px 12px 4px;
}

.accueil-reviews-score-value {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: #2a221c;
  letter-spacing: -0.03em;
}

.accueil-reviews-score-stars {
  display: flex;
  gap: 3px;
  margin: 10px 0 8px;
  color: #f4b400;
}

.accueil-reviews-score-stars .accueil-reviews-star {
  width: 18px;
  height: 18px;
}

.accueil-reviews-score-count {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #5c534c;
}

.accueil-reviews-score:hover .accueil-reviews-score-count {
  color: #4e8e93;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.accueil-reviews-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.accueil-review-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.accueil-review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.accueil-review-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(97, 166, 171, 0.18);
  color: #4e8e93;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
}

.accueil-review-meta {
  min-width: 0;
  flex: 1;
}

.accueil-review-author {
  margin: 0;
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 600;
  color: #6d4228;
  line-height: 1.25;
}

.accueil-review-date {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #5c534c;
}

.accueil-reviews-g {
  flex-shrink: 0;
}

.accueil-review-stars,
.accueil-reviews-stars {
  display: flex;
  gap: 2px;
  margin: 0 0 12px;
  color: #e6b800;
}

.accueil-reviews-star {
  display: block;
}

.accueil-review-text {
  margin: 0;
  flex: 1;
}

.accueil-review-text p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  color: #5c534c;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
}

.accueil-reviews-empty {
  padding: 32px clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.accueil-reviews-empty .accueil-reviews-stars {
  justify-content: center;
  margin-bottom: 14px;
}

.accueil-reviews-empty p:last-child {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #5c534c;
}

.accueil-reviews-error {
  margin-top: 16px !important;
  padding: 12px 14px;
  border-radius: 4px;
  background: rgba(109, 66, 40, 0.08);
  font-size: 0.88rem !important;
  text-align: left;
  color: #6d4228 !important;
}

.accueil-reviews-actions {
  margin-top: 32px;
}

@media (max-width: 800px) {
  .accueil {
    --accueil-pad-x: 20px;
    --accueil-pad-y: 28px;
  }

  .accueil-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .accueil-hero-photo {
    order: -1;
    max-width: 280px;
  }

  .accueil-engagement p {
    text-align: left;
    font-size: 1.05rem;
    padding: 24px 20px;
  }

  .accueil-offers-grid {
    grid-template-columns: 1fr;
  }

  .accueil-offers-grid li:nth-child(odd) {
    border-right: none;
  }

  .accueil-offers-grid li:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .accueil-offers-grid li:last-child {
    border-bottom: none;
  }

  .accueil-offers-grid a {
    padding: 24px 0;
  }

  .accueil-reviews-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .accueil-reviews-score {
    align-items: flex-start;
    padding-left: 0;
  }

  .accueil-reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ─── Page Contact (+ formulaire) ─── */
.pef-contact-page {
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px);
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(97, 166, 171, 0.1), transparent 55%),
    #ffffff;
}

.pef-contact-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  grid-template-rows: auto 1fr;
  column-gap: 48px;
  row-gap: 16px;
  align-items: stretch;
  max-width: var(--container);
  margin-inline: auto;
}

.pef-contact-copy {
  grid-column: 1;
  grid-row: 1;
}

.pef-contact-title {
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  color: #6d4228;
  margin: 0 0 16px;
}

.pef-contact-copy .section-desc {
  margin-bottom: 24px;
  max-width: 40ch;
}

.pef-contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.pef-contact-details li {
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 3px solid #61a6ab;
}

.pef-contact-details strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #61a6ab;
  margin-bottom: 4px;
}

.pef-contact-details a {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #6d4228;
  text-decoration: none;
}

.pef-contact-details a:hover {
  color: #4e8e93;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pef-contact-photo {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  justify-self: start;
  margin: 0;
  max-width: 280px;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--taupe-soft);
  box-shadow: 0 18px 36px rgba(109, 66, 40, 0.1);
}

.pef-contact-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pef-contact-form-wrap {
  grid-column: 2;
  grid-row: 1 / -1;
  padding: 28px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #faf7f2;
}

.pef-contact-form-wrap > h2 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: #6d4228;
  margin: 0 0 8px;
}

.pef-contact-form-intro {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5c534c;
}

.pef-form-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.pef-form-status--ok {
  background: rgba(97, 166, 171, 0.15);
  color: #2a221c;
  border-left: 3px solid #61a6ab;
}

.pef-form-status--err {
  background: rgba(109, 66, 40, 0.08);
  color: #6d4228;
  border-left: 3px solid #6d4228;
}

.pef-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pef-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pef-form-field--full {
  grid-column: 1 / -1;
}

.pef-form-field label {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6d4228;
}

.pef-form-field .req {
  color: #c45c26;
}

.pef-form-field .opt {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #5c534c;
  font-size: 0.85rem;
}

.pef-form-field input,
.pef-form-field select,
.pef-form-field textarea {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(109, 66, 40, 0.22);
  border-radius: 4px;
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: #2a221c;
  box-shadow: none;
  height: auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pef-form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236d4228' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
}

.pef-form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.pef-form-field input:focus,
.pef-form-field select:focus,
.pef-form-field textarea:focus {
  outline: none;
  border-color: #61a6ab;
  box-shadow: 0 0 0 3px rgba(97, 166, 171, 0.2);
}

.pef-form-actions {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: flex;
  justify-content: center;
}

.pef-form-actions .btn {
  width: auto;
  max-width: max-content;
}

.pef-form-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .pef-contact-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 36px;
  }

  .pef-contact-copy,
  .pef-contact-photo,
  .pef-contact-form-wrap {
    grid-column: 1;
    grid-row: auto;
  }

  .pef-contact-photo {
    max-width: 240px;
    align-self: start;
  }
}

@media (max-width: 560px) {
  .pef-form {
    grid-template-columns: 1fr;
  }

  .pef-contact-form-wrap {
    padding: 22px 18px 26px;
  }
}

/* ─── Qui suis-je ─── */
.pef-about .pef-simple-inner {
  width: min(920px, 100% - 40px);
}

.pef-about-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.pef-about-copy .pef-simple-title {
  margin-bottom: 16px !important;
}

.pef-about-lead {
  margin: 0 0 24px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.55;
  color: #5c534c;
}

.pef-about-photo {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 360px;
  margin-inline: auto;
  background: var(--taupe-soft);
}

.pef-about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pef-about-highlights {
  list-style: none;
  margin: 0 0 48px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
}

.pef-about-highlights li {
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 3px solid #61a6ab;
}

.pef-about-highlights strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 600;
  color: #6d4228;
  margin-bottom: 6px;
  line-height: 1.3;
}

.pef-about-highlights span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5c534c;
}

.pef-about .pef-simple-content h2:first-child {
  margin-top: 0;
}

.pef-about-block {
  margin: 0 0 48px;
}

.pef-about-block .pef-simple-content .pef-simple-eyebrow {
  color: #61a6ab;
  margin: 0 0 10px;
}

.pef-about-block .pef-simple-content h2 {
  margin-top: 0.2em;
}

.pef-about-path {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.pef-about-path-visual {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 359 / 512;
  width: min(300px, 100%);
  max-width: 300px;
  margin-inline: auto;
  background: #faf7f2;
}

.pef-about-path-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.pef-about-panel {
  margin: 0;
  padding: 26px 28px 28px;
  border-radius: 4px;
  background: rgba(97, 166, 171, 0.08);
  border: 1px solid rgba(97, 166, 171, 0.22);
}

.pef-about-panel p {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: #5c534c;
  margin: 0 0 1em;
}

.pef-about-panel p:last-child {
  margin-bottom: 0;
}

.pef-about-panel-lead {
  font-family: var(--font-title);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  color: #6d4228;
}

.pef-about-relier {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.pef-about-move {
  margin: 0;
  max-width: 320px;
  margin-inline: auto;
}

.pef-about-move img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 800px) {
  .pef-about-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pef-about-photo {
    order: -1;
    max-width: 280px;
  }

  .pef-about-highlights {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 0;
    margin-bottom: 36px;
  }

  .pef-about-path,
  .pef-about-relier {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pef-about-path-visual {
    order: -1;
    width: min(240px, 72vw);
    max-width: none;
    margin-inline: auto;
  }

  .pef-about-move {
    order: -1;
    max-width: 240px;
  }

  .pef-about-panel {
    padding: 22px 20px 24px;
  }
}

/* ─── Page 404 ─── */
body.error404 .site-content,
body.error404 #primary,
body.error404 .site-content > .ast-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.error404 .entry-header,
body.error404 .ast-separate-container .ast-404-layout {
  display: none;
}

.pef-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 260px);
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 48px 20px 64px;
  background: #ffffff;
  text-align: center;
  box-sizing: border-box;
}

.pef-404-inner {
  width: min(560px, 100%);
  margin-inline: auto;
}

.pef-404 .pef-simple-eyebrow {
  text-align: center;
}

.pef-404-code {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: clamp(4.5rem, 18vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(160deg, #61a6ab 0%, #4e8e93 45%, #6d4228 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pef-404-title {
  margin: 0 0 16px;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  color: #6d4228;
}

.pef-404-lead {
  margin: 0 auto 32px;
  max-width: 42ch;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #5c534c;
}

.pef-404-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.pef-404-links {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.pef-404-links-title {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #61a6ab;
}

.pef-404-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pef-404-links a {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: #4e8e93;
  text-decoration: none;
}

.pef-404-links a:hover,
.pef-404-links a:focus {
  color: #6d4228;
  text-decoration: underline;
}

@media (max-width: 800px) {
  .pef-404 {
    min-height: calc(100vh - 220px);
    padding: 40px 20px 56px;
  }

  .pef-404-actions {
    flex-direction: column;
    align-items: center;
  }

  .pef-404-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .pef-404-links ul {
    flex-direction: column;
    gap: 12px;
  }
}

/* ─── Page offre (APP, etc.) ─── */
.pef-offer .pef-simple-inner {
  width: min(920px, 100% - 40px);
}

.pef-offer-intro {
  margin-bottom: 40px;
}

.pef-offer-intro .pef-simple-title {
  margin-bottom: 16px !important;
}

.pef-offer-lead {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-size: 1.12rem;
  line-height: 1.55;
  color: #5c534c;
  max-width: 42ch;
}

.pef-offer-quotes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
}

.pef-offer-quotes li {
  margin: 0;
  padding: 8px 14px;
  border-left: 3px solid #61a6ab;
  background: rgba(97, 166, 171, 0.08);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.4;
  color: #4e8e93;
}

.pef-offer .pef-simple-content h2:first-child {
  margin-top: 0;
}

.pef-offer-shift {
  margin: 0 0 1.4em;
  padding: 18px 20px 18px 22px;
  border-left: 3px solid #61a6ab;
  background: rgba(97, 166, 171, 0.08);
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: #6d4228;
}

.pef-offer-cycle {
  --n: 7;
  list-style: none;
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1;
  margin: 8px auto 40px;
  padding: 0;
}

.pef-offer-cycle::before {
  content: '';
  position: absolute;
  inset: 22%;
  border: 2px solid rgba(97, 166, 171, 0.35);
  border-radius: 50%;
}

.pef-offer-cycle::after {
  content: 'APP';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 222, 89, 0.55);
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6d4228;
}

.pef-offer-cycle li {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  margin: 0;
  padding: 8px 10px;
  text-align: center;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  color: #6d4228;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(109, 66, 40, 0.06);
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 360deg / var(--n))) translateY(-210px) rotate(calc(var(--i) * -360deg / var(--n)));
}

.pef-offer-contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 40px;
}

.pef-offer-contrast article {
  margin: 0;
  padding: 22px 22px 24px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.pef-offer-contrast-yes {
  background: rgba(97, 166, 171, 0.1);
  border-color: rgba(97, 166, 171, 0.28);
}

.pef-offer-contrast-no {
  background: #faf7f2;
}

.pef-offer-contrast-label {
  font-family: var(--font-title);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.pef-offer-contrast-yes .pef-offer-contrast-label {
  color: #4e8e93;
}

.pef-offer-contrast-no .pef-offer-contrast-label {
  color: #6d4228;
}

.pef-offer-contrast h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: #6d4228;
  margin: 0 0 10px;
  line-height: 1.35;
}

.pef-offer-contrast p:not(.pef-offer-contrast-label) {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5c534c;
  margin: 0;
}

.pef-offer-shared {
  margin: 8px 0 12px;
}

.pef-offer-shared-circle {
  width: min(640px, 100%);
  min-height: min(640px, 100vw - 40px);
  margin: 0 auto;
  padding: 72px 64px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 222, 89, 0.22), transparent 42%),
    radial-gradient(circle at 70% 78%, rgba(97, 166, 171, 0.16), transparent 48%),
    rgba(97, 166, 171, 0.08);
  border: 2px solid rgba(97, 166, 171, 0.32);
  box-sizing: border-box;
}

.pef-offer-shared-circle h2 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: #6d4228;
  margin: 0 0 12px;
  line-height: 1.3;
}

.pef-offer-shared-circle p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  color: #5c534c;
  margin: 0 0 10px;
}

.pef-offer-shared-circle ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
  max-width: 34ch;
  margin-inline: auto;
}

.pef-offer-shared-circle li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.45;
  color: #5c534c;
}

.pef-offer-shared-circle li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #61a6ab;
}

.pef-offer-principles {
  list-style: none;
  margin: 0 0 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
}

.pef-offer-principles li {
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 3px solid #61a6ab;
}

.pef-offer-principles strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 600;
  color: #6d4228;
  margin-bottom: 6px;
  line-height: 1.3;
}

.pef-offer-principles span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5c534c;
}

.pef-simple .pef-simple-content .pef-offer-not {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
}

.pef-simple .pef-simple-content .pef-offer-not li {
  margin: 0 0 10px;
  padding: 14px 16px;
  background: #faf7f2;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.pef-simple .pef-simple-content .pef-offer-not strong {
  color: #6d4228;
  font-family: var(--font-title);
  font-weight: 600;
}

.pef-offer-modalites {
  margin: 40px 0 0;
  padding-top: 8px;
}

.pef-offer-modalites > h2 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: #6d4228;
  margin: 0 0 18px;
  line-height: 1.3;
}

.pef-offer-modalites-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pef-offer-modalites-grid article {
  margin: 0;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
}

.pef-offer-modalite-label {
  font-family: var(--font-title);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #61a6ab;
  margin: 0 0 8px;
}

.pef-offer-modalites-grid h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: #6d4228;
  margin: 0 0 12px;
  line-height: 1.3;
}

.pef-offer-modalites-grid p,
.pef-offer-modalites-grid li {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: #5c534c;
  margin: 0;
}

.pef-offer-modalites-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pef-offer-modalites-grid li + li {
  margin-top: 12px;
}

.pef-offer-modalites-grid li strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 600;
  color: #4e8e93;
  margin-bottom: 4px;
}

.pef-offer-ref {
  margin: 48px 0 0;
}

.pef-offer-ref > h2 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: #6d4228;
  margin: 0 0 18px;
  line-height: 1.3;
}

.pef-offer-ref-card {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 16px;
  align-items: stretch;
}

.pef-offer-ref-copy,
.pef-offer-ref-badge {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.pef-offer-ref-copy {
  padding: 22px 24px;
}

.pef-offer-ref-copy p {
  margin: 0 0 0.85em;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: #5c534c;
}

.pef-offer-ref-copy p:last-child {
  margin-bottom: 0;
}

.pef-offer-ref-copy strong {
  font-weight: 600;
  color: #2a221c;
}

.pef-offer-ref-cert {
  font-family: var(--font-title);
  font-weight: 600;
  color: #6d4228 !important;
}

.pef-offer-ref-badge {
  display: grid;
  place-items: center;
  padding: 18px;
  text-decoration: none;
}

.pef-offer-ref-badge img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.pef-offer-ref-badge:hover,
.pef-offer-ref-badge:focus-visible {
  border-color: #61a6ab;
}

.pef-offer-cta {
  margin-top: 36px;
  padding-top: 8px;
  text-align: center;
}

.pef-offer-cta .pef-simple-engagement {
  margin: 0 0 20px;
}

.pef-offer-cta .hero-actions {
  justify-content: center;
}

@media (max-width: 800px) {
  .pef-offer-principles,
  .pef-offer-modalites-grid,
  .pef-offer-contrast,
  .pef-offer-ref-card {
    grid-template-columns: 1fr;
  }

  .pef-offer-cycle {
    aspect-ratio: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .pef-offer-cycle::before,
  .pef-offer-cycle::after {
    display: none;
  }

  .pef-offer-cycle li {
    position: static;
    width: auto;
    transform: none;
    border-radius: 4px;
  }

  .pef-offer-shared-circle {
    min-height: 0;
    padding: 28px 22px;
    border-radius: 24px;
  }

  .pef-offer-principles {
    gap: 18px;
    padding: 22px 0;
    margin-bottom: 32px;
  }

  .pef-offer-lead {
    max-width: none;
  }

  .pef-offer-intro .hero-actions,
  .pef-offer-cta .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pef-offer-intro .btn,
  .pef-offer-cta .btn {
    white-space: normal;
    text-align: center;
  }
}

/* ─── Responsive : tablette ─── */
@media (max-width: 960px) {
  :root {
    --section-y: 72px;
    --fs-body: 1.05rem;
    --lh-body: 1.45;
    --fs-hero: 2.35rem;
    --lh-hero: 1.18;
    --fs-h2: 1.85rem;
    --lh-h2: 1.22;
    --fs-h3: 1.1rem;
    --fs-lead: 1.08rem;
    --lh-lead: 1.5;
    --fs-brand-script: 1.65rem;
    --logo-size: 58px;
  }

  /* Header mobile : logo + hamburger */
  .header-inner {
    width: min(var(--container), 100% - 24px);
    min-height: 72px;
    justify-content: space-between;
    gap: 12px;
    position: relative;
  }

  .header-cta {
    display: none !important;
  }

  .pef-menu-toggle {
    display: grid;
  }

  .brand {
    flex-shrink: 1;
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .brand-star { display: none; }

  .brand-script {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: min(340px, 72vw);
  }

  /* Nav desktop cachée ; panneau mobile plein écran opaque */
  .nav--desktop {
    display: none !important;
  }

  .pef-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 96px 28px 40px;
    background: #ffffff !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  body.pef-has-studio-toolbar .pef-mobile-nav {
    padding-top: 136px;
  }

  .pef-mobile-nav.is-open,
  .pef-mobile-nav.is-open[hidden] {
    display: flex !important;
    z-index: 65;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .pef-mobile-nav .nav-link {
    font-family: var(--font-title);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #5c534c;
    padding: 11px 4px;
    border-bottom: 1px solid rgba(109, 66, 40, 0.1);
    text-decoration: none;
  }

  .pef-mobile-nav .nav-link::after {
    display: none;
  }

  .pef-mobile-nav .nav-link:hover,
  .pef-mobile-nav .nav-link.is-active {
    color: #6d4228;
  }

  .pef-mobile-nav .nav-link.is-active {
    font-weight: 600;
    box-shadow: inset 3px 0 0 #61a6ab;
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(97, 166, 171, 0.1), transparent 70%);
  }

  .pef-mobile-nav .nav-cta,
  .pef-mobile-nav a.nav-cta.btn {
    display: inline-flex !important;
    align-self: flex-start;
    margin-top: 22px;
    font-size: 0.82rem !important;
    padding: 10px 18px !important;
  }

  .pef-menu-toggle {
    position: relative;
    z-index: 70;
  }

  .page-hero-grid,
  .axes-layout,
  .themes-grid,
  .timeline,
  .contact-inner,
  .intro-strip-inner {
    grid-template-columns: 1fr;
  }

  /* Section 3 axes — forcer l’empilement (Elementor flex row résiste sinon) */
  .axes .axes-layout,
  .axes-layout,
  .axes.e-con,
  .elementor-element.axes > .e-con-inner,
  .elementor-element.axes-layout,
  .elementor-element.axes-layout > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 36px !important;
    width: 100% !important;
  }

  .axes .axes-layout > .e-con,
  .axes .axes-layout > .elementor-element,
  .elementor-element.axes-layout > .e-con,
  .elementor-element.axes-layout > .elementor-element,
  .axes > .e-con-inner > .e-con {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }

  .axes .venn,
  .elementor-widget-html .venn {
    position: relative;
    z-index: 0;
    width: min(260px, 72vw);
    margin: 0 auto 8px;
  }

  .axes .axes-list,
  .elementor-widget-html .axes-list {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  .page-hero-visual { min-height: 240px; order: -1; }
  .hero-orbits { width: min(260px, 80%); }

  .page-hero .elementor-heading-title,
  .page-hero-copy .elementor-heading-title {
    font-size: var(--fs-hero) !important;
    line-height: var(--lh-hero) !important;
  }

  .page-hero .lead,
  .page-hero-copy .lead,
  .page-hero .elementor-widget-text-editor,
  .page-hero-copy .elementor-widget-text-editor {
    font-size: var(--fs-lead) !important;
    line-height: var(--lh-lead) !important;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 31px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--teal), var(--yellow), var(--brown));
  }

  .timeline-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    text-align: left;
    align-items: start;
  }

  .timeline-icon {
    grid-row: 1 / span 2;
    margin: 0;
    box-shadow: 0 0 0 6px var(--white);
  }

  .timeline-step p { margin-inline: 0; }

  .ressource-ring {
    aspect-ratio: auto;
    border-radius: 50%;
    min-height: 420px;
  }
}

/* ─── Responsive : smartphone ─── */
@media (max-width: 560px) {
  :root {
    --section-y: 56px;
    --fs-body: 1rem;
    --lh-body: 1.5;
    --fs-hero: 2rem;
    --lh-hero: 1.2;
    --fs-h2: 1.55rem;
    --lh-h2: 1.25;
    --fs-h3: 1.05rem;
    --fs-lead: 1.02rem;
    --lh-lead: 1.55;
    --fs-eyebrow: 0.72rem;
    --fs-brand-script: 1.4rem;
    --logo-size: 48px;
  }

  .header-inner {
    width: min(var(--container), 100% - 20px);
    min-height: 64px;
    padding-block: 8px;
  }

  .header-cta { display: none !important; }

  .page-hero { padding: 40px 0 32px; }

  .brand-script {
    max-width: none;
  }

  .ressource-ring {
    border-radius: 28px;
    aspect-ratio: auto;
    min-height: 0;
    width: 100%;
  }

  .themes-grid {
    gap: 28px;
  }

  .footer-cert-logo {
    width: min(220px, 78vw);
  }

  .pef-simple {
    padding: 40px 0 56px;
  }

  .pef-simple-inner {
    width: min(720px, 100% - 32px);
  }

  .pef-offer .pef-simple-inner {
    width: min(920px, 100% - 32px);
  }
}

/* ─── Blog archive ─── */
.pef-blog-archive {
  width: min(var(--container), 100% - 40px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0;
}

.pef-blog-archive-header {
  margin-bottom: 40px;
}

.pef-blog-archive-title {
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #6d4228;
  margin: 0 0 12px;
  line-height: 1.2;
}

.pef-blog-archive-intro {
  margin: 0;
  color: #5c534c;
  font-size: 1.05rem;
  line-height: 1.55;
}

.pef-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pef-blog-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.pef-blog-card:hover {
  border-color: rgba(97, 166, 171, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(109, 66, 40, 0.08);
}

.pef-blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.pef-blog-card-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(97, 166, 171, 0.12);
}

.pef-blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pef-blog-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(97, 166, 171, 0.25), rgba(255, 222, 89, 0.2), rgba(109, 66, 40, 0.12));
}

.pef-blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
  flex: 1;
}

.pef-blog-card-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: #6d4228;
  margin: 0;
}

.pef-blog-card-excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5c534c;
  flex: 1;
}

.pef-blog-card-more {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: #4e8e93;
}

.pef-blog-card:hover .pef-blog-card-more {
  color: #6d4228;
}

.pef-blog-empty {
  color: #5c534c;
  font-size: 1.05rem;
}

.pef-blog-pagination {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.pef-blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pef-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid rgba(109, 66, 40, 0.18);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  color: #6d4228;
  text-decoration: none;
  background: #ffffff;
}

.pef-blog-pagination .page-numbers:hover {
  border-color: #61a6ab;
  color: #4e8e93;
}

.pef-blog-pagination .page-numbers.current {
  background: #61a6ab;
  border-color: #61a6ab;
  color: #ffffff;
}

.pef-blog-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

/* ─── Article seul ─── */
.pef-article {
  padding: clamp(40px, 6vw, 72px) 20px;
  background: #ffffff;
  width: 100%;
}

body.single-post .pef-article,
body.single-post .pef-article-inner {
  max-width: 740px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.pef-article-inner {
  max-width: 740px;
  width: 100%;
  margin-inline: auto;
}

.pef-article-header {
  margin-bottom: 28px;
}

.pef-article-header .section-eyebrow a {
  color: inherit;
  text-decoration: none;
}

.pef-article-header .section-eyebrow a:hover {
  color: #4e8e93;
}

.pef-article-title {
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #6d4228;
  margin: 0 0 12px;
}

.pef-article-meta {
  margin: 0;
  font-size: 0.95rem;
  color: #5c534c;
}

.pef-article-hero {
  margin: 0 0 32px;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(97, 166, 171, 0.12);
}

.pef-article-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pef-article-content {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2a221c;
}

.pef-article-content > *:first-child {
  margin-top: 0;
}

.pef-article-content p,
.pef-article-content ul,
.pef-article-content ol {
  margin: 0 0 1.15em;
  color: #5c534c;
}

.pef-article-content h2,
.pef-article-content h3,
.pef-article-content h4,
.pef-article-content h5,
.pef-article-content h6 {
  font-family: var(--font-title);
  font-weight: 600;
  color: #6d4228;
  line-height: 1.3;
}

.pef-article-content h2 {
  font-size: 1.2rem;
  margin: 1.45em 0 0.45em;
}

.pef-article-content h3 {
  font-size: 1.05rem;
  margin: 1.3em 0 0.4em;
}

.pef-article-content h4 {
  font-size: 0.98rem;
  margin: 1.2em 0 0.35em;
}

.pef-article-content h5,
.pef-article-content h6 {
  font-size: 0.92rem;
  margin: 1.15em 0 0.3em;
}

.pef-article-content a {
  color: #4e8e93;
}

.pef-article-content img {
  border-radius: 4px;
}

.pef-article-back {
  margin: 28px 0 0;
}

.pef-article-back a {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: #4e8e93;
  text-decoration: none;
}

.pef-article-back a:hover {
  color: #6d4228;
}

/* Partage */
.pef-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pef-share-label {
  margin: 0;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #61a6ab;
}

.pef-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pef-share-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.75px solid #61a6ab;
  color: #6d4228;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.pef-share-link:hover {
  background: #61a6ab;
  border-color: #61a6ab;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Masquer chrome article Astra quand nos templates sont actifs */
body.blog .site-content > .ast-container,
body.single-post .site-content > .ast-container {
  max-width: none;
  padding: 0;
}

body.blog #primary,
body.single-post #primary {
  margin: 0;
  padding: 0;
}

@media (max-width: 960px) {
  .pef-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .pef-blog-archive {
    width: min(var(--container), 100% - 32px);
  }

  .pef-blog-grid {
    grid-template-columns: 1fr;
  }

  body.single-post .pef-article,
  body.single-post .pef-article-inner,
  .pef-article-inner {
    max-width: 740px;
  }
}

/* ─── Lecture du certificat Qualiopi (sans téléchargement) ─── */
.pef-cert-modal {
  padding: 0;
  border: none;
  border-radius: 8px;
  width: min(880px, calc(100vw - 32px));
  max-height: min(920px, calc(100vh - 32px));
  overflow: hidden;
  background: #ffffff;
  color: var(--text);
}

.pef-cert-modal[open] {
  display: flex;
  flex-direction: column;
}

.pef-cert-modal::backdrop {
  background: rgba(42, 34, 28, 0.72);
}

.pef-cert-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.pef-cert-bar h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown);
}

.pef-cert-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brown);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.pef-cert-close:hover,
.pef-cert-close:focus {
  background: var(--taupe-soft);
}

.pef-cert-pages {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding: 16px;
  background: #f4f0ee;
  user-select: none;
}

.pef-cert-status {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-muted);
}

.pef-cert-pages canvas {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(109, 66, 40, 0.08);
  pointer-events: none;
}

@media print {
  .pef-cert-modal {
    display: none !important;
  }
}

/* Fiches formations : lecture du PDF dans la page, téléchargement autorisé. */
.pef-fiche-modal {
  padding: 0;
  border: none;
  border-radius: 8px;
  width: min(960px, calc(100vw - 32px));
  height: min(920px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  background: #ffffff;
  color: var(--text);
}

.pef-fiche-modal[open] {
  display: flex;
  flex-direction: column;
}

.pef-fiche-modal::backdrop {
  background: rgba(42, 34, 28, 0.72);
}

.pef-fiche-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.pef-fiche-bar h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brown);
}

.pef-fiche-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

a.pef-fiche-download {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #6d4228;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

a.pef-fiche-download:hover,
a.pef-fiche-download:focus {
  background: #8a5a3a;
  color: #ffffff;
}

.pef-fiche-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brown);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.pef-fiche-close:hover,
.pef-fiche-close:focus {
  background: var(--taupe-soft);
}

.pef-fiche-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #f4f0ee;
}

.pef-fiche-status {
  margin: 0;
  padding: 28px 20px;
  font-family: var(--font-body);
  color: var(--text-muted);
}

.pef-fiche-download[hidden],
.pef-fiche-frame[hidden],
.pef-fiche-status[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .pef-fiche-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pef-fiche-bar-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media print {
  .pef-fiche-modal {
    display: none !important;
  }
}

/* ─── Formations : page d’entrée + fiches ─── */
/* Sort du gabarit Astra (colonne + contenu à 720px) pour aligner le fond sur l’en-tête. */
body:has(.formations-hub) .site-content > .ast-container,
body:has(.formations-family) .site-content > .ast-container,
body:has(.formations-hub) #primary,
body:has(.formations-family) #primary,
body:has(.formations-hub) .site-main,
body:has(.formations-family) .site-main,
body:has(.formations-hub) .ast-article-single,
body:has(.formations-family) .ast-article-single,
body.pef-injected-chrome:has(.formations-hub) .entry-content,
body.pef-injected-chrome:has(.formations-family) .entry-content {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  float: none;
}

body:has(.formations-hub) #secondary,
body:has(.formations-hub) .widget-area,
body:has(.formations-family) #secondary,
body:has(.formations-family) .widget-area {
  display: none;
}

/* Le widget HTML Elementor de la page est réglé à ~81 % et ne s’étire pas. */
.elementor .elementor-widget-html.elementor-element:has(.formations-hub),
.elementor .elementor-widget-html.elementor-element:has(.formations-family),
.elementor-element:has(.formations-hub) > .e-con-inner,
.elementor-element:has(.formations-family) > .e-con-inner,
.e-con:has(.formations-hub) > .e-con-inner,
.e-con:has(.formations-family) > .e-con-inner,
.elementor-section:has(.formations-hub) > .elementor-container,
.elementor-section:has(.formations-family) > .elementor-container,
.elementor-widget-html:has(.formations-hub) .elementor-widget-container,
.elementor-widget-html:has(.formations-family) .elementor-widget-container {
  --container-widget-width: 100%;
  --container-widget-flex-grow: 1;
  --flex-grow: 1;
  --flex-shrink: 1;
  flex-grow: 1;
  align-self: stretch;
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.formations-hub,
.formations-family {
  --formations-pad-x: clamp(20px, 4vw, 48px);
  width: 100%;
  max-width: none;
  padding: clamp(28px, 4vw, 56px) var(--formations-pad-x) clamp(48px, 6vw, 88px);
  background:
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(97, 166, 171, 0.1), transparent 55%),
    #ffffff;
  color: var(--text);
}

.formations-hub {
  background:
    radial-gradient(ellipse 80% 45% at 100% 0%, rgba(97, 166, 171, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 35% at 0% 18%, rgba(255, 222, 89, 0.16), transparent 50%),
    #faf7f2;
}

.formations-wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.formations-family .formations-wrap {
  width: min(1120px, 100%);
}

.formations-family .formations-hero-lead,
.formations-family .formations-hero-text,
.formations-family .formation-fiche > p {
  max-width: none;
}

.formations-hero {
  padding: 8px 0 8px;
}

.formations-hub .formations-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px 48px;
  align-items: center;
}

.formation-back {
  margin: 0 0 18px;
}

.formation-back a {
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-deep);
  text-decoration: none;
}

.formation-back a::before {
  content: "← ";
}

.formation-back a:hover {
  color: var(--brown);
}

.formations-hero h1,
.formations-family-col h2,
.formations-method h2,
.formations-path h2,
.formations-custom h2,
.formation-meta h2,
.formation-fiche h2 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.2;
}

.formations-hero h1 {
  font-size: var(--fs-hero);
  margin: 0 0 16px;
}

.formations-hero-lead {
  margin: 0 0 14px;
  max-width: 42rem;
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--brown);
}

.formations-hero-text,
.formations-family-col > p:not(.section-eyebrow),
.formations-path > p,
.formations-custom > p,
.formation-fiche > p {
  margin: 0 0 1em;
  max-width: 68ch;
  color: var(--text-muted);
  line-height: 1.6;
}

.formations-process {
  margin: 28px 0 8px;
  padding: 28px clamp(18px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
}

.formations-process h2 {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brown);
}

.formations-process p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.formations-families {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 64px;
  margin-top: 64px;
}

.formations-families::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: rgba(109, 66, 40, 0.28);
  pointer-events: none;
}

.formations-family-col {
  padding: 0;
  background: none;
}

.formations-family-banner {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: var(--fs-h2) !important;
  line-height: var(--lh-h2);
  color: var(--brown);
}

.formations-family-col--communes .formations-family-banner {
  background: rgba(97, 166, 171, 0.16);
}

.formations-family-col--enfance .formations-family-banner {
  background: rgba(255, 222, 89, 0.55);
}

.formations-family-col h2 a {
  color: inherit;
  text-decoration: none;
}

.formations-family-banner a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.formations-family-lead {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--brown) !important;
}

.formation-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}

.formation-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.formation-card:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.formation-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #faf7f2;
  border: 1px solid var(--line);
}

.formation-icon svg,
.formation-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.formation-card-body strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brown);
}

.formation-card-body span {
  display: block;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.formation-card-more {
  grid-column: 2;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.formation-card-more::after {
  content: " →";
}

.formation-card:hover .formation-card-body strong,
.formation-card:hover .formation-card-more {
  color: var(--teal-deep);
}

.formations-method,
.formations-path,
.formations-custom {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.formations-method .section-header,
.formations-path .section-header {
  max-width: none;
  margin-bottom: 28px;
}

.formations-method .section-desc,
.formations-path .section-desc,
.formations-path > p,
.formations-custom > p,
.formations-path-note {
  max-width: none;
}

.formations-steps,
.formations-path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.formations-path-steps + p {
  margin-top: 1.6em;
}

.formations-steps li,
.formations-path-steps li {
  margin: 0;
  padding: 18px 16px 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.formations-step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--brown);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
}

.formations-path-steps .formations-step-num {
  background: var(--teal);
  color: #ffffff;
}

.formations-steps h3,
.formations-path-steps h3,
.formation-fiche h3,
.formation-fiche h4 {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.3;
  color: var(--brown);
}

.formations-steps h3,
.formations-path-steps h3 {
  font-size: 1.02rem;
}

.formations-steps p,
.formations-path-steps p {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.formations-path-note {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--teal);
  background: rgba(97, 166, 171, 0.08);
  color: var(--text);
}

.formations-path-link {
  margin-top: 8px;
}

.formations-path-link a {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--teal-deep);
  text-decoration: none;
}

.formations-path-link a:hover {
  color: var(--brown);
}

.formations-custom h2 {
  margin: 0 0 14px;
  font-size: var(--fs-h2);
}

.formations-custom .hero-actions {
  margin-top: 8px;
  justify-content: center;
}

.formations-bookly {
  scroll-margin-top: 7.5rem;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.formations-bookly .section-header {
  max-width: 40rem;
}

.formations-bookly-form {
  margin-top: 8px;
}

.formations-bookly-form .bookly-form {
  max-width: 720px;
}

.formation-meta {
  margin: 36px 0 8px;
  padding: 22px 22px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #faf7f2;
}

.formation-meta h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.formation-meta dl {
  margin: 0;
}

.formation-meta dl > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.formation-meta dt {
  margin: 0;
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brown);
}

.formation-meta dd {
  margin: 0;
  color: var(--text-muted);
}

.formation-fiche {
  scroll-margin-top: 7.5rem;
  margin-top: 28px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}

.formation-fiche:target {
  margin-inline: -16px;
  padding: 28px 16px 16px;
  border-radius: 4px;
  background: rgba(255, 222, 89, 0.22);
  border-top-color: transparent;
}

.formation-fiche-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 16px;
}

.formation-fiche-head > h2,
.formation-fiche-head > div {
  flex: 1 1 16rem;
  min-width: 0;
}

button.btn.formation-pdf {
  width: auto;
  margin-left: auto;
  flex: 0 0 auto;
}

.formation-objectives {
  margin: 1.5em 0 1.25em;
  padding: 16px 18px 6px;
  border-radius: 4px;
  background: rgba(255, 222, 89, 0.48);
  box-shadow: inset 4px 0 0 var(--brown);
}

.formation-fiche .formation-objectives h3 {
  margin: 0 0 0.45em;
  font-size: 1.15rem;
  color: var(--brown);
}

.formation-fiche .formation-objectives p,
.formation-fiche .formation-objectives ul,
.formation-fiche .formation-objectives li {
  color: var(--text);
}

.formation-fiche .formation-objectives ul {
  margin-bottom: 0.55em;
}

.formation-fiche h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.formation-fiche-duration {
  margin: 4px 0 0;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.formation-goal strong {
  color: var(--brown);
  font-weight: 600;
}

.formation-fiche h3 {
  margin: 1.4em 0 0.45em;
  font-size: 1.05rem;
  color: var(--teal-deep);
}

.formation-fiche h4 {
  margin: 1.2em 0 0.4em;
  font-size: 1rem;
}

.formation-fiche ul,
.formation-sequences {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
  color: var(--text-muted);
}

.formation-fiche ul {
  list-style: disc;
}

.formation-sequences {
  list-style: none;
  padding-left: 0;
  counter-reset: sequence;
}

.formation-sequences > li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.45em;
  padding-left: 0;
}

.formation-sequences > li::before {
  content: "séquence " counter(sequence) ".";
  counter-increment: sequence;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--teal-deep);
}

.formation-fiche li {
  margin: 0 0 0.4em;
  padding-left: 0.15em;
}

.formation-welcome {
  padding: 12px 14px;
  border-radius: 4px;
  background: rgba(97, 166, 171, 0.08);
}

.formation-end {
  font-style: italic;
}

.formations-family-cta {
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .formations-families,
  .formations-steps,
  .formations-path-steps,
  .formations-hub .formations-hero {
    grid-template-columns: 1fr;
  }

  .formations-families::before {
    display: none;
  }

  .formations-family-col + .formations-family-col {
    border-top: 4px solid rgba(109, 66, 40, 0.28);
    padding-top: 8px;
  }
}

@media (max-width: 640px) {
  .formations-families,
  .formations-steps,
  .formations-path-steps,
  .formation-meta dl > div {
    grid-template-columns: 1fr;
  }

  .formation-card {
    grid-template-columns: 1fr;
  }

  .formation-card-more {
    grid-column: 1;
  }

  .formation-fiche-head {
    align-items: flex-start;
  }

  button.btn.formation-pdf {
    margin-left: 0;
  }
}
