/* Scènes éditoriales */
.home-hero,
.training-hero,
.support-hero,
.contact-stage {
  position: relative;
  isolation: isolate;
}
.home-hero {
  background: radial-gradient(ellipse at 28% 66%, #fff 17%, #f5f9ff 44%, #d9eafd 100%);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  overflow: clip;
}
.home-hero::before,
.home-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
}
.home-hero::before {
  background: linear-gradient(135deg, #0869d5 17%, #123b75 51%, #081f47 84%);
  clip-path: polygon(78% 0, 100% 0, 100% 94%, 46% 100%);
}
.home-hero::after {
  background: linear-gradient(130deg, #9bd0fb, #1689f6 65%, #105cc0);
  clip-path: polygon(78% 0, 79% 0, 47.5% 100%, 46% 100%);
}
.home-layout {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  min-height: 510px;
  padding-block: clamp(32px, 3.85vw, 57px) clamp(38px, 4vw, 64px);
}
.home-layout .hero-copy { grid-column: span 5; }
.keep-together { white-space: nowrap; }
.home-layout h1::after {
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 15px;
  border-radius: 3px;
  background: var(--blue);
  content: "";
}
.home-layout .lead { max-width: 45ch; }
.home-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}
.home-perks li { display: flex; align-items: baseline; gap: 7px; }
.home-perks li::before {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--blue);
  content: "";
  transform: rotate(45deg);
}

