/* =============== FICHIER : style.css =============== */
:root {
  /* Palette inspirée d’un thème technologique moderne */
  --primary: #0481f5;
    --secondary: #bf0f0f;
    --accent: #4f4d4b;         /* orange chaleureux */
  --light: #f4f7fb;
  --dark: #ffffff;
  --gray: #5e7184;
  --muted: #718396;
  --surface: rgba(255,255,255,0.85);
}

/* Global reset & readable defaults */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #0da0e8;
  background: radial-gradient(circle at top left, rgba(29, 183, 201, 0.18), transparent 55%),
              linear-gradient(180deg, #5999c4, #e2e8f0);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--secondary);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Harmonisation Bootstrap + utilitaires */
.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.text-danger { color: var(--accent) !important; }
.bg-dark { background-color: var(--dark) !important; }
.text-muted { color: var(--muted) !important; }

h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--dark);
}

h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

.hero,
.page-header {
  /* Conserver l'image de fond et utiliser bg-heart.jpeg */
  background: url('img/bg-heart.jpeg') center/cover no-repeat;
  color: rgba(245, 240, 240, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header {
  padding: 100px 0 70px;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), rgba(0,0,0,0.6));
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.hero .container,
.page-header .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  animation: fadeInUp 1s ease-out;
}
.hero p {
  font-size: 1.35rem;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
  animation: fadeInUp 1.2s ease-out;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.section.in-view {
  opacity: 1;
  transform: translateY(0);
}
.section-light {
  background-color: rgba(4, 33, 49, 0.993);
}
.section-gray {
  background-color: rgba(5, 38, 68, 0.993);
}

.card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgb(95, 2, 2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.clinic-card {
  position: relative;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.clinic-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.25s ease;
}

.clinic-card:hover::before {
  background: rgba(0, 0, 0, 0.45);
}

.clinic-card .card-body {
  position: relative;
  z-index: 2;
}

.value-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  height: 100%;
  background: linear-gradient(145deg, #cc1010 0%, #1e7ad6 100%);
  border: 1px solid rgba(0,0,0,0.05);
}
.value-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}
.value-card i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}
.value-card:hover i {
  transform: scale(1.1);
}
.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.testimonial {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  position: relative;
  margin-bottom: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: 'Georgia', serif;
  font-size: 4rem;
  color: rgba(220, 38, 38, 0.1);
  line-height: 1;
}
.testimonial p {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  line-height: 1.6;
}
.testimonial-footer {
  display: flex;
  align-items: center;
}
.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-weight: bold;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.1;
}
.cta-section .container {
  position: relative;
  z-index: 2;
}
.cta-section h2 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgb(228, 19, 19);
}
.cta-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  font-size: 1.2rem;
}


footer {
    background: linear-gradient(340deg, #a11a1a 0%, #021135 100%);
    color: #bccadb;
  padding: 60px 0 30px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
}
footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer a:hover {
  color: white;
  text-decoration: none;
}
.footer-title {
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 25px rgba(13, 59, 102, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(13, 59, 102, 0.35);
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  transition: transform 0.25s ease, background-color 0.25s ease;
  background-color: rgba(255, 255, 255, 0.12);
}
.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 999;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:focus-visible {
  outline: 3px solid rgba(255, 181, 71, 0.85);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero,
  .page-header {
    min-height: auto;
    padding: 60px 0;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .navbar-nav {
    text-align: center;
  }
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
  .value-card {
    padding: 2rem 1.5rem;
  }
  .testimonial {
    padding: 2rem;
  }
  .cta-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section {
    padding: 60px 0;
  }
  .value-card h3 {
    font-size: 1.3rem;
  }
  .testimonial p {
    font-size: 1rem;
  }
}

/* Navbar */
.navbar {
  background: rgba(6, 4, 102, 0.801) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar-brand {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.navbar-brand .text-danger {
  color: var(--accent) !important;
}
.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
  color: var(--accent) !important;
  text-decoration: underline;
}
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
  font-weight: 600;
}

.btn-outline-light {
  border-width: 2px;
}