* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0f766e;
  --primary-dark: #0b5e58;
  --secondary: #f3f7f9;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --border: #dbe4ea;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* HEADER */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.logo h1 {
  font-size: 1.6rem;
  color: white;
}

.logo p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.topbar.scrolled .logo h1,
.topbar.scrolled .logo p {
  color: #1f2937;
}

.topbar.scrolled .btn-outline {
  border-color: #0f766e;
  color: #0f766e;
}

.topbar.scrolled .menu-toggle span {
  background: #1f2937;
}

/* MENU DESKTOP */
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-right: 18px;
}

.header-nav a {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.header-nav a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.topbar.scrolled .header-nav a {
  color: #1f2937;
}

.topbar.scrolled .header-nav a:hover {
  color: var(--primary);
}

/* BURGER */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 999px;
  transition: 0.3s ease;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 70px;
  overflow: hidden;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15, 118, 110, 0.3), rgba(15, 118, 110, 0.3)),
    url("images/doctor.jpg") center/cover no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 30px;
  align-items: center;
  transform: translateY(0);
  transition: transform 0.1s linear;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 18px;
}

.hero-text h2 {
  font-size: 2.7rem;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.hero-text p {
  margin-bottom: 28px;
  font-size: 1.05rem;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
}

/* BOUTONS */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: bold;
  transition: 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border-color: white;
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* CARTE HERO */
.hero-card {
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.hero-card h3 {
  margin-bottom: 16px;
  color: var(--primary);
}

.hero-card ul {
  list-style: none;
}

.hero-card li {
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}

.hero-card li:last-child {
  border-bottom: none;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--secondary);
}

.section-title {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--muted);
}

/* SERVICES */
#services {
  scroll-margin-top: 100px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  transition: 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  margin-bottom: 10px;
  color: var(--primary);
  min-height: 48px;
}

.card p {
  color: var(--muted);
}

/* PATHOLOGIES */
.list-box {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.list-box span {
  background: #ffffff;
  border: 1px solid #d9e3ea;
  padding: 14px 20px;
  border-radius: 999px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease;
  cursor: default;
}

.list-box span:hover {
  transform: translateY(-3px);
  border-color: #0f766e;
  color: #0f766e;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.12);
}

.list-box .more {
  background: rgba(15, 118, 110, 0.08);
  border: 1px dashed #0f766e;
  color: #0f766e;
  font-weight: 600;
}

.list-box .more:hover {
  background: #0f766e;
  color: white;
  transform: translateY(-3px);
}

/* HORAIRES */
.hours-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hours-card div {
  display: flex;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid #eef3f6;
}

.hours-card div:last-child {
  border-bottom: none;
}

/* CTA */
.cta-box {
  background: linear-gradient(135deg, var(--primary), #115e59);
  color: white;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
}

.cta-box .hero-buttons {
  justify-content: center;
}

/* FOOTER */
.footer {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
}

/* BOUTON RETOUR EN HAUT */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #0f766e;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 999;
  transition: 0.3s;
}

#backToTop:hover {
  background: #0b5e58;
  transform: translateY(-3px);
}

/* TABLET */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-nav {
    display: none;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .topbar {
    padding: 16px 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
  }

  .top-actions {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    width: min(300px, calc(100vw - 40px));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 12px;
  }

  .top-actions.active {
    display: flex;
  }

  .top-actions .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    text-align: center;
  }

  .top-actions .btn-outline {
    border: 2px solid #0f766e;
    color: #0f766e;
    background: white;
  }

  .top-actions .btn-outline:hover {
    background: #0f766e;
    color: white;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero::before {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .hero-text h2 {
    font-size: 1.9rem;
  }

  .hero-card {
    padding: 22px;
  }

  .hours-card div {
    flex-direction: column;
    gap: 6px;
  }
}
#about {
  scroll-margin-top: 200px;
}
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline-block;
  }
}
.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.map-action {
  margin-top: 20px;
  text-align: center;
}
.footer-main {
  background: #0f766e;
  color: white;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-main h3,
.footer-main h4 {
  margin-bottom: 12px;
}

.footer-main p,
.footer-main a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.footer-main a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 30px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  font-size: 0.85rem;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  display: block;
  text-decoration: none;
  background: white;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #0f766e;
}

.blog-card p {
  color: #6b7280;
  font-size: 0.95rem;
}

.blog-page {
  padding-top: 120px;
}
.blog-page {
  padding-top: 120px;
}

.blog-page .topbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blog-page .logo h1,
.blog-page .logo p {
  color: #1f2937;
}
.article-call-btn {
  border-color: #0f766e;
  color: #0f766e;
  background: white;
}

.article-call-btn:hover {
  background: #0f766e;
  color: white;
}
@media (max-width: 768px) {
  .blog-page .topbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
  }

  .blog-page .logo h1,
  .blog-page .logo p {
    color: #1f2937;
  }

  .blog-page .menu-toggle {
    display: flex;
  }

  .blog-page .menu-toggle span {
    background: #1f2937;
  }

  .blog-page .top-actions {
    top: calc(100% + 10px);
    right: 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .blog-page .logo h1 {
    color: #1f2937 !important;
  }

  .blog-page .logo p {
    color: #6b7280 !important;
  }
}
.blog-logo h1 {
  color: #1f2937 !important;
}

.blog-logo p {
  color: #6b7280 !important;
}

@media (max-width: 768px) {
  .blog-logo h1 {
    color: #1f2937 !important;
    font-size: 1.2rem;
  }

  .blog-logo p {
    color: #6b7280 !important;
    font-size: 0.9rem;
  }

  .blog-grid {
    grid-template-columns: 1fr !important;
  }
}
.blog-page .topbar {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* FORCER TOUT LE TEXTE DU HEADER */
.blog-page .topbar * {
  color: #1f2937 !important;
}

/* BURGER */
.blog-page .menu-toggle span {
  background: #1f2937 !important;
}

/* LIENS */
.blog-page .header-nav a {
  color: #1f2937 !important;
}
.faq-list {
  display: grid;
  gap: 18px;
}

.faq-item {
  display: block;
  background: white;
  border: 1px solid #dbe4ea;
  border-radius: 18px;
  padding: 22px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  color: #0f766e;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.faq-item p {
  color: #6b7280;
}
section {
  scroll-margin-top: 120px;
}