/* St-Pierre Moteur — feuille propre au site.
   Atelier de moteurs : titres Oswald condensés en capitales, filets bleus de la marque, lecture en colonne centrale. */

body { background: var(--c-surface); }

/* ---------- En-tête ---------- */
.wc-header { border-bottom: 3px solid var(--c-brand); }
.wc-header__bar { gap: 0.75rem; }
.wc-brand img { height: 56px; width: 56px; border-radius: var(--radius-lg); }
.wc-nav { margin-left: auto; }
.wc-nav__list a:not(.wc-btn) { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.98rem; }
.x-header-cta { flex: none; }
.x-cta-short { display: none; }

@media (max-width: 899.98px) {
  .wc-header { position: relative; }
  .wc-header__bar { gap: 0.6rem; }
  .wc-brand img { height: 48px; width: 48px; }
  .wc-nav { margin-left: 0; }
  .x-header-cta { margin-left: auto; padding-inline: 0.9em; }
  .x-cta-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .x-cta-short { display: inline; }
  .wc-nav__toggle { padding-inline: 0.75rem; }
}

/* ---------- Titres ---------- */
h1, h2, h3 { line-height: 1.18; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1, h2, h3 { color: var(--c-ink); }
.wc-section--dark h2, .wc-section--dark h3 { color: var(--c-on-dark); }
.wc-eyebrow { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.14em; }
.wc-eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; margin-right: 0.6rem; vertical-align: middle; background: var(--c-brand); }

/* ---------- Héros typographique (accueil) ---------- */
.x-hero { position: relative; overflow: hidden; background: var(--c-surface-alt); }
.x-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--c-brand) 0 48px, transparent 48px 60px); opacity: 0.35; }
.x-hero h1 { font-weight: 700; font-size: clamp(2.3rem, 1.2rem + 5vw, 5rem); line-height: 1.2; letter-spacing: 0.01em; max-width: 20ch; margin-bottom: 0.4em; }
.x-nowrap { white-space: nowrap; }
.x-hero .wc-lead { max-width: 54ch; color: var(--c-ink); }

/* En-tête des pages intérieures */
.x-pagehead { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.x-pagehead h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); max-width: 20ch; }
.x-pagehead .wc-lead { max-width: 58ch; margin-bottom: 0; }

@media (max-width: 559.98px) {
  .wc-section .wc-actions .wc-btn, .x-hero .wc-actions .wc-btn { width: 100%; }
}

/* Colonne unique alignée sur le bord gauche de l'en-tête ; seule la mesure du texte est limitée */
.wc-container--narrow { max-width: 1180px; }
.wc-container--narrow > :where(p, ul, ol, .wc-section-head) { max-width: 820px; }
.wc-container--narrow > .x-specs { max-width: none; }
.x-legal > * { max-width: 820px; }

/* ---------- Spécialités : liste numérotée éditoriale ---------- */
.x-specs { list-style: none; margin: 0; padding: 0; counter-reset: spec; border-top: 2px solid var(--c-ink); }
.x-specs li { counter-increment: spec; display: grid; grid-template-columns: 4.5rem 1fr; gap: 0 1.25rem; align-items: baseline;
  padding-block: clamp(1.25rem, 1rem + 1vw, 1.9rem); border-bottom: 1px solid rgba(0, 0, 0, 0.14); max-width: none; }
.x-specs li::before { content: counter(spec, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); line-height: 1; color: var(--c-brand-ink); }
.x-specs h3 { margin: 0 0 0.3em; }
.x-specs p { margin: 0; color: var(--c-muted); }

@media (max-width: 479.98px) {
  .x-specs li { grid-template-columns: 1fr; }
  .x-specs li::before { grid-row: auto; margin-bottom: 0.4rem; font-size: 1.75rem; }
}

/* ---------- Moteurs et applications ---------- */
.x-engines { align-items: center; }
.x-emblem { margin: 0; justify-self: center; width: 100%; max-width: 420px; }
.x-emblem img { width: 100%; aspect-ratio: 950 / 1000; object-fit: cover; object-position: 50% 50%;
  border-radius: var(--radius-lg); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 18px 40px -24px rgba(var(--c-dark-rgb), 0.55); }
.x-statement { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.18; max-width: 14ch; margin-bottom: 0.8em; }
.x-uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.x-uses li { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.12rem;
  color: var(--c-ink); border-left-width: 4px; padding-block: 0.45rem; }

/* ---------- Appel final ---------- */
.x-cta .wc-container--narrow { text-align: left; }
.x-cta h2 { max-width: 28ch; }
.x-cta p { color: var(--c-on-dark-muted); font-size: 1.1rem; }
.x-cta .wc-actions { margin-top: 1.5rem; }

/* ---------- Contact ---------- */
.x-contact { align-items: start; }
@media (min-width: 860px) { .x-contact__info { position: sticky; top: 2rem; } }
.x-contact__info h2, .x-formcard h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); }
.x-contact__info .wc-contact { padding: 1.25rem 0; border-top: 2px solid var(--c-ink); border-bottom: 1px solid rgba(0, 0, 0, 0.14); margin-bottom: 1.25rem; }
.x-contact__info .wc-contact a { overflow-wrap: anywhere; }
.x-contact__sub { font-size: 1.1rem; letter-spacing: 0.06em; margin-top: 0.5rem; }
.x-contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.x-contact__list li { padding-left: 1rem; border-left: 3px solid var(--c-brand); color: var(--c-ink); }
.x-formcard { background: var(--c-surface-alt); border-top: 4px solid var(--c-brand); border-radius: var(--radius-lg); padding: clamp(1.25rem, 0.9rem + 2vw, 2.5rem); }
.x-formcard .wc-form { max-width: none; }
.x-formcard .wc-form__row { align-items: start; }
.wc-field__hint { font-size: 1rem; line-height: 1.5; color: #4b5563; max-width: none; text-wrap: pretty; }
.x-formcard .wc-field__hint { color: #4b5563; }
@media (max-width: 479.98px) {
  .x-formcard { padding: 1.1rem; }
  .x-formcard [type="submit"] { width: 100%; }
}

/* ---------- Politique ---------- */
.x-legal h2 { font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem); margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(0, 0, 0, 0.14); }
.x-legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Pied de page ---------- */
.wc-footer { border-top: 4px solid var(--c-brand); }
.wc-footer h2 { font-weight: 600; }
.x-footer-brand img { width: 72px; height: 72px; border-radius: var(--radius-lg); margin-bottom: 1rem; }
.x-footer-brand p { color: var(--c-on-dark-muted); max-width: 30ch; }
.wc-footer ul a { overflow-wrap: anywhere; }
.wc-footer__legal { max-width: none; }
