/* celloMagna — Style Amaeya
   Palette : Blanc · Noir · Orange #F4471F · Lavande dorée #F0C987
   Fonts : Jost (≈ Europa) pour les titres, DM Sans (≈ Sophia Pro) pour le texte */

:root {
  --maxw:       1100px;
  --am-white:   #FFFFFF;
  --am-black:   #111111;
  --am-gray:    #F5F5F3;
  --am-gray2:   #EEEEEE;
  --am-orange:  #F4471F;
  --am-orange-d:#D2360F; /* WCAG AA 4.9:1 sur blanc — fond bouton texte blanc (H1) */
  --am-orange-dd:#B02D0C; /* état :hover des boutons (fond -d) */
  --am-lav:     #F0C987;
  --am-lav-d:   #C8902F;
  --am-gold-d:  #8A6410; /* WCAG AA 5.4:1 sur blanc — texte/glyphes dorés (ex-lav-d échouait 2.8:1) */
  --am-lav-pale:#FBF1DC;
  --am-line:    #E8E8E8;
  --am-text:    #111111;
  --am-muted:   #767676; /* WCAG AA 4.54:1 sur blanc (NFR-10) ; ex-#999999 = 2.85:1 echec */
  --am-sub:     #555555;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #FFFFFF;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--am-black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--am-black);
  font-weight: 400;
  font-family: 'Jost', Georgia, serif;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }

/* ================================================================
   NAV
   ================================================================ */
.am-nav {
  border-bottom: 1px solid var(--am-line);
  background: #FFFFFF;
  position: sticky; top: 0; z-index: 100;
}
.am-nav-inner {
  max-width: var(--maxw);
  margin: 0 auto; padding: 16px 24px; width: 100%;
  display: flex; align-items: center; gap: 18px;
}
.am-brand {
  font-family: 'Jost', sans-serif;
  font-weight: 500; font-size: 1.5rem; letter-spacing: -.02em; color: var(--am-black);
  text-decoration: none; flex-shrink: 0;
  display: flex; align-items: flex-start;
}
.am-brand .o { color: var(--am-orange-d); }
.am-brand sup {
  font-size: .5rem; font-family: 'DM Sans', sans-serif;
  color: var(--am-black); margin-top: .35em; margin-left: 1px;
}
.am-nav-links {
  display: flex; align-items: center; gap: 22px; margin-left: 14px;
}
.am-nav-links a {
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .95rem;
  color: var(--am-black); text-decoration: none; padding: 4px 0;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.am-nav-links a:hover { color: var(--am-orange-d); }
.am-nav-links a.active { color: var(--am-orange-d); border-bottom-color: var(--am-orange); }
@media (max-width: 760px) {
  .am-nav-links { display: none; }
}
.am-actions {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto;
}
.am-authors {
  display: flex; align-items: center; gap: 9px;
  background: var(--am-white); border: 1px solid var(--am-line); border-radius: 999px; padding: 4px 14px 4px 6px;
}
.am-avatars { display: flex; }
.am-avatars span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--am-white);
  overflow: hidden; margin-left: -9px; background: var(--am-lav); }
.am-avatars span:first-child { margin-left: 0; }
.am-avatars img { width: 100%; height: 100%; object-fit: cover; }
.am-authors b { font-family: 'DM Sans', sans-serif; font-size: .85rem; color: var(--am-black); font-weight: 700; }
.am-login {
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .9rem;
  color: var(--am-black); text-decoration: none;
  background: var(--am-white); border: 1px solid var(--am-line); border-radius: 999px; padding: 9px 20px;
}
.am-join {
  background: var(--am-lav);
  color: var(--am-black);
  font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: .9rem;
  padding: 9px 20px; border-radius: 999px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .18s;
}
.am-join:hover { background: var(--am-lav-d); color: var(--am-white); }
@media (max-width: 880px) { .am-authors, .am-login { display: none; } }

/* ================================================================
   HERO
   ================================================================ */
.am-hero {
  border-bottom: 1px solid var(--am-line);
  background: #FFFFFF;
  padding: 22px 0 50px;
}
.am-hero-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 200px 1fr;
  gap: 36px; align-items: start;
}
@media (max-width: 860px) {
  .am-hero-grid { grid-template-columns: 1fr; }
  .am-hero-sidebar { display: none; }
}

.am-hero-sidebar { padding-top: 14px; position: sticky; top: 88px; align-self: start; }
.am-aster { color: var(--am-lav-d); font-size: 1.5rem; margin-bottom: 18px; display: block; }
.am-sidebar-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 30px; }
.am-sidebar-links a {
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--am-black);
  padding: 2px 0; text-decoration: none; transition: color .15s;
}
.am-sidebar-links a.muted { color: var(--am-muted); font-weight: 600; }
.am-sidebar-links a:hover, .am-sidebar-links .active { color: var(--am-orange-d); }
.am-blog { display: flex; align-items: center; gap: 12px; }
.am-blog img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; flex: none; }
.am-blog .lbl { font-family: 'Jost', sans-serif; font-weight: 600; font-size: .8rem; letter-spacing: .02em; }
.am-blog .sub { font-size: .76rem; color: var(--am-muted); margin-bottom: 4px; font-family: 'DM Sans', sans-serif; }
.am-blog .view { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .85rem;
  font-family: 'DM Sans', sans-serif; text-decoration: none; color: var(--am-black); }
.am-blog .view .a { width: 22px; height: 22px; border-radius: 50%; background: var(--am-orange); color: var(--am-white);
  display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; }

.am-hero-main { position: relative; padding-top: 4px; }
.am-stat-box {
  position: absolute; top: 12px; right: 0; max-width: 290px;
  font-family: 'DM Sans', sans-serif; font-size: .92rem; color: var(--am-sub); line-height: 1.5;
}
.am-stat-box strong { color: var(--am-orange-d); font-weight: 800; }
.am-headline {
  font-family: 'Jost', sans-serif;
  font-size: clamp(2.8rem, 6.2vw, 6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--am-black);
}
.am-headline .accent {
  color: var(--am-lav-d);
  font-style: italic;
  font-weight: 300;
}
.am-headline .chev {
  color: var(--am-lav-d); font-weight: 500; display: inline-block;
  transform: translateY(-.05em); margin: 0 .1em; letter-spacing: -.1em;
}
.am-work {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--am-orange-d); color: var(--am-white);
  font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 1.05rem;
  padding: 9px 24px 9px 9px; border-radius: 999px;
  vertical-align: middle; margin-left: .2em; text-decoration: none;
  box-shadow: 0 8px 22px -10px rgba(255,80,0,.5); transition: background .18s;
}
.am-work:hover { background: var(--am-orange-dd); }
.am-work .a {
  width: 38px; height: 38px; border-radius: 50%; background: var(--am-white); color: var(--am-orange-d);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex: none;
}
.am-hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  /* H1 (rapport.md) : fond orange foncé — blanc/#D2360F ≈ 4.9:1 (AA) ;
     l'orange vif #F4471F sur blanc n'est que 3.64:1, KO pour ce label ~15px. */
  background: var(--am-orange-d); color: var(--am-white);
  font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: .92rem;
  padding: 12px 20px; border-radius: 999px;
  text-decoration: none; align-self: flex-start;
  box-shadow: 0 6px 20px -8px rgba(255,80,0,.4);
  transition: background .18s;
}
.am-hero-cta:hover { background: var(--am-orange-d); }

/* ================================================================
   BENTO GRID
   ================================================================ */
.am-bento {
  max-width: var(--maxw); margin: 0 auto; padding: 20px 24px 8px;
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 148px; gap: 14px;
}
@media (max-width: 900px) { .am-bento { grid-template-columns: repeat(2, 1fr); } }

