/* ============================================================
   Psychopedia × PCO 24 Dordogne — Design system
   Continuité visuelle directe des fiches PDF & du site Wix
   ============================================================ */

:root {
  /* Marque */
  --navy:        #1E2A3A;
  --navy-soft:   #28384c;
  --corail:      #FF4B39;
  --corail-dark: #e83b29;
  --vert-pco:    #4E8B5B;
  --vert-pco-dk: #3f7449;
  --white:       #FFFFFF;
  --beige:       #F3EDE4;
  --beige-deep:  #ece3d6;

  /* Texte */
  --text:        #1E2A3A;
  --text-soft:   #4A5568;
  --text-mute:   #6b7688;
  --line:        rgba(30,42,58,.10);

  /* Thématiques TND */
  --tsa:   #2A7B9B;  /* teal */
  --tdah:  #E8872B;  /* orange */
  --dys:   #6B4C9A;  /* violet */
  --tdi:   #FF4B39;  /* corail */
  --tdc:   #4E8B5B;  /* vert */
  --dyslexie: #1B5E8C;  /* bleu marine */
  --dysortho: #B5377A;  /* rose magenta */

  /* Radius & ombres */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --shadow:    0 1px 2px rgba(30,42,58,.06), 0 6px 18px rgba(30,42,58,.06);
  --shadow-hi: 0 4px 10px rgba(30,42,58,.08), 0 18px 40px rgba(30,42,58,.12);

  --container: 1240px;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.025em; }
h3 { font-size: 1.22rem; letter-spacing: -.015em; }
p  { margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-soft); line-height: 1.65; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(60px, 9vw, 110px); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.bg-beige { background: var(--beige); }
.bg-navy  { background: var(--navy); color: var(--white); }

/* ---------- Pastille + titres de section ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 1rem;
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--corail); flex: none; }
.dot--tsa{background:var(--tsa)} .dot--tdah{background:var(--tdah)} .dot--dys{background:var(--dys)}
.dot--tdi{background:var(--tdi)} .dot--tdc{background:var(--tdc)} .dot--vert{background:var(--vert-pco)}
.dot--dyslexie{background:var(--dyslexie)} .dot--dysortho{background:var(--dysortho)}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: .8rem; }
.underline-corail { position: relative; }
.underline-corail::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 2px;
  background: var(--corail); margin-top: 16px;
}
.text-center { text-align: center; }
.center-block { margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  min-height: 44px;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--corail { background: var(--corail); color: #fff; }
.btn--corail:hover { background: var(--corail-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,75,57,.30); }
.btn--vert { background: var(--vert-pco); color: #fff; }
.btn--vert:hover { background: var(--vert-pco-dk); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(78,139,91,.30); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--corail); color: var(--corail); transform: translateY(-2px); }
.btn--on-navy { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--on-navy:hover { border-color: var(--corail); color: #fff; background: var(--corail); }

/* Lien souligné corail (style Wix) */
.link-underline {
  font-weight: 600; color: var(--text); position: relative; padding-bottom: 3px;
  background-image: linear-gradient(var(--corail), var(--corail));
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: color .18s ease;
}
.link-underline:hover { color: var(--corail); }

