/* ============================================================
   Dr Ragbaoui Yassine – Cabinet de Cardiologie Bouskoura
   Palette moderne premium : Rouge #C8102E · Slate sombre · Blanc pur
   Mobile-First
   ============================================================ */

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

:root {
  /* ── Couleurs ── */
  --red:          #C8102E;
  --red-dark:     #A00C23;
  --red-soft:     #FEF1F3;
  --red-border:   rgba(200,16,46,.18);

  --slate-900:    #0F1923;   /* fond hero / navbar */
  --slate-800:    #182130;   /* fond footer */
  --slate-700:    #1E2D3F;
  --slate-600:    #2D3F52;

  --white:        #FFFFFF;
  --off-white:    #FAFBFC;
  --surface:      #F4F6F9;
  --border:       #E4E8EF;

  --text-primary: #111827;
  --text-body:    #4B5563;
  --text-muted:   #9CA3AF;

  --green:        #059669;
  --whatsapp:     #25D366;
  --gold:         #F59E0B;

  /* ── Ombres ── */
  --shadow-xs:    0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md:    0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.14);
  --shadow-red:   0 8px 24px rgba(200,16,46,.28);

  /* ── Tokens ── */
  --radius:       10px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --transition:   0.22s ease;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 68px; }
body { font-family: var(--font); color: var(--text-primary); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.6rem; border-radius: 50px;
  font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
  white-space: nowrap; text-decoration: none; letter-spacing: .01em;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-red); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); border-color: var(--whatsapp); }
