.pg { container: pg / inline-size; }
.site { --axis: 1.25rem; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 1rem; line-height: 1.625; }
@container pg (min-width: 40rem) { .site { --axis: 2rem; } }
@container pg (min-width: 64rem) { .site { --axis: max(2rem, calc((100cqw - 75rem) / 2)); } }
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site h1, .site h2, .site h3 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); text-wrap: balance; }
.site :where(p, ul, ol, dl, dd) { margin: 0; }
.site a:not(.lb-btn) { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
.site a:not(.lb-btn):hover { color: var(--link-hover); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--axis); top: 0.5rem; z-index: 5; padding: 0.75rem 1.25rem; border-radius: 999px; background: var(--ink); color: var(--ink-inverse) !important; transform: translateY(-300%); }
.skip:focus { transform: none; }

/* Ajustements du design system pour le niveau AAA */
.site .lb-btn { min-height: 2.75rem; }
.site .lb-btn--lg { height: 3.25rem; font-size: 1.0625rem; }
.site .lb-btn--secondary:hover { background: var(--surface-sunken); }
.site .lb-field { max-width: none; }
.site .lb-label { font-size: 1rem; line-height: 1.5; }
.site .lb-hint { font-size: 0.9375rem; line-height: 1.5; }
.site .lb-error { font-size: 1rem; line-height: 1.5; font-weight: 600; }
.site .lb-choice { font-size: 1rem; line-height: 1.5; }
.site .lb-choice input { width: 1.75rem; height: 1.75rem; }
.site .lb-choice input[type="checkbox"]:checked::after { width: 1.125rem; height: 1.125rem; }

/* En-tête et navigation */
.hd { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding: 0 var(--axis); }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; font: 600 1.5rem/1 var(--font-display); letter-spacing: -0.01em; color: var(--ink) !important; text-decoration: none !important; }
.nav, .hd__cta { display: none; }
.nav__list { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.nav__link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; color: var(--ink) !important; font-weight: 500; text-decoration: none !important; transition: background-color 0.2s var(--ease-out); }
.nav__link:hover { background: var(--surface-sunken); }
.nav__link[aria-current="page"] { background: var(--brand-soft); font-weight: 600; }
.menu-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.125rem; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface-raised); color: var(--ink); font: 600 1rem/1.25 var(--font-sans); cursor: pointer; }
.menu-btn.is-focus { outline: 3px solid var(--focus); outline-offset: 3px; }
@container pg (min-width: 64rem) {
  .nav, .hd__cta { display: block; }
  .hd__cta { display: inline-flex; }
  .menu-btn { display: none; }
  .hd { gap: 2rem; }
  .nav { margin-right: auto; margin-left: 1rem; }
}
.menu { padding: 0.5rem var(--axis) 2rem; }
.menu__list { margin: 0; padding: 0; list-style: none; }
.menu__link { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; padding: 0 0.25rem; border-bottom: 1px solid var(--line-strong); font: 600 1.375rem/1.2 var(--font-display); color: var(--ink) !important; text-decoration: none !important; }
.menu__link[aria-current="page"] { margin-bottom: 1px; padding: 0 1rem; border-radius: var(--radius-md); border-bottom-color: transparent; background: var(--brand-soft); }
.menu .lb-btn { width: 100%; margin-top: 1.75rem; }

.crumb { padding: 0.25rem var(--axis) 0; }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.crumb li { display: flex; align-items: center; min-height: 2.75rem; }
.crumb li + li::before { content: "/" / ""; margin: 0 0.5rem; color: var(--ink-muted); }
.crumb a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Sections */
.sec { padding: 3rem var(--axis); }
.sec--sunken { background: var(--surface-sunken); }
.sec h2 { font-size: 1.75rem; line-height: 1.25; letter-spacing: -0.005em; }
@container pg (min-width: 64rem) { .sec { padding: 6rem var(--axis); } .sec h2 { font-size: 2.5rem; line-height: 1.15; } }
.sec > .sec__body { margin-top: 2rem; }

