/* ════════════════════════════════════════
   RESET & VARIABLES — ALISSA MAZHAR ERGO
════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --c-blue:      #2563eb;
  --c-blue-h:    #1d4ed8;
  --c-blue-dark: #1e3a5f;
  --c-blue-mid:  #3b82f6;
  --c-teal:      #0891b2;
  --c-teal-h:    #0e7490;
  --c-bg-alt:    #eff6ff;
  --c-card:      #ffffff;
  --c-border:    #dbeafe;
  --c-text:      #1e293b;
  --c-muted:     #64748b;
  --c-title:     #1e3a5f;
  --c-white:     #ffffff;
  --radius:      14px;
  --shadow:      0 4px 24px rgba(37,99,235,0.08);
  --shadow-lg:   0 12px 40px rgba(37,99,235,0.14);
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  background: #fff;
  color: var(--c-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--c-blue); color: #fff; }

/* ════════════════════════════════════════
   UTILITY
════════════════════════════════════════ */
.container { max-width: 1000px; width: 100%; margin: 0 auto; padding: 0 24px; }

.label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--c-title);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 620px;
  margin-bottom: 40px;
}

section { padding: 80px 0; }

.bg-alt { background: var(--c-bg-alt); }

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: var(--c-blue-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--c-blue);
  border: 2px solid var(--c-blue);
}
.btn-secondary:hover { background: var(--c-blue); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--c-blue);
  font-weight: 700;
}
.btn-white:hover { background: #f0f7ff; transform: translateY(-2px); }

.btn-doctolib {
  background: #107ACA;
  color: #fff;
  font-size: 1.05rem;
  padding: 16px 36px;
  box-shadow: 0 4px 20px rgba(16,122,202,0.35);
}
.btn-doctolib:hover {
  background: #0b6ab8;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16,122,202,0.4);
}

/* ════════════════════════════════════════
   HEADER / NAV
════════════════════════════════════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-title);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.nav-logo .name { display: inline; }
.nav-logo span { color: var(--c-blue); }
.nav-logo small {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-muted);
}

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--c-text);
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-blue); }

.nav-cta {
  background: var(--c-blue);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem !important;
}
.nav-cta:hover { background: var(--c-blue-h); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--c-title);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
}
.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span { color: #93c5fd; }
.hero .label {
  color: #fff;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════
   CARDS
════════════════════════════════════════ */
.card {
  background: #107ACA;
  border: none;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(37,99,235,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  color: #fff;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.35);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card-icon svg { stroke: #fff !important; }

.card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ════════════════════════════════════════
   BILANS GRID
════════════════════════════════════════ */
.bilans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.bilans-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.bilans-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

/* ════════════════════════════════════════
   PRÉSENTATION GRID
════════════════════════════════════════ */
.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.presentation-img img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.presentation-text p {
  color: var(--c-muted);
  font-size: 0.97rem;
  margin-bottom: 14px;
  line-height: 1.7;
}
.presentation-text strong { color: var(--c-text); }

@media (max-width: 768px) {
  .presentation-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ════════════════════════════════════════
   DIPLOMES LIST
════════════════════════════════════════ */
.diplomes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.diplomes-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.diplomes-list .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(37,99,235,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.diplomes-list strong {
  display: block;
  color: var(--c-title);
  font-weight: 700;
  margin-bottom: 2px;
}
.diplomes-list span {
  font-size: 0.88rem;
  color: var(--c-muted);
}

/* ════════════════════════════════════════
   AVAILABILITY BADGES
════════════════════════════════════════ */
.availability-badge {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
}
.availability-badge.tele {
  background: #16a34a;
  color: #fff;
  border: 2px solid #16a34a;
}
.availability-badge.cabinet {
  background: #dc2626;
  color: #fff;
  border: 2px solid #dc2626;
}

/* ════════════════════════════════════════
   FAQ
════════════════════════════════════════ */
.faq-section {
  padding: 80px 0;
  background: #f8fafc;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item[open] {
  border-color: #6d83f2;
  box-shadow: 0 4px 20px rgba(109,131,242,0.1);
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 700;
  color: #6d83f2;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover { color: #6d83f2; }
.faq-item p {
  padding: 0 24px 20px;
  color: #475569;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ════════════════════════════════════════
   ACCORDION
════════════════════════════════════════ */
.accordion {
  background: #107ACA;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s;
}
.accordion-toggle:hover { background: rgba(255,255,255,0.08); }

.accordion-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.accordion-header .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.accordion-header .icon svg { stroke: #fff !important; }
.accordion-header strong {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.accordion-header span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.accordion-arrow {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}
.accordion-toggle[aria-expanded="true"] .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-top: 0 solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.1);
}
.accordion-content.open {
  border-top-width: 1px;
}

.accordion-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.accordion-item:last-child { border-bottom: none; }

.accordion-item .year {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-blue);
  background: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
  margin-top: 2px;
}
.accordion-item strong {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 0.93rem;
  margin-bottom: 2px;
}
.accordion-item span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ════════════════════════════════════════
   CTA BAND
════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 12px;
}
.cta-band p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-doctolib { background: #fff; color: var(--c-blue); }
.cta-band .btn-doctolib:hover { background: #f0f7ff; }

.cta-phone {
  margin-top: 20px;
  font-size: 1rem;
  opacity: 0.9;
}
.cta-phone a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dashed rgba(255,255,255,0.5);
}
.cta-phone a:hover { border-bottom-color: #fff; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: var(--c-blue-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
  font-size: 0.88rem;
}
footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col p { margin-bottom: 6px; line-height: 1.7; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .hero { padding: 120px 0 60px; }
  section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-band { padding: 48px 24px; }
}
