:root {
  color-scheme: light;
  --ink: #142d43;
  --muted: #40586b;
  --navy: #163f5d;
  --deep: #102e48;
  --blue: #4f7da8;
  --blue-light: #eaf2f8;
  --orange: #f58220;
  --orange-light: #ffc27f;
  --green: #67b36a;
  --line: #d4e1eb;
  --heading: Montserrat, "Trebuchet MS", sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 1rem/1.6 var(--body);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--heading);
  line-height: 1.13;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 2.65rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: .85rem 0 0; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #b8570b; outline-offset: 4px; }
.hero a:focus-visible, .contact a:focus-visible { outline-color: var(--orange-light); }

.container { width: min(100% - 3rem, 72rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 2;
  top: .5rem;
  left: .5rem;
  padding: .75rem 1rem;
  transform: translateY(-200%);
  background: #fff;
}

.skip-link:focus { transform: translateY(0); }

.site-header { background: #fff; }

.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.4rem;
  min-height: 5.4rem;
  padding-block: .65rem;
}

.home-header-layout { width: min(100% - 3rem, 80rem); }

.brand { display: inline-flex; flex: 0 0 auto; border-radius: .25rem; }
.brand img { display: block; width: clamp(10rem, 19vw, 14.5rem); height: auto; }

.header-layout nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem clamp(.7rem, 2vw, 1.55rem);
}

.header-layout nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.header-layout nav a:hover, .header-layout nav a[aria-current="page"] { text-decoration: underline; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .62rem 1.05rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  text-align: center;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 750;
  line-height: 1.35;
}