/* Accueil : en-tête de page */
.hero { padding: 2rem var(--axis) 0; }
.hero h1 { max-width: 12ch; font-size: 2.5rem; line-height: 1.15; letter-spacing: -0.01em; }
.lead { max-width: 34ch; margin-top: 1rem; font-size: 1.125rem; line-height: 1.7; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin-top: 1.75rem; }
.cta-row a:not(.lb-btn) { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
@container pg (min-width: 40rem) { .hero h1 { max-width: 14ch; font-size: 3.25rem; line-height: 1.1; } }
@container pg (min-width: 64rem) { .hero { padding-top: 4.5rem; } .hero h1 { max-width: 15ch; font-size: 4rem; line-height: 1.06; letter-spacing: -0.015em; } .lead { max-width: 38ch; font-size: 1.25rem; } }

/* Lignes de situation */
.needs { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.need { display: grid; grid-template-columns: 3rem 1fr 1.5rem; grid-template-areas: "shape text arrow" "shape act arrow"; column-gap: 1rem; row-gap: 0.25rem; align-items: center; min-height: 5.5rem; padding: 1rem 1.125rem; border-radius: var(--radius-lg); color: var(--ink) !important; text-decoration: none !important; transition: transform 0.22s var(--ease-out); }
.need--web { background: var(--tint-web); } .need--automation { background: var(--tint-automation); } .need--ai { background: var(--tint-ai); } .need--audit { background: var(--tint-audit); }
.need__shape { grid-area: shape; display: grid; place-items: center; width: 3rem; height: 3rem; }
.shape { display: grid; place-items: center; width: 100%; height: 100%; background: var(--surface-raised); color: var(--ink); }
.shape svg { width: 52%; height: 52%; }
.shape--web { border-radius: 50%; } .shape--automation { border-radius: 50% 50% 8% 8% / 50% 50% 8% 8%; } .shape--ai { border-radius: 999px; } .shape--audit { border-radius: 26%; }
.need__text { grid-area: text; font-size: 1.125rem; line-height: 1.45; font-weight: 500; }
.need__act { grid-area: act; display: flex; flex-direction: column; }
.need__name { font: 600 1.0625rem/1.4 var(--font-display); }
.need__desc { display: none; }
.need__arrow { grid-area: arrow; width: 1.5rem; height: 1.5rem; transition: transform 0.22s var(--ease-out); }
.need:hover { transform: translateY(-2px); }
.need:hover .need__arrow { transform: translateX(4px); }
.need:hover .need__text { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
@container pg (min-width: 64rem) {
  .need { grid-template-columns: 3.5rem minmax(0, 1.4fr) minmax(0, 1fr) 2rem; grid-template-areas: "shape text act arrow"; column-gap: 2rem; min-height: 6.5rem; padding: 1.25rem 1.75rem; }
  .need__shape { width: 3.5rem; height: 3.5rem; }
  .need__text { font-size: 1.5rem; line-height: 1.35; }
  .need__name { font-size: 1.5rem; }
  .need__desc { display: block; font-size: 1rem; line-height: 1.5; }
}
@media (prefers-reduced-motion: no-preference) {
  .needs .need { animation: lb-rise 0.7s var(--ease-out) both; }
  .needs .need__shape { animation: lb-settle 0.6s var(--ease-out) both; }
  .needs li:nth-child(1) .need { animation-delay: 0.15s; } .needs li:nth-child(2) .need { animation-delay: 0.24s; } .needs li:nth-child(3) .need { animation-delay: 0.33s; } .needs li:nth-child(4) .need { animation-delay: 0.42s; }
  .needs li:nth-child(1) .need__shape { animation-delay: 0.45s; } .needs li:nth-child(2) .need__shape { animation-delay: 0.54s; } .needs li:nth-child(3) .need__shape { animation-delay: 0.63s; } .needs li:nth-child(4) .need__shape { animation-delay: 0.72s; }
  .act-shape { animation: lb-settle 0.8s var(--ease-out) both; animation-delay: 0.2s; }
  .err-sum { animation: lb-rise 0.35s var(--ease-out) both; }
}
@keyframes lb-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes lb-settle { from { transform: scale(0.82); } }

/* Étapes et définitions */
.steps { margin: 0; padding: 0; list-style: none; }
.step { display: grid; gap: 0.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line-strong); }
.step h3 { font-size: 1.5rem; line-height: 1.3; }
.step p { max-width: 62ch; }
@container pg (min-width: 64rem) { .step { grid-template-columns: 18rem minmax(0, 1fr); gap: 3rem; padding: 2.25rem 0; } .step h3 { font-size: 2rem; line-height: 1.2; } }
.pub { display: grid; gap: 2rem; margin: 0; }
.pub dt { font: 600 1.25rem/1.3 var(--font-display); }
.pub dd { margin-top: 0.375rem; max-width: 42ch; }
@container pg (min-width: 40rem) { .pub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; } }
.phrases { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.phrases li { max-width: 30ch; font-size: 1.375rem; line-height: 1.5; font-weight: 500; }
@container pg (min-width: 64rem) { .phrases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; } .phrases li { max-width: 34ch; font-size: 1.5rem; } }

/* Bandeau d'action */
.band { display: grid; gap: 1.25rem; margin: 3rem var(--axis) 0; padding: 2rem 1.5rem; border-radius: var(--radius-xl); background: var(--brand-soft); }
.band h2 { font-size: 1.75rem; line-height: 1.25; }
.band p { max-width: 38ch; }
.band .lb-btn { justify-self: start; }
@container pg (min-width: 64rem) { .band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem; margin-top: 0; padding: 3.5rem 4rem; } .band h2 { font-size: 2.5rem; } .band .lb-btn { justify-self: end; } }

