/* ==========================================================================
   Methods & Performance Institute — styles du thème
   Couleurs, police et rayons : charte graphique v1 (octobre 2026)
   ========================================================================== */

/* ---------- 1. Jetons de la charte ---------- */
:root {
  --navy: #0F2A4A;
  --blue: #1E5AA8;
  --teal: #0E7C70;
  --sun: #F4A62A;
  --ground: #FAF7F1;
  --surface: #FFFFFF;
  --line: #E4DED3;
  --ink: #0F2A4A;
  --ink-muted: #5A6475;
  --on-accent: #FFFFFF;
  --blue-soft: #E3EDF9;
  --teal-soft: #DDF2EE;
  --sun-soft: #FDEBC8;
  --success: #1F7A3D;
  --error: #B3261E;

  /* Teintes calculées pour le relief 3D (variantes claires et sombres des couleurs) */
  --teal-top: #3FA597;  --teal-side: #0A5E55;
  --blue-top: #4F82C6;  --blue-side: #17457F;
  --navy-top: #2C4B72;  --navy-side: #081A30;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(15, 42, 74, .06), 0 8px 24px rgba(15, 42, 74, .08);
  --shadow-lift: 0 2px 4px rgba(15, 42, 74, .06), 0 18px 40px rgba(15, 42, 74, .14);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 40px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 28px); line-height: 1.3; font-weight: 700; }
h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-md); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 96px 0; } }

.overline {
  display: inline-block;
  font-size: 12px; line-height: 16px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
}
.display { font-size: clamp(40px, 7vw, 56px); line-height: 1.07; font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: 18px; line-height: 30px; color: var(--ink-muted); max-width: 40em; }
.muted { color: var(--ink-muted); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 3. Boutons ---------- */
.btn, .mpi-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-md); border: 2px solid transparent;
  font: 700 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  background: var(--blue); color: var(--on-accent);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
  box-shadow: 0 4px 0 #17457F, 0 10px 20px rgba(30, 90, 168, .22);
}
.btn:hover, .mpi-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .wp-block-button__link:hover {
  color: var(--on-accent); background: #1A4F94; transform: translateY(-2px);
  box-shadow: 0 6px 0 #17457F, 0 16px 28px rgba(30, 90, 168, .28);
}
.btn:active, .mpi-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #17457F, 0 6px 12px rgba(30, 90, 168, .2); }
.btn-ghost, .mpi-btn--ghost {
  background: var(--surface); color: var(--navy); border-color: var(--line);
  box-shadow: 0 4px 0 var(--line), 0 10px 20px rgba(15, 42, 74, .06);
}
.btn-ghost:hover, .mpi-btn--ghost:hover { background: var(--surface); color: var(--navy); box-shadow: 0 6px 0 var(--line), 0 16px 28px rgba(15, 42, 74, .1); }
.btn-teal { background: var(--teal); box-shadow: 0 4px 0 var(--teal-side), 0 10px 20px rgba(14, 124, 112, .22); }
.btn-teal:hover { background: #0B6B61; box-shadow: 0 6px 0 var(--teal-side), 0 16px 28px rgba(14, 124, 112, .28); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 4px 0 rgba(255,255,255,.35), 0 10px 20px rgba(0,0,0,.18); }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- 4. En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .9); border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 42, 74, .06); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { height: 36px; width: auto; display: block; }
@media (min-width: 1100px) { .brand img { height: 40px; } }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md);
  color: var(--navy); background: transparent; border: 1px solid var(--line); transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface); color: var(--navy); transform: translateY(-1px); }
.icon-btn .i { width: 20px; height: 20px; }

/* Menu principal — même structure que wp_nav_menu (ul.menu > li > a + ul.sub-menu) */
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px; }
.submenu-toggle { display: none; }

@media (min-width: 1280px) {
  .main-nav { margin-left: 12px; }
  .main-nav > .menu { display: flex; align-items: center; gap: 2px; }
  .main-nav > .menu > li { position: relative; }
  .main-nav > .menu > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 10px; border-radius: var(--radius-md); white-space: nowrap; transition: background .2s, color .2s; }
  .main-nav > .menu > li > a:hover,
  .main-nav > .menu > li:focus-within > a,
  .main-nav > .menu > li.current-menu-item > a,
  .main-nav > .menu > li.current-menu-ancestor > a { background: var(--blue-soft); color: var(--blue); }
  .main-nav .menu-item-has-children > a::after {
    content: ""; width: 7px; height: 7px; margin-left: 4px; margin-top: -3px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6;
  }
  .main-nav .sub-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
    opacity: 0; visibility: hidden; transform: translateY(8px) rotateX(-8deg); transform-origin: top center;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
  .main-nav .sub-menu a { display: block; padding: 10px 12px; border-radius: var(--radius-md); font-weight: 500; }
  .main-nav .sub-menu a:hover { background: var(--ground); color: var(--blue); }
  .nav-toggle { display: none; }
}

