/* style.css - Clinique Reyana */

/* ------------------ Couleurs principales ------------------ */
:root {
  --main-color: #4caf50;
  --accent-color: #4caf50;
  --secondary-bg: #f5f5f0;
  --light-bg: #f9f9f9;
  --dark-text: #333;
  --light-text: #777;
  --button-hover-bg: #388e3c;
  --footer-bg: #222;
  --footer-text: #eee;
}

/* ------------------ Global ------------------ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-text);
  background-color: white;
  margin: 0;
  padding: 0;
}

/* ------------------ Header ------------------ */
header h1 {
  font-size: 2.2rem;
  color: var(--main-color);
  font-weight: 700;
  margin-bottom: 0.2em;
}

header p {
  font-style: italic;
  color: var(--accent-color);
  margin-top: -10px;
}

/* ------------------ Logo ------------------ */
.logo-reyana {
  max-height: 80px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ------------------ Navbar ------------------ */
.navbar,
.bg-custom {
  background-color: var(--main-color) !important;
}

.navbar-brand,
.nav-link {
  color: white !important;
  font-weight: 500;
}

.nav-link:hover {
  text-decoration: underline;
}

.nav-link.active {
  font-weight: 700;
  text-decoration: underline;
  color: #fff !important;
}

/* ------------------ Titres ------------------ */
h2 {
  font-size: 1.8rem;
  color: var(--main-color);
  font-weight: 600;
}

/* ------------------ Sections ------------------ */
section {
  padding: 60px 0;
}

.bg-secondary-custom {
  background-color: var(--secondary-bg);
}

.specialite-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* ------------------ Cartes ------------------ */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* ------------------ Formulaires ------------------ */
form input,
form textarea {
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 0.5em;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

form button.btn-primary {
  background-color: var(--main-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6em 1.2em;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button.btn-primary:hover {
  background-color: var(--button-hover-bg);
}

/* ------------------ Footer ------------------ */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ------------------ Carte Google Maps ------------------ */
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ------------------ Animation ------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInTop 1s ease-out forwards;
}

@keyframes fadeInTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------ Bouton Appel Mobile ------------------ */
.call-now-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #198754;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  text-align: center;
  white-space: nowrap;
}

.call-now-btn:hover {
  background-color: #157347;
  text-decoration: none;
}

/* ------------------ Séparateur Visuel ------------------ */
.separator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.separator .line {
  flex: 1;
  height: 3px;
  background-color: #0d6efd;
  max-width: 200px;
  border-radius: 2px;
}

.separator i {
  font-size: 2rem;
  color: #0d6efd;
}

/* ------------------ Images Spécialités ------------------ */
.specialite-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ------------------ Responsive ------------------ */
@media (max-width: 767.98px) {
  .specialite-img {
    height: 200px;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  section {
    padding: 40px 0;
  }

  .specialite-img {
    height: 180px;
    margin-top: 20px;
  }
}

/* ------------------ Agrandissement sur grands écrans ------------------ */
@media (min-width: 992px) {
  .specialite-img-large {
    height: 280px;
  }
}
@media (max-width: 767.98px) {
  #specialites .col-md-6 {
    margin-bottom: 30px;
  }
}
.card-img-top {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.specialite-visuel {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .specialite-visuel {
    max-height: 240px;
    margin-top: 15px;
  }
}