/* Pied de page */
.ft { margin-top: 4rem; padding: 3rem var(--axis) 2rem; background: var(--surface-inverse); color: var(--ink-inverse); }
.ft h2 { font-size: 1.125rem; line-height: 1.4; color: var(--ink-inverse); }
.site .ft a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; padding-inline: 0.25rem; color: var(--ink-inverse); }
.site .ft a:hover { color: var(--ink-inverse); text-decoration-thickness: 2.5px; }
.ft :focus-visible { outline-color: var(--focus-inverse); }
.ft__cols { display: grid; gap: 2rem; }
.ft ul { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.ft__brand { font: 600 1.5rem/1 var(--font-display); }
.ft__legal { margin-top: 2rem; font-size: 1rem; }
@container pg (min-width: 40rem) { .ft__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }

/* Page d'activité */
.act-hero { position: relative; margin: 1rem var(--axis) 0; padding: 2rem 1.5rem 2.5rem; overflow: hidden; border-radius: var(--radius-xl); background: var(--tint-audit); }
.act-hero h1 { max-width: 14ch; font-size: 2.25rem; line-height: 1.15; letter-spacing: -0.01em; }
.act-hero .lead { max-width: 32ch; }
.act-shape { display: grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: 1.5rem; border-radius: 26%; background: var(--surface-raised); color: var(--ink); }
.act-shape svg { width: 52%; height: 52%; }
.act-hero--web { background: var(--tint-web); } .act-hero--automation { background: var(--tint-automation); } .act-hero--ai { background: var(--tint-ai); }
.act-shape--web { border-radius: 50%; } .act-shape--automation { border-radius: 50% 50% 8% 8% / 50% 50% 8% 8%; } .act-shape--ai { border-radius: 999px; }
.site .act-hero .link-ink { color: var(--ink); }
@container pg (min-width: 64rem) { .act-hero { padding: 4.5rem 4rem; } .act-hero h1 { max-width: 16ch; font-size: 3.5rem; line-height: 1.1; } .act-shape { position: absolute; right: 4rem; bottom: 4rem; width: 11rem; height: 11rem; margin: 0; } }

/* Contact */
.contact { display: grid; gap: 2.5rem; padding: 1rem var(--axis) 0; }
.contact h1 { max-width: 14ch; font-size: 2.5rem; line-height: 1.15; letter-spacing: -0.01em; }
.form { display: grid; gap: 1.5rem; margin-top: 2rem; }
.form .note { color: var(--ink-muted); }
.err-sum { padding: 1.25rem 1.25rem 1.25rem 1.5rem; border: 2px solid var(--danger-fg); border-radius: var(--radius-lg); background: var(--surface-raised); }
.err-sum h2 { margin-bottom: 0.5rem; font-size: 1.25rem; line-height: 1.3; color: var(--danger-fg); }
.err-sum ul { display: grid; gap: 0.25rem; margin: 0; padding-left: 1.25rem; }
.err-sum a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.aside { padding: 1.75rem 1.5rem; border-radius: var(--radius-xl); background: var(--surface-sunken); }
.aside h2 { font-size: 1.5rem; line-height: 1.3; }
.aside p { margin-top: 0.75rem; max-width: 36ch; }
.consent { display: grid; gap: 0.25rem; }
.consent .lb-choice { align-items: center; min-height: 2.75rem; }
.site .lb-choice input[aria-invalid="true"] { border-color: var(--danger-fg); border-width: 2px; }
.site .hd__cta { font-size: 1rem; }
@container pg (min-width: 64rem) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 5rem; padding-top: 2rem; align-items: start; } .contact h1 { font-size: 3.5rem; line-height: 1.1; max-width: 12ch; } .form { margin-top: 2.5rem; } .aside { margin-top: 1rem; padding: 2.5rem; } }

