
/* --- Illustrations (aplats unis, couleurs du design system) --- */
.illu { display: block; width: 100%; height: auto; }
.illu [class^="i-"] { fill: none; }
.illu .i-surface-1 { fill: var(--surface-1); }
.illu .i-surface-2 { fill: var(--surface-2); }
.illu .i-canvas { fill: var(--canvas); }
.illu .i-teal { fill: var(--teal); }
.illu .i-sage { fill: var(--spot-sage); }
.illu .i-sable { fill: var(--spot-sable); }
.illu .i-terracotta { fill: var(--spot-terracotta); }
.illu .i-ink { fill: var(--ink); }
.illu .i-ink-stroke { stroke: var(--ink); stroke-linecap: round; }
.illu .i-muted-stroke { stroke: var(--ink-muted); stroke-linecap: round; }
.illu .i-terracotta-stroke { stroke: var(--spot-terracotta); stroke-linecap: round; }
.illu .i-line-strong { stroke: var(--hairline-strong); stroke-width: 2; }
.illu .i-on-teal-stroke { stroke: var(--on-teal); stroke-linecap: round; opacity: .3; }
.illu--vignette { width: 96px; }
.illu--emdr { width: 240px; max-width: 100%; }
.illu__glow { opacity: .25; animation: illu-breathe 8s ease-in-out infinite; }
.illu__plant { transform-box: fill-box; transform-origin: 50% 100%; animation: illu-sway 8s ease-in-out infinite; }
@keyframes illu-breathe { 0%, 100% { opacity: .18; } 50% { opacity: .34; } }
@keyframes illu-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* --- Accueil --- */
.hero--split .hero__inner { grid-template-columns: 1.15fr 1fr; align-items: center; gap: var(--space-xxl); }
.hero__text { display: grid; gap: var(--space-xl); }
.hero__art { max-width: 480px; justify-self: end; width: 100%; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xxl) var(--space-xl); }
.value { display: grid; gap: var(--space-md); align-content: start; }
.value p { color: var(--ink-muted); max-width: 34ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { display: grid; gap: var(--space-sm); align-content: start; padding-top: var(--space-lg); border-top: 1px solid var(--hairline); counter-increment: step; }
.step::before { content: counter(step); font-family: var(--font-display); font-size: 40px; font-weight: 500; line-height: 1; color: var(--accent); }
.step p { color: var(--ink-muted); max-width: 34ch; }

.el-spot--art { flex-direction: row; align-items: center; gap: var(--space-xxl); }
.el-spot--art .el-spot__body { display: grid; gap: var(--space-lg); flex: 1; justify-items: start; }
.el-spot--art .el-spot__text { max-width: 48ch; }

.faq-more { margin-top: var(--space-xl); }
.reveal--fill { display: grid; }

/* --- Votre psychologue (accueil) --- */
.home-psy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--space-xxl); padding: var(--space-xl) var(--space-xl) 0; border-radius: var(--radius-xxl); background: var(--surface-1); overflow: hidden; }
.home-psy__photo { margin: 0; align-self: end; }
.home-psy__photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.home-psy__body { display: grid; gap: var(--space-md); justify-items: start; padding: 0 var(--space-xl) var(--space-xl) 0; }
.home-psy__body .body-lg { color: var(--ink-muted); max-width: 46ch; margin-bottom: var(--space-xs); }

/* --- À propos --- */
.about-photo { margin: 0; overflow: hidden; background: var(--surface-2); }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-photo--arch { justify-self: end; width: 100%; max-width: 440px; aspect-ratio: 4 / 5; border-radius: 220px 220px var(--radius-xxl) var(--radius-xxl); }
.about-photo--soft { aspect-ratio: 4 / 5; border-radius: var(--radius-xxl); }
.about-photo--round { width: 220px; aspect-ratio: 1; border-radius: 50%; flex-shrink: 0; }
.about-photo--round img { object-position: 50% 30%; transform: scale(1.7); transform-origin: 48% 42%; }
.about-hero__name { display: grid; gap: var(--space-xs); }
.about-hero__role { font-family: var(--font-display); font-size: 20px; line-height: 1.3; color: var(--accent); }
.about-hero .hero__text { gap: var(--space-lg); }

.about-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xxl); align-items: start; }
.about-split > .about-photo { position: sticky; top: 110px; }
.about-split__text { display: grid; gap: var(--space-xxl); }

.about-card { display: grid; gap: var(--space-md); padding: var(--space-xl); border-radius: var(--radius-xl); background: var(--surface-1); }
.about-card--featured { background: var(--surface-2); }
.about-list { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.about-list li { position: relative; padding-left: 26px; line-height: 1.5; }
.about-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); opacity: .85; }

.about-approach-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xxl); margin-bottom: var(--space-xxl); }
.about-approach-head .section__head { margin-bottom: 0; }
.about-approach__title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.3px; }
.about-tools { margin-top: var(--space-xl); max-width: 70ch; }

.about-quote { font-family: var(--font-display); font-size: 26px; line-height: 1.25; letter-spacing: -.3px; color: var(--accent); }
.about-tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-content: start; margin: 0; padding: 0; list-style: none; }
.about-tags .el-tag { font-size: 14px; padding: 8px 14px; }

