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

:root {
  --primary: #d94a6a;
  --primary-dark: #b83854;
  --primary-light: #fef0f3;
  --text: #1a1a2e;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --radius: 10px;
  --max-width: 1100px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 48px;
  color: var(--primary-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 74, 106, 0.35);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.nav-logo:hover {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/images/salle-prelevement.png') center/cover no-repeat;
  color: #fff;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
}

.hero-logo {
  width: 293px;
  flex-shrink: 0;
}

.hero-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.hero-text {
  text-align: left;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 40px;
  font-weight: 300;
}

/* About */
.about {
  padding: 96px 0;
  background: var(--bg);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.8;
}

.about-content strong {
  color: var(--primary-dark);
}

/* Services */
.services {
  padding: 96px 0;
  background: var(--bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--primary);
}

.service-card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Schedule */
.schedule {
  padding: 96px 0;
  background: var(--bg);
}

.schedule-table-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.schedule-table tr {
  border-bottom: 1px solid var(--border);
}

.schedule-table tr:last-child {
  border-bottom: none;
}

.schedule-table td {
  padding: 16px 24px;
  font-size: 1rem;
}

.schedule-table td:first-child {
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}

.schedule-table td:last-child {
  text-align: right;
  color: var(--text-light);
}

.schedule-table tr:nth-child(even) {
  background: var(--bg-alt);
}

/* News */
.news {
  padding: 96px 0;
  background: var(--bg-alt);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: var(--bg);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-date {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.news-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.news-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Contact */
.contact {
  padding: 96px 0;
  background: var(--bg);
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  text-align: center;
}

.contact-item {
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: transform 0.3s;
}

.contact-item:hover {
  transform: translateY(-2px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--primary);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.contact-item a {
  color: var(--primary);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--primary-dark);
}

/* Footer */
.footer {
  padding: 24px 0;
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 0.9rem;
}

.footer-legal {
  margin-top: 8px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: #fff;
}

/* Legal page */
.legal-page {
  padding: calc(var(--nav-height) + 48px) 0 64px;
  min-height: 100vh;
}

.legal-title {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 40px;
  text-align: center;
}

.legal-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.legal-content strong {
  color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content {
    flex-direction: column;
    gap: 40px;
  }

  .hero-logo {
    width: 225px;
  }

  .hero-text {
    text-align: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .services-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .schedule-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 32px;
  }

  .about-content {
    font-size: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