/* Accueil : en-tête en deux colonnes sur grand écran, la liste de situations remplit la colonne de droite */
@container pg (min-width: 64rem) {
  .top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 5rem; align-items: center; padding: 0 var(--axis); }
  .top > section { padding-inline: 0; }
  .top .hero { padding-block: 4.5rem; }
  .top .hero h1 { max-width: 13ch; font-size: 3.5rem; line-height: 1.08; }
  .top .sec { padding-block: 4.5rem; }
  .top .sec h2 { font-size: 1.75rem; line-height: 1.25; }
  .top .sec .sec__body { margin-top: 1.5rem; }
  .top .need { grid-template-columns: 3.5rem 1fr 1.5rem; grid-template-areas: "shape text arrow" "shape act arrow"; column-gap: 1.5rem; min-height: 6rem; padding: 1.125rem 1.5rem; }
  .top .need__text { font-size: 1.375rem; line-height: 1.4; }
  .top .need__name { font-size: 1.125rem; }
  .top .need__desc { display: none; }
}

@media (prefers-contrast: more) { .site { --line: var(--line-strong); } .site .lb-input, .site .lb-select, .site .lb-textarea { border-width: 2px; } .need, .band, .act-hero, .aside { outline: 1px solid var(--ink); outline-offset: -1px; } }
@media (forced-colors: active) { .need, .band, .act-hero, .aside { border: 1px solid CanvasText; } .shape, .act-shape { forced-color-adjust: none; background: CanvasText; } }

/* Amélioration progressive du menu mobile : sans JavaScript le menu reste déplié et le bouton est masqué */
html:not(.js) .menu-btn { display: none; }
.js .menu:not(.is-open) { display: none; }
.menu-btn .i-x { display: none; }
.menu-btn[aria-expanded="true"] .i-x { display: inline; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }
@container pg (min-width: 64rem) { .menu { display: none; } }