.bt {
  border-radius: 18px; padding: 22px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.bt-dark   { background: var(--am-black); color: var(--am-white); }
.bt-orange { background: var(--am-orange); color: var(--am-white); }
.bt-lav    { background: var(--am-lav); color: var(--am-black); }
.bt-lav-d  { background: var(--am-lav-d); color: var(--am-white); }
.bt-lav-pale { background: var(--am-lav-pale); color: var(--am-black); }
.bt-gray   { background: var(--am-gray); color: var(--am-black); }
.bt-white  { background: var(--am-white); border: 1px solid var(--am-line); color: var(--am-black); }

.bt-title { font-family: 'Jost', sans-serif; font-weight: 400; font-size: 1.05rem; line-height: 1.18; letter-spacing: -0.01em; color: inherit; }
.bt-text  { font-size: .84rem; line-height: 1.45; opacity: .9; margin-top: 4px; color: inherit; font-family: 'DM Sans', sans-serif; }

.t-pills  { grid-column: span 2; grid-row: span 2; justify-content: center; gap: 4px; }
.t-feat   { grid-column: span 2; grid-row: span 2; justify-content: center; }
.t-feat .bt-title { font-size: 1.6rem; line-height: 1.12; }
.t-person { grid-column: span 2; grid-row: span 2; padding: 0; }
.t-note   { grid-column: span 1; grid-row: span 1; align-items: center; justify-content: center; }
.t-cello  { grid-column: span 1; grid-row: span 1; align-items: center; justify-content: center; }
.t-staff  { grid-column: span 2; grid-row: span 1; align-items: center; justify-content: center; }
.t-audio  { grid-column: span 1; grid-row: span 1; align-items: center; justify-content: center; }
.t-fork   { grid-column: span 1; grid-row: span 1; align-items: center; justify-content: center; }

.bt-pill-o {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: 8px 16px; font-family: 'DM Sans', sans-serif;
  font-size: .9rem; font-weight: 700; margin-bottom: 9px; width: fit-content;
  color: inherit; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.bt-pill-o:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.65); transform: translateX(2px); }
.bt-pill-o .pl { width: 22px; height: 22px; border-radius: 50%; background: var(--am-white); color: #141414;
  display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.bt-person-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.bt-feat-eyebrow { font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; opacity: .8; margin-bottom: 8px; }
svg.deco { width: 100%; height: 100%; }

/* ================================================================
   SECTION HEADER
   ================================================================ */
.am-section { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; }
.am-section-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: end; margin-bottom: 40px;
  padding-bottom: 24px; border-bottom: 1px solid var(--am-line);
}
@media (max-width: 680px) { .am-section-top { grid-template-columns: 1fr; } }

.am-section-num {
  font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 800;
  color: var(--am-orange-d); letter-spacing: 1px; margin-bottom: 6px; display: block;
}
.am-section-h2 {
  font-family: 'Jost', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 400;
  color: var(--am-black); line-height: 1.08; letter-spacing: -0.01em;
}
.am-section-desc {
  font-size: .95rem; color: var(--am-sub); line-height: 1.7; font-family: 'DM Sans', sans-serif;
}
.am-section-desc strong { color: var(--am-orange-d); }

/* ================================================================
   CARDS ÉQUIPE / CONTENU
   ================================================================ */
.am-show-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 760px) { .am-show-grid { grid-template-columns: 1fr; } }

.am-show-card {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--am-line); background: var(--am-white);
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.am-show-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px -16px rgba(0,0,0,.15); }

.am-show-thumb {
  height: 160px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.am-show-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.am-show-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.am-show-thumb .thumb-ico { position: relative; z-index: 2; font-size: 3.2rem; }

.am-show-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.am-show-body h3 { font-family: 'Jost', sans-serif; font-weight: 400; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--am-black); margin-bottom: 6px; }
.am-show-body p { font-size: .86rem; color: var(--am-sub); flex: 1; line-height: 1.55; }
.am-show-role { color: var(--am-orange-d); font-size: .8rem; font-weight: 800; margin-bottom: 4px; font-family: 'DM Sans', sans-serif; }
.am-show-meta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-family: 'DM Sans', sans-serif;
  font-size: .76rem; font-weight: 700; letter-spacing: .02em; color: var(--am-gold-d);
}
.am-show-meta::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--am-lav);
}
.am-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: .82rem;
  color: var(--am-orange-d); margin-top: 14px; text-decoration: none;
}
.am-arrow-box {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--am-gray);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--am-orange-d); transition: background .15s;
}
.am-show-card:hover .am-arrow-box { background: var(--am-orange); color: var(--am-white); }

/* ================================================================
   SECTION PARCOURS
   ================================================================ */
.am-parcours { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; }
.am-parcours-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 700px) { .am-parcours-top { grid-template-columns: 1fr; } }

.am-parcours-tags { display: flex; flex-direction: column; gap: 10px; }
.am-parcours-tag {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border: 1px solid var(--am-line); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .92rem; color: var(--am-black);
  background: var(--am-white); text-decoration: none; transition: background .15s, border-color .15s;
}
.am-parcours-tag:hover { background: var(--am-lav-pale); border-color: var(--am-lav); }
.am-parcours-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--am-orange); }
.am-parcours-tag .tag-arrow {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--am-gray); display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: var(--am-sub);
}

.am-circle-row { display: flex; gap: 12px; align-items: center; overflow-x: auto; padding: 8px 0; }
.am-circle {
  width: 100px; height: 100px; border-radius: 50%; flex-shrink: 0;
  position: relative; overflow: hidden;
  border: 3px solid var(--am-white); box-shadow: 0 4px 12px rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
}
.am-circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.am-circle:not(:first-child) { margin-left: -20px; }
.am-parcours-cols { display:grid; grid-template-columns:260px 1fr; gap:40px; align-items:start; }
.am-parcours-cols > * { min-width:0; }
@media (max-width:700px){ .am-parcours-cols { grid-template-columns:1fr; } }

/* --- Cards « niveaux » (section 03 de l'accueil) --- */
.am-niveaux-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.am-niveau-card {
  flex: 0 1 238px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: var(--am-white);
  border: 1px solid var(--am-line);
  border-radius: 18px;
  text-decoration: none;
  color: var(--am-text);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.am-niveau-card:hover {
  transform: translateY(-3px);
  border-color: var(--am-lav);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.18);
}
/* Icône en filigrane de fond. */
.am-niveau-card-bg {
  position: absolute;
  top: -18px;
  right: -16px;
  z-index: 0;
  color: var(--am-orange-d);
  opacity: .08;
  pointer-events: none;
  line-height: 0;
  transition: opacity .2s, color .2s;
}
.am-niveau-card-bg svg { height: 150px; width: auto; }
.am-niveau-card:hover .am-niveau-card-bg { opacity: .14; color: var(--am-orange-d); }
/* Contenu au-dessus du filigrane. */
.am-niveau-card-top,
.am-niveau-card-title,
.am-niveau-card-desc,
.am-niveau-card-foot { position: relative; z-index: 1; }
.am-niveau-card-top { display: flex; align-items: center; justify-content: space-between; }
.am-niveau-card-num {
  font-family: 'Jost', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--am-muted);
}
.am-niveau-card-title {
  font-family: 'Jost', Georgia, serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0;
  /* Réserve 2 lignes → toutes les cards alignées même si le titre tient sur 1 ligne. */
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.am-niveau-card-desc {
  font-size: .92rem;
  line-height: 1.5;
  color: var(--am-sub);
  margin: 0;
  /* Réserve 3 lignes (clamp) → hauteur de contenu identique pour toutes les cards. */
  min-height: 4.5em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.am-niveau-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--am-line);
}
.am-niveau-card-count {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--am-muted);
}
.am-niveau-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--am-gray);
  color: var(--am-text);
  transition: background .2s, color .2s, transform .2s;
}
.am-niveau-card:hover .am-niveau-card-arrow { background: var(--am-orange); color: var(--am-white); transform: translateX(2px); }

/* ================================================================
   BROWSE BY LEVEL
   ================================================================ */
.am-browse { border-top: 1px solid var(--am-line); padding: 60px 0 0; scroll-margin-top: 90px; }
.am-section, .am-parcours { scroll-margin-top: 90px; }
.am-browse-title {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px 40px;
  font-family: 'Jost', sans-serif;
  font-size: clamp(3rem, 7vw, 7rem); font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1; color: var(--am-lav);
  letter-spacing: -1px;
}
.am-browse-title em { color: var(--am-orange-d); font-style: italic; }