/* --- Blog : liste et cartes d'articles --- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xxl) var(--space-xl); }
.post-card { display: grid; grid-template-rows: auto 1fr; gap: var(--space-md); align-content: start; }
.post-card__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius-xl); background: var(--surface-2); }
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__art { display: block; width: 100%; height: 100%; background-color: var(--spot-sage);
  background-image: radial-gradient(circle at 78% 30%, rgba(255, 255, 255, .35) 0 18%, transparent 18.5%), radial-gradient(circle at 22% 115%, rgba(255, 255, 255, .22) 0 34%, transparent 34.5%); }
.post-card__art--sable { background-color: var(--spot-sable); }
.post-card__art--terracotta { background-color: var(--spot-terracotta); }
.post-card__art--teal { background-color: var(--teal); }
.post-card__body { display: grid; gap: var(--space-sm); justify-items: start; align-content: start; }
.post-card__title { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -.3px; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-card__title a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.post-card__excerpt { color: var(--ink-muted); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink-muted); font-size: 14px; }

.blog-filter { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-xxl); }
.blog-filter__item { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--hairline-strong); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.blog-filter__item:hover { background: var(--surface-1); }
.blog-filter__item[aria-current="page"] { background: var(--primary); box-shadow: none; color: var(--on-primary); }
.blog-filter__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.blog-empty { padding: var(--space-xxl) 0; }
.blog-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-md); margin-top: var(--space-section); }

/* --- Blog : article --- */
.article-narrow { max-width: 760px; }
.article-head { padding-bottom: var(--space-xxl); }
.article-head .article-narrow { display: grid; gap: var(--space-lg); justify-items: start; }
.article-back { font-size: 14px; }
.article-tag { text-decoration: none; }
.article-title { text-wrap: balance; }
.article-lead { color: var(--ink-muted); }
.article-meta { display: flex; align-items: center; gap: var(--space-sm); color: var(--ink-muted); font-size: 14px; line-height: 1.4; }
.article-meta strong { color: var(--ink); font-weight: 600; }
.article-meta__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--surface-1); }
.article-cover { max-width: 1040px; margin: 0 auto var(--space-xxl); }
.article-cover img { display: block; width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius-xxl); }

.article-body { font-size: 18px; line-height: 1.7; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { margin-top: 1.8em; font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -.5px; }
.article-body h3, .article-body h4 { margin-top: 1.5em; font-size: 21px; font-weight: 600; line-height: 1.3; }
.article-body h2 + *, .article-body h3 + *, .article-body h4 + * { margin-top: .6em; }
.article-body a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li, .article-body li > ul, .article-body li > ol { margin-top: .4em; }
.article-body li::marker { color: var(--accent); }
.article-body mark { background: color-mix(in srgb, var(--spot-sable) 60%, transparent); color: inherit; padding: 0 .15em; border-radius: 3px; }
.article-body code { padding: .1em .35em; border-radius: var(--radius-xs); background: var(--surface-2); font-size: .9em; }
.article-body hr { width: 100%; height: 12px; margin-block: 2.2em; border: 0; background: radial-gradient(circle, var(--hairline-strong) 2.5px, transparent 3px) center / 28px 12px repeat-x; max-width: 84px; margin-inline: auto; }
.article-quote { margin-inline: 0; margin-block: 1.8em; padding: var(--space-lg) var(--space-xl); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--surface-1); }
.article-quote blockquote { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.35; letter-spacing: -.3px; }
.article-quote figcaption { margin-top: var(--space-sm); color: var(--ink-muted); font-size: 15px; }
.article-quote figcaption::before { content: "— "; }
.article-figure { margin-inline: 0; margin-block: 1.8em; }
.article-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 75vh; margin-inline: auto; border-radius: var(--radius-xl); }
.article-figure figcaption { margin-top: var(--space-sm); color: var(--ink-muted); font-size: 15px; text-align: center; }

.article-author { display: flex; align-items: center; gap: var(--space-lg); margin-top: var(--space-section); padding: var(--space-xl); border-radius: var(--radius-xl); background: var(--surface-1); }
.article-author img { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.article-author div { display: grid; gap: var(--space-xs); justify-items: start; }

/* Aperçu d'un article depuis l'espace du cabinet */
.preview-banner { position: sticky; bottom: var(--space-md); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md);
  width: min(760px, calc(100% - 32px)); margin: var(--space-md) auto 0; padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill); background: var(--ink); color: var(--canvas); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); font-size: 15px; }
.preview-banner .el-btn { background: var(--canvas); color: var(--ink); }

/* --- Apparition au défilement (activée seulement si le script tourne) --- */
html { scroll-behavior: smooth; }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 810px) {
  .hero--split .hero__inner, .values, .steps { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 360px; }
  .value, .step { justify-items: center; text-align: center; }
  .el-spot--art { flex-direction: column; align-items: flex-start; gap: var(--space-xl); }

  .home-psy { grid-template-columns: 1fr; gap: var(--space-lg); padding: var(--space-lg) var(--space-lg) 0; }
  .home-psy__photo { order: 1; max-width: 400px; justify-self: center; }
  .home-psy__body { padding: 0 var(--space-xs); }
  .about-photo--arch { justify-self: center; max-width: 340px; }
  .about-split { grid-template-columns: 1fr; }
  .about-split > .about-photo { position: static; max-width: 420px; }
  .about-split__text { order: -1; }
  .about-approach-head { flex-direction: column-reverse; align-items: flex-start; gap: var(--space-lg); }
  .about-photo--round { width: 140px; }
  .about-quote { font-size: 22px; }

  .post-grid { grid-template-columns: 1fr; gap: var(--space-xxl); }
  .article-body { font-size: 17px; }
  .article-body h2 { font-size: 26px; }
  .article-quote blockquote { font-size: 20px; }
  .article-cover img { border-radius: var(--radius-xl); }
  .article-author { flex-direction: column; align-items: flex-start; padding: var(--space-lg); }
  .preview-banner { border-radius: var(--radius-xl); }
}

@media (min-width: 811px) and (max-width: 1040px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .illu__glow, .illu__plant { animation: none; }
}
