/* Plan du site — Solcia (public, noindex) */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/outfit-400.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/outfit-700.ttf") format("truetype");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/vendor/fonts/playfair/playfair-700-latin.woff2") format("woff2");
}

:root {
  --pds-bg: #f4ebe0;
  --pds-bg-deep: #e8d5c0;
  --pds-ink: #2a1a12;
  --pds-muted: #5c4030;
  --pds-brown: #492e1c;
  --pds-gold: #c4a574;
  --pds-panel: rgba(255, 252, 247, 0.82);
  --pds-panel-border: rgba(73, 46, 28, 0.14);
  --pds-focus: #8b5e3c;
  --pds-glow: rgba(196, 165, 116, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --pds-bg: #120e0b;
    --pds-bg-deep: #1c1510;
    --pds-ink: #f4ebe0;
    --pds-muted: #d4c0a8;
    --pds-brown: #e8d5c0;
    --pds-gold: #c4a574;
    --pds-panel: rgba(28, 21, 16, 0.88);
    --pds-panel-border: rgba(244, 235, 224, 0.12);
    --pds-focus: #faebd7;
    --pds-glow: rgba(196, 165, 116, 0.2);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body.pds-page {
  margin: 0;
  min-height: 100dvh;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--pds-ink);
  background:
    radial-gradient(1200px 600px at 12% -10%, var(--pds-glow), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(73, 46, 28, 0.12), transparent 50%),
    linear-gradient(165deg, var(--pds-bg) 0%, var(--pds-bg-deep) 100%);
  line-height: 1.55;
}

.pds-skip {
  position: absolute;
  left: -10000px;
  top: 0.75rem;
  z-index: 20;
  background: var(--pds-panel);
  color: var(--pds-ink);
  padding: 0.5rem 0.85rem;
  border: 2px solid var(--pds-focus);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.pds-skip:focus {
  left: 0.75rem;
}

.pds-shell {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3.5rem;
}

.pds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
  animation: pds-rise 0.55s ease both;
}

.pds-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--pds-ink);
}
.pds-brand:hover .pds-brand-name,
.pds-brand:focus-visible .pds-brand-name {
  color: var(--pds-brown);
}
.pds-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--pds-panel-border), 0 8px 24px rgba(73, 46, 28, 0.12);
}
.pds-brand-name {
  font-family: "Playfair Display", "Outfit", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pds-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--pds-panel-border);
  background: var(--pds-panel);
  color: var(--pds-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pds-back:hover,
.pds-back:focus-visible {
  transform: translateY(-1px);
  border-color: var(--pds-gold);
  box-shadow: 0 6px 18px rgba(73, 46, 28, 0.1);
}

.pds-hero {
  margin-bottom: 1.35rem;
  animation: pds-rise 0.65s ease 0.06s both;
}
.pds-hero h1 {
  margin: 0 0 0.55rem;
  font-family: "Playfair Display", "Outfit", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--pds-brown);
}
.pds-hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--pds-muted);
  font-size: 1.05rem;
}

.pds-featured {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 22px;
  text-decoration: none;
  color: var(--pds-ink);
  border: 1px solid rgba(196, 165, 116, 0.45);
  background:
    linear-gradient(135deg, rgba(196, 165, 116, 0.28), transparent 55%),
    var(--pds-panel);
  box-shadow: 0 18px 40px rgba(73, 46, 28, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: pds-rise 0.68s ease 0.1s both;
}
.pds-featured:hover,
.pds-featured:focus-visible {
  transform: translateY(-3px);
  border-color: var(--pds-gold);
  box-shadow: 0 22px 48px rgba(73, 46, 28, 0.14);
}
.pds-featured-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pds-muted);
}
.pds-featured-title {
  font-family: "Playfair Display", "Outfit", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--pds-brown);
}
.pds-featured-text {
  color: var(--pds-muted);
  font-size: 0.98rem;
  max-width: 36rem;
}
.pds-featured-cta {
  margin-top: 0.45rem;
  font-weight: 700;
  color: var(--pds-brown);
}

.pds-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  animation: pds-rise 0.72s ease 0.14s both;
}

.pds-panel {
  background: var(--pds-panel);
  border: 1px solid var(--pds-panel-border);
  border-radius: 20px;
  padding: 1.15rem 1.05rem 1.25rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(73, 46, 28, 0.07);
}

.pds-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pds-muted);
}

.pds-note {
  margin: 1.35rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px dashed var(--pds-panel-border);
  color: var(--pds-muted);
  font-size: 0.92rem;
  animation: pds-rise 0.74s ease 0.16s both;
}

.pds-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.pds-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--pds-ink);
  font-weight: 600;
  font-size: 1.02rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
@media (prefers-color-scheme: dark) {
  .pds-list a {
    background: rgba(255, 255, 255, 0.04);
  }
}
.pds-list a::after {
  content: "→";
  color: var(--pds-gold);
  font-weight: 700;
  transition: transform 0.2s ease;
}
.pds-list a:hover,
.pds-list a:focus-visible {
  border-color: var(--pds-gold);
  background: rgba(196, 165, 116, 0.16);
  transform: translateX(3px);
}
.pds-list a:hover::after,
.pds-list a:focus-visible::after {
  transform: translateX(4px);
}
.pds-list a[aria-current="page"] {
  border-color: var(--pds-panel-border);
  opacity: 0.72;
  pointer-events: none;
}
.pds-list a[aria-current="page"]::after {
  content: "·";
}

.pds-footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--pds-muted);
  font-size: 0.85rem;
  animation: pds-rise 0.75s ease 0.18s both;
}
.pds-footer a {
  color: var(--pds-brown);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Accessibilité / pages doc publiques (même coque) */
.pds-badge {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(196, 165, 116, 0.55);
  background: rgba(196, 165, 116, 0.22);
  color: var(--pds-brown);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  animation: pds-rise 0.66s ease 0.08s both;
}

.pds-doc {
  display: grid;
  gap: 1rem;
  animation: pds-rise 0.72s ease 0.12s both;
}

.pds-panel--wide {
  width: 100%;
}

.pds-prose-lead {
  margin: 0 0 0.75rem;
  color: var(--pds-muted);
  font-size: 0.98rem;
}
.pds-prose-lead a,
.pds-prose-list a {
  color: var(--pds-brown);
  font-weight: 700;
  text-underline-offset: 0.15em;
}

.pds-prose-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--pds-ink);
  display: grid;
  gap: 0.45rem;
}
.pds-prose-list li {
  padding-left: 0.15rem;
}
.pds-prose-list code {
  font-size: 0.88em;
  padding: 0.08em 0.35em;
  border-radius: 6px;
  background: rgba(73, 46, 28, 0.08);
  color: var(--pds-brown);
}
@media (prefers-color-scheme: dark) {
  .pds-prose-list code {
    background: rgba(244, 235, 224, 0.08);
  }
}

a:focus-visible,
.pds-back:focus-visible,
.pds-brand:focus-visible {
  outline: 2px solid var(--pds-focus);
  outline-offset: 3px;
}

@keyframes pds-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pds-header,
  .pds-hero,
  .pds-featured,
  .pds-grid,
  .pds-note,
  .pds-footer,
  .pds-badge,
  .pds-doc,
  .pds-list a,
  .pds-back {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 800px) {
  .pds-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pds-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .pds-brand-name {
    font-size: 1.25rem;
  }
}
