/* ============================================================
   SOBEPIT — 3èmes Journées Nationales d'Infectiologie du Bénin
   Palette tirée de l'affiche officielle :
   bleu nuit, turquoise, jaune, blanc
   ============================================================ */

:root {
  --navy-900: #0a1f3d;
  --navy-800: #0e2a52;
  --navy-700: #143767;
  --teal-500: #2ec4b6;
  --teal-400: #43d9cb;
  --teal-100: #e0f7f5;
  --yellow-400: #f4c81f;
  --yellow-100: #fdf5d7;
  --white: #ffffff;
  --ink: #1c2733;
  --ink-soft: #4d5c6d;
  --line: #dde5ee;
  --bg-soft: #f4f8fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 31, 61, .10);
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-500); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--yellow-400); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1180px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--navy-900); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 48px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; color: var(--navy-900); font-size: 1.15rem; letter-spacing: .5px; }
.brand-text small { color: var(--ink-soft); font-size: .68rem; max-width: 300px; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--navy-800); font-weight: 600; font-size: .92rem; }
.main-nav a:hover { color: var(--teal-500); text-decoration: none; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow-400); color: var(--navy-900); box-shadow: 0 6px 18px rgba(244,200,31,.35); }
.btn-primary:hover { background: #ffd83a; }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--teal-400); }
.btn-secondary:hover { background: rgba(67,217,203,.12); }
.btn-teal { background: var(--teal-500); color: var(--white); }
.btn-teal:hover { background: #26b0a3; }
.btn-nav { background: var(--navy-800); color: var(--white) !important; padding: 9px 20px; font-size: .85rem; }
.btn-nav:hover { background: var(--navy-700); color: var(--white); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy-900); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 55%, #10406b 100%);
  color: var(--white);
  padding: 90px 0 70px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,196,182,.28), transparent 70%);
  pointer-events: none;
}
.hero::before { width: 520px; height: 520px; top: -160px; right: -120px; }
.hero::after { width: 420px; height: 420px; bottom: -180px; left: -140px; background: radial-gradient(circle, rgba(244,200,31,.14), transparent 70%); }

.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(46,196,182,.15); border: 1px solid rgba(67,217,203,.4);
  color: var(--teal-400); font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 900; margin-bottom: 18px; }
.hero h1 .accent { color: var(--teal-400); }
.hero-theme {
  border-left: 4px solid var(--yellow-400);
  padding: 8px 0 8px 18px; margin: 22px 0 26px;
}
.hero-theme .label { color: var(--yellow-400); font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; }
.hero-theme p { font-size: 1.25rem; font-weight: 600; color: #eaf3ff; margin-top: 4px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 30px; color: #cfe0f2; font-weight: 500; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-poster {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  transform: rotate(1.5deg);
  border: 4px solid rgba(255,255,255,.12);
}
.hero-poster img { width: 100%; }

/* Countdown */
.countdown-band { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.08); padding: 26px 0; }
.countdown { display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); text-align: center; }
.countdown .unit { min-width: 84px; }
.countdown .num {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--teal-400); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown .lab { color: #9db4cd; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #dfeaf6; }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .kicker {
  color: var(--teal-500); font-family: var(--font-display); font-weight: 700;
  font-size: .8rem; letter-spacing: 2.5px; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: 10px 0 14px; }
.section-head p { color: var(--ink-soft); }
.section-dark .section-head p { color: #b9cbdf; }

/* À propos */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.about-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
}
.about-card .icon { font-size: 2rem; margin-bottom: 14px; }
.about-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.about-card p { color: var(--ink-soft); font-size: .95rem; }

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.stat { text-align: center; padding: 22px 10px; border-radius: var(--radius); background: var(--teal-100); }
.stat .n { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--navy-800); }
.stat .l { color: var(--ink-soft); font-size: .85rem; }

/* Thèmes */
.themes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.theme-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 24px 22px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.theme-card:hover { transform: translateY(-4px); border-color: var(--teal-400); background: rgba(46,196,182,.08); }
.theme-card .dot {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(46,196,182,.18); color: var(--teal-400);
  font-family: var(--font-display); font-weight: 800; margin-bottom: 14px;
}
.theme-card h3 { font-size: 1.02rem; color: var(--white); font-weight: 600; }

/* Comité */
.committee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; box-shadow: var(--shadow); }
.member-photo { aspect-ratio: 1/1; background: linear-gradient(150deg, var(--teal-100), #dbeafe); display: grid; place-items: center; }
.member-photo span { font-size: 3rem; }
.member-card .info { padding: 18px 14px 22px; }
.member-card h3 { font-size: 1rem; margin-bottom: 4px; }
.member-card p { color: var(--ink-soft); font-size: .84rem; }
.committee-note { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: 26px; font-style: italic; }

/* Programme */
.tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: 12px 28px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--white); color: var(--navy-800); cursor: pointer; transition: .15s;
}
.tab-btn:hover { border-color: var(--teal-500); }
.tab-btn.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.tab-panel { display: none; max-width: 860px; margin-inline: auto; }
.tab-panel.active { display: block; }
.tab-panel > .day-title { text-align: center; font-size: 1.1rem; color: var(--teal-500); font-family: var(--font-display); font-weight: 700; margin-bottom: 26px; }

.timeline { border-left: 3px solid var(--teal-500); margin-left: 130px; }
.slot { position: relative; padding: 0 0 26px 34px; }
.slot::before {
  content: ""; position: absolute; left: -9px; top: 6px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--teal-500);
}
.slot .time {
  position: absolute; left: -160px; top: 2px; width: 118px; text-align: right;
  font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}
.slot h4 { font-size: 1.02rem; font-weight: 700; }
.slot p { color: var(--ink-soft); font-size: .9rem; }
.slot.highlight h4 { color: var(--teal-500); }

