/* ==========================================================================
   BOOST ACADEMY GN — Pages publiques v2
   Design unifié inspiré du prototype Services + accueil.
   Mobile-first. Tokens, composants, pages. Aucune dépendance framework.
   ========================================================================== */

:root {
  --navy-950: #031a40;
  --navy-900: #06285f;
  --navy-800: #0a3e89;
  --blue: #1768e5;
  --blue-soft: #eaf2ff;
  --gold: #f6a800;
  --gold-soft: #ffd36a;
  --gold-pale: #fff4dc;
  --cream: #fbf8f0;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #071f45;
  --copy: #55637a;
  --muted: #6b788c;
  --line: rgba(7, 31, 69, 0.13);
  --line-soft: rgba(7, 31, 69, 0.08);
  --green: #168060;
  --shadow-sm: 0 10px 26px rgba(3, 26, 64, 0.08);
  --shadow: 0 28px 70px rgba(3, 26, 64, 0.12);
  --shadow-lg: 0 40px 90px rgba(3, 26, 64, 0.18);
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body.p-body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:hover { color: var(--blue); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
}
h3, h4 { line-height: 1.15; }

ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
figure { margin: 0; }

:focus-visible {
  outline: 3px solid rgba(23, 104, 229, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-pale); color: var(--navy-950); }

.p-skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy-900);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.p-skip:focus { top: 12px; }

.p-main { display: block; min-height: 40vh; }

/* ---------- Layout ---------- */