/* ---------- Header ---------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 44px; width: auto; border-radius: 50%; }
.brand .sep { width: 1px; height: 34px; background: rgba(255,255,255,.22); }
.brand .pco-banner { height: 38px; border-radius: 6px; }
.brand-label { color:#fff; font-weight:700; font-size:.95rem; letter-spacing:-.01em; line-height:1.1; }
.brand-label span { display:block; font-weight:500; font-size:.72rem; color:rgba(255,255,255,.6); letter-spacing:.02em; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem;
  padding: 9px 14px; border-radius: 999px; transition: background .18s, color .18s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: #fff; background: var(--corail); }
.nav-links a.ext { color: rgba(255,255,255,.7); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width:24px; height:2px; background:#fff; margin:5px 0; border-radius:2px; transition:.2s; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding-block: clamp(56px, 9vw, 96px); position: relative; overflow: hidden; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.78); }
.hero-logos { display: flex; align-items: center; gap: 22px; margin-bottom: 30px; }
.hero-logos img.round { height: 76px; width: 76px; border-radius: 50%; }
.hero-logos .vsep { width: 1px; height: 60px; background: rgba(255,255,255,.25); }
.hero-logos img.pco { height: 64px; border-radius: 10px; }
.hero-sub { color: var(--corail); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; margin-bottom: 14px; }
.hero--light { background: var(--beige); color: var(--text); }
.hero--light h1 { color: var(--text); }
.hero--light .lead { color: var(--text-soft); }
.hero--light .hero-sub { color: var(--corail); }
.hero-inner { max-width: 760px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--line); border-left: 5px solid var(--corail);
  box-shadow: var(--shadow); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.card .ico { width: 46px; height: 46px; margin-bottom: 2px; }
.card h3 { letter-spacing: -.015em; }
.card p { color: var(--text-soft); font-size: .98rem; margin: 0; flex: 1; }
.card .card-cta { margin-top: 10px; }

/* accents bordure gauche par thème */
.card--corail { border-left-color: var(--corail); }
.card--tsa   { border-left-color: var(--tsa); }
.card--tdah  { border-left-color: var(--tdah); }
.card--dys   { border-left-color: var(--dys); }
.card--tdi   { border-left-color: var(--tdi); }
.card--tdc   { border-left-color: var(--tdc); }
.card--dyslexie { border-left-color: var(--dyslexie); }
.card--dysortho { border-left-color: var(--dysortho); }
.card--vert  { border-left-color: var(--vert-pco); }
.card--navy  { border-left-color: var(--navy); }

