/* Pépina — espace résidents. Tokens issus du Design System Pépina. */
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/fonts/CabinetGrotesk-Variable.ttf") format("truetype-variations");
  font-weight: 100 900; font-display: swap;
}
:root {
  --ink: #19254D; --cream: #FFF9EC; --orange: #FF621C; --blue: #6FA0FF; --yellow: #FFED47;
  --peach: #F8BB9E; --lilac: #B5AFD3; --green: #8BCD58; --grey: #AFAFAF;
  --font: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 4px; }
button, input { font-family: inherit; color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.pp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); padding: 10px 16px; border: 2px solid var(--ink); z-index: 50; }
.pp-skip:focus { left: 8px; }

.pp-bg-orange { background: var(--orange); } .pp-bg-blue { background: var(--blue); } .pp-bg-yellow { background: var(--yellow); }
.pp-bg-peach { background: var(--peach); } .pp-bg-ink { background: var(--ink); color: var(--cream); }
.pp-bg-ink a { color: var(--cream); }

.pp-eyebrow { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: 3px; }
.pp-lede { margin: 0; font-weight: 500; font-size: clamp(19px, 2vw, 24px); line-height: 1.22; letter-spacing: -0.4px; }
.pp-small { font-size: 15px; font-weight: 500; margin: 0; }
.pp-h2 { margin: 0; font-weight: 900; font-size: clamp(40px, 6vw, 80px); line-height: 0.92; letter-spacing: -1.2px; text-wrap: pretty; }
.pp-rule { height: 2px; background: var(--grey); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin: 8px 0; }

/* Boutons et liens fléchés */
.pp-btn { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; padding: 14px 24px; border: 3px solid var(--ink); background: transparent; font-size: 20px; line-height: 1; text-decoration: none; text-transform: lowercase; cursor: pointer; transition: background 200ms var(--ease), color 200ms var(--ease); }
.pp-btn:hover { background: var(--ink); color: var(--cream); }
.pp-btn:active { transform: scale(0.98); }
.pp-btn--thin { border-width: 2px; padding: 10px 18px; font-size: 18px; min-height: 44px; }
.pp-btn--yellow { background: var(--yellow); }
.pp-btn--light { border: 2px solid var(--cream); color: var(--cream); align-self: flex-start; }
.pp-btn--light:hover { background: var(--cream); color: var(--ink); }
.pp-btn.is-active { background: var(--ink); color: var(--cream); }
.pp-link-arrow { display: inline-flex; align-items: center; gap: 14px; font-size: 20px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.pp-arrow { flex: none; }
.pp-avatar { text-transform: uppercase; display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--ink); color: var(--cream); font-weight: 800; font-size: 12px; }
.pp-btn:hover .pp-avatar, .pp-btn.is-active .pp-avatar { background: var(--cream); color: var(--ink); }

/* En-tête */
.pp-header { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 16px var(--gutter); background: var(--cream); border-bottom: 2px solid var(--ink); }
.pp-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.pp-brand img { height: 32px; width: auto; }
.pp-brand span { font-weight: 700; font-size: 13px; letter-spacing: 3px; border-left: 2px solid var(--ink); padding-left: 14px; }

/* Recherche */
.pp-search { position: relative; display: flex; align-items: center; border: 3px solid var(--ink); background: var(--cream); max-width: 680px; }
.pp-search svg { flex: none; margin-left: 18px; }
.pp-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 22px; font-weight: 500; padding: 18px 14px; }
.pp-search input:focus { outline: none; }
.pp-search:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.pp-search button { align-self: stretch; border: 0; border-left: 3px solid var(--ink); background: var(--yellow); font-size: 20px; padding: 0 24px; cursor: pointer; }
.pp-search button:hover { background: var(--ink); color: var(--cream); }
.pp-search--small { flex: 1 1 280px; max-width: 480px; border-width: 2px; }
.pp-search--small input { font-size: 17px; padding: 11px 12px; }
.pp-search--small svg { margin-left: 12px; width: 18px; height: 18px; }
.pp-results { position: absolute; left: -3px; right: -3px; top: 100%; z-index: 30; background: var(--cream); border: 3px solid var(--ink); border-top: 0; max-height: 70vh; overflow: auto; }
.pp-search--small .pp-results { left: -2px; right: -2px; border-width: 2px; }
.pp-result { display: block; padding: 14px 18px; border-top: 1px solid var(--ink); text-decoration: none; }
.pp-result:hover, .pp-result.is-active { background: var(--yellow); }
.pp-result strong { display: block; font-size: 19px; font-weight: 800; line-height: 1.15; }
.pp-result span { display: block; font-size: 15px; margin-top: 4px; line-height: 1.3; }
.pp-result mark { background: var(--yellow); color: inherit; }
.pp-result.is-active mark { background: var(--cream); }
.pp-results__empty { padding: 16px 18px; border-top: 1px solid var(--ink); font-size: 17px; }
.pp-results--page { position: static; border: 0; max-height: none; margin-top: 32px; }
.pp-results--page .pp-result { border: 2px solid var(--ink); margin-bottom: -2px; padding: 22px; }
.pp-results--page .pp-result strong { font-size: 24px; }

