/* =========================================
   CMPL — Centre Médical Provence Luberon
   style.css
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Variables racine */
:root {
  --cmpl-gold:       #1e5caa;   /* bleu roi — accent principal (boutons, icônes) */
  --cmpl-gold-dark:  #154490;   /* bleu foncé — hover, titres */
  --cmpl-gold-deep:  #0d2d5e;   /* bleu très profond */
  --cmpl-nav:        #1a3566;   /* bleu marine — navbar & footer */
  --cmpl-cream:      #f4f7fc;   /* fond bleu très clair */
  --cmpl-cream-mid:  #e8eef7;   /* fond bleu clair marqué */
  --cmpl-teal:       #d63129;   /* rouge-orange — accent urgence */
  --cmpl-text:       #1a2744;   /* texte bleu nuit */
  --cmpl-border:     #c8d5e8;   /* bordures bleues douces */
  --cmpl-white:      #ffffff;
  --cmpl-bg:         #f4f7fc;   /* alias fond */
}

/* Base */
html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cmpl-cream);
  color: var(--cmpl-text);
  font-size: 16px;
  line-height: 1.6;
}

/* ---- NAVBAR ---- */
.navbar {
  background-color: var(--cmpl-nav) !important;
  padding: 0.75rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.navbar-brand {
  font-weight: 700;
  color: var(--cmpl-white) !important;
  font-size: 1.1rem;
  line-height: 1.2;
}
.navbar-brand .brand-acronym {
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: #a8c4e8;
}
.navbar-brand .brand-full {
  font-size: 0.75rem;
  display: block;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}
.nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: #a8c4e8 !important;
}
.navbar-toggler {
  border-color: rgba(255,255,255,0.35);
}
.navbar-toggler-icon {
  filter: invert(1);
}
.btn-rdv-nav {
  background-color: var(--cmpl-text);
  color: var(--cmpl-white) !important;
  border-radius: 4px;
  padding: 0.4rem 1rem !important;
  font-weight: 600 !important;
  transition: background-color 0.2s;
}
.btn-rdv-nav:hover {
  background-color: var(--cmpl-gold-deep) !important;
  color: var(--cmpl-white) !important;
}

