/* En-tête, pied de page et bases visuelles des pages servies par l'application
   (À propos, Évaluation, Calculateur, Blog), alignés sur la vitrine statique. */
@font-face { font-family: "PP Neue Montreal"; src: url("/assets/fonts/pp-neue-montreal-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("/assets/fonts/pp-neue-montreal-book.woff2") format("woff2"); font-weight: 350; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("/assets/fonts/pp-neue-montreal-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --prune-encre: #431C43;
  --paper: #F2F0EA;
  --paper-tint: #E9E5DC;
  --font-sans: "PP Neue Montreal", "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}
body { background: var(--paper); color: #2B2129; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }

/* Grain de papier, comme sur la vitrine */
.paper-grain { position: relative; }
.paper-grain::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.25 0 0 0 .25 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Les jonctions de papier utilisent des couleurs explicites dans l'application */
.app-shell .paper-join { --surface: var(--paper); }
.app-shell .paper-join--soft { --surface: var(--paper-tint); }
.app-shell .paper-join.xp-join--band { --surface: var(--prune-encre); }
.app-shell .xp-section--tint { background: var(--paper-tint); }

/* En-tête */
.sc-header { position: sticky; top: 0; z-index: 40; background: rgb(242 240 234 / .95); backdrop-filter: blur(12px); border-bottom: 1px solid rgb(215 210 200 / .6); }
.sc-header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding: 10px 24px; }
@media (min-width: 768px) { .sc-header-row { padding-inline: 40px; } }
@media (min-width: 1024px) { .sc-header-row { padding-inline: 4%; min-height: 100px; } }
.sc-logo img { display: block; height: 36px; width: auto; }
@media (min-width: 1280px) { .sc-logo img { height: 54px; } }
.sc-nav { display: none; align-items: center; gap: 32px; }
@media (min-width: 1280px) { .sc-nav { display: flex; } }
@media (min-width: 1536px) { .sc-nav { gap: 56px; } }
.sc-nav a { display: flex; align-items: baseline; gap: 8px; padding-block: 12px; font-size: 26px; font-weight: 400; color: #2B2129; text-decoration: none; transition: color .2s; }
.sc-nav a:hover, .sc-nav a[aria-current="page"] { color: var(--prune-encre); }
.sc-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 10px; text-decoration-thickness: 1px; }
.sc-nav a span { align-self: flex-start; padding-top: 4px; font-family: var(--font-mono); font-size: 10px; color: #6A5D68; }
.sc-actions { display: flex; align-items: center; gap: 24px; }
.sc-contact { display: none; align-items: center; gap: 10px; font-size: 16px; color: var(--prune-encre); text-decoration: none; }
.sc-contact:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1024px) { .sc-contact { display: inline-flex; } }
.sc-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; border: 0; background: var(--prune-encre); color: #F2F0EA; cursor: pointer; }
.sc-menu-btn:focus-visible { outline: 2px solid var(--prune-encre); outline-offset: 3px; }
.sc-menu { position: absolute; right: 24px; top: 100%; min-width: min(340px, calc(100vw - 48px)); padding: 12px 24px 22px; background: var(--paper); border: 1px solid #CFC7CA; box-shadow: 0 10px 20px #42283d20; }
.sc-menu a { display: block; padding: 12px 2px; border-bottom: 1px solid #CFC7CA; font-size: 19px; color: var(--prune-encre); text-decoration: none; }
.sc-menu a:focus-visible { outline: 2px solid var(--prune-encre); outline-offset: 2px; }

/* Bandeau d'appel à l'action, comme sur la vitrine */
.sc-closing { position: relative; isolation: isolate; overflow: hidden; background: #B5C1A9; color: var(--prune-encre); }
.sc-closing > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.sc-closing-inner { max-width: 1024px; margin: 0 auto; padding: 96px 24px; text-align: center; }
@media (min-width: 768px) { .sc-closing-inner { padding-block: 128px; } }
.sc-closing h2 { margin: 0; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.12; font-weight: 400; letter-spacing: -.02em; color: var(--prune-encre); }
.sc-closing a { display: inline-flex; align-items: center; gap: 14px; height: 56px; margin-top: 36px; padding: 0 28px; border-radius: 999px; background: var(--prune-encre); color: #F2F0EA; font-size: 16px; text-decoration: none; }

/* Pied de page */
.sc-footer { background: var(--prune-encre); color: #F2F0EA; container-type: inline-size; }
.sc-footer-grid { display: grid; gap: 56px; padding: 64px 24px; }
@media (min-width: 768px) { .sc-footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 64px; padding: 96px 6%; } }
.sc-footer-logo { width: 240px; height: auto; }
@media (min-width: 768px) { .sc-footer-logo { width: 300px; } }
.sc-footer .sc-mono { margin: 0 0 24px; font-family: var(--font-mono); font-size: 12px; color: #B9A3D0; }
.sc-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.sc-footer ul a, .sc-footer-mail { font-size: 20px; color: #F2F0EA; text-decoration: none; }
.sc-footer ul a:hover { color: #A9B9A1; }
.sc-footer-mail { text-decoration: underline; text-underline-offset: 4px; }
.sc-footer small { display: block; margin-top: 8px; font-size: 14px; color: rgb(242 240 234 / .75); }
.sc-footer-bottom { padding: 0 24px 32px; }
@media (min-width: 768px) { .sc-footer-bottom { padding-inline: 6%; } }
.sc-signature { margin: 0; padding-bottom: 56px; font-size: 44px; line-height: 1; letter-spacing: -.035em; }
@media (min-width: 768px) { .sc-signature { font-size: 9.4cqw; white-space: nowrap; } }
@media (min-width: 768px) { html[lang="fr"] .sc-signature { font-size: 8.4cqw; } }
.sc-footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgb(242 240 234 / .2); font-family: var(--font-mono); font-size: 11px; }
.sc-footer-legal a { color: inherit; }

/* Graisses alignées sur la vitrine : Book pour la navigation et les grands titres, Medium pour les boutons */
.sc-nav a, .sc-closing h2, .sc-signature { font-weight: 350; }
.sc-contact, .sc-closing a, .sc-menu a { font-weight: 500; }

/* Sélecteur de langue, comme sur la vitrine */
.sc-lang { display: flex; align-items: center; gap: 4px; }
.sc-lang button { height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: none; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: #6A5D68; cursor: pointer; }
.sc-lang button:hover { background: #E9E5DC; color: var(--prune-encre); }
.sc-lang button[aria-pressed="true"] { color: var(--prune-encre); text-decoration: underline; text-underline-offset: 4px; }
.sc-lang button:focus-visible { outline: 2px solid var(--prune-encre); outline-offset: 1px; }
.sc-lang-note { margin: 0; padding: 10px 24px; border-top: 1px solid rgb(215 210 200 / .6); background: #E9E5DC; font-size: 14px; color: #4A3E48; text-align: center; }
