/*
Theme Name: MagPatients Editorial
Description: Direction éditoriale MagPatients, données et contenus WordPress natifs.
Template: magpatients
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: magpatients-editorial
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Approved identity and compatible parent tokens. No external fonts. */
body.mped {
  --mped-teal:#00949d; --mped-teal-text:#00757d; --mped-pink:#e6007e;
  --mped-ink:#373533; --mped-body:#525252; --mped-pale:#f7fcfc;
  --mped-rose:#993365; --mped-soft:#6cc4c6; --mped-coral:#f09799;
  --accent:var(--mped-teal-text); --accent-2:var(--mped-pink); --accent-press:#00636a;
  --ink:var(--mped-ink); --ink-2:var(--mped-body); --muted:#595959;
  --bg:#fff; --bg-alt:var(--mped-pale); --line:#d2e6e7; --radius:24px;
  --display:Georgia,'Times New Roman',serif; --body:Arial,Helvetica,sans-serif; --wrap:1180px;
  margin:0; background:#fff; color:var(--mped-ink); font:16px/1.6 Arial,Helvetica,sans-serif;
}
body.mped a:hover { text-decoration:underline; text-underline-offset:4px; }
body.mped :is(a,button,input,textarea,select,summary,[tabindex]):focus-visible { outline:3px solid var(--mped-rose); outline-offset:4px; }
.mped-skip { position:absolute; top:8px; left:12px; z-index:99999; padding:12px 20px; background:#fff; color:#373533; transform:translateY(-200%); }
.mped-skip:focus { transform:none; }
.mped-shell { max-width:1180px; margin:0 auto; padding:0 36px; }
.mped-wrap { width:calc(100% - 64px); max-width:970px; margin:0 auto; min-width:0; }
.mped-header { background:#fff; position:relative; z-index:10; }
.mped-top { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-top:26px; padding-bottom:24px; position:relative; }
.mped-brand { display:block; flex:0 0 auto; font:700 35px/1 Arial,Helvetica,sans-serif; color:var(--mped-ink); letter-spacing:-1.7px; min-height:44px; }
.mped-brand:hover { text-decoration:none; }
.mped-brand>span { color:var(--mped-pink); }
.mped-brand>small { display:block; margin-top:8px; font:11px/1.5 Arial,Helvetica,sans-serif; text-transform:uppercase; letter-spacing:2px; color:var(--mped-body); }
.mped-desktop { display:flex; align-items:center; gap:24px; margin-left:auto; font-size:14px; }
.mped-desktop a { display:flex; align-items:center; min-height:44px; white-space:nowrap; color:var(--mped-ink); }
.mped-ribbon { display:flex; height:5px; }
.mped-ribbon i { flex:1; background:var(--mped-soft); }
.mped-ribbon i:nth-child(2) { background:#326568; }
.mped-ribbon i:nth-child(3) { background:var(--mped-rose); }
.mped-ribbon i:nth-child(4) { background:var(--mped-coral); }
.mped-ribbon i:nth-child(5) { background:var(--mped-pink); }
.mped-top summary { cursor:pointer; min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; list-style:none; font:700 14px/1.4 Arial,Helvetica,sans-serif; color:var(--mped-teal-text); }
.mped-top summary::-webkit-details-marker { display:none; }
.mped-top details[open]>summary { text-decoration:underline; text-underline-offset:4px; }
.mped-mobile-menu { display:none; }
.mped-search-panel { position:absolute; right:36px; top:100%; width:min(520px,calc(100% - 72px)); padding:24px; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 12px 24px #37353318; z-index:20; }
.mped-search-form { display:flex; gap:10px; align-items:stretch; width:100%; font:16px/1.5 Arial,Helvetica,sans-serif; }
.mped-search-form label { display:block; flex:1; min-width:0; margin:0; }
.mped-search-form input { width:100%; min-width:0; min-height:44px; padding:10px 14px; border:1px solid #8aadb0; border-radius:8px; font:inherit; color:var(--mped-ink); background:#fff; }
.mped-search-form button { min-height:44px; padding:10px 16px; border:0; border-radius:8px; color:#fff; background:var(--mped-teal-text); font:700 14px/1.5 Arial,Helvetica,sans-serif; }
.mped-topics { display:flex; gap:24px; justify-content:center; padding:14px 0; overflow-x:auto; scrollbar-width:thin; }
.mped-topics a { display:flex; align-items:center; min-height:44px; color:var(--mped-teal-text); white-space:nowrap; font-size:13px; }
.mped-topics a:first-child,.mped-topics a[aria-current] { color:var(--mped-rose); font-weight:700; }
:is(.mped-home,.mped-archive,.mped-author,.mped-directory) :is(h1,h2,h3) { font-family:Georgia,'Times New Roman',serif; font-weight:400; line-height:1.2; text-transform:none; overflow-wrap:anywhere; margin:0; color:var(--mped-ink); }
:is(.mped-home,.mped-archive,.mped-author,.mped-directory) h1 { font-size:36px; letter-spacing:-1px; }
:is(.mped-home,.mped-archive,.mped-author,.mped-directory) h2 { font-size:32px; letter-spacing:-.6px; color:var(--mped-teal-text); }
.mped-welcome { text-align:center; margin:28px 0 32px; }
.mped-welcome h1 em { font-style:normal; color:var(--mped-teal-text); }
.mped-feature { display:block; position:relative; aspect-ratio:1200/424; overflow:hidden; border-radius:24px; background:var(--mped-ink); color:#fff; }
.mped-feature>img { position:absolute; width:100%; height:100%; object-fit:cover; object-position:50% 45%; }
.mped-feature::after { content:''; position:absolute; inset:25% 0 0; background:linear-gradient(transparent,#191918ed); pointer-events:none; }
.mped-feature-copy { position:absolute; z-index:1; left:24px; right:24px; bottom:24px; max-width:850px; }
.mped-feature .mped-feature-copy h2 { font-size:27px; line-height:1.2; font-weight:700; letter-spacing:-.3px; color:#fff; }
.mped-feature .mped-kicker { display:inline-flex; background:#fff; color:var(--mped-teal-text); border-radius:6px; padding:4px 10px; margin-bottom:12px; font-size:11px; }
.mped-feature time { display:block; margin-top:9px; font-size:12px; color:#fff; }
.mped-feature-no-image::after { content:none; }
.mped-feature-no-image { background:var(--mped-pale); }
.mped-feature-no-image .mped-feature-copy h2,.mped-feature-no-image time { color:var(--mped-ink); }
.mped-rail { display:flex; gap:16px; overflow-x:auto; padding:1px 1px 12px; margin-top:16px; scroll-snap-type:x proximity; scrollbar-width:thin; scrollbar-color:var(--mped-soft) transparent; }
.mped-card { display:flex; flex-direction:column; min-width:0; border:1px solid #00949d26; border-radius:24px; background:#fff; overflow:hidden; scroll-snap-align:start; }
.mped-rail .mped-card { flex:0 0 242.5px; }
.mped-card-image { display:block; aspect-ratio:16/9; overflow:hidden; }
.mped-card-image img { width:100%; height:100%; object-fit:cover; }
.mped-card-body { display:flex; flex-direction:column; flex:1; padding:16px 24px; }
.mped-kicker { font:700 11px/1.5 Arial,Helvetica,sans-serif; color:var(--mped-teal-text); letter-spacing:.5px; margin-bottom:8px; }
.mped-card .mped-card-body h3 { font-size:23px; line-height:1.3; }
.mped-rail .mped-card-body h3 { font-size:18px; }
.mped-card h3 a { color:var(--mped-ink); }
.mped-card-excerpt { color:var(--mped-body); font-size:14px; line-height:1.6; margin:12px 0 0; }
.mped-rail .mped-card-excerpt { display:none; }
.mped-card-meta { display:flex; flex-direction:column; gap:3px; color:var(--mped-body); font-size:12px; padding-top:16px; margin-top:auto; }
.mped-card-meta a { color:var(--mped-teal-text); }
.mped-section { margin-top:48px; }
.mped-section-head { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:24px; }
.mped-section-head>a { display:flex; align-items:center; min-height:44px; flex-shrink:0; color:var(--mped-teal-text); font-size:13px; }
.mped-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.mped-empty-category { display:flex; align-items:center; min-height:72px; padding:24px; background:var(--mped-pale); color:var(--mped-teal-text); border-radius:24px; }
.mped-team-intro { margin:0 0 28px; color:var(--mped-body); }
.mped-team-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.mped-person { min-width:0; padding:0; }
.mped-portrait { display:block; width:112px; height:112px; object-fit:cover; border-radius:50%; margin-bottom:20px; }
.mped-initial { display:flex; align-items:center; justify-content:center; color:var(--mped-teal-text); background:var(--mped-pale); font:400 44px/1 Georgia,serif; }
.mped-person h3,.mped-team-directory .mped-person h2 { font-size:22px; letter-spacing:-.3px; line-height:1.25; }
.mped-person :is(h2,h3) a { color:var(--mped-ink); }
.mped-role { color:var(--mped-teal-text); font:700 14px/1.5 Arial,Helvetica,sans-serif; margin:12px 0; overflow-wrap:anywhere; }
.mped-bio { color:var(--mped-body); font:15px/1.7 Arial,Helvetica,sans-serif; overflow-wrap:anywhere; }
.mped-bio p { margin:0 0 1em; }
.mped-socials { list-style:none; padding:0; margin:12px 0; display:flex; flex-wrap:wrap; gap:4px 12px; font-size:14px; }
.mped-socials a,.mped-profile-link { display:inline-flex; align-items:center; min-height:44px; color:var(--mped-teal-text); text-decoration:underline; text-underline-offset:4px; }
.mped-profile-link { font-size:14px; }
.mped-charter { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:32px; background:var(--mped-pale); border-radius:24px; }
.mped-pill { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border-radius:99px; color:#fff; background:var(--mped-teal-text); padding:10px 25px; font-size:14px; }
.mped-archive-head { padding:30px 0; }
.mped-archive-description { margin-top:16px; max-width:70ch; color:var(--mped-body); }
.mped-archive-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.mped-archive-grid .mped-card h3 { font-size:21px; }
.mped-archive-head .mped-search-form { margin-top:24px; max-width:650px; }
.mped-crumbs { font-size:13px; padding-top:20px; }
.mped-crumbs ol { display:flex; flex-wrap:wrap; align-items:center; list-style:none; padding:0; margin:0; gap:8px 12px; }
.mped-crumbs li+li::before { content:'›'; margin-right:12px; color:var(--mped-body); }
.mped-crumbs a { display:inline-flex; align-items:center; min-height:44px; color:var(--mped-teal-text); }
.mped-empty { padding:30px 0; color:var(--mped-body); }
.mped-pagination { margin-top:40px; }
.mped-pagination ul { display:flex; flex-wrap:wrap; justify-content:center; list-style:none; padding:0; gap:8px; }
.mped-pagination .page-numbers { min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; padding:8px 14px; background:var(--mped-pale); border-radius:8px; }
.mped-pagination .current { background:var(--mped-teal-text); color:#fff; }
.mped-author-head { display:flex; gap:32px; align-items:flex-start; padding-top:24px; }
.mped-author-head .mped-portrait { flex:0 0 160px; width:160px; height:160px; }
.mped-author-details { min-width:0; }
.mped-author-details .mped-bio { font-size:17px; max-width:75ch; margin-top:20px; }
.mped-publications { margin-top:24px; }
.mped-publications h2 { font-size:24px; }
.mped-publications ul { padding-left:20px; }
.mped-publications a { display:inline-flex; align-items:center; min-height:44px; color:var(--mped-teal-text); text-decoration:underline; text-underline-offset:4px; overflow-wrap:anywhere; }
.mped-author .mped-section>h2 { margin-bottom:24px; }
.mped-team-directory { grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px; }
.mped-footer { background:var(--mped-pale); color:var(--mped-body); margin-top:64px; padding:32px 0 20px; font-size:13px; }
.mped-footer-inner { display:flex; justify-content:space-between; align-items:flex-start; gap:32px; }
.mped-footer nav { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:0 20px; max-width:600px; }
.mped-footer nav a { display:flex; align-items:center; min-height:44px; color:var(--mped-teal-text); }
.mped-footer-note { display:flex; justify-content:space-between; gap:24px; margin-top:24px; font-size:12px; }

/* Inherited article and page flow stays intact. Chrome and heading overrides
   target theme components, not contact forms, plugin controls or body blocks. */
body.mped .single__title,body.mped .page-head__title,body.mped .card__title,body.mped .section-head__title,body.mped .widget__title,body.mped .author-box__name,body.mped .error404__title { font-family:Georgia,'Times New Roman',serif; font-weight:400; text-transform:none; line-height:1.2; }
body.mped .page-head,body.mped .section-head,body.mped .widget__title { border:0; }
body.mped .section-head__title span,body.mped .widget__title span { border:0; }
body.mped .single__head .meta { border:0; }
body.mped .page-content,body.mped .single__content { font-family:Arial,Helvetica,sans-serif; }
body.mped .prose h2,body.mped .prose h3 { font-family:Georgia,'Times New Roman',serif; font-weight:400; color:var(--mped-teal-text); }
body.mped .author-box { border-left:0; border-radius:24px; }
body.mped .author-box__bio { overflow-wrap:anywhere; }
body.mped .card__media { border-radius:24px; }
body.mped .card--mini { border-top:0; }
body.mped .card--mini .card__media { border-radius:8px; }
body.mped .card__img { transition:none; }
body.mped .card:hover .card__img { transform:none; }
body.mped .badge { background:var(--mped-teal-text); font-family:Arial,Helvetica,sans-serif; }
body.mped .single__title { font-size:clamp(30px,4vw,46px); }
body.mped .single-layout { gap:36px; }
body.mped .mped-gone { padding:48px 0; max-width:70ch; }
body.mped .mped-gone h1 { font:400 36px/1.2 Georgia,'Times New Roman',serif; }
body.mped .mped-gone a { min-height:44px; display:inline-flex; align-items:center; }

@media(max-width:1060px) {
  .mped-desktop { gap:16px; font-size:13px; }
  .mped-top { gap:16px; }
  .mped-team-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; }
  .mped-archive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:850px) {
  .mped-desktop { display:none; }
  .mped-mobile-menu { display:block; }
  .mped-search-disclosure { margin-left:auto; }
  .mped-mobile-menu[open] nav { position:absolute; top:100%; left:0; right:0; z-index:30; background:#fff; padding:20px max(20px,env(safe-area-inset-right)) 24px max(20px,env(safe-area-inset-left)); box-shadow:0 10px 20px #37353318; max-height:70dvh; overflow-y:auto; }
  .mped-mobile-menu nav>a { display:flex; align-items:center; min-height:44px; color:var(--mped-ink); padding:8px 0; }
  .mped-mobile-menu .mped-search-form { margin-top:16px; }
}
@media(max-width:700px) {
  .mped-shell { padding-left:20px; padding-right:20px; }
  .mped-wrap { width:calc(100% - 32px); }
  .mped-top { padding-top:21px; padding-bottom:20px; gap:12px; flex-wrap:wrap; }
  .mped-brand { font-size:30px; }
  .mped-brand>small { font-size:9px; letter-spacing:1.4px; }
  .mped-top summary { font-size:12px; }
  .mped-topics { justify-content:flex-start; gap:20px; padding-top:5px; padding-bottom:5px; }
  .mped-topics a { font-size:12px; }
  .mped-welcome { margin:24px 0 27px; }
  .mped-welcome h1 { font-size:30px; line-height:1.2; letter-spacing:-.7px; max-width:320px; margin:auto; }
  .mped-feature { aspect-ratio:1/1; }
  .mped-feature>img { object-position:57% 45%; }
  .mped-feature .mped-feature-copy h2 { font-size:23px; line-height:1.2; }
  .mped-feature-copy { left:24px; right:24px; bottom:24px; }
  .mped-feature .mped-kicker { font-size:10px; margin-bottom:10px; }
  .mped-feature time { font-size:11px; }
  .mped-rail .mped-card { flex-basis:83%; }
  .mped-rail .mped-card h3 { font-size:21px; }
  .mped-section { margin-top:40px; }
  .mped-section-head { margin-bottom:20px; gap:15px; align-items:flex-start; }
  .mped-section-head h2 { font-size:27px; }
  .mped-section-head>a { font-size:11px; }
  .mped-home .mped-card-grid { display:flex; overflow-x:auto; scroll-snap-type:x proximity; gap:16px; padding:1px 1px 12px; }
  .mped-home .mped-card-grid .mped-card { flex:0 0 83%; }
  .mped-card .mped-card-body h3 { font-size:21px; }
  .mped-team-grid,.mped-team-directory { grid-template-columns:1fr; gap:32px; }
  .mped-charter { flex-direction:column; align-items:flex-start; padding:26px 24px; }
  .mped-author-head { flex-direction:column; gap:16px; }
  :is(.mped-archive,.mped-author,.mped-directory) h1 { font-size:30px; }
  .mped-archive-grid { grid-template-columns:1fr; }
  .mped-footer-inner,.mped-footer-note { flex-direction:column; gap:20px; }
  .mped-footer nav { justify-content:flex-start; gap:0 16px; }
  .mped-search-panel { left:16px; right:16px; width:auto; padding:16px; }
}
@media(max-width:380px) {
  .mped-brand { font-size:27px; }
  .mped-brand small { font-size:8px; }
  .mped-top { gap:8px; }
  .mped-search-form { flex-direction:column; }
  .mped-section-head { flex-direction:column; gap:4px; }
}
@media(prefers-reduced-motion:reduce) {
  body.mped *,body.mped *::before,body.mped *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