/* Menu mobile */
.nav-toggle {
  display: inline-grid; place-content: center; gap: 5px; width: 44px; height: 44px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1279.98px) {
  /* Pas de flou ici : il empêcherait le panneau du menu de couvrir tout l'écran. */
  .site-header, .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(250, 247, 241, .97); }
  .header-actions .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; overflow-y: auto;
    background: var(--ground); padding: 16px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .main-nav > .menu > li { border-bottom: 1px solid var(--line); position: relative; }
  .main-nav > .menu > li > a { display: block; padding: 16px 52px 16px 4px; font-size: 18px; font-weight: 700; }
  .submenu-toggle {
    display: grid; place-items: center; position: absolute; right: 0; top: 8px; width: 44px; height: 44px;
    border: 0; background: transparent; color: var(--navy); cursor: pointer; border-radius: var(--radius-md);
  }
  .submenu-toggle::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .25s; }
  .is-open > .submenu-toggle::before { transform: rotate(-135deg); margin-top: 4px; }
  .main-nav .sub-menu { display: none; padding: 0 0 12px 8px; }
  .main-nav .is-open > .sub-menu { display: block; }
  .main-nav .sub-menu a { display: block; padding: 10px 4px; color: var(--ink-muted); font-weight: 500; font-size: 16px; }
  .mobile-cta { display: block; margin-top: 24px; }
  .main-nav .mobile-cta .btn { color: var(--on-accent); font-size: 16px; }
}
@media (min-width: 1280px) { .mobile-cta, .nav-toggle { display: none; } }

/* ---------- 5. Héro de la page d'accueil ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 72px; }
@media (min-width: 900px) { .hero { padding: 56px 0 104px; } }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 48px; } }
.hero .lead { margin-top: 18px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.hero-points .i { width: 18px; height: 18px; color: var(--teal); }
.text-teal { color: var(--teal); }

/* Halos doux en arrière-plan */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0; }
.blob-1 { width: 520px; height: 520px; background: var(--blue-soft); top: -160px; right: -120px; }
.blob-2 { width: 420px; height: 420px; background: var(--teal-soft); bottom: -180px; left: -140px; }
.hero > .container, .section > .container { position: relative; z-index: 1; }

/* ---------- 6. Scène 3D : les barres et le point soleil ---------- */
@property --h { syntax: "<length>"; inherits: true; initial-value: 0px; }

.scene {
  --rx: 56deg; --rz: 42deg;
  position: relative; height: 480px; padding-top: 110px; perspective: 1400px; perspective-origin: 50% 30%;
  display: grid; place-items: center;
}
@media (max-width: 599.98px) { .scene { height: 370px; padding-top: 80px; } .stage-wrap { transform: scale(.72); } }
.stage-wrap { transform-style: preserve-3d; }
.stage {
  position: relative; width: 300px; height: 300px; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateZ(var(--rz));
  transition: transform .9s var(--ease);
  border-radius: 28px;
  background:
    linear-gradient(rgba(15, 42, 74, .06) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(15, 42, 74, .06) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(135deg, #FFFFFF, #F1ECE2);
  box-shadow: 0 0 0 1px var(--line), 30px 30px 60px rgba(15, 42, 74, .16);
}
.stage::after { /* épaisseur du socle */
  content: ""; position: absolute; inset: 0; border-radius: 28px; transform: translateZ(-14px);
  background: #E7E0D2; box-shadow: 0 0 0 1px #DCD4C4;
}
.bar { position: absolute; transform-style: preserve-3d; width: 56px; height: 56px; }
.bar > i { position: absolute; display: block; border-radius: 6px; }
.bar .top { inset: 0; transform: translateZ(var(--h)); }
.bar .front { left: 0; top: 100%; width: 100%; height: var(--h); transform-origin: top center; transform: rotateX(90deg); border-radius: 0 0 6px 6px; }
.bar .right { top: 0; left: 100%; width: var(--h); height: 100%; transform-origin: left center; transform: rotateY(-90deg); border-radius: 0 6px 6px 0; }
.bar .left { top: 0; left: 0; width: var(--h); height: 100%; transform-origin: left center; transform: rotateY(-90deg); }
.bar .back { left: 0; top: 0; width: 100%; height: var(--h); transform-origin: top center; transform: rotateX(90deg); }

.bar-1 { --h: 78px;  left: 46px;  top: 176px; }
.bar-2 { --h: 132px; left: 122px; top: 112px; }
.bar-3 { --h: 186px; left: 198px; top: 48px; }
.bar-1 .top { background: var(--teal-top); } .bar-1 .front { background: var(--teal); } .bar-1 .right { background: var(--teal-side); }
.bar-2 .top { background: var(--blue-top); } .bar-2 .front { background: var(--blue); } .bar-2 .right { background: var(--blue-side); }
.bar-3 .top { background: var(--navy-top); } .bar-3 .front { background: var(--navy); } .bar-3 .right { background: var(--navy-side); }
.bar .left, .bar .back { background: rgba(0, 0, 0, .12); }
.bar .top::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 60%); }