/* ---- HERO ---- */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 65vh;
  display: flex;
  align-items: center;
  padding: 0;
}
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.8s ease;
}
.hero-overlay {
  display: none;
}
.hero-section .container {
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
  padding-top: 60px;
}
@keyframes heroTitleSlideIn {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.hero-section h1 {
  font-size: clamp(2.2rem, 6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--cmpl-white);
  text-shadow: 1px 2px 10px rgba(0,0,0,0.70);
  animation: heroTitleSlideIn 0.8s ease-out both;
}
/* ---- BANDEAU SOUS LE HÉRO ---- */
.hero-strip {
  background: var(--cmpl-cream-mid);
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--cmpl-border);
  display: flex;
  align-items: center;
}
.hero-strip-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.hero-strip-lead {
  font-size: 0.9rem;
  color: var(--cmpl-text);
  line-height: 1.4;
  width: 50%;
}
.hero-strip-lead p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cmpl-text);
  line-height: 1.4;
}
.hero-strip-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  height: 100%;
  width: 50%;
}
.hero-strip-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
}
.hero-strip-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cmpl-gold-deep);
  line-height: 1;
}
.hero-strip-label {
  font-size: 0.68rem;
  color: var(--cmpl-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.hero-strip-sep {
  width: 1px;
  height: 1.5rem;
  background: var(--cmpl-border);
}
.hero-badge {
  display: inline-block;
  background: var(--cmpl-text);
  border: 1px solid var(--cmpl-text);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* ---- BOUTON PRINCIPAL ---- */
.btn-cmpl {
  background-color: var(--cmpl-text);
  color: var(--cmpl-white);
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
  display: inline-block;
}
.btn-cmpl:hover {
  background-color: var(--cmpl-gold-deep);
  color: var(--cmpl-white);
  transform: translateY(-1px);
}
.btn-cmpl-outline {
  background-color: transparent;
  color: var(--cmpl-text);
  border: 2px solid var(--cmpl-text);
  padding: 10px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-cmpl-outline:hover {
  background-color: var(--cmpl-text);
  color: var(--cmpl-white);
}

/* ---- SECTIONS ---- */
.section-title {
  color: var(--cmpl-gold-dark);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}
.section-divider {
  width: 50px;
  height: 3px;
  background-color: var(--cmpl-gold);
  margin: 0 0 2rem 0;
  border-radius: 2px;
}
.section-divider.centered {
  margin: 0 auto 2rem;
}
.section-light {
  background-color: var(--cmpl-white);
  padding: 60px 0;
}
.section-bg {
  background-color: var(--cmpl-cream-mid);
  padding: 60px 0;
}
.section-dark {
  background-color: var(--cmpl-gold-dark);
  color: var(--cmpl-white);
  padding: 60px 0;
}

/* ---- CARDS SPÉCIALITÉS ---- */
.specialite-card {
  background: var(--cmpl-white);
  border: 1px solid var(--cmpl-border);
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.specialite-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(30,92,170,0.18);
  color: var(--cmpl-gold-dark);
  text-decoration: none;
}
.specialite-card .card-body {
  padding: 1.25rem;
}
.specialite-card .spec-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(30,92,170,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--cmpl-gold);
  font-size: 1.3rem;
}
.specialite-card h5 {
  color: var(--cmpl-gold-dark);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.specialite-card p {
  color: var(--cmpl-text);
  font-size: 0.82rem;
  margin: 0;
}

/* ---- CARDS ACTUALITÉS ---- */
.actu-card {
  background: var(--cmpl-white);
  border: 1px solid var(--cmpl-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  height: 100%;
}
.actu-card:hover {
  box-shadow: 0 6px 20px rgba(30,92,170,0.15);
}
.actu-card .actu-date {
  background-color: var(--cmpl-text);
  color: var(--cmpl-white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  display: inline-block;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.actu-card .card-body {
  padding: 1.25rem;
}
.actu-card h5 {
  color: var(--cmpl-gold-dark);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---- PAGE INTERNE : PAGE TITLE ---- */
.page-title-bar {
  background: linear-gradient(135deg, var(--cmpl-gold-deep), var(--cmpl-gold-dark));
  color: var(--cmpl-white);
  padding: 40px 0;
  margin-bottom: 0;
}
.page-title-bar h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0;
}
.page-title-bar .breadcrumb {
  background: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.page-title-bar .breadcrumb-item,
.page-title-bar .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}
.page-title-bar .breadcrumb-item.active {
  color: rgba(255,255,255,0.9);
}
.page-title-bar .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* ---- TABLEAU PRATICIENS ---- */
.praticiens-table th {
  background-color: var(--cmpl-gold-dark);
  color: var(--cmpl-white);
  font-weight: 600;
  font-size: 0.9rem;
}
.praticiens-table td {
  vertical-align: middle;
  font-size: 0.9rem;
}
.praticiens-table tr:hover td {
  background-color: rgba(30,92,170,0.06);
}
.spec-badge {
  background-color: rgba(30,92,170,0.1);
  color: var(--cmpl-gold-dark);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ---- RDV ---- */
.rdv-bloc {
  background: var(--cmpl-white);
  border: 1px solid var(--cmpl-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.rdv-bloc h5 {
  color: var(--cmpl-gold-dark);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.rdv-bloc .tel-link {
  color: var(--cmpl-gold);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}
.rdv-bloc .tel-link:hover {
  color: var(--cmpl-gold-dark);
}

/* ---- ACCÈS / MAPS ---- */
.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--cmpl-border);
}
.info-acces {
  background: var(--cmpl-white);
  border: 1px solid var(--cmpl-border);
  border-radius: 8px;
  padding: 1.5rem;
}
.info-acces h5 {
  color: var(--cmpl-gold-dark);
  font-weight: 700;
  font-size: 1rem;
}

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, var(--cmpl-gold-dark), var(--cmpl-gold-deep));
  color: var(--cmpl-white);
  padding: 50px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.cta-band p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.5rem;
}

/* ---- FOOTER ---- */
footer {
  background-color: var(--cmpl-nav);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 0;
}
footer h6 {
  color: #a8c4e8;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.9;
  transition: color 0.2s;
}
footer a:hover {
  color: #a8c4e8;
}
footer p, footer address {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.footer-bottom {
  background-color: rgba(0,0,0,0.3);
  padding: 15px 0;
  margin-top: 40px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.7) !important;
  margin-right: 0.5rem;
  transition: background 0.2s;
  font-size: 0.95rem;
}
.footer-social a:hover {
  background: var(--cmpl-gold);
  color: var(--cmpl-white) !important;
}

/* ---- MENTIONS LÉGALES ---- */
.mentions-content h2 {
  color: var(--cmpl-gold-dark);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--cmpl-border);
}
.mentions-content p, .mentions-content ul {
  font-size: 0.92rem;
  color: var(--cmpl-text);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .hero-strip { display: none; }
  .hero-section h1 { font-size: 2.3rem !important; }
}

@media (max-width: 430px) {
  .hero-section {
    padding: 50px 0;
    min-height: auto;
  }
  .hero-section h1 {
    font-size: 1.6rem;
  }
  .section-light, .section-bg {
    padding: 40px 0;
  }
  .specialite-card .card-body {
    padding: 1rem;
  }
}

@media (max-width: 390px) {
  .navbar-brand .brand-acronym {
    font-size: 1.3rem;
  }
  .btn-cmpl {
    padding: 10px 22px;
    font-size: 0.95rem;
  }
}

@media (max-width: 375px) {
  .hero-section h1 {
    font-size: 1.45rem;
  }
  .hero-section .lead {
    font-size: 0.95rem;
  }
}

/* ---- UTILITAIRES COULEURS ---- */
.text-cmpl-gold  { color: var(--cmpl-text) !important; }
.text-cmpl-teal  { color: var(--cmpl-teal) !important; }
.bg-cmpl-gold    { background-color: var(--cmpl-gold) !important; }

/* Chargement image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, #c8d5e8, #b8cbe0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cmpl-gold-dark);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
}
