
:root {
  --bg:#f7f9fc;
  --ink:#0f172a;
  --muted:#475569;
  --accent:#264c7d;
  --card:#ffffff;
  --border:#e5e7eb;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; color: var(--ink); background: var(--bg); }
.container { max-width: 1120px; margin: 0 auto; padding: 24px; }
.header { display:flex; align-items:center; gap:12px;
padding:12px 24px; background: linear-gradient(135deg, rgba(25,52,89,.08), rgba(38,76,125,.08)), var(--card); border-bottom:1px solid var(--border); }
.logo{
    width:72px;
    height:72px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}
.logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}
.h1 { font-size:28px; font-weight:700; letter-spacing:.2px; margin:0; }
.sub { color: var(--muted); margin-top:4px; }
.nav { margin-left:auto; display:flex; align-items:center; gap:16px; }
.nav a { text-decoration:none; color:var(--accent); font-weight:600; }
.nav-cta { background:var(--accent); color:#fff !important; padding:8px 16px; border-radius:999px; font-weight:700; white-space:nowrap; }
.nav-cta:hover { background:#1f5388; }
.card { background: var(--card); border:1px solid var(--border); border-radius:20px; padding:24px; box-shadow: 0 8px 24px rgba(0,0,0,.04); }.card p {
    margin-bottom: 14px;
}
.grid { display:grid; gap:20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hero { position:relative; overflow:hidden; border-radius:20px; }
.hero img { width:100%; height:380px; object-fit:cover; filter: saturate(1.05) contrast(1.03); }
.hero .overlay { position:absolute; inset:0; background: rgba(20,40,70,.28); }
.hero .text { position:absolute; left:24px; bottom:24px; color:white; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero h2 { margin:0; font-size:34px; }
.footer { padding:24px; color:var(--muted); text-align:center; }
.badge { display:inline-block; padding:6px 10px; border-radius:999px; background:#e6eef9; color:#244b7c; font-weight:600; font-size:12px; }
.langswitch { font-size:14px; }
.lock { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:linear-gradient(180deg, rgba(10,20,35,.72), rgba(10,20,35,.86)); backdrop-filter: blur(6px); }
.lockcard { width: min(420px, calc(100% - 32px)); background:white; border-radius:20px; padding:24px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.lockcard h3 { margin-top:0; }
.input { width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:12px; margin:8px 0 12px; }
.button { display:inline-block; border:none; border-radius:12px; padding:12px 16px; background:var(--accent); color:white; font-weight:700; cursor:pointer; }
.note { font-size:12px; color:var(--muted); margin-top:8px; }
.social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 18px;
}

.social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #173a66;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
}

.social a:hover {
    transform: translateY(-2px);
    background: #295aa5;
}
.cta-button {
  display: inline-block;
  padding: 12px 18px;
  margin-top: 12px;
  border-radius: 999px;
  background: #123b63;
  color: white !important;
  text-decoration: none;
  font-weight: 700;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.info-box {
  padding: 18px;
  border-radius: 18px;
  background: #f4f7fb;
  border: 1px solid #dce5ef;
}

.info-box h3 {
  margin-top: 0;
}

.contact-icons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #123b63;
  color: white !important;
  text-decoration: none;
  font-weight: 700;
}

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

/* ---------- Navigation mobile (correctif) ---------- */
/* Sur mobile, .nav (margin-left:auto, largeur au contenu) sortait de l'écran
   à droite au lieu de passer à la ligne : le menu était inutilisable. */
@media (max-width: 760px) {
  .header {
    flex-wrap: wrap;
  }
  .nav {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 10px 24px 2px;
    box-sizing: border-box;
  }
  .social {
    margin-left: auto;
  }
}

/* ---------- Parcours diagnostique ---------- */

.diagnostic-path {
  background: linear-gradient(135deg, #f7fbff, #eef4f9);
}

.pathway {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.step {
  flex: 1;
  background: white;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
}

.step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #123b63;
  color: white;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  font-weight: 600;
}

.arrow {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  color: #123b63;
}

@media (max-width: 800px) {
  .pathway {
    flex-direction: column;
  }

  .arrow {
    justify-content: center;
  }
}
.site-title {
    text-decoration: none;
    color: inherit;
}
.site-title {
    text-decoration: none;
    color: inherit;
}

.site-title h1 {
    margin: 0;
    color: inherit;
}
.site-title,
.site-title:hover,
.site-title:visited {
    text-decoration: none;
    color: inherit;
}

.site-title .h1 {
    color: inherit;
}
.consultation-list a {
    text-decoration: none;
    color: #1d3f72;
    font-weight: 500;
    transition: all 0.2s ease;
}

.consultation-list a:hover {
    color: #3f6fb5;
    padding-left: 4px;
}
.consultation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.consultation-card {
  display: block;
  padding: 18px;
  border-radius: 18px;
  background: #f4f7fb;
  border: 1px solid #dce5ef;
  color: #123b63;
  text-decoration: none;
  font-weight: 700;
}

.consultation-card:hover {
  background: #eaf2fa;
  transform: translateY(-2px);
}

.more-link {
  display: inline-block;
  margin-top: 18px;
  color: #123b63;
  text-decoration: none;
  font-weight: 700;
}

.more-link:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .consultation-grid {
    grid-template-columns: 1fr;
  }
}
.all-pathologies{
    margin-top:25px;
    text-align:center;
}

.pathologies-button{
    display:inline-block;
    padding:14px 24px;
    border-radius:14px;
    background:#123b63;
    color:white;
    text-decoration:none;
    font-weight:700;
    transition:all .2s ease;
}
.all-pathologies a.pathologies-button {
    display: inline-block !important;
    padding: 14px 24px !important;
    background: #123b63 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
}

.all-pathologies a.pathologies-button:hover {
    background: #1f5388 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.langswitch a{
    text-decoration:none;
    font-size:18px;
    opacity:0.85;
}

.langswitch a:hover{
    opacity:1;
}
/* --- SEO : hiérarchie des titres (ajout) --- */
main h1 { font-size: 28px; margin-top: 0; line-height: 1.25; }
.hero h1 { margin: 0; font-size: 34px; color: inherit; }

/* ================================================================
   Fiches pathologie — refonte visuelle
   ================================================================ */

/* --- Hero d'en-tête --- */
.path-hero {
  position: relative;
  background: linear-gradient(135deg, #14304f 0%, #1f4d80 55%, #2c67a8 100%);
  color: #fff;
  border-radius: 24px;
  padding: 44px 40px;
  margin-bottom: 20px;
  overflow: hidden;
  isolation: isolate;
}
.path-hero::before,
.path-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  z-index: -1;
}
.path-hero::before { width: 260px; height: 260px; top: -90px; right: -70px; }
.path-hero::after { width: 160px; height: 160px; bottom: -80px; right: 120px; background: rgba(255,255,255,.045); }

.path-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #a9cdf2;
  margin-bottom: 16px;
}
.path-hero .eyebrow svg { flex-shrink: 0; }

.path-hero h1 {
  color: #fff;
  font-size: 32px;
  margin: 0 0 14px;
  line-height: 1.2;
  max-width: 720px;
}

.path-hero .lead {
  color: #dfeaf8;
  font-size: 17px;
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
}

.path-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.path-tags .path-tag {
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
}

@media (max-width: 700px) {
  .path-hero { padding: 30px 22px; border-radius: 18px; }
  .path-hero h1 { font-size: 25px; }
  .path-hero .lead { font-size: 15.5px; }
}

/* --- Bloc "En bref" --- */
.path-summary {
  background: #fff;
  border: 1px solid #dce5ef;
  border-left: 5px solid #2c67a8;
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.path-summary .path-summary-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eaf2fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f4d80;
}
.path-summary h2 {
  margin: 4px 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #2c67a8;
}
.path-summary ul { margin: 0; padding-left: 18px; }
.path-summary li { margin-bottom: 6px; line-height: 1.5; }
.path-summary li:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .path-summary { padding: 18px 20px; }
}

/* --- Sommaire (table des matières) --- */
.path-toc {
  background: #f4f7fb;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  padding: 6px 22px;
  margin-bottom: 20px;
}
.path-toc summary {
  cursor: pointer;
  font-weight: 700;
  color: #123b63;
  padding: 14px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.path-toc summary::-webkit-details-marker { display: none; }
.path-toc summary::after {
  content: "▾";
  color: #2c67a8;
  transition: transform .2s;
}
.path-toc[open] summary::after { transform: rotate(180deg); }
.path-toc ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 16px;
}
.path-toc a {
  color: #1d3f72;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.path-toc a:hover { text-decoration: underline; }

/* --- Accents d'icône devant les H2 des fiches --- */
.path-body > .card > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  scroll-margin-top: 90px;
}
.path-body > .card > h2::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #264c7d);
}

/* --- FAQ en accordéon --- */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0;
}
.faq-item:first-of-type { border-top: 1px solid #e5e7eb; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #123b63;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: #2c67a8;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 10px 0 0; color: #334155; line-height: 1.6; }