.shadow-floor { position: absolute; width: 70px; height: 70px; border-radius: 12px; background: rgba(15, 42, 74, .12); filter: blur(6px); transform: translate(18px, 18px); }

.anim .bar { animation: grow 1.5s var(--ease) both; }
.anim .bar-2 { animation-delay: .18s; }
.anim .bar-3 { animation-delay: .36s; }
@keyframes grow { from { --h: 0px; } }

/* Le point soleil reste face à l'écran quelle que soit l'inclinaison */
.sun-anchor { position: absolute; left: 28px; top: 28px; transform-style: preserve-3d; transform: translateZ(calc(var(--h) + 64px)); }
.sun-billboard { transform: rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1)); }
.sun {
  width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #FFE3A6 0%, #F8BC52 32%, var(--sun) 62%, #D9861A 100%);
  box-shadow: 0 0 0 10px rgba(244, 166, 42, .14), 0 0 40px rgba(244, 166, 42, .55);
  animation: bob 4s ease-in-out infinite;
}
/* L'apparition se fait sur le disque lui-même (en 2D) : une animation d'opacité sur un élément 3D l'aplatirait. */
.anim .sun { animation: pop .9s var(--ease) 1.3s both, bob 4s ease-in-out 2.2s infinite; }
@keyframes pop { from { transform: translateY(-120px) scale(.2); } 70% { transform: translateY(6px) scale(1.06); } to { transform: none; } }
@keyframes bob { 50% { transform: translateY(-10px); box-shadow: 0 0 0 16px rgba(244, 166, 42, .1), 0 0 56px rgba(244, 166, 42, .6); } }

/* Cartes flottantes autour de la scène */
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-lift);
  font-size: 13px; line-height: 1.25; font-weight: 600; color: var(--navy);
  animation: float 6s ease-in-out infinite; will-change: transform;
}
.float-card small { display: block; font-weight: 500; color: var(--ink-muted); }
.float-card .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.float-card .dot .i { width: 18px; height: 18px; }
.fc-1 { top: 8%; left: 2%; } .fc-1 .dot { background: var(--blue); }
.fc-2 { top: 44%; right: 0; animation-delay: -2s; } .fc-2 .dot { background: var(--teal); }
.fc-3 { bottom: 4%; left: 10%; animation-delay: -4s; } .fc-3 .dot { background: var(--navy); }
@keyframes float { 50% { translate: 0 -10px; } }
@media (max-width: 599.98px) { .float-card { font-size: 12px; padding: 8px 10px; } .fc-2 { top: 50%; } .fc-3 { bottom: 0; left: 0; } }

.hero-video { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); display: block; }

