/* ── Fallback fonts système (avant chargement Google Fonts) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Inter'), local('Inter-Regular');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Lora'), local('Lora-SemiBold');
}

/* ================================================================
   cancer.tn – Feuille de style principale
   Police : DM Serif Display (titres) + DM Sans (corps)
   Charte  : blanc / gris doux / orange #E8520A / marine #1A2F4B
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --orange:       #E8520A;
  --orange-dark:  #C43E00;
  --orange-light: #FFF3EE;
  --navy:         #1E6B8C;
  --navy-mid:     #2A8AAF;
  --text:         #1F2937;
  --text-light:   #6B7280;
  --border:       #E5E7EB;
  --bg:           #F8F9FA;
  --white:        #FFFFFF;
  --success:      #16A34A;
  --error:        #DC2626;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.07);
  --shadow-md:    0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:    0 8px 36px rgba(0,0,0,.12);
  --transition:   .22s ease;
  --font-title:   'Lora', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a   { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }

/* ── Utilitaires ───────────────────────────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px;  margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .93rem; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none;
  white-space: nowrap;
}
.btn-primary  { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,82,10,.35); }
.btn-outline  { background: transparent; border-color: var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-navy     { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); border-color: #CBD5E1; }
.btn-sm       { padding: 7px 16px; font-size: .82rem; }
.btn-danger   { background: var(--error); color: var(--white); border-color: var(--error); }

.badge {
  display: inline-block; padding: 3px 11px; border-radius: 20px;
  font-size: .75rem; font-weight: 600; letter-spacing: .03em;
}
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-navy   { background: #EEF2F7; color: var(--navy); }

.alert {
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px;
  font-size: .92rem;
}
.alert-success { background: #F0FDF4; color: #15803D; border-left: 4px solid #22C55E; }
.alert-error   { background: #FEF2F2; color: #B91C1C; border-left: 4px solid #EF4444; }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background: var(--navy); color: #8DA8C8;
  font-size: .78rem; padding: 7px 0; text-align: right;
}
.topbar a { color: #8DA8C8; }
.topbar a:hover { color: var(--white); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 44px; height: 44px; background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-icon svg { fill: var(--white); width: 22px; height: 22px; }
.logo-text {
  font-family: var(--font-title); font-size: 1.55rem; color: var(--navy); line-height: 1;
}
.logo-text span { color: var(--orange); }
.logo-tagline { font-size: .68rem; color: var(--text-light); letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-size: .88rem; font-weight: 500; color: var(--navy);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active { background: var(--orange-light); color: var(--orange); }
.nav-cta { background: var(--orange) !important; color: var(--white) !important; margin-left: 6px; }
.nav-cta:hover { background: var(--orange-dark) !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(232,82,10,.3); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: all var(--transition); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); min-height: 520px;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0D2233 0%, #1E6B8C 55%, #2A8AAF 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 620px; }
.hero-content h1 {
  font-family: var(--font-title); font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.hero-content h1 span { color: var(--orange); }
.hero-content p { color: #B0C4DE; font-size: 1.08rem; margin-bottom: 32px; line-height: 1.75; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 42%; background-size: cover; background-position: center; opacity: .15;
}

/* ── Section headers ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-family: var(--font-title); font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy); margin-bottom: 12px;
}
.section-header p { color: var(--text-light); max-width: 540px; margin: 0 auto; font-size: .97rem; }
.section-divider {
  width: 52px; height: 4px; background: var(--orange);
  border-radius: 2px; margin: 16px auto 0;
}
section { padding: 72px 0; }
section.alt { background: var(--white); }

/* ── Maladies grid ──────────────────────────────────────────── */
.maladies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 14px;
}
.maladie-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--border); padding: 22px 18px; text-align: center;
  transition: all var(--transition); text-decoration: none; color: var(--text);
  cursor: pointer;
}
.maladie-card:hover {
  border-color: var(--orange); transform: translateY(-4px);
  box-shadow: var(--shadow-md); color: var(--orange);
}
.maladie-card .icon {
  width: 46px; height: 46px; margin: 0 auto 12px;
  background: var(--orange-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.maladie-card .icon svg { fill: var(--orange); width: 22px; }
.maladie-card h3 { font-size: .87rem; font-weight: 600; line-height: 1.35; }

/* ── Articles ───────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--border); overflow: hidden;
  transition: all var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CBD5E1; }
.article-card-img {
  height: 188px; background: var(--orange-light);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 22px; }
.article-card-body .badge { margin-bottom: 10px; }
.article-card-body h3 {
  font-family: var(--font-title); font-size: 1.08rem; margin-bottom: 10px;
  line-height: 1.4; color: var(--navy);
}
.article-card-body p { color: var(--text-light); font-size: .87rem; margin-bottom: 16px; }
.article-meta { font-size: .76rem; color: var(--text-light); }

/* ── Médecins ───────────────────────────────────────────────── */
.medecins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.medecin-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--border); padding: 28px 22px; text-align: center;
  transition: all var(--transition);
}
.medecin-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #CBD5E1; }
.medecin-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 16px; background: var(--orange-light);
  overflow: hidden; border: 3px solid var(--border);
}
.medecin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.medecin-avatar-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: 1.9rem; color: var(--orange);
}
.medecin-card h3 { font-size: .97rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.medecin-card .spec { font-size: .83rem; color: var(--orange); font-weight: 600; margin-bottom: 6px; }
.medecin-card .ville { font-size: .80rem; color: var(--text-light); margin-bottom: 14px; }
.medecin-card .tel { font-size: .86rem; color: var(--text); font-weight: 600; }

/* ── Forum ──────────────────────────────────────────────────── */
.forum-list { display: flex; flex-direction: column; gap: 10px; }
.forum-item {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: all var(--transition);
}
.forum-item:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.forum-item-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.forum-item-icon svg { fill: var(--orange); width: 18px; }
.forum-item-body { flex: 1; }
.forum-item-body h3 { font-size: .95rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.forum-item-meta { font-size: .78rem; color: var(--text-light); }
.forum-stats { text-align: right; font-size: .78rem; color: var(--text-light); flex-shrink: 0; }
.forum-stats strong { display: block; font-size: 1.2rem; color: var(--navy); font-weight: 700; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .87rem; font-weight: 600;
  color: var(--navy); margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .93rem;
  color: var(--text); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,82,10,.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--orange); }
.form-hint { font-size: .76rem; color: var(--text-light); margin-top: 4px; }

.card-form {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 40px; max-width: 540px; margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.card-form h1 { font-family: var(--font-title); font-size: 1.8rem; color: var(--navy); margin-bottom: 6px; }
.card-form .subtitle { color: var(--text-light); margin-bottom: 28px; font-size: .93rem; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 48px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text);
  transition: all var(--transition); text-decoration: none;
}
.pagination a:hover  { border-color: var(--orange); color: var(--orange); }
.pagination .current { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* ── Sondage ────────────────────────────────────────────────── */
.sondage-widget { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--border); padding: 26px; }
.sondage-widget h3 { font-family: var(--font-title); font-size: 1.08rem; color: var(--navy); margin-bottom: 18px; }
.sondage-option { margin-bottom: 12px; }
.sondage-option label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .91rem; }
.sondage-option input[type=radio] { accent-color: var(--orange); }
.sondage-bar-wrap { background: var(--border); border-radius: 4px; height: 7px; margin-top: 4px; }
.sondage-bar { background: var(--orange); border-radius: 4px; height: 7px; transition: width .6s ease; }

