:root {
  --ink: #10251f;
  --forest: #0b3d32;
  --deep: #062a23;
  --leaf: #70bd66;
  --lime: #b9db65;
  --sun: #f0b44a;
  --mist: #eaf3ef;
  --paper: #f7faf8;
  --white: #fff;
  --muted: #5f6f69;
  --line: rgba(11, 61, 50, .14);
  --shadow: 0 24px 70px rgba(8, 48, 39, .14);
}


main .missions-section { padding: 0; background: var(--deep); }
.missions-section > .shell { width: 100%; margin: 0; }
.missions-carousel { position: relative; overflow: hidden; background: var(--deep); color: #fff; }
.missions-slides { display: grid; }
.mission-slide { grid-area: 1 / 1; position: relative; margin: 0; min-height: 280px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.mission-slide.is-active { opacity: 1; visibility: visible; }
.mission-photo { position: absolute; inset: 0; }
.mission-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.mission-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(3,24,18,.87),rgba(3,24,18,.58) 52%,rgba(3,24,18,.1)),linear-gradient(0deg,rgba(3,24,18,.7),transparent 30%); }
.mission-slide figcaption { position: relative; z-index: 1; width: min(1120px,calc(100% - 40px)); margin: 0 auto; padding: 32px 0 72px; }
.mission-slide h3 { max-width: 720px; margin: 0 0 12px; color: #fff; font-size: clamp(1.5rem,3vw,2.2rem); line-height: 1.18; letter-spacing: -.025em; text-shadow: 0 1px 8px #0006; }
.mission-slide p { max-width: 660px; margin: 0; color: #fff; font-size: 1.05rem; line-height: 1.5; text-shadow: 0 1px 8px #0006; }
.carousel-controls { position: absolute; z-index: 2; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0 14px; }
.carousel-controls[hidden] { display: none; }
.carousel-controls button { min-width: 44px; min-height: 44px; padding: 7px 12px; border: 1px solid #c4d7ce; border-radius: 8px; background: #062a23e6; color: #fff; cursor: pointer; font-size: .875rem; }
.carousel-dots { display: flex; gap: 6px; margin-left: 8px; }
.carousel-dots button[aria-current="true"] { background: var(--lime); border-color: var(--lime); color: var(--deep); font-weight: 800; }
.carousel-controls button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
 .mission-slide { min-height: 280px; }
 .mission-slide figcaption { width: calc(100% - 32px); padding-top: 24px; }
 .mission-slide h3 { font-size: 1.5rem; margin-bottom: 10px; }
 .mission-slide p { font-size: 1rem; }
 .mission-slide::after { background: linear-gradient(90deg,rgba(3,24,18,.85),rgba(3,24,18,.4)),linear-gradient(0deg,rgba(3,24,18,.7),transparent 35%); }
 .carousel-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mission-slide { transition: none; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar { color: #d9eee6; background: var(--deep); font-size: .84rem; }
.topbar .shell { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar strong { color: var(--lime); }
header { position: sticky; top: 0; z-index: 20; background: rgba(247,250,248,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
nav { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo { display: block; width: auto; height: 82px; max-width: 34vw; object-fit: contain; }
.brand-wordmark { display: block; width: 205px; max-width: 25vw; height: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 24px; color: #29483e; font-size: .92rem; font-weight: 700; }
.nav-links a[aria-current="page"] { color: var(--forest); text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav-cta, .button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 0; border-radius: 999px; color: white; background: var(--forest); box-shadow: 0 10px 28px rgba(11,61,50,.18); font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover, .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11,61,50,.25); }
.menu-button { display: none; border: 0; background: transparent; color: var(--forest); padding: 9px; }
.page-hero { position: relative; overflow: hidden; padding: 92px 0 82px; background: linear-gradient(125deg, #f7faf8 0%, #eaf3ef 100%); }
.page-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -130px; top: -180px; border: 65px solid rgba(112,189,102,.15); border-radius: 50%; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--forest); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--sun); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin: 20px 0; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -.06em; }
.lead { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 1.15rem; }
main section { padding: 88px 0; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2 { margin: 14px 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p { color: var(--muted); }
.home-hero { padding: 86px 0 92px; background: linear-gradient(125deg, #f7faf8 0%, #eaf3ef 66%, #d9ebe3 100%); }
.home-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.home-hero h1 { margin: 20px 0 24px; max-width: 760px; font-size: clamp(3rem, 6vw, 5.7rem); line-height: .98; letter-spacing: -.064em; }
.home-hero h1 span { color: var(--forest); }
.home-hero .lead { max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.button-secondary { color: var(--forest); background: white; border: 1px solid var(--line); }
.promise-panel { padding: 34px; border: 1px solid var(--line); border-radius: 30px; color: white; background: var(--forest); box-shadow: var(--shadow); }
.promise-panel h2 { margin-bottom: 20px; font-size: 1.8rem; letter-spacing: -.035em; }
.promise-list { display: grid; gap: 15px; }
.promise-list span { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.13); color: #d7e8e1; }
.promise-list b { color: var(--lime); }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.overview-card { min-height: 265px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 25px; background: white; box-shadow: 0 14px 36px rgba(8,48,39,.07); }
.overview-card .card-index { color: var(--leaf); font-size: .8rem; font-weight: 900; letter-spacing: .12em; }
.overview-card h3 { margin: 24px 0 12px; font-size: 1.45rem; line-height: 1.2; }
.overview-card p { color: var(--muted); }
.overview-card a { margin-top: auto; color: var(--forest); font-weight: 850; }
.news-highlight { display: grid; grid-template-columns: .8fr 1.2fr; gap: 38px; align-items: center; padding: 42px; border-radius: 30px; color: white; background: var(--deep); }
.news-highlight .eyebrow { color: var(--lime); }
.news-highlight h2 { margin: 14px 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -.045em; }
.news-highlight p { color: #c7ddd5; }
.news-points { display: grid; gap: 12px; }
.news-point { padding: 17px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; background: rgba(255,255,255,.06); }
.news-point strong { display: block; margin-bottom: 3px; color: white; }
.news-point span { color: #bed5cc; font-size: .9rem; }
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.expertise-card, .method-stage, .news-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 14px 36px rgba(8,48,39,.07); }
.expertise-card b, .method-stage b { display: block; margin-bottom: 15px; color: var(--leaf); font-size: .8rem; letter-spacing: .12em; }
.expertise-card h2, .method-stage h2 { margin-bottom: 12px; font-size: 1.45rem; line-height: 1.22; }
.expertise-card p, .method-stage p { margin-bottom: 0; color: var(--muted); }
.detail-list { margin: 18px 0 0; padding-left: 20px; color: #355248; }
.detail-list li + li { margin-top: 7px; }
.method-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: phase; }
.method-stage { counter-increment: phase; }
.method-stage b::before { content: "0" counter(phase) " · "; color: var(--sun); }
.wide-panel { padding: 38px; border-radius: 28px; color: white; background: var(--forest); }
.wide-panel h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3rem); }
.wide-panel p { max-width: 850px; margin-bottom: 0; color: #cce2da; }
.catalogue-panel { padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: 0 20px 50px rgba(8,48,39,.08); }
.catalogue-toolbar { display: grid; grid-template-columns: 1.3fr .9fr auto; gap: 12px; align-items: end; margin-bottom: 22px; }
.catalogue-count { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 13px; color: white; background: var(--forest); font-size: .88rem; font-weight: 850; white-space: nowrap; }
.catalogue-note { margin: 0 0 24px; padding: 14px 16px; border-radius: 15px; color: #38554b; background: #eef6f1; font-size: .86rem; }
.course-list { display: grid; gap: 10px; }
.course-row { display: grid; grid-template-columns: 128px 1fr 90px 122px; gap: 16px; align-items: center; padding: 17px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fcfefd; }
.course-code { color: var(--forest); font-size: .79rem; font-weight: 900; letter-spacing: .035em; }
.course-title { font-size: .92rem; font-weight: 720; line-height: 1.4; }
.course-duration { color: var(--muted); font-size: .84rem; }
.course-price { color: var(--forest); font-size: .86rem; font-weight: 850; text-align: right; }
.course-category { display: block; margin-top: 3px; color: #759087; font-size: .72rem; font-weight: 700; }
.catalogue-empty { padding: 32px; border: 1px dashed #b7cbc3; border-radius: 16px; color: var(--muted); text-align: center; }
.catalogue-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.catalogue-actions p { margin: 0; color: var(--muted); font-size: .82rem; }
.text-button { border: 0; padding: 10px 0; color: var(--forest); background: transparent; font-weight: 850; cursor: pointer; }
.news-grid { display: grid; gap: 24px; }
.news-card { display: grid; grid-template-columns: 210px 1fr; gap: 32px; align-items: start; }
.news-meta { display: grid; gap: 10px; }
.news-status { width: max-content; padding: 7px 11px; border-radius: 999px; color: var(--forest); background: var(--mist); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.news-status.preparation { color: #73520d; background: #fff2d4; }
.news-card h2 { margin-bottom: 12px; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.035em; }
.news-card p { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.metric { padding: 14px; border-radius: 15px; background: var(--mist); }
.metric strong { display: block; color: var(--forest); font-size: 1.15rem; }
.metric span { color: var(--muted); font-size: .76rem; }
.team-list { display: grid; gap: 30px; }
.profile { display: grid; grid-template-columns: 290px 1fr; gap: 46px; padding: 42px; border: 1px solid var(--line); border-radius: 30px; background: white; box-shadow: var(--shadow); }
.profile:nth-child(even) .portrait { background: linear-gradient(145deg, #176c57, var(--forest)); }
.portrait { min-height: 340px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 24px; color: white; background: linear-gradient(145deg, var(--forest), #176c57); }
.portrait::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; }
.portrait span { position: relative; font-size: 5rem; font-weight: 900; letter-spacing: -.08em; }
.profile-role { margin-bottom: 7px; color: var(--leaf); font-size: .82rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.profile h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; letter-spacing: -.045em; }
.credentials { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0; }
.credentials span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #355248; background: var(--mist); font-size: .8rem; font-weight: 750; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.principle b { display: block; margin-bottom: 13px; color: var(--leaf); font-size: .82rem; letter-spacing: .12em; }
.principle h3 { margin-bottom: 9px; font-size: 1.15rem; }
.principle p { margin-bottom: 0; color: var(--muted); font-size: .91rem; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.contact-info { padding: 36px; border-radius: 28px; color: white; background: var(--forest); }
.contact-info h2 { font-size: 2rem; letter-spacing: -.035em; }
.contact-info > p { color: #cce2da; }
.contact-items { display: grid; gap: 15px; margin-top: 28px; }
.contact-item { padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.06); }
.contact-item small { display: block; color: var(--lime); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.contact-item a, .contact-item strong { display: block; margin-top: 4px; color: white; font-size: .98rem; word-break: break-word; }
.contact-form { padding: 38px; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: 0 18px 50px rgba(8,48,39,.08); }
.contact-form h2 { margin-bottom: 7px; font-size: 2rem; letter-spacing: -.035em; }
.contact-form > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { color: #29483e; font-size: .84rem; font-weight: 800; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid #cad9d3; border-radius: 13px; color: var(--ink); background: white; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(112,189,102,.14); }
textarea { min-height: 150px; resize: vertical; }
.form-note, .form-status { font-size: .82rem; }
.form-note { margin: 12px 0 18px; color: var(--muted); }
.form-status { min-height: 25px; margin: 12px 0 0; color: var(--forest); font-weight: 800; }
.cta-band { padding: 42px; border-radius: 28px; color: white; background: var(--deep); display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.cta-band h2 { margin-bottom: 6px; font-size: 2rem; letter-spacing: -.035em; }
.cta-band p { margin-bottom: 0; color: #bfd5cc; }
footer { padding: 34px 0; color: #bcd3ca; background: #041f1a; font-size: .84rem; }
footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-wordmark { display: block; width: 190px; height: auto; margin-bottom: 7px; border-radius: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 1080px) {
  .home-grid, .news-highlight { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .method-flow { grid-template-columns: 1fr 1fr; }
  .profile, .contact-layout { grid-template-columns: 1fr; }
  .portrait { min-height: 260px; }
  .principles { grid-template-columns: 1fr; }
  .nav-links { position: absolute; inset: 104px 20px auto; display: none; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 17px; }
  .nav-links.open { display: flex; }
  .menu-button { display: grid; place-items: center; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1120px); }
  .topbar .shell { justify-content: center; text-align: center; }
  .topbar .shell > span:nth-child(2) { display: none; }
  nav { min-height: 88px; gap: 12px; }
  .brand { gap: 9px; }
  .brand-logo { height: 66px; max-width: 26vw; }
  .brand-wordmark { width: 135px; max-width: 46vw; }
  .nav-links { inset: 88px 14px auto; }
  .page-hero { padding: 68px 0 62px; }
  main section { padding: 68px 0; }
  .home-hero { padding: 58px 0 68px; }
  .overview-grid, .content-grid, .method-flow { grid-template-columns: 1fr; }
  .overview-card { min-height: 230px; }
  .news-highlight, .wide-panel { padding: 28px 22px; }
  .catalogue-toolbar { grid-template-columns: 1fr; }
  .catalogue-count { justify-content: flex-start; }
  .course-row { grid-template-columns: 105px 1fr; }
  .course-duration, .course-price { text-align: left; }
  .course-duration::before { content: "Durée : "; }
  .course-price::before { content: "Tarif : "; font-weight: 650; color: var(--muted); }
  .catalogue-actions { align-items: flex-start; flex-direction: column; }
  .news-card { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; }
  .metric-grid { grid-template-columns: 1fr; }
  .profile, .contact-info, .contact-form { padding: 25px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .cta-band { align-items: flex-start; flex-direction: column; padding: 28px 22px; }
  footer .shell { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }

/* Project photographs retain their full framing and source proportions. */
.terrain-section { background: #fff; }
.terrain-story { padding: 44px 0; border-top: 1px solid var(--line); }
.terrain-copy { max-width: 800px; margin-bottom: 26px; }
.terrain-copy h3 { font-size: clamp(1.65rem,3vw,2.5rem); line-height: 1.2; letter-spacing: -.03em; margin: 15px 0; }
.terrain-copy p:not(.eyebrow) { color: #405b50; }
.terrain-gallery, .terrain-skills { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: start; }
.terrain-photo { margin: 0; min-width: 0; }
.terrain-photo img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--mist); }
.terrain-photo figcaption { padding: 12px 2px; font-size: .9rem; line-height: 1.5; color: #405b50; }
.portrait-photo { max-width: 390px; width: 100%; margin-inline: auto; }
.terrain-closing { max-width: 850px; margin: 36px 0 0; font-size: clamp(1.3rem,2.5vw,1.8rem); line-height: 1.5; color: var(--forest); font-weight: 700; }
.terrain-skill { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper); }
.terrain-skill .terrain-photo img { border-radius: 0; }
.terrain-skill figcaption { padding: 14px 24px 0; }
.terrain-skill > div { padding: 20px 24px 24px; }
.terrain-skill h3 { font-size: 1.45rem; line-height: 1.25; }
.terrain-skill p { margin-bottom: 0; color: #405b50; }
.terrain-link { margin-top: 30px; font-weight: 750; }
.terrain-link a { text-decoration: underline; text-underline-offset: 5px; }
.nav-links { gap: 16px; }
@media (min-width: 1081px) {
 nav { flex-wrap: wrap; justify-content: center; padding-block: 14px; gap: 14px; }
}
@media (max-width: 640px) {
 .terrain-gallery, .terrain-skills { grid-template-columns: minmax(0,1fr); }
 .terrain-story { padding: 32px 0; }
}

.portrait.portrait-photo-team { display: block; min-height: 0; align-self: start; width: 100%; max-width: 340px; background: transparent; }
.portrait-photo-team::before { display: none; }
.portrait-photo-team img { display: block; width: 100%; height: auto; }

.course-help { color: #405b50; margin-bottom: 24px; }
button.course-code { padding: 8px 0; border: 0; background: transparent; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; font-size: .875rem; }
.course-title-button { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.course-title-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.course-open:focus-visible, #courseDialogClose:focus-visible { outline: 3px solid #256e50; outline-offset: 4px; border-radius: 4px; }
.course-dialog { width: min(760px,calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: white; box-shadow: var(--shadow); overflow: auto; }
.course-dialog::backdrop { background: rgba(4,31,26,.7); }
.course-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: sticky; top: 0; padding: 16px 28px; background: var(--forest); color: white; z-index: 1; }
.course-dialog-bar p { margin: 0; font-weight: 800; }
#courseDialogClose { border: 1px solid #a9c9ba; border-radius: 8px; padding: 9px 14px; cursor: pointer; background: white; color: var(--forest); font-weight: 700; }
.course-dialog-content { padding: 28px 32px; }
.course-dialog h2 { font-size: clamp(1.45rem,4vw,2rem); line-height: 1.25; overflow-wrap: anywhere; }
.course-dialog h3 { margin: 26px 0 8px; font-size: 1.1rem; line-height: 1.4; color: var(--forest); }
.course-dialog-meta, .course-dialog-note { color: #52685f; font-size: .9rem; }
.course-dialog-note { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
body.course-dialog-open { overflow: hidden; }
@media (max-width:640px) {
 .course-dialog-content { padding: 22px 20px; }
 .course-dialog-bar { padding: 14px 20px; }
 .course-row { grid-template-columns: minmax(0,1fr); gap: 8px; }
}

@media (min-width:1081px) { .nav-links { justify-content: center; flex-wrap: wrap; row-gap: 14px; } }
body:has(script[src$="prestations.js"]) .course-row { grid-template-columns: 128px minmax(0,1fr) 110px 180px; }
@media (max-width:640px) { body:has(script[src$="prestations.js"]) .course-row { grid-template-columns: minmax(0,1fr); } body:has(script[src$="prestations.js"]) .course-duration::before { content: "Unité / durée : "; } }

/* The language choice stays visible outside the collapsed mobile menu. */
.topbar .shell { flex-wrap: wrap; padding-block: 4px; column-gap: 16px; row-gap: 2px; }
.topbar .language-switch { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: .875rem; }
.language-switch a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 5px; }
.language-switch a[aria-current="true"] { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.language-switch a:hover { color: #fff; }
.language-switch a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 3px; }
html[lang="en"] body:has(script[src$="prestations-en.js"]) .course-row { grid-template-columns: 128px minmax(0,1fr) 110px 180px; }
@media (max-width:640px) {
  .topbar .shell > span:first-child { width: 100%; }
  html[lang="en"] .course-duration::before { content: "Duration: "; }
  html[lang="en"] .course-price::before { content: "Price: "; }
  html[lang="en"] body:has(script[src$="prestations-en.js"]) .course-row { grid-template-columns: minmax(0,1fr); }
  html[lang="en"] body:has(script[src$="prestations-en.js"]) .course-duration::before { content: "Unit / duration: "; }
}