/* ---------- 7. Bandeau de confiance ---------- */
.trust { padding: 0 0 24px; }
.trust-grid {
  display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
}
@media (min-width: 600px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; background: var(--surface); }
.trust-item .i { color: var(--blue); margin-top: 2px; }
.trust-item strong { display: block; font-size: 15px; line-height: 22px; }
.trust-item span { display: block; font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* ---------- 8. Cartes (accueil et contenus) ---------- */
.cards-grid, .mpi-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card, .mpi-card {
  --accent: var(--blue); --accent-soft: var(--blue-soft);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px 24px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  color: var(--ink); text-decoration: none;
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
a.card:hover, .mpi-card.is-link:hover, .card.tilt:hover { box-shadow: var(--shadow-lift); border-color: transparent; color: var(--ink); }
a.card:hover { transform: translateY(-6px); }
.card h3, .mpi-card h3 { margin: 6px 0 0; }
.card p, .mpi-card p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.card .link-arrow { margin-top: auto; padding-top: 8px; color: var(--accent); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  box-shadow: inset 0 -3px 0 rgba(15, 42, 74, .06);
  transform: translateZ(30px);
}
.is-blue  { --accent: var(--blue); --accent-soft: var(--blue-soft); }
.is-teal  { --accent: var(--teal); --accent-soft: var(--teal-soft); }
.is-navy  { --accent: var(--navy); --accent-soft: #E6EAF0; }
.is-sun   { --accent: #9A5B00; --accent-soft: var(--sun-soft); } /* texte ambre foncé : l'ambre pur ne s'écrit pas sur fond clair */
.card::before, .mpi-card::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent); opacity: .9;
}

/* ---------- 9. Produit phare PMP ---------- */
.feature { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .feature { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.plans-mini { display: grid; gap: 12px; margin-top: 24px; }
.plan-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s;
}
.plan-row:hover { transform: translateX(6px); box-shadow: var(--shadow-card); }
.plan-row .tag { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--blue); }
.plan-row:nth-child(2) .tag { background: var(--teal); }
.plan-row:nth-child(3) .tag { background: #4F82C6; }
.plan-row:nth-child(4) .tag { background: var(--navy); }
.plan-row strong { display: block; font-size: 16px; }
.plan-row span { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.plan-row .price { margin-left: auto; text-align: right; font-weight: 700; font-size: 14px; color: var(--navy); white-space: nowrap; }

.panel-3d {
  position: relative; padding: 32px 28px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, #23497A 0%, var(--navy) 55%, #0A1E36 100%);
  box-shadow: 0 30px 60px rgba(15, 42, 74, .28); overflow: hidden; transform-style: preserve-3d;
}
.panel-3d h3 { color: #fff; font-size: 24px; line-height: 32px; }
.panel-3d p { color: #C9D5E6; }
.panel-3d .overline { color: #4CC9B6; }
.steps-mini { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 14px; counter-reset: s; }
.steps-mini li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; color: #E3EAF4; font-size: 15px; line-height: 22px; }
.steps-mini li::before {
  content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff;
}
.panel-bars { position: absolute; right: -10px; bottom: -10px; display: flex; align-items: flex-end; gap: 10px; opacity: .14; pointer-events: none; }
.panel-bars i { display: block; width: 26px; border-radius: 6px 6px 0 0; background: #fff; }
.panel-bars i:nth-child(1) { height: 50px; } .panel-bars i:nth-child(2) { height: 80px; } .panel-bars i:nth-child(3) { height: 112px; }

/* ---------- 10. La méthode ---------- */
.method { display: grid; gap: 20px; }
@media (min-width: 860px) { .method { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.method-step { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.method-step .cube { width: 64px; height: 64px; margin-bottom: 18px; perspective: 400px; }
.cube-inner { position: relative; width: 44px; height: 44px; margin: 10px; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(38deg); animation: spin 9s linear infinite; }
.cube-inner b { position: absolute; inset: 0; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; }
.cube-inner b:nth-child(1) { transform: translateZ(22px); }
.cube-inner b:nth-child(2) { transform: rotateY(90deg) translateZ(22px); filter: brightness(.82); }
.cube-inner b:nth-child(3) { transform: rotateY(180deg) translateZ(22px); filter: brightness(.9); }
.cube-inner b:nth-child(4) { transform: rotateY(-90deg) translateZ(22px); filter: brightness(.75); }
.cube-inner b:nth-child(5) { transform: rotateX(90deg) translateZ(22px); filter: brightness(1.15); }
.cube-inner b:nth-child(6) { transform: rotateX(-90deg) translateZ(22px); filter: brightness(.7); }
.m-1 .cube-inner b { background: var(--teal); }
.m-2 .cube-inner b { background: var(--blue); }
.m-3 .cube-inner b { background: var(--navy); }
.m-2 .cube-inner { animation-delay: -3s; } .m-3 .cube-inner { animation-delay: -6s; }
@keyframes spin { to { transform: rotateX(-24deg) rotateY(398deg); } }
.method-step p { color: var(--ink-muted); margin: 0; }
.method-step .overline { margin-bottom: 4px; }

/* ---------- 11. L'espace ---------- */
.space { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .space { grid-template-columns: .95fr 1.05fr; gap: 56px; } }
.space-tiles { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.space-tile {
  --accent: var(--blue); --accent-soft: var(--blue-soft);
  padding: 22px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.space-tile.big { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, var(--teal-soft), #F2FAF8); border-color: #C6E7E1; }
.space-tile .card-icon { transform: none; margin-bottom: 12px; }
.space-tile.big .card-icon { margin: 0; }
.space-tile strong { display: block; font-size: 17px; line-height: 24px; }
.space-tile span { display: block; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.price-big { font-size: 28px; line-height: 1.1; font-weight: 800; color: var(--navy); }
.price-big small { font-size: 14px; font-weight: 600; color: var(--ink-muted); }

/* ---------- 12. Bande Organisations ---------- */
.band-navy { background: var(--navy); color: #fff; border-radius: 28px; padding: 44px 28px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .band-navy { padding: 64px 56px; } }
.band-navy h2 { color: #fff; }
.band-navy p { color: #C9D5E6; }
.band-navy .overline { color: #4CC9B6; }
.band-grid { display: grid; gap: 28px; position: relative; z-index: 1; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; } }
.check-list, .mpi-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li, .mpi-check li { position: relative; padding-left: 34px; }
.check-list li::before, .mpi-check li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--teal);
  -webkit-mask: none; mask: none;
}
.check-list li::after, .mpi-check li::after {
  content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.band-navy .check-list li { color: #E3EAF4; }
.band-bars { position: absolute; right: 24px; bottom: 0; display: flex; gap: 14px; align-items: flex-end; opacity: .08; }
.band-bars i { display: block; width: 46px; border-radius: 8px 8px 0 0; background: #fff; }
.band-bars i:nth-child(1) { height: 90px; } .band-bars i:nth-child(2) { height: 150px; } .band-bars i:nth-child(3) { height: 210px; }

/* ---------- 13. Appel final ---------- */
.cta-final { text-align: center; }
.cta-card {
  max-width: 880px; margin: 0 auto; padding: 48px 28px; border-radius: 28px;
  background: linear-gradient(135deg, var(--blue-soft), #F4F8FD 60%, var(--teal-soft));
  border: 1px solid #D4E2F4;
}
.cta-card .btn-row { justify-content: center; }

/* ---------- 14. Pages intérieures ---------- */
.page-hero { position: relative; overflow: hidden; padding: 48px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FFFFFF 0%, var(--ground) 100%); }
@media (min-width: 900px) { .page-hero { padding: 72px 0 56px; } }
.page-hero h1 { max-width: 18em; }
.page-hero .lead { margin: 0; }
.page-hero .hero-bars { position: absolute; right: max(var(--gutter), calc(50% - 600px)); bottom: -2px; display: none; align-items: flex-end; gap: 12px; }
@media (min-width: 900px) { .page-hero .hero-bars { display: flex; } }
.hero-bars i { display: block; width: 34px; border-radius: 8px 8px 0 0; }
.hero-bars i:nth-child(1) { height: 56px; background: var(--teal); }
.hero-bars i:nth-child(2) { height: 92px; background: var(--blue); }
.hero-bars i:nth-child(3) { height: 128px; background: var(--navy); }
.breadcrumbs { font-size: 14px; color: var(--ink-muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }

.page-body { padding: 48px 0 80px; }
.prose { max-width: 780px; margin: 0 auto; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: var(--radius-lg); }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-radius: var(--radius-md); background: var(--blue-soft); color: var(--navy); font-size: 18px; line-height: 30px; }
.prose .alignwide, .prose .mpi-wide, .prose .mpi-grid, .prose .mpi-plans, .prose .mpi-cta { max-width: none; width: min(1200px, calc(100vw - var(--gutter) * 2)); margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
.prose .mpi-grid, .prose .mpi-plans, .prose .mpi-cta { margin-top: 2em; margin-bottom: 2em; }

table, .mpi-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; font-size: 15px; line-height: 22px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #FCFBF8; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Blocs réutilisables dans le contenu des pages */
.mpi-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; background: var(--blue-soft); color: var(--blue); }
.mpi-badge.is-teal { background: var(--teal-soft); color: var(--teal); }
.mpi-badge.is-sun { background: var(--sun-soft); color: #7A4800; }
.mpi-note { padding: 16px 18px; border-radius: var(--radius-md); background: var(--sun-soft); color: var(--ink); font-size: 15px; line-height: 24px; }
.mpi-plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.mpi-plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mpi-plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.mpi-plan h3 { margin: 0; }
.mpi-plan .mpi-badge, .mpi-card .mpi-badge { align-self: flex-start; }
.mpi-plan .mpi-price { font-size: 26px; line-height: 1.15; font-weight: 800; color: var(--navy); }
.mpi-plan .mpi-price small { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.mpi-plan ul { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 8px; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.mpi-plan ul li { position: relative; padding-left: 26px; }
.mpi-plan ul li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.mpi-plan .mpi-btn { margin-top: auto; }
.mpi-plan.is-featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lift); }
.mpi-plan.is-featured::before { content: "Recommandé"; position: absolute; top: -13px; left: 24px; padding: 3px 12px; border-radius: var(--radius-pill); background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.mpi-steps, .prose .mpi-steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 14px; }
.prose .mpi-steps li + li, .prose .mpi-plan li + li { margin-top: 0; }
.mpi-steps li { counter-increment: st; position: relative; padding: 16px 18px 16px 64px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.mpi-steps li::before { content: counter(st); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 #17457F; }
.mpi-cta { display: grid; gap: 18px; align-items: center; padding: 32px 28px; border-radius: 24px; background: var(--navy); color: #fff; }
@media (min-width: 800px) { .mpi-cta { grid-template-columns: 1fr auto; padding: 40px 44px; } }
.mpi-cta h2, .mpi-cta h3 { color: #fff; margin: 0; }
.mpi-cta p { color: #C9D5E6; margin: 6px 0 0; }
.mpi-faq { display: grid; gap: 10px; }
.mpi-faq details { border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); padding: 0 18px; transition: box-shadow .2s; }
.mpi-faq details[open] { box-shadow: var(--shadow-card); }
.mpi-faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 700; position: relative; }
.mpi-faq summary::-webkit-details-marker { display: none; }
.mpi-faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; font-weight: 500; color: var(--blue); transition: transform .25s; }
.mpi-faq details[open] summary::after { transform: rotate(45deg); }
.mpi-faq details > *:not(summary) { margin: 0 0 16px; color: var(--ink-muted); }

/* Liste d'articles */
.posts-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); color: var(--ink); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .body { padding: 20px 22px 24px; }
.post-card .meta { font-size: 13px; color: var(--ink-muted); }
.pagination { margin-top: 40px; display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Formulaires */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid #CFC7B8; background: var(--surface); color: var(--ink); font: 16px/1.4 var(--font);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 90, 168, .15); }
label { font-weight: 600; font-size: 15px; }

/* ---------- 15. Pied de page ---------- */
.site-footer { background: var(--navy); color: #C9D5E6; padding: 64px 0 28px; margin-top: 0; position: relative; overflow: hidden; }
.site-footer a { color: #E3EAF4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 16px; font-size: 15px; line-height: 24px; max-width: 26em; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .i { width: 18px; height: 18px; color: #4CC9B6; margin-top: 3px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; }
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.signature { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #4CC9B6; }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: var(--radius-pill);
  background: var(--teal); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 4px 0 var(--teal-side), 0 14px 30px rgba(14, 124, 112, .35);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 7px 0 var(--teal-side), 0 20px 36px rgba(14, 124, 112, .4); }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 599.98px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------- 16. WooCommerce et Tutor LMS : harmonisation légère ---------- */
.woocommerce-page .page-body .prose, .tutor-page .page-body .prose { max-width: var(--container); }
.woocommerce .price, .woocommerce-Price-amount { color: var(--navy); font-weight: 700; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--teal) !important; background: var(--surface) !important; }
.woocommerce-error { border-top-color: var(--error) !important; }
.tutor-btn-primary, .tutor-btn.tutor-btn-primary { background-color: var(--blue) !important; border-color: var(--blue) !important; }
:root { --tutor-color-primary: #1E5AA8; --tutor-color-primary-rgb: 30, 90, 168; --tutor-color-primary-hover: #1A4F94; }

/* ---------- 17. Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; }
.js .reveal-d4 { transition-delay: .32s; } .js .reveal-d5 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