.p-container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.p-section { padding-block: clamp(64px, 8vw, 112px); }
.p-section--white { background: var(--white); }
.p-section--cream { background: var(--cream); }
.p-section--paper { background: var(--paper); }
.p-section--soft { background: #f2f6fc; }
.p-section--navy { background: var(--navy-950); color: #fff; }
.p-section--navy h2,
.p-section--navy h3 { color: #fff; }
.p-section--navy p { color: rgba(255, 255, 255, 0.72); }

.p-section__head {
  display: grid;
  gap: 18px;
  max-width: 860px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.p-section__head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
.p-section__head > p:not(.p-label) { color: var(--copy); font-size: 1.04rem; line-height: 1.8; max-width: 68ch; }

.p-eyebrow,
.p-label {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.p-label--light { color: var(--gold-soft); }
.p-label--gold { color: var(--gold); }
.p-label--green { color: var(--green); }

.p-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.p-eyebrow span.p-eyebrow__num {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(23, 104, 229, 0.22);
  border-radius: 50%;
  background: #fff;
  color: var(--navy-900);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ---------- Buttons ---------- */

.p-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.p-button:hover { transform: translateY(-2px); text-decoration: none; }
.p-button--primary { background: var(--navy-900); color: #fff; box-shadow: 0 14px 26px rgba(3, 26, 64, 0.16); }
.p-button--primary:hover { background: var(--navy-800); color: #fff; }
.p-button--gold { background: var(--gold); color: var(--navy-950); box-shadow: 0 14px 30px rgba(246, 168, 0, 0.24); }
.p-button--gold:hover { background: #ffb71f; color: var(--navy-950); }
.p-button--outline { border-color: rgba(7, 31, 69, 0.24); background: transparent; color: var(--navy-900); }
.p-button--outline:hover { border-color: var(--navy-900); background: rgba(6, 40, 95, 0.05); color: var(--navy-900); }
.p-button--light { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm); }
.p-button--ghost-light { border-color: rgba(255, 255, 255, 0.35); background: transparent; color: #fff; }
.p-button--ghost-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.p-button--sm { min-height: 44px; padding: 10px 16px; font-size: 0.8rem; gap: 12px; }

.p-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.p-link:hover { color: var(--blue); }
.p-link--light { color: var(--gold-soft); }
.p-link--light:hover { color: #fff; }

.p-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 32px;
}

/* ---------- Header ---------- */

.p-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.p-header.is-scrolled {
  background: rgba(255, 253, 248, 0.985);
  box-shadow: 0 16px 38px rgba(3, 26, 64, 0.1);
}
.p-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 24px;
}
.p-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  max-width: 250px;
  text-decoration: none;
}
.p-brand img { width: 100%; max-height: 40px; object-fit: contain; object-position: left center; }

.p-burger {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
}
.p-burger span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--navy-900);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.2, 0.75, 0.25, 1), opacity 0.18s ease;
}
.p-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.p-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.p-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.p-nav {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.p-nav > a {
  padding: 11px 9px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.855rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.p-nav > a:hover,
.p-nav > a.is-active { background: #f1f5fb; color: var(--blue); }

.p-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}
.p-nav__account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 8px;
  color: var(--navy-900);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.p-nav__account:hover { color: var(--blue); }
.p-nav__cta { min-height: 46px; padding: 11px 16px; gap: 14px; font-size: 0.83rem; white-space: nowrap; flex: 0 0 auto; }
.p-nav > a { flex: 0 0 auto; }

.p-account { position: relative; }
.p-account__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-900);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.p-account__dot {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.85rem;
}
.p-account__chevron { font-size: 0.7rem; color: var(--muted); }
.p-account__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 120;
  display: grid;
  width: 230px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.p-account__menu a,
.p-account__menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.p-account__menu a:hover,
.p-account__menu button:hover { background: #f2f6fc; color: var(--blue); }
.p-account__menu form { margin: 0; }
.p-account__menu i { color: var(--muted); }

/* ---------- Hero ---------- */

.p-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 118px) clamp(64px, 8vw, 110px);
  background:
    linear-gradient(rgba(7, 31, 69, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 31, 69, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #fffdf7, #f4f7fc);
  background-size: 56px 56px, 56px 56px, auto;
}
.p-hero--cream { background-color: var(--cream); }
.p-hero--plain {
  background:
    radial-gradient(circle at 88% 0%, rgba(246, 168, 0, 0.1), transparent 26rem),
    linear-gradient(180deg, #fffdf8, var(--cream));
}
.p-hero::after {
  position: absolute;
  right: -170px;
  top: -190px;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(246, 168, 0, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(246, 168, 0, 0.03), 0 0 0 150px rgba(23, 104, 229, 0.025);
  content: "";
  pointer-events: none;
}
.p-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.p-hero__copy { min-width: 0; max-width: 720px; }
.p-hero h1 {
  max-width: 15ch;
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.p-hero--compact h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.p-hero h1 em { color: var(--gold); font-style: normal; }
.p-hero__lead {
  max-width: 62ch;
  margin: 26px 0 0;
  color: var(--copy);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.8;
}
.p-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.p-hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.p-hero__meta i { color: var(--gold); }

/* Bandeau photo + liste flottante (services) */
.p-board { position: relative; }
.p-board__photo {
  position: relative;
  overflow: hidden;
  border-radius: 190px 190px 28px 28px;
  background: var(--navy-900);
  box-shadow: var(--shadow);
}
.p-board__photo img { width: 100%; aspect-ratio: 0.86; object-fit: cover; }
.p-board__photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(3, 26, 64, 0.72));
  content: "";
}
.p-board__note {
  position: absolute;
  left: 26px;
  bottom: 24px;
  z-index: 1;
  max-width: 230px;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.1;
}
.p-board__list {
  position: relative;
  z-index: 2;
  display: grid;
  margin: -54px 0 0 auto;
  width: min(340px, 88%);
  padding: 0;
  border-radius: 16px;
  background: #fff;
  list-style: none;
  box-shadow: 0 24px 54px rgba(3, 26, 64, 0.18);
}
.p-board__list li + li { border-top: 1px solid var(--line-soft); }
.p-board__list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 16px 18px;
  text-decoration: none;
}
.p-board__list a:hover { background: #f5f8fd; }
.p-board__list span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-950);
  font-size: 0.7rem;
  font-weight: 800;
}
.p-board__list strong { font-size: 0.9rem; line-height: 1.3; }
.p-board__list small { color: var(--copy); font-size: 0.75rem; }

/* Visuel simple (profil, article) */
.p-figure-arch img {
  width: 100%;
  aspect-ratio: 0.9;
  object-fit: cover;
  border-radius: 180px 180px 24px 24px;
  box-shadow: var(--shadow);
}
.p-figure-arch figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- Chapters ---------- */

.p-chapter { padding-block: clamp(64px, 9vw, 132px); }
.p-chapter--white { background: #fff; }
.p-chapter--cream { background: var(--cream); }
.p-chapter--soft { background: #f2f6fc; }
.p-chapter--navy { background: var(--navy-950); color: #fff; }
.p-chapter--navy h2 { color: #fff; }
.p-chapter--navy .p-chapter__lead { color: rgba(255, 255, 255, 0.72); }

.p-chapter__grid {
  display: grid;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.p-chapter__copy h2 {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 0.99;
  max-width: 18ch;
}
.p-chapter__lead {
  margin-top: 22px;
  color: var(--copy);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 60ch;
}
.p-chapter__media img {
  width: 100%;
  aspect-ratio: 0.84;
  object-fit: cover;
  border-radius: 200px 200px 24px 24px;
  box-shadow: var(--shadow);
}
.p-chapter__caption {
  position: relative;
  z-index: 1;
  width: min(92%, 380px);
  margin: -44px 0 0 auto;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.55;
  box-shadow: 0 20px 46px rgba(3, 26, 64, 0.22);
}
.p-chapter__caption span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.p-evidence { margin: 30px 0 0; border-top: 1px solid var(--line); }
.p-evidence > div {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.p-evidence dt,
.p-evidence span.p-evidence__k {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.p-evidence dd,
.p-evidence strong { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink); }

.p-chapter--navy .p-evidence { border-color: rgba(255, 255, 255, 0.16); }
.p-chapter--navy .p-evidence > div { border-color: rgba(255, 255, 255, 0.16); }
.p-chapter--navy .p-evidence span { color: var(--gold-soft); }
.p-chapter--navy .p-evidence strong { color: #fff; }

.p-points { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.p-points li {
  display: grid;
  gap: 4px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.p-points span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.p-points strong { font-size: 0.92rem; line-height: 1.5; }
.p-chapter--navy .p-points,
.p-chapter--navy .p-points li { border-color: rgba(255, 255, 255, 0.16); }

.p-chapter--navy .p-chapter__media img { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32); }
.p-chapter--navy .p-chapter__caption { background: #fff; color: var(--copy); }
.p-chapter--navy .p-chapter__caption span { color: var(--blue); }

/* ---------- Method line ---------- */

.p-method { padding-block: clamp(64px, 8vw, 112px); background: #fff; }
.p-method__head { display: grid; gap: 12px; max-width: 780px; }
.p-method__head h2 { font-size: clamp(2.1rem, 4.2vw, 3.9rem); }
.p-method__line {
  position: relative;
  display: grid;
  gap: 22px;
  margin: clamp(34px, 5vw, 58px) 0 0;
  padding: 0;
  list-style: none;
}
.p-method__line li { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 16px; }
.p-method__line span {
  grid-row: 1 / 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.p-method__line strong { display: block; font-size: 0.98rem; }
.p-method__line small { display: block; color: var(--copy); line-height: 1.55; }

/* Ligne de méthode sur fond sombre */
.p-chapter--navy .p-method__line { counter-reset: none; margin-top: 26px; }
.p-chapter--navy .p-method__line span {
  border-color: rgba(255, 211, 106, 0.4);
  background: transparent;
  color: var(--gold-soft);
}
.p-chapter--navy .p-method__line strong { color: #fff; }
.p-chapter--navy .p-method__line small { color: rgba(255, 255, 255, 0.66); }
.p-chapter--navy .p-method__line li { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 14px; }

/* Bandeau d'orientation (page Services) */
.p-orientation__grid { display: grid; gap: 30px; }
.p-orientation__head h2 { max-width: 18ch; font-size: clamp(2rem, 4vw, 3.6rem); }
.p-prompts { border-top: 1px solid var(--line); }
.p-prompts a {
  display: grid;
  gap: 6px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.p-prompts a span { color: var(--copy); font-size: 0.98rem; line-height: 1.6; }
.p-prompts a strong { color: var(--blue); font-size: 0.82rem; font-weight: 800; }
.p-prompts a:hover strong { color: var(--navy-900); text-decoration: underline; text-underline-offset: 4px; }

.p-method--navy { background: var(--navy-950); color: #fff; }
.p-method--navy .p-method__head h2 { color: #fff; }
.p-method--navy .p-method__line span { border-color: rgba(255, 211, 106, 0.4); background: transparent; color: var(--gold-soft); }
.p-method--navy .p-method__line small { color: rgba(255, 255, 255, 0.66); }

/* ---------- CTA final ---------- */

.p-cta {
  padding-block: clamp(64px, 8vw, 110px);
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: #fff;
}
.p-cta__grid { display: grid; gap: 30px; align-items: end; }
.p-cta h2 {
  max-width: 18ch;
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 4.3rem);
  line-height: 0.99;
}
.p-cta p:not(.p-label) { color: rgba(255, 255, 255, 0.72); font-size: 1rem; line-height: 1.75; max-width: 52ch; }
.p-cta__actions { margin-top: 24px; }
.p-cta .p-label--light { margin-bottom: 14px; }

/* ---------- Footer ---------- */

.p-footer {
  padding-block: clamp(48px, 6vw, 76px) 28px;
  background: #021431;
  color: rgba(255, 255, 255, 0.7);
}
.p-footer__top {
  display: grid;
  gap: 40px;
  padding-bottom: clamp(34px, 5vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.p-footer__brand { max-width: 380px; }
.p-footer__logo { display: inline-block; max-width: 240px; }
.p-footer__logo img { width: 100%; max-height: 44px; object-fit: contain; object-position: left center; }
.p-footer__baseline { margin: 20px 0 18px; color: rgba(255, 255, 255, 0.66); font-size: 0.9rem; line-height: 1.65; }
.p-footer__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.p-footer__pill:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.p-footer__title {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.p-footer__col { display: grid; align-content: start; gap: 9px; }
.p-footer__col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  text-decoration: none;
  width: fit-content;
}
.p-footer__col a:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 4px; }
.p-footer__contact p {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.6;
}
.p-footer__contact i { color: var(--gold-soft); font-size: 0.95rem; margin-top: 2px; }
.p-footer__bottom {
  display: grid;
  gap: 12px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}
.p-footer__bottom p { margin: 0; }
.p-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.p-footer__legal a { color: rgba(255, 255, 255, 0.62); text-decoration: none; }
.p-footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Flash messages ---------- */

.p-flash-stack { display: grid; gap: 10px; margin-top: 22px; }
.p-flash {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.p-flash p { margin: 0; font-size: 0.92rem; line-height: 1.55; }
.p-flash__icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}
.p-flash--success .p-flash__icon { background: #e7f6ee; color: #127a4b; }
.p-flash--warning .p-flash__icon { background: #fff4dc; color: #8a5a00; }
.p-flash--error .p-flash__icon { background: #fdecec; color: #b42318; }
.p-flash__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.p-flash__close:hover { background: #f2f6fc; color: var(--ink); }

/* ---------- Lightbox ---------- */

.p-lightbox {
  width: min(92vw, 900px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #0b1220;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.p-lightbox::backdrop { background: rgba(3, 16, 38, 0.72); backdrop-filter: blur(3px); }
.p-lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.p-lightbox__bar h2 { margin: 0; color: #fff; font-family: var(--sans); font-size: 0.85rem; font-weight: 700; }
.p-lightbox__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.p-lightbox img { display: block; width: 100%; max-height: calc(92vh - 64px); object-fit: contain; }

/* ---------- Directory (professeurs, actualités, partenaires) ---------- */

.p-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.p-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.p-filter {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.p-filter:hover { border-color: var(--navy-900); color: var(--navy-900); }
.p-filter.is-active { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.p-toolbar__count { color: var(--muted); font-size: 0.82rem; font-weight: 600; }

.p-grid { display: grid; gap: 22px; }
.p-grid--cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.p-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(3, 26, 64, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.p-card:hover { transform: translateY(-3px); border-color: rgba(23, 104, 229, 0.28); box-shadow: var(--shadow); }

.p-teacher-card__media { position: relative; display: block; background: var(--navy-900); }
.p-teacher-card__media img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.p-teacher-card__initials {
  display: grid;
  width: 100%;
  aspect-ratio: 1.15;
  place-items: center;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 3rem;
}
.p-teacher-card__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy-900);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.p-teacher-card__body { display: grid; gap: 8px; padding: 18px; }
.p-teacher-card__body h2,
.p-teacher-card__body h3 { margin: 0; font-family: var(--sans); font-size: 1.02rem; font-weight: 800; letter-spacing: 0; line-height: 1.3; }
.p-teacher-card__body h2 a,
.p-teacher-card__body h3 a { text-decoration: none; }
.p-teacher-card__title { color: var(--copy); font-size: 0.86rem; line-height: 1.5; }
.p-teacher-card__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 0.78rem; }
.p-teacher-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.p-teacher-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.p-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5fb;
  color: #3c4c66;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}
.p-teacher-card__foot { margin-top: auto; padding: 0 18px 18px; }

.p-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 38px;
}
.p-pagination a,
.p-pagination span {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}
.p-pagination a:hover { border-color: var(--navy-900); color: var(--navy-900); }
.p-pagination .is-current { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.p-pagination .is-disabled { opacity: 0.45; }

.p-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(36px, 6vw, 64px) 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}
.p-empty__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-pale);
  color: #8a5a00;
  font-size: 1.25rem;
}
.p-empty h2, .p-empty h3 { margin: 0; font-size: 1.3rem; }
.p-empty p { max-width: 52ch; color: var(--copy); font-size: 0.92rem; }

/* ---------- Teacher profile ---------- */

.p-profile { display: grid; gap: 32px; align-items: start; }
.p-profile__card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.p-profile__head { display: grid; gap: 20px; align-items: center; }
.p-profile__photo { width: 132px; height: 132px; padding: 0; overflow: hidden; border: 0; border-radius: 50%; background: var(--navy-900); cursor: zoom-in; }
.p-profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.p-profile__photo .p-teacher-card__initials { aspect-ratio: 1; font-size: 2.6rem; }
.p-profile h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.4rem); }
.p-profile__title { margin: 8px 0 0; color: var(--copy); font-size: 1rem; }
.p-profile__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.p-profile__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--navy-800);
  font-size: 0.75rem;
  font-weight: 700;
}
.p-profile__badge--gold { background: var(--gold-pale); color: #7a4c00; }
.p-profile__section { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--line-soft); }
.p-profile__section h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; margin-bottom: 12px; }
.p-profile__section h2 span { color: var(--blue); font-family: var(--serif); font-size: 1.2rem; margin-right: 8px; }
.p-profile__section p { color: var(--copy); font-size: 0.95rem; line-height: 1.75; }
.p-profile__dl { display: grid; gap: 10px; margin: 0; }
.p-profile__dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.p-profile__dl dt { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.p-profile__dl dd { margin: 0; font-size: 0.92rem; }

.p-aside {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.p-aside h2 { font-family: var(--sans); font-size: 1rem; font-weight: 800; margin: 0; }
.p-aside p { color: var(--copy); font-size: 0.9rem; line-height: 1.65; }
.p-aside__note { display: flex; gap: 8px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.p-aside__note i { color: var(--green); }

/* ---------- News ---------- */

.p-featured {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.p-featured__media img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.p-featured__body { display: grid; align-content: center; gap: 14px; padding: clamp(24px, 4vw, 40px); }
.p-featured__body h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.p-featured__body p:not(.p-label) { color: var(--copy); }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.p-meta span { display: inline-flex; align-items: center; gap: 6px; }
.p-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.p-post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.p-post img { width: 100%; aspect-ratio: 1.7; object-fit: cover; }
.p-post__body { display: grid; gap: 9px; padding: 20px; }
.p-post h2, .p-post h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; }
.p-post p { color: var(--copy); font-size: 0.9rem; }

.p-article { max-width: 760px; margin-inline: auto; }
.p-article__head { display: grid; gap: 16px; margin-bottom: 30px; }
.p-article__head h1 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); margin: 0; }
.p-article__head p { color: var(--copy); font-size: 1.08rem; line-height: 1.7; }
.p-prose { color: #33415c; font-size: 1.02rem; line-height: 1.85; }
.p-prose > * + * { margin-top: 1.15em; }
.p-prose h2 { margin-top: 1.8em; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.p-prose h3 { margin-top: 1.5em; font-family: var(--sans); font-size: 1.12rem; font-weight: 800; letter-spacing: 0; line-height: 1.35; }
.p-prose ul, .p-prose ol { padding-left: 1.3rem; }
.p-prose li { margin-bottom: 0.5em; }
.p-prose a { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; }
.p-prose blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--gold);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.4;
}
.p-prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.p-prose th, .p-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.p-prose code { padding: 2px 6px; border-radius: 5px; background: #f2f5fa; font-size: 0.9em; }

/* ---------- Testimonials ---------- */

.p-quotes { display: grid; gap: 22px; }
.p-quote {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(3, 26, 64, 0.05);
}
.p-quote__stars { display: flex; gap: 3px; color: var(--gold); font-size: 0.95rem; }
.p-quote blockquote { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.p-quote__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.p-quote__avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  font-size: 0.9rem;
}
.p-quote__author strong { display: block; font-size: 0.88rem; }
.p-quote__author small { color: var(--muted); font-size: 0.76rem; }

/* ---------- Partners ---------- */

.p-partner-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.p-partner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.p-partner__logo {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #f2f6fc;
  color: var(--navy-800);
  font-family: var(--serif);
  font-size: 1.5rem;
}
.p-partner__logo img { width: 100%; height: 100%; object-fit: contain; }
.p-partner h2 { margin: 0; font-family: var(--sans); font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.p-partner p:not(.p-partner__type) { color: var(--copy); font-size: 0.88rem; line-height: 1.65; }
.p-partner__type { color: var(--blue); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- FAQ ---------- */

.p-faq-layout { display: grid; gap: 28px; align-items: start; }
.p-faq-nav {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.p-faq-nav > span { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.p-faq-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}
.p-faq-nav a:hover { background: #f2f6fc; color: var(--blue); }
.p-faq-group { margin-bottom: 40px; scroll-margin-top: 100px; }
.p-faq-group > h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.p-faq details {
  border-bottom: 1px solid var(--line);
}
.p-faq details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}
.p-faq details summary::-webkit-details-marker { display: none; }
.p-faq details summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}
.p-faq details[open] summary::after { content: "−"; }
.p-faq details > div { padding: 0 0 20px; color: var(--copy); font-size: 0.94rem; line-height: 1.75; max-width: 72ch; }
.p-faq details > div p { margin-bottom: 0.8em; }
.p-faq details > div a { color: var(--navy-800); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */

.p-contact-layout { display: grid; gap: 28px; align-items: start; }
.p-channel-grid { display: grid; gap: 14px; }
.p-channel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.p-channel:hover { transform: translateY(-2px); border-color: rgba(23, 104, 229, 0.3); }
.p-channel__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.1rem;
}
.p-channel strong { display: block; font-size: 0.9rem; }
.p-channel small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.p-channel > i { color: var(--muted); font-size: 0.9rem; }
.p-contact-panel {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.p-contact-panel h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.p-contact-frame {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.p-contact-frame iframe { display: block; width: 100%; height: 640px; border: 0; background: #fff; }
.p-contact-fallback { display: grid; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 0.84rem; }
.p-contact-fallback a { color: var(--navy-800); font-weight: 700; }
.p-contact-note { display: flex; gap: 9px; margin-top: 14px; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.p-contact-note i { color: var(--green); margin-top: 2px; }

/* ---------- Legal ---------- */

.p-legal-layout { display: grid; gap: 30px; align-items: start; }
.p-legal-toc {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.p-legal-toc > span { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.p-legal-toc a {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.p-legal-toc a:hover { background: #fff; color: var(--blue); }
.p-legal-body h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.6vw, 2rem); scroll-margin-top: 100px; }
.p-legal-body h2:first-child { margin-top: 0; }
.p-legal-body h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 800; letter-spacing: 0; }
.p-legal-updated { color: var(--muted); font-size: 0.82rem; }

/* ---------- Méthode : preuves, étapes, comparaison, plan, rôles ---------- */

.p-proofs { display: grid; gap: 16px; }
.p-proof {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.p-proof__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--gold-pale);
  color: #8a5a00;
  font-size: 1.05rem;
}
.p-proof strong { display: block; margin-bottom: 3px; font-size: 0.95rem; }
.p-proof p { margin: 0; color: var(--copy); font-size: 0.86rem; line-height: 1.6; }

.p-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.p-step {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.p-step__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.p-step__num {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}
.p-step__phase { color: var(--blue); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.p-step h3 { margin: 4px 0 0; font-family: var(--sans); font-size: 1.02rem; font-weight: 800; letter-spacing: 0; line-height: 1.3; }
.p-step p { margin: 0; color: var(--copy); font-size: 0.88rem; line-height: 1.65; }
.p-step__icon { color: var(--gold); font-size: 1.05rem; }

.p-compare { display: grid; gap: 18px; margin-top: 36px; }
.p-compare__card { padding: 26px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 20px; }
.p-compare__card h3 {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.p-compare ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.p-compare li { position: relative; padding-left: 22px; color: rgba(255, 255, 255, 0.86); font-size: 0.92rem; line-height: 1.5; }
.p-compare li::before { position: absolute; left: 0; color: rgba(255, 255, 255, 0.4); content: "–"; }
.p-compare__card--boost { background: #fff; }
.p-compare__card--boost h3 { color: var(--blue); }
.p-compare__card--boost li { color: var(--ink); }
.p-compare__card--boost li::before { color: var(--green); font-weight: 800; content: "✓"; }

.p-plan {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.p-plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.p-plan__head small { display: block; color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.p-plan__head strong { font-size: 0.92rem; }
.p-plan__status { padding: 4px 10px; border-radius: 999px; background: #e7f6ee; color: #127a4b; font-size: 0.68rem; font-weight: 800; }
.p-plan__row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.p-plan__row:last-child { border-bottom: 0; }
.p-plan__row > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
}
.p-plan__row strong { display: block; font-size: 0.88rem; line-height: 1.35; }
.p-plan__row small { color: var(--muted); font-size: 0.76rem; }

.p-roles { display: grid; gap: 16px; }
.p-role { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.p-role i { color: var(--gold); font-size: 1.15rem; }
.p-role h3 { margin: 10px 0 6px; font-family: var(--sans); font-size: 0.98rem; font-weight: 800; letter-spacing: 0; }
.p-role p { margin: 0; color: var(--copy); font-size: 0.86rem; line-height: 1.65; }

/* ---------- À propos : principes, valeurs, engagements, fondateur ---------- */

.p-principles { display: grid; border-top: 1px solid var(--line); }
.p-principle {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.p-principle > span { color: var(--gold); font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
.p-principle h3 { margin: 0 0 4px; font-family: var(--sans); font-size: 0.95rem; font-weight: 800; letter-spacing: 0; }
.p-principle p { margin: 0; color: var(--copy); font-size: 0.87rem; line-height: 1.6; }

.p-values { display: grid; gap: 18px; }
.p-value { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.p-value__index { color: var(--blue); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; }
.p-value i { display: block; margin: 16px 0 12px; color: var(--gold); font-size: 1.35rem; }
.p-value h3 { margin-bottom: 8px; font-size: 1.45rem; }
.p-value p { margin: 0; color: var(--copy); font-size: 0.9rem; line-height: 1.7; }
.p-value--navy { border-color: var(--navy-900); background: var(--navy-900); }
.p-value--navy h3 { color: #fff; }
.p-value--navy p { color: rgba(255, 255, 255, 0.72); }
.p-value--navy .p-value__index,
.p-value--navy i { color: var(--gold-soft); }

.p-commitments { display: grid; gap: 22px; }
.p-commitment { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.p-commitment i { color: var(--gold-soft); font-size: 1.05rem; }
.p-commitment h3 { margin: 8px 0 5px; font-family: var(--sans); font-size: 0.95rem; font-weight: 800; letter-spacing: 0; color: #fff; }
.p-commitment p { margin: 0; color: rgba(255, 255, 255, 0.66); font-size: 0.86rem; line-height: 1.6; }

.p-founder {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.p-founder__photo { position: relative; }
.p-founder__photo img { width: 100%; aspect-ratio: 0.82; object-fit: cover; border-radius: 22px; }
.p-founder__role {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-900);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.p-founder blockquote {
  margin: 20px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
}
.p-founder p { color: var(--copy); font-size: 0.95rem; line-height: 1.75; }

/* ---------- Contact : canaux et panneau d'informations ---------- */

.p-channels { display: grid; gap: 14px; }
.p-info {
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: #fff;
}
.p-info h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.p-info p { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; line-height: 1.7; }
.p-hours { display: grid; margin: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.p-hours div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.86rem; }
.p-hours span { color: rgba(255, 255, 255, 0.66); }
.p-hours strong { color: #fff; }
.p-topics { display: grid; gap: 2px; margin-top: 10px; }
.p-topics h3 {
  margin: 0 0 6px;
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.p-topics a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.p-topics a i:last-child { margin-left: auto; color: var(--gold-soft); }
.p-topics a:hover { color: var(--gold-soft); }

/* ---------- Utility ---------- */

.p-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.p-mt-0 { margin-top: 0 !important; }
.p-mt-2 { margin-top: 16px; }
.p-mt-4 { margin-top: 32px; }
.p-mb-0 { margin-bottom: 0 !important; }
.p-text-center { text-align: center; }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .p-burger { display: block; }
  .p-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    padding: 14px var(--gutter) 22px;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 24px 44px rgba(3, 26, 64, 0.14);
  }
  .p-nav.is-open { display: grid; gap: 2px; }
  .p-nav > a { padding: 13px 12px; font-size: 0.95rem; }
  .p-nav__actions {
    display: grid;
    gap: 10px;
    margin: 12px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
  }
  .p-nav__account { min-height: 44px; padding: 10px 12px; font-size: 0.9rem; }
  .p-nav__cta { width: 100%; }
  .p-account__toggle { width: 100%; justify-content: flex-start; }
  .p-account__menu { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .p-header__inner { position: relative; }
}

@media (max-width: 639px) {
  .p-brand { max-width: 196px; }
  .p-header__inner { min-height: 68px; }
  .p-hero { padding-top: 44px; }
  .p-hero h1 { font-size: clamp(2.45rem, 11vw, 3.4rem); }
  .p-hero__lead { margin-top: 20px; font-size: 0.98rem; }
  .p-actions { display: grid; gap: 12px; align-items: stretch; }
  .p-actions .p-button { width: 100%; }
  .p-actions .p-link { justify-self: start; }
  .p-board__photo img { aspect-ratio: 1.05; border-radius: 140px 140px 22px 22px; }
  .p-board__note { left: 20px; bottom: 18px; font-size: 1.15rem; }
  .p-board__list { width: 100%; margin-top: -40px; }
  .p-chapter__copy h2 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .p-chapter__media img { border-radius: 130px 130px 20px 20px; }
  .p-chapter__caption { width: 100%; margin-top: -30px; }
  .p-profile__dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .p-profile__head { grid-template-columns: minmax(0, 1fr); }
  .p-profile__photo { width: 104px; height: 104px; }
  .p-contact-frame iframe { height: 760px; }
  .p-footer__top { gap: 30px; }
  .p-cta h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .p-featured__media img { aspect-ratio: 1.3; }
}

@media (min-width: 640px) {
  .p-cta__grid { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); }
  .p-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-footer__bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .p-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 920px) {
  .p-orientation__grid { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(40px, 6vw, 84px); }
  .p-prompts a { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .p-hero__grid--board { grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr); }
  .p-hero__grid--split { grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); }
  .p-chapter__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .p-chapter__grid--reverse .p-chapter__media { order: 2; }
  .p-chapter__grid--reverse .p-chapter__copy { order: 1; }
  .p-method__line { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .p-method__line li { display: block; padding-right: 24px; }
  .p-method__line span { margin-bottom: 18px; }
  .p-method__line::before {
    position: absolute;
    top: 22px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--blue), var(--green));
    content: "";
  }
  .p-method__line--stack { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .p-method__line--stack::before { display: none; }
  .p-method__line--stack li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .p-method__line--stack span { grid-row: 1 / 3; margin: 0; }
  .p-contact-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .p-faq-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 44px; }
  .p-faq-nav { position: sticky; top: 100px; }
  .p-legal-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 44px; }
  .p-legal-toc { position: sticky; top: 100px; }
  .p-profile { grid-template-columns: minmax(0, 1fr) 320px; }
  .p-profile__aside { position: sticky; top: 100px; }
  .p-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-featured { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

@media (min-width: 1041px) {
  .p-footer__top { grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 0.85fr)); gap: 48px; }
  .p-channel-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1180px) {
  .p-hero__grid--board { gap: 84px; }
  .p-board__photo { margin-right: 96px; }
  .p-board__list { position: absolute; right: 0; bottom: 26px; width: 320px; margin: 0; }
  .p-board { min-height: 600px; }
  .p-board__photo { position: absolute; inset: 0 96px 0 0; }
  .p-board__photo img { height: 100%; aspect-ratio: auto; }
}

@media (min-width: 640px) {
  .p-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-commitments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  .p-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (min-width: 760px) {
  .p-proofs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-channels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 860px) {
  .p-founder { grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr); gap: 48px; }
}

@media (min-width: 1100px) {
  .p-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-roles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .p-button:hover,
  .p-card:hover,
  .p-post:hover,
  .p-channel:hover { transform: none; }
}

@media print {
  .p-header, .p-footer, .p-cta, .p-flash-stack, .p-lightbox { display: none !important; }
  body.p-body { background: #fff; color: #000; }
  .p-hero { background: #fff; padding-block: 0 24px; }
  .p-hero::after { display: none; }
  a { text-decoration: none; color: #000; }
}

/* Intégration de l'accueil dans le shell public unifié */
.home-prototype-body .p-header { background: rgba(251, 248, 240, 0.95); }
.home-prototype-body .p-header.is-scrolled { background: rgba(251, 248, 240, 0.99); }
.home-prototype-body .p-footer { margin-top: 0; }

.p-section__head h2 { max-width: 22ch; font-size: clamp(2.05rem, 3.6vw, 3.4rem); line-height: 1.02; }
.p-hero--compact { padding-block: clamp(40px, 5vw, 72px) clamp(44px, 5vw, 72px); }

/* Ajustements de rendu (revue visuelle) */
.p-featured--text { grid-template-columns: minmax(0, 1fr); }
.p-featured--text .p-featured__body { align-content: start; gap: 16px; max-width: 860px; }
.p-featured h2 a,
.p-post h2 a,
.p-post h3 a { text-decoration: none; }
.p-featured h2 a:hover,
.p-post h2 a:hover,
.p-post h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.p-teacher-card__initials { aspect-ratio: 1.6; font-size: 2.4rem; }

/* Compatibilité de l'accueil historique : mêmes boîtes que l'ancien socle public. */
.container { width: 100%; margin-inline: auto; }
.site-container { width: min(100%, 1360px); margin-inline: auto; padding-inline: clamp(18px, 4vw, 56px); }
.home-prototype .container.site-container { width: min(100%, 1360px); }

/* Accueil : numérotation décorative des étapes (l'ancien socle n'est plus chargé) */
.home-prototype .home-method-step { position: relative; }
.home-prototype .home-method-step b {
  position: absolute;
  top: 6px;
  right: 12px;
  color: rgba(7, 31, 69, 0.1);
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}

/* Barre de filtres sur petit écran */
@media (max-width: 639px) {
  .p-toolbar { display: grid; gap: 12px; justify-items: stretch; }
  .p-filters { width: 100%; }
  .p-filter { flex: 1 1 auto; justify-content: center; text-align: center; white-space: normal; }
  .p-toolbar__count { justify-self: start; }
}

.p-teacher-card__initials { aspect-ratio: 2.2; font-size: 1.9rem; }

.p-teacher-card__initials { aspect-ratio: 3; font-size: 1.6rem; }

/* Retour et libellé de type sur la fiche profil */
.p-eyebrow { display: flex; }
.p-hero__copy > .p-link { margin-bottom: 18px; }

@media (prefers-contrast: more) {
  :root { --line: rgba(7, 31, 69, 0.32); --copy: #3a4759; --muted: #4c586b; }
  .p-footer { color: rgba(255, 255, 255, 0.85); }
  .p-footer__col a,
  .p-footer__legal a { color: rgba(255, 255, 255, 0.9); }
  .p-button { border-width: 2px; }
}

/* ==========================================================================
   Passe finale : fluidité, images et micro-interactions
   ========================================================================== */

.p-nav > a { transition: background-color 0.18s ease, color 0.18s ease; }
.p-link,
.p-footer__col a,
.p-footer__legal a { transition: color 0.18s ease; }
.p-filter { transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease; }
.p-faq details summary { transition: color 0.18s ease; }
.p-faq details summary:hover { color: var(--blue); }
.p-channel { transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.p-channel:hover { box-shadow: var(--shadow-sm); }
.p-main img { max-width: 100%; }
.p-hero,
.p-chapter,
.p-section,
.p-cta { overflow-x: clip; }

@media (max-width: 767.98px) {
  .p-section,
  .p-chapter,
  .p-cta { padding-block: 56px; }

  .home-prototype-body .prototype-section { padding: 56px 0; }

  /* Héros d'accueil : cadre calé sur un ratio proche de la photo, sujet centré. */
  .home-prototype-body .prototype-portrait-frame {
    width: calc(100% - 32px);
    max-width: 430px;
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .home-prototype-body .prototype-student-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
  }
}

/* Micro-interactions complémentaires */
.p-main [id] { scroll-margin-top: 92px; }
.p-nav__account,
.p-account__toggle,
.p-pagination a,
.p-footer__pill { transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.p-account__toggle:hover,
.p-pagination a:hover { transform: translateY(-1px); }
.p-footer__pill:hover { transform: translateY(-1px); }
.p-account__menu a:focus-visible,
.p-account__menu button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.p-faq details[open] > summary { color: var(--navy-900); }

/* ==========================================================================
   Fluidité globale, menu mobile, formulaires et tableaux responsives
   ========================================================================== */

/* Fondu d'entrée de page */
.p-main {
  animation: p-page-in 0.42s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
@keyframes p-page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Voile de sortie de page */
.p-veil {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.p-veil.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Burger : icône plus fine et panel animé */
.p-burger {
  width: 48px;
  height: 48px;
  padding: 13px 12px;
  border-radius: 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.p-burger:hover { border-color: rgba(23, 104, 229, 0.35); box-shadow: var(--shadow-sm); }
.p-burger span {
  width: 22px;
  height: 2px;
  margin: 4.5px auto;
  background: var(--navy-900);
}
.p-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.p-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.p-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 26, 64, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}
.p-nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.p-nav-open { overflow: hidden; }

@media (max-width: 1040px) {
  .p-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    padding: 14px var(--gutter) 26px;
    border-top: 1px solid var(--line-soft);
    border-radius: 0 0 24px 24px;
    background: #fff;
    box-shadow: 0 30px 64px rgba(3, 26, 64, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.2, 0.75, 0.25, 1), visibility 0.3s;
  }
  .p-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .p-nav > a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.24s ease, transform 0.24s ease, background-color 0.18s ease, color 0.18s ease;
  }
  .p-nav > a::after {
    color: var(--muted);
    font-size: 0.9rem;
    content: "→";
  }
  .p-nav > a:hover,
  .p-nav > a:focus-visible { background: #f2f6fc; }
  .p-nav.is-open > a { opacity: 1; transform: none; }
  .p-nav.is-open > a:nth-child(1) { transition-delay: 0.04s; }
  .p-nav.is-open > a:nth-child(2) { transition-delay: 0.07s; }
  .p-nav.is-open > a:nth-child(3) { transition-delay: 0.1s; }
  .p-nav.is-open > a:nth-child(4) { transition-delay: 0.13s; }
  .p-nav.is-open > a:nth-child(5) { transition-delay: 0.16s; }
  .p-nav.is-open > a:nth-child(6) { transition-delay: 0.19s; }
  .p-nav.is-open > a:nth-child(7) { transition-delay: 0.22s; }
  .p-nav__actions {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
  }
  .p-nav__cta { width: 100%; min-height: 52px; }
}

/* Formulaires publics */
.p-form { display: grid; gap: 18px; margin-top: 22px; }
.p-form__row { display: grid; gap: 18px; }
.p-field { display: grid; gap: 7px; min-width: 0; }
.p-field > label {
  color: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.p-field .form-control,
.p-field input,
.p-field textarea,
.p-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.p-field textarea { min-height: 150px; resize: vertical; }
.p-field input::placeholder,
.p-field textarea::placeholder { color: #8b96a8; }
.p-field input:focus,
.p-field textarea:focus,
.p-field select:focus {
  border-color: rgba(23, 104, 229, 0.65);
  box-shadow: 0 0 0 4px rgba(23, 104, 229, 0.13);
  outline: none;
}
.p-field.has-error input,
.p-field.has-error textarea { border-color: #b42318; }
.p-field__error { margin: 0; color: #b42318; font-size: 0.8rem; line-height: 1.45; }
.p-field__error::before { margin-right: 5px; content: "!"; font-weight: 800; }
.p-form__alert {
  padding: 12px 14px;
  border: 1px solid rgba(180, 35, 24, 0.28);
  border-radius: 12px;
  background: #fdf1f0;
  color: #8f1d14;
  font-size: 0.88rem;
}
.p-form__alert p { margin: 0 0 4px; }
.p-form__alert p:last-child { margin: 0; }
.p-form__foot {
  display: grid;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}
.p-form__legal { color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.p-form__legal a { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; }
.p-form__submit { width: 100%; }
.p-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .p-form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-form__foot { grid-template-columns: minmax(0, 1fr) auto; }
  .p-form__submit { width: auto; min-width: 210px; }
}

/* Tableaux juridiques : cartes lisibles sur mobile */
@media (max-width: 639px) {
  .p-prose table,
  .p-prose thead,
  .p-prose tbody,
  .p-prose tr,
  .p-prose th,
  .p-prose td { display: block; width: 100%; }
  .p-prose thead { display: none; }
  .p-prose tr {
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .p-prose tr:last-child { margin-bottom: 0; }
  .p-prose th,
  .p-prose td { padding: 2px 0; border: 0; text-align: left; }
  .p-prose th {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .p-prose td { font-size: 0.92rem; overflow-wrap: anywhere; }
  .p-prose td a { overflow-wrap: anywhere; }
}

/* Respiration mobile unifiée */
@media (max-width: 639px) {
  .p-hero { padding-block: 44px 52px; }
  .p-section,
  .p-chapter,
  .p-cta { padding-block: 48px; }
  .p-section__head { margin-bottom: 30px; }
  .p-footer { padding-top: 44px; }
  .home-prototype-body .prototype-section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .p-main { animation: none; }
  .p-veil { display: none; }
  .p-nav,
  .p-nav > a,
  .p-nav-backdrop { transition-duration: 0.01ms !important; }
}

.p-field__optional { color: var(--muted); font-weight: 600; }

/* Correctifs de la passe responsive */
.p-hp {
  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;
}
@media (max-width: 479px) {
  .home-prototype .prototype-final-index { display: none; }
}

.p-hp { left: auto !important; top: auto !important; }

@media (max-width: 1040px) {
  .p-nav__account {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
  }
  .p-nav__account::after {
    color: var(--muted);
    font-size: 0.9rem;
    content: "→";
  }
  .p-nav__account:hover,
  .p-nav__account:focus-visible { background: #f2f6fc; }
}

/* Footer : alignement mobile compact */
@media (min-width: 360px) and (max-width: 639px) {
  .p-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }
  .p-footer__brand,
  .p-footer__contact { grid-column: 1 / -1; }
  .p-footer__title { margin-bottom: 10px; }
  .p-footer__col { gap: 7px; }
}

/* Habillage harmonisé des pages d'authentification */
.auth-page .section-padding { padding-block: clamp(28px, 5vw, 64px) !important; }
.auth-page .card {
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  box-shadow: var(--shadow-sm) !important;
  background: #fff;
}
.auth-page .card::before { display: none !important; }
.auth-page .card-body { padding: clamp(22px, 4vw, 38px) !important; }
.auth-page .flow-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gold-pale);
  color: #7a4c00;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-page .flow-title {
  font-family: var(--serif);
  font-size: clamp(1.95rem, 5vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.auth-page .flow-lead { color: var(--copy); font-size: 0.98rem; line-height: 1.7; }
.auth-page .form-label { margin-bottom: 6px; color: var(--navy-900); font-size: 0.8rem; font-weight: 800; }
.auth-page .form-control {
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
}
.auth-page .form-control:focus {
  border-color: rgba(23, 104, 229, 0.65);
  box-shadow: 0 0 0 4px rgba(23, 104, 229, 0.13);
}
.auth-page .input-group > .form-control { border-radius: 12px 0 0 12px; }
.auth-page .input-group > .btn { min-width: 96px; border-radius: 0 12px 12px 0; font-weight: 700; }
.auth-page .btn.btn-primary {
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--navy-900);
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(3, 26, 64, 0.16);
}
.auth-page .btn.btn-primary:hover { background: var(--navy-800); }
.auth-page .alert { border-radius: 12px; border: 1px solid var(--line); }
.auth-page .flow-legal-note { color: var(--muted); font-size: 0.82rem; line-height: 1.6; }

@media (max-width: 575.98px) {
  .auth-page .input-group { display: block; }
  .auth-page .input-group > .form-control { border-radius: 12px; }
  .auth-page .input-group > .btn {
    width: auto;
    min-height: 32px;
    margin-top: 8px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: none;
  }
  .auth-page .input-group > .btn:hover { background: transparent; color: var(--navy-900); text-decoration: underline; }
}
