/* ===== COLOSCOPIE.CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,600&family=DM+Sans:wght@300;400;500;600&family=Courier+Prime:wght@400;700&display=swap');

:root {
  --white:      #ffffff;
  --cream:      #f7f8f5;
  --ice:        #eef5f5;
  --teal:       #0d7377;
  --teal-light: #14a0a6;
  --teal-pale:  #d0eeef;
  --teal-dark:  #084e52;
  --gray:       #6b7280;
  --mid:        #374151;
  --dark:       #111827;
  --border:     #dde8e8;
  --danger:     #dc2626;
  --warn:       #b45309;
  --good:       #047857;
  --shadow:     0 2px 12px rgba(13,115,119,.1);
  --shadow-lg:  0 8px 40px rgba(13,115,119,.14);
  --font-disp:  'Fraunces', serif;
  --font-body:  'DM Sans', sans-serif;
  --font-mono:  'Courier Prime', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--mid);
  line-height: 1.75;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--teal); }

/* Halftone texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(13,115,119,.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none; z-index: 0;
}

#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  width: 0%; z-index: 200; transition: width .1s;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  background: rgba(247,248,245,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-id {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none;
}
.nav-cross {
  width: 32px; height: 32px; background: var(--teal);
  border-radius: 6px; display: grid; place-items: center;
  color: white; font-size: 1.2rem; font-weight: 700; line-height: 1;
  font-family: var(--font-disp);
}
.nav-name {
  font-family: var(--font-disp); font-size: .95rem; font-weight: 600;
  color: var(--dark); letter-spacing: .01em;
}

.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  font-size: .82rem; font-weight: 500; color: var(--gray);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--teal); }

.nav-tag {
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--teal); background: var(--teal-pale);
  padding: .28rem .75rem; border-radius: 100px;
  border: 1px solid rgba(13,115,119,.2);
}

/* ── HERO ── */
.hero {
  position: relative; z-index: 1;
  padding: 8rem 3rem 5rem;
  display: grid; grid-template-columns: 55% 45%; gap: 3rem; align-items: center;
  max-width: 1280px; margin: 0 auto;
}

.hero-flag {
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--teal); letter-spacing: .2em; text-transform: uppercase;
  display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem;
}
.hero-flag::before { content: ''; width: 24px; height: 1px; background: var(--teal); }

.hero h1 {
  font-family: var(--font-disp);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700; line-height: 1.0; color: var(--dark);
  letter-spacing: -.02em; margin-bottom: 1.4rem;
}

.hero h1 span { color: var(--teal); font-style: italic; }

.hero-desc {
  font-size: .97rem; color: var(--gray);
  max-width: 480px; line-height: 1.85; margin-bottom: 2.5rem; font-weight: 300;
}

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hs-item { display: flex; flex-direction: column; }
.hs-n {
  font-family: var(--font-disp); font-size: 2rem; font-weight: 600;
  color: var(--teal); line-height: 1;
}
.hs-l { font-family: var(--font-mono); font-size: .65rem; color: var(--gray); letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem; }

/* Hero visual — colon illustration */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}