.am-level-list { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.am-level-item {
  display: flex; align-items: center; padding: 22px 0;
  border-top: 1px solid var(--am-line); position: relative;
  text-decoration: none; color: inherit; transition: background .15s;
}
.am-level-item:last-child { border-bottom: 1px solid var(--am-line); }
.am-level-num {
  font-family: 'DM Sans', sans-serif; font-size: .75rem; font-weight: 800;
  color: var(--am-muted); width: 48px; flex-shrink: 0; letter-spacing: .5px;
}
.am-level-name {
  flex: 1; font-family: 'Jost', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 400; color: var(--am-black);
  letter-spacing: -0.01em; transition: color .15s;
}
.am-level-item:hover .am-level-name { color: var(--am-orange-d); }
.am-level-count {
  font-family: 'DM Sans', sans-serif; font-size: .8rem; font-weight: 700; color: var(--am-muted); margin-right: 18px;
}
.am-level-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--am-gray); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--am-sub); transition: background .15s;
}
.am-level-item:hover .am-level-icon { background: var(--am-orange); color: var(--am-white); }
.am-float-photo {
  position: absolute; right: 80px; top: 50%; transform: translateY(-50%) rotate(-4deg);
  width: 110px; height: 80px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.15); border: 3px solid var(--am-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; background: var(--am-gray); pointer-events: none;
}
.am-float-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ================================================================
   CTA SECTION
   ================================================================ */
.am-cta {
  background: var(--am-black);
  padding: 80px 24px; text-align: center; position: relative; overflow: hidden;
}
.am-cta::before {
  content: "";
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(200,184,255,.05); pointer-events: none;
}
.am-cta .eyebrow { color: var(--am-lav); display: block; margin-bottom: 14px; }
.am-cta h2 {
  font-family: 'Jost', sans-serif;
  font-size: clamp(2rem,4vw,3.4rem); font-weight: 900;
  color: var(--am-white); max-width: 18ch; margin: 0 auto 20px; line-height: 1.08;
}
.am-cta p { color: rgba(255,255,255,.55); max-width: 44ch; margin: 0 auto 32px; font-size: 1rem; }
.am-cta a {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--am-orange-d); color: var(--am-white);
  font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 1rem;
  padding: 14px 30px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255,80,0,.35); text-decoration: none;
  transition: background .18s, transform .15s; position: relative; z-index: 1;
}
.am-cta a:hover { background: var(--am-orange-dd); transform: translateY(-2px); }

/* Séparateur */
.full-border { border-top: 1px solid var(--am-line); }

/* Note banner */
.note-banner { background: var(--am-lav); color: var(--am-black); text-align: center; font-weight: 700; font-size: .82rem; padding: 8px; }

/* ================================================================
   FOOTER
   ================================================================ */
footer { background: #0d0d0d; color: #888; padding: 50px 0 36px; }
footer a { color: var(--am-lav); }
footer .cols { display:flex; justify-content:space-between; gap:30px; flex-wrap:wrap; }
footer .brand { display: flex; align-items: center; gap: 11px; font-family: 'Jost'; font-weight: 500; font-size: 1.4rem; letter-spacing: -.02em; color: var(--am-black); }
footer .brand img { width: 38px; height: 38px; border-radius: 999px; object-fit: cover; }
footer h4 { color: var(--am-white); font-size: 1rem; margin-bottom: 10px; font-family: 'Jost', sans-serif; font-weight: 400; }
footer p { color: #666; font-size: .92rem; line-height: 1.7; }

/* ================================================================
   BASE TYPOGRAPHY & UTILITIES
   ================================================================ */
.section { padding: 80px 0; }
.center { text-align: center; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Buttons — pill style */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease;
  text-decoration: none;
}
.btn-ghost {
  background: var(--am-white); color: var(--am-black); border-color: var(--am-line);
}
.btn-ghost:hover { background: var(--am-gray); }
.btn-primary {
  background: var(--am-orange-d); color: var(--am-white);
  box-shadow: 0 8px 22px -10px rgba(244,71,31,.5);
}
.btn-primary:hover { background: var(--am-orange-dd); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }

/* ================================================================
   RESPONSIVE HELPERS
   ================================================================ */
@media (max-width: 768px) {
  .am-sidebar, .side { display: none; }
}

/* .am-parcours-tag.current — override for pages using am-parcours-tag instead of side-tag */
.am-parcours-tag.current {
  background: var(--am-lav-pale);
  border-color: var(--am-lav);
}

/* ================================================================
   COMPOSANTS SHARED (.old mockup-styles.css — toujours utilisés)
   ================================================================ */
.card {
  background: var(--am-white); border: 1px solid var(--am-line); border-radius: 14px;
  padding: 26px; box-shadow: none; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px -16px rgba(0,0,0,.15); }

.eyebrow {
  font-family: 'DM Sans', sans-serif; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; font-size: .76rem; color: var(--am-orange-d);
  display: inline-block; margin-bottom: 12px;
}

.lead { font-size: 1.1rem; color: var(--am-sub); max-width: 56ch; line-height: 1.7; }

.side { position: sticky; top: 90px; }
.side .head {
  font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px; color: var(--am-muted); margin-bottom: 14px;
}
.side-tags { display: flex; flex-direction: column; gap: 10px; }
.side-tags + .head { margin-top: 26px; }
.side-tag {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--am-line); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .92rem; color: var(--am-black);
  background: var(--am-white); text-decoration: none; transition: background .15s, border-color .15s;
}
.side-tag:hover { background: var(--am-lav-pale); border-color: var(--am-lav); }
.side-tag .label { display: flex; align-items: center; gap: 10px; }
.side-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--am-lav-d); flex: none; }
.side-tag .tag-arrow {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--am-gray); display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: var(--am-sub); flex: none;
}
.side-tag.current { background: var(--am-lav-pale); border-color: var(--am-orange); }
.side-tag.current .dot { background: var(--am-orange); }
.side-tag.current .tag-arrow { background: var(--am-orange); color: var(--am-white); }
.side-tag.locked { color: var(--am-muted); cursor: default; }
.side-tag.locked .dot { background: var(--am-gray2); }
.side-tag.locked:hover { background: var(--am-white); border-color: var(--am-line); }

.am-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-size: .85rem; color: var(--am-muted);
}
.am-breadcrumb a { color: var(--am-muted); text-decoration: none; }
.am-breadcrumb a:hover { color: var(--am-orange-d); }

/* ================================================================
   LESSON PAGE (.player, .lesson, etc.)
   ================================================================ */
.lesson { display: grid; grid-template-columns: 1fr 320px; gap: 34px; padding: 36px 0 70px; align-items: start; }
@media (max-width: 900px) { .lesson { grid-template-columns: 1fr; } }

.player {
  position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden;
  box-shadow: 0 14px 40px -16px rgba(0,0,0,.18); background: linear-gradient(135deg,#1a1a1a,#333);
  display: grid; place-items: center;
}
.player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.player .play {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center;
  font-size: 1.8rem; color: var(--am-black); box-shadow: 0 6px 18px -10px rgba(0,0,0,.15); cursor: pointer;
}
.player .secure {
  position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.55);
  color: var(--am-white); font-size: .74rem; padding: 5px 12px; border-radius: 999px;
}
.player .ctrlbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: linear-gradient(transparent,rgba(0,0,0,.55));
  display: flex; align-items: center; gap: 12px; padding: 0 16px; color: var(--am-white); font-size: .85rem;
}
.player .ctrlbar .track { flex: 1; height: 5px; background: rgba(255,255,255,.35); border-radius: 99px; }
.player .ctrlbar .track i { display: block; width: 30%; height: 100%; background: var(--am-lav); border-radius: 99px; }