/* Menu : sous-entrée de Web (motif de navigation à bouton d'affichage) */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__toggle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-left: -0.5rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; transition: background-color 0.2s var(--ease-out); }
.nav__toggle:hover { background: var(--surface-sunken); }
.nav__toggle svg { width: 1.25rem; height: 1.25rem; transition: transform 0.2s var(--ease-out); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub { display: none; position: absolute; top: 100%; left: 0; z-index: 10; min-width: 15rem; margin: 0; padding: 0.5rem; list-style: none; border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-float); }
.has-sub.is-open .nav__sub { display: block; }
html:not(.js) .has-sub:hover .nav__sub, html:not(.js) .has-sub:focus-within .nav__sub { display: block; }
html:not(.js) .nav__toggle { display: none; }
.nav__sub .nav__link { display: flex; width: 100%; }

/* Repères de contenu à valider : visibles tant que Libratis n'a pas confirmé le texte */
.ex, .todo { display: inline; padding: 0 0.375rem; border: 1px dashed var(--ink); border-radius: 6px; font-size: 0.9375em; font-weight: 600; }
.todo { border-style: solid; }

/* Cas d'usage : situation, ce qui s'enchaîne, ce qui reste humain */
.cas-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.cas { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface-raised); }
.cas h3 { font-size: 1.375rem; line-height: 1.3; }
.cas__rows { display: grid; gap: 1rem; margin: 1rem 0 0; }
.cas__rows > div { padding: 0; }
.cas dt { font: 600 1rem/1.5 var(--font-display); }
.cas dd { margin: 0.125rem 0 0; max-width: 42ch; }
.cas__rows > div:last-child { padding: 1rem; border-radius: var(--radius-md); background: var(--brand-soft); }
@container pg (min-width: 64rem) { .cas { padding: 2rem; } .cas h3 { font-size: 1.5rem; } .cas__rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } .cas__rows > div:last-child { padding: 1.25rem; } }

/* Carte projet (liste des références et aperçu sur la page Web) */
.projet-grid { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@container pg (min-width: 40rem) { .projet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container pg (min-width: 64rem) { .projet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.projet-carte { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; height: 100%; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface-raised); transition: transform 0.22s var(--ease-out); }
.projet-carte:hover { transform: translateY(-2px); }
.projet-carte h3 { font-size: 1.375rem; line-height: 1.3; }
.projet-carte .lb-badge { margin: 0; }
.projet-carte p { max-width: 38ch; }
.site .projet-carte__lien { margin-top: auto; display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
.site .projet-carte__lien::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.site .projet-carte__lien:focus-visible { outline: none; }
.projet-carte:has(.projet-carte__lien:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Fiche projet : métadonnées, sections, captures, projet précédent et suivant */
.projet__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem 2rem; margin: 1.5rem 0 0; }
.projet__meta dt { font: 600 1rem/1.5 var(--font-display); }
.projet__meta dd { margin: 0; }
.projet__section { display: grid; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--line-strong); }
.projet__section h2 { font-size: 1.75rem; line-height: 1.25; }
.projet__section > div { max-width: 62ch; }
.projet__section > div > * + * { margin-top: 1rem; }
@container pg (min-width: 64rem) { .projet__section { grid-template-columns: 18rem minmax(0, 1fr); gap: 3rem; padding: 2.5rem 0; } .projet__section h2 { font-size: 2rem; line-height: 1.2; } }
.projet__figures { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.projet__figures figure { margin: 0; }
.projet__figures img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-lg); background: var(--surface-sunken); }
.projet__figures figcaption { margin-top: 0.5rem; }
.projet-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding: 1.5rem 0 0; }
.projet-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .nav__toggle svg, .projet-carte { transition: none; } .projet-carte:hover { transform: none; } }

/* Ajustements AAA des composants du design system utilisés sur le site */
.site .lb-empty__text { color: var(--ink); }
.site .lb-badge { font-size: 0.9375rem; }

/* Menu mobile : Références sous Web */
.menu__sub { margin: 0; padding: 0 0 0 1.25rem; list-style: none; }
.site .menu__link--sub { min-height: 3rem; font-size: 1.125rem; font-weight: 600; }

