/* =========================================================================
   Myndeo — Pages de collection (index + détail) et pages contenu
   ========================================================================= */

/* Bandeau héros de page interne */
.page-hero { position: relative; overflow: hidden; }
.page-hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 40px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.page-hero h1 { font-family: var(--font-head); font-weight: 700; font-size: 48px; letter-spacing: -.03em; line-height: 1.04; color: var(--ink); margin: 14px 0 0; }
.page-hero .sub { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 620px; margin: 20px 0 0; }
.page-hero .hero-cta { margin-top: 30px; }

/* ---- Index de collection : grille de cartes ---- */
.coll-intro { max-width: 720px; }
.coll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.coll-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line-10); border-radius: var(--radius);
  padding: 26px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.coll-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16,28,54,.10); border-color: var(--accent-28); }
.coll-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-14); display: flex; align-items: center; justify-content: center; font-size: 25px; margin-bottom: 18px; }
.coll-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 20px; margin: 0 0 8px; color: var(--ink); }
.coll-card p { color: var(--text); font-size: 14.5px; line-height: 1.6; margin: 0 0 16px; }
.coll-card .more { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---- Détail : héros deux colonnes ---- */
.detail-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.detail-hero h1 .hl { color: var(--accent); }
.hero-bullets { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 0; }
.hero-bullets div { display: flex; align-items: center; gap: 11px; color: var(--ink-2); font-size: 15.5px; }
.hero-bullets .ck { color: var(--accent); font-size: 17px; }
.detail-hero-visual {
  border-radius: 22px; background: linear-gradient(155deg, var(--accent), var(--accent-deep));
  color: #fff; padding: 30px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 24px 60px rgba(124,77,255,.35);
}
.detail-hero-visual .dv-emoji { font-size: 46px; }
.detail-hero-visual .dv-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.detail-hero-visual .dv-fig { background: rgba(255,255,255,.12); border-radius: 14px; padding: 16px; }
.detail-hero-visual .dv-fig .f { font-family: var(--font-head); font-weight: 700; font-size: 26px; }
.detail-hero-visual .dv-fig .l { font-size: 12.5px; color: rgba(255,255,255,.8); margin-top: 2px; }

/* ---- Problème / Solution (sans / avec) ---- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pc-col { background: var(--card); border: 1px solid var(--line-10); border-radius: var(--radius); padding: 28px; }
.pc-col.neg { background: #FBF3F3; border-color: #F1DADA; }
.pc-col.pos { background: #F1FAF6; border-color: #CFEBDD; }
.pc-col h3 { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.pc-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pc-col li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.pc-col.neg li::before { content: "✕"; color: #C2504E; font-weight: 700; }
.pc-col.pos li::before { content: "✓"; color: #1E9E6A; font-weight: 700; }

/* ---- Grille de fonctionnalités / cas d'usage ---- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card { background: var(--card); border: 1px solid var(--line-10); border-radius: var(--radius); padding: 26px; }
.feat-card .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-14); display: flex; align-items: center; justify-content: center; font-size: 23px; margin-bottom: 16px; }
.feat-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 18px; margin: 0 0 8px; }
.feat-card p { color: var(--text); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ---- Étapes ---- */
.steps-list { display: flex; flex-direction: column; gap: 4px; max-width: 780px; margin: 0 auto; }
.step-row { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line-08); }
.step-row:last-child { border-bottom: 1px solid var(--line-08); }
.step-row .n { flex: none; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--accent); width: 34px; }
.step-row .t { font-weight: 600; font-size: 17px; color: var(--ink); }
.step-row .d { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 4px; }

/* ---- Bande de stats ---- */
.stats-band { background: linear-gradient(155deg, var(--accent), var(--accent-deep)); border-radius: 24px; padding: 44px; }
.stats-band .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats-band .st { text-align: center; color: #fff; }
.stats-band .st .f { font-family: var(--font-head); font-weight: 700; font-size: 46px; letter-spacing: -.03em; }
.stats-band .st .l { font-size: 14px; color: rgba(255,255,255,.82); margin-top: 4px; }

/* ---- Témoignage large ---- */
.testi-wide { max-width: 900px; margin: 0 auto; background: var(--card); border: 1px solid var(--line-10); border-radius: var(--radius); padding: 40px; text-align: center; }
.testi-wide .stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 16px; }
.testi-wide p { font-family: var(--font-head); font-weight: 500; font-size: 24px; line-height: 1.45; color: var(--ink); margin: 0 0 22px; }
.testi-wide .who { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-wide .av { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-16); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---- FAQ (accordéon) ---- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line-10); border-radius: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 22px; font-size: 16.5px; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq-q .chev { color: var(--accent); transition: transform .2s ease; flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; color: var(--text); font-size: 15px; line-height: 1.65; margin: 0; }