.rows-label {
  font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px; color: var(--am-muted); margin: 34px 0 6px;
}
.lesson-rows { border-top: 1px solid var(--am-line); }
.lesson-row {
  display: flex; align-items: center; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--am-line);
}
.lesson-row .ico {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: var(--am-gray); display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.lesson-row .meta { flex: 1; min-width: 0; }
.lesson-row .meta b { display: block; font-size: .98rem; }
.lesson-row .meta small { color: var(--am-muted); }
.lesson-row .track { height: 6px; background: #e8e8e8; border-radius: 99px; margin-top: 8px; }
.lesson-row .track i { display: block; width: 0; height: 100%; background: var(--am-orange); border-radius: 99px; }
.lesson-row .act { flex: none; }

.lesson-title {
  font-family: 'Jost', sans-serif; font-size: clamp(2.6rem,5.5vw,4.4rem);
  font-weight: 400; line-height: 1; letter-spacing: -1px; color: var(--am-lav); margin-bottom: 16px;
}
.lesson-title em { color: var(--am-orange-d); font-style: italic; }

.submit-box {
  background: linear-gradient(135deg, var(--am-orange), var(--am-orange-d));
  color: var(--am-white); border-radius: 14px; padding: 24px; margin-top: 22px;
}
.submit-box h3 { color: var(--am-white); margin-bottom: 8px; font-family: 'Jost', sans-serif; font-weight: 400; }
.submit-box p { color: rgba(255,255,255,.85); margin-bottom: 16px; font-size: .92rem; }

.lesson-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; }
.nav-link {
  position: relative; padding-bottom: 12px;
  font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: .95rem; text-decoration: none;
  transition: color .15s;
}
.nav-link::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  transition: background .15s, left .2s, right .2s;
}
.nav-prev { color: var(--am-black); }
.nav-prev::after { background: var(--am-black); }
.nav-prev:hover { color: var(--am-orange-d); }
.nav-prev:hover::after { left: -20px; background: var(--am-orange); }
.nav-next { color: var(--am-orange-d); }
.nav-next::after { background: var(--am-orange); }
.nav-next:hover { color: var(--am-orange-d); }
.nav-next:hover::after { right: -20px; background: var(--am-orange-d); }

/* ================================================================
   PARCOURS REALISTE (member bar, levels)
   ================================================================ */
.member-bar { background: var(--am-black); color: var(--am-white); }
.member-bar .wrap {
  display: flex; align-items: center; gap: 26px; padding: 22px 24px; flex-wrap: wrap;
}
.avatar {
  width: 54px; height: 54px; border-radius: 999px;
  background: var(--am-lav); color: var(--am-black);
  display: grid; place-items: center;
  font-family: 'Jost', sans-serif; font-weight: 700; font-size: 1.3rem; flex: none;
}
.stat { display: flex; flex-direction: column; }
.stat b { font-family: 'Jost', sans-serif; font-size: 1.4rem; color: var(--am-white); }
.stat span { font-size: .78rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: 1px; }
.progress-track { flex: 1; min-width: 180px; }
.bar {
  height: 12px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; margin-top: 6px;
}
.bar i { display: block; height: 100%; width: 42%; background: linear-gradient(90deg, var(--am-lav), var(--am-orange)); border-radius: 999px; }

.level {
  border: 2px solid var(--am-orange); border-radius: 14px;
  display: flex; align-items: center; gap: 16px; padding: 18px 24px;
}

.lessons { border-top: 1px solid var(--am-line); }
.lessons a, .lessons span.row {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 24px 14px 88px; border-bottom: 1px solid #f0f0f0;
  font-size: .96rem; color: var(--am-black); text-decoration: none;
}
.lessons a:last-child, .lessons span.row:last-child { border-bottom: none; }
.lessons a:hover { background: var(--am-lav-pale); }
.lessons .mark {
  flex: 0 0 24px; width: 24px; height: 24px; aspect-ratio: 1;
  border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; background: var(--am-gray2); color: var(--am-white);
}
.lessons .done .mark { background: var(--am-lav-d); }
.lessons .current { background: var(--am-lav-pale); font-weight: 700; }
.lessons .current .mark { background: var(--am-orange); }
.lessons .locked { color: var(--am-muted); }
.lessons .type { margin-left: auto; font-size: .78rem; color: var(--am-muted); }
.lessons .cert { color: var(--am-orange-d); font-weight: 700; }

.am-level-item.locked { opacity: 0.55; cursor: default; }
.am-level-item.locked .am-level-name { color: var(--am-muted); }
.am-level-item.locked .am-level-icon { background: var(--am-gray); color: var(--am-muted); }

/* ================================================================
   PAGE PARCOURS (member bar in page-parcours.php)
   ================================================================ */
.am-member-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: var(--am-gray); border-radius: 12px; border: 1px solid var(--am-line);
}
.am-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--am-lav);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: var(--am-black); flex: none;
}
.am-member-info { flex: 1; }
.am-member-stats { display: flex; gap: 20px; }
.am-member-stats > div { text-align: center; }
.am-member-stats > div > div:first-child {
  font-weight: 800; font-size: 1.2rem; color: var(--am-orange-d);
  font-family: 'DM Sans', sans-serif;
}
.am-member-stats > div > div:last-child {
  font-size: .72rem; color: var(--am-muted); font-family: 'DM Sans', sans-serif;
}

/* ================================================================
   TARIFS PAGE (.tiers, .tier, .price, .badge, .matrix)
   ================================================================ */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tiers { grid-template-columns: 1fr; }
}

.tier {
  background: var(--am-white);
  border: 1px solid var(--am-line);
  border-radius: 22px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.15);
}
.tier.featured {
  border: 2px solid var(--am-orange-d);
  box-shadow: 0 14px 40px -16px rgba(0,0,0,.18);
}
.tier .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--am-orange-d);
  color: var(--am-white);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.tier h3 { font-size: 1.5rem; }
.price {
  font-family: 'Jost', sans-serif;
  font-size: 2.4rem;
  color: var(--am-black);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 2px;
}
.price small {
  font-size: 0.95rem;
  color: var(--am-muted);
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
}
.tier ul {
  list-style: none;
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.tier li {
  font-size: 0.96rem;
  padding-left: 26px;
  position: relative;
  color: #222;
}
.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--am-gold-d);
  font-weight: 800;
}
.tier li.off {
  color: var(--am-muted);
}
.tier li.off::before {
  content: "–";
  color: var(--am-gray2);
}

/* Matrix table */
.matrix {
  width: 100%;
  border-collapse: collapse;
  background: var(--am-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.15);
}
.matrix th,
.matrix td {
  padding: 15px 16px;
  text-align: center;
  border-bottom: 1px solid var(--am-line);
}
.matrix th {
  background: var(--am-gray);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  color: var(--am-black);
}
.matrix td:first-child,
.matrix th:first-child {
  text-align: left;
  font-weight: 700;
}
.matrix .yes {
  color: var(--am-gold-d);
  font-weight: 800;
}
.matrix .no {
  color: var(--am-gray2);
}

/* ================================================================
   PMPro — Design System Overrides
   celloMagna / Amaeya charter
   ================================================================ */

