/* ══════════════════════════════════════════════════════
   RADIOLOGIE-COCHIN.FR — Thème AP-HP
   Charte graphique officielle AP-HP
   Bleu : #003580 · Vert : #00843D · Rouge urgence : #C1352B
   Police : Marianne (AP-HP) → fallback system-ui
   ══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --bleu:        #003580;
  --bleu-clair:  #e8eef7;
  --bleu-hover:  #002766;
  --vert:        #00843D;
  --vert-clair:  #e6f4ec;
  --rouge:       #C1352B;
  --rouge-clair: #fdf0ef;
  --gris:        #f4f5f6;
  --gris-bord:   #d9dde3;
  --texte:       #1a1a1a;
  --texte-doux:  #4a4a4a;
  --blanc:       #ffffff;
  --max-width:   1180px;
  --rayon:       3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--texte);
  background: #fff;
  line-height: 1.6;
}

a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Barre institutionnelle ── */
.aphp-topbar {
  background: var(--bleu);
  color: white;
  font-size: 12px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 36px;
  gap: 24px;
}
.aphp-topbar a { color: rgba(255,255,255,.85); font-size: 12px; }
.aphp-topbar a:hover { color: white; text-decoration: none; }
.aphp-topbar-right { margin-left: auto; display: flex; gap: 16px; align-items: center; }

/* ── Header AP-HP ── */
.aphp-header {
  background: white;
  border-bottom: 1px solid var(--gris-bord);
  padding: 0 20px;
}
.aphp-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}
.aphp-logos { display: flex; align-items: center; gap: 16px; }
.aphp-logo-cochin { height: 44px; }
.aphp-logo-aphp { height: 32px; }
.aphp-logo-sep {
  width: 1px;
  height: 36px;
  background: var(--gris-bord);
}
.aphp-header-titre {
  flex: 1;
  padding-left: 16px;
  border-left: 3px solid var(--bleu);
}
.aphp-header-titre h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--bleu);
  line-height: 1.2;
}
.aphp-header-titre p {
  font-size: 12.5px;
  color: var(--texte-doux);
}
.aphp-header-contact {
  text-align: right;
  flex-shrink: 0;
}
.aphp-header-contact .tel {
  font-size: 17px;
  font-weight: 700;
  color: var(--bleu);
  display: block;
}
.aphp-header-contact .tel-label {
  font-size: 11px;
  color: var(--texte-doux);
}

/* ── Navigation AP-HP ── */
.aphp-nav {
  background: var(--bleu);
  position: sticky;
  top: 0;
  z-index: 100;
}
.aphp-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}
.aphp-nav-item { position: relative; }
.aphp-nav-item > a {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
  gap: 5px;
}
.aphp-nav-item > a:hover,
.aphp-nav-item > a.active { background: rgba(255,255,255,.12); text-decoration: none; color: white; }
.aphp-nav-item > a.active { border-bottom: 3px solid white; }

/* Dropdown */
.aphp-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--gris-bord);
  border-top: 3px solid var(--bleu);
  min-width: 260px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 200;
}
.aphp-nav-item:hover .aphp-dropdown { display: block; }
.aphp-dropdown a {
  display: block;
  padding: 11px 16px;
  font-size: 13.5px;
  color: var(--texte);
  border-bottom: 1px solid #f0f0f0;
  transition: background .1s;
}
.aphp-dropdown a:hover { background: var(--bleu-clair); color: var(--bleu); text-decoration: none; }
.aphp-dropdown a.highlight { color: var(--bleu); font-weight: 600; }