/* couleurs d'icône */
.ico--corail{color:var(--corail)} .ico--tsa{color:var(--tsa)} .ico--tdah{color:var(--tdah)}
.ico--dys{color:var(--dys)} .ico--tdi{color:var(--tdi)} .ico--tdc{color:var(--tdc)}
.ico--dyslexie{color:var(--dyslexie)} .ico--dysortho{color:var(--dysortho)}
.ico--vert{color:var(--vert-pco)} .ico--navy{color:var(--navy)}
.card-note{font-size:.86rem;color:var(--text-mute);margin:.2rem 0 0;font-style:italic}
.card-cta--stack{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.card-cta--stack .btn{width:100%;justify-content:center}
.card-sec-link{font-size:.92rem}

/* badge thématique petit */
.tag { display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  padding:4px 10px; border-radius:999px; background:rgba(30,42,58,.06); color:var(--text-soft); align-self:flex-start; }

/* ---------- Cards d'orientation (grandes, accueil) ---------- */
.orient { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.orient .card { padding: 34px 30px; }
.orient .card .ico { width: 54px; height: 54px; }

/* ---------- Callout vert FIP ---------- */
.callout {
  background: var(--vert-pco); color: #fff; border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
}
.callout h3 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.callout p { color: rgba(255,255,255,.9); margin: 0; }
.callout .badge-nrc {
  display: inline-block; margin-top: 18px; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3); padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: .9rem;
}

/* ---------- Liste numérotée PCO (style fiche) ---------- */
.steps { display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .num { font-size: 2.1rem; font-weight: 800; color: var(--vert-pco); line-height: 1; letter-spacing: -.04em; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-soft); margin: 0; }

/* ---------- Section verrouillée ---------- */
.lock-grid .card { position: relative; cursor: pointer; overflow: hidden; }
.lock-grid .card .lock-overlay {
  position: absolute; inset: 0; background: rgba(30,42,58,.72);
  backdrop-filter: blur(2px); color: #fff; border-radius: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 24px; opacity: 0; transition: opacity .22s ease;
}
.lock-grid .card:hover .lock-overlay { opacity: 1; }
.lock-grid .card .lock-overlay svg { width: 34px; height: 34px; }
.lock-grid .card .lock-overlay .ov-btn {
  border: 1.5px solid #fff; color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: .9rem;
}
.lock-badge { position: absolute; top: 16px; right: 16px; color: var(--text-mute); }
.lock-badge svg { width: 20px; height: 20px; }

/* ---------- Contact / coordonnées ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact-list .ci { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,75,57,.10); color: var(--corail);
  display: grid; place-items: center; flex: none; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding-block: 56px 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { height: 50px; border-radius: 50%; margin-bottom: 14px; }
.footer-brand p { font-size: .95rem; max-width: 38ch; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .96rem; transition: color .18s; }
.footer-links a:hover { color: var(--corail); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(30,42,58,.6); display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 24px; opacity: 0; transition: opacity .2s ease; }
.modal-back.open { display: flex; opacity: 1; }
.modal {
  background: #fff; border-radius: var(--r-lg); max-width: 460px; width: 100%;
  padding: 36px; text-align: center; box-shadow: var(--shadow-hi);
  border-top: 6px solid var(--corail); transform: translateY(8px); transition: transform .2s ease;
}
.modal-back.open .modal { transform: translateY(0); }
.modal .m-ico { width: 52px; height: 52px; color: var(--corail); margin: 0 auto 16px; }
.modal h3 { margin-bottom: 10px; }
.modal p { color: var(--text-soft); margin-bottom: 22px; }
.modal a.mail { font-weight: 700; color: var(--corail); }
.modal .modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Hero accueil : intro + cards ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* icône vidéo inline (label) */
.media-note { display:flex; align-items:center; gap:12px; margin-top:20px; color:var(--text-soft); font-weight:600; }
.media-note svg { width:26px; height:26px; flex:none; color:var(--corail); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .orient { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid, .intro-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; left: 0; right: 0; top: 100%; background: var(--navy);
    padding: 12px var(--pad) 20px; border-top: 1px solid rgba(255,255,255,.12);
  }
  .nav-links.open a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .site-header { position: sticky; }
  .nav { position: relative; }
  .brand-label { display: none; }
  .grid-3, .grid-2, .orient { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .step { grid-template-columns: 48px 1fr; gap: 12px; }
  .step .num { font-size: 1.7rem; }
  .hero-logos img.round { height: 60px; width: 60px; }
  .hero-logos img.pco { height: 52px; }
  body { font-size: 16px; }
}

/* ============================================================
   v2 — Dropdown nav, destinations, feature card, pages TND
   ============================================================ */

/* ---------- Dropdown "Espace Pro" ---------- */
.nav-drop { position: relative; }
.nav-drop-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem;
  padding: 9px 14px; border-radius: 999px; transition: background .18s, color .18s;
}
.nav-drop-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.nav-drop-toggle:hover { color:#fff; background: rgba(255,255,255,.08); }
.nav-drop-toggle.active { color:#fff; background: var(--corail); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-hi);
  padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 60;
  border: 1px solid var(--line);
}
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: flex; }
.nav-drop:hover .nav-drop-toggle svg, .nav-drop.open .nav-drop-toggle svg { transform: rotate(180deg); }
.nav-drop-menu a {
  color: var(--text); padding: 11px 14px; border-radius: 9px; font-weight: 600; font-size: .95rem;
  transition: background .15s, color .15s;
}
.nav-drop-menu a:hover { background: var(--beige); color: var(--corail); }
.nav-drop-menu a.active { background: var(--corail); color:#fff; }

/* ---------- Accueil : grille destinations (1 grande + 4 petites) ---------- */
.dest-grid { display: grid; grid-template-columns: 1.05fr 1.4fr; gap: 24px; align-items: stretch; }
.dest-grid-pros { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dest-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--corail);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 30px;
  display: flex; flex-direction: column; gap: 12px; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); }
.dest-card .ico { width: 52px; height: 52px; }
.dest-card h3 { font-size: 1.35rem; }
.dest-card p { color: var(--text-soft); font-size: .98rem; margin: 0; flex: 1; }
.dest-card--big { padding: 40px; }
.dest-card--big .ico { width: 64px; height: 64px; }
.dest-card--big h3 { font-size: 1.7rem; }
.dest-card--big .btn { align-self: flex-start; margin-top: 8px; }
.dest-badge {
  display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: rgba(30,42,58,.06); color: var(--text-soft);
}
.dest-badge svg { width: 14px; height: 14px; }
.dest-badge--open { background: rgba(78,139,91,.14); color: var(--vert-pco-dk); }
.dest-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--text); }
.dest-link svg { width: 18px; height: 18px; transition: transform .2s; }
.dest-card:hover .dest-link svg { transform: translateX(4px); }

