/* Page « Nos engagements » en cartes (maquette validée le 11 novembre 2026,
   docs/maquettes/engagements-cartes-pied-de-page-v1.html). Le menu fixe, la police
   et les couleurs viennent de opening.css. */
.engagement-page { padding: calc(var(--header-height) + clamp(40px, 7vh, 96px)) var(--opening-gutter) clamp(64px, 8vw, 120px); }
.engagement-page section[id] { scroll-margin-top: calc(var(--header-height) + 40px); }

/* Ouverture : retour, titre, accroche et sommaire en pastilles. */
.eng-hero { max-width: 1180px; margin-bottom: clamp(40px, 5vw, 72px); }
.eng-back { display: inline-block; margin-bottom: 26px; color: var(--opening-accent); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.eng-kicker { display: block; margin: 0 0 18px; font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--opening-accent); }
.eng-title { margin: 0 0 26px; font-size: clamp(40px, 5.4vw, 88px); font-weight: 550; line-height: 1.02; letter-spacing: -.055em; }
.eng-lead { max-width: 62ch; margin: 0 0 30px; font-size: clamp(18px, 1.5vw, 23px); font-weight: 420; line-height: 1.55; letter-spacing: -.01em; }
.eng-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.eng-toc a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid rgb(23 59 92 / 22%); border-radius: 999px; background: #fff; color: var(--opening-accent); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.eng-toc a:hover { background: var(--opening-soft); border-color: var(--opening-accent); }
.eng-toc a:focus-visible { outline: 2px solid var(--opening-accent); outline-offset: 3px; }
.eng-toc span { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--opening-muted); }

/* Cartes : 01, 02 et 05 en pleine largeur (titre à gauche, texte à droite),
   03 et 04 côte à côte. */
.eng-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; max-width: 1400px; }
.eng-card { display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 3vw, 44px); border: 1px solid var(--opening-line); border-radius: 24px; background: #fff; box-shadow: 0 18px 40px -32px rgb(23 59 92 / 50%); }
.eng-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, .4fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 90px); }
.eng-card-intro { position: sticky; top: calc(var(--header-height) + 24px); display: flex; flex-direction: column; gap: 18px; }
.eng-card-body { display: flex; flex-direction: column; gap: 18px; }
.eng-card-head { display: flex; align-items: center; gap: 14px; }
.eng-card-num { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--opening-soft); color: var(--opening-accent); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.eng-card-label { font-size: 11.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--opening-muted); }
.eng-card-title { margin: 0; font-size: clamp(26px, 2.4vw, 38px); font-weight: 550; line-height: 1.1; letter-spacing: -.04em; }
.eng-card p { margin: 0; font-size: 16.5px; line-height: 1.65; }
.eng-card strong { font-weight: 650; }
.eng-card .eng-detail { padding: 14px 16px; border-radius: 14px; background: #f3f5f7; color: var(--opening-muted); font-size: 15px; }
.eng-card .eng-promise { padding: 16px 18px; border-left: 3px solid var(--opening-accent); border-radius: 0 14px 14px 0; background: var(--opening-soft); }
.eng-promise strong { color: var(--opening-accent); }

/* Liens vers la politique et adresse de contact : soulignés, renforcés au survol. */
.eng-inline-link, .eng-mail-link { color: var(--opening-accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.eng-inline-link:hover, .eng-mail-link:hover { text-decoration-thickness: 2px; }

/* Bandeau final, avec le bouton vers la politique de confidentialité. */
.eng-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; max-width: 1400px; margin-top: clamp(16px, 2vw, 28px); padding: clamp(28px, 3.5vw, 52px); border-radius: 24px; background: var(--opening-accent); color: #fff; }
.eng-cta .eng-kicker { color: rgb(255 255 255 / 80%); }
.eng-cta-title { margin: 0 0 12px; font-size: clamp(26px, 2.6vw, 40px); font-weight: 550; line-height: 1.1; letter-spacing: -.04em; }
.eng-cta p { max-width: 60ch; margin: 0; font-size: 16px; line-height: 1.6; color: rgb(255 255 255 / 90%); }
.eng-cta-button { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 14px 24px; border-radius: 14px; background: #fff; color: var(--opening-accent); font-size: 16px; font-weight: 650; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.eng-cta-button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgb(0 0 0 / 50%); }
.eng-cta-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.eng-cta-button span { transition: transform .2s ease; }
.eng-cta-button:hover span { transform: translateX(3px); }

/* Apparition en fondu au défilement. engagement.js pose .reveal-ready puis
   .is-visible : sans JavaScript, ou avec les animations réduites, tout reste affiché.
   Le fondu est réservé à l'écran : à l'impression ou en PDF, tout est affiché,
   même les cartes pas encore atteintes par le défilement. Un bloc qui reçoit le
   focus clavier est affiché aussitôt. */
@media screen and (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
  .reveal-ready [data-reveal].is-visible, .reveal-ready [data-reveal]:focus-within { opacity: 1; transform: none; }
}
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .eng-toc a, .eng-cta-button, .eng-cta-button span { transition: none; }
  .eng-cta-button:hover, .eng-cta-button:hover span { transform: none; }
}

@media (max-width: 900px) {
  .eng-grid { grid-template-columns: 1fr; }
  .eng-card--wide { grid-template-columns: 1fr; row-gap: 18px; }
  .eng-card-intro { position: static; }
}
@media (max-width: 700px) {
  .eng-card { border-radius: 20px; }
  .eng-card p { font-size: 16px; }
  .eng-cta-button { width: 100%; justify-content: center; }
}
