: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%; }

/* ===== TYPOGRAPHIE UNIFORME (site entier) ===== */
:root{
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-size-base: 16px;
  --lh-base: 1.6;
  --h1-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem);
  --h2-size: clamp(1.5rem, 1.3rem + .6vw, 2rem);
  --h3-size: 1.375rem;
  --h5-size: 1.125rem;
}

html{ font-size: 100%; }
body{
  font-family: var(--font-sans) !important;
  font-size: var(--font-size-base);
  line-height: var(--lh-base);
  color:#444;
}
h1,h2,h3,h4,h5,h6{
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--main-color);
  margin-bottom: 1rem;
}
h1{ font-size: var(--h1-size); }
h2{ font-size: var(--h2-size); }
h3{ font-size: var(--h3-size); }
h5{ font-size: var(--h5-size); font-weight: 600; }

/* Paragraphes & textes récurrents */
p, .card-text, .bloc-psy p, .step-card p, .legal-card p, .avis-text, #consultations .card-text{
  font-size: .98rem;
  line-height: 1.65;
}
.lead{ font-size: 1.125rem; line-height: 1.7; }
small, .small{ font-size:.875rem; }

/* Titres de cartes & tuiles */
.card-title, .bloc-psy h5, .step-card h5{
  font-size: var(--h5-size);
  font-weight: 600;
  color: var(--main-color);
}
/* Harmonise les marges au-dessus des titres de section */
section h1, section h2{ margin-top: .25rem; margin-bottom: 1.25rem; }


#consultations .consult-card .card-img-top{
  height: clamp(140px, 14vw, 200px); /* plus compact */
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
#consultations .consult-card .card-body{ padding-top: 1rem; padding-bottom: 1.25rem; }
#consultations .consult-card h3, 
#consultations .consult-card h5{ margin-bottom: .5rem; }
#consultations .consultations-grid{ gap: 1.25rem; }

/* --- Types de consultation : images plus basses et régulières --- */
#consultations .consult-card .card-img-top{
  height: 135px !important;     /* hauteur compacte et uniforme */
  width: 100%;
  object-fit: cover;
  object-position: 50% 40%;      /* remonte légèrement le cadrage */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
@media (max-width: 992px){
  #consultations .consult-card .card-img-top{ height: 125px !important; }
}
@media (max-width: 576px){
  #consultations .consult-card .card-img-top{ height: 120px !important; }
}
#consultations .consult-card .card-body{ padding-top: .85rem; padding-bottom: 1.05rem; }
#consultations .consultations-grid{ gap: 1rem; }

