/* ============================================
   PSYCHOSOMA — Pages publiques « Ce que ton symptôme exprime »
   Une feuille commune à toutes les pages /symptomes/
   ============================================ */

:root {
  --brun:       #6B4226;
  --encre:      #3D1F0A;
  --texte:      #4A3E35;
  --sienna:     #A0522D;
  --or:         #C9A84C;
  --creme:      #FDF6EC;
  --voile:      #F6EEE2;
  --gris:       #8a7a6a;
  --gris-clair: #e8e0d5;
}

* { box-sizing: border-box; }
body.sym-page { margin: 0; background: var(--creme); color: var(--texte); font-family: 'Lora', Georgia, serif; line-height: 1.8; }
.sym-page a { color: var(--sienna); }

/* Navigation */
.sym-nav { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 3rem; background: rgba(253, 246, 236, 0.94); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--gris-clair); }
.sym-brand { font-family: 'Fraunces', Georgia, serif; font-size: 1.35rem; color: var(--brun); text-decoration: none; }
.sym-brand em { font-style: italic; color: var(--sienna); }
.sym-brand .psi { font-style: italic; color: var(--sienna); font-size: 1.5rem; margin-right: 0.35rem; vertical-align: middle; }
.sym-nav-links { display: flex; gap: 1.25rem; align-items: center; }
.sym-nav-links a { font-size: 0.88rem; color: var(--gris); text-decoration: none; }
.sym-nav-links a:hover { color: var(--brun); }
.sym-nav-login { white-space: nowrap; }
.sym-nav-cta { white-space: nowrap; padding: 0.45rem 1.1rem; border: 1.5px solid var(--brun); border-radius: 6px; color: var(--brun) !important; font-weight: 600; }
.sym-nav-cta:hover { background: var(--brun); color: var(--creme) !important; }

/* Mise en page */
.sym-main { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }
.sym-crumbs { font-size: 0.8rem; color: var(--gris); margin-bottom: 2rem; }
.sym-crumbs a { color: var(--gris); text-decoration: none; }
.sym-crumbs a:hover { color: var(--sienna); }
.sym-eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sienna); margin: 0 0 0.75rem; }
.sym-main h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.15; color: var(--encre); margin: 0 0 1.75rem; text-wrap: balance; }
.sym-main h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 1.55rem; line-height: 1.3; color: var(--encre); margin: 3rem 0 1rem; text-wrap: balance; }
.sym-main p { margin: 0 0 1.1rem; font-size: 1.02rem; }

/* La réponse courte, en tête de page */
.sym-answer { background: #fff; border-left: 3px solid var(--or); border-radius: 0 10px 10px 0; padding: 1.25rem 1.5rem; margin: 0 0 1rem; font-size: 1.08rem; color: var(--encre); }
.sym-answer p { margin: 0; font-size: inherit; }
.sym-byline { font-size: 0.82rem; color: var(--gris); margin: 0 0 2rem; }

/* Citation et questions */
.sym-quote { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--sienna); border-left: 2px solid var(--or); padding: 0.25rem 0 0.25rem 1.25rem; margin: 2rem 0; }
.sym-questions { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.75rem; }
.sym-questions li { background: var(--voile); border-radius: 10px; padding: 0.9rem 1.2rem; font-style: italic; color: var(--encre); }

/* Côtés du corps */
.sym-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1rem; }
.sym-side { border: 1px solid var(--gris-clair); border-radius: 10px; padding: 1.1rem 1.25rem; background: #fff; }
.sym-side strong { display: block; font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 1.1rem; color: var(--encre); margin-bottom: 0.35rem; }
.sym-side p { font-size: 0.95rem; margin: 0; }
@media (max-width: 600px) { .sym-sides { grid-template-columns: 1fr; } }

/* Sources */
.sym-sources { font-size: 0.92rem; color: var(--gris); border-top: 1px solid var(--gris-clair); padding-top: 1.25rem; margin-top: 3rem; }
.sym-sources p { font-size: inherit; margin-bottom: 0.6rem; }

/* Encart vers l'essai */
.sym-cta { background: var(--encre); color: var(--creme); border-radius: 14px; padding: 2rem 2rem 2.2rem; margin: 3rem 0 2rem; }
.sym-cta .sym-eyebrow { color: var(--or); }
.sym-cta h2 { color: var(--creme); margin: 0 0 0.75rem; }
.sym-cta p { color: rgba(253, 246, 236, 0.86); }
.sym-cta-btn { display: inline-block; margin-top: 0.5rem; padding: 0.8rem 1.5rem; border-radius: 999px; background: var(--or); color: var(--encre) !important; font-weight: 600; text-decoration: none; transition: transform 0.2s; }
.sym-cta-btn:hover { transform: translateY(-1px); }

/* Rappel et auteur */
.sym-rappel { background: var(--voile); border-radius: 10px; padding: 1.1rem 1.4rem; font-size: 0.92rem; font-style: italic; color: var(--gris); }
.sym-rappel p { font-size: inherit; margin: 0 0 0.5rem; }
.sym-rappel p:last-child { margin: 0; }
.sym-author { display: flex; gap: 1rem; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gris-clair); }
.sym-author img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sym-author p { font-size: 0.9rem; margin: 0; }
.sym-author strong { color: var(--encre); }

