/* INFORMATIVE — EDITORIAL BLUE · 2026-10-06
   Standalone stylesheet for the existing PHP templates.
   System fonts only: no external font requests or additional assets. */
:root {
  color-scheme: dark;
  --font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --bg: #111b2b;
  --surface: #1a273d;
  --inset: #121e30;
  --text: #f6f8fd;
  --muted: #c1cde0;
  --blue: #a8c1ff;
  --line: #34445e;
  --accent-line: #85aaff;
  --lime: #d2e79b;
  --radius: 20px;
  --section-space: clamp(40px, 4vw, 64px);
  --section-title: clamp(34px, 3.6vw, 50px);
  --card-title: 28px;
  --card-padding: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 var(--font-family); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
::selection { color: var(--bg); background: var(--blue); }
[hidden] { display: none !important; }
h1, h2, h3, p, ol { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-family); font-weight: 400; text-wrap: balance; overflow-wrap: break-word; }
p { margin-bottom: 20px; }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.eyebrow { display: block; color: var(--blue); font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .11em; text-transform: uppercase; margin: 0 0 18px; }
.section-head { max-width: 980px; margin-bottom: 36px; }
.section-head h2, .about h2, .contact h2 { margin: 0; font-size: var(--section-title); line-height: 1.13; letter-spacing: -.035em; }
.section-head h2 span, .about h2 span, .contact h2 span { color: var(--blue); }
.section-head > p { margin: 22px 0 0; max-width: 860px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.skip { position: absolute; top: -100px; left: 20px; z-index: 10; }
.skip:focus { top: 16px; padding: 12px 20px; background: var(--surface); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Header */
body > header { border-bottom: 1px solid var(--line); background: #121e30; }
.nav { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { font-size: 30px; font-weight: 700; letter-spacing: -.055em; line-height: 1.2; }
.logo span { display: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
nav a { padding-block: 12px; }
nav a:hover, .footer a:hover { color: var(--blue); }
.nav-contact { padding: 10px 20px; border: 1px solid var(--accent-line); border-radius: 12px; }
/* The same buttons throughout the page */
.button, .course-cta { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 50px; padding: 13px 20px; border: 1px solid var(--accent-line); border-radius: 12px; background: transparent; color: var(--text); font-size: 14px; line-height: 1.5; font-weight: 700; text-align: center; transition: background .18s, border-color .18s; }
.button:hover, .course-cta:hover, .nav-contact:hover { background: #293d5c; border-color: var(--blue); }
.button.primary { background: var(--blue); border-color: var(--blue); color: var(--bg); }
.button.primary:hover { background: #c4d5ff; border-color: #c4d5ff; }
.text-link { display: inline-flex; gap: 18px; align-items: center; align-self: flex-start; padding-block: 8px; color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: #6a82ad; text-underline-offset: 6px; }
.text-link:hover { color: var(--text); text-decoration-color: currentColor; }
/* Hero: matching typography, structured overview and accessible carousel */
.hero { padding-top: clamp(48px, 6vw, 80px); }
.hero-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 68px); }
.hero-content { min-width: 0; }
.hero-slides { display: grid; }
.hero-slide { grid-area: 1/1; min-width: 0; display: flex; flex-direction: column; opacity: 1; visibility: visible; transition: opacity .4s, visibility .4s; }
.hero-slide[aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; }
h1, .hero-title { margin: 0 0 24px; font-size: clamp(44px, 5.2vw, 72px); line-height: 1.07; font-weight: 400; letter-spacing: -.045em; }
.hero-title em, h1 em { color: var(--blue); font-style: normal; }
.hero-text { max-width: 580px; margin: 0; color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-slide .actions { margin-top: auto; padding-top: 28px; }
.hero-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.hero-selectors { display: flex; gap: 8px; }
.hero-controls button { min-height: 44px; padding: 8px 12px; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 12px; font-size: 13px; }
.hero-selectors button { min-width: 44px; border-color: var(--line); font-variant-numeric: tabular-nums; }
.hero-selectors button[aria-pressed="true"] { background: var(--blue); color: var(--bg); border-color: var(--blue); font-weight: 700; }
.hero-playback:hover { background: var(--surface); color: var(--text); }
.note-panel { padding: var(--card-padding); background: var(--surface); border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--radius); }
.note-panel h2 { margin: 0 0 16px; font-size: 28px; line-height: 1.2; letter-spacing: -.03em; }
.note-panel h2 span { color: var(--blue); }
.note-panel > p { color: var(--muted); margin-bottom: 22px; }
.overview-list { list-style: none; margin: 0 0 16px; padding: 0; }
.overview-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); align-items: baseline; }
.overview-list li > span { color: var(--blue); font-size: 13px; font-variant-numeric: tabular-nums; }
.overview-list strong { display: block; font-size: 16px; }
.overview-list div > span { display: block; color: var(--muted); font-size: 14px; }
.hero-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 44px; padding: 22px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.hero-bottom span:first-child { color: var(--text); font-weight: 600; }
/* Shared cards */
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.course, .audience article { min-width: 0; display: flex; flex-direction: column; padding: var(--card-padding); background: var(--surface); border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--radius); }
.course h3, .audience h3 { margin: 0 0 16px; font-size: var(--card-title); line-height: 1.24; letter-spacing: -.03em; }
.course p, .audience p { color: var(--muted); font-size: 16px; }
.course p:last-child { margin-bottom: 0; }
.course-top { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; color: var(--blue); font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.course-num { font-variant-numeric: tabular-nums; }
/* Catalogue: all modules remain expanded */
#cours .courses .course { padding: 26px 22px 22px; display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; }
#cours .courses .course > p { margin: 0 0 24px; }
.course-modules { padding: 18px 14px 10px; background: var(--inset); border: 1px solid #34445e; border-radius: 12px; }
.course-modules .modules-label { margin: 0 0 10px; color: var(--blue); font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .11em; text-transform: uppercase; }
.course-modules ol { margin: 0; padding: 0; list-style: none; counter-reset: module; }
.course-modules li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-content: center; min-height: 64px; margin: 0; padding: 10px 0; counter-increment: module; font-size: 14px; line-height: 1.5; }
.course-modules li + li { border-top: 1px solid var(--line); }
.course-modules li::before { content: counter(module, decimal-leading-zero); color: var(--blue); font-size: 12px; font-variant-numeric: tabular-nums; }
.course-modules a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.course-footer { padding-top: 18px; }
.course-cta { display: flex; justify-content: space-between; text-align: left; padding-inline: 16px; }
.course-cta span { color: var(--blue); font-size: 22px; line-height: 1; }
.course-footer p { margin: 10px 0 0; font-size: 12px; }
/* Pedagogy: shared section and card styles */
#approche, .audience-section, .about { border-top: 1px solid var(--line); }
.course .approach-label { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--blue); font-size: 11px; }
.step-number { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 36px; height: 36px; background: var(--inset); border: 1px solid var(--line); border-radius: 12px; font-size: 12px; font-variant-numeric: tabular-nums; }

/* Audiences and trainer */
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.audience .eyebrow { margin-bottom: 20px; }
.audience .text-link { margin-top: auto; }
.about { margin-top: 64px; padding-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; gap: 64px; }
.about > div:last-child { padding: var(--card-padding); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.about p { color: var(--muted); }
.about .trainer-caption { margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.about strong { font-weight: 600; color: var(--text); }
/* Contact: the same surface, type scale and primary action */
.contact { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(28px, 4vw, 48px); margin-bottom: var(--section-space); border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact > div { max-width: 720px; }
.contact h2 { font-size: clamp(30px, 3vw, 42px); }
.contact p { margin: 22px 0 0; color: var(--muted); }
.contact .button { flex-shrink: 0; color: var(--bg); background: var(--blue); border-color: var(--blue); }
.contact .button:hover { background: #c4d5ff; }
.footer { padding: 28px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer .logo { font-size: 25px; }
.footer small { color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
/* Shared styles for existing course pages */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--blue); }
.page-intro { padding: var(--section-space) 0 36px; }
.page-intro h1 { max-width: 940px; font-size: var(--section-title); }
.catalog-section { padding: 0 0 var(--section-space); }
.catalog-section .course h2, .detail-content h2, .offer h3, .program > h3, .session > h3 { font-size: var(--card-title); font-weight: 400; line-height: 1.24; letter-spacing: -.03em; }
.catalog-section .course .button { margin-top: auto; align-self: flex-start; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; padding-bottom: 48px; align-items: start; }
.offers { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-block: 32px; }
.offer { padding: var(--card-padding); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.offer.featured { border-color: var(--blue); border-top-width: 3px; }
.offer .price { margin: 18px 0 8px; font-size: clamp(36px, 5vw, 52px); line-height: 1.2; font-weight: 700; letter-spacing: -.035em; }
.offer .price span { font-size: 20px; }
.offer .saving { color: var(--lime); font-weight: 600; }
.offer .reference { color: var(--muted); font-size: 14px; }
.offer ul, .topic-list, .cyber-intro { color: var(--muted); }
.course-price { font-weight: 700; }
.program, .session { margin-top: 36px; }
.program details { border-top: 1px solid var(--line); padding: 20px 0; }
.program summary { cursor: pointer; font-size: 18px; font-weight: 600; }
.program details p { color: var(--muted); margin: 16px 0 0; }
.session ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.session li { border-left: 2px solid var(--blue); padding-left: 16px; color: var(--muted); }
.session strong { display: block; color: var(--text); }
.bundle-callout, .course-nav { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.course-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-bottom: 48px; }
.topic-list li { margin-block: 12px; }
@supports not (grid-template-rows: subgrid) {
  #cours .courses .course { display: flex; }
  #cours .courses .course-modules { margin-top: auto; }
}
@media (max-width: 1100px) {
  .contact { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-title { font-size: clamp(42px, 5.2vw, 62px); }
}
@media (max-width: 980px) {
  .wrap { width: calc(100% - 48px); }
  .courses { grid-template-columns: 1fr; }
  #cours .courses .course { display: flex; grid-row: auto; }
  .course-modules li { min-height: 0; padding-block: 12px; }
  .hero-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; }
  .note-panel { padding: 22px; }
  .note-panel h2 { font-size: 25px; }
  .about { gap: 32px; }
  nav { gap: 18px; }
}
@media (max-width: 760px) {
  .hero-main, .audience, .about, .detail-grid, .offers, .session ol { grid-template-columns: 1fr; }
  .hero-main { gap: 36px; }
  .hero-title { font-size: clamp(42px, 8vw, 60px); }
  .nav { padding-block: 22px; flex-direction: column; align-items: flex-start; gap: 18px; }
  nav { width: 100%; justify-content: space-between; gap: 10px; }
  .hero-bottom { gap: 10px 20px; }
}
@media (max-width: 480px) {
  :root { --card-padding: 22px; --card-title: 24px; }
  .wrap { width: calc(100% - 32px); }
  nav { gap: 8px; font-size: 12px; }
  .nav-contact { padding: 10px; }
  .hero-title { font-size: clamp(38px, 10vw, 48px); }
  .hero-text, .section-head > p { font-size: 16px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .button { width: 100%; }
  .hero-bottom { flex-direction: column; }
  #cours .courses .course { padding: 22px 16px; }
  .course-modules { padding-inline: 12px; }
  .contact { padding: 26px 20px; }
  .contact .button { width: 100%; }
  .footer-inner { align-items: flex-start; }
  .footer small { width: 100%; order: 3; }
  .footer-links { gap: 16px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Compatibilité avec le bandeau de l’index fourni. */
.note-panel > .number { display: block; margin-bottom: 16px; color: var(--blue); font-size: 64px; font-weight: 700; line-height: 1; }

/* Pages dynamiques de formation et de cours */
.detail-lead { font-size: 20px; color: var(--muted); }
.detail-block { margin-bottom: 32px; padding: var(--card-padding); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-block p { color: var(--muted); }
.detail-block p:last-child, .detail-block ul:last-child { margin-bottom: 0; }
.detail-content h3 { font-size: 18px; margin: 24px 0 12px; }
.practical { margin: 0; border-top: 1px solid var(--line); }
.practical h2 { font-size: var(--card-title); line-height: 1.25; }
.practical dt { color: var(--blue); font-size: 12px; text-transform: uppercase; font-weight: 700; margin-top: 20px; }
.practical dd { margin: 5px 0 0; }
.practical .button { width: 100%; margin-top: 12px; }
.practical-note { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.module-grid .course .button { margin-top: auto; }
.module-grid .course h3 a:hover { color: var(--blue); }
.breadcrumb { justify-content: flex-start; overflow-wrap: anywhere; }
.breadcrumb a { padding: 0; }
.breadcrumb span { font-weight: 400; }
.course-nav { justify-content: space-between; }
.course-nav a { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 760px) { .detail-grid { gap: 24px; } .detail-lead { font-size: 18px; } }

/* Editorial hierarchy and restrained surface treatment */
.logo { font-family: var(--font-family); font-weight: 400; font-size: 34px; letter-spacing: -.055em; }
.hero { padding-top: clamp(56px, 7vw, 104px); }
.hero-title { font-size: clamp(48px, 5.7vw, 80px); line-height: 1.06; }
.hero-title em { font-style: italic; }
.eyebrow, .course-top { letter-spacing: .13em; font-size: 11px; }
.hero-content > .eyebrow { margin-bottom: 24px; }
.hero-text { max-width: 540px; }
.note-panel { background: linear-gradient(145deg, #243652, #1a273d); padding: clamp(24px, 3vw, 40px); }
.note-panel > .number { font-family: var(--font-family); font-size: 100px; font-weight: 400; letter-spacing: -.06em; margin-bottom: 24px; }
.note-panel h2 { font-size: 30px; font-weight: 400; }
.note-panel > p:last-child { margin-bottom: 0; }
.hero-bottom { margin-top: 56px; padding-block: 24px; }
.section-head { margin-bottom: 40px; }
.course, .audience article, .offer, .detail-block { box-shadow: 0 12px 36px rgb(0 0 0 / 8%); }
.course h3, .audience h3 { font-weight: 400; line-height: 1.2; }
.course-top { margin-bottom: 24px; }
.course-num { color: #a0b3d0; }
.course-modules { border: 0; border-radius: 12px; padding: 22px 16px 10px; }
.course-modules li { min-height: 66px; font-size: 14px; }
.course-modules li::before { color: #a8c1ff; }
.course-modules a { display: block; padding-block: 3px; }
.course-modules a:focus-visible { outline-offset: 2px; }
.course-footer { padding-top: 24px; }
.button, .course-cta, .nav-contact { border-radius: 999px; font-weight: 600; }
.button, .course-cta { padding: 13px 22px; }
.course-cta { background: #223552; border-color: #58749e; }
.course-cta:hover { background: #2b4265; }
.hero-selectors button { border-radius: 50%; }
.hero-playback { text-decoration: underline; text-underline-offset: 4px; }
#approche .approach-card { background: var(--surface); }
#approche .approach-card h3 {
  color: var(--blue);
  font-size: min(var(--card-title), 26px);
  font-weight: 500;
  line-height: 1.25;
}
#approche .approach-card > p { margin: 0; }
@supports (grid-template-rows: subgrid) {
  #approche .approach-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    row-gap: 0;
  }
}
@media (max-width: 980px) {
  #approche .approach-card { display: flex; grid-row: auto; }
}
.about > div:last-child { background: transparent; border: 0; padding: 0; }
.contact { background: #a8c1ff; color: #111b2b; border: 0; border-radius: 24px; }
.contact p { color: #314767; }
.contact .button { background: #1a273d; border-color: #1a273d; color: #f6f8fd; }
.contact .button:hover { background: #293d5c; }
.contact .button:focus-visible { outline-color: #1a273d; }
.page-intro h1 { font-weight: 400; line-height: 1.12; }
.detail-block h2, .practical h2 { font-weight: 400; }
.detail-content h3 { font-family: var(--font-family); font-weight: 600; }
.practical { background: linear-gradient(145deg, #243652, #1a273d); }
.practical dt { letter-spacing: .09em; }
.practical dd { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.practical dd:last-child { border-bottom: 0; }
.topic-list { padding-left: 22px; }
.topic-list li::marker { color: var(--blue); }
.breadcrumb { font-size: 13px; line-height: 1.6; }
.breadcrumb > * + *::before { content: "/"; margin-right: 12px; color: #a0b3d0; }
.bundle-callout h2 { font-weight: 400; }
.footer { padding-block: 36px; background: #121e30; }
@media (hover: hover) {
  .course, .audience article { transition: border-color .2s ease; }
  .course:hover, .audience article:hover { border-color: #6a82ad; }
}
@media (max-width: 980px) {
  .hero-title { font-size: clamp(44px, 6vw, 64px); }
  .note-panel > .number { font-size: 76px; }
  .course-modules li { min-height: 0; }
}
@media (max-width: 760px) {
  .hero-title { font-size: clamp(44px, 9vw, 64px); }
  .note-panel > .number { font-size: 64px; }
  .about { margin-top: 40px; padding-top: 40px; }
  .contact { border-radius: 18px; }
}
@media (max-width: 480px) {
  :root { --card-title: 26px; --radius: 16px; }
  .hero-title { font-size: clamp(40px, 11vw, 52px); }
  .page-intro h1 { font-size: 36px; }
  .course-modules { padding: 18px 12px 8px; }
  .hero-bottom { margin-top: 32px; }
  .button, .course-cta { padding-inline: 18px; }
  .section-head { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Original blue theme, refined navigation and hero. */
body > header { background: var(--bg); }
.nav { min-height: 88px; gap: 28px; }
.nav nav { gap: clamp(16px, 2.5vw, 32px); }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.nav .nav-contact { color: var(--text); border-color: var(--line); padding-inline: 22px; }
.hero { padding-top: clamp(32px, 5vw, 64px); }
.hero-main {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(28px, 4.5vw, 60px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(ellipse at 100% 0%, rgb(133 170 255 / 12%), transparent 65%), var(--inset);
}
.hero-content { position: relative; min-width: 0; }
.hero-slide > .eyebrow {
  align-self: flex-start;
  margin-bottom: 24px;
  padding: 8px 12px;
  border: 1px solid #3b5277;
  border-radius: 6px;
  background: #1b2c46;
  font-size: 11px;
  letter-spacing: .09em;
}
.hero-title { margin-bottom: 24px; font-size: clamp(42px, 4.8vw, 66px); line-height: 1.08; letter-spacing: -.04em; }
.hero-title em { color: var(--blue); }
.hero-text { max-width: 530px; font-size: 17px; line-height: 1.75; }
.hero-slide .actions { gap: 12px; padding-top: 30px; }
.hero-slide .actions .button { font-size: 13px; padding: 12px 18px; border-radius: 10px; }
.hero-slide .actions .button:not(.primary) { border-color: #53698c; }
.hero-controls { margin-top: 28px; padding-top: 20px; border-top: 0; gap: 16px; }
.hero-selectors { gap: 8px; }
.hero-selectors button { width: 44px; height: 44px; border-radius: 10px; }
.hero-selectors button:not([aria-pressed="true"]):hover { border-color: var(--blue); color: var(--text); }
.hero-playback { font-size: 12px; text-decoration: none; }
.hero-playback:hover { text-decoration: underline; text-underline-offset: 4px; }
.note-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 16px;
  border: 1px solid #40577c;
  background: linear-gradient(155deg, #263b5d, #1a273d);
}
.note-panel > .number { font-size: clamp(72px, 8vw, 112px); line-height: .95; margin: 0 0 28px; color: var(--blue); }
.note-panel h2 { font-size: clamp(25px, 2.4vw, 32px); line-height: 1.25; margin-bottom: 20px; letter-spacing: -.025em; }
.note-panel > p { padding-top: 20px; border-top: 1px solid #40577c; font-size: 14px; line-height: 1.75; }
.hero-bottom { margin-top: 20px; border-top: 0; padding: 20px 4px 24px; gap: 16px 24px; }
.hero-bottom span:last-child { color: var(--blue); }
.contact { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.contact p { color: var(--muted); }
.contact .button { background: var(--blue); border-color: var(--blue); color: var(--bg); }
.contact .button:hover { background: #c4d5ff; border-color: #c4d5ff; }
.contact .button:focus-visible { outline-color: var(--blue); }
@media (max-width: 1050px) {
  .hero-main { grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); padding: 32px; gap: 28px; }
  .hero-title { font-size: clamp(42px, 5vw, 56px); }
  .hero-slide .actions { flex-direction: column; align-items: flex-start; }
  .hero-slide .actions .button { width: 100%; }
}
@media (max-width: 760px) {
  .nav { min-height: auto; align-items: stretch; }
  .nav .logo { align-self: flex-start; }
  .nav nav { justify-content: space-between; gap: 12px; }
  .hero-main { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px; border-radius: 20px; }
  .hero-title { font-size: clamp(44px, 8vw, 60px); }
  .hero-slide .actions { flex-direction: row; align-items: stretch; }
  .hero-slide .actions .button { width: auto; }
  .note-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; padding: 24px; align-items: center; }
  .note-panel > .number { grid-row: 1 / 3; margin: 0; font-size: 88px; }
  .note-panel h2 { font-size: 25px; margin: 0 0 12px; }
  .note-panel > p { grid-column: 2; margin: 0; padding: 0; border: 0; }
  .hero-bottom { font-size: 12px; }
}
@media (max-width: 480px) {
  .nav nav { gap: 8px; }
  .nav .nav-contact { padding-inline: 12px; }
  .hero { padding-top: 24px; }
  .hero-main { padding: 24px 18px; gap: 24px; border-radius: 16px; }
  .hero-title { font-size: clamp(36px, 10vw, 46px); }
  .hero-slide > .eyebrow { font-size: 10px; padding-inline: 10px; }
  .hero-text { font-size: 16px; }
  .hero-slide .actions { flex-direction: column; padding-top: 24px; }
  .hero-slide .actions .button { width: 100%; }
  .hero-controls { gap: 8px; }
  .hero-playback { padding-inline: 6px; font-size: 11px; }
  .note-panel { column-gap: 16px; padding: 20px 16px; }
  .note-panel > .number { font-size: 66px; }
  .note-panel h2 { font-size: 22px; }
  .note-panel > p { font-size: 13px; }
  .hero-bottom { align-items: flex-start; gap: 10px; padding-inline: 4px; }
}
/* CAROUSEL ARTWORK — transparent PNGs in assets/images/.
   The existing carousel controls aria-hidden; match the formation URL, not slide order. */
.hero-main { --hero-art-opacity: 0.75; }
.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--hero-art, none);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  /* filter: saturate(.45) hue-rotate(15deg); */
  opacity: var(--hero-art-opacity);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%);
  mask-image: linear-gradient(90deg, transparent, #000 65%);
}
.hero-main > .hero-content, .hero-main > .note-panel { position: relative; z-index: 0; }
.hero-main > .note-panel { background: linear-gradient(155deg, rgb(38 59 93 / 88%), rgb(26 39 61 / 90%)); }

.hero-main:has(.hero-slide:not([aria-hidden="true"]) a.button.primary[href*="culture-numerique"]) {
  --hero-art: url("images/culture-numerique.png?v=20261024");
}

.hero-main:has(.hero-slide:not([aria-hidden="true"]) a.button.primary[href*="cybersecurite"]) {
  --hero-art: url("images/cybersecurite.png?v=20261024");
}

.hero-main:has(.hero-slide:not([aria-hidden="true"]) a.button.primary[href*="logiciels-libres"]) {
  --hero-art: url("images/logiciels-libres.png?v=20261024");
}

@media (max-width: 760px) {
  .hero-main { --hero-art-opacity: .14; }
  .hero-main::before {
    background-size: auto 100%;
    background-position: 65% center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 85%);
    mask-image: linear-gradient(90deg, transparent, #000 85%);
  }
}
@media print { .hero-main::before { display: none; } }

/* Compact formation overview: number and heading form one visual unit. */
.hero-main > .note-panel {
  align-self: center;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
  row-gap: 24px;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid #4b6287;
  border-radius: 18px;
  background: linear-gradient(145deg, rgb(39 57 85 / 97%), rgb(23 36 57 / 97%));
  box-shadow: 0 16px 40px rgb(6 14 28 / 18%), inset 0 1px 0 rgb(168 193 255 / 10%);
}
.hero-main > .note-panel > .number {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 60px;
  min-height: 76px;
  margin: 3px 0 0;
  border: 1px solid #526e9b;
  border-radius: 14px;
  background: #2b4064;
  color: #c4d5ff;
  font-family: var(--font-family);
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
}
.hero-main > .note-panel h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: clamp(24px, 2.1vw, 29px);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -.025em;
  text-wrap: pretty;
  color: var(--text);
}
.hero-main > .note-panel > p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid #415575;
  font-size: 14px;
  line-height: 1.75;
  color: #c1cde0;
}
@media (min-width: 761px) and (max-width: 1050px) {
  .hero-main > .note-panel {
    grid-template-columns: 1fr;
    row-gap: 18px;
    padding: 24px;
  }
  .hero-main > .note-panel > .number { grid-column: 1; grid-row: 1; width: 54px; min-height: 60px; font-size: 46px; margin: 0; }
  .hero-main > .note-panel h2 { grid-column: 1; grid-row: 2; font-size: 25px; }
  .hero-main > .note-panel > p { grid-row: 3; }
}
@media (max-width: 760px) {
  .hero-main > .note-panel { grid-template-columns: 56px minmax(0, 1fr); padding: 24px; column-gap: 20px; row-gap: 18px; }
  .hero-main > .note-panel > .number { width: 56px; min-height: 66px; font-size: 50px; }
  .hero-main > .note-panel h2 { font-size: 26px; }
  .hero-main > .note-panel > p { padding-top: 16px; }
}
@media (max-width: 480px) {
  .hero-main > .note-panel { grid-template-columns: 44px minmax(0, 1fr); padding: 20px 16px; column-gap: 14px; border-radius: 14px; }
  .hero-main > .note-panel > .number { width: 44px; min-height: 56px; font-size: 42px; border-radius: 10px; }
  .hero-main > .note-panel h2 { font-size: 23px; }
  .hero-main > .note-panel > p { font-size: 13px; }
}

/* Overview without the numeral, with a translucent background. */
.hero-main > .note-panel {
  grid-template-columns: minmax(0, 1fr);
  background: linear-gradient(145deg, rgb(39 57 85 / 82%), rgb(23 36 57 / 85%));
}
.hero-main > .note-panel > .number { display: none; }
.hero-main > .note-panel h2 { grid-column: 1; grid-row: 1; }
.hero-main > .note-panel > p { grid-column: 1; grid-row: 2; }

/* Practical overview inside the hero. */
.hero-main > .note-panel .note-details {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid #415575;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.hero-main > .note-panel .note-details li { margin: 0; padding: 0; }
.hero-main > .note-panel .note-details strong { display: block; color: var(--text); font-weight: 600; }
.hero-main > .note-panel > .text-link { grid-column: 1; grid-row: 3; margin: 0; }

/* Catalogue buttons: centered labels and the same shape as hero actions. */
#cours .course-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 13px 44px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: center;
}
#cours .course-cta > span[aria-hidden="true"] {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

/* Boutons du catalogue : bleu clair. */
#cours .course-cta {
  background-color: #a7c0ff;
  border-color: #a7c0ff;
  color: #111b2b;
}
#cours .course-cta > span[aria-hidden="true"] { color: inherit; }
#cours .course-cta:hover {
  background-color: #c4d5ff;
  border-color: #c4d5ff;
  color: #111b2b;
}

/* Accueil : trois cartes illustrées, programme sur les pages détaillées. */
#cours .courses .course-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  grid-row: auto;
  min-height: 330px;
  padding: 30px 24px 24px;
  background: var(--surface);
}
#cours .course-visual::before {
  content: none;
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: var(--course-art);
  background-position: center 62%;
  background-size: auto 100%;
  background-repeat: no-repeat;
  opacity: .12;
  /* filter: saturate(.45) hue-rotate(15deg); */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 28%, #000 76%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 28%, #000 76%, transparent);
}
#cours .course-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(26 39 61 / 58%), rgb(26 39 61 / 16%) 58%, rgb(26 39 61 / 72%));
}
#cours .course-visual--culture-numerique { --course-art: url("images/culture-numerique.png?v=20261019"); }
#cours .course-visual--cybersecurite { --course-art: url("images/cybersecurite.png?v=20261019"); }
#cours .course-visual--logiciels-libres { --course-art: url("images/logiciels-libres.png?v=20261019"); }
#cours .course-visual .course-top { margin-bottom: 22px; }
#cours .course-visual h3 { margin: 0; max-width: 19ch; text-wrap: balance; }
#cours .course-visual .course-footer { margin-top: auto; padding-top: 62px; }
@media (max-width: 760px) {
  #cours .courses .course-visual { min-height: 270px; padding: 26px 22px 22px; }
}

/* Descriptions courtes des formations sur l'accueil. */
#cours .courses .course-visual > .course-summary {
  margin: 18px 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
#cours .course-visual .course-footer { padding-top: 32px; }

.pricing {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.pricing-row span {
    color: #e2e8f0;
}

.pricing-row strong {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-highlight {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-highlight strong {
    color: #a9c1ff;
}

.pricing-offer {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 4px;
    color: #DFFF00;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Shared detail pages: consistent type, spacing and responsive navigation. */
.detail-content, .practical { min-width: 0; }
.detail-block > h2 { margin: 0 0 20px; }
.detail-block > .eyebrow { margin-bottom: 10px; }
.detail-program-item .module-activity {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 2px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--inset);
}
.module-activity h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.module-activity p { margin: 0; }
.practical dl { margin: 0; }
.practical dt:first-child { margin-top: 0; }
.pricing-row { flex-wrap: wrap; gap: 4px 16px; }
.module-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.module-navigation a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.5;
}
.module-navigation a:hover { border-color: var(--blue); }
.module-navigation .eyebrow { margin: 0; }
.module-navigation .module-next { grid-column: 2; }
@media (max-width: 760px) {
  .module-navigation { grid-template-columns: minmax(0, 1fr); }
  .module-navigation .module-next { grid-column: 1; }
}

/* Carte tarifaire : prix, prestations et informations pratiques. */
.pricing-card.practical {
    min-width: 0;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--line, #34445e);
    border-top: 3px solid var(--blue, #a8c1ff);
    border-radius: 20px;
    background: linear-gradient(145deg, #263750, #1c293d);
    color: var(--text, #f6f8fd);
}
.pricing-card .pricing-label {
    margin: 0 0 14px;
    color: var(--blue, #a8c1ff);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.pricing-card .pricing-price {
    margin: 0;
    color: var(--text, #f6f8fd);
    font-size: clamp(44px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.pricing-card .pricing-price span {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
}
.pricing-card .pricing-price-pending { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; }
.pricing-card .pricing-duration { margin: 10px 0 0; color: var(--muted, #c1cde0); font-size: 14px; line-height: 1.6; }
.pricing-card .pricing-duration span { margin-inline: 5px; }
.pricing-card .pricing-included {
    display: grid;
    gap: 9px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
    color: var(--text, #f6f8fd);
    font-size: 14px;
    line-height: 1.6;
}
.pricing-card .pricing-included li { position: relative; padding-left: 25px; }
.pricing-card .pricing-included li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: .35em;
    width: 6px;
    height: 11px;
    border: solid var(--blue, #a8c1ff);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.pricing-card .button.pricing-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 15px 18px;
    gap: 12px;
    border: 1px solid var(--blue, #a8c1ff);
    border-radius: 12px;
    background: var(--blue, #a8c1ff);
    color: #111b2b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}
.pricing-card .pricing-cta:hover { background: #c4d5ff; border-color: #c4d5ff; }
.pricing-card .pricing-cta-arrow { font-size: 22px; line-height: 1; }
.pricing-card .pricing-facts { margin: 0 0 24px; padding: 0; }
.pricing-card .pricing-facts > div + div { margin-top: 18px; }
.pricing-card .pricing-facts dt,
.pricing-card .pricing-option-title {
    margin: 0 0 8px;
    color: var(--text, #f6f8fd);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
}
.pricing-card .pricing-facts dd,
.pricing-card .pricing-group-note {
    margin: 0;
    padding: 0;
    border: 0;
    color: #cbd5e5;
    font-size: 14px;
    line-height: 1.5;
}
.pricing-card .pricing-group-note + .pricing-group-note { margin-top: 10px; }
.pricing-card .pricing-individual { margin-top: 12px; text-align: center; }
.pricing-card .pricing-options { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line, #34445e); }
.pricing-card .pricing-module-link {
    display: inline-block;
    max-width: 100%;
    padding: 10px 0;
    color: var(--blue, #a8c1ff);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.pricing-card .pricing-module-link span { display: inline-block; text-decoration: none; }
.pricing-card .pricing-module-link:hover { color: #fff; }
.pricing-card a:focus-visible { outline: 3px solid var(--blue, #a8c1ff); outline-offset: 5px; }

/* Coches décoratives pour les objectifs de la formation. */
.objectives-list {
    list-style: none;
    padding-left: 0;
}
.objectives-list > li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}
.objectives-list > li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .55em;
    width: 7px;
    height: 12px;
    border: solid var(--blue, #a8c1ff);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.objectives-list > li:last-child { margin-bottom: 0; }

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.topic-tags > li {
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

/* Section pédagogique et publics — styles limités à ces deux blocs. */
#approche.learning-section {
    padding-bottom: 0;
}
#approche .learning-heading {

    margin-bottom: clamp(28px, 4vw, 44px);
}
#approche .eyebrow,
.learning-audience .eyebrow {
    display: block;
    margin: 0;
    color: var(--blue, #a8c1ff);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .1em;
    text-transform: uppercase;
}
#approche .learning-heading h2 {
    margin: 18px 0;
    color: var(--text, #f6f8fd);
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 400;
    line-height: 1.16;
    letter-spacing: -.035em;
}
#approche .learning-heading h2 span {
    color: var(--blue, #a8c1ff);
}
#approche .learning-intro {

    margin: 0;
    color: var(--muted, #b9c7dd);
    font-size: 16px;
    line-height: 1.75;
}
#approche .learning-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
#approche .learning-card {
    min-width: 0;
    padding: clamp(24px, 2.5vw, 32px);
    border: 1px solid var(--line, #34445e);
    border-radius: 18px;
    background: linear-gradient(145deg, #243248, #1e2a3c);
}
#approche .learning-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}
#approche .learning-icon {
    display: none;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: rgba(168, 193, 255, .09);
    color: var(--blue, #a8c1ff);
}
#approche .learning-icon svg { width: 23px; height: 23px; }
#approche .learning-card h3,
.learning-audience h3 {
    margin: 0 0 14px;
    color: var(--text, #f6f8fd);
    font-size: clamp(21px, 2vw, 25px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.025em;
    text-wrap: balance;
}
#approche .learning-card > p,
.learning-audience article > p {
    margin: 0;
    color: var(--muted, #b9c7dd);
    font-size: 16px;
    line-height: 1.8;
}
.section.learning-audience-section {
    padding-top: 28px;
    border-top: 0;
    margin-top: 0;
}
.learning-audience {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: clamp(26px, 3vw, 36px) 0;
    scroll-margin-top: 100px;
}
.learning-audience article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding-right: clamp(24px, 4vw, 56px);
}
.learning-audience article + article {
    padding-right: 0;
    padding-left: clamp(24px, 4vw, 56px);
    border-left: 1px solid var(--line, #34445e);
}
.learning-audience .eyebrow { margin-bottom: 14px; }
.learning-audience article > p { margin-bottom: 22px; }
.learning-audience .learning-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 5px 0;
    color: var(--blue, #a8c1ff);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    text-underline-offset: 5px;
}
.learning-audience .learning-link:hover { text-decoration: underline; }
.learning-audience .learning-link:focus-visible {
    outline: 2px solid var(--blue, #a8c1ff);
    outline-offset: 5px;
    border-radius: 2px;
}
@media (max-width: 900px) {
    #approche .learning-grid { grid-template-columns: 1fr; gap: 16px; }
    #approche .learning-card-top { margin-bottom: 18px; }
}
@media (max-width: 620px) {
    .learning-audience { grid-template-columns: 1fr; padding-top: 8px; }
    .learning-audience article { padding: 24px 0; }
    .learning-audience article + article {
        padding: 24px 0 4px;
        border-left: 0;
        border-top: 1px solid var(--line, #34445e);
    }
    #approche .learning-intro { font-size: 15px; }
}

/* Formulaire de contact */
#contact.contact-section { padding-top: 0; scroll-margin-top: 40px; }
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 5vw, 72px);
    padding-top: clamp(36px, 5vw, 64px);
    border-top: 1px solid var(--line);
    align-items: start;
}
.contact-intro h2 {
    margin: 0 0 24px;
    font-size: var(--section-title);
    line-height: 1.15;
    letter-spacing: -.035em;
}
.contact-intro h2 span { color: var(--blue); }
.contact-intro > p:last-child { max-width: 390px; color: var(--muted); }
.contact-form {
    min-width: 0;
    padding: clamp(22px, 3vw, 36px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.contact-form .contact-required { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; min-width: 0; }
.contact-field label { color: var(--text); font-size: 14px; font-weight: 600; }
.contact-field input, .contact-field select, .contact-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    color-scheme: dark;
}
.contact-field textarea { resize: vertical; min-height: 160px; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-color: var(--blue);
}
.contact-field [aria-invalid="true"] { border-color: #f2aaaa; }
.contact-field-error { color: #ffc0c0; font-size: 13px; line-height: 1.5; }
.contact-submit { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact-submit p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.contact-submit .button { max-width: 100%; }
.contact-notice { margin: 0 0 24px; padding: 16px 18px; border: 1px solid; border-radius: 10px; font-size: 14px; }
.contact-notice--success { color: #c2e8c8; border-color: #57735c; background: #20372c; }
.contact-notice--error { color: #ffcccc; border-color: #84575f; background: #392a33; }
.contact-notice p { margin: 0 0 8px; font-weight: 600; }
.contact-notice ul { margin: 0; padding-left: 20px; }
.contact-notice a { text-decoration: underline; text-underline-offset: 3px; }
.contact-trap { display: none; }
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; gap: 28px; }
    .contact-intro > p:last-child { max-width: 650px; margin-bottom: 0; }
}
@media (max-width: 620px) {
    .contact-fields { grid-template-columns: 1fr; gap: 0; }
    .contact-submit .button { width: 100%; }
}