.btn-whatsapp:hover { background: #1eb852; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.btn-outline { background: transparent; color: rgba(255,255,255,.88); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-full { width: 100%; justify-content: center; }

/* ── Section helpers ── */
.section-tag {
  display: inline-block; background: var(--red-soft); color: var(--red);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .28rem .9rem; border-radius: 50px; margin-bottom: .9rem;
  border: 1px solid var(--red-border);
}
.section-title { font-size: clamp(1.55rem, 4vw, 2.25rem); font-weight: 800; color: var(--text-primary); margin-bottom: .6rem; line-height: 1.2; }
.section-subtitle { color: var(--text-body); font-size: .97rem; max-width: 540px; margin-bottom: 2.5rem; line-height: 1.7; }
.highlight { color: var(--red); }


/* =====================================================
   NAVBAR
===================================================== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background var(--transition), box-shadow var(--transition); }
.navbar.scrolled { background: rgba(15,25,35,.96); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 20px rgba(0,0,0,.3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 1.5rem; max-width: 1140px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: .75rem; color: var(--white); }
.logo-mark { flex-shrink: 0; }
.logo-img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: var(--white); padding: 2px; box-shadow: 0 2px 10px rgba(0,0,0,.3); transition: transform var(--transition); }
.nav-logo:hover .logo-img { transform: scale(1.05); }
.logo-text-block { display: flex; flex-direction: column; gap: .04rem; }
.logo-name { font-size: .92rem; color: var(--white); line-height: 1.25; font-weight: 500; }
.logo-name strong { font-weight: 700; }
.logo-specialty { font-size: .67rem; color: rgba(255,255,255,.45); letter-spacing: .06em; text-transform: uppercase; }
.nav-menu ul { display: flex; align-items: center; gap: .1rem; }
.nav-link { color: rgba(255,255,255,.75); font-size: .855rem; font-weight: 500; padding: .42rem .75rem; border-radius: 7px; transition: all var(--transition); }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.btn-rdv-nav { background: var(--red) !important; color: var(--white) !important; padding: .45rem 1.1rem !important; border-radius: 50px !important; font-weight: 600 !important; margin-left: .4rem; }
.btn-rdv-nav:hover { background: var(--red-dark) !important; box-shadow: var(--shadow-red) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu { position: absolute; top: 68px; left: 0; right: 0; background: rgba(15,25,35,.98); padding: 1rem 1.5rem 1.5rem; display: none; border-top: 1px solid rgba(255,255,255,.06); }
  .nav-menu.open { display: block; }
  .nav-menu ul { flex-direction: column; gap: .2rem; align-items: stretch; }
  .nav-link { display: block; padding: .7rem 1rem; font-size: .9rem; border-radius: 8px; }
  .btn-rdv-nav { text-align: center; margin-top: .5rem; margin-left: 0 !important; }
}


/* =====================================================
   HERO
===================================================== */
.hero {
  min-height: 100vh;
  background: var(--slate-900);
  padding: 100px 1.5rem 70px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 100% 50%, rgba(200,16,46,.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(200,16,46,.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 50% -10%, rgba(30,45,63,.8) 0%, transparent 70%);
}
/* Subtle grid overlay */
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner { position: relative; max-width: 1140px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.hero-badge {
  display: inline-block; background: rgba(200,16,46,.15); color: rgba(255,180,180,.9);
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .38rem 1rem; border-radius: 50px; border: 1px solid rgba(200,16,46,.3); margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); font-weight: 900; color: var(--white); line-height: 1.08; margin-bottom: 1rem; letter-spacing: -.02em; }
.hero-name-accent { color: var(--red); display: block; }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,.65); margin-bottom: 2rem; max-width: 480px; line-height: 1.75; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.hero-stats { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.stat-number { display: block; font-size: 1.75rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { font-size: .74rem; color: rgba(255,255,255,.45); margin-top: .25rem; letter-spacing: .03em; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.12); }

/* Hero card */
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl); padding: 2rem; width: 100%; max-width: 300px;
}
.hero-card-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.heartbeat-wrapper svg { width: 100%; max-width: 220px; height: auto; filter: drop-shadow(0 0 10px rgba(200,16,46,.6)); }
.hero-card-tagline { color: rgba(255,255,255,.8); font-size: .88rem; font-weight: 600; text-align: center; letter-spacing: .01em; }
.hero-card-contacts { display: flex; flex-direction: column; gap: .55rem; width: 100%; }
.hero-card-tel, .hero-card-wa {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem 1rem; border-radius: var(--radius); font-size: .88rem; font-weight: 600;
  transition: all var(--transition); color: var(--white);
}
.hero-card-tel { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.hero-card-tel:hover { background: rgba(255,255,255,.14); }
.hero-card-wa { background: rgba(37,211,102,.15); border: 1px solid rgba(37,211,102,.25); }
.hero-card-wa:hover { background: rgba(37,211,102,.28); }

@media (min-width: 900px) {
  .hero-inner { flex-direction: row; align-items: center; gap: 5rem; }
  .hero-content { flex: 1; }
  .hero-visual { flex: 0 0 280px; }
  .hero { padding: 120px 5% 80px; max-width: 100%; }
  .hero-inner { max-width: 1140px; margin: 0 auto; }
}


/* =====================================================
   À PROPOS
===================================================== */
.apropos { padding: 90px 0; background: var(--white); }
.apropos-grid { display: grid; gap: 3rem; align-items: start; }

.doctor-card {
  background: var(--slate-900);
  border-radius: var(--radius-xl); padding: 2rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2rem;
  box-shadow: var(--shadow-lg);
  position: sticky; top: 90px;
}
.doctor-avatar {
  width: 88px; height: 88px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 800; color: var(--white);
  box-shadow: 0 0 0 4px rgba(200,16,46,.25), 0 8px 24px rgba(200,16,46,.35);
}
.doctor-info h3 { font-size: 1.15rem; font-weight: 700; color: var(--white); }
.doctor-title { color: rgba(255,255,255,.5); font-size: .8rem; margin-top: .15rem; }
.doctor-badges { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }
.badge {
  background: rgba(200,16,46,.2); color: rgba(255,180,180,.95);
  font-size: .65rem; font-weight: 600; padding: .22rem .65rem;
  border-radius: 50px; border: 1px solid rgba(200,16,46,.3);
}
.doctor-contact-mini { display: flex; flex-direction: column; gap: .5rem; width: 100%; }
.doctor-contact-mini a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem; border-radius: var(--radius); font-size: .85rem; font-weight: 600; transition: all var(--transition); color: var(--white);
}
.doctor-contact-mini a:first-child { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.doctor-contact-mini a:first-child:hover { background: var(--red); border-color: var(--red); }
.doctor-contact-mini a:last-child { background: rgba(37,211,102,.15); border: 1px solid rgba(37,211,102,.25); }
.doctor-contact-mini a:last-child:hover { background: var(--whatsapp); border-color: var(--whatsapp); }

.apropos-text h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; color: var(--text-primary); margin-bottom: 1rem; line-height: 1.2; }
.apropos-text p { color: var(--text-body); margin-bottom: 1rem; line-height: 1.8; }
.diplomes-title { color: var(--text-primary); font-size: .95rem; font-weight: 700; margin: 1.75rem 0 .8rem; padding-bottom: .5rem; border-bottom: 2px solid var(--red-soft); }
.apropos-list { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.75rem; }
.apropos-list li { display: flex; align-items: flex-start; gap: .7rem; color: var(--text-body); font-size: .9rem; }
.check { color: var(--red); font-weight: 700; flex-shrink: 0; margin-top: .12rem; font-size: .85rem; }
.apropos-qualities { display: flex; flex-direction: column; gap: .85rem; }
.quality-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--surface); border-radius: var(--radius); padding: 1.1rem;
  border-left: 3px solid var(--red);
}
.quality-icon { font-size: 1.4rem; flex-shrink: 0; }
.quality-item strong { display: block; color: var(--text-primary); font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.quality-item p { color: var(--text-body); font-size: .84rem; margin: 0; }

@media (min-width: 768px) {
  .apropos-grid { grid-template-columns: 270px 1fr; }
  .apropos-qualities { flex-direction: row; }
  .apropos { padding: 110px 0; }
}


/* =====================================================
   SERVICES
===================================================== */
.services { padding: 90px 0; background: var(--surface); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.6rem;
  transition: all .3s ease; position: relative;
  opacity: 0; transform: translateY(18px);
}
.service-card.visible { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease, box-shadow .3s ease, border-color .3s ease; }
.service-card:hover { box-shadow: var(--shadow-md); border-color: var(--red); transform: translateY(-4px); }
.service-card.featured { border-color: var(--red); background: var(--red-soft); }
.service-card.featured:hover { box-shadow: var(--shadow-red); }
.featured-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--red); color: var(--white);
  font-size: .65rem; font-weight: 700; padding: .2rem .65rem;
  border-radius: 50px; text-transform: uppercase; letter-spacing: .07em;
}
.service-icon { width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.ecg-icon    { background: #FEF9C3; color: #CA8A04; }
.echo-icon   { background: #EFF6FF; color: #2563EB; }
.holter-icon { background: #F0FDF4; color: #16A34A; }
.consult-icon    { background: #FAF5FF; color: #9333EA; }
.holter-ta-icon  { background: #FFF7ED; color: #EA580C; }
.prevention-icon { background: var(--red-soft); color: var(--red); }
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: .5rem; }
.service-card > p { color: var(--text-body); font-size: .875rem; line-height: 1.65; margin-bottom: .9rem; }
.service-details { display: flex; flex-direction: column; gap: .28rem; }
.service-details li { color: var(--text-body); font-size: .8rem; padding-left: 1rem; position: relative; }
.service-details li::before { content: '·'; position: absolute; left: 0; color: var(--red); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }

@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .services { padding: 110px 0; } }


/* =====================================================
   AVIS
===================================================== */
.avis { padding: 90px 0; background: var(--white); }
.avis-global { display: flex; justify-content: center; margin-bottom: 3rem; }
.avis-score {
  background: var(--slate-900); color: var(--white);
  border-radius: var(--radius-xl); padding: 1.75rem 3.5rem; text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.avis-score::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 120%, rgba(200,16,46,.25) 0%, transparent 70%);
}
.score-number { font-size: 3.2rem; font-weight: 900; line-height: 1; display: block; position: relative; }
.stars-row { color: var(--gold); font-size: 1.5rem; letter-spacing: .12em; margin: .5rem 0; position: relative; }
.score-label { font-size: .78rem; color: rgba(255,255,255,.5); position: relative; letter-spacing: .04em; }

.avis-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.avis-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease, box-shadow .3s ease, border-color .3s ease;
}
.avis-card.visible { opacity: 1; transform: translateY(0); }
.avis-card:hover { box-shadow: var(--shadow-md); border-color: var(--red-border); }
.avis-header { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.avis-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; color: var(--white); flex-shrink: 0;
}
.avis-header > div:nth-child(2) { flex: 1; }
.avis-header strong { display: block; font-size: .9rem; color: var(--text-primary); font-weight: 700; }
.avis-stars { color: var(--gold); font-size: .82rem; letter-spacing: .06em; margin-top: .1rem; }
.avis-google { margin-left: auto; flex-shrink: 0; opacity: .7; }
.avis-text { color: var(--text-body); font-size: .875rem; line-height: 1.72; font-style: italic; margin-bottom: .75rem; }
.avis-text::before { content: '"'; }
.avis-text::after { content: '"'; }
.avis-date { font-size: .74rem; color: var(--text-muted); }

@media (min-width: 768px) { .avis-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .avis { padding: 110px 0; } }


/* =====================================================
   RENDEZ-VOUS
===================================================== */
.rdv-section { padding: 90px 0; background: var(--surface); }
.rdv-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(20px);
}
.rdv-card.visible { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }
.rdv-text { padding: 2.5rem; background: var(--slate-900); color: var(--white); position: relative; overflow: hidden; }
.rdv-text::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,.25) 0%, transparent 70%);
}
.rdv-text h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: .55rem; position: relative; }
.rdv-text > p { color: rgba(255,255,255,.6); margin-bottom: 1.75rem; font-size: .93rem; position: relative; }

