/* ==========================================================================
   Methods & Performance Institute — page d'accueil v2
   (film en héro, onglets « Vous souhaitez… », pôles, méthode, espace)
   Chargé après main.css, dont il reprend les jetons de la charte.
   ========================================================================== */

/* Boutons complémentaires */
.btn-sun { background: var(--sun); color: var(--navy); box-shadow: 0 4px 0 #C98316, 0 12px 28px rgba(244, 166, 42, .35); }
.btn-sun:hover { background: #F7B54A; color: var(--navy); box-shadow: 0 6px 0 #C98316, 0 18px 34px rgba(244, 166, 42, .42); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }
.btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; box-shadow: none; }

/* --- Héro : film --- */
.hero-film {
  --night: #07111F;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, calc(100svh - var(--header-h)), 860px);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--night); color: #F2EEE6;
}
.film-stage, .film-backdrop, .film-shade, .film-fade { position: absolute; inset: 0; }
.film-stage { z-index: 0; }
.film-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-film.has-video .film-backdrop { display: none; }
@media (prefers-reduced-motion: reduce) { .film-video { display: none; } .hero-film.has-video .film-backdrop { display: block; } }
/* Décor de secours (sans WebGL, ou avant le chargement) : nuit et grille lumineuse en perspective */
.film-backdrop {
  z-index: 0;
  background:
    radial-gradient(60% 50% at 72% 58%, rgba(244, 166, 42, .22), transparent 60%),
    radial-gradient(80% 70% at 70% 100%, rgba(30, 90, 168, .45), transparent 70%),
    var(--night);
}
.film-backdrop::after {
  content: ""; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%;
  background:
    linear-gradient(rgba(76, 201, 182, .35) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(76, 201, 182, .35) 1px, transparent 1px) 0 0 / 60px 60px;
  transform: perspective(500px) rotateX(62deg); transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
.hero-film.is-live .film-backdrop { display: none; }
.film-shade { z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 17, 31, .88) 0%, rgba(7, 17, 31, .55) 38%, rgba(7, 17, 31, 0) 64%),
              linear-gradient(0deg, rgba(7, 17, 31, .75) 0%, rgba(7, 17, 31, 0) 32%); }