.colon-diagram {
  width: 100%; max-width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.colon-diagram h3 {
  font-family: var(--font-disp); font-size: .95rem; font-weight: 600;
  color: var(--dark); margin-bottom: 1.2rem; text-align: center;
}

.segment {
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem .8rem; border-radius: 6px;
  transition: background .2s;
  cursor: default;
}
.segment:hover { background: var(--ice); }
.seg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.seg-name { font-size: .85rem; font-weight: 600; color: var(--dark); }
.seg-info { font-size: .75rem; color: var(--gray); margin-left: auto; font-family: var(--font-mono); }

/* ── SECTION ── */
section { position: relative; z-index: 1; }
.sec-inner { max-width: 1160px; margin: 0 auto; padding: 5rem 3rem; }

.shead { margin-bottom: 3rem; }
.shead-num { font-family: var(--font-mono); font-size: .7rem; color: var(--teal); letter-spacing: .2em; display: block; margin-bottom: .4rem; }
.shead-title { font-family: var(--font-disp); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; color: var(--dark); }
.shead-sub { font-size: .93rem; color: var(--gray); margin-top: .7rem; max-width: 600px; line-height: 1.75; font-weight: 300; }

/* ── CARDS ── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem;
}
.c-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.c-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--teal-pale); }

.c-num {
  font-family: var(--font-mono); font-size: .68rem; color: var(--teal);
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: .8rem;
}
.c-title { font-family: var(--font-disp); font-size: 1.1rem; font-weight: 600; color: var(--dark); margin-bottom: .6rem; }
.c-desc { font-size: .86rem; color: var(--gray); line-height: 1.75; }
.c-tag {
  display: inline-block; margin-top: 1rem;
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .08em;
  background: var(--teal-pale); color: var(--teal-dark);
  padding: .22rem .65rem; border-radius: 100px;
}

/* ── PREPARATION STEPS ── */
.prep-steps { display: flex; flex-direction: column; gap: .6rem; margin-top: 2rem; }
.prep-step {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 1rem; align-items: start;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.2rem; transition: border-color .25s;
  opacity: 0; transform: translateX(-14px); transition: opacity .5s, transform .5s, border-color .2s;
}
.prep-step.visible { opacity: 1; transform: translateX(0); }
.prep-step:hover { border-color: var(--teal); }

.prep-step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: white;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
}
.prep-body {}
.prep-title { font-size: .92rem; font-weight: 600; color: var(--dark); margin-bottom: .3rem; }
.prep-desc { font-size: .83rem; color: var(--gray); line-height: 1.7; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
thead { background: var(--teal-pale); }
th {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-dark);
  padding: .9rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border);
}
td { padding: .9rem 1.2rem; border-bottom: 1px solid rgba(13,115,119,.06); color: var(--mid); }
tr:hover td { background: var(--ice); }
tr:last-child td { border-bottom: none; }

.badge-r { font-size:.68rem;padding:.18rem .6rem;border-radius:4px;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.06em; }
.badge-green { background:#d1fae5; color:#065f46; }
.badge-amber { background:#fef3c7; color:#92400e; }
.badge-red   { background:#fee2e2; color:#991b1b; }

/* ── PATHOLOGIE CARDS ── */
.patho-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.patho-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem;
  border-left: 4px solid var(--teal);
  transition: transform .25s, box-shadow .25s;
}
.patho-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.patho-icon { font-size: 1.6rem; margin-bottom: .7rem; }
.patho-name { font-family: var(--font-disp); font-size: .95rem; font-weight: 600; color: var(--dark); margin-bottom: .4rem; }
.patho-desc { font-size: .8rem; color: var(--gray); line-height: 1.65; }

/* ── SCORE BOSTON ── */
.boston-wrap { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.boston-seg { background: var(--white); padding: 1.5rem; text-align: center; }
.boston-score { font-family: var(--font-disp); font-size: 2.2rem; font-weight: 700; line-height: 1; margin-bottom: .5rem; }
.score-0 { color: #dc2626; }
.score-1 { color: #ea580c; }
.score-2 { color: #ca8a04; }
.score-3 { color: #15803d; }
.boston-label { font-size: .75rem; color: var(--gray); line-height: 1.5; }

/* ── ALERT / INFO BOX ── */
.info-box {
  background: var(--ice); border: 1px solid var(--teal-pale);
  border-left: 4px solid var(--teal);
  border-radius: 8px; padding: 1.2rem 1.5rem;
  font-size: .87rem; color: var(--mid); line-height: 1.75; margin-top: 1.5rem;
}
.warn-box {
  background: #fffbeb; border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px; padding: 1.2rem 1.5rem;
  font-size: .87rem; color: #78350f; line-height: 1.75; margin-top: 1rem;
}

/* ── FADE IN ── */
.fi { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.fi.visible { opacity: 1; transform: translateY(0); }

/* ── BAND ── */
.band { background: var(--teal-dark); color: white; padding: 4rem 3rem; }
.band-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.band-n { font-family: var(--font-disp); font-size: 2.8rem; font-weight: 700; color: var(--teal-pale); line-height: 1; }
.band-l { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: .4rem; }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: rgba(255,255,255,.4);
  padding: 2rem 3rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.ft-brand { font-family: var(--font-disp); color: rgba(255,255,255,.7); font-size: 1rem; }
.ft-copy { font-family: var(--font-mono); font-size: .7rem; }

@media(max-width:900px){
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .band-inner { grid-template-columns: repeat(2,1fr); }
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .sec-inner { padding: 3rem 1.2rem; }
  .hero { padding: 7rem 1.2rem 3rem; }
  .boston-wrap { grid-template-columns: repeat(2,1fr); }
}