.button-primary { background: var(--orange); color: #182a39; }
.button-primary:hover { background: #ff9d46; }
.button-outline { border-color: #9cb6ca; color: #fff; }
.button-outline:hover { background: #ffffff1f; }

.header-actions { display: flex; gap: .5rem; }
.header-actions .button-outline { color: var(--navy); }
.header-actions .button-outline:hover { background: var(--blue-light); }

.hero {
  overflow: hidden;
  padding-block: clamp(1.4rem, 4vh, 3rem) clamp(1rem, 2.6vh, 1.75rem);
  color: #fff;
  background:
    radial-gradient(ellipse at 82% 18%, #37688d 0%, transparent 56%),
    linear-gradient(132deg, var(--deep), var(--navy));
}

.hero-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transform: translateX(var(--hero-offset, 0%));
  transition: transform .45s ease;
}

.hero-slide { display: grid; align-items: center; min-width: 0; }
.hero-slide[hidden] { display: none; }

.hero-layout {
  display: grid;
  grid-template-columns: 1.16fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero h1, .hero h2 {
  font-size: clamp(2.15rem, 5vw, 4.45rem);
  line-height: 1.06;
  letter-spacing: -.055em;
}

.hero h1 span, .hero h2 span { color: var(--orange-light); }
.hero p { max-width: 31rem; margin-top: 1.25rem; color: #e7f1f8; font-size: clamp(1.05rem, 2vw, 1.2rem); }
.hero p + p { margin-top: .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }

.hero-actions { align-items: center; flex-wrap: nowrap; }
.hero-actions .button { align-self: stretch; padding-inline: clamp(.55rem, 1.25vw, 1.05rem); }

.hero-controls {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}

.hero-controls[hidden] { display: none; }

.hero-controls button, .module-rotation {
  min-height: 2.75rem;
  border: 1px solid #9cb6ca;
  border-radius: .55rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.hero-controls button:hover, .module-rotation:hover { background: #ffffff1f; }
.hero-controls button:focus-visible, .module-rotation:focus-visible { outline: 3px solid var(--orange-light); outline-offset: 3px; }
.hero-controls button { width: 2.75rem; padding: 0; font: 1.7rem/1 var(--body); }
.hero-controls .hero-autoplay { display: inline-grid; place-items: center; font: 750 1.15rem/1 var(--body); }
.hero-position { color: #e0edf6; font-size: .85rem; font-variant-numeric: tabular-nums; }

.product { min-width: 0; margin: 0; }

.product-window {
  overflow: hidden;
  border: 1px solid #a8c6db;
  border-radius: .95rem;
  background: #f9fcff;
  color: var(--ink);
  box-shadow: 0 22px 44px #061a2d38;
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1.15rem;
  background: var(--blue-light);
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}

.product-top span:first-child { font: 750 1rem var(--heading); }
.product-image { display: block; width: 100%; height: auto; }
.product figcaption { margin-top: .65rem; color: #e0edf6; text-align: right; font-size: .82rem; }
.product-poster { width: min(100%, 16rem); justify-self: center; }

.module-frames { position: relative; aspect-ratio: 1168 / 906; background: #fff; }

.module-frames img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .35s ease;
}

.module-frames img[aria-hidden="true"] { opacity: 0; }
.module-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem .8rem; }
.module-rotation { display: inline-grid; place-items: center; width: 2.75rem; padding: 0; font: 750 1.15rem/1 var(--body); }

@media (width > 47rem) and (max-height: 52rem) {
  .hero h1, .hero h2 { font-size: clamp(2.15rem, 4vw, 3.25rem); }
  .hero p { max-width: 35rem; margin-top: 1rem; font-size: 1.05rem; line-height: 1.5; }
  .hero-actions { margin-top: 1.25rem; }
  .hero .product:not(.product-poster) { width: min(100%, 28rem, 69vh); justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track, .module-frames img { transition: none; }
}

.proof { border-bottom: 1px solid var(--line); background: var(--blue-light); }

.proof-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem 1.8rem;
  padding-block: 1.4rem;
}

.proof-layout > div { display: flex; flex-direction: column; align-items: start; gap: .45rem; }
.proof-layout > div + div { border-left: 1px solid #c3d5e4; padding-left: 1.4rem; }
.proof strong { color: var(--navy); white-space: nowrap; font: 750 clamp(2.7rem, 4.5vw, 3.75rem)/1 var(--heading); letter-spacing: -.045em; }
.proof span { color: var(--muted); font-size: .89rem; line-height: 1.45; }

.section { padding-block: clamp(2.8rem, 6vw, 5rem); }
.section h2 { max-width: 45rem; }

.three-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.solution, .audience-card {
  padding: clamp(1.15rem, 2.6vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: .72rem;
  background: #fff;
}

.solution { border-top: .25rem solid var(--blue); }
.solution-main { border-top-color: var(--orange); }
.solution:last-child { border-top-color: var(--green); }

.solution p, .audience p, .offer-note p, .resource-layout p { color: var(--muted); }

.offer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 2rem;
  border-top: 1px solid var(--line);
  margin-top: 1.35rem;
  padding-top: 1.2rem;
}

.offer-note p { max-width: 47rem; margin: 0; }
.offer-note a, .audience-card a, .resource-links a { color: var(--navy); font-weight: 700; }
.offer-note a { flex: 0 0 13rem; }
.audience { background: var(--blue-light); }

.audience-card { display: flex; flex-direction: column; align-items: start; }
.audience-card p { margin-bottom: 1rem; }
.audience-card a { margin-top: auto; }

.resource-layout, .contact-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.2rem 2rem;
}

.resource-layout p, .contact-layout p { max-width: 45rem; }
.resource-links { display: grid; gap: .55rem; }

.contact {
  padding-block: clamp(2.6rem, 5vw, 4rem);
  color: #fff;
  background: var(--deep);
}

.contact p { color: #e7f1f8; }
.contact p a { white-space: nowrap; }

.site-footer { background: #f1f6fa; color: var(--muted); }

.footer-layout {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding-block: 1.25rem;
  font-size: .9rem;
}

.footer-layout p { margin: 0; }
.footer-layout strong, .footer-layout a { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; }

.legal-content { max-width: 48rem; }
.legal-content address { margin-top: .85rem; color: var(--muted); font-style: normal; }

@media (max-width: 82rem) {
  .home-header-layout nav { order: 3; flex: 0 0 100%; border-top: 1px solid var(--line); }
}

@media (max-width: 62rem) {
  .header-layout { justify-content: space-between; }
  .header-layout nav { order: 3; flex: 0 0 100%; border-top: 1px solid var(--line); }
}

@media (width > 47rem) and (max-width: 54rem) {
  .hero-actions { gap: .45rem; }
  .hero-actions .button { padding-inline: .45rem; }
}

@media (width > 47rem) and (max-width: 51rem) {
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); }
  .hero-actions .hero-controls { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 47rem) {
  .container { width: min(100% - 2rem, 39rem); }
  .hero-layout, .three-columns, .resource-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 1.9rem; }
  .contact-layout > .button { justify-self: start; }
  .offer-note { align-items: start; flex-direction: column; }
  .offer-note a { flex: 0 0 auto; }
}

@media (max-width: 39rem) {
  .header-actions { flex: 0 0 100%; justify-content: flex-end; }
  .hero-actions { flex-wrap: wrap; }
  .proof-layout { grid-template-columns: 1fr; gap: .8rem; }
  .proof-layout > div + div { border-left: 0; border-top: 1px solid #c3d5e4; padding: .8rem 0 0; }
}

@media (max-width: 29rem) {
  .header-layout { column-gap: .4rem; }
  .header-layout nav a { font-size: .83rem; }
  .header-demo { padding-inline: .55rem; }
  .actions .button { width: 100%; }
}

/* Centre d’aide */
.help-page [hidden] { display: none; }

.help-hero {
  padding-block: clamp(2.6rem, 6vw, 4.75rem);
  background: var(--deep);
  color: #fff;
}

.help-hero h1 { font-size: clamp(2.35rem, 6vw, 4rem); letter-spacing: -.045em; }
.help-hero p { max-width: 39rem; color: #e7f1f8; }
.help-hero a:focus-visible, .help-hero :is(input, button):focus-visible {
  outline: 3px solid var(--orange-light);
  outline-offset: 4px;
}

.help-search { max-width: 39rem; margin-top: 1.45rem; }
.help-search label { display: block; margin-bottom: .35rem; font-weight: 700; }
.help-search-fields { display: flex; flex-wrap: wrap; gap: .5rem; }
.help-search-fields input {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 2.85rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.help-search-fields button { background-color: transparent; cursor: pointer; }
.help-search-status:not(:empty) { margin: .5rem 0 0; }

.help-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.35rem;
}
.help-jumps a {
  padding: .4rem .85rem;
  border: 1px solid #a8c6db;
  border-radius: .45rem;
  font-weight: 650;
  text-decoration: none;
}
.help-jumps a:hover { background: #ffffff1f; }

.help-section { padding-block: clamp(2.5rem, 5.5vw, 4.5rem); }
.help-section-tinted { background: var(--blue-light); }
.help-section > .container > p { max-width: 45rem; color: var(--muted); }
.help-group { margin-top: 1.65rem; }
.help-group h3 { margin-bottom: .7rem; }
.help-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 1rem;
}

.help-disclosure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #fff;
}
.help-disclosure + .help-disclosure { margin-top: .5rem; }
.help-disclosure summary {
  padding: .72rem .9rem;
  color: var(--navy);
  cursor: pointer;
  font-weight: 700;
}
.help-disclosure summary:hover { background: #f1f6fa; }
.help-disclosure summary:focus-visible { outline: 3px solid #b8570b; outline-offset: -4px; }
.help-disclosure[open] summary { background: #f1f6fa; }
.help-answer { padding: .85rem .9rem 1rem; color: var(--muted); overflow-wrap: anywhere; }
.help-answer > :first-child { margin-top: 0; }
.help-answer ol { margin-block: 0; padding-inline-start: 1.45rem; }
.help-answer li + li { margin-top: .4rem; }
.help-ref { font-size: .9rem; }
.help-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: .35rem; background: var(--deep); }
.help-support { padding-block: 2rem; background: var(--blue-light); }
.help-support h2 { font-size: 1.45rem; }

@media (max-width: 43rem) {
  .help-groups { grid-template-columns: 1fr; }
}

/* Guides SST */
.guide-directory-page { display: flex; flex-direction: column; min-height: 100vh; }
.guide-directory-page main { flex: 1; }
.guide-directory { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); margin-top: 0; }
.guide-directory .solution { text-decoration: none; }
.guide-directory .solution:is(:hover, :focus-visible) { background: #f5f9fc; }
.guide-directory h2 { color: var(--navy); font-size: 1.3rem; text-decoration: underline; text-underline-offset: .16em; }

.guide-hero {
  background: radial-gradient(ellipse at 90% 0%, #37688d 0%, transparent 58%), var(--deep);
}

.guide-hero h1 { max-width: 49rem; }
.guide-breadcrumb { margin-bottom: 1.15rem; color: #e0edf6; font-size: .9rem; }

.guide-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-breadcrumb li + li::before { content: "/"; margin-right: .65rem; color: #9cb6ca; }

.guide-layout {
  display: grid;
  grid-template-areas: "article sommaire";
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 17rem);
  gap: clamp(1.5rem, 4.5vw, 3.4rem);
  padding-block: clamp(1.65rem, 5vw, 3.7rem);
}

.guide-article { grid-area: article; min-width: 0; }
.guide-article section { scroll-margin-top: 1.3rem; }
.guide-article section + section { margin-top: clamp(2rem, 4vw, 3.1rem); }
.guide-article h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.guide-article :is(p, li) { color: var(--muted); }
.guide-article ul, .guide-steps { padding-inline-start: 1.35rem; }
.guide-article :is(ul, ol) > li + li { margin-top: .5rem; }
.guide-article strong, .guide-article a { color: var(--navy); }

.guide-summary {
  padding: clamp(1.05rem, 3vw, 1.75rem);
  border-inline-start: .25rem solid var(--orange);
  border-radius: .5rem;
  background: var(--blue-light);
}

.guide-summary ul, .guide-sources ul { margin-bottom: 0; }

.guide-toc {
  grid-area: sommaire;
  align-self: start;
  position: sticky;
  top: 1.25rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #f5f9fc;
}

.guide-toc h2 { font-size: 1.25rem; }
.guide-toc ul { list-style: none; padding: 0; margin: .65rem 0 0; }
.guide-toc a { display: block; padding-block: .27rem; color: var(--navy); font-size: .92rem; }

.guide-article .guide-factors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.guide-factors > li {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #f5f9fc;
}

.guide-article .guide-factors > li + li { margin-top: 0; }
.guide-factors h3, .guide-steps h3 { color: var(--navy); font-size: 1rem; }
.guide-factors p, .guide-steps p { margin-top: .3rem; }
.guide-article .guide-steps > li + li { margin-top: .9rem; }
.guide-article .help-disclosure:first-of-type { margin-top: 1rem; }
.guide-sources { padding-top: 1.25rem; border-top: 1px solid var(--line); }

.guide-table {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
}

.guide-table:focus-visible { outline: 3px solid #b8570b; outline-offset: 3px; }
.guide-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.guide-table-wide table { min-width: 40rem; }
.guide-table th, .guide-table td { padding: .65rem .75rem; text-align: left; vertical-align: top; }
.guide-table thead { color: var(--navy); background: var(--blue-light); }
.guide-table tbody tr > * { border-top: 1px solid var(--line); }
.guide-table tbody td { color: var(--muted); }

.guide-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
  align-items: center;
  gap: clamp(1.55rem, 5vw, 4rem);
}

.guide-demo p { max-width: 35rem; }

@media (max-width: 54rem) {
  .guide-layout { grid-template-areas: "sommaire" "article"; grid-template-columns: minmax(0, 1fr); }
  .guide-toc { position: static; }
  .guide-toc ul { columns: 2 12rem; column-gap: 1.2rem; }
  .guide-toc li { break-inside: avoid; }
}

@media (max-width: 42rem) {
  .guide-demo { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 31rem) {
  .guide-article .guide-factors { grid-template-columns: minmax(0, 1fr); }
}

/* Fiches métiers */
.metier-obligations {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.5fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1.15rem;
}

.metier-filtres { padding: 1rem; border: 1px solid var(--line); border-radius: .55rem; background: #f5f9fc; }
.metier-filtres[hidden] + .guide-summary { grid-column: 1 / -1; }
.metier-filtres fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.metier-filtres fieldset + fieldset { margin-top: .9rem; }
.metier-filtres legend { margin-bottom: .4rem; padding: 0; color: var(--navy); font-weight: 700; }
.metier-filtres label { display: flex; align-items: baseline; gap: .45rem; padding-block: .2rem; cursor: pointer; }
.metier-filtres input { flex: none; margin: 0; accent-color: var(--navy); }
.metier-filtres input:focus-visible { outline: 2px solid #b8570b; outline-offset: 3px; }
.metier-unite { margin-top: 1.55rem; }

@media (max-width: 42rem) {
  .metier-obligations { grid-template-columns: minmax(0, 1fr); }
}

.metier-recherche { max-width: 35rem; margin-bottom: 1.25rem; }
.metier-recherche label { display: block; margin-bottom: .4rem; color: var(--navy); font-weight: 750; }
.metier-recherche input {
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .8rem;
  border: 1px solid #9cb6ca;
  border-radius: .55rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.metier-recherche input:focus-visible { outline: 3px solid #b8570b; outline-offset: 3px; }
.metier-recherche-resultat { margin-top: .45rem; color: var(--muted); font-size: .9rem; }

.metier-alphabet { margin-bottom: 1.8rem; }
.metier-alphabet ul, .metier-liste { list-style: none; margin: 0; padding: 0; }
.metier-alphabet ul { display: flex; flex-wrap: wrap; gap: .45rem; }
.metier-alphabet a {
  display: grid;
  width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
}

.metier-groupe { scroll-margin-top: 1rem; }
.metier-groupe + .metier-groupe { margin-top: 1.65rem; }
.metier-groupe h2 { margin-bottom: .65rem; color: var(--navy); font-size: 1.5rem; }
.metier-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.metier-liste a {
  display: flex;
  min-height: 3rem;
  height: 100%;
  align-items: center;
  padding: .6rem .85rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #fff;
  color: var(--navy);
  font-weight: 650;
}
.metier-liste a:hover, .metier-alphabet a:hover { background: var(--blue-light); }

@media (max-width: 48rem) {
  .metier-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 30rem) {
  .metier-liste { grid-template-columns: minmax(0, 1fr); }
}