/* ---- CTA compact réutilisable ---- */
.cta-band { max-width: var(--wrap); margin: 0 auto; padding: 20px 24px 80px; }
.cta-band .inner { border-radius: 28px; background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 55%, #2DA8E0 120%); padding: 60px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-family: var(--font-head); font-weight: 700; font-size: 38px; color: #fff; margin: 0; letter-spacing: -.02em; }
.cta-band p { color: rgba(255,255,255,.88); font-size: 17px; max-width: 520px; margin: 16px auto 0; line-height: 1.6; }
.cta-band .acts { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---- Intégrations : catalogue ---- */
.cat-group { margin-bottom: 40px; }
.cat-group h2 { font-family: var(--font-head); font-weight: 700; font-size: 22px; margin: 0 0 4px; }
.cat-group .desc { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tool-card { display: flex; align-items: center; gap: 13px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-10); text-decoration: none; color: inherit; transition: border-color .14s ease, transform .14s ease; }
.tool-card:hover { border-color: var(--accent-28); transform: translateY(-2px); }
.tool-card .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line-08); display: flex; align-items: center; justify-content: center; }
.tool-card .ic img { width: 24px; height: 24px; }
.tool-card .nm { font-weight: 600; font-size: 15px; }
.tool-card .cat { font-size: 12.5px; color: var(--muted); }

/* ---- Formations ---- */
.for-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.for-tool { background: var(--card); border: 1px solid var(--line-10); border-radius: 16px; padding: 22px; text-decoration: none; color: inherit; transition: border-color .14s, transform .14s; }
.for-tool:hover { border-color: var(--accent-28); transform: translateY(-2px); }
.for-tool .logo { width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid var(--line-08); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.for-tool .logo img { width: 26px; height: 26px; }
.for-tool h3 { font-family: var(--font-head); font-size: 18px; margin: 0 0 10px; }
.for-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.for-tag { font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--accent-12); padding: 3px 9px; border-radius: 999px; }
.for-courses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.for-course { background: var(--card); border: 1px solid var(--line-10); border-radius: 16px; padding: 24px; text-decoration: none; color: inherit; transition: border-color .14s, transform .14s; }
.for-course:hover { border-color: var(--accent-28); transform: translateY(-2px); }
.for-course .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-14); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.for-course .dur { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-12); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.for-course h3 { font-family: var(--font-head); font-size: 18px; margin: 0 0 8px; }
.for-course p { color: var(--text); font-size: 14px; line-height: 1.55; margin: 0; }

