/* ============================================
   TÉMOIGNAGE PSYCHOPÉDAGOGIE — Camille Lambert
   Style éditorial chaleureux, palette douce
============================================ */

:root {
  /* Palette douce / éditoriale (un peu PsychoPedia mais plus apaisée) */
  --bg: #FBF8F3;
  --bg-alt: #F4EFE6;
  --surface: #FFFFFF;
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --ink-muted: #6B7280;
  --rule: #E7DFD2;
  --accent: #C0563E;       /* coral terreux, plus chaleureux que #FF4B39 */
  --accent-dark: #9A3F2A;
  --navy: #20344F;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1200px;
  --narrow: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: 'kern', 'liga';
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.container.narrow {
  max-width: var(--narrow);
}

/* ============================================
   HEADER
============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
  display: block;
}
.brand-name {
  font-weight: 600;
  font-size: 15px;
}
.brand-sub {
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 13px;
}
.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .brand-sub { display: none; }
}

/* ============================================
   HERO
============================================ */
.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--rule);
}
.hero-inner {
  max-width: 820px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}
.hero-lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}
.hero-meta .dot { color: var(--rule); }

@media (max-width: 768px) {
  .hero { padding: 50px 0 40px; }
  .hero-lede { font-size: 17px; }
}

/* ============================================
   TOC
============================================ */
.toc-wrapper {
  padding: 50px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-alt);
}
.toc {
  max-width: var(--narrow);
}
.toc-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.toc-list {
  list-style: none;
  counter-reset: toc;
}
.toc-list > li {
  counter-increment: toc;
  position: relative;
  padding-left: 48px;
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 500;
}
.toc-list > li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 4px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 500;
}
.toc-list a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.toc-list a:hover {
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.toc-list ul {
  list-style: none;
  margin-top: 8px;
  padding-left: 0;
}
.toc-list ul li {
  font-size: 15px;
  font-weight: 400;
  padding: 4px 0 4px 18px;
  position: relative;
  color: var(--ink-soft);
}
.toc-list ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 1px;
  background: var(--rule);
}
.toc-list ul a { color: var(--ink-soft); }

/* ============================================
   ARTICLE
============================================ */
.article {
  padding: 0;
}
.article-section {
  padding: 70px 0;
}
.article-section.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-number {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 32px;
  max-width: 600px;
}
.subsection-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 18px;
}
.article p {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
}
.article p.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-weight: 400;
}
.article strong { color: var(--navy); font-weight: 600; }
.article em { font-style: italic; }

/* Pull quote */
.pull-quote {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
  font-style: italic;
  color: var(--navy);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
  font-weight: 400;
}

/* Image full bleed */
.full-bleed-image {
  margin: 60px 0;
  background: var(--bg-alt);
}
.full-bleed-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.full-bleed-image figcaption {
  max-width: var(--narrow);
  margin: 14px auto 0;
  padding: 0 28px;
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
}

/* Callout */
.callout {
  padding: 50px 0;
  background: var(--navy);
}
.callout-inner {
  padding: 36px;
  border-left: 4px solid var(--accent);
}
.callout h3 {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.callout p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: white;
  font-weight: 400;
}
.callout em { font-style: italic; color: #FFD4A8; }

/* Criteria list */
.criteria-list {
  margin: 24px 0 28px;
  padding-left: 0;
  list-style: none;
}
.criteria-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.6;
}
.criteria-list li:last-child { border-bottom: none; }
.criteria-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* Table */
.table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
}
.formations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.formations-table th,
.formations-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.formations-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.formations-table tr:last-child td { border-bottom: none; }
.formations-table td:first-child {
  font-weight: 500;
  color: var(--navy);
}

/* Info box */
.info-box {
  margin: 32px 0;
  padding: 22px 26px;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.info-box p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Grids */
.grid-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 36px 0 28px;
}
.grid-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.grid-card h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.grid-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 36px 0 32px;
}
.profile-card {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition: transform 0.2s, border-color 0.2s;
}
.profile-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.profile-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.profile-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .grid-three, .grid-two { grid-template-columns: 1fr; }
  .pull-quote { font-size: 22px; padding-left: 20px; }
  .callout-inner { padding: 24px; }
  .callout p { font-size: 18px; }
  .article-section { padding: 50px 0; }
  .toc-wrapper { padding: 36px 0; }
}

/* Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.resource {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.resource-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.resource h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.resource p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 0;
}

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

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--navy);
  color: #C8D2DF;
  padding: 60px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}
.footer-sub {
  font-size: 14px;
  color: #94A3B8;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-self: center;
}
.footer-nav a {
  color: #C8D2DF;
  font-size: 14px;
  text-decoration: none;
}
.footer-nav a:hover {
  color: white;
  text-decoration: underline;
}
.footer-meta {
  grid-column: 1 / -1;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #2D4663;
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   FORMULAIRE CONTACT + CTA
============================================ */

.nav-active {
  color: var(--accent) !important;
  font-weight: 600;
}

.cta-button {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.cta-button:hover {
  background: var(--accent);
  color: white;
}
.cta-button:active {
  transform: translateY(1px);
}

.contact-form {
  margin-top: 32px;
}

.contact-form fieldset {
  border: 1px solid #E5DDD0;
  border-radius: 8px;
  padding: 24px 24px 8px;
  margin-bottom: 28px;
  background: white;
}

.contact-form legend {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  padding: 0 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D5C9B5;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: white;
}

.form-field textarea {
  resize: vertical;
  font-family: var(--sans);
}

.req {
  color: var(--accent);
  font-weight: 600;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .checkbox-group { grid-template-columns: 1fr; }
}

.checkbox-item {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
  font-size: 14px !important;
  cursor: pointer;
  color: var(--ink) !important;
  margin-bottom: 0 !important;
}

.checkbox-item input[type="checkbox"] {
  accent-color: var(--navy);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.consent {
  background: var(--bg);
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #E5DDD0;
}

.form-submit {
  margin-top: 8px;
  font-size: 17px;
  padding: 16px 36px;
}

.form-help {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 14px;
  font-style: italic;
}