/* ── Newsletter strip ───────────────────────────────────────── */
.newsletter-strip { background: var(--navy); padding: 60px 0; }
.newsletter-strip h2 { font-family: var(--font-title); color: var(--white); font-size: 2rem; margin-bottom: 10px; }
.newsletter-strip p { color: #8DA8C8; margin-bottom: 26px; }
.newsletter-form { display: flex; gap: 10px; max-width: 480px; }
.newsletter-form input {
  flex: 1; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08);
  color: var(--white); font-family: var(--font-body); font-size: .93rem; outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { border-color: var(--orange); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: #0D2233; color: #7A93AD; padding: 60px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo-text { color: var(--white); font-size: 1.3rem; }
.footer-brand p { font-size: .84rem; line-height: 1.75; margin-top: 14px; }
.footer-col h4 {
  color: var(--white); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: #7A93AD; font-size: .86rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid #1A2D42; padding-top: 24px; font-size: .78rem;
  display: flex; justify-content: space-between; align-items: center;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .80rem; color: var(--text-light);
  padding: 14px 0; margin-bottom: 8px;
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.9); }
.breadcrumb-sep { color: rgba(255,255,255,.3); }

/* ── Page header ────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, #0D2233 0%, var(--navy) 100%);
  padding: 52px 0 44px;
}
.page-header h1 {
  font-family: var(--font-title); color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 10px;
}
.page-header p { color: #8DA8C8; max-width: 560px; font-size: .97rem; }

/* ── Filter bar ─────────────────────────────────────────────── */
.filter-bar {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end;
  margin-bottom: 32px; box-shadow: var(--shadow-sm);
}
.filter-bar .form-group { margin-bottom: 0; flex: 1; min-width: 180px; }
.filter-bar .form-group label { font-size: .80rem; }

/* ── Article detail ─────────────────────────────────────────── */
.article-content { font-size: 1rem; line-height: 1.85; color: var(--text); }
.article-content h2 { font-family: var(--font-title); color: var(--navy); margin: 32px 0 12px; font-size: 1.55rem; }
.article-content h3 { color: var(--navy); margin: 24px 0 10px; font-size: 1.15rem; font-weight: 600; }
.article-content p  { margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  border-left: 4px solid var(--orange); padding: 16px 20px;
  background: var(--orange-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; margin: 24px 0;
}

/* ── Sidebar layout ─────────────────────────────────────────── */
.layout-with-sidebar {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 40px; align-items: start;
}
.sidebar-widget {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-family: var(--font-title); font-size: 1.05rem; color: var(--navy);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--orange-light);
}
.sidebar-list { list-style: none; }
.sidebar-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.sidebar-list li:last-child { border-bottom: none; }

/* ── Stats strip ────────────────────────────────────────────── */
.stats-strip { background: var(--orange); padding: 40px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stat-item h3 { font-family: var(--font-title); font-size: 2.6rem; color: var(--white); font-weight: 400; }
.stat-item p { color: rgba(255,255,255,.8); font-size: .86rem; margin-top: 4px; }

/* ── Animate on scroll ──────────────────────────────────────── */
.animate-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; gap: 4px; }
  .main-nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 16px 24px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .burger { display: block; }
  .site-header { position: relative; }
  .hero { min-height: 400px; }
  .hero-image { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .filter-bar { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .medecins-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card-form { padding: 24px 18px; }
  .hero-content h1 { font-size: 1.85rem; }
  .hero-btns { flex-direction: column; }
  .medecins-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Optimisations performances ────────────────────────────── */

/* Éviter les repaints sur les éléments animés */
.animate-on-scroll {
  will-change: opacity, transform;
  contain: layout style;
}

/* Éviter les repaints sur les cartes au hover */
.article-card,
.medecin-card,
.maladie-card {
  will-change: transform;
  contain: layout style paint;
}

/* Optimisation rendu images */
img {
  content-visibility: auto;
}

/* Réduire animations sur mobile pour économiser batterie */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* Optimiser le scroll sur mobile */
.forum-list,
.articles-grid,
.medecins-grid,
.maladies-grid {
  -webkit-overflow-scrolling: touch;
}

/* Font rendering optimisé */
body {
  text-rendering: optimizeSpeed;
}
h1, h2, h3 {
  text-rendering: optimizeLegibility;
}

/* ── Fix liens visités ────────────────────────────────────────── */
a:visited { color: var(--orange); }
a:visited:hover { color: var(--orange-dark); }
.btn:visited, .nav-cta:visited { color: inherit; }
.btn-primary:visited { color: var(--white); }
.btn-outline:visited { color: var(--orange); }
.btn-navy:visited { color: var(--white); }
.main-nav a:visited { color: var(--navy); }
.main-nav a:visited:hover, .main-nav a.active:visited { color: var(--orange); }
.footer-col ul a:visited { color: #7A93AD; }
.footer-col ul a:visited:hover { color: var(--orange); }
.maladie-card:visited { color: var(--text); }
.pagination a:visited { color: var(--text); }

/* ── Badge supplémentaires ────────────────────────────────────── */
.badge-gray { background: #F3F4F6; color: #6B7280; }
.badge-green { background: #DCFCE7; color: #15803D; }

/* ── Amélioration cards PP ────────────────────────────────────── */
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ── Messagerie ───────────────────────────────────────────────── */
.msg-bubble { word-break: break-word; }

/* ── Compte accordion ─────────────────────────────────────────── */
details.account-section summary::-webkit-details-marker { display: none; }
details.account-section[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
