/* adesio.fr — mise en page du site. Les couleurs, la typographie et les boutons viennent de
   adesio.css (Adesio Design System v2) ; ce fichier ne fait que placer les éléments. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--ads-canvas); color: var(--ads-text-strong); font-family: var(--ads-font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ads-surface); padding: var(--ads-space-3) var(--ads-space-4); z-index: 100; }
.skip:focus { left: var(--ads-space-4); top: var(--ads-space-4); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ads-chrome-bar, rgba(247, 248, 250, .92)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--ads-border-subtle); }
.site-header .bar { max-width: var(--ads-container); margin: 0 auto; padding: var(--ads-space-3) var(--ads-space-6); display: flex; align-items: center; gap: var(--ads-space-6); }
.site-header .logo { display: flex; align-items: center; flex-shrink: 0; }
.nav { display: flex; gap: var(--ads-space-5); flex: 1; flex-wrap: wrap; }
.nav a { font-size: var(--ads-text-6); color: var(--ads-text-muted); text-decoration: none; padding: var(--ads-space-2) 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ads-text-strong); }
.nav a[aria-current="page"] { font-weight: var(--ads-weight-semibold); }
.actions { display: flex; align-items: center; gap: var(--ads-space-3); flex-shrink: 0; margin-left: auto; }

/* Haut de page */
.hero { max-width: var(--ads-content); margin: 0 auto; padding: var(--ads-space-16) var(--ads-space-6) var(--ads-space-10); }
.hero h1 { margin: var(--ads-space-3) 0 0; font-size: var(--ads-text-1); line-height: 1.08; text-wrap: balance; max-width: 22ch; }
.hero .lead { margin: var(--ads-space-6) 0 0; max-width: 62ch; font-size: var(--ads-text-4); line-height: 1.5; color: var(--ads-text-body); }
.hero-cta { margin: var(--ads-space-8) 0 0; display: flex; align-items: center; gap: var(--ads-space-4); flex-wrap: wrap; }
.hero-cta .note { font-size: var(--ads-text-6); color: var(--ads-text-muted); }
.crumbs { font-size: var(--ads-text-6); color: var(--ads-text-muted); margin-bottom: var(--ads-space-6); }
.crumbs a { color: var(--ads-text-muted); }

/* Texte */
.prose { max-width: var(--ads-content); margin: 0 auto; padding: 0 var(--ads-space-6) var(--ads-space-16); }
.prose > section { padding: var(--ads-space-10) 0; border-top: 1px solid var(--ads-border-subtle); display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); column-gap: var(--ads-space-10); }
.prose > section > h2 { grid-column: 1; grid-row: 1 / span 20; margin: 0; font-size: var(--ads-text-3); line-height: 1.2; text-wrap: balance; }
.prose > section > :not(h2) { grid-column: 2; }
.prose p, .prose li { font-size: var(--ads-text-5); line-height: 1.65; color: var(--ads-text-body); }
.prose p { margin: 0 0 var(--ads-space-4); max-width: 68ch; }
.prose ul, .prose ol { margin: 0 0 var(--ads-space-4); padding-left: 1.25em; max-width: 68ch; }
.prose li { margin-bottom: var(--ads-space-3); }
.prose li::marker { color: var(--ads-accent-ink); font-weight: var(--ads-weight-semibold); }
.prose strong { color: var(--ads-text-strong); font-weight: var(--ads-weight-semibold); }
.prose a { color: var(--ads-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--ads-font-mono); font-size: .9em; background: var(--ads-surface-well); padding: 2px 6px; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--ads-text-6); margin-bottom: var(--ads-space-4); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--ads-space-3); border-bottom: 1px solid var(--ads-border-subtle); line-height: 1.5; }
.prose th { font-family: var(--ads-font-mono); font-size: var(--ads-text-7); text-transform: uppercase; letter-spacing: .06em; color: var(--ads-text-muted); }

.qa { margin-bottom: var(--ads-space-6); }
.qa h3 { margin: 0 0 var(--ads-space-2); font-size: var(--ads-text-5); line-height: 1.4; }
.more, .updated { font-size: var(--ads-text-6); }
.updated { color: var(--ads-text-muted); margin-top: var(--ads-space-6); }
.related ul { list-style: none; padding: 0; }

.legal { padding-top: var(--ads-space-16); }
.legal h1 { font-size: var(--ads-text-2); margin: 0 0 var(--ads-space-4); }
.legal h2 { font-size: var(--ads-text-4); margin: var(--ads-space-8) 0 var(--ads-space-3); }
.legal .meta { color: var(--ads-text-muted); font-size: var(--ads-text-6); }

/* Appel à l'action */
.cta-band { max-width: var(--ads-content); margin: 0 auto var(--ads-space-16); padding: var(--ads-space-12) var(--ads-space-8); background: var(--ads-surface); border: 1px solid var(--ads-border-default); border-radius: var(--ads-radius-surface, 16px); text-align: center; }
.cta-band h2 { margin: 0; font-size: var(--ads-text-2); }
.cta-band p { margin: var(--ads-space-3) auto var(--ads-space-6); color: var(--ads-text-body); font-size: var(--ads-text-5); }
.cta-band .alt { margin: var(--ads-space-5) 0 0; font-size: var(--ads-text-6); color: var(--ads-text-muted); }
.cta-band .alt a { color: var(--ads-text-strong); }

/* Pied de page */
.site-footer { background: var(--ads-canvas-deep); border-top: 1px solid var(--ads-border-subtle); padding: var(--ads-space-12) var(--ads-space-6) var(--ads-space-6); }
.site-footer .cols { max-width: var(--ads-container); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--ads-space-10); }
.site-footer p, .site-footer address { font-size: var(--ads-text-6); line-height: 1.6; color: var(--ads-text-muted); font-style: normal; margin: var(--ads-space-3) 0 0; max-width: 36ch; }
.site-footer nav { display: flex; flex-direction: column; gap: var(--ads-space-3); }
.site-footer nav h2 { margin: 0 0 var(--ads-space-1); font-family: var(--ads-font-mono); font-size: var(--ads-text-7); letter-spacing: .08em; text-transform: uppercase; color: var(--ads-text-strong); }
.site-footer a { font-size: var(--ads-text-6); color: var(--ads-text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ads-text-strong); }
.site-footer .copy { max-width: var(--ads-container); margin: var(--ads-space-10) auto 0; padding-top: var(--ads-space-5); border-top: 1px solid var(--ads-border-subtle); font-size: var(--ads-text-7); }

@media (max-width: 900px) {
  .nav { display: none; }
  .prose > section { display: block; }
  .prose > section > h2 { margin-bottom: var(--ads-space-5); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: var(--ads-space-10); }
}
@media (max-width: 520px) {
  .login { display: none; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .hero-cta .ads-btn, .cta-band .ads-btn { width: 100%; }
}