/* CTA contact dans nav */
.aphp-nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
}
.aphp-btn-email {
  background: var(--vert);
  color: white !important;
  padding: 7px 14px;
  border-radius: var(--rayon);
  font-size: 13px;
  font-weight: 600;
}
.aphp-btn-email:hover { background: #006d32; text-decoration: none !important; }

/* ── Fil d'Ariane ── */
.aphp-breadcrumb {
  background: var(--gris);
  border-bottom: 1px solid var(--gris-bord);
  padding: 8px 20px;
  font-size: 12.5px;
  color: var(--texte-doux);
}
.aphp-breadcrumb-inner { max-width: var(--max-width); margin: 0 auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.aphp-breadcrumb a { color: var(--bleu); }
.aphp-breadcrumb span { color: #bbb; }

/* ── Hero ── */
.aphp-hero {
  background: var(--bleu);
  color: white;
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
}
.aphp-hero::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.aphp-hero-inner { max-width: var(--max-width); margin: 0 auto; position: relative; }
.aphp-hero-tag {
  display: inline-block;
  background: var(--vert);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 10px;
}
.aphp-hero h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.25;
}
.aphp-hero-sub {
  font-size: 14px;
  opacity: .85;
}

/* ── Raccourcis rapides (style AP-HP) ── */
.aphp-quicklinks {
  background: white;
  border-bottom: 2px solid var(--gris-bord);
}
.aphp-quicklinks-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}
.aphp-ql {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-right: 1px solid var(--gris-bord);
  text-decoration: none;
  color: var(--texte);
  transition: background .15s;
  min-width: 140px;
  font-size: 13.5px;
  font-weight: 600;
}
.aphp-ql:hover { background: var(--bleu-clair); text-decoration: none; color: var(--bleu); }
.aphp-ql.primary { background: var(--vert); color: white; }
.aphp-ql.primary:hover { background: #006d32; color: white; }
.aphp-ql.tel-link { color: var(--texte-doux); font-weight: 400; font-size: 12.5px; }
.aphp-ql svg { flex-shrink: 0; }

/* ── Layout principal ── */
.aphp-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
}
.aphp-content {}
.aphp-aside {}

/* ── Sections ── */
.aphp-section { margin-bottom: 36px; }
.aphp-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--bleu);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bleu);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.aphp-section p { font-size: 15px; line-height: 1.7; color: var(--texte); margin-bottom: 12px; }
.aphp-section ul { padding-left: 20px; margin-bottom: 12px; }
.aphp-section li { font-size: 15px; line-height: 1.8; color: var(--texte); }

/* ── Encadrés ── */
.aphp-box {
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  padding: 18px 20px;
  margin: 16px 0;
  font-size: 14.5px;
}
.aphp-box-bleu { border-left: 4px solid var(--bleu); background: var(--bleu-clair); }
.aphp-box-vert { border-left: 4px solid var(--vert); background: var(--vert-clair); }
.aphp-box-rouge { border-left: 4px solid var(--rouge); background: var(--rouge-clair); }
.aphp-box h3 { font-size: 15px; font-weight: 700; color: var(--bleu); margin-bottom: 8px; }

/* ── Chiffres clés (style AP-HP) ── */
.aphp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gris-bord);
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  overflow: hidden;
  margin: 20px 0;
}
.aphp-stat {
  background: white;
  padding: 20px 16px;
  text-align: center;
}
.aphp-stat-num {
  font-size: 30px;
  font-weight: 700;
  color: var(--bleu);
  line-height: 1;
  margin-bottom: 6px;
}
.aphp-stat-label { font-size: 12.5px; color: var(--texte-doux); }