/* ---------- Feature card "Commencer par ici" ---------- */
.feature-card {
  background: var(--navy); color: #fff; border-radius: var(--r-lg);
  display: grid; grid-template-columns: 96px 1fr; gap: 32px; align-items: center;
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-hi);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content:""; position:absolute; right:-60px; top:-60px; width:240px; height:240px;
  background: radial-gradient(circle, rgba(255,75,57,.22), transparent 70%); border-radius:50%;
}
.feature-ico { color: var(--corail); position: relative; }
.feature-ico svg { width: 90px; height: 90px; }
.feature-body { position: relative; }
.feature-body .tag { background: rgba(255,255,255,.14); color: #fff; }
.feature-body h2 { color: #fff; margin: .6rem 0 .8rem; font-size: clamp(1.4rem,2.6vw,1.9rem); }
.feature-body p { color: rgba(255,255,255,.8); max-width: 60ch; }
.feature-body .btn { margin-top: 6px; }

/* ---------- Cards TND cliquables (espaces pros) ---------- */
.lock-grid--nav .card.tnd-link { cursor: pointer; }
.tnd-link { color: inherit; }
.tnd-link-cta {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .95rem;
  color: var(--text); margin-top: 6px;
}
.tnd-link-cta svg { width: 18px; height: 18px; transition: transform .2s; }
.tnd-link:hover .tnd-link-cta svg { transform: translateX(4px); }
.lock-grid--nav .lock-overlay .ov-btn svg { width: 16px; height: 16px; vertical-align: middle; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--beige); border-bottom: 1px solid var(--line); padding-block: 14px; font-size: .9rem; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-soft); font-weight: 600; }
.breadcrumb a:hover { color: var(--corail); }
.breadcrumb svg { width: 14px; height: 14px; color: var(--text-mute); transform: rotate(-90deg); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 700; }