.pp-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pp-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 2px solid var(--ink); font-weight: 500; font-size: 16px; text-decoration: none; }
.pp-chip:hover { background: var(--ink); color: var(--cream); }

/* Accueil */
.pp-hero { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--ink); }
.pp-hero__copy { flex: 999 1 560px; min-width: 0; padding: clamp(40px, 6vw, 80px) clamp(20px, 6vw, 88px) 56px; display: flex; flex-direction: column; gap: 26px; }
.pp-hero__copy h1 { margin: 0; font-weight: 900; font-size: clamp(48px, 7vw, 92px); line-height: 0.9; letter-spacing: -1.5px; }
.pp-hero__photo { flex: 1 1 320px; min-height: 360px; border-left: 2px solid var(--ink); background: #ddd url("/assets/photo-atelier-life.jpg") center / cover; }
.pp-hero--short .pp-hero__copy { padding-bottom: 48px; }
.pp-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding: 26px var(--gutter); border-bottom: 2px solid var(--ink); }
.pp-band__title { margin: 6px 0 0; font-weight: 900; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.05; }
.pp-section { padding: clamp(48px, 7vw, 88px) var(--gutter); border-bottom: 2px solid var(--ink); }
.pp-section--narrow { max-width: 980px; margin: 0 auto; border-bottom: 0; display: flex; flex-direction: column; gap: 24px; }
.pp-section__head { display: flex; flex-wrap: wrap; gap: 24px 80px; align-items: flex-end; margin-bottom: 44px; }
.pp-section__head > * { flex: 1 1 380px; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.pp-grid--staff { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 36px; }
.pp-cell { border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: background 200ms var(--ease); }
.pp-cell:hover { background: var(--yellow); }
.pp-cell h3 { margin: 0; font-weight: 900; font-size: 30px; line-height: 0.96; letter-spacing: -0.5px; }
.pp-cell__desc { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.3; }
.pp-cell__list { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: flex; flex-direction: column; gap: 9px; font-size: 17px; line-height: 1.2; }
.pp-cell__list a { text-decoration: none; }
.pp-cell__list a:hover { text-decoration: underline; }
.pp-cell--staff strong { font-size: 23px; font-weight: 900; line-height: 1; }
.pp-cell--staff span { font-size: 16px; line-height: 1.25; }
.pp-cell--staff a { font-size: 16px; }
.pp-split { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--ink); }
.pp-panel { flex: 1 1 460px; min-width: 0; padding: clamp(40px, 5vw, 64px) clamp(20px, 6vw, 80px); display: flex; flex-direction: column; gap: 18px; }
.pp-panel + .pp-panel { border-left: 2px solid var(--ink); }
.pp-panel h2 { margin: 0; font-weight: 900; font-size: clamp(38px, 4.5vw, 56px); line-height: 0.92; }
.pp-panel p { margin: 0; font-weight: 500; font-size: 20px; line-height: 1.3; }
.pp-codes { margin: 0; border: 3px solid var(--ink); background: var(--cream); }
.pp-codes div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 18px; border-bottom: 1px solid var(--ink); }
.pp-codes div:last-child { border-bottom: 0; }
.pp-codes dt { font-size: 17px; font-weight: 500; }
.pp-codes dd { margin: 0; }
.pp-reveal { border: 0; background: none; font-weight: 800; font-size: 18px; letter-spacing: 1px; min-height: 44px; cursor: pointer; text-align: right; }
.pp-reveal.is-shown { user-select: all; }