/* Abstracts */
.abstract-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.abstract-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 34px 32px; }
.abstract-box h3 { margin-bottom: 18px; font-size: 1.25rem; }
.spec-list { list-style: none; }
.spec-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.spec-list li:last-child { border-bottom: none; }
.spec-list .k { min-width: 150px; font-weight: 700; color: var(--navy-800); font-size: .92rem; }
.spec-list .v { color: var(--ink-soft); font-size: .95rem; }
.deadline-cards { display: grid; gap: 16px; margin-top: 8px; }
.deadline-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.deadline-card .date {
  min-width: 92px; text-align: center; background: var(--navy-800); color: var(--white);
  border-radius: 10px; padding: 10px 8px; font-family: var(--font-display);
}
.deadline-card .date b { display: block; font-size: 1.35rem; }
.deadline-card .date small { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--teal-400); }
.deadline-card.warn .date { background: var(--yellow-400); color: var(--navy-900); }
.deadline-card.warn .date small { color: var(--navy-800); }
.deadline-card h4 { font-size: 1rem; }
.deadline-card p { color: var(--ink-soft); font-size: .88rem; }

/* Tarifs */
.pricing-toggle-note { text-align: center; color: var(--ink-soft); margin-bottom: 34px; font-size: .95rem; }
.pricing-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--white); }
table.pricing { width: 100%; border-collapse: collapse; min-width: 640px; }
table.pricing th, table.pricing td { padding: 18px 22px; text-align: left; }
table.pricing thead th {
  background: var(--navy-800); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
}
table.pricing thead th:nth-child(2) { color: var(--teal-400); }
table.pricing thead th:nth-child(3) { color: var(--yellow-400); }
table.pricing tbody tr { border-top: 1px solid var(--line); }
table.pricing tbody tr:nth-child(even) { background: var(--bg-soft); }
table.pricing td.price { font-family: var(--font-display); font-weight: 800; color: var(--navy-800); font-variant-numeric: tabular-nums; }
table.pricing td.cat { font-weight: 600; }
.pricing-cta { text-align: center; margin-top: 36px; }

/* Lieu + hôtels */
.venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.venue-info h3 { font-size: 1.4rem; margin-bottom: 14px; }
.venue-info p { color: var(--ink-soft); margin-bottom: 16px; }
.venue-list { list-style: none; margin-top: 8px; }
.venue-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; color: var(--ink-soft); }
.map-frame { border: 0; width: 100%; min-height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); }

.hotels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hotel-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 24px; }
.hotel-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.hotel-card p { color: var(--ink-soft); font-size: .88rem; }
.hotel-card .tag { display: inline-block; background: var(--teal-100); color: var(--navy-800); font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }

/* Partenaires */
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.partner-chip {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 26px; font-weight: 600; color: var(--navy-800); font-size: .95rem;
  box-shadow: var(--shadow);
}

/* FAQ */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; background: var(--white); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy-800);
  font-family: var(--font-display); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-500); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; }
.contact-cards { display: grid; gap: 18px; }
.contact-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.contact-card .ic { font-size: 1.5rem; }
.contact-card h4 { font-size: .95rem; margin-bottom: 3px; }
.contact-card p { color: var(--ink-soft); font-size: .92rem; word-break: break-word; }

/* ---------- Formulaires ---------- */
.form-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 36px 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 700; font-size: .88rem; color: var(--navy-800); }
.form-group label .req { color: #d33; }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  background: var(--white); transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(46,196,182,.15);
}
.form-hint { font-size: .78rem; color: var(--ink-soft); }
.form-actions { margin-top: 26px; text-align: center; }
.form-actions .btn { min-width: 240px; }

.alert { border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; font-weight: 500; }
.alert-success { background: #e5f8ee; border: 1px solid #9be0bb; color: #146c3c; }
.alert-error { background: #fdecec; border: 1px solid #f2b3b3; color: #a12626; }

.page-hero { background: linear-gradient(150deg, var(--navy-900), var(--navy-800)); color: var(--white); padding: 64px 0 54px; text-align: center; }
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: #b9cbdf; max-width: 640px; margin-inline: auto; }
.page-body { padding: 60px 0 90px; background: var(--bg-soft); }
.narrow { max-width: 860px; margin-inline: auto; }

.price-preview {
  margin-top: 10px; background: var(--teal-100); border-radius: 10px;
  padding: 12px 16px; font-weight: 700; color: var(--navy-800); display: none;
}
.price-preview.visible { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c4d4e6; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1.1fr; gap: 36px; padding: 60px 0 44px; }
.footer-logo { height: 52px; width: auto; border-radius: 6px; margin-bottom: 14px; background: var(--white); padding: 4px; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 14px; letter-spacing: .5px; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 5px 0; font-size: .9rem; }
.footer-col a { color: #9fc4e8; }
.footer-muted { font-size: .85rem; color: #8aa2bd; margin-top: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .85rem; color: #7e97b3; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-poster { max-width: 420px; margin-inline: auto; transform: none; }
  .about-grid, .themes-grid, .hotels-grid { grid-template-columns: repeat(2, 1fr); }
  .committee-grid { grid-template-columns: repeat(2, 1fr); }
  .abstract-wrap, .venue-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 18px 6%;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 4px; border-bottom: 1px solid var(--bg-soft); }
  .nav-toggle { display: block; }
  .brand-text small { display: none; }
  .about-grid, .themes-grid, .hotels-grid, .committee-grid, .form-grid { grid-template-columns: 1fr; }
  .timeline { margin-left: 0; border-left: none; }
  .slot { padding-left: 0; }
  .slot::before { display: none; }
  .slot .time { position: static; width: auto; text-align: left; display: block; color: var(--teal-500); margin-bottom: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