/* ── Grille spécialités (style AP-HP) ── */
.aphp-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.aphp-spec-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  text-decoration: none;
  color: var(--texte);
  transition: border-color .15s, box-shadow .15s;
  background: white;
}
.aphp-spec-card:hover {
  border-color: var(--bleu);
  box-shadow: 0 2px 8px rgba(0,53,128,.1);
  text-decoration: none;
}
.aphp-spec-card-ico {
  width: 40px;
  height: 40px;
  background: var(--bleu-clair);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.aphp-spec-card h3 { font-size: 14px; font-weight: 700; color: var(--bleu); margin-bottom: 4px; }
.aphp-spec-card p { font-size: 12.5px; color: var(--texte-doux); margin: 0; }

/* ── Équipe (style AP-HP) ── */
.aphp-equipe-chef {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bleu);
  color: white;
  padding: 16px 20px;
  border-radius: var(--rayon);
  margin-bottom: 16px;
}
.aphp-equipe-chef-init {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.aphp-medecin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.aphp-medecin-card {
  padding: 12px 14px;
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  font-size: 13px;
}
.aphp-medecin-card strong { display: block; color: var(--bleu); font-weight: 600; font-size: 13.5px; }
.aphp-medecin-card span { color: var(--texte-doux); font-size: 12px; }
.aphp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.aphp-tag {
  background: var(--gris);
  color: var(--texte-doux);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
}

/* ── Sidebar AP-HP ── */
.aphp-sidebar-box {
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  margin-bottom: 16px;
  overflow: hidden;
}
.aphp-sidebar-box-title {
  background: var(--bleu);
  color: white;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}
.aphp-sidebar-box-body { padding: 14px; }
.aphp-sidebar-btn {
  display: block;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--rayon);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  text-decoration: none;
  transition: opacity .15s;
}
.aphp-sidebar-btn:hover { opacity: .9; text-decoration: none; }
.aphp-btn-vert { background: var(--vert); color: white !important; }
.aphp-btn-bleu { background: var(--bleu); color: white !important; }
.aphp-btn-ghost { background: white; color: var(--bleu) !important; border: 1.5px solid var(--bleu); }
.aphp-btn-tel { background: var(--gris); color: var(--texte-doux) !important; font-weight: 400; font-size: 12.5px; }
.aphp-sidebar-box-body p { font-size: 13px; color: var(--texte-doux); margin-bottom: 10px; line-height: 1.6; }
.aphp-sidebar-info { font-size: 13px; color: var(--texte); line-height: 1.8; padding: 0 14px 14px; }
.aphp-sidebar-info strong { color: var(--bleu); }

/* ── Boutons principaux ── */
.aphp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--rayon);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
  cursor: pointer;
  border: none;
}
.aphp-btn:hover { opacity: .9; text-decoration: none; }
.aphp-btn-primary { background: var(--vert); color: white; }
.aphp-btn-secondary { background: var(--bleu); color: white; }
.aphp-btn-outline { background: white; color: var(--bleu); border: 1.5px solid var(--bleu); }

/* ── Étapes (accordéon AP-HP) ── */
.aphp-accordion { border: 1px solid var(--gris-bord); border-radius: var(--rayon); overflow: hidden; margin: 16px 0; }
.aphp-accordion-item { border-bottom: 1px solid var(--gris-bord); }
.aphp-accordion-item:last-child { border-bottom: none; }
.aphp-accordion-title {
  background: white;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--bleu);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .1s;
}
.aphp-accordion-title:hover { background: var(--bleu-clair); }
.aphp-accordion-body { padding: 14px 16px; font-size: 14px; color: var(--texte); border-top: 1px solid var(--gris-bord); background: var(--gris); }

/* ── Tableau comparatif ── */
.aphp-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.aphp-table th { background: var(--bleu); color: white; padding: 10px 14px; text-align: left; }
.aphp-table td { padding: 10px 14px; border-bottom: 1px solid var(--gris-bord); }
.aphp-table tr:nth-child(even) td { background: var(--gris); }
.aphp-check { color: var(--vert); font-weight: 700; }
.aphp-cross { color: var(--rouge); }

/* ── FAQ ── */
details { border: 1px solid var(--gris-bord); border-radius: var(--rayon); margin-bottom: 8px; }
details summary {
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--bleu);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details summary::after { content: "+"; font-size: 20px; font-weight: 300; }
details[open] summary::after { content: "−"; }
details summary::-webkit-details-marker { display: none; }
details p { padding: 0 16px 14px; font-size: 14px; color: var(--texte); line-height: 1.7; }