/* ---------- Hero TND coloré ---------- */
.tnd-hero { color: #fff; padding-block: clamp(44px, 7vw, 80px); position: relative; overflow: hidden; }
.tnd-hero .container { position: relative; max-width: 820px; margin-inline: auto; }
.tnd-hero-ico { width: 64px; height: 64px; color: #fff; margin-bottom: 18px; }
.tnd-hero-ico svg { width: 64px; height: 64px; }
.tnd-hero-tag { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.tnd-hero h1 { color: #fff; }
.tnd-hero .lead { color: rgba(255,255,255,.85); margin-top: 10px; }
.tnd-hero--tsa   { background: var(--tsa); }
.tnd-hero--tdah  { background: var(--tdah); }
.tnd-hero--dys   { background: var(--dys); }
.tnd-hero--tdi   { background: var(--tdi); }
.tnd-hero--tdc   { background: var(--tdc); }
.tnd-hero--dyslexie { background: var(--dyslexie); }
.tnd-hero--dysortho { background: var(--dysortho); }

/* accent hero clair selon espace */
.hero--tsa  { border-bottom: 4px solid var(--tsa); }
.hero--dys  { border-bottom: 4px solid var(--dys); }
.hero--tdah { border-bottom: 4px solid var(--tdah); }
.hero--tdc  { border-bottom: 4px solid var(--tdc); }

/* ---------- Prose présentation ---------- */
.prose { max-width: 72ch; }
.prose p { color: var(--text-soft); font-size: 1.06rem; line-height: 1.75; }

/* ---------- Info box "pour aller plus loin" ---------- */
.info-box {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--beige); border-radius: var(--r); padding: 24px 28px; margin-top: 28px;
  border-left: 5px solid var(--corail);
}
.info-box-ico { flex: none; color: var(--corail); }
.info-box-ico svg { width: 46px; height: 46px; }
.info-box strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.info-box p { margin: 0; color: var(--text-soft); font-size: .96rem; }
.info-box > div { flex: 1; min-width: 220px; }
.info-box .btn { flex: none; }
.info-box--tsa{border-left-color:var(--tsa)} .info-box--tdah{border-left-color:var(--tdah)}
.info-box--dys{border-left-color:var(--dys)} .info-box--tdi{border-left-color:var(--tdi)}
.info-box--tdc{border-left-color:var(--tdc)} .info-box--dyslexie{border-left-color:var(--dyslexie)}
.info-box--dysortho{border-left-color:var(--dysortho)}

/* ---------- Grille de ressources (teaser verrouillé) ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.res-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  position: relative; transition: transform .2s ease, box-shadow .2s ease;
}
.res-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.res-thumb {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: linear-gradient(135deg, #e7e2da, #d9d2c6);
}
.res-thumb--pdf { background: linear-gradient(135deg, #eceae6, #ddd8cf); }
.res-thumb .play-btn { color: rgba(30,42,58,.55); }
.res-thumb .play-btn svg { width: 56px; height: 56px; }
.res-thumb .pdf-mini { color: rgba(30,42,58,.45); }
.res-thumb .pdf-mini svg { width: 48px; height: 48px; }
.res-dur {
  position: absolute; bottom: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(30,42,58,.82); color: #fff; font-size: .76rem; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
}
.res-dur svg { width: 13px; height: 13px; }
.res-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.res-meta { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text-mute); }
.res-meta svg { width: 15px; height: 15px; }
.res-body h3 { font-size: 1.08rem; }
.res-body p { color: var(--text-soft); font-size: .94rem; margin: 0; flex: 1; }
.res-lock { padding: 0 22px 18px; }
.res-lock-pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700;
  color: var(--text-soft); background: rgba(30,42,58,.06); padding: 7px 13px; border-radius: 999px;
}
.res-lock-pill svg { width: 15px; height: 15px; }
/* léger voile sur le contenu verrouillé */
.res-card[data-locked] .res-thumb::after {
  content:""; position:absolute; inset:0; background: rgba(30,42,58,.05);
}

/* Aperçu 30 sec */
.preview-toggle {
  display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .88rem; color: var(--corail); padding: 4px 0; margin-top: 4px;
}
.preview-toggle svg { width: 15px; height: 15px; transition: transform .2s; }
.preview-toggle.open svg { transform: rotate(180deg); }
.preview-panel {
  margin-top: 8px; background: var(--beige); border-radius: var(--r-sm); padding: 12px 14px;
  border-left: 3px solid var(--corail);
}
.preview-panel p { margin: 0; font-size: .88rem; color: var(--text-soft); }

/* ---------- Responsive v2 ---------- */
@media (max-width: 960px) {
  .dest-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .feature-ico svg { width: 64px; height: 64px; }
}
@media (max-width: 760px) {
  .nav-drop { width: 100%; }
  .nav-drop-toggle { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .nav-drop-menu { position: static; box-shadow: none; border: 0; background: rgba(255,255,255,.06); padding: 4px 0 4px 12px; }
  .nav-drop:hover .nav-drop-menu { display: none; }
  .nav-drop.open .nav-drop-menu { display: flex; }
  .nav-drop-menu a { color: rgba(255,255,255,.85); }
  .nav-drop-menu a:hover { background: rgba(255,255,255,.08); color:#fff; }
  .dest-grid-pros { grid-template-columns: 1fr; }
  .info-box { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   AUTH (Clerk) — boutons nav, bandeaux, pages auth
   Ajout PCO 24 — cohérent avec le design system existant
   ============================================================ */
.nav-auth { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.btn-auth {
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  border: 1.5px solid transparent; border-radius: 999px;
  padding: 8px 16px; line-height: 1; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: .18s;
  white-space: nowrap;
}
.btn-auth--ghost { color: #fff; border-color: rgba(255,255,255,.30); background: transparent; }
.btn-auth--ghost:hover { border-color: var(--corail); background: rgba(255,255,255,.06); }
.btn-auth--solid { color: #fff; background: var(--corail); border-color: var(--corail); }
.btn-auth--solid:hover { background: var(--corail-dark); border-color: var(--corail-dark); transform: translateY(-1px); }
.nav-auth [hidden] { display: none !important; }

/* Bandeau "en attente de validation" en haut de l'espace pro */
.auth-banner {
  display: none; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #FFF4E5; border-bottom: 2px solid var(--corail);
  color: var(--navy); padding: 14px 0;
}
.auth-banner.show { display: block; }
.auth-banner .container { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.auth-banner svg { width: 26px; height: 26px; color: var(--corail); flex: none; }
.auth-banner strong { font-weight: 800; }
.auth-banner p { margin: 0; font-size: .95rem; }
.auth-banner--ok { background: #EAF5EC; border-bottom-color: var(--vert-pco); }
.auth-banner--ok svg { color: var(--vert-pco); }

/* Quand un pro est approuvé, on retire les overlays de verrouillage */
body.is-approved .lock-overlay,
body.is-approved .lock-badge,
body.is-approved .res-lock { display: none !important; }
body.is-approved [data-locked] { cursor: default; }

/* Pages auth (inscription / connexion / compte / en attente) */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; box-shadow: 0 14px 40px rgba(30,42,58,.07);
}
.auth-mount { min-height: 120px; }
.auth-note { color: var(--text-soft); font-size: .92rem; margin-top: 18px; text-align: center; }
.auth-note a { color: var(--corail); font-weight: 700; }
.auth-loading { color: var(--text-soft); text-align: center; padding: 30px 0; }

/* Cibler le composant Clerk pour rester dans l'ADN visuel */
.cl-formButtonPrimary,
.cl-footerActionLink { color: #fff; }
.auth-card .cl-card,
.auth-card .cl-rootBox { box-shadow: none; border: 0; width: 100%; }

@media (max-width: 760px) {
  .nav-auth { margin-left: 0; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; }
  .btn-auth { justify-content: center; padding: 12px 14px; border-radius: 12px; }
}

/* ---------- AUTH FORMS — champs inscription ---------- */
.auth-form .form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-weight: 700; font-size: .9rem; color: var(--navy); }
.auth-form input, .auth-form select {
  font: inherit; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--text); width: 100%;
}
.auth-form input:focus, .auth-form select:focus {
  outline: none; border-color: var(--corail); box-shadow: 0 0 0 3px rgba(255,75,57,.12);
}
.auth-form input:disabled, .auth-form select:disabled { background: var(--beige); color: var(--text-soft); }
.auth-form .form-hint { color: var(--text-soft); font-size: .8rem; }
.auth-form .form-error {
  background: #FFF0EE; color: var(--corail-dark); border: 1px solid #f5c6c0;
  border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin: 4px 0 14px;
}
.account-table td { font-size: .95rem; }

/* ============================================================
   FICHE DÉTAILLÉE (page article — espace parents)
   Inspiration Clepsy, adapté à l'ADN Psychopedia
   ============================================================ */

.fiche-hero {
  background: linear-gradient(180deg, var(--beige) 0%, #fff 100%);
  padding: 30px 0 0;
}
.fiche-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .9rem; color: var(--text-soft); margin-bottom: 24px;
}
.fiche-breadcrumb a { color: var(--text-soft); }
.fiche-breadcrumb a:hover { color: var(--corail); }
.fiche-breadcrumb svg { width: 14px; height: 14px; flex: none; }
.fiche-breadcrumb .current { color: var(--text); font-weight: 600; }

.fiche-hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 56px); align-items: center;
  padding-bottom: clamp(30px, 5vw, 50px);
}
.fiche-hero-text .eyebrow { margin-bottom: 14px; }
.fiche-hero-text h1 { margin-bottom: 18px; }
.fiche-hero-text .fiche-meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  color: var(--text-soft); font-size: .94rem; margin-bottom: 22px;
}
.fiche-hero-text .fiche-meta svg { width: 16px; height: 16px; }
.fiche-hero-text .fiche-meta span { display: inline-flex; align-items: center; gap: 7px; }
.fiche-intro {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-soft);
  line-height: 1.6; max-width: 60ch; margin-bottom: 0;
}
.fiche-hero-img {
  aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 20px 50px rgba(30,42,58,.12);
  background: linear-gradient(135deg, var(--beige), var(--beige-deep));
}
.fiche-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.fiche-body { background: #fff; padding-block: clamp(40px, 6vw, 70px); }
.fiche-grid {
  display: grid; grid-template-columns: 240px 1fr;
  gap: clamp(28px, 4.5vw, 64px); align-items: start;
}
.fiche-toc {
  position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto;
  border-left: 2px solid var(--line); padding: 4px 0 4px 18px;
}
.fiche-toc h3 {
  font-size: .82rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px;
}
.fiche-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.fiche-toc li {
  counter-increment: toc; font-size: .94rem; line-height: 1.4;
  margin-bottom: 12px; position: relative; padding-left: 24px;
}
.fiche-toc li::before {
  content: counter(toc); position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--beige-deep); color: var(--navy);
  font-size: .7rem; font-weight: 800; display: grid; place-items: center;
}
.fiche-toc a { color: var(--text-soft); transition: color .15s; }
.fiche-toc a:hover { color: var(--corail); }
.fiche-toc a.active { color: var(--corail); font-weight: 700; }
.fiche-toc a.active + .toc-bar,
.fiche-toc li:has(a.active)::before { background: var(--corail); color: #fff; }

.fiche-content { max-width: 720px; font-size: 1.04rem; line-height: 1.75; }
.fiche-content h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 56px 0 18px;
  scroll-margin-top: 90px; position: relative; padding-bottom: 12px;
}
.fiche-content h2::after {
  content: ""; display: block; width: 48px; height: 3px; border-radius: 2px;
  background: var(--corail); margin-top: 12px;
}
.fiche-content h2:first-of-type { margin-top: 0; }
.fiche-content h3 {
  font-size: 1.18rem; margin: 32px 0 12px; color: var(--navy);
}
.fiche-content p { margin: 0 0 16px; color: var(--text); }
.fiche-content ul, .fiche-content ol { margin: 0 0 20px; padding-left: 24px; }
.fiche-content ul li, .fiche-content ol li { margin-bottom: 8px; }
.fiche-content strong { color: var(--navy); font-weight: 700; }
.fiche-content a:not(.btn):not(.fiche-back) { color: var(--corail); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fiche-content a:not(.btn):not(.fiche-back):hover { color: var(--corail-dark); }

/* Buttons inside fiches keep their own colors (override .fiche-content a cascade) */
.fiche-content a.btn { text-decoration: none; }
.fiche-content a.btn--corail { color: #fff; }
.fiche-content a.btn--corail:hover { color: #fff; }
.fiche-content a.btn--vert { color: #fff; }
.fiche-content a.btn--ghost { color: var(--text); }
.fiche-content a.btn--ghost:hover { color: var(--corail); }

.fiche-content blockquote {
  margin: 24px 0; padding: 18px 22px; border-radius: var(--r);
  background: var(--beige); border-left: 4px solid var(--corail);
  font-size: 1rem; color: var(--navy);
}
.fiche-content blockquote p:last-child { margin-bottom: 0; }
.fiche-content blockquote strong { color: var(--corail-dark); }

.fiche-myth { margin: 18px 0; padding: 16px 20px; background: #FFF7F5; border-radius: var(--r); border: 1px solid #FFE0D9; }
.fiche-myth h3 { margin: 0 0 8px; color: var(--corail-dark); font-style: italic; font-size: 1.05rem; }
.fiche-myth p { margin: 0; }

.fiche-resume {
  margin: 40px 0 0; padding: 28px 30px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #EAF5EC 0%, #d8eedc 100%);
  border-left: 5px solid var(--vert-pco);
}
.fiche-resume h2 { margin-top: 0; }
.fiche-resume h2::after { background: var(--vert-pco); }
.fiche-resume ul { padding-left: 22px; }
.fiche-resume li { margin-bottom: 10px; }

.fiche-actions {
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.fiche-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-soft); font-weight: 700; font-size: .95rem;
  padding: 12px 18px; border-radius: 999px; transition: .18s;
}
.fiche-back:hover { color: var(--corail); background: var(--beige); }
.fiche-back svg { width: 18px; height: 18px; }

.fiche-footer {
  background: var(--beige); padding: 30px 0; margin-top: 40px;
  font-size: .88rem; color: var(--text-soft); line-height: 1.6;
}
.fiche-footer p { margin-bottom: 8px; }
.fiche-footer em { font-style: italic; }

/* Responsive fiche */
@media (max-width: 960px) {
  .fiche-hero-grid { grid-template-columns: 1fr; }
  .fiche-hero-img { order: -1; max-width: 480px; }
  .fiche-grid { grid-template-columns: 1fr; }
  .fiche-toc {
    position: static; max-height: none; border-left: 0; padding: 0;
    background: var(--beige); border-radius: var(--r); padding: 20px 22px; margin-bottom: 8px;
  }
}
@media (max-width: 600px) {
  .fiche-content { font-size: 1rem; }
  .fiche-content h2 { font-size: 1.4rem; }
  .fiche-actions { flex-direction: column; align-items: stretch; }
  .fiche-actions .btn { justify-content: center; }
}

/* ============================================================
   FICHE — Renforcement visibilité marque PCO 24 × Psychopedia
   ============================================================ */

/* Bandeau de marque sous le header */
.fiche-brandbar {
  background: var(--corail);
  color: #fff;
  padding: 8px 0;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.fiche-brandbar .container {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  flex-wrap: wrap;
}
.fiche-brandbar-label { color: #fff; }
.fiche-brandbar-sep { color: rgba(255,255,255,.55); }
.fiche-brandbar-url {
  color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px;
}
.fiche-brandbar-url:hover { color: var(--beige); }

/* Filigrane marque sur l'illustration */
.fiche-hero-img { position: relative; }
.fiche-hero-img.no-img {
  background: linear-gradient(135deg, var(--beige) 0%, var(--beige-deep) 50%, #fff 100%);
}
.fiche-hero-watermark {
  position: absolute; bottom: 16px; right: 16px;
  background: rgba(255,255,255,.94);
  padding: 10px 14px 10px 12px;
  border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 14px rgba(30,42,58,.18);
  backdrop-filter: blur(4px);
}
.fiche-hero-watermark img {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
}
.fiche-hero-watermark span {
  font-size: .82rem; font-weight: 800; color: var(--navy); line-height: 1.15;
}
.fiche-hero-watermark small {
  font-size: .68rem; font-weight: 600; color: var(--text-soft); letter-spacing: .02em;
}

/* Branding visible dans le sommaire latéral */
.fiche-toc-brand {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.fiche-toc-brand img {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  border: 2px solid var(--beige);
}
.fiche-toc-brand strong {
  display: block; font-size: .9rem; color: var(--navy); font-weight: 800;
  margin-bottom: 2px;
}
.fiche-toc-brand span {
  font-size: .76rem; color: var(--text-soft); line-height: 1.35;
}

/* Signature renforcée en pied de fiche */
.fiche-signature {
  display: flex; align-items: center; gap: 16px;
  background: #fff; padding: 18px 22px; border-radius: var(--r);
  border: 1px solid var(--line); margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.fiche-sig-logo {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  border: 2px solid var(--beige);
}
.fiche-sig-text { line-height: 1.4; }
.fiche-sig-text strong {
  display: block; color: var(--navy); font-size: 1rem; font-weight: 800;
  margin-bottom: 4px;
}
.fiche-sig-text span { font-size: .88rem; color: var(--text-soft); }
.fiche-sig-text a { color: var(--corail); font-weight: 700; }

@media (max-width: 700px) {
  .fiche-hero-watermark { bottom: 10px; right: 10px; padding: 8px 10px; }
  .fiche-hero-watermark img { width: 28px; height: 28px; }
  .fiche-hero-watermark span { font-size: .72rem; }
  .fiche-signature { flex-direction: column; align-items: flex-start; text-align: left; }
}
