/* Site Perso — styles des composants, repris du design system (bundle.css), sans React. */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-serif); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
img, svg { display: block; }

/* Button : rectangle à coins radius-sm, libellé serif */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.sp-btn-md { height: 44px; padding: 0 var(--space-6); }
.sp-btn-lg { height: 52px; padding: 0 var(--space-8); }
.sp-btn-primary { background: var(--accent); color: var(--on-accent); }
.sp-btn-primary:hover { background: var(--accent-hover); }
.sp-btn:active { transform: translateY(1px); }
.sp-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Eyebrow */
.sp-eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--accent-ink); }
.sp-eyebrow svg { flex: none; }

/* Logo */
.sp-logo { display: inline-flex; align-items: center; padding: 7px; margin: -7px; color: var(--ink); text-decoration: none; border-radius: var(--radius-sm); }
.sp-logo-img { display: block; width: auto; height: 40px; }
/* « Rémy Rougier » et « Préparation mentale » à côté du logo, en haut des pages */
.sp-logo-text { display: flex; flex-direction: column; margin-left: var(--space-3); color: var(--ink); white-space: nowrap; }
.sp-logo-name { font-family: var(--font-sans); font-size: 18px; line-height: 22px; font-weight: 700; letter-spacing: -0.02em; }
.sp-logo-job { font-family: var(--font-serif); font-size: 14px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.sp-logo:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* PhotoFrame : rectangle radius-lg ; option « backdrop » = forme bleu pâle décalée derrière */
.sp-photo { position: relative; width: 100%; max-width: 520px; margin: 0; }
.sp-photo-rounded { aspect-ratio: 92 / 100; }
.sp-photo-backdrop.sp-photo-rounded { aspect-ratio: 118 / 100; }
.sp-photo-back { position: absolute; top: 0; right: 0; bottom: 0; width: 78%; border-radius: var(--radius-lg); background: var(--accent-soft); }
.sp-photo-frame { position: absolute; top: 0; left: 0; bottom: 0; width: 100%; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-raised); }
.sp-photo-backdrop .sp-photo-frame { width: 78%; }
.sp-photo-img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* photo au format 16/9 (accueil) : cadre 16/9 sur 86 % de la largeur, la forme ciel dépasse à droite */
.sp-photo-wide { max-width: none; }
/* photo de l'accueil : 16/9, pleine largeur de sa colonne, angles droits, sans fond décoratif */
.sp-photo-hero { max-width: none; aspect-ratio: 16 / 9; }
.sp-photo-hero .sp-photo-frame { width: 100%; border-radius: 0; }
.sp-photo-backdrop.sp-photo-rounded.sp-photo-wide { aspect-ratio: 2.067 / 1; }
.sp-photo-wide .sp-photo-back, .sp-photo-backdrop.sp-photo-wide .sp-photo-frame { width: 86%; }
.sp-photo-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); border: 1px dashed var(--line-strong); border-radius: inherit; color: var(--ink-muted); }

/* VideoFrame */
.sp-video { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); background: var(--media); }
.sp-video-el { width: 100%; height: 100%; object-fit: cover; }
.sp-video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); width: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--on-media); cursor: pointer; }
.sp-video-play[hidden] { display: none; }
.sp-video-placeholder .sp-video-play { cursor: default; }
.sp-video-dot { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--radius-full); background: var(--media-glass); color: var(--on-media); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .15s ease; }
.sp-video-dot svg { margin-left: 3px; }
button.sp-video-play:hover .sp-video-dot { transform: scale(1.06); }
.sp-video-play:focus-visible { outline: none; }
.sp-video-play:focus-visible .sp-video-dot { box-shadow: var(--focus-ring); }
.sp-video-hint { color: var(--on-media); }