.paths-section { position: relative; isolation: isolate; background: #fff; }
.paths-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f2f7fd;
  clip-path: polygon(68% 9%, 100% 0, 100% 100%, 45% 100%);
  content: "";
}
.path-layout { display: grid; gap: clamp(18px, 2.5vw, 30px); }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 22px); }
.path {
  --fold: #c5ddfb;
  --accent: #0066ef;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 0;
  padding: clamp(18px, 2.15vw, 30px);
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #c9dcf1;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 10%, #e8f3ff);
  box-shadow: 0 14px 24px #0b2a5610;
}
.path::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: 27%;
  height: 48%;
  background: linear-gradient(150deg, var(--fold), transparent);
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 34%);
}
.path .label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.path .label::before { content: ""; width: 23px; height: 3px; background: var(--accent); }
.path h3 { font-size: clamp(22px, 2vw, 27px); }
.path p:not(.label) { margin: 10px 0 auto; padding-bottom: 20px; font-size: 16px; }
.path-dark {
  --accent: #9bceff;
  --fold: #2e659d;
  background: linear-gradient(150deg, #1d4c88, #081f47 79%);
  color: white;
  border-color: #163c71;
}
.path-dark p, .path-dark .label { color: #ecf4ff; }
.path-tailored { --fold: #d3dcf1; background: linear-gradient(123deg, #fff, #f0f3fb); }
.path-dark :focus-visible, .home-orientation :focus-visible { outline-color: #b6d7ff; }

.orientation {
  position: relative;
  isolation: isolate;
  background: linear-gradient(122deg, #0b2d60, var(--navy) 64%);
  color: white;
}
.orientation::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, #214f88, #103a74);
  clip-path: polygon(99% 0, 100% 0, 100% 100%, 84% 100%);
  content: "";
}
.orientation p { color: #e5effd; max-width: 61ch; }
.orientation-layout h2, .proof:not(.proof-layout) h2 { grid-column: span 5; }
.orientation-layout > div, .proof:not(.proof-layout) > div { grid-column: 7 / -1; }
.orientation > .layout { align-items: center; }

.training-hero {
  background: radial-gradient(ellipse at 76% 28%, #c3defa, #e7f2fe 47%, #f5f9ff 88%);
  overflow: clip;
}
.training-layout, .support-layout {
  align-items: center;
  padding-block: clamp(34px, 3.85vw, 55px);
}
.training-layout .hero-copy, .support-layout .hero-copy { grid-column: span 6; }
.training-layout h1 { max-width: 22ch; }
.training-paths { padding-top: clamp(31px, 3.2vw, 46px); }
.course-spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 18px; margin-top: 22px; }
.lesson {
  padding: clamp(19px, 2.25vw, 32px);
  border: 1px solid #d0e2f8;
  border-radius: 17px;
  background: linear-gradient(146deg, #f4f9ff, #e7f2ff);
  box-shadow: 0 12px 24px #0f2c5610;
}
.lesson-intro h3 { margin-bottom: 9px; }
.lesson-intro p:not(.label) { margin: 0; }
.lesson .skills { display: grid; gap: 8px; margin: 20px 0 17px; padding-left: 18px; font-size: 16px; line-height: 1.48; }
.lesson .skills li::marker { color: var(--link); }
.lesson .path-example { font-size: 16px; }
.lesson-dark { background: linear-gradient(145deg, #1a4a83, #081f47 78%); color: white; border-color: #144277; }
.lesson-dark p, .lesson-dark strong, .lesson-dark .label { color: #edf4ff; }
.lesson-dark .skills li::marker { color: #a9d3ff; }
.lesson-dark:focus-visible { outline-offset: 4px; }
.training-practice { background: #eaf3ff; border-block: 1px solid #d6e7f9; }
.training-practice h2 { grid-column: span 5; }
.training-practice .layout > div { grid-column: 7 / -1; }

.support-hero {
  overflow: clip;
  background: linear-gradient(110deg, #f7fbff, #e6f1fc 68%, #ccdef3);
}
.support-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(132deg, #6fa6e4, #184675 77%, #102e53);
  clip-path: polygon(90% 0, 100% 0, 100% 100%, 74% 100%);
  content: "";
}
.support-layout .hero-copy { max-width: min(76%, 840px); }
.support-layout h1 { max-width: 28ch; }
.support-layout .lead { max-width: 65ch; }
.approach { background: linear-gradient(#fff 66%, #f4f8fd); }
.steps {
  --step-size: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: clamp(24px, 3vw, 38px) 0 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  counter-increment: step;
  padding: calc(var(--step-size) + 14px) clamp(12px, 2vw, 29px) 0 0;
}
.steps li::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--step-size);
  height: var(--step-size);
  display: grid;
  place-items: center;
  border: 1px solid #93b8df;
  border-radius: 50%;
  color: var(--link);
  background: #ecf5ff;
  content: counter(step, decimal-leading-zero);
  font-size: 14px;
  font-weight: 600;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: calc(var(--step-size) / 2) 0 auto var(--step-size);
  height: 2px;
  background: linear-gradient(90deg, #9bbce2, #3e7fbf);
}
.steps li:last-child::before { background: var(--navy); color: #fff; border-color: var(--navy); }
.steps h3 { font-size: clamp(20px, 1.7vw, 24px); }
.steps p { margin-top: 8px; font-size: 16px; }
.support-example {
  margin-top: clamp(30px, 4vw, 52px);
  padding: clamp(18px, 2.6vw, 32px);
  border-left: 3px solid var(--blue);
  background: linear-gradient(110deg, #e6f1fe, #f4f8fd);
}
.support-example h3 { max-width: 36ch; }
.support-example p:last-child { max-width: 73ch; }
.footer .footer-legal {
  flex-basis: 100%;
  gap: 0 22px;
  margin-top: 3px;
  border-top: 1px solid var(--line);
}
.footer-legal a { color: var(--muted); font-weight: 400; }

.contact-stage {
  background: radial-gradient(ellipse at 18% 8%, #f7fbff, #e6f2ff 47%, #cbe4fe 100%);
  border-bottom: 1px solid var(--line);
}
.contact-stage::before,
.contact-stage::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
}
.contact-stage::before {
  background: linear-gradient(137deg, #bbdbfa 17%, #3388da 72%, #0a407f 100%);
  clip-path: polygon(95% 0, 100% 0, 100% 100%, 43% 100%);
}
.contact-stage::after {
  background: linear-gradient(125deg, #e2f0ff, #427cba);
  clip-path: polygon(76% 73%, 100% 56%, 100% 100%, 0 100%, 24% 95%, 43% 91%);
}
.contact-layout { align-items: start; padding-block: clamp(34px, 4.15vw, 61px); }
.contact-context { grid-column: span 5; padding-block: 18px; }
.contact-context h1 { max-width: 15ch; }
.contact-context .lead { max-width: 34ch; }
.contact-details { margin-top: 25px; }
.contact-details address { font-style: normal; }
.contact-details dl { margin: 0; }
.contact-details dl > div {
  display: grid;
  grid-template-columns: 93px minmax(0,1fr);
  align-items: center;
  gap: 6px 10px;
  width: min(100%, 350px);
  padding-block: 9px;
  border-top: 1px solid #b9d0ec;
}
.contact-details dt { font-size: 14px; color: var(--muted); }
.contact-details dd { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.contact-details a { color: var(--link); }
.contact-panel {
  grid-column: 6 / -1;
  padding: clamp(18px, 2.6vw, 38px);
  background: #fafdff;
  border: 1px solid #d3e4f8;
  border-radius: 18px;
  box-shadow: 0 18px 42px #113b6a34;
}
.form-guidance { font-size: 16px; }
.demo-mode {
  margin-block: 12px 10px;
  padding: 8px 11px;
  border-left: 2px solid var(--blue);
  background: var(--ice);
  color: var(--navy);
  font-size: 15px;
}
.contact-form textarea { min-height: 105px; }
.contact-submit-row .button { min-width: 168px; }

@media (max-width: 1100px) {
  .home-layout { min-height: 460px; }
}
@media (max-width: 900px) {
  .home-layout .hero-copy { grid-column: span 6; }
  .home-perks { gap: 7px 12px; }
  .contact-field-adaptive { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .section { padding-block: 40px; }
  .home-layout { grid-template-columns: minmax(0, 1fr); }
  .frame.layout > * { grid-column: 1 / -1; }
  .home-layout, .training-layout, .support-layout { min-height: 0; padding-block: 27px 32px; }
  .home-hero::before { clip-path: polygon(100% 59%, 100% 97%, 7% 100%); }
  .home-hero::after { clip-path: polygon(100% 59%, 100% 60%, 10% 100%, 7% 100%); }
  .home-hero { clip-path: polygon(0 0, 100% 0, 100% 97.4%, 0 100%); }
  .home-layout .actions { display: grid; justify-items: start; }
  .home-perks { margin-top: 17px; font-size: 13px; }
  .home-layout h1::after { margin-top: 10px; }
  .path-layout { gap: 18px; }
  .paths { gap: 11px; }
  .path { border-radius: 12px; }
  .orientation::after { clip-path: polygon(100% 50%, 100% 100%, 82% 100%); }
  .lesson-scene-label { left: 9%; }
  .support-layout .hero-copy { max-width: 100%; }
  .support-hero::after { clip-path: polygon(100% 67%, 100% 100%, 91% 100%); }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding: 2px 0 26px calc(var(--step-size) + 16px); }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:not(:last-child)::after {
    inset: var(--step-size) auto 0 calc(var(--step-size) / 2);
    width: 2px;
    height: auto;
    background: #9bbce2;
  }
  .contact-context { padding-block: 0; }
  .contact-stage::before { clip-path: polygon(100% 29%, 100% 100%, 14% 100%); }
  .contact-stage::after { clip-path: polygon(71% 83%, 100% 76%, 100% 100%, 0 100%, 0 96%); }
  .contact-details { margin-top: 16px; }
  .contact-details dl > div { padding-block: 6px; }
  .contact-panel { border-radius: 14px; }
}
@media (max-width: 520px) {
  .course-spread { grid-template-columns: minmax(0, 1fr); }
}

/* Le mouvement accompagne l’entrée, la transition des parcours et une seule transformation. */
@keyframes enter-scene {
  from { translate: 0 17px; opacity: .62; }
  to { translate: 0 0; opacity: 1; }
}
@keyframes enter-object {
  from { translate: 24px 28px; opacity: .15; scale: .95; }
  to { translate: 0 0; opacity: 1; scale: 1; }
}
@keyframes open-path {
  from { translate: 0 26px; opacity: .62; }
  to { translate: 0 0; opacity: 1; }
}
@keyframes open-surface {
  from { opacity: .25; transform: scaleX(.78); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html.js .masthead { animation: enter-scene 290ms ease-out backwards; }
  [data-enter].entered :is(.hero-copy,.contact-context) { animation: enter-scene 500ms 60ms cubic-bezier(.2,.72,.2,1) backwards; }
  [data-enter].entered :is(.case,.contact-panel) { animation: enter-object 560ms 160ms cubic-bezier(.2,.73,.25,1) backwards; }
  .arrived { animation: enter-scene 500ms cubic-bezier(.2,.72,.2,1) backwards; }
  .paths-section.arrived { animation: none; }
  .paths-section.arrived::before { transform-origin: right center; animation: open-surface 600ms ease-out backwards; }
  .path.arrived { animation: open-path 580ms cubic-bezier(.2,.72,.2,1) backwards; }
  .path-dark.arrived { animation-delay: 125ms; }
  .home-orientation.arrived { animation: none; }
  .home-orientation.arrived::after { transform-origin: right center; animation: open-surface 550ms ease-out backwards; }
}