.pmpro-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.pmpro-section-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--am-line);
}
.pmpro-section-header h1 {
  font-family: 'Jost', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--am-black);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.pmpro-section-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--am-orange-d);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pmpro_card {
  background: var(--am-white);
  border: 1px solid var(--am-line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.15);
}
.pmpro_card_title {
  font-family: 'Jost', Georgia, serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--am-black);
  margin-bottom: 16px;
}
.pmpro_message {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.pmpro_message.mpmpro-alert,
.pmpro_message.pmpro_alert {
  background: var(--am-lav-pale);
  border-color: var(--am-orange);
  color: var(--am-orange-d);
}
.pmpro_message.mpmpro-success,
.pmpro_message.pmpro_success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
}
.pmpro_message.mpmpro-warning,
.pmpro_message.pmpro_warning {
  background: var(--am-lav-pale);
  border-color: #fcd34d;
  color: #d97706;
}
.pmpro_message.mpmpro-info,
.pmpro_message.pmpro_info {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}
.pmpro_form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pmpro_form_field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pmpro_form_label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--am-black);
}
.pmpro_form_input,
.pmpro_form select,
.pmpro_form textarea {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--am-line);
  border-radius: 10px;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
  background: var(--am-white);
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--am-black);
}
.pmpro_form_input:focus,
.pmpro_form select:focus {
  outline: none;
  border-color: var(--am-orange);
  box-shadow: 0 0 0 3px rgba(244,71,31,0.12);
}
.pmpro_form_input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--am-orange);
  flex: none;
}
.pmpro_form_fields-inline {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pmpro_form_fields-inline .pmpro_form_input {
  flex: 1;
}
.pmpro_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
  text-decoration: none;
}
.pmpro_btn-submit-checkout,
.pmpro_btn-checkout,
input.pmpro_btn-submit-checkout {
  background: var(--am-orange-d) !important;
  color: var(--am-white) !important;
  box-shadow: 0 8px 22px -10px rgba(244,71,31,0.5) !important;
  border: none !important;
}
.pmpro_btn-submit-checkout:hover,
.pmpro_btn-checkout:hover,
input.pmpro_btn-submit-checkout:hover {
  background: var(--am-orange-dd) !important;
  transform: translateY(-2px);
}
.pmpro_btn-cancel,
.pmpro_btn-default {
  background: var(--am-white);
  color: var(--am-black);
  border-color: var(--am-line);
  box-shadow: none;
}
.pmpro_btn-cancel:hover,
.pmpro_btn-default:hover {
  background: var(--am-gray);
  transform: none;
}
.pmpro_btn-small,
.pmpro_btn.pmpro_btn-small {
  padding: 9px 18px;
  font-size: 0.88rem;
}
.pmpro_table {
  width: 100%;
  border-collapse: collapse;
  background: var(--am-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.15);
}
.pmpro_table th,
.pmpro_table td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--am-line);
}
.pmpro_table th {
  background: var(--am-gray);
  font-family: 'Jost', Georgia, serif;
  font-weight: 500;
  color: var(--am-black);
}
.pmpro_table tr:last-child td {
  border-bottom: none;
}
.pmpro_table .yes {
  color: var(--am-gold-d);
  font-weight: 800;
}
.pmpro_table .no {
  color: var(--am-gray2);
}
#pmpro_pricing_fields {
  margin-bottom: 24px;
}
.pmpro_level_name_text {
  font-size: 1rem;
  margin-bottom: 12px;
}
.pmpro_level_cost_text {
  font-size: 1rem;
  color: var(--am-sub);
  margin: 8px 0;
}
.pmpro_level_expiration_text {
  font-size: 0.88rem;
  color: var(--am-muted);
  margin-top: 8px;
}
.pmpro_level_description_text {
  font-size: 0.92rem;
  color: var(--am-sub);
  margin: 8px 0;
}
.pmpro_checkout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) {
  .pmpro_checkout {
    grid-template-columns: 1fr;
  }
}
.pmpro_confirmation {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  text-align: center;
}
.pmpro_confirmation .pmpro_card {
  text-align: left;
}
.pmpro_confirmation h1 {
  font-family: 'Jost', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 16px;
}
.pmpro_login {
  max-width: 480px;
  margin: 0 auto;
  padding: 64px 24px;
}
.pmpro_login .pmpro_card {
  padding: 32px;
}
.pmpro_levels {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px;
}
.pmpro_levels .grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .pmpro_levels .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .pmpro_levels .grid {
    grid-template-columns: 1fr;
  }
}
.pmpro_billing {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 24px;
}
.pmpro_cancel {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  text-align: center;
}
.pmpro_cancel .pmpro_card {
  text-align: left;
}
.am-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--am-muted);
}
.am-breadcrumb a {
  color: var(--am-muted);
  text-decoration: none;
}
.am-breadcrumb a:hover {
  color: var(--am-orange-d);
}
.am-breadcrumb span {
  color: var(--am-black);
}
.am-member-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--am-gray);
  border-radius: 12px;
  border: 1px solid var(--am-line);
}
.am-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--am-lav);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--am-black);
  flex-shrink: 0;
}
.am-member-info {
  flex: 1;
}
.am-member-stats {
  display: flex;
  gap: 20px;
}
.am-level-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: none;
  border-bottom: 1px solid var(--am-line);
}
.am-level-num {
  font-family: 'Jost', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--am-orange-d);
  min-width: 52px;
}
.am-level-name {
  font-size: 1.15rem;
}
.am-level-icon {
  font-size: 1.2rem;
  color: var(--am-muted);
}
.am-section-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--am-orange-d);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.am-section-h2 {
  font-family: 'Jost', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--am-black);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.am-section-desc {
  font-size: 0.95rem;
  color: var(--am-sub);
  line-height: 1.7;
}
.am-show-card {
  background: var(--am-white);
  border: 1px solid var(--am-line);
  border-radius: 16px;
  padding: 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.am-show-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px -16px rgba(0,0,0,.18);
}
.am-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
  text-decoration: none;
  /* H1 (rapport.md) : fond orange foncé pour l'AA (cf. bloc .am-hero-cta plus haut). */
  background: var(--am-orange-d);
  color: var(--am-white);
  box-shadow: 0 8px 22px -10px rgba(244,71,31,0.5);
}
.am-hero-cta:hover {
  background: var(--am-orange-d);
  transform: translateY(-2px);
  color: var(--am-white);
}
.am-hero-cta.ghost {
  background: var(--am-white);
  color: var(--am-black);
  border-color: var(--am-line);
  box-shadow: none;
}
.am-hero-cta.ghost:hover {
  background: var(--am-gray);
  transform: none;
  color: var(--am-black);
}

/* ================================================================
   PMPro — Additional Overrides (complete)
   Fixes for all PMPro base.css residual styles
   ================================================================ */

/* Main PMPro container */
.pmpro {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: var(--am-text);
  font-family: 'DM Sans', sans-serif;
}

/* Sections */
.pmpro_section {
  margin: 0 0 28px;
}
.pmpro_section:last-child {
  margin-bottom: 0;
}
.pmpro_checkout_gateway-stripe {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

/* Card inner content */
.pmpro_card {
  background: var(--am-white);
  border: 1px solid var(--am-line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.15);
  margin: 0;
}
.pmpro_card_content {
  padding: 0;
}
.pmpro_card_content p {
  color: var(--am-sub);
  font-size: 0.95rem;
  line-height: 1.65;
}
.pmpro_card_actions {
  background: rgba(0,0,0,0.03);
  border-top: 1px solid var(--am-line);
  padding: 16px 26px;
  margin: 0 -26px -26px;
  border-radius: 0 0 16px 16px;
}
.pmpro_card_title {
  font-family: 'Jost', Georgia, serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--am-black);
  margin: 0 0 16px;
  padding: 0;
  letter-spacing: -0.01em;
}

/* Form fields */
.pmpro_form_fieldset {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}
.pmpro_form_legend {
  padding: 0;
  margin-bottom: 20px;
  width: 100%;
}
.pmpro_form_heading {
  font-family: 'Jost', Georgia, serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--am-black);
  margin: 0;
  letter-spacing: -0.01em;
}
.pmpro_form_fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pmpro_form_field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pmpro_cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .pmpro_cols-2 { grid-template-columns: 1fr; }
}
.pmpro_form_label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--am-black);
}
.pmpro_form_input,
.pmpro_form select,
.pmpro_form textarea {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--am-line);
  border-radius: 10px;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
  background: var(--am-white);
  color: var(--am-black);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.pmpro_form_input:focus,
.pmpro_form select:focus,
.pmpro_form textarea:focus {
  outline: none;
  border-color: var(--am-orange) !important;
  box-shadow: 0 0 0 3px rgba(244,71,31,0.12);
}
.pmpro_form_input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--am-orange);
  flex: none;
  border-radius: 4px;
}
.pmpro_form_input[type="email"],
.pmpro_form_input[type="text"],
.pmpro_form_input[type="password"] {
  display: block;
  width: 100%;
}
/* Password toggle */
.pmpro_form_field-password-toggle {
  display: flex;
  align-items: center;
  position: relative;
}
.pmpro_btn-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  padding: 4px 8px !important;
  box-shadow: none !important;
  font-size: 0.85rem;
  color: var(--am-muted) !important;
  cursor: pointer;
}
.pmpro_btn-password-toggle:hover {
  color: var(--am-orange-d) !important;
  background: none !important;
}
.pmpro_form_field-password-toggle .pmpro_form_input {
  padding-right: 44px;
}
.pmpro_icon svg {
  display: inline-block;
  vertical-align: middle;
}

/* Submit row */
.pmpro_form_submit {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}
input.pmpro_btn-submit-checkout {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: none !important;
  cursor: pointer;
  transition: 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--am-orange) !important;
  color: var(--am-white) !important;
  box-shadow: 0 8px 22px -10px rgba(244,71,31,0.5) !important;
  width: auto;
}
input.pmpro_btn-submit-checkout:hover {
  background: var(--am-orange-d) !important;
  transform: translateY(-2px);
}

/* Submit row - right aligned */
.pmpro_form_submit {
  padding-top: 8px;
  display: flex;
  justify-content: flex-end;
}

/* Hidden */
.pmpro_hidden {
  display: none !important;
}