@media (max-width: 959.98px) { .film-shade { background: linear-gradient(0deg, rgba(7, 17, 31, .92) 0%, rgba(7, 17, 31, .55) 55%, rgba(7, 17, 31, .2) 100%); } }
.film-fade { z-index: 2; background: #000; opacity: 0; pointer-events: none; }

.film-content { position: relative; z-index: 3; padding-top: 48px; padding-bottom: 120px; }
@media (max-width: 959.98px) { .film-content { margin-top: auto; padding-bottom: 104px; } }
.film-caps { position: relative; min-height: 220px; max-width: 640px; }
@media (max-width: 599.98px) { .film-caps { min-height: 200px; } }
.cap { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; will-change: opacity, transform; }
.hero-film:not(.is-live) .cap[data-final], .hero-film.is-static .cap[data-final] { opacity: 1; }
.cap-over { margin: 0 0 12px; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #4CC9B6; }
.cap-big { margin: 0; font-size: clamp(36px, 6.2vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.cap-big em { font-style: normal; color: var(--sun); }
.cap-sub { margin: 14px 0 0; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5; color: #C9D5E6; max-width: 34em; }
.cap-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.cap-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(76, 201, 182, .14); border: 1px solid rgba(76, 201, 182, .45); color: #fff; font-weight: 700; font-size: 15px; }
.cap-chips b { font-size: 12px; color: #4CC9B6; }
.cap-lockup { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.cap-lockup img { width: 44px; height: 44px; }
.cap-lockup span { font-size: 20px; line-height: 1.1; font-weight: 800; color: #fff; }
.cap-lockup i { display: block; font-style: normal; font-size: 12px; letter-spacing: .3em; color: #4CC9B6; margin-top: 4px; }
.film-lead { margin: 22px 0 0; font-size: 18px; line-height: 28px; color: #E3EAF4; font-weight: 500; }
.hero-film .btn-row { margin-top: 22px; }

.film-controls { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 4; display: flex; align-items: center; gap: 16px; }
.film-scenes { display: flex; gap: 6px; flex: 1; max-width: 640px; }
.film-scenes button {
  flex: 1; min-height: 44px; padding: 18px 0 6px; border: 0; background: transparent; cursor: pointer;
  font: 600 12px/1 var(--font); color: rgba(242, 238, 230, .65); text-align: left; position: relative; transition: color .2s;
}
.film-scenes button::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); transition: background .3s; }
.film-scenes button.is-on { color: #fff; }
.film-scenes button.is-on::before { background: var(--sun); }
.film-scenes button:hover { color: #fff; }
@media (max-width: 599.98px) { .film-scenes button { font-size: 0; } }
.film-toggle {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); color: #fff;
}
.film-toggle:hover { background: rgba(255, 255, 255, .2); }
.film-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.film-toggle .i-play, .film-toggle.is-paused .i-pause { display: none; }
.film-toggle.is-paused .i-play { display: block; }
.hero-film.is-static .film-controls { display: none; }
.scroll-cue { position: absolute; z-index: 4; right: max(var(--gutter), calc(50% - 600px)); bottom: 82px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 959.98px) { .scroll-cue { display: none; } }

/* Le bandeau de confiance chevauche légèrement le héro */
.hero-film + .trust { margin-top: -28px; position: relative; z-index: 5; }

.section-white { background: var(--surface); border-block: 1px solid var(--line); }

/* --- « Vous souhaitez… » : onglets --- */
.goals { max-width: 1080px; margin: 0 auto; }
.goal-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
@media (max-width: 899.98px) { .goal-tabs { grid-template-columns: 1fr 1fr; } }
.goal-tabs [role="tab"] {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 14px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink-muted); cursor: pointer;
  font: 700 15px/1.25 var(--font); text-align: left; transition: background .25s, color .25s, box-shadow .25s;
}
@media (max-width: 599.98px) { .goal-tabs [role="tab"] { font-size: 13px; justify-content: flex-start; } }
.goal-tabs [role="tab"] .i { width: 22px; height: 22px; }
.goal-tabs [role="tab"]:hover { background: var(--ground); color: var(--navy); }
.goal-tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(15, 42, 74, .22); }
.goal-panel {
  --accent: var(--blue); --accent-soft: var(--blue-soft); --glow: #1E5AA8;
  display: grid; gap: 28px; margin-top: 20px; padding: 20px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  animation: panelIn .45s var(--ease);
}
.goal-panel.is-teal { --glow: #0E7C70; } .goal-panel.is-navy { --glow: #23497A; } .goal-panel.is-sun { --glow: #9A5B00; }
.goal-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 860px) { .goal-panel { grid-template-columns: .9fr 1.1fr; padding: 24px; align-items: center; } }
.goal-media { position: relative; min-height: 260px; border-radius: 18px; overflow: hidden; background: radial-gradient(70% 70% at 70% 30%, var(--glow) 0%, #07111F 78%); }
.gm-grid { position: absolute; left: -40%; right: -40%; bottom: -5%; height: 55%;
  background: linear-gradient(rgba(127, 176, 240, .35) 1px, transparent 1px) 0 0 / 34px 34px, linear-gradient(90deg, rgba(127, 176, 240, .35) 1px, transparent 1px) 0 0 / 34px 34px;
  transform: perspective(360px) rotateX(60deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
.gm-bars { position: absolute; left: 50%; bottom: 26%; display: flex; gap: 12px; align-items: flex-end; transform: translateX(-50%); }
.gm-bars i { display: block; width: 34px; border-radius: 8px 8px 4px 4px; box-shadow: 0 0 24px rgba(76, 201, 182, .35); transform-origin: bottom; animation: rise 1.1s var(--ease) both; }
.gm-bars i:nth-child(1) { height: 52px; background: linear-gradient(#3FA597, var(--teal)); }
.gm-bars i:nth-child(2) { height: 86px; background: linear-gradient(#4F82C6, var(--blue)); animation-delay: .12s; }
.gm-bars i:nth-child(3) { height: 124px; background: linear-gradient(#FFFFFF, #CFE0F5); animation-delay: .24s; position: relative; }
.gm-bars i:nth-child(3)::after { content: ""; position: absolute; left: 50%; top: -42px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFE3A6, var(--sun) 60%, #D9861A); box-shadow: 0 0 30px rgba(244, 166, 42, .7); animation: bob 4s ease-in-out infinite; }
@keyframes rise { from { transform: scaleY(.05); } to { transform: scaleY(1); } }
.gm-chip { position: absolute; left: 18px; top: 18px; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 13px; font-weight: 700; }
.goal-body h3 { font-size: 24px; line-height: 32px; margin-bottom: 14px; }
.offer-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.offer-list a { display: block; position: relative; padding: 14px 44px 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .25s var(--ease), background .2s; }
.offer-list a::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--accent); border-top: 2px solid var(--accent); transform: rotate(45deg); }
.offer-list a:hover { border-color: var(--accent); background: var(--surface); transform: translateX(4px); color: var(--ink); }
.offer-list strong { display: block; font-size: 16px; line-height: 22px; }
.offer-list span { display: block; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.goal-note { font-size: 14px; line-height: 22px; color: var(--ink-muted); margin: 0 0 18px; }
.goal-note a { font-weight: 700; }

/* --- Pôles (grille bento) --- */
.bento { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .bento { grid-template-columns: 1.25fr 1fr 1fr; } .bento .pole:first-child { grid-row: span 2; } .bento .pole:last-child { grid-column: span 2; } }
.pole {
  --accent: var(--blue); --accent-soft: var(--blue-soft);
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 22px; overflow: hidden;
  background: var(--ground); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.pole::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--accent-soft); opacity: .8; z-index: 0; transition: transform .5s var(--ease); }
.pole > * { position: relative; z-index: 1; }
.pole:hover { box-shadow: var(--shadow-lift); border-color: transparent; color: var(--ink); }
.pole:hover::after { transform: scale(1.25); }
.pole h3 { margin: 4px 0 0; font-size: 22px; line-height: 30px; }
.pole ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pole li { position: relative; padding-left: 20px; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.pole li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.pole .link-arrow { margin-top: auto; padding-top: 10px; color: var(--accent); }
.bento .pole:first-child { background: linear-gradient(160deg, var(--blue-soft), #F6F9FE 70%); }

/* --- Méthode --- */
.method-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .method-split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.dash { border-radius: 22px; padding: 22px; background: #0B1626; color: #E3EAF4; box-shadow: 0 30px 60px rgba(15, 42, 74, .28); transform: perspective(1200px) rotateY(8deg) rotateX(4deg); transition: transform .6s var(--ease); }
.method-visual:hover .dash { transform: none; }
.dash-top { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.dash-top span { width: 10px; height: 10px; border-radius: 50%; background: #24364F; }
.dash-top b { margin-left: 10px; font-size: 13px; letter-spacing: .08em; color: #A9B3C2; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.dash-kpis i { font-style: normal; padding: 12px; border-radius: 12px; background: #13223A; }
.dash-kpis em { display: block; font-style: normal; font-size: 12px; color: #A9B3C2; }
.dash-kpis strong { display: block; font-size: 22px; line-height: 1.2; color: #fff; }
.dash-kpis .hl strong { color: var(--sun); }
.dash-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 12px; border-radius: 12px; background: #13223A; }
.dash-chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(#4CC9B6, var(--teal)); transform-origin: bottom; transition: transform 1s var(--ease); }
.dash-chart i:nth-child(even) { background: linear-gradient(#7FB0F0, var(--blue)); }
.dash-chart i:nth-child(1) { height: 30%; }
.dash-chart i:nth-child(2) { height: 42%; transition-delay: .06s; }
.dash-chart i:nth-child(3) { height: 38%; transition-delay: .12s; }
.dash-chart i:nth-child(4) { height: 56%; transition-delay: .18s; }
.dash-chart i:nth-child(5) { height: 64%; transition-delay: .24s; }
.dash-chart i:nth-child(6) { height: 78%; transition-delay: .3s; }
.dash-chart i:nth-child(7) { height: 92%; transition-delay: .36s; background: linear-gradient(#F8BC52, var(--sun)); }
.js .method-visual.reveal .dash-chart i { transform: scaleY(.05); }
.js .method-visual.reveal.is-in .dash-chart i { transform: none; }
.dash-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-muted); text-align: center; }
.steps-line { list-style: none; padding: 0; margin: 28px 0 0; display: grid; position: relative; }
.steps-line::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--teal), var(--blue), var(--navy)); }
.steps-line li { display: flex; gap: 18px; padding: 10px 0; position: relative; }
.steps-line li > span { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--teal); box-shadow: 0 4px 0 var(--teal-side); }
.steps-line li:nth-child(2) > span { background: var(--blue); box-shadow: 0 4px 0 var(--blue-side); }
.steps-line li:nth-child(3) > span { background: var(--navy); box-shadow: 0 4px 0 var(--navy-side); }
.steps-line h3 { margin: 6px 0 4px; }
.steps-line p { margin: 0; color: var(--ink-muted); }

/* --- L'espace : bientôt disponible --- */
.space-soon { position: relative; padding: 32px; border-radius: 26px; border: 2px dashed #D6CFC1; background: repeating-linear-gradient(135deg, rgba(228, 222, 211, .25) 0 12px, transparent 12px 24px); }
.space-soon .space { filter: grayscale(1); opacity: .62; }
.soon-badge { position: absolute; top: -16px; left: 32px; z-index: 2; padding: 6px 16px; border-radius: var(--radius-pill); background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 599.98px) { .space-soon { padding: 28px 18px 22px; } }

/* --- FAQ --- */
.faq-split { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-split { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }

/* --- Menu et pied de page --- */
.main-nav .sub-menu small { font-weight: 500; color: var(--ink-muted); }
.main-nav .menu-item-strong > a { font-weight: 700; color: var(--blue); }
@media (min-width: 1100px) {
  .main-nav .sub-menu { min-width: 330px; }
  .main-nav .menu-item-strong { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
}
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.muted-link { color: #8E9AAD; }

@media (prefers-reduced-motion: reduce) {
  .gm-bars i, .gm-bars i::after, .scroll-cue span, .goal-panel { animation: none !important; }
  .dash { transform: none; }
}

/* ==========================================================================
   Accueil, sections 2 à 7 (Nos formations → Contact).
   Toutes les règles visent les classes .x-hs : la section Accueil
   (héros + bandeau) et les autres pages ne sont pas concernées.
   ========================================================================== */

/* Hiérarchie : même rythme titre / texte dans toutes les sections. */
.x-hs .x-head { margin-bottom: 40px; }
.x-hs .x-lead + .x-lead { margin-top: 14px; }
.x-hs .x-split .x-h2 { max-width: 600px; }

/* 2. Nos formations : formats à la même largeur que les cartes des pôles. */
.x-hs-formations .x-formats.is-wide { width: auto; margin-left: 0; }
.x-hs-formations .x-formats + .x-domains { margin-top: 28px; }
@media (max-width: 640px) {
  /* Cartes empilées sur mobile : rien n'est coupé ni à faire défiler de côté. */
  .x-hs-formations .x-formats.is-wide { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow: visible; scroll-snap-type: none; padding-bottom: 0; gap: 12px; }
}

/* 3. Conseil et accompagnement : écart réduit avant le parcours. */
.x-hs-conseil .x-journey { margin-top: 56px; }

/* 7. Contact : accent orange du titre et dispositif « Être rappelé ». */
.x-hs-contact .x-cta h2 em { font-style: normal; color: var(--sun); }
.x-hs-callback { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); }
.x-hs-callback p { margin: 0; font-size: 16px; line-height: 24px; color: #DCE6F2; }

@media (max-width: 767px) {
  .x-hs .x-head { margin-bottom: 30px; }
  .x-hs-conseil .x-journey { margin-top: 44px; }
}

/* 4. Templates : photo détourée, sans fond ni cadre. */
.x-hs-templates .x-photo-cutout { aspect-ratio: auto; overflow: visible; border-radius: 0; box-shadow: none; background: none; max-width: 480px; margin: 0 auto; }
.x-hs-templates .x-photo-cutout img { position: relative; z-index: 1; width: 100%; height: auto; object-fit: contain; animation: none; }
@media (max-width: 900px) { .x-hs-templates .x-photo-cutout { max-width: 360px; } }

/* 5. MPI Kids : dessin d'enfants (illustration vectorielle), sans effet de zoom. */
.x-hs-kids .x-photo-drawing { background: #FFF8EC; }
.x-hs-kids .x-photo-drawing img { animation: none; object-fit: cover; }

/* ==========================================================================
   Accueil, sections 2 à 7 : même disposition que sur ordinateur,
   en plus petit, sur tablette et téléphone. La section Accueil (héros)
   n'est pas concernée : toutes les règles visent les classes .x-hs.
   ========================================================================== */

/* ---------- Tablette et téléphone (jusqu'à 980 px) ---------- */
@media (max-width: 980px) {
  .x-hs.x-section { padding: 64px 0; }
  .x-hs .x-h2 { font-size: 28px; line-height: 1.18; }
  .x-hs .x-lead { font-size: 15.5px; line-height: 25px; }
  .x-hs .x-head { margin-bottom: 28px; }

  /* Colonnes côte à côte, comme sur ordinateur */
  .x-hs .x-split { grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
  .x-hs .x-split.is-reverse .x-split-media { order: 2; }
  .x-hs .x-split-media .x-chip { left: -8px; bottom: 16px; padding: 10px 12px; font-size: 12px; line-height: 16px; max-width: 180px; }
  .x-hs .x-split-media .x-chip b { font-size: 14px; }

  .x-hs .btn-row { gap: 10px; }
  .x-hs .btn { min-height: 42px; padding: 10px 14px; font-size: 14px; }

  /* 2. Nos formations : 3 formats + 3 colonnes de pôles */
  .x-hs-formations .x-formats.is-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .x-hs-formations .x-formats.is-wide .x-format { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; padding: 16px 14px; }
  .x-hs-formations .x-formats.is-wide .x-format .x-ico { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 11px; margin: 0; }
  .x-hs-formations .x-formats.is-wide .x-format .x-ico svg { width: 19px; height: 19px; }
  .x-hs-formations .x-formats.is-wide .x-format h3 { font-size: 15px; line-height: 20px; margin: 0 0 4px; }
  .x-hs-formations .x-formats.is-wide .x-format p { font-size: 12px; line-height: 18px; }
  .x-hs-formations .x-domains.is-six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .x-hs-formations .x-domain h3 { font-size: 14px; line-height: 19px; min-height: 0; }
  .x-hs-formations .x-domain p { font-size: 12px; line-height: 18px; }

  /* 3. Conseil : les 4 étapes restent sur une ligne, reliées par des flèches */
  .x-hs-conseil .x-journey { margin-top: 40px; }
  .x-hs-conseil .x-journey-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: none; }
  .x-hs-conseil .x-jstep { display: block; padding: 16px 12px 18px; }
  .x-hs-conseil .x-jstep-ico { width: 42px; height: 42px; border-radius: 12px; margin: 0 0 10px; }
  .x-hs-conseil .x-jstep-ico svg { width: 21px; height: 21px; }
  .x-hs-conseil .x-jstep-num { top: 14px; right: 12px; font-size: 11px; }
  .x-hs-conseil .x-jstep h4 { font-size: 13.5px; line-height: 18px; padding-right: 0; }
  .x-hs-conseil .x-jstep p { font-size: 12px; line-height: 18px; }
  .x-hs-conseil .x-jstep:not(:last-child)::after { top: 34px; right: -13px; bottom: auto; left: auto; width: 9px; height: 9px; transform: rotate(45deg); }
  .x-hs-conseil .x-jstep:not(:last-child)::before { top: 38px; right: -16px; bottom: auto; left: auto; width: 12px; height: 2px; background: linear-gradient(90deg, rgba(244,166,42,.2), var(--sun)); }

  /* 5. MPI Kids : dessin + 4 cartes en 2 × 2 */
  .x-hs-kids .x-kids-acts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .x-hs-kids .x-kids-acts .x-step { padding: 14px; }
  .x-hs-kids .x-kids-acts .x-step b { font-size: 14px; line-height: 19px; }
  .x-hs-kids .x-kids-acts .x-step p { font-size: 12px; line-height: 18px; }

  /* 6. Nos espaces */
  .x-hs-espaces .x-checks { gap: 8px; margin-top: 16px; }
  .x-hs-espaces .x-checks li { font-size: 13.5px; line-height: 21px; padding-left: 28px; }
  .x-hs-espaces .x-checks li::before { width: 18px; height: 18px; }

  /* 7. Contact : texte à gauche, photo à droite */
  .x-hs-contact .x-cta { grid-template-columns: 1.25fr .75fr; }
  .x-hs-contact .x-cta-text { padding: 32px 28px; }
  .x-hs-contact .x-cta h2 { font-size: 26px; }
  .x-hs-contact .x-cta p { font-size: 15px; line-height: 24px; }
  .x-hs-contact .x-cta-img { min-height: 0; }
  .x-hs-contact .x-cta-img::before { background: linear-gradient(90deg, #174B8E 0%, rgba(23,75,142,0) 45%); }
}

/* ---------- Téléphone (jusqu'à 600 px) : même disposition, textes secondaires masqués ---------- */
@media (max-width: 600px) {
  .x-hs.x-section { padding: 44px 0; }
  .x-hs .x-over { font-size: 9.5px; line-height: 13px; letter-spacing: .12em; margin-bottom: 6px; }
  .x-hs .x-h2 { font-size: 19px; line-height: 1.2; margin-bottom: 8px; }
  .x-hs .x-lead { font-size: 12.5px; line-height: 19px; }
  .x-hs .x-lead + .x-lead { display: none; }
  .x-hs .x-head { margin-bottom: 18px; }
  .x-hs .x-split { gap: 14px; }
  .x-hs .btn-row { gap: 6px; margin-top: 12px; }
  .x-hs .btn { min-height: 32px; padding: 7px 10px; font-size: 11px; line-height: 14px; border-radius: 10px; }
  .x-hs .x-photo { border-radius: 14px; }
  .x-hs .x-split-media .x-chip, .x-hs .x-bars-deco { display: none; }

  /* 2. Nos formations */
  .x-hs-formations .x-formats.is-wide { gap: 6px; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; padding-bottom: 0; }
  .x-hs-formations .x-formats.is-wide .x-format { display: block; padding: 10px 8px; border-radius: 12px; text-align: center; }
  .x-hs-formations .x-formats.is-wide .x-format .x-ico { width: 30px; height: 30px; border-radius: 9px; margin: 0 auto 6px; }
  .x-hs-formations .x-formats.is-wide .x-format .x-ico svg { width: 16px; height: 16px; }
  .x-hs-formations .x-formats.is-wide .x-format h3 { font-size: 11px; line-height: 14px; margin: 0; }
  .x-hs-formations .x-formats.is-wide .x-format p, .x-hs-formations .x-format::before { display: none; }
  .x-hs-formations .x-formats + .x-domains { margin-top: 10px; }
  .x-hs-formations .x-domains.is-six { gap: 6px; }
  .x-hs-formations .x-domain { border-radius: 12px; }
  .x-hs-formations .x-domains.is-six .x-domain-img { aspect-ratio: 4/3; }
  .x-hs-formations .x-domain-img .x-tag, .x-hs-formations .x-domain p, .x-hs-formations .x-domain .x-more { display: none; }
  .x-hs-formations .x-domains.is-six .x-domain-body { padding: 7px 7px 9px; }
  .x-hs-formations .x-domains.is-six .x-domain h3 { font-size: 10.5px; line-height: 13px; margin: 0; }

  /* 3. Conseil */
  .x-hs-conseil .x-journey { margin-top: 26px; }
  .x-hs-conseil .x-journey-title { font-size: 14px; line-height: 20px; margin-bottom: 12px; }
  .x-hs-conseil .x-journey-steps { gap: 10px; }
  .x-hs-conseil .x-jstep { padding: 10px 6px 12px; border-radius: 12px; text-align: center; }
  .x-hs-conseil .x-jstep-ico { width: 30px; height: 30px; border-radius: 9px; margin: 0 auto 6px; }
  .x-hs-conseil .x-jstep-ico svg { width: 16px; height: 16px; }
  .x-hs-conseil .x-jstep-num, .x-hs-conseil .x-jstep p { display: none; }
  .x-hs-conseil .x-jstep h4 { font-size: 10px; line-height: 13px; margin: 0; }
  .x-hs-conseil .x-jstep:not(:last-child)::after { top: 22px; right: -8px; width: 6px; height: 6px; border-width: 2px; }
  .x-hs-conseil .x-jstep:not(:last-child)::before { top: 25px; right: -10px; width: 8px; }

  /* 4. Templates */
  .x-hs-templates .x-split { grid-template-columns: 1.3fr .7fr; }
  .x-hs-templates .x-photo-cutout { max-width: none; }

  /* 5. MPI Kids */
  .x-hs-kids .x-kids-home { grid-template-columns: .95fr 1.05fr; }
  .x-hs-kids .x-kids-acts { gap: 6px; }
  .x-hs-kids .x-kids-acts .x-step { padding: 8px; border-radius: 10px; }
  .x-hs-kids .x-kids-acts .x-step b { font-size: 10.5px; line-height: 13px; margin: 0; }
  .x-hs-kids .x-kids-acts .x-step p { display: none; }
  .x-hs-kids .x-kids-home .btn-row { margin-top: 10px; }

  /* 6. Nos espaces : on garde seulement le titre de chaque point */
  .x-hs-espaces .x-checks { gap: 4px; margin-top: 8px; }
  .x-hs-espaces .x-checks li { font-size: 0; line-height: 0; padding-left: 20px; }
  .x-hs-espaces .x-checks li b { font-size: 11px; line-height: 16px; }
  .x-hs-espaces .x-checks li::before { width: 14px; height: 14px; top: 1px; background-size: 9px; }

  /* 7. Contact */
  .x-hs-contact .x-cta { border-radius: 18px; grid-template-columns: 1.55fr .45fr; }
  .x-hs-contact .x-cta-text { padding: 18px 14px; }
  .x-hs-contact .x-cta h2 { font-size: 17px; line-height: 1.2; margin-bottom: 6px; }
  .x-hs-contact .x-cta p { font-size: 11.5px; line-height: 17px; }
  .x-hs-callback { margin-top: 12px; padding-top: 10px; gap: 6px; }
  .x-hs-callback p { font-size: 11px; line-height: 15px; }
}

/* 5. MPI Kids : dessin sans cadre, posé sur le décor (halo + gribouillis discrets) */
.x-hs-kids { position: relative; overflow: hidden; }
.x-hs-kids::before { content: ""; position: absolute; inset: 0; background: url("../images/illustrations/kids-doodles-bg.svg") repeat; background-size: 560px auto; opacity: .16; pointer-events: none; }
.x-hs-kids .x-wrap { position: relative; z-index: 1; }
.x-hs-kids .x-kids-art { position: relative; }
.x-hs-kids .x-kids-art::before { content: ""; position: absolute; left: 4%; right: 4%; top: 2%; bottom: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(76, 201, 182, .30), rgba(30, 90, 168, .18) 60%, transparent); }
.x-hs-kids .x-kids-art img { position: relative; display: block; width: 100%; height: auto; animation: x-kid-bob 7s ease-in-out infinite; }
@keyframes x-kid-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .x-hs-kids .x-kids-art img { animation: none; } }

/* 6. Formations : dessins des domaines (plus de photos) */
.x-hs-formations .x-domain-img img[src$=".svg"] { object-fit: cover; }
.x-hs-formations a.x-domain:hover .x-domain-img img[src$=".svg"] { transform: scale(1.03); }

/* 7. Espaces : future visite virtuelle 360°, grisée tant qu'elle n'existe pas */
.x-hs-espaces .x-tour { position: relative; max-width: 560px; margin: 0 auto; }
.x-hs-espaces .x-tour img { display: block; width: 100%; height: auto; }
.x-hs-espaces .x-tour-badge { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 20px 10px 10px; white-space: nowrap; background: rgba(255, 255, 255, .9); border: 1px solid #DDE1E7; border-radius: 999px; box-shadow: 0 8px 22px rgba(15, 42, 74, .08); color: #8A93A1; font-size: 13px; line-height: 17px; cursor: not-allowed; }
.x-hs-espaces .x-tour-badge i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #E6E9EE; color: #7A8494; font: 800 13px/1 var(--font); font-style: normal; }
.x-hs-espaces .x-tour-badge b { display: block; color: #6B7482; font-size: 15px; line-height: 20px; }
@media (max-width: 600px) {
  .x-hs-espaces .x-tour-badge { gap: 6px; padding: 4px 10px 4px 4px; font-size: 9px; line-height: 12px; }
  .x-hs-espaces .x-tour-badge i { width: 26px; height: 26px; font-size: 8px; }
  .x-hs-espaces .x-tour-badge b { font-size: 10px; line-height: 13px; }
}

/* 8. Domaines de formation : plaques sans image (couleur douce, petite icône, texte) */
.x-hs-formations .x-domains.is-six { gap: 20px; }
.x-hs-formations .x-domains.is-six .x-domain { --dom-bg: #EAF1FA; --dom-ac: #1E5AA8; position: relative; isolation: isolate; overflow: hidden; background: var(--dom-bg); border: 0; border-radius: 22px; box-shadow: none; padding: 26px 26px 22px; }
.x-hs-formations .x-domains.is-six .x-domain.x-dom-t2 { --dom-bg: #E3F4F0; --dom-ac: #0E7C70; }
.x-hs-formations .x-domains.is-six .x-domain.x-dom-t3 { --dom-bg: #FDF0D6; --dom-ac: #B5700A; }
.x-hs-formations .x-domains.is-six .x-domain.x-dom-t4 { --dom-bg: #E9ECF3; --dom-ac: #0F2A4A; }
.x-hs-formations .x-domains.is-six .x-domain.x-dom-t5 { --dom-bg: #E6F3F1; --dom-ac: #0E7C70; }
.x-hs-formations .x-domains.is-six .x-domain.x-dom-t6 { --dom-bg: #FCEFDA; --dom-ac: #B5700A; }
.x-hs-formations .x-domains.is-six .x-domain::after { content: ""; position: absolute; z-index: -1; right: -46px; bottom: -46px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid var(--dom-ac); opacity: .07; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.x-hs-formations .x-domains.is-six a.x-domain:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(15, 42, 74, .10); }
.x-hs-formations .x-domains.is-six a.x-domain:hover::after { transform: scale(1.12); opacity: .11; }
.x-hs-formations .x-domain-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.x-hs-formations .x-domain-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: #FFFFFF; color: var(--dom-ac); box-shadow: 0 4px 12px rgba(15, 42, 74, .06); }
.x-hs-formations .x-domain-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.x-hs-formations .x-domain-label { font: 700 11px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--dom-ac); }
.x-hs-formations .x-domains.is-six .x-domain-body { padding: 0; }
.x-hs-formations .x-domains.is-six .x-domain h3 { min-height: 0; font-size: 20px; line-height: 27px; margin: 0 0 10px; }
.x-hs-formations .x-domains.is-six .x-domain p { color: #4E5A6B; }
.x-hs-formations .x-domains.is-six .x-domain .x-more { margin-top: auto; color: var(--dom-ac); }
@media (max-width: 980px) {
  .x-hs-formations .x-domains.is-six { gap: 12px; }
  .x-hs-formations .x-domains.is-six .x-domain { padding: 18px 16px 16px; border-radius: 18px; }
  .x-hs-formations .x-domain-top { gap: 8px; margin-bottom: 12px; }
  .x-hs-formations .x-domain-ico { width: 36px; height: 36px; border-radius: 11px; }
  .x-hs-formations .x-domain-ico svg { width: 18px; height: 18px; }
  .x-hs-formations .x-domain-label { font-size: 9.5px; letter-spacing: .08em; }
  .x-hs-formations .x-domains.is-six .x-domain h3 { font-size: 15px; line-height: 20px; }
  .x-hs-formations .x-domains.is-six .x-domain::after { width: 100px; height: 100px; border-width: 16px; right: -34px; bottom: -34px; }
}
@media (max-width: 600px) {
  .x-hs-formations .x-domains.is-six { gap: 6px; }
  .x-hs-formations .x-domains.is-six .x-domain { padding: 10px 8px; border-radius: 12px; }
  .x-hs-formations .x-domain-top { margin-bottom: 7px; }
  .x-hs-formations .x-domain-ico { width: 26px; height: 26px; border-radius: 8px; }
  .x-hs-formations .x-domain-ico svg { width: 14px; height: 14px; }
  .x-hs-formations .x-domain-label { display: none; }
  .x-hs-formations .x-domains.is-six .x-domain h3 { font-size: 10.5px; line-height: 13px; margin: 0; }
  .x-hs-formations .x-domains.is-six .x-domain::after { width: 60px; height: 60px; border-width: 10px; right: -22px; bottom: -22px; }
}
/* Plaques sans icône : seul le nom du domaine reste en haut */
.x-hs-formations .x-domain-top { margin-bottom: 12px; }
@media (max-width: 600px) { .x-hs-formations .x-domain-top { display: none; } }

/* 9. Templates : la diplômée détourée repose sur le bas de la section, sans vide dessous */
.x-section.x-hs-templates { padding-bottom: 0; }
.x-hs-templates .x-split { align-items: end; }
.x-hs-templates .x-split > div:not(.x-split-media) { align-self: center; padding-bottom: 64px; }
.x-hs-templates .x-split-media { align-self: end; }
.x-hs-templates .x-photo-cutout img { display: block; }
@media (max-width: 980px) { .x-hs-templates .x-split > div:not(.x-split-media) { padding-bottom: 44px; } }
@media (max-width: 600px) { .x-hs-templates .x-split > div:not(.x-split-media) { padding-bottom: 28px; } }

/* 10. Conseil : dessin posé sur le fond bleu marine, sans cadre */
.x-hs-conseil .x-conseil-art { max-width: 500px; margin: 0 auto; }
.x-hs-conseil .x-conseil-art img { display: block; width: 100%; height: auto; }

/* 11. Plaques : une seule teinte douce du site pour les 6 domaines (moins de couleurs) */
.x-hs-formations .x-domains.is-six .x-domain[class*="x-dom-t"] { --dom-bg: #EDF3FA; --dom-ac: #1E5AA8; }
.x-hs-formations .x-domains.is-six .x-domain::after { opacity: .05; }