/* Phone buttons */
.rdv-phones { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.5rem; position: relative; max-width: 600px; }
@media (min-width: 600px) { .rdv-phones { flex-direction: row; } .rdv-phone-btn { flex: 1; } }
.rdv-phone-btn {
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.2rem; border-radius: var(--radius);
  text-decoration: none; transition: all var(--transition); cursor: pointer;
}
.rdv-phone-fixe { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); color: var(--white); }
.rdv-phone-fixe:hover { background: var(--red); border-color: var(--red); }
.rdv-phone-wa { background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.3); color: var(--white); }
.rdv-phone-wa:hover { background: var(--whatsapp); border-color: var(--whatsapp); }
.rdv-phone-icon { font-size: 1.3rem; flex-shrink: 0; }
.rdv-phone-btn small { display: block; font-size: .68rem; opacity: .55; margin-bottom: .15rem; text-transform: uppercase; letter-spacing: .06em; }
.rdv-phone-btn strong { font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; }

.rdv-horaires { display: flex; align-items: center; gap: .85rem; position: relative; }
.rdv-icon { font-size: 1.2rem; flex-shrink: 0; opacity: .7; }
.rdv-horaires strong { display: block; font-size: .72rem; opacity: .5; margin-bottom: .12rem; text-transform: uppercase; letter-spacing: .06em; }
.rdv-horaires span { font-size: .88rem; color: rgba(255,255,255,.8); }

.rdv-form { padding: 2.5rem; display: flex; flex-direction: column; gap: .85rem; background: var(--white); }
.rdv-form h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: .15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.rdv-form input, .rdv-form select, .rdv-form textarea {
  width: 100%; padding: .72rem .95rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 1rem; font-family: var(--font);
  color: var(--text-primary); background: var(--off-white); transition: all var(--transition); outline: none;
}
.rdv-form input:focus, .rdv-form select:focus, .rdv-form textarea:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.08); background: var(--white);
}
.rdv-form textarea { resize: vertical; }
.form-note { font-size: .73rem; color: var(--text-muted); text-align: center; margin-top: .2rem; }

@media (min-width: 900px) { .rdv-text { padding: 3rem; } }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .rdv-section { padding: 110px 0; } }