/* Message */
.pmpro_message {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.pmpro_message.mpmpro-alert,
.pmpro_message.pmpro_alert {
  background: var(--am-lav-pale);
  border-color: var(--am-orange);
  color: var(--am-orange-d);
}
.pmpro_message.mpmpro-success,
.pmpro_message.pmpro_success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
}

/* Breadcrumb on checkout */
.pmpro-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--am-muted);
}
.pmpro-breadcrumb a {
  color: var(--am-muted);
  text-decoration: none;
}
.pmpro-breadcrumb a:hover {
  color: var(--am-orange-d);
}
.pmpro-breadcrumb span {
  color: var(--am-black);
}

/* Two-column checkout layout */
.pmpro_checkout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) {
  .pmpro_checkout {
    grid-template-columns: 1fr;
  }
}

/* Pricing fields card */
#pmpro_pricing_fields {
  margin-bottom: 0;
}

/* Level text */
.pmpro_level_name_text {
  font-size: 1rem;
  color: var(--am-text);
  margin-bottom: 12px;
}
.pmpro_level_cost_text {
  font-size: 1rem;
  color: var(--am-sub);
  margin: 8px 0;
}
.pmpro_level_cost_text strong {
  font-family: 'Jost', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--am-black);
}
.pmpro_level_description_text {
  font-size: 0.92rem;
  color: var(--am-sub);
  margin: 8px 0 12px;
  line-height: 1.6;
}
.pmpro_level_expiration_text {
  font-size: 0.88rem;
  color: var(--am-muted);
  margin-top: 8px;
}

/* Account section heading */
.pmpro_form_legend h2 {
  font-family: 'Jost', Georgia, serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--am-black);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Footer link in checkout */
.pmpro-login-link {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--am-muted);
}
.pmpro-login-link a {
  color: var(--am-orange-d);
  font-weight: 700;
  text-decoration: none;
}
.pmpro-login-link a:hover {
  text-decoration: underline;
}

/* Discount code section */
#other_discount_code_fields {
  margin-top: 12px;
}
#other_discount_code_toggle {
  background: none;
  border: none;
  color: var(--am-orange-d);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
}
#other_discount_code_toggle:hover {
  text-decoration: underline;
}
#other_discount_code_button {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--am-gray);
  color: var(--am-black);
  border: 1px solid var(--am-line);
  cursor: pointer;
  transition: 0.15s;
}
#other_discount_code_button:hover {
  background: var(--am-line);
}

/* Processing message */
#pmpro_processing_message {
  text-align: center;
  padding: 16px;
  color: var(--am-muted);
  font-size: 0.9rem;
}

/* ============================================================
   M3 — Parcours / Cours (niveaux) / Leçons  (ajout 2026-06-18)
   ============================================================ */

/* Barre de progression (réutilisable hors mon-compte) */
.am-progress-track { background: var(--am-gray2); border-radius: 999px; height: 10px; overflow: hidden; }
.am-progress-fill { background: var(--am-orange); height: 100%; border-radius: 999px; transition: width .3s ease; }
.am-progress-head { display: flex; justify-content: space-between; font-size: .9rem; color: var(--am-sub); margin-bottom: .5rem; }

/* Fil d'ariane */
.am-breadcrumb-current { color: var(--am-text); }

/* Carte « réservé aux membres » */
.am-lecon-locked-card { text-align: center; padding: 3rem 1.5rem; background: var(--am-lav-pale); border: 1px solid var(--am-line); border-radius: 20px; }
.am-lecon-locked-card h2 { margin: .5rem 0; }
.am-lecon-locked-card p { color: var(--am-sub); margin-bottom: 1.5rem; }
.am-locked-icon { font-size: 2.5rem; }

/* Bouton « marquer comme terminé » */
.am-lesson-complete { margin: 2rem 0; }
.am-lesson-complete a, .am-lesson-complete button { display: inline-block; }

/* Statut de leçon (sidebar) */
.lesson-status.done { color: var(--am-lav-d); }

/* Page cours (niveau) */
.am-course-progress { margin: 1.5rem 0; }
.am-course-resume { display: inline-block; margin-top: 1rem; }
.am-course-lessons { display: flex; flex-direction: column; gap: .5rem; }
.am-lesson-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--am-gray2); font-size: .85rem; font-weight: 700; flex-shrink: 0; }
.am-lesson-num.done { background: var(--am-lav); color: var(--am-text); }
.am-lesson-list-title { margin-left: .75rem; }

/* Liste des niveaux (page parcours) */
.am-niveaux-list { display: flex; flex-direction: column; gap: 1rem; }
.am-niveau-card { border: 1px solid var(--am-line); border-radius: 16px; padding: 1.25rem; background: var(--am-white); }
.am-niveau-card.locked { background: var(--am-gray); }
.am-niveau-card-head { display: flex; justify-content: space-between; align-items: center; }
.am-niveau-card-title { font-family: 'Jost', sans-serif; font-size: 1.1rem; font-weight: 500; color: var(--am-text); text-decoration: none; }
.am-niveau-card-title:hover { color: var(--am-orange-d); }
.am-niveau-card-meta { font-weight: 700; color: var(--am-orange-d); }
.am-niveau-card-sub { font-size: .85rem; color: var(--am-muted); margin: .25rem 0 .75rem; }
.am-niveau-card-locked-note { font-size: .85rem; color: var(--am-sub); }
.am-niveau-card-locked-note a { color: var(--am-orange-d); font-weight: 600; }