/* Liste des symptômes */
.sym-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.sym-list a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--gris-clair); border-radius: 10px; background: #fff; text-decoration: none; color: var(--encre); font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; transition: border-color 0.2s; }
.sym-list a:hover { border-color: var(--sienna); }
.sym-list span { display: block; font-family: 'Lora', Georgia, serif; font-size: 0.85rem; color: var(--gris); margin-top: 0.2rem; }

.sym-footer { text-align: center; font-size: 0.8rem; color: var(--gris); padding: 2rem 1.5rem 3rem; border-top: 1px solid var(--gris-clair); }
.sym-footer a { color: var(--gris); }

@media (max-width: 700px) {
  .sym-nav { padding: 1rem 1.25rem; }
  .sym-nav-links { gap: 0.75rem; }
  .sym-nav-links a:not(.sym-nav-cta):not(.sym-nav-login) { display: none; }
  .sym-nav-login { font-size: 0.8rem !important; }
  .sym-long { display: none; }
  .sym-brand { font-size: 1.15rem; }
  .sym-brand .psi { font-size: 1.25rem; margin-right: 0.2rem; }
  .sym-nav-cta { padding: 0.4rem 0.75rem; font-size: 0.82rem; }
  .sym-cta { padding: 1.6rem 1.4rem 1.8rem; }
}

@media (max-width: 360px) {
  .sym-nav { flex-wrap: wrap; gap: 0.6rem; }
}

/* Invitations à la lecture personnelle, réparties dans la page */
.sym-answer-link { display: inline-block; margin: 0.75rem 0 0; font-size: 0.92rem; font-weight: 600; color: var(--sienna); text-decoration: none; }
.sym-answer-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sym-inline-cta { margin: 2.25rem 0; padding: 1.4rem 1.5rem; border: 1.5px solid var(--or); border-radius: 12px; background: #fff; }
.sym-inline-cta .sym-eyebrow { margin-bottom: 0.5rem; }
.sym-inline-cta p { font-size: 0.98rem; color: var(--encre); margin-bottom: 0.9rem; }
.sym-inline-btn { display: inline-block; padding: 0.65rem 1.25rem; border-radius: 999px; background: var(--brun); color: var(--creme) !important; font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: background 0.2s; }
.sym-inline-btn:hover { background: var(--encre); }

/* Barre qui apparaît pendant la lecture de la page */
.sym-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)); background: rgba(61, 31, 10, 0.96); color: var(--creme); transform: translateY(110%); transition: transform 0.3s ease; }
.sym-sticky.visible { transform: translateY(0); }
.sym-sticky p { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 1.02rem; }
.sym-sticky a { flex-shrink: 0; padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--or); color: var(--encre) !important; font-weight: 600; font-size: 0.88rem; text-decoration: none; white-space: nowrap; }
@media (max-width: 560px) { .sym-sticky p { font-size: 0.9rem; } }
@media (max-width: 420px) { .sym-sticky p { display: none; } .sym-sticky a { flex: 1; text-align: center; } }
body.sym-page { padding-bottom: 4rem; }

@media (max-width: 560px) {
  .sym-author { flex-direction: column; align-items: flex-start; }
}

/* Questions fréquentes (mêmes questions que le balisage FAQ) */
.sym-faq { border-top: 1px solid var(--gris-clair); margin: 0 0 1rem; }
.sym-faq h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 1.15rem; line-height: 1.4; color: var(--encre); margin: 1.4rem 0 0.4rem; text-wrap: balance; }
.sym-faq p { font-size: 0.98rem; margin: 0; }