/* Page IA : plan de la charte, liste simple */
.charte, .plain { max-width: 62ch; margin: 1rem 0 0; padding-left: 1.5rem; }
.charte li, .plain li { margin-top: 0.75rem; padding-left: 0.25rem; }
.sec__body > h3 { margin-top: 2rem; font-size: 1.375rem; line-height: 1.3; }

/* Pages utilitaires : liste de liens, message d'erreur d'envoi */
.liens-liste { display: grid; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.liens-liste a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
.send-err { padding: 1.25rem 1.25rem 1.25rem 1.5rem; border: 2px solid var(--danger-fg); border-radius: var(--radius-lg); background: var(--surface-raised); }
.send-err h2 { margin-bottom: 0.5rem; font-size: 1.25rem; line-height: 1.3; color: var(--danger-fg); }

/* Carrousel : défilement natif avec accroche, boutons ajoutés par JavaScript, aucune lecture automatique */
.carousel { min-width: 0; max-width: 100%; margin-top: 2rem; }
.carousel__track { box-sizing: border-box; width: 100%; display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius-lg); }
.carousel__track:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.carousel__slide { box-sizing: border-box; flex: 0 0 100%; padding-right: 1rem; scroll-snap-align: start; }
.carousel__slide figure { margin: 0; }
.carousel__ph { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--ink); font: 600 1.25rem/1.4 var(--font-display); }
.carousel__slide img, .carousel__slide video { display: block; width: 100%; height: auto; max-height: 26rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-raised); }
.carousel__slide figcaption { margin-top: 0.75rem; max-width: 62ch; }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.carousel__count { margin: 0; font-weight: 600; }
.carousel__bar .lb-btn { min-height: 2.75rem; }
@media (prefers-reduced-motion: no-preference) { .carousel__track { scroll-behavior: smooth; } }

/* Filtre de la liste de projets : boutons à bascule, affiché par JavaScript */
.filtre { margin: 1.5rem 0; }
.filtre__titre { margin: 0 0 0.5rem; font-weight: 600; }
.filtre__btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filtre__btns .lb-btn { min-height: 2.75rem; }
.filtre__btns .lb-btn[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.filtre__etat { margin: 0.5rem 0 0; }

/* Page projet : sur grand écran, texte et carrousel côte à côte. L'ordre du DOM reste texte puis carrousel ; sous 64 rem tout s'empile. */
@container pg (min-width: 64rem) {
  .act-hero--projet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 3rem; align-items: start; }
  .act-hero--projet > * { grid-column: 1; }
  .act-hero--projet > .carousel { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
  .act-hero--projet h1 { max-width: none; font-size: 2.5rem; }
  .act-hero--projet .carousel__slide img, .act-hero--projet .carousel__slide video { max-height: none; }
}
@media (forced-colors: active) { .shape, .act-shape { color: Canvas; } }

/* Pages légales : texte courant en une colonne */
.legal { padding-top: 2rem; }
.legal__sec { max-width: 62ch; padding: 1.5rem 0; border-top: 1px solid var(--line-strong); }
.legal__sec h2 { font-size: 1.5rem; line-height: 1.3; }
.legal__sec > * + * { margin-top: 0.75rem; }
.legal__sec a { display: inline-block; padding-block: 0.625rem; }

/* Carte projet avec image mise en avant : l'image est décorative (le titre suffit), fondue dans le fond de la carte.
   Le texte reste sous la zone d'image, sur le fond uni de la carte : contraste 7:1 garanti quelle que soit l'image. */
.projet-carte--image { padding-top: 10.5rem; overflow: hidden; }
.projet-carte__fond { position: absolute; inset: 0 0 auto 0; z-index: 0; height: 10rem; margin: 0; pointer-events: none; }
.projet-carte__fond img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.projet-carte__fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0, transparent 25%, var(--surface-raised) 100%); }
.projet-carte--image > :not(.projet-carte__fond) { position: relative; z-index: 1; }
@media (forced-colors: active) { .projet-carte__fond { display: none; } .projet-carte--image { padding-top: 1.5rem; } }