/* =====================================================
   ACTUALITÉS / BLOG
===================================================== */
.actualites { padding: 90px 0; background: var(--white); }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease, box-shadow .3s ease;
}
.blog-card.visible { opacity: 1; transform: translateY(0); }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.blog-image { height: 190px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-image-1 { background: linear-gradient(135deg, #065F46 0%, #059669 100%); }
.blog-image-2 { background: linear-gradient(135deg, var(--slate-900) 0%, #1E3A6E 100%); }
.blog-image-3 { background: linear-gradient(135deg, #7F1D1D 0%, var(--red) 100%); }
.blog-image-photo { background: var(--slate-900); }
.blog-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; cursor: zoom-in; }

/* ── Lightbox ── */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  animation: lb-in .2s ease;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox-close {
  position: fixed; top: 1.2rem; right: 1.4rem;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  font-size: 1.6rem; width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.blog-card:hover .blog-photo { transform: scale(1.05); }
.blog-image-overlay { position: absolute; top: 1rem; left: 1rem; }
.blog-category {
  background: rgba(255,255,255,.15); color: var(--white);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .7rem; border-radius: 50px; border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.blog-icon-bg { opacity: .2; }
.blog-content { padding: 1.5rem; }
.blog-date { font-size: .74rem; color: var(--text-muted); display: block; margin-bottom: .55rem; }
.blog-content h3 { font-size: .97rem; font-weight: 700; color: var(--text-primary); margin-bottom: .55rem; line-height: 1.4; }
.blog-content p { font-size: .86rem; color: var(--text-body); line-height: 1.68; margin-bottom: 1.1rem; }
.blog-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--red); font-size: .85rem; font-weight: 600;
  padding: .55rem 1rem; border-radius: 8px;
  border: 1.5px solid var(--red-border); background: var(--red-soft);
  transition: all var(--transition); min-height: 44px;
}
.blog-link:hover { background: var(--red); color: var(--white); border-color: var(--red); }

.blog-article-link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--text-muted); font-size: .78rem; font-weight: 500;
  text-decoration: none; margin-top: .4rem;
  padding: .4rem 0; min-height: 44px;
  transition: color var(--transition);
}
.blog-article-link:hover { color: var(--red); text-decoration: underline; }

@media (min-width: 640px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .actualites { padding: 110px 0; } }


/* =====================================================
   LOCALISATION
===================================================== */
.localisation { padding: 90px 0; background: var(--surface); }
.location-grid { display: grid; gap: 2.5rem; }
.location-info { display: flex; flex-direction: column; gap: 1.5rem; }
.location-item { display: flex; align-items: flex-start; gap: 1rem; }
.loc-icon { font-size: 1.35rem; flex-shrink: 0; margin-top: .08rem; }
.location-item strong { display: block; font-weight: 700; color: var(--text-primary); margin-bottom: .28rem; font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; }
.location-item p { color: var(--text-body); font-size: .88rem; line-height: 1.65; }
.location-item a { color: var(--red); font-weight: 600; }
.location-item a:hover { color: var(--red-dark); }
.map-container { border-radius: var(--radius-xl); overflow: hidden; height: 340px; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.map-container iframe { display: block; width: 100%; height: 100%; }

@media (min-width: 768px) { .location-grid { grid-template-columns: 1fr 1.6fr; align-items: start; } .map-container { height: 440px; } .localisation { padding: 110px 0; } }


/* =====================================================
   CONTACT STRIP
===================================================== */
.contact { padding: 52px 0; background: var(--slate-900); border-top: 1px solid rgba(255,255,255,.05); }
.contact-strip { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.contact-strip-item { display: flex; align-items: center; gap: .7rem; color: var(--white); }
.contact-strip-item span { font-size: 1.25rem; }
.contact-strip-item small { display: block; color: rgba(255,255,255,.4); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .1rem; }
.contact-strip-item a { color: var(--white); font-weight: 600; font-size: .92rem; transition: color var(--transition); }
.contact-strip-item a:hover { color: var(--red); }
.contact-strip-divider { width: 40px; height: 1px; background: rgba(255,255,255,.1); }

@media (min-width: 768px) {
  .contact-strip { flex-direction: row; justify-content: center; text-align: left; gap: 2.5rem; flex-wrap: wrap; }
  .contact-strip-divider { width: 1px; height: 36px; }
}


/* =====================================================
   FOOTER
===================================================== */
.footer { background: var(--slate-800); color: rgba(255,255,255,.55); padding: 64px 0 0; border-top: 1px solid rgba(255,255,255,.05); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: .7rem; margin-bottom: .65rem; }
.footer-logo strong { font-size: .97rem; color: var(--white); font-weight: 700; }
.footer-logo-img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: var(--white); padding: 2px; flex-shrink: 0; }
.footer-brand p { font-size: .83rem; line-height: 1.7; max-width: 240px; }
.footer-phones { display: flex; flex-direction: column; gap: .45rem; margin-top: .8rem; }
.footer-phones a { font-size: .84rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-phones a:hover { color: var(--white); }
.footer-links strong, .footer-contact strong { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: .8rem; }
.footer-links ul { display: flex; flex-direction: column; gap: .38rem; }
.footer-links a { font-size: .83rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: .83rem; margin-bottom: .45rem; line-height: 1.5; }
.footer-contact a { color: rgba(255,255,255,.55); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 1.4rem 0; text-align: center; }
.footer-bottom p { font-size: .77rem; margin-bottom: .2rem; }
.footer-disclaimer { color: rgba(255,255,255,.28) !important; font-size: .71rem !important; }

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }


/* =====================================================
   MOBILE FINE-TUNING
===================================================== */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.25rem; }
  .stat-number { font-size: 1.5rem; }
  .avis-score { padding: 1.4rem 2rem; }
  .score-number { font-size: 2.6rem; }
  .blog-image { height: 165px; }
  .hero-card { max-width: 100%; }
}

/* also make blog-link work as button */
.blog-link { font-family: var(--font); cursor: pointer; }

/* ESC article card — visuel animé */
.blog-image-chol {
  background: linear-gradient(135deg, #1a3a2a 0%, #14532d 50%, #166534 100%);
  overflow: hidden; position: relative;
}
.chol-card-visual {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem;
  width: 100%; height: 100%; padding: 1rem;
}
.chol-wave {
  position: absolute; bottom: 0; left: 0; width: 100%; opacity: .18;
}
.chol-icon { position: relative; z-index: 2; filter: drop-shadow(0 0 10px rgba(74,222,128,.7)); }
.chol-label {
  position: relative; z-index: 2;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #86efac; background: rgba(0,0,0,.35); padding: .2rem .7rem;
  border-radius: 20px; border: 1px solid rgba(134,239,172,.3);
}

.blog-image-bp {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1d4ed8 100%);
  overflow: hidden; position: relative;
}
.bp-card-visual {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .55rem;
  width: 100%; height: 100%; padding: 1rem;
}
.bp-wave {
  position: relative; z-index: 2;
  filter: drop-shadow(0 0 8px rgba(147,197,253,.6));
}
.bp-values {
  position: relative; z-index: 2; display: flex; gap: .9rem; align-items: baseline;
}
.bp-val {
  font-size: 1.5rem; font-weight: 900; color: #fff;
  text-shadow: 0 0 12px rgba(147,197,253,.8);
}
.bp-sep { color: rgba(255,255,255,.4); font-size: 1.1rem; }
.bp-unit { font-size: .62rem; color: #93c5fd; font-weight: 600; letter-spacing: .06em; }
.bp-badge {
  position: relative; z-index: 2;
  font-size: .63rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #bfdbfe; background: rgba(0,0,0,.35); padding: .18rem .7rem;
  border-radius: 20px; border: 1px solid rgba(147,197,253,.3);
}

.blog-image-esc {
  background: linear-gradient(135deg, #0a0f1e 0%, #0B2545 50%, #5c0b1a 100%);
  overflow: hidden;
}
.esc-card-visual {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .6rem;
  width: 100%; height: 100%; padding: 1rem;
}

/* Anneaux de pulsation */
.esc-pulse-ring {
  position: absolute; width: 90px; height: 90px; border-radius: 50%;
  border: 2px solid rgba(200,16,46,.4);
  animation: esc-pulse 2.4s ease-out infinite;
}
.esc-pulse-ring-2 { animation-delay: 1.2s; }
@keyframes esc-pulse {
  0%   { transform: scale(.5); opacity: .8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Cœur central */
.esc-heart-center {
  position: relative; z-index: 2;
  filter: drop-shadow(0 0 12px rgba(200,16,46,.8));
  animation: esc-heartbeat 1.2s ease-in-out infinite;
}
@keyframes esc-heartbeat {
  0%,100% { transform: scale(1); }
  14%     { transform: scale(1.18); }
  28%     { transform: scale(1); }
  42%     { transform: scale(1.12); }
  56%     { transform: scale(1); }
}

/* Ligne ECG */
.esc-ecg-strip { position: relative; z-index: 2; opacity: .85; }
.esc-ecg-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: esc-draw 2s ease forwards infinite;
}
@keyframes esc-draw {
  0%   { stroke-dashoffset: 400; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

/* Badge année */
.esc-year-badge {
  position: relative; z-index: 2;
  background: rgba(200,16,46,.85); color: white;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  padding: .22rem .85rem; border-radius: 50px;
  border: 1px solid rgba(255,255,255,.3);
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}


/* Article 8 — Régime & HTA */
.blog-image-hta {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 45%, #0f766e 100%);
  overflow: hidden; position: relative;
}
.hta-card-visual {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .55rem;
  width: 100%; height: 100%; padding: 1rem;
}
.hta-plate-icon { font-size: 2.6rem; filter: drop-shadow(0 0 8px rgba(52,211,153,.5)); }
.hta-badge {
  position: relative; z-index: 2;
  font-size: .63rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #a7f3d0; background: rgba(0,0,0,.35); padding: .18rem .7rem;
  border-radius: 20px; border: 1px solid rgba(167,243,208,.3);
}

/* =====================================================
   MODALS
===================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,15,22,.75);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.modal-overlay.active {
  opacity: 1; pointer-events: auto;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 640px; max-height: 88vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  transform: translateY(20px) scale(.97);
  transition: transform .28s ease;
  outline: none;
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute; top: .85rem; right: .85rem;
  background: var(--surface); border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1rem; color: var(--text-body);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--red); color: var(--white); }

.modal-category {
  display: inline-block; background: var(--red-soft); color: var(--red);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .8rem; border-radius: 50px; border: 1px solid var(--red-border);
  margin-bottom: 1rem;
}
.modal-box h2 {
  font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 800;
  color: var(--text-primary); line-height: 1.3; margin-bottom: 1.5rem;
  padding-right: 2rem;
}
.modal-body { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.modal-body p { font-size: .92rem; color: var(--text-body); line-height: 1.8; }
.modal-body strong { color: var(--text-primary); }

.modal-list { display: flex; flex-direction: column; gap: 1rem; list-style: none; padding: 0; }
.modal-list li {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--surface); border-radius: var(--radius);
  padding: 1rem; border-left: 3px solid var(--red);
}
.modal-list-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.modal-list li div { font-size: .88rem; color: var(--text-body); line-height: 1.6; }
.modal-list li div strong { color: var(--text-primary); display: block; margin-bottom: .2rem; }

.modal-rdv-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--red); color: var(--white);
  padding: .8rem 1.75rem; border-radius: 50px;
  font-size: .92rem; font-weight: 700;
  transition: all var(--transition); text-decoration: none;
}
.modal-rdv-btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-red); }

/* Modal large */
.modal-box-wide { max-width: 780px; }

/* Food categories */
.modal-food-category { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.modal-food-category:first-of-type { margin-top: .5rem; border-top: none; padding-top: 0; }
.modal-food-header { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; }
.modal-food-header span { font-size: 1.4rem; }
.modal-food-header h3 { font-size: .97rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.modal-food-intro { font-size: .85rem; color: var(--text-body); margin-bottom: .85rem; background: var(--surface); padding: .6rem .9rem; border-radius: var(--radius); border-left: 3px solid var(--red); }

.modal-food-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 560px) { .modal-food-grid { grid-template-columns: repeat(2, 1fr); } }

/* Grille colonne unique — pour textes longs (règles, instructions) */
.modal-food-grid-single { display: grid; grid-template-columns: 1fr; gap: .8rem; }
@media (min-width: 700px) { .modal-food-grid-single { grid-template-columns: repeat(2, 1fr); } }

/* Grille 2 colonnes symétriques — pour cartes valeurs numériques */
.modal-grid-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: .85rem 0; }
@media (max-width: 480px) { .modal-grid-2col { grid-template-columns: 1fr; } }

.food-item { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem; background: var(--off-white); border-radius: var(--radius); border: 1px solid var(--border); transition: border-color var(--transition); }
.food-item:hover { border-color: var(--red-border); }
.food-item > span { font-size: 1.3rem; flex-shrink: 0; }
.food-item div strong { display: block; font-size: .84rem; font-weight: 700; color: var(--text-primary); margin-bottom: .25rem; }
.food-item div p { font-size: .82rem; color: var(--text-body); line-height: 1.6; margin: 0; }

/* Avoid section */
.modal-food-avoid { background: #FFF8F8; border-radius: var(--radius); padding: 1rem; border: 1px solid rgba(200,16,46,.15); border-top: none; }
.modal-food-avoid .modal-food-header h3 { color: var(--red); }
.modal-avoid-list { display: flex; flex-direction: column; gap: .5rem; }
.avoid-item { display: flex; align-items: flex-start; gap: .6rem; font-size: .84rem; color: var(--text-body); }
.avoid-item > span:first-child { flex-shrink: 0; font-size: .9rem; }

/* Tip box */
.modal-tip { display: flex; align-items: flex-start; gap: .75rem; background: var(--blue-pale, #EBF4FF); background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: var(--radius); padding: 1rem; margin-top: 1rem; }
.modal-tip span { font-size: 1.3rem; flex-shrink: 0; }
.modal-tip p { font-size: .84rem; color: #065F46; line-height: 1.6; margin: 0; }

/* ESC modal elements */
.esc-intro-box {
  display: flex; align-items: flex-start; gap: .85rem;
  background: var(--slate-900); color: white; border-radius: var(--radius);
  padding: 1.1rem; margin: .5rem 0 0;
}
.esc-intro-box span { font-size: 1.5rem; flex-shrink: 0; }
.esc-intro-box strong { display: block; font-size: .88rem; font-weight: 700; margin-bottom: .3rem; }
.esc-intro-box p { font-size: .82rem; color: rgba(255,255,255,.7); margin: 0; line-height: 1.6; }

.esc-targets-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; margin: .85rem 0; }
@media (min-width: 480px) { .esc-targets-grid { grid-template-columns: repeat(3, 1fr); } }

.esc-target-card {
  border-radius: var(--radius); padding: 1rem; text-align: center;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
}
.esc-target-card p { font-size: .76rem; color: var(--text-body); margin: .3rem 0 0; line-height: 1.5; }
.esc-risk-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.esc-value { font-size: 1.5rem; font-weight: 900; color: var(--text-primary); line-height: 1.1; }
.esc-unit { font-size: .72rem; color: var(--text-body); font-weight: 600; }
.esc-card-red { border-color: rgba(200,16,46,.3); background: var(--red-soft); }
.esc-card-red .esc-value { color: var(--red); }
.esc-card-orange { border-color: rgba(234,88,12,.3); background: #FFF7ED; }
.esc-card-orange .esc-value { color: #EA580C; }
.esc-card-green { border-color: rgba(5,150,105,.3); background: #F0FDF4; }
.esc-card-green .esc-value { color: #059669; }

.esc-target-box {
  background: var(--blue-pale, #EBF4FF); background: #EFF6FF;
  border: 1px solid #BFDBFE; border-left: 3px solid #2563EB;
  border-radius: var(--radius); padding: .85rem 1rem; margin-top: .85rem;
  font-size: .84rem; color: #1E40AF; line-height: 1.6;
}
.esc-target-label { font-weight: 700; display: block; margin-bottom: .25rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }

/* Scrollbar modal */
.modal-box::-webkit-scrollbar { width: 5px; }
.modal-box::-webkit-scrollbar-track { background: var(--surface); border-radius: 5px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--red-border); border-radius: 5px; }

@media (max-width: 480px) {
  .modal-box { padding: 1.5rem; }
  .modal-box h2 { font-size: 1.1rem; }
}

/* ========================================================
   CALCULATEUR RISQUE CARDIOVASCULAIRE — PCE ACC/AHA
   ======================================================== */

.calcul-risque {
  background: var(--surface);
}

/* ── Bandeau sombre du calculateur ── */
.calc-banner {
  background: linear-gradient(135deg, var(--slate-900) 0%, #1A2D45 100%);
  padding: 4rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.calc-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 100% 50%, rgba(200,16,46,.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 50%, rgba(200,16,46,.1) 0%, transparent 55%);
  pointer-events: none;
}
.calc-banner .container { position: relative; }
.calc-banner-tag {
  display: inline-block;
  background: rgba(200,16,46,.2);
  color: rgba(255,180,180,.9);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .95rem; border-radius: 50px; margin-bottom: 1.1rem;
  border: 1px solid rgba(200,16,46,.35);
}
.calc-banner-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: .8rem;
  letter-spacing: -.02em;
}
.calc-banner-sub {
  font-size: .88rem;
  color: rgba(255,255,255,.52);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Corps du dashboard ── */
.calc-body-wrap {
  padding: 3rem 1.5rem 5rem;
}

/* ── Placeholder état vide ── */
.calc-placeholder {
  text-align: center;
  padding: 1.25rem 1rem .75rem;
  color: #94A3B8;
}
.calc-placeholder svg { margin: 0 auto .65rem; display: block; color: #CBD5E1; }
.calc-placeholder p { font-size: .85rem; line-height: 1.7; }
.calc-placeholder p strong { color: #64748B; }

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .calc-wrapper {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

/* ── Card commune ── */
.calc-form-card,
.calc-result-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(11,37,69,.07);
}

/* ── En-tête du formulaire ── */
.calc-form-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--slate-900, #0F1923);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E2E8F0;
}
.calc-form-header svg { color: var(--red, #C8102E); flex-shrink: 0; }

/* ── Grille de champs ── */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}
@media (max-width: 540px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.calc-field label {
  font-size: .78rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.calc-unit {
  font-weight: 400;
  text-transform: none;
  font-size: .73rem;
  color: #94A3B8;
  letter-spacing: 0;
}
.calc-field input,
.calc-field select {
  height: 44px;
  padding: 0 .85rem;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--slate-900, #0F1923);
  background: #F8FAFC;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  font-family: inherit;
}
.calc-field input:focus,
.calc-field select:focus {
  border-color: var(--red, #C8102E);
  box-shadow: 0 0 0 3px rgba(200,16,46,.12);
  background: #fff;
}
.calc-field input::placeholder { color: #CBD5E1; }

/* ── Bouton calculer ── */
.calc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: .85rem 1.5rem;
  background: var(--red, #C8102E);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  font-family: inherit;
  letter-spacing: .02em;
}
.calc-btn:hover {
  background: #A80D26;
  box-shadow: 0 6px 20px rgba(200,16,46,.3);
  transform: translateY(-1px);
}
.calc-btn:active { transform: translateY(0); }

/* ── Disclaimer ── */
.calc-disclaimer {
  margin-top: 1rem;
  font-size: .75rem;
  color: #94A3B8;
  line-height: 1.55;
  border-top: 1px dashed #E2E8F0;
  padding-top: .9rem;
}

/* ── Résultat card ── */
.calc-result-header {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .88rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E2E8F0;
}

/* ── Gauge ── */
.calc-gauge-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}
.calc-gauge {
  width: 100%;
  max-width: 240px;
}
#gauge-fill {
  transition: stroke-dashoffset 1s cubic-bezier(.4,0,.2,1), stroke .5s;
}
#gauge-needle {
  transition: transform 1s cubic-bezier(.4,0,.2,1);
  transform-origin: 100px 100px;
  transform-box: fill-box;
}
.calc-percent-display {
  font-size: 2.4rem;
  font-weight: 800;
  margin-top: -.5rem;
  transition: color .5s;
  letter-spacing: -.03em;
}

/* ── Badge risque ── */
.calc-risk-badge {
  display: inline-block;
  margin: .5rem auto 1.25rem;
  padding: .4rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid;
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
  transition: background-color .5s, color .5s, border-color .5s;
}

/* ── Texte interprétation ── */
.calc-interpretation {
  font-size: .85rem;
  color: #475569;
  line-height: 1.65;
  background: #F8FAFC;
  border-radius: 8px;
  padding: .9rem 1rem;
  margin-bottom: 1.25rem;
  border-left: 3px solid #E2E8F0;
}

/* ── Légende seuils ── */
.calc-thresholds {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border-top: 1px solid #E2E8F0;
  padding-top: 1rem;
}
.calc-th-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  color: #64748B;
}
.calc-th-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.calc-th-green .calc-th-dot { background: #059669; }
.calc-th-orange .calc-th-dot { background: #F97316; }
.calc-th-red .calc-th-dot { background: #C8102E; }

/* ── Intro texte SEO ── */
.calc-intro-text {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  color: #475569;
  font-size: .92rem;
  line-height: 1.75;
}
.calc-intro-text p { margin-bottom: .75rem; }
.calc-intro-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .75rem;
}
@media (max-width: 600px) {
  .calc-intro-list { grid-template-columns: 1fr; }
}
.calc-intro-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .85rem;
  color: #334155;
}
.calc-intro-list li span:first-child {
  color: var(--red, #C8102E);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* ── FAQ accordion ── */
.calc-faq {
  margin-top: 3rem;
  border-top: 1px solid #E2E8F0;
  padding-top: 2.5rem;
}
.calc-faq-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900, #0F1923);
  margin-bottom: 1.25rem;
  text-align: center;
}
.calc-faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: .65rem;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s;
}
.calc-faq-item:hover { box-shadow: 0 2px 12px rgba(11,37,69,.07); }
.calc-faq-item.open { border-color: #CBD5E1; box-shadow: 0 4px 18px rgba(11,37,69,.09); }

.calc-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--slate-900, #0F1923);
  transition: color .2s;
}
.calc-faq-q:hover { color: var(--red, #C8102E); }
.calc-faq-item.open .calc-faq-q { color: var(--red, #C8102E); }
.calc-faq-q svg {
  flex-shrink: 0;
  transition: transform .3s;
  color: #94A3B8;
}
.calc-faq-item.open .calc-faq-q svg { transform: rotate(180deg); color: var(--red, #C8102E); }

.calc-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s;
  padding: 0 1.25rem;
}
.calc-faq-item.open .calc-faq-a {
  max-height: 300px;
  padding: 0 1.25rem 1.1rem;
}
.calc-faq-a p {
  font-size: .87rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}
.calc-faq-a a {
  color: var(--red, #C8102E);
  text-decoration: underline;
  font-weight: 600;
}

/* ── PREVENT 2023 — 4e catégorie : risque limite (teal) ── */
.calc-th-teal .calc-th-dot { background: #0D9488; }

/* ── Note source PREVENT ── */
.calc-source-note {
  font-size: .7rem;
  color: #94A3B8;
  text-align: center;
  margin-top: .75rem;
  font-style: italic;
}

/* ── Aperçu non-HDL calculé ── */
.calc-nonhdl-preview {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .85rem;
  padding: .55rem .85rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  font-size: .8rem;
  color: #1D4ED8;
}
.calc-nonhdl-preview svg { flex-shrink: 0; color: #3B82F6; }

/* ── Onglets bilingues modal ── */
.modal-lang-tabs {
  display: flex;
  gap: .45rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.modal-lang-btn {
  padding: .38rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-body);
  transition: all .2s;
}
.modal-lang-btn.active,
.modal-lang-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Méta article (source) */
.modal-article-meta {
  font-size: .78rem;
  color: #94A3B8;
  margin-bottom: 1rem;
  display: block;
}

/* Grille aliments à éviter en 2 colonnes */
.avoid-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
  margin-top: .5rem;
}
@media (min-width: 560px) {
  .avoid-list-grid { grid-template-columns: repeat(2, 1fr); }
}
.avoid-list-grid .avoid-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .84rem;
  color: var(--text-body);
  background: rgba(255,255,255,.7);
  padding: .55rem .7rem;
  border-radius: var(--radius);
}
.avoid-list-grid .avoid-item > span:first-child { flex-shrink: 0; font-size: .9rem; }
.avoid-list-grid .avoid-item strong { display: block; font-size: .82rem; font-weight: 700; color: var(--red); margin-bottom: .15rem; }
.avoid-list-grid .avoid-item p { font-size: .78rem; margin: 0; line-height: 1.5; }

/* ═══════════════════════════════════════════════
   PAGES ARTICLE AUTONOMES (article-*.html)
   ═══════════════════════════════════════════════ */

.art-header {
  position: sticky; top: 0; z-index: 100;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.art-header-logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--text-primary);
  font-weight: 700; font-size: .9rem; line-height: 1.25;
}
.art-header-logo img { height: 36px; width: auto; border-radius: 4px; }
.art-header-logo span { display: none; }
@media (min-width: 500px) { .art-header-logo span { display: inline; } }
.art-header-rdv {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem 1.1rem; background: var(--red); color: #fff;
  border-radius: 50px; font-size: .82rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: background .2s;
  min-height: 44px;
}
.art-header-rdv:hover { background: var(--red-dark); }

.art-breadcrumb {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: .5rem 1.5rem; font-size: .75rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.art-breadcrumb a { color: var(--red); }
.art-breadcrumb a:hover { text-decoration: underline; }

.art-main { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.art-hero {
  max-width: 860px; margin: 0 auto 0; padding: 0 1.5rem;
}
.art-hero img {
  width: 100%; height: 300px;
  object-fit: cover; object-position: center;
  border-radius: 14px; display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
}
.art-hero img.art-hero-infographic {
  display: block; max-width: 100%; width: 100%;
  height: auto; object-fit: contain;
  box-shadow: none; background: #f4f6f9;
}
@media (max-width: 640px) {
  .art-hero { padding: 0; }
  .art-hero img { border-radius: 0; height: 200px; }
  .art-hero img.art-hero-infographic { height: auto; }
}

.art-category {
  display: inline-block; font-size: .72rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--red);
  background: rgba(200,16,46,.08); padding: .25rem .8rem;
  border-radius: 50px; margin-bottom: 1rem;
}
.art-title {
  font-size: clamp(1.35rem, 3vw, 1.95rem); font-weight: 800;
  color: var(--text-primary); line-height: 1.25; margin-bottom: .75rem;
}
.art-meta-bar {
  display: flex; align-items: center; gap: 1rem;
  font-size: .8rem; color: var(--text-muted);
  margin-bottom: 1.5rem; flex-wrap: wrap; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.art-lang-tabs {
  display: flex; gap: .45rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.art-lang-btn {
  padding: .55rem 1.2rem; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  font-family: var(--font); color: var(--text-body); transition: all .2s;
  min-height: 44px; display: inline-flex; align-items: center;
}
.art-lang-btn.active, .art-lang-btn:hover {
  background: var(--red); color: #fff; border-color: var(--red);
}
.art-lang-content { display: none; }
.art-lang-content.active { display: block; }

.art-cta {
  background: linear-gradient(135deg, var(--red) 0%, #8B0010 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: 1.75rem 2rem; text-align: center; margin-top: 2.5rem;
}
.art-cta h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .5rem; }
.art-cta p { font-size: .88rem; opacity: .9; margin-bottom: 1.1rem; }
.art-cta-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .72rem 1.7rem; background: #fff; color: var(--red);
  border-radius: 50px; font-weight: 700; font-size: .9rem;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  min-height: 44px;
}
.art-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }

.art-footer {
  background: var(--slate-900); color: rgba(255,255,255,.75);
  padding: 2rem 1.5rem; text-align: center; font-size: .85rem;
}
.art-footer a { color: rgba(255,255,255,.9); }
.art-footer strong { display: block; font-size: 1rem; color: #fff; margin-bottom: .4rem; }
.art-footer-phones {
  display: flex; gap: 1.5rem; justify-content: center;
  flex-wrap: wrap; margin: .75rem 0; font-size: .9rem;
}
.art-footer-disclaimer {
  margin-top: .75rem; font-size: .72rem; color: rgba(255,255,255,.4);
}
.art-footer-nav { margin-top: .5rem; font-size: .8rem; }
.art-footer-nav a { color: rgba(255,255,255,.6); margin: 0 .5rem; }
.art-footer-nav a:hover { color: #fff; }

@media (max-width: 640px) {
  /* Espacement sécurité pour la barre RDV fixe en bas */
  .art-main { padding: 1.25rem 1rem 100px; }
  .art-header { padding: .6rem 1rem; height: auto; }
  .art-breadcrumb { padding: .4rem 1rem; }
  .art-cta { padding: 1.25rem 1.25rem; margin-bottom: 1rem; }

  /* Bouton RDV : barre fixe plein-largeur en bas sur mobile */
  .art-header-rdv {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%;
    border-radius: 0;
    min-height: 52px;
    padding: .85rem 1rem;
    font-size: .97rem;
    justify-content: center;
    text-align: center;
    z-index: 50;
    box-shadow: 0 -2px 12px rgba(200,16,46,.25);
  }
}

/* =====================================================
   OUTILS INTERACTIFS — IMC + Suivi Tension
===================================================== */
.tool-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  margin-bottom: 2rem; box-shadow: var(--shadow-sm);
}
.tool-card-title {
  font-size: 1.05rem; font-weight: 800; color: var(--text-primary);
  margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 2px solid var(--red-soft);
}
.tool-form-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .9rem; margin-bottom: 1.25rem;
}
.tool-field { display: flex; flex-direction: column; gap: .35rem; }
.tool-field label {
  font-size: .72rem; font-weight: 700; color: #475569;
  text-transform: uppercase; letter-spacing: .06em;
}
.tool-field input, .tool-field select {
  height: 44px; padding: 0 .85rem;
  border: 1.5px solid #CBD5E1; border-radius: 8px;
  font-size: 1rem; font-family: var(--font);
  color: var(--text-primary); background: #F8FAFC;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.tool-field input:focus, .tool-field select:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.1); background: #fff;
}
.tool-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; min-height: 48px; background: var(--red); color: #fff;
  border: none; border-radius: 10px; font-size: 1rem; font-weight: 700;
  font-family: var(--font); cursor: pointer; transition: background .2s;
}
.tool-btn:hover { background: var(--red-dark); }
.tool-result {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 3px solid var(--border); transition: border-color .3s;
}
.tool-radio-group { display: flex; gap: .6rem; flex-wrap: wrap; }
.tool-radio {
  display: inline-flex; align-items: center; gap: .4rem;
  cursor: pointer; font-size: .9rem; font-weight: 500;
  padding: .55rem 1rem; border-radius: 8px; min-height: 44px;
  border: 1.5px solid var(--border); background: var(--surface);
  transition: all .18s; user-select: none;
}
.tool-radio:has(input:checked) { border-color: var(--red); background: var(--red-soft); color: var(--red); font-weight: 700; }
.tool-radio input { position: absolute; opacity: 0; width: 0; height: 0; }

/* ── IMC ── */
.imc-result-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.imc-main-value { font-size: 3.2rem; font-weight: 900; line-height: 1; }
.imc-category { font-size: 1rem; font-weight: 700; margin-top: .25rem; }
.imc-emoji { font-size: 2.8rem; }
.imc-scale-wrap { margin: .5rem 0 1.25rem; overflow: hidden; }
.imc-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1rem; }
.imc-detail-card {
  background: var(--surface); border-radius: 10px;
  padding: 1rem; text-align: center;
}
.imc-detail-label { font-size: .7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.imc-detail-value { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); margin-top: .3rem; }

/* ── IMC Apple Health style ── */
.imc-wrap { max-width: 480px; margin: 0 auto 2.5rem; }
.imc-card {
  background: #fff; border-radius: 22px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 2px 20px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
}
.imc-card-header { text-align: center; margin-bottom: 1.75rem; }
.imc-card-icon { font-size: 2rem; display: block; margin-bottom: .5rem; line-height: 1; }
.imc-card-header h2 { font-size: 1.1rem; font-weight: 800; color: #111; margin-bottom: .2rem; }
.imc-card-header p { font-size: .75rem; color: #9ca3af; font-weight: 500; }
.imc-seg {
  display: flex; gap: 4px;
  background: #f1f3f6; border-radius: 12px; padding: 4px;
  margin-bottom: 1.25rem;
}
.imc-seg-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .35rem;
  height: 40px; border-radius: 9px; font-size: .88rem; font-weight: 600;
  cursor: pointer; color: #6b7280; transition: all .18s; user-select: none;
}
.imc-seg-btn:has(input:checked) {
  background: #fff; color: #C8102E;
  box-shadow: 0 1px 5px rgba(0,0,0,.1);
}
.imc-seg-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.imc-inputs-row { display: flex; gap: .75rem; margin-bottom: 1.25rem; }
.imc-input-group { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.imc-input-group label {
  font-size: .68rem; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .07em; padding-left: .15rem;
}
.imc-input-wrap { position: relative; }
.imc-input-wrap input {
  width: 100%; height: 54px; padding: 0 2.8rem 0 1rem;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  font-size: 1.35rem; font-weight: 800; color: #111;
  background: #f9fafb; outline: none; font-family: var(--font);
  transition: border-color .18s, box-shadow .18s;
  -moz-appearance: textfield;
}
.imc-input-wrap input::-webkit-outer-spin-button,
.imc-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.imc-input-wrap input:focus {
  border-color: #C8102E; background: #fff;
  box-shadow: 0 0 0 3px rgba(200,16,46,.1);
}
.imc-unit {
  position: absolute; right: .85rem; top: 50%; transform: translateY(-50%);
  font-size: .72rem; font-weight: 700; color: #b0b7c3; pointer-events: none;
}
.imc-btn {
  width: 100%; height: 50px;
  background: #C8102E; color: #fff; border: none; border-radius: 13px;
  font-size: .97rem; font-weight: 700; font-family: var(--font);
  cursor: pointer; letter-spacing: .01em;
  transition: background .18s, transform .1s, box-shadow .18s;
}
.imc-btn:hover { background: #A00C23; box-shadow: 0 4px 14px rgba(200,16,46,.35); }
.imc-btn:active { transform: scale(.98); }
.imc-result-block {
  margin-top: 1.75rem; padding-top: 1.75rem;
  border-top: 1.5px solid #f1f3f6;
}
.imc-result-center { text-align: center; margin-bottom: 1.5rem; }
.imc-big-number {
  font-size: 4.5rem; font-weight: 900; line-height: 1;
  letter-spacing: -.04em; display: block;
}
.imc-cat-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem 1rem; border-radius: 50px;
  font-size: .82rem; font-weight: 700; margin-top: .65rem;
}
.imc-stats-row { display: flex; gap: .65rem; margin-bottom: 1.25rem; }
.imc-stat {
  flex: 1; background: #f9fafb; border-radius: 13px;
  padding: .85rem .75rem; text-align: center;
}
.imc-stat-label {
  font-size: .65rem; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: .25rem;
}
.imc-stat-value { font-size: 1rem; font-weight: 800; color: #111; }
.imc-advice-box {
  background: #f9fafb; border-radius: 13px;
  padding: 1rem 1.1rem; font-size: .84rem;
  color: #4b5563; line-height: 1.7; margin-bottom: 0;
}
.imc-advice-box strong { color: #111; }
.imc-disclaimer {
  text-align: center; font-size: .68rem; color: #c4c9d4;
  margin-top: 1rem;
}
@media (max-width: 420px) {
  .imc-card { padding: 1.5rem 1.25rem; }
  .imc-big-number { font-size: 3.5rem; }
  .imc-input-wrap input { font-size: 1.15rem; }
}

/* ── BP Tracker ── */
.bp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1rem; border-radius: 8px; border: 1px solid var(--border); }
.bp-table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 500px; }
.bp-table th {
  background: var(--surface); padding: .6rem .75rem;
  text-align: left; font-size: .69rem; font-weight: 700;
  color: #475569; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 2px solid var(--border); white-space: nowrap;
}
.bp-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); color: var(--text-body); white-space: nowrap; }
.bp-table tr:last-child td { border-bottom: none; }
.bp-table tr:hover td { background: var(--surface); }
.bp-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .18rem .55rem; border-radius: 50px;
  font-size: .7rem; font-weight: 700; white-space: nowrap;
}
.bp-delete {
  background: none; border: none; color: #ef4444; cursor: pointer;
  font-size: .9rem; padding: .3rem .5rem; border-radius: 6px;
  min-width: 32px; min-height: 32px; transition: background .18s;
}
.bp-delete:hover { background: #fee2e2; }
.bp-empty { text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); font-size: .92rem; }
.bp-chart-wrap { background: var(--surface); border-radius: 12px; padding: 1rem; margin-top: 1.5rem; overflow: hidden; }
.bp-legend { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: .75rem; font-size: .8rem; flex-wrap: wrap; }
.bp-legend-item { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.bp-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.bp-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.25rem; }
.bp-summary-card { background: var(--surface); border-radius: 10px; padding: .85rem; text-align: center; }
.bp-summary-label { font-size: .68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.bp-summary-value { font-size: 1.35rem; font-weight: 900; color: var(--text-primary); }
.bp-summary-sub { font-size: .7rem; color: var(--text-muted); margin-top: .15rem; }
.bp-clear-btn {
  background: none; border: 1.5px solid #ef4444; color: #ef4444; border-radius: 8px;
  font-size: .78rem; font-weight: 600; padding: .4rem .9rem; cursor: pointer;
  min-height: 36px; transition: all .18s; font-family: var(--font);
}
.bp-clear-btn:hover { background: #fee2e2; }

@media (max-width: 640px) {
  .tool-form-grid { grid-template-columns: 1fr 1fr; }
  .imc-details-grid { grid-template-columns: 1fr 1fr; }
  .bp-summary-grid { grid-template-columns: 1fr 1fr; }
  .tool-card { padding: 1.25rem; }
}