/* ── Urgence pancréas ── */
.aphp-urgence {
  background: var(--rouge);
  color: white;
  border-radius: var(--rayon);
  padding: 18px 20px;
  margin: 20px 0;
}
.aphp-urgence h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.aphp-urgence-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.aphp-urgence-btn {
  background: white;
  padding: 9px 16px;
  border-radius: var(--rayon);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.aphp-urgence-btn.tel { color: var(--rouge); }
.aphp-urgence-btn.mail { color: var(--bleu); }

/* ── Footer AP-HP ── */
.aphp-footer {
  background: var(--bleu);
  color: rgba(255,255,255,.8);
  padding: 32px 20px 20px;
  margin-top: 40px;
}
.aphp-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.aphp-footer h4 { color: white; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.aphp-footer a { color: rgba(255,255,255,.75); font-size: 13px; display: block; margin-bottom: 6px; }
.aphp-footer a:hover { color: white; text-decoration: none; }
.aphp-footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .aphp-container { grid-template-columns: 1fr; }
  .aphp-stats { grid-template-columns: repeat(2, 1fr); }
  .aphp-footer-inner { grid-template-columns: 1fr 1fr; }
  .aphp-spec-grid { grid-template-columns: 1fr; }
  /* Header : masquer contact sur tablette pour éviter chevauchement */
  .aphp-header-contact { display: none; }
  .aphp-header-titre h1 { font-size: 15px; }
  .aphp-header-titre p { font-size: 11px; }
  .aphp-logo-cochin { height: 38px; }
  .aphp-logo-aphp { height: 26px; }
}
@media (max-width: 680px) {
  .aphp-topbar { display: none; }
  .aphp-header-inner { height: 54px; gap: 10px; }
  .aphp-header-contact { display: none; }
  .aphp-logo-cochin { height: 32px; }
  .aphp-logo-aphp { height: 22px; }
  .aphp-logo-sep { height: 28px; }
  .aphp-header-titre { padding-left: 10px; }
  .aphp-header-titre h1 { font-size: 13.5px; line-height: 1.2; }
  .aphp-header-titre p { font-size: 10.5px; display: none; }
  .aphp-hero h2 { font-size: 20px; }
  .aphp-quicklinks-inner { flex-wrap: wrap; }
  .aphp-ql { min-width: calc(50% - 1px); border-bottom: 1px solid var(--gris-bord); }
  .aphp-stats { grid-template-columns: repeat(2, 1fr); }
  .aphp-medecin-grid { grid-template-columns: 1fr 1fr; }
  .aphp-footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Header responsive fixé ── */
@media (max-width: 960px) {
  .aphp-header-contact { display: none !important; }
  .aphp-header-titre h1 { font-size: 15px !important; }
  .aphp-logo-cochin { height: 36px !important; }
  .aphp-logo-aphp { height: 24px !important; }
}
@media (max-width: 680px) {
  .aphp-header-inner { height: 54px !important; gap: 8px !important; }
  .aphp-header-titre h1 { font-size: 13px !important; }
  .aphp-header-titre p { display: none !important; }
  .aphp-logo-cochin { height: 30px !important; }
  .aphp-logo-aphp { height: 20px !important; }
  .aphp-logo-sep { height: 24px !important; }
}

/* ═══════════════════════════════════════════════════
   CORRECTIF GLOBAL MOBILE AP-HP
   ═══════════════════════════════════════════════════ */
html, body { overflow-x: hidden; max-width: 100vw; }
@media (max-width: 768px) {
  .aphp-container,
  .aphp-header-inner,
  .aphp-nav-inner,
  .aphp-quicklinks-inner,
  .aphp-footer-inner,
  .aphp-footer-bottom,
  .footer-interservices > div {
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    overflow-x: hidden;
  }
  .aphp-container { grid-template-columns: 1fr !important; }
  .aphp-stats { grid-template-columns: 1fr 1fr !important; }
  .aphp-spec-grid { grid-template-columns: 1fr !important; }
  .aphp-medecin-grid { grid-template-columns: 1fr 1fr !important; }
  div[style*="grid-template-columns:repeat(2,1fr)"] { grid-template-columns: 1fr !important; }
  img { max-width: 100% !important; height: auto !important; }
}