/* Embed Bunny responsive (contenu de leçon) */
.am-bunny-embed { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; margin: 0 0 1.5rem; background: #000; }
.am-bunny-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.am-section-nopad { padding-bottom: 40px; }
.am-lead-center { margin: 16px auto 0; }
.am-inscription-desc { margin-bottom: 1.5rem; }
.footer-cols { display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap; }
.footer-brand-name { color:var(--am-white);font-family:'Jost';font-size:1.4rem; }
.footer-tagline { font-size:.9rem;opacity:.8;margin-top:8px; }
.footer-col-title { color:var(--am-white);margin-bottom:8px;font-size:.9rem; }
.footer-links { list-style:none;padding:0;margin:0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1);margin-top:30px;padding-top:24px;text-align:center;font-size:.85rem;opacity:.6; }
.am-prof-label { font-family:'DM Sans',sans-serif;font-size:.78rem;font-weight:800;color:var(--am-muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:14px; }
.am-cursor-default { cursor:default; }
.am-inscription-desc { margin-bottom:1.5rem; }
/* ================================================================
   PAGE-MON-COMPTE utility classes
   ================================================================ */
.am-mt-8 { margin-top: 8px; }
.am-mb-15 { margin-bottom: 1.5rem; }
.am-mb-1 { margin-bottom: 1rem; }
.am-mt-15 { margin-top: 1.5rem; }
.am-fs-82 { font-size: .82rem; }
.am-text-right { text-align: right; }
.am-link-orange { color: var(--am-orange-d); font-weight: 700; }
.am-link-orange:hover { color: var(--am-orange-d); }
.am-cursor-pointer { cursor: pointer; }
.am-checkbox { width: 18px; height: 18px; accent-color: var(--am-orange); }

/* ================================================================
   PAGE-PALIERS
   ================================================================ */
.am-thumb-gray { background: var(--am-gray); }
.am-section-nopad { padding-bottom: 40px; }
.am-lead-center { margin: 16px auto 0; }
.am-inscription-desc { margin-bottom: 1.5rem; }
.footer-cols { display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap; }
.footer-brand-name { color:#fff;font-family:'Jost';font-size:1.4rem; }
.footer-tagline { font-size:.9rem;opacity:.8;margin-top:8px; }
.footer-col-title { color:#fff;margin-bottom:8px;font-size:.9rem; }
.footer-links { list-style:none;padding:0;margin:0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1);margin-top:30px;padding-top:24px;text-align:center;font-size:.85rem;opacity:.6; }
.am-prof-label { font-family:'DM Sans',sans-serif;font-size:.78rem;font-weight:800;color:#aaa;text-transform:uppercase;letter-spacing:1px;margin-bottom:14px; }
.am-cursor-default { cursor:default; }
.am-inscription-desc { margin-bottom:1.5rem; }
/* ================================================================
   PAGE-MON-COMPTE utility classes
   ================================================================ */
.am-mt-8 { margin-top: 8px; }
.am-mb-15 { margin-bottom: 1.5rem; }
.am-mb-1 { margin-bottom: 1rem; }
.am-mt-15 { margin-top: 1.5rem; }
.am-fs-82 { font-size: .82rem; }
.am-text-right { text-align: right; }
.am-link-orange { color: var(--am-orange-d); font-weight: 700; }
.am-link-orange:hover { color: var(--am-orange-d); }
.am-cursor-pointer { cursor: pointer; }
.am-checkbox { width: 18px; height: 18px; accent-color: var(--am-orange); }

/* ================================================================
   PAGE-PALIERS
   ================================================================ */
.am-thumb-gray { background: #f3f3f3; }

/* LEGAL PAGES */
.am-legal-content h2{font-family:'Jost',sans-serif;font-size:1.2rem;font-weight:400;color:var(--am-black);margin:2.5rem 0 .75rem;letter-spacing:-0.01em}
.am-legal-content p{font-size:.95rem;color:var(--am-sub);line-height:1.75;margin-bottom:.75rem}
.am-legal-content ul{margin:.5rem 0 1rem 1.5rem}
.am-legal-content li{font-size:.95rem;color:var(--am-sub);line-height:1.75;margin-bottom:.35rem}
.am-legal-content a{color:var(--am-orange-d);text-decoration:underline}
.am-legal-content a:hover{color:var(--am-orange-d)}

/* COOKIE BANNER */
.am-cookie-banner{position:fixed;bottom:0;left:0;right:0;z-index:9999;background:var(--am-white);border-top:1px solid var(--am-line);box-shadow:0 -4px 24px rgba(0,0,0,.08);padding:1rem 1.5rem;font-family:'DM Sans',sans-serif;font-size:.9rem}
.am-cookie-inner{max-width:var(--maxw);margin:0 auto;display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap}
.am-cookie-text{flex:1;min-width:280px}
.am-cookie-text p{margin:0;color:var(--am-sub);line-height:1.6}
.am-cookie-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.am-cookie-btn{padding:10px 20px;border-radius:999px;font-family:'DM Sans',sans-serif;font-weight:800;font-size:.88rem;cursor:pointer;border:none;transition:background .18s}
.am-cookie-btn-primary{background:var(--am-orange);color:#fff}
.am-cookie-btn-primary:hover{background:var(--am-orange-d)}
.am-cookie-btn-ghost{background:transparent;color:var(--am-sub);border:1px solid var(--am-line)}
.am-cookie-btn-ghost:hover{background:var(--am-gray)}
.am-cookie-link{color:var(--am-orange-d);font-weight:700;text-decoration:underline;font-size:.88rem;white-space:nowrap}
.am-cookie-link:hover{color:var(--am-orange-d)}

/* ============================================================
   Primitives de layout partagées — rendre dispo hors mon-compte
   (pages cours/leçon CPT)  — ajout 2026-06-18
   ============================================================ */
.am-page-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 64px; }
.am-page-header { padding-bottom: 24px; border-bottom: 1px solid var(--am-line); margin-bottom: 32px; }

.am-card-padded { padding: 2rem; background: var(--am-white); border: 1px solid var(--am-line); border-radius: 16px; }
.am-page-wrap .am-card-padded { margin-bottom: 24px; }
.am-card-title { font-family: 'Jost', Georgia, serif; font-size: 1.4rem; font-weight: 400; color: var(--am-text); margin-bottom: 1.5rem; letter-spacing: -0.01em; }
.am-card-title-sm { font-family: 'Jost', Georgia, serif; font-size: 1rem; font-weight: 400; color: var(--am-text); margin-bottom: 0.75rem; }

/* Liste de leçons (page cours) */
.am-lesson-list-item { display: flex; align-items: center; gap: .75rem; padding: 12px 14px; border: 1px solid var(--am-line); border-radius: 10px; text-decoration: none; color: var(--am-text); font-size: .95rem; transition: background .15s, border-color .15s; }
.am-lesson-list-item:hover:not(.locked) { background: var(--am-lav-pale); border-color: var(--am-lav); }
.am-lesson-list-item.locked { opacity: .55; pointer-events: none; }

/* Contenu riche (the_content des cours/leçons) */
.am-lecon-content { line-height: 1.7; color: var(--am-text); }
.am-lecon-content h2 { font-family: 'Jost', Georgia, serif; font-weight: 400; font-size: 1.3rem; margin: 1.5rem 0 .75rem; }
.am-lecon-content p { margin: 0 0 1rem; }
.am-lecon-content ul, .am-lecon-content ol { margin: 0 0 1rem 1.25rem; }
.am-lecon-content li { margin-bottom: .4rem; }

/* Placeholder vidéo (en attendant l'upload réel via media-stream) */
.am-video-placeholder-box { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--am-white); padding: 1.5rem; }
.am-video-placeholder-box span { font-size: .95rem; opacity: .85; max-width: 80%; }

/* Pages legales (cgv, mentions, confidentialite) */
.am-legal { padding: 64px 24px; }
.am-legal-title { margin-bottom: 2rem; }
.am-legal-note { margin-top: 3rem; font-size: 0.85rem; color: var(--am-muted); }


/* ================================================================
   PAGES PMPro — conteneur global (fallback index.php)
   Layout de base toujours chargé ; composants détaillés dans pmpro.css
   ================================================================ */
.am-pmpro-main { background: var(--am-white); }
.am-pmpro-container {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.am-pmpro-container > article > .am-page-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 28px;
}

/* --- Liste d'attente paliers de suivi (FR-9.3, T-080) --- */
.am-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.am-waitlist { max-width: 540px; margin: 2rem auto; padding: 0 1rem; }
.am-waitlist-intro { color: var(--am-sub); line-height: 1.55; margin-bottom: 1.25rem; }
.am-waitlist-level { margin-bottom: 1rem; }
.am-waitlist-notice { border-radius: 12px; padding: 0.8rem 1rem; font-size: 0.92rem; margin-bottom: 1.25rem; }
.am-waitlist-ok  { background: var(--am-lav-pale); color: var(--am-text); border: 1px solid var(--am-lav-d); }
.am-waitlist-err { background: #FCE9E4; color: var(--am-orange-d); border: 1px solid var(--am-orange); }
.am-waitlist-form { display: flex; flex-direction: column; gap: 1rem; }
.am-waitlist .am-form-group { display: flex; flex-direction: column; gap: 6px; }
.am-waitlist .am-form-label { font-weight: 600; font-size: 0.92rem; }
.am-waitlist .am-form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--am-line);
  border-radius: 12px;
  font: inherit;
  background: var(--am-white);
}
.am-waitlist .am-form-input:focus {
  outline: none;
  border-color: var(--am-orange);
  /* T-177 (L18) : anneau de focus plus marqué (alpha 0.30 vs 0.15). */
  box-shadow: 0 0 0 3px rgba(244, 71, 31, 0.30);
}

/* WELCOME POPUP (visiteurs non connectés) */
.am-welcome{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:1.5rem;font-family:'DM Sans',sans-serif;opacity:0;transition:opacity .22s ease}
.am-welcome.is-open{opacity:1}
.am-welcome[hidden]{display:none}
.am-welcome-backdrop{position:absolute;inset:0;background:rgba(17,17,17,.55);backdrop-filter:blur(2px)}
.am-welcome-card{position:relative;z-index:1;background:var(--am-white);border:1px solid var(--am-line);border-radius:20px;box-shadow:0 24px 64px rgba(0,0,0,.22);max-width:460px;width:100%;padding:2.5rem 2rem 2rem;text-align:center;transform:translateY(12px) scale(.98);transition:transform .22s ease}
.am-welcome.is-open .am-welcome-card{transform:translateY(0) scale(1)}
.am-welcome-x{position:absolute;top:12px;right:14px;background:transparent;border:none;font-size:1.9rem;line-height:1;color:var(--am-muted);cursor:pointer;padding:4px 8px;transition:color .15s}
.am-welcome-x:hover{color:var(--am-text)}
.am-welcome-kicker{font-size:.82rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--am-orange-d);margin:0 0 .6rem}
.am-welcome-title{font-family:'Jost',Georgia,serif;font-weight:400;font-size:1.7rem;line-height:1.2;letter-spacing:-0.01em;color:var(--am-text);margin:0 0 .85rem}
.am-welcome-text{font-size:.98rem;line-height:1.6;color:var(--am-sub);margin:0 0 1.6rem}
.am-welcome-actions{display:flex;flex-direction:column;gap:.7rem}
.am-welcome-btn{display:block;width:100%;box-sizing:border-box;padding:13px 20px;border-radius:999px;font-family:'DM Sans',sans-serif;font-weight:800;font-size:.95rem;text-decoration:none;cursor:pointer;border:none;transition:background .18s,border-color .18s}
.am-welcome-btn-primary{background:var(--am-orange-d);color:#fff}
.am-welcome-btn-primary:hover{background:var(--am-orange-dd)}
.am-welcome-btn-ghost{background:transparent;color:var(--am-text);border:1px solid var(--am-line)}
.am-welcome-btn-ghost:hover{background:var(--am-gray)}
@media (prefers-reduced-motion:reduce){.am-welcome,.am-welcome-card{transition:none}}

/* ================================================================
   MODALES INFO LANDING (piliers / profs / niveaux du parcours)
   ================================================================ */
.am-modal-trigger { cursor: pointer; }
.am-modal-trigger:hover { transform: translateY(-4px); box-shadow: 0 14px 40px -16px rgba(0,0,0,.15); }
.am-modal-trigger:hover .am-arrow-box { background: var(--am-orange); color: var(--am-white); }
.am-modal-trigger:focus-visible { outline: 2px solid var(--am-orange); outline-offset: 3px; }

.am-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:1.5rem;font-family:'DM Sans',sans-serif;opacity:0;transition:opacity .22s ease}
.am-modal.is-open{opacity:1}
.am-modal[hidden]{display:none}
.am-modal-backdrop{position:absolute;inset:0;background:rgba(17,17,17,.55);backdrop-filter:blur(2px)}
.am-modal-card{position:relative;z-index:1;background:var(--am-white);border:1px solid var(--am-line);border-radius:20px;box-shadow:0 24px 64px rgba(0,0,0,.22);max-width:520px;width:100%;padding:2.5rem 2rem 2rem;transform:translateY(12px) scale(.98);transition:transform .22s ease;max-height:85vh;overflow-y:auto}
.am-modal.is-open .am-modal-card{transform:translateY(0) scale(1)}
.am-modal-x{position:absolute;top:12px;right:14px;background:transparent;border:none;font-size:1.9rem;line-height:1;color:var(--am-muted);cursor:pointer;padding:4px 8px;transition:color .15s}
.am-modal-x:hover{color:var(--am-text)}
.am-modal-kicker{font-size:.8rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--am-orange-d);margin:0 0 .55rem;font-family:'DM Sans',sans-serif}
.am-modal-title{font-family:'Jost',Georgia,serif;font-weight:400;font-size:1.7rem;line-height:1.2;letter-spacing:-0.01em;color:var(--am-text);margin:0 0 1rem}
.am-modal-body{font-size:.98rem;line-height:1.6;color:var(--am-sub)}
.am-modal-body p{margin:0 0 .85rem}
.am-modal-meta{font-weight:700;color:var(--am-text);font-size:.85rem;text-transform:uppercase;letter-spacing:.03em}
.am-modal-list{margin:.2rem 0 1rem;padding-left:1.1rem;display:flex;flex-direction:column;gap:.35rem}
.am-modal-list li{font-size:.92rem;line-height:1.45;color:var(--am-sub)}
.am-modal-actions{margin-top:1.4rem}
.am-modal-btn{display:inline-block;box-sizing:border-box;padding:13px 24px;border-radius:999px;font-family:'DM Sans',sans-serif;font-weight:800;font-size:.95rem;text-decoration:none;cursor:pointer;border:none;transition:background .18s}
.am-modal-btn-primary{background:var(--am-orange-d);color:#fff}
.am-modal-btn-primary:hover{background:var(--am-orange-dd)}
@media(prefers-reduced-motion:reduce){.am-modal,.am-modal-card,.am-modal-trigger{transition:none}}

/* Modales — portrait prof, vidéo, lien, leçons */
.am-modal-portrait{margin:0 0 1.1rem;text-align:center}
.am-modal-portrait img{width:120px;height:120px;border-radius:50%;object-fit:cover;border:3px solid var(--am-lav-pale)}
.am-modal-video{position:relative;width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;margin:1.1rem 0;background:var(--am-gray)}
.am-modal-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.am-modal-video-empty{display:flex;align-items:center;justify-content:center;color:var(--am-muted);font-size:.9rem;font-style:italic;border:1px dashed var(--am-line)}
.am-modal-link{display:inline-flex;align-items:center;gap:6px;margin-top:.2rem;font-family:'DM Sans',sans-serif;font-weight:800;font-size:.9rem;color:var(--am-orange-d);text-decoration:none}
.am-modal-link:hover{color:var(--am-orange-d)}
.am-modal-lessons-h{font-family:'DM Sans',sans-serif;font-weight:800;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase;color:var(--am-text);margin:1.1rem 0 .5rem}
.am-modal-lessons{margin:0;display:flex;flex-direction:column;gap:.5rem}
.am-modal-lesson{background:var(--am-gray);border:1px solid var(--am-line);border-radius:12px;overflow:hidden}
/* Card simple (sans détail) : on garde l'alignement en ligne. */
.am-modal-lesson:not(.has-detail){display:flex;align-items:center;gap:.7rem;padding:10px 12px}
.am-modal-lesson-num{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:var(--am-white);border:1px solid var(--am-line);font-family:'Jost',Georgia,serif;font-size:.9rem;font-weight:500;color:var(--am-text)}
.am-modal-lesson-title{font-size:.92rem;line-height:1.35;color:var(--am-text)}
/* Accordéon (card avec détail). */
.am-modal-lesson-head{display:flex;align-items:center;gap:.7rem;width:100%;padding:10px 12px;background:transparent;border:none;cursor:pointer;text-align:left;font:inherit;transition:background .15s}
.am-modal-lesson-head:hover{background:var(--am-gray2)}
.am-modal-lesson-head .am-modal-lesson-title{flex:1}
.am-modal-lesson-chev{flex-shrink:0;font-size:1.3rem;line-height:1;color:var(--am-muted);transform:rotate(90deg);transition:transform .2s,color .15s}
.am-modal-lesson.is-open .am-modal-lesson-chev{transform:rotate(-90deg);color:var(--am-orange-d)}
.am-modal-lesson.is-open .am-modal-lesson-head{background:var(--am-gray2)}
.am-modal-lesson-detail{padding:2px 14px 14px 14px;border-top:1px solid var(--am-line)}
.am-modal-lesson-desc{font-size:.88rem;line-height:1.5;color:var(--am-sub);margin:.7rem 0 0}
.am-modal-res-label{font-family:'DM Sans',sans-serif;font-weight:800;font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;color:var(--am-muted);margin:.9rem 0 .4rem}
.am-modal-res-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}
.am-modal-res-item{display:flex;align-items:center;gap:.55rem;padding:7px 10px;background:var(--am-white);border:1px solid var(--am-line);border-radius:9px;font-size:.86rem}
.am-modal-res-ico{flex-shrink:0}
.am-modal-res-name{flex:1;min-width:0;color:var(--am-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.am-modal-res-type{flex-shrink:0;font-family:'DM Sans',sans-serif;font-weight:800;font-size:.66rem;letter-spacing:.03em;color:var(--am-muted);background:var(--am-gray);border-radius:999px;padding:2px 8px}

/* Marge entre la liste des niveaux (blanc) et le bloc CTA (noir) */
.am-browse { padding-bottom: 64px; }

/* Aligne la description de la section 03 en bas, comme les autres sections */
.am-parcours-top { align-items: end; }

/* Accessibilité : texte réservé aux lecteurs d'écran (visuellement masqué, lisible par AT). */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Marqueur visuel des champs obligatoires (cohérent avec l'encre orange de la charte). */
.am-required {
    color: var(--am-orange-d);
    font-weight: 700;
    margin-left: 2px;
}

/* Champ invalide après tentative de soumission : contour orange + fond léger. */
.am-form-input[aria-invalid="true"] {
    border-color: var(--am-orange-d);
    box-shadow: 0 0 0 3px rgba(242, 71, 31, 0.12);
}

/* Honeypot anti-bot : invisible + non-focusable + non-annoncé par AT. */
.am-hp-hide {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    pointer-events: none !important;
}