/* Fiche */
.pp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px var(--gutter); border-bottom: 2px solid var(--ink); font-size: 16px; font-weight: 500; }
.pp-crumbs a { text-decoration: underline; }
.pp-fiche { display: flex; flex-wrap: wrap; }
.pp-side { flex: 1 1 240px; max-width: 100%; padding: 36px 28px; border-right: 2px solid var(--ink); display: flex; flex-direction: column; }
.pp-side .pp-eyebrow { margin-bottom: 14px; font-size: 12px; letter-spacing: 2px; }
.pp-side a { padding: 10px 0; border-bottom: 1px solid var(--ink); font-size: 17px; line-height: 1.2; text-decoration: none; }
.pp-side a[aria-current] { background: var(--orange); font-weight: 800; padding: 10px 12px; margin: 0 -12px; }
.pp-article { flex: 999 1 560px; min-width: 0; max-width: 960px; padding: clamp(32px, 5vw, 56px) clamp(20px, 6vw, 80px) 88px; display: flex; flex-direction: column; gap: 22px; }
.pp-article > h1 { margin: 0; font-weight: 900; font-size: clamp(40px, 5.5vw, 72px); line-height: 0.92; letter-spacing: -1.2px; text-wrap: pretty; }
.pp-meta { margin: 0; font-size: 15px; font-weight: 500; }
.pp-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; font-size: 16px; }
.pp-help { margin: 0; font-size: 17px; }
@media (max-width: 820px) { .pp-side { border-right: 0; border-bottom: 2px solid var(--ink); order: 2; } }

