:root {
  --main-color: #5d5849;      /* brun (teinte d'origine) */
  --accent-color: #f7b731;    /* orange / or pour l'actif */
  --alt-bg: #f8f9fa;          /* fond alterné très clair (harmonisé) */
}

/* ---------- BASE ---------- */
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; height: 100%; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: Arial, sans-serif;
  color: #444;
  line-height: 1.6;
  background: #fff;
}
h1, h2, h5 { color: var(--main-color); margin-bottom: 1.25rem; }
p { margin-bottom: 1rem; }

/* ---------- NAVBAR ---------- */
/* On revient sur une navbar claire (comme au départ) */
.navbar.navbar-light {
  background-color: #f8f9fa !important; /* Bootstrap bg-light */
  border-bottom: 1px solid #e9ecef;
}
.navbar-brand { font-weight: bold; color: var(--main-color); }
.navbar .nav-link { color: #6c757d; }
.navbar .nav-link:hover { color: #343a40; }
/* Lien actif visible en orange (comme demandé) */
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  color: var(--accent-color) !important;
  font-weight: 700;
}

/* ---------- BOUTONS ---------- */
.btn-primary {
  background-color: var(--main-color);
  border-color: var(--main-color);
}
.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* ---------- HEADER ---------- */
header img { max-height: 400px; object-fit: cover; }

/* ---------- ICONES ---------- */
.icon { font-size: 2rem; color: var(--main-color); }

/* ---------- SECTIONS ---------- */
section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  margin-bottom: 0 !important;
}
/* Alternance douce des fonds */
.section-alt { background: var(--alt-bg); }

/* ---------- FOOTER ---------- */
footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: 0 !important;
  background-color: #111;
  color: #fff;
}
footer h5 { color: #fff !important; }

/* ---------- Cartes génériques (encadrement doux) ---------- */
.encadre, .bloc-psy, .avis-card, .step-card .encadre, .consult-card {
  background: #fff;
  border: 1px solid #e8e5df;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* ---------- BLOC BENEFICES ---------- */
.bloc-psy {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 18px 16px;
  text-align: center;
}
.bloc-psy h5 {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 10px 0;
}
.bloc-psy p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 260px;
  text-align: justify;
}

hr.separator {
  border: none;
  border-top: 2px solid #d9d4cc;
  margin: 3rem auto;
  max-width: 1200px;
}

/* ---------- COORDONNEES BOX ---------- */
.coordonnees-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

/* ---------- GRILLE CONSULTATIONS ---------- */
#consultations .consultations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  padding: 0 1rem;
  align-items: stretch;
}
#consultations .consult-card {
  flex: 0 1 45%;
  max-width: 45%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#consultations .consult-card img {
  width: 100%;
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
#consultations .consult-card .card-body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; flex: 1 0 auto; padding: 1.25rem; }
#consultations .consult-card .card-title {
  color: var(--main-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
#consultations .consult-card .card-text {
  color: #555;
  line-height: 1.5;
  font-size: 0.95rem;
  text-align: justify;
}
@media (max-width: 768px) {
  #consultations .consult-card { flex: 1 1 100%; max-width: 100%; }
  #consultations .consultations-grid { gap: 1rem; }
}

/* ---------- DEROULEMENT (step cards) ---------- */
.step-card .encadre { padding: 18px; }
.step-card h5 { margin-top: 10px; }

/* ---------- MAP ---------- */
.map-container { height: 100%; min-height: 100%; }
.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 8px;
}