/* Pop-up de contact (élément <dialog> natif) */
.sp-modal { width: min(440px, calc(100% - 2 * var(--space-4))); max-width: none; margin: auto; padding: 0; border: 0; background: var(--paper-raised); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-modal); }
.sp-modal[open] { animation: sp-rise .24s cubic-bezier(.2, .8, .2, 1); }
.sp-modal::backdrop { background: rgba(22, 22, 20, 0.45); background: var(--scrim, rgba(22, 22, 20, 0.45)); animation: sp-fade .2s ease-out; }
.sp-modal-inner { padding: var(--space-6); }
.sp-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.sp-modal-title { margin: 0; }
.sp-modal-intro { margin: var(--space-2) 0 0; color: var(--ink-muted); }
.sp-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -6px -10px 0 0; padding: 0; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--ink); cursor: pointer; }
.sp-close:hover { background: var(--paper); }
.sp-close:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sp-options { display: grid; gap: var(--space-3); margin-top: var(--space-6); }

/* Options de contact */
.sp-option { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.sp-option:hover { background: var(--accent-soft); border-color: var(--accent-ink); }
.sp-option:focus { outline: none; }
.sp-option:focus-visible { box-shadow: var(--focus-ring); }
.sp-option-text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.sp-option-label { color: var(--ink-muted); }
.sp-option-value { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sp-option-action { flex: none; display: inline-flex; align-items: center; gap: var(--space-1); color: var(--accent-ink); }
.sp-option:hover .sp-option-action { color: var(--ink); }
.sp-option-arrow { transition: transform .15s ease; }
.sp-option:hover .sp-option-arrow { transform: translateX(2px); }

/* Page */
.sp-landing { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; padding: 0 var(--space-6); background: var(--paper); color: var(--ink); }
/* fond uni depuis le 10/11/2026 (le quadrillage « petits carreaux » est dans « Site Perso - sauvegardes/avant-encadre-2026-11-10 ») */
.sp-container { width: 100%; max-width: 1180px; margin: 0 auto; }
.sp-landing-head { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.sp-hero { display: grid; grid-template-columns: minmax(460px, 5fr) minmax(0, 7fr); align-items: center; gap: var(--space-10); padding: var(--space-6) 0 var(--space-24); }
.sp-hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.sp-hero-text .sp-eyebrow { margin-bottom: var(--space-3); }
/* titre de l'accueil dans un encadré menthe, lettres capitales serrées et grasses (Anton), d'après l'image « Celadon » */
.sp-hero-title { margin: 0; padding: 20px 28px 16px; background: var(--title-box); color: var(--ink); font-family: var(--font-poster); font-size: 74px; line-height: 1; font-weight: 400; letter-spacing: 0; text-transform: uppercase; width: fit-content; max-width: 100%; }
/* le titre grossit ligne après ligne : « DANS L’ACTION » ressort (tailles en em de la taille du titre) */
.sp-hero-title > span { display: block; }
.sp-hero-title-1 { font-size: .5em; }
.sp-hero-title-2 { font-size: .72em; }
.sp-hero-title-3 { font-size: 1em; }
.sp-hero-lead { margin: var(--space-4) 0 var(--space-8); max-width: 30rem; color: var(--ink-muted); }
.sp-hero-media { display: flex; justify-content: flex-end; }
.sp-section { display: flex; flex-direction: column; align-items: center; padding: var(--space-8) 0 var(--space-24); text-align: center; }
.sp-section-title { margin: 0; text-wrap: balance; }
.sp-section-lead { margin: var(--space-2) 0 var(--space-10); max-width: 34rem; color: var(--ink-muted); }
.sp-section-claim { margin: var(--space-3) 0 0; max-width: 34rem; color: var(--ink); font-weight: 500; text-wrap: balance; }

@media (max-width: 860px) {
  .sp-hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); padding: var(--space-4) 0 var(--space-16); }
  .sp-hero-media { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .sp-landing { padding: 0 var(--space-4); }
  .sp-landing-head { height: 72px; }
  .sp-hero-title { padding: 14px 18px 11px; font-size: min(54px, 14vw); }
  .sp-section { padding-bottom: var(--space-16); }
  .sp-section-title { font-size: 32px; line-height: 38px; letter-spacing: -0.025em; }
}

@keyframes sp-fade { from { opacity: 0; } }
@keyframes sp-rise { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  .sp-modal[open], .sp-modal::backdrop { animation: none; }
  .sp-btn, .sp-option, .sp-option-arrow, .sp-video-dot { transition: none; }
}

/* Pages intérieures : article, appel à l'action, pied de page */
.sp-article { max-width: 720px; padding: var(--space-6) 0 var(--space-16); }
.sp-article-head { margin-bottom: var(--space-10); }
.sp-article-head .sp-eyebrow { margin-bottom: var(--space-3); }
.sp-article-title { margin: 0; text-wrap: balance; }
.sp-article-lead { margin: var(--space-4) 0 0; color: var(--ink-muted); }
.sp-prose > * { margin: 0; }
.sp-prose > * + * { margin-top: var(--space-4); }
.sp-prose p, .sp-prose li { line-height: 28px; }
.sp-prose h2 { margin-top: var(--space-10); font-family: var(--font-sans); font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.sp-prose h3 { margin-top: var(--space-6); font-family: var(--font-sans); font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.02em; }
.sp-prose h2 + *, .sp-prose h3 + * { margin-top: var(--space-3); }
.sp-prose ul { padding-left: 1.2em; }
.sp-prose li + li { margin-top: var(--space-1); }
.sp-prose li::marker { color: var(--accent-ink); }
.sp-prose a { color: var(--accent-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.sp-prose a:focus-visible { outline: none; border-radius: 4px; box-shadow: var(--focus-ring); }
.sp-prose ol { padding-left: 1.4em; }
.sp-prose strong { font-weight: 500; color: var(--ink); }
/* tableau d'exemple (page « Analyse vidéo ») */
.sp-figure { margin-left: 0; margin-right: 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); }
.sp-figure figcaption { margin-bottom: var(--space-3); color: var(--ink-muted); }
.sp-table-scroll { overflow-x: auto; }
.sp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sp-table th, .sp-table td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); text-align: right; font-weight: 400; }
.sp-table th:first-child { text-align: left; }
.sp-table thead th { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.sp-table tbody th { font-weight: 500; }
.sp-table tbody tr:last-child > * { border-bottom: 0; }
.sp-table-mark { background: var(--title-box); font-weight: 500 !important; }
@media (max-width: 640px) {
  .sp-figure { padding: var(--space-3); }
  .sp-table th, .sp-table td { padding: var(--space-2) var(--space-1); }
  .sp-table thead th { font-size: 12px; line-height: 16px; vertical-align: bottom; }
}
.sp-cta { margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid var(--line); }

.sp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-8); padding: var(--space-8) 0 var(--space-10); border-top: 1px solid var(--line); color: var(--ink-muted); }
.sp-foot .sp-logo { padding: 10px; margin: -10px; }
.sp-foot .sp-logo-img { height: 32px; }
.sp-foot ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: 0; padding: 0; list-style: none; }
.sp-foot p { margin: 0; }
.sp-foot a { color: var(--ink); text-decoration: none; border-radius: 4px; }
.sp-foot a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.sp-foot a[aria-current="page"] { color: var(--accent-ink); }
.sp-foot a:focus-visible { outline: none; box-shadow: var(--focus-ring); }

@media (max-width: 640px) {
  .sp-article { padding-top: var(--space-2); }
  .sp-article-title { font-size: 34px; line-height: 40px; letter-spacing: -0.025em; }
  .sp-prose h2 { font-size: 23px; line-height: 29px; }
  .sp-foot { flex-direction: column; align-items: flex-start; }
  .sp-foot ul { gap: 0 var(--space-6); }
  .sp-foot li a { display: inline-flex; align-items: center; min-height: 44px; }
  .sp-cta { margin-top: var(--space-10); }
}