/* Contenu Notion */
.pp-prose { font-weight: 300; font-size: 20px; line-height: 1.42; }
.pp-prose > :first-child { margin-top: 0; }
.pp-prose p { margin: 0 0 0.75em; }
.pp-prose strong { font-weight: 800; }
.pp-prose h2, .pp-prose h3, .pp-prose h4 { font-weight: 900; line-height: 1; margin: 1.4em 0 0.5em; scroll-margin-top: 90px; }
.pp-prose h2 { font-size: clamp(30px, 3.4vw, 40px); }
.pp-prose h3 { font-size: clamp(25px, 2.8vw, 32px); }
.pp-prose h4 { font-size: 23px; }
.pp-prose ul, .pp-prose ol { margin: 0 0 0.9em; padding-left: 1.3em; }
.pp-prose li { margin: 0.3em 0; }
.pp-prose a { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; }
.pp-prose a:hover { text-decoration-thickness: 2px; }
.pp-prose code { font-family: ui-monospace, Menlo, monospace; font-size: 0.85em; background: var(--yellow); padding: 1px 5px; }
.pp-prose pre { border: 2px solid var(--ink); padding: 16px; overflow-x: auto; font-size: 15px; }
.pp-prose pre code { background: none; padding: 0; }
.pp-prose blockquote { margin: 1em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ink); font-weight: 500; }
.pp-prose hr.pp-rule { margin: 1.4em 0; }
.pp-callout { margin: 1em 0; padding: 20px 24px; border: 2px solid var(--ink); font-weight: 500; }
.pp-callout > :last-child { margin-bottom: 0; }
.pp-callout--yellow { background: var(--yellow); } .pp-callout--peach { background: var(--peach); } .pp-callout--blue { background: var(--blue); }
.pp-callout--lilac { background: var(--lilac); } .pp-callout--green { background: var(--green); }
.pp-figure { margin: 1.2em 0; }
.pp-figure img { width: auto; max-height: 640px; border: 2px solid var(--ink); }
.pp-figure figcaption { font-size: 15px; font-weight: 500; margin-top: 8px; }
.pp-toggle { border: 2px solid var(--ink); margin: 0 0 -2px; }
.pp-toggle summary { cursor: pointer; padding: 16px 20px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.pp-toggle summary::after { content: "+"; font-weight: 900; }
.pp-toggle[open] summary::after { content: "–"; }
.pp-toggle summary h2, .pp-toggle summary h3, .pp-toggle summary h4 { margin: 0; display: inline; }
.pp-toggle > :not(summary) { margin-left: 20px; margin-right: 20px; }
.pp-toggle[open] { padding-bottom: 8px; }
.pp-table-wrap { overflow-x: auto; margin: 1em 0; }
.pp-table { border-collapse: collapse; width: 100%; font-size: 17px; }
.pp-table td, .pp-table th { border: 2px solid var(--ink); padding: 12px 14px; text-align: left; vertical-align: top; }
.pp-table th { font-weight: 800; background: var(--peach); }
.pp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 1em 0; }
.pp-linkcard, .pp-pagecard { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0.8em 0; padding: 18px 22px; border: 3px solid var(--ink); text-decoration: none !important; font-weight: 500; }
.pp-linkcard:hover, .pp-pagecard:hover { background: var(--yellow); }
.pp-linkcard__kind { font-weight: 700; font-size: 13px; letter-spacing: 2px; flex: none; }
.pp-linkcard__label { flex: 1; font-weight: 800; font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.pp-pagecard span { font-weight: 900; font-size: 22px; line-height: 1.05; }
.pp-todo { display: flex; gap: 12px; align-items: baseline; }
.pp-check { flex: none; width: 16px; height: 16px; border: 2px solid var(--ink); transform: translateY(2px); }
.pp-check.is-on { background: var(--ink); }

/* Connexion */
.pp-login { display: flex; flex-wrap: wrap; min-height: 100vh; }
.pp-login__brand { flex: 1 1 460px; min-width: 0; padding: clamp(32px, 5vw, 56px) clamp(20px, 6vw, 80px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; border-right: 2px solid var(--ink); }
.pp-login__brand img { height: 40px; width: auto; align-self: flex-start; }
.pp-login__brand h1 { margin: 0 0 22px; font-weight: 900; font-size: clamp(52px, 7vw, 96px); line-height: 0.88; letter-spacing: -1.5px; }
.pp-login__side { flex: 1 1 460px; min-width: 0; padding: clamp(32px, 5vw, 56px) clamp(20px, 6vw, 80px); display: flex; align-items: center; }
.pp-login__form { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 520px; }
.pp-login__form h2 { margin: 0; font-weight: 900; font-size: clamp(38px, 4.5vw, 52px); line-height: 0.92; }
.pp-login__form p { margin: 0; font-weight: 300; font-size: 19px; line-height: 1.32; }
.pp-login__form label { font-weight: 800; font-size: 18px; margin-top: 6px; }
.pp-login__form input { border: 3px solid var(--ink); background: var(--cream); font-size: 22px; font-weight: 500; padding: 16px 18px; }
.pp-login__form .pp-code { font-size: 40px; font-weight: 900; letter-spacing: 12px; text-align: center; }
.pp-login__form .pp-btn { align-self: flex-start; }
.pp-box { border: 2px solid var(--ink); padding: 14px 16px; font-size: 16px !important; font-weight: 400 !important; }
.pp-alert { background: var(--peach); border: 2px solid var(--ink); padding: 12px 16px; font-weight: 700 !important; font-size: 17px !important; }
.pp-note { background: var(--yellow); border: 2px solid var(--ink); padding: 12px 16px; font-size: 17px !important; font-weight: 500 !important; }
@media (max-width: 960px) { .pp-login__brand { border-right: 0; border-bottom: 2px solid var(--ink); } .pp-login { min-height: 0; } }

/* Cartes (profil) */
.pp-card { border: 3px solid var(--ink); }
.pp-card__head { padding: 16px 22px; border-bottom: 2px solid var(--ink); font-weight: 900; font-size: 26px; line-height: 1; }
.pp-card__body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.pp-card__body p { margin: 0; font-size: 19px; line-height: 1.32; }

.pp-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 40px var(--gutter); background: var(--ink); color: var(--cream); font-size: 16px; }
.pp-footer a { color: var(--cream); }
.pp-footer__links { display: flex; gap: 22px; }

@media (max-width: 700px) {
  .pp-hero__photo, .pp-panel + .pp-panel { border-left: 0; border-top: 2px solid var(--ink); }
  .pp-hero__photo { min-height: 220px; }
  .pp-search input { font-size: 19px; padding: 15px 10px; }
  .pp-search button { padding: 0 14px; font-size: 17px; }
  .pp-brand span { display: none; }
  .pp-header { position: static; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