/* ---- Stat chips (bandeau stats sous héros) ---- */
.stat-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.stat-chip { background: var(--card); border: 1px solid var(--line-10); border-radius: 14px; padding: 20px; text-align: center; }
.stat-chip .f { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--ink); }
.stat-chip .l { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---- Encyclopédie ---- */
.alpha-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.alpha-nav a { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--line-10); }
.alpha-nav a:hover { border-color: var(--accent); color: var(--accent); }
.alpha-nav .off { color: var(--muted-3); opacity: .5; pointer-events: none; }
.term-letter { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--accent); margin: 36px 0 16px; }
.term-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.term-card { background: var(--card); border: 1px solid var(--line-10); border-radius: 14px; padding: 20px; text-decoration: none; color: inherit; transition: border-color .14s, transform .14s; }
.term-card:hover { border-color: var(--accent-28); transform: translateY(-2px); }
.term-card .cat { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.term-card h3 { font-family: var(--font-head); font-size: 18px; margin: 8px 0 6px; }
.term-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; }
.term-body { max-width: 760px; margin: 0 auto; }
.term-body p { color: var(--text); font-size: 16.5px; line-height: 1.7; margin: 0 0 18px; }
.term-body h2 { font-size: 24px; margin: 32px 0 12px; }
.related-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ---- Études de cas : filtres + grille ---- */
.case-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 28px; }
.case-filter { font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-10); background: var(--card); color: var(--text); cursor: pointer; }
.case-filter.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.case-narrative { max-width: 820px; margin: 0 auto; }
.case-narrative .block { padding: 26px 0; border-top: 1px solid var(--line-08); }
.case-narrative .lbl { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.case-narrative p { color: var(--text); font-size: 16.5px; line-height: 1.7; margin: 0; }
.case-narrative ul { margin: 12px 0 0; padding-left: 20px; color: var(--text); font-size: 16px; line-height: 1.7; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line-10); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid #CBD5E1; border-radius: 11px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; outline: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,77,255,.18); }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { color: #C2504E; font-size: 13px; margin-top: 6px; }
.field.has-error input, .field.has-error textarea { border-color: #E3A0A0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio label { display: inline-flex; padding: 9px 15px; border: 1px solid #CBD5E1; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; margin: 0; transition: all .14s ease; }
.chip-radio input:checked + label { background: var(--accent); color: #fff; border-color: var(--accent); }
.contact-aside { background: linear-gradient(155deg, var(--accent), var(--accent-deep)); color: #fff; border-radius: var(--radius); padding: 32px; }
.contact-aside h3 { color: #fff; font-size: 22px; margin: 0 0 12px; }
.contact-aside p { color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.contact-aside .line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.contact-aside a { color: #fff; }

/* ---- Contact chatbot ---- */
.contact-left { display: flex; flex-direction: column; gap: 22px; }
.chatbot { background: var(--card); border: 1px solid var(--line-10); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-height: 460px; box-shadow: var(--shadow-card); }
.chatbot[hidden] { display: none; }
.cb-group-logos { display: flex; align-items: center; gap: 16px; }
.cb-group-logos img { height: 18px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.cb-head { display: flex; align-items: center; gap: 8px; padding: 16px 20px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; font-weight: 700; font-family: var(--font-head); }
.cb-head .cb-ava { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.cb-msgs { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 420px; }
.cb-msg { max-width: 80%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.cb-bot { align-self: flex-start; background: var(--panel); color: var(--ink); border-bottom-left-radius: 5px; }
.cb-user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.cb-input { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line-08); align-items: center; }
.cb-field { flex: 1; min-width: 180px; padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 11px; font-family: inherit; font-size: 15px; outline: none; }
.cb-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,77,255,.18); }
textarea.cb-field { min-height: 70px; resize: vertical; width: 100%; }
.cb-send { flex: none; width: 46px; height: 46px; border: none; border-radius: 11px; background: var(--accent); color: #fff; font-size: 20px; cursor: pointer; box-shadow: var(--shadow-accent-sm); }
.cb-chip { padding: 9px 15px; border: 1px solid #CBD5E1; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; transition: all .14s ease; }
.cb-chip:hover { background: var(--accent-14); border-color: var(--accent); }
.cb-chip.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.cb-validate { width: auto; padding: 0 18px; font-size: 15px; }
.cb-switch { background: none; border: none; border-top: 1px solid var(--line-08); padding: 12px; font-size: 13px; color: var(--muted); cursor: pointer; font-family: inherit; }
.cb-switch:hover { color: var(--accent); }

/* ---- Équipe ---- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { text-align: center; }
.team-photo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; background: var(--accent-14); display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--accent); }
.team-card .nm { font-weight: 600; font-size: 16px; color: var(--ink); }
.team-card .rl { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---- FAQ page ---- */
.faq-cat { margin-bottom: 40px; }
.faq-cat h2 { font-family: var(--font-head); font-size: 22px; margin: 0 0 16px; }

/* ---- Prose (mentions légales) ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose p { color: var(--text); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }

/* ---- Merci / 404 ---- */
.center-page { max-width: 620px; margin: 0 auto; text-align: center; padding: 80px 24px 100px; }
.center-page .big { font-family: var(--font-head); font-weight: 700; font-size: 90px; color: var(--accent); letter-spacing: -.04em; line-height: 1; }
.center-page h1 { font-size: 36px; margin: 18px 0 12px; }
.center-page p { color: var(--text); font-size: 17px; line-height: 1.6; margin: 0 auto 28px; max-width: 480px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; gap: 32px; }
  .page-hero h1 { font-size: 38px; }
  .coll-grid, .feat-grid, .term-grid, .related-terms { grid-template-columns: 1fr 1fr; }
  .for-tools, .for-courses { grid-template-columns: 1fr 1fr; }
  .stats-band .grid, .stat-chips { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .pros-cons { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .coll-grid, .feat-grid, .term-grid, .related-terms, .tool-grid, .for-tools, .for-courses { grid-template-columns: 1fr; }
  .stats-band .grid, .stat-chips { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 30px; }
}