/* ---------- AVIS (page) ---------- */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 900px) { .avis-grid { grid-template-columns: 1fr; } }
.avis-card { padding: 1.25rem; }
.avis-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.35rem;
}
.avis-author { color: var(--main-color); }
.avis-date { color: #7a7366; font-size: .95rem; }
.avis-stars { letter-spacing: 2px; margin-bottom: .5rem; color: #c8a86b; }
.avis-text { text-align: justify; }

/* ---------- UTIL ---------- */
.object-fit-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Accueil intro portrait ---------- */
#benefices-intro .portrait{
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 9999px; /* round */
  object-fit: cover;
  object-position: 50% 22%; /* center on face */
  box-shadow: 0 6px 22px rgba(0,0,0,.08);
}

/* ---------- Legal card ---------- */
.legal-card p{ margin-bottom: .6rem; }
.legal-card strong{ color: var(--main-color); }


/* ---------- FRISE CHRONO HORIZONTALE ---------- */
.timeline-h { position: relative; margin: .75rem 0 1.5rem; }
.timeline-h-list { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; list-style: none; padding: 0; margin: 0; position: relative; }
.timeline-h::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: rgba(93,88,73,.35); }
.timeline-h-item { flex: 1 1 0; text-align: center; min-width: 120px; }
.timeline-h-year { font-weight: 700; color: var(--main-color); font-size: .95rem; margin-bottom: .35rem; }
.timeline-h-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--main-color); position: relative; top: -2px; box-shadow: 0 0 0 3px #fff; }
.timeline-h-desc { margin-top: .4rem; font-size: .95rem; background: #fff; border: 1px solid #e8e5df; border-radius: 10px; padding: .5rem .65rem; box-shadow: 0 4px 12px rgba(0,0,0,.05); }
@media (max-width: 992px){ .timeline-h::before{ top: 30px; } .timeline-h-item{ min-width: 140px; } }
@media (max-width: 768px){ .timeline-h-list{ flex-wrap: wrap; row-gap: 16px; } .timeline-h::before{ display:none; } .timeline-h-item{ flex: 1 1 calc(50% - 12px); } }
@media (max-width: 480px){ .timeline-h-item{ flex-basis: 100%; } }

/* ---------- NAVBAR & HEADER (source unique) ---------- */
.site-header{ padding-top:14px; padding-bottom:12px; }
.header-logo{ display:block; margin:0 auto; width:auto; height:auto; max-height:170px; }
@media (max-width:576px){ .header-logo{ max-height:120px; } }

.navbar { --bs-navbar-padding-y: .5rem; }
.navbar .navbar-brand { font-weight:700; font-size:1.1rem; color: var(--main-color); }
.navbar .nav-link { font-size:.95rem; padding:.4rem .7rem; }
.navbar-nav { gap:.4rem; }
.navbar .nav-link.active { color: var(--accent-color) !important; }

/* ---------- NAVBAR SPACING – UNIFORM FINAL OVERRIDE ---------- */
nav.navbar .navbar-brand{ font-weight:700; font-size:1rem !important; white-space:nowrap; }
nav.navbar .nav-link{ font-size:1rem !important; padding:.4rem .8rem !important; line-height:1.3; }
nav.navbar .navbar-nav{ display:flex !important; gap:.65rem !important; }
nav.navbar .navbar-nav .nav-item{ margin:0 !important; }
nav.navbar .nav-link.active{ color:var(--accent-color) !important; }

/* ---------- NAVBAR SPACING – FINAL ---------- */
nav.navbar .navbar-brand{ font-weight:700; font-size:1rem !important; white-space:nowrap; }
nav.navbar .nav-link{ font-size:1rem !important; padding:.45rem .8rem !important; line-height:1.35; }
nav.navbar .navbar-nav{ display:flex !important; gap:.65rem !important; }
nav.navbar .navbar-nav .nav-item{ margin:0 !important; }
nav.navbar .nav-link.active{ color:var(--accent-color) !important; }

/* ---------- NAVBAR FONT FIX (final override) ---------- */
:root { --font-ui: Arial, sans-serif; }
nav.navbar, nav.navbar * { font-family: var(--font-ui) !important; }
nav.navbar .navbar-brand { font-weight: 700 !important; }
nav.navbar .nav-link { font-weight: 400 !important; letter-spacing: 0 !important; }



/* ---- AVIS page fixes ---- */
.avis-cta .encadre { max-width: 1080px; margin: 0 auto; }
.avis-cta p { text-align: center; margin-bottom: .75rem; }
.avis-cta .btn { display: inline-block; }

/* --- AVIS: 3 colonnes sur desktop --- */
.avis-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px){ .avis-grid { grid-template-columns: repeat(2, minmax(280px, 1fr)); } }
@media (min-width: 1200px){ .avis-grid { grid-template-columns: repeat(3, minmax(280px, 1fr)); } }
.avis-card{ width:100%; }

/* Bloc "Coming soon" */
.coming-soon {
  position: relative;
  min-height: 260px;              /* confort mobile */
  background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 50%, #f8f9fa 100%);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
}

/* Dégradé subtil animé (shimmer très léger) */
.coming-soon::before {
  content: "";
  position: absolute; inset: -40%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.6) 45%, transparent 60%);
  transform: rotate(10deg);
  animation: shimmer 4.5s infinite ease-in-out;
}
@keyframes shimmer {
  0%   { transform: translateX(-30%) rotate(10deg); }
  100% { transform: translateX(30%)  rotate(10deg); }
}

/* Liseré doux pour la profondeur */
.coming-soon::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
  pointer-events: none;
}

/* Contenu */
.coming-soon-inner {
  position: relative; z-index: 1;
}
.coming-icon {
  font-size: 2.2rem;
  color: #6c757d;                 /* gris doux Bootstrap */
  opacity: .9;
}
.coming-sub {
  color: #6c757d;
  font-size: .95rem;
}

/* Un peu plus haut sur desktop */
@media (min-width: 768px) {
  .coming-soon { min-height: 420px; }
}
:root{
  --heading-color: #5c5649; /* prends la teinte que tu utilises déjà sur l’accueil */
}

.page-title{
  color: var(--heading-color);
  font-weight: 600;
  letter-spacing: .2px;
}
/* Le carrousel prend toute la hauteur de sa colonne */
#cabinetCarousel {
  height: 100%;
  min-height: 400px; /* garde une taille minimale pour ne pas être trop petit */
}
#cabinetCarousel img {
  object-fit: cover;
}
/* Barre Doctolib fixée en haut */
.doctolib-container{
  position: fixed; /* reste toujours visible */
  top: 0; left: 0; right: 0;
  z-index: 1100; /* au-dessus de la navbar */
  background: #faf9f7;
  border-bottom: 1px solid #e5e3df;
  padding: 8px 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

/* compense la hauteur de la barre pour éviter qu’elle masque le haut de la page */
body{ padding-top: 56px; }
@media (max-width: 576px){
  body{ padding-top: 52px; }
}

.btn-doctolib{
  background-color: #6f42c1; /* ou #1971ff pour bleu Doctolib */
  color:#fff; font-weight:600;
  padding:.55rem 1.25rem; border-radius:999px;
  box-shadow:0 3px 10px rgba(0,0,0,.12);
  transition:all .25s ease;
}
.btn-doctolib:hover{ filter:brightness(.92); color:#fff; transform:translateY(-1px); }

.label-mobile{ display:none; }
@media (max-width:576px){
  .btn-doctolib{ width:calc(100% - 20px); }
  .label-desktop{ display:none; }
  .label-mobile{ display:inline; }
}
