/* =========================================================================
   MAISON DE SANTÉ DE FORMERIE — site.css
   Archétype : « Fiche praticien éditoriale — confiance bleu clinique ».
   Signature : LIGNE ECG (tracé cardiaque rouge) sous le H1 & en accents +
   fiches/cards nettes, type éditoriale. Palette bleu profond + rouge santé.
   ANTI-FOOTPRINT : aucune classe custom — on style uniquement des
   classes/ids Bootstrap existants, des éléments et des pseudo-éléments.
   ========================================================================= */

:root {
  --mf-blue: #114b6b;            /* bleu profond (dominante) */
  --mf-blue-rgb: 17, 75, 107;
  --mf-blue-deep: #0c3850;
  --mf-blue-soft: #2f7da3;
  --mf-red: #e63946;            /* rouge santé (accent) */
  --mf-red-rgb: 230, 57, 70;
  --mf-bg: #f2f6f8;             /* blanc froid */
  --mf-surface: #ffffff;
  --mf-ink: #152a38;           /* encre bleu-nuit */
  --mf-muted: #5a6b76;
  --mf-border: #dde7ec;

  --bs-primary: #114b6b;
  --bs-primary-rgb: 17, 75, 107;

  --bs-body-bg: var(--mf-bg);
  --bs-body-color: #41525c;
  --bs-body-font-family: 'Albert Sans', system-ui, -apple-system, sans-serif;
  --bs-body-font-size: 1.06rem;
  --bs-body-line-height: 1.72;

  --bs-heading-color: var(--mf-ink);
  --bs-link-color: var(--mf-blue);
  --bs-link-color-rgb: 17, 75, 107;
  --bs-link-hover-color: var(--mf-red);
  --bs-border-color: var(--mf-border);

  --bs-dark: #0c2f43;
  --bs-dark-rgb: 12, 47, 67;

  --mf-shadow: 0 22px 48px -28px rgba(12, 47, 67, 0.4), 0 4px 14px -8px rgba(12, 47, 67, 0.18);
  /* tuile ECG (tracé cardiaque) répétable horizontalement */
  --mf-ecg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0,12 H40 L48,12 L52,4 L58,20 L64,7 L70,12 H120' fill='none' stroke='%23e63946' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body {
  background-color: var(--mf-bg);
  background-image:
    radial-gradient(1100px 520px at 92% -8%, rgba(17, 75, 107, 0.08), transparent 60%),
    radial-gradient(820px 420px at -4% 2%, rgba(230, 57, 70, 0.05), transparent 56%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4, h5, h6,
.navbar-brand, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--mf-ink);
}
.lead { font-weight: 400; font-size: 1.18rem; color: #4c5e69; }
p { text-wrap: pretty; }
::selection { background: var(--mf-blue); color: #fff; }
a { transition: color 0.18s ease; }

/* kickers */
#section-kicker, #hero-eyebrow, #fiche-sub, #product-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mf-red);
}
#hero-eyebrow { color: var(--mf-blue-soft); letter-spacing: 0.08em; font-size: 0.85rem; }
#section-kicker-light { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.18em; color: #8fd0e6; }

/* =========================================================================
   NAVBAR
   ========================================================================= */
.navbar.sticky-top {
  background-color: rgba(242, 246, 248, 0.92) !important;
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--mf-border);
  box-shadow: 0 8px 24px -20px rgba(12, 47, 67, 0.5);
}
#brand-mark {
  width: 2.6rem; height: 2.6rem; border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--mf-blue), var(--mf-blue-deep));
  color: #fff; font-size: 1.2rem;
  box-shadow: 0 8px 18px -8px rgba(17, 75, 107, 0.8);
}
#brand-name { font-size: 1.18rem; color: var(--mf-ink); }
#brand-sub { color: var(--mf-red); letter-spacing: 0.1em; font-size: 0.72rem; text-transform: uppercase; font-weight: 700; }
.navbar .nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #3a4c56 !important;
  position: relative;
  padding-inline: 0.9rem;
}
.navbar .nav-link::after {
  content: ''; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.35rem;
  height: 2px; background: var(--mf-red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.navbar .nav-link:hover::after, .navbar .nav-link:focus::after { transform: scaleX(1); }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--mf-blue) !important; }

/* =========================================================================
   BOUTONS
   ========================================================================= */
.btn {
  --bs-btn-font-family: 'Outfit', sans-serif;
  --bs-btn-font-weight: 600;
  border-radius: 8px;
  border-width: 2px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn-lg { padding: 0.7rem 1.6rem; }
.btn-primary {
  --bs-btn-bg: var(--mf-blue);
  --bs-btn-border-color: var(--mf-blue);
  --bs-btn-hover-bg: var(--mf-blue-deep);
  --bs-btn-hover-border-color: var(--mf-blue-deep);
  --bs-btn-active-bg: var(--mf-blue-deep);
  box-shadow: 0 12px 24px -14px rgba(17, 75, 107, 0.9);
}
.btn-outline-primary {
  --bs-btn-color: var(--mf-blue);
  --bs-btn-border-color: rgba(17, 75, 107, 0.35);
  --bs-btn-hover-bg: var(--mf-blue);
  --bs-btn-hover-border-color: var(--mf-blue);
  --bs-btn-hover-color: #fff;
}
.btn-primary:hover, .btn-outline-primary:hover { transform: translateY(-2px); }

/* =========================================================================
   HERO + signature ECG
   ========================================================================= */
#hero { position: relative; }
#hero-title { font-size: clamp(2.4rem, 5.5vw, 4rem); }
/* ligne ECG sous le titre */
#ecg-line {
  height: 24px;
  width: min(260px, 70%);
  background-image: var(--mf-ecg);
  background-repeat: repeat-x;
  background-position: left center;
}
#hero-lead { color: #4c5e69; }
#hero-figure {
  border-radius: 18px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--mf-shadow);
  position: relative;
}
#hero-figure::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--mf-blue), var(--mf-red));
}
#hero-figure img { display: block; }

/* =========================================================================
   FICHES (cabinet / coordonnées / horaires / infos)
   ========================================================================= */
.card.border-0 {
  background: var(--mf-surface);
  border-radius: 16px !important;
  border: 1px solid var(--mf-border) !important;
  box-shadow: var(--mf-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
#fiche-card { border-top: 3px solid var(--mf-blue) !important; }
#fiche-card:hover { transform: translateY(-4px); border-top-color: var(--mf-red) !important; box-shadow: 0 30px 56px -30px rgba(12, 47, 67, 0.5); }
#fiche-icon {
  width: 3.1rem; height: 3.1rem; border-radius: 0.8rem;
  background: rgba(17, 75, 107, 0.08); color: var(--mf-blue); font-size: 1.4rem;
}
#fiche-title { color: var(--mf-ink); }
#horaire-val { color: var(--mf-blue); }

/* Diplômes */
#diplomes-block {
  background: linear-gradient(120deg, #eaf2f6, #f6fafc);
  border: 1px solid var(--mf-border);
}
#diplomes-head { color: var(--mf-blue); }
#diplomes-head .bi { color: var(--mf-red); font-size: 1.2rem; }
#diplome-badge, #hono-badge, #diplomes-block .badge {
  background: #fff; color: var(--mf-blue); border: 1px solid var(--mf-border);
  font-weight: 600; padding: 0.5rem 0.85rem; border-radius: 999px; font-size: 0.85rem;
}
#hono-badge { color: var(--mf-blue-deep); }
#hono-badge .bi { color: var(--mf-red); }

/* =========================================================================
   HONORAIRES
   ========================================================================= */
#hono-conv { color: var(--mf-ink); font-weight: 600; }
#hono-table { --bs-table-bg: transparent; border-radius: 12px; overflow: hidden; }
#hono-table thead th {
  background: var(--mf-blue); color: #fff; border: 0;
  font-family: 'Outfit', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem;
  padding: 0.75rem 1rem;
}
#hono-table tbody td { background: #fff; border-color: var(--mf-border); padding: 0.85rem 1rem; }
#hono-mention { color: var(--mf-muted); line-height: 1.6; }

/* =========================================================================
   BLOG / ARTICLES
   ========================================================================= */
#blog-title, #shop-title, #contact-title, #plan-title, #related-title { color: var(--mf-ink); }
#post-card { overflow: hidden; }
#post-card:hover { transform: translateY(-5px); border-color: rgba(17, 75, 107, 0.35) !important; box-shadow: 0 30px 56px -30px rgba(12, 47, 67, 0.5); }
#post-thumb { background: #e7eef2; }
#post-thumb .bi { font-size: 2.4rem; color: var(--mf-blue-soft); }
#post-card img { transition: transform 0.4s ease; }
#post-card:hover img { transform: scale(1.05); }
#post-cat, #cat-chip, #shop-chip, #product-badge, #cat-chip-active {
  background: rgba(230, 57, 70, 0.1); color: var(--mf-red);
  font-family: 'Outfit', sans-serif; font-weight: 600;
  padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
#post-title { color: var(--mf-ink); }
#post-excerpt { color: var(--mf-muted); }
#post-meta { color: var(--mf-blue-soft); border-top: 1px solid var(--mf-border); padding-top: 0.75rem; }
#cat-chip { background: #fff; color: var(--mf-blue); border: 1px solid var(--mf-border); }
#cat-chip:hover { border-color: var(--mf-red); color: var(--mf-red); }
#cat-chip-active { background: var(--mf-blue); color: #fff; }
#crumbs a { color: var(--mf-blue-soft); }

/* page d'article */
#post-h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
#post-byline { color: var(--mf-muted); }
#post-figure { border-radius: 16px; overflow: hidden; border: 5px solid #fff; box-shadow: var(--mf-shadow); }
#post-body { font-size: 1.1rem; color: #3c4e58; }
#post-body h2 { margin-top: 2.2rem; margin-bottom: 0.9rem; position: relative; padding-left: 1rem; }
#post-body h2::before { content: ''; position: absolute; left: 0; top: 0.15em; bottom: 0.15em; width: 4px; border-radius: 4px; background: var(--mf-red); }
#post-body h3 { margin-top: 1.6rem; margin-bottom: 0.6rem; color: var(--mf-blue); }
#post-body ul, #post-body ol { padding-left: 1.2rem; }
#post-body li { margin-bottom: 0.4rem; }
#post-body blockquote {
  border-left: 4px solid var(--mf-blue); background: #eaf2f6;
  padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0; color: var(--mf-ink);
}
#post-body a { color: var(--mf-blue); text-decoration: underline; }
#post-cta { background: linear-gradient(120deg, #eaf2f6, #f6fafc); border: 1px solid var(--mf-border); }
#post-cta-icon { font-size: 2rem; color: var(--mf-red); }

/* =========================================================================
   BOUTIQUE
   ========================================================================= */
#shop-block {
  background: linear-gradient(135deg, var(--mf-blue), var(--mf-blue-deep)) !important;
  box-shadow: var(--mf-shadow); position: relative;
}
#shop-block::after {
  content: ''; position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  width: 220px; height: 24px; background-image: var(--mf-ecg); background-repeat: repeat-x; opacity: 0.4;
}
#shop-block h2, #shop-block p { color: #fff; position: relative; z-index: 1; }
#shop-block #shop-chip { background: rgba(255, 255, 255, 0.14); color: #fff; }
#shop-block #shop-chip:hover { background: var(--mf-red); }
#shop-block .btn-primary { --bs-btn-bg: #fff; --bs-btn-color: var(--mf-blue-deep); --bs-btn-border-color: #fff; --bs-btn-hover-bg: var(--mf-red); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--mf-red); }
#shop-bigicon { font-size: 6rem; color: rgba(255, 255, 255, 0.85); }

#product-card { overflow: hidden; }
#product-card:hover { transform: translateY(-4px); border-color: rgba(17, 75, 107, 0.3) !important; }
#product-thumb { background: #eef3f6; }
#product-thumb .bi, #product-noimg .bi { font-size: 2.2rem; color: var(--mf-blue-soft); }
#product-discount { background: var(--mf-red); color: #fff; font-weight: 700; border-radius: 999px; padding: 0.3rem 0.6rem; font-size: 0.72rem; }
#product-title { color: var(--mf-ink); }
#product-price { color: var(--mf-blue); }
#product-old { color: var(--mf-muted); }
#empty-icon { font-size: 3.4rem; color: var(--mf-blue-soft); }
#product-figure { border-radius: 16px; overflow: hidden; border: 5px solid #fff; box-shadow: var(--mf-shadow); }
#product-h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
#product-body h2 { margin-top: 2rem; margin-bottom: 0.8rem; }
#product-reassure .bi { color: var(--mf-blue); }

/* =========================================================================
   CONTACT + carte
   ========================================================================= */
#urgence-alert {
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: #a52731; border-radius: 12px; padding: 0.85rem 1rem;
}
#urgence-alert .bi { color: var(--mf-red); }
.form-control, .form-select {
  background: #fff; border: 1.5px solid var(--mf-border); border-radius: 10px; padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus { border-color: var(--mf-blue); box-shadow: 0 0 0 0.2rem rgba(17, 75, 107, 0.18); }
.form-label { font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--mf-ink); font-size: 0.9rem; }
.form-check-input:checked { background-color: var(--mf-blue); border-color: var(--mf-blue); }
#map-frame { border-radius: 16px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--mf-shadow); }
#map-frame iframe { border: 0; }

/* =========================================================================
   SEO sections
   ========================================================================= */
#seo { background: #e9f1f5; border-top: 1px solid var(--mf-border); border-bottom: 1px solid var(--mf-border); }
#seo h2 { color: var(--mf-blue-deep); }
#seo p { color: var(--mf-muted); }

/* mentions légales */
#legal h2 { color: var(--mf-blue); }

/* =========================================================================
   FOOTER
   ========================================================================= */
footer.bg-dark {
  background: linear-gradient(180deg, var(--mf-blue-deep), #07283a) !important;
  border-top: 4px solid var(--mf-red);
}
#footer-name { color: #fff; }
#footer-praticien { color: #9fc4d6; }
footer.bg-dark .text-uppercase.fw-bold { color: #8fd0e6 !important; letter-spacing: 0.12em; }
footer.bg-dark a { color: #d4e4ec !important; }
footer.bg-dark a:hover { color: #fff !important; }
footer.bg-dark .bi { color: var(--mf-red); }
footer.bg-dark hr { border-top-color: rgba(255, 255, 255, 0.12); }
#copyright { color: #93b3c2; }

/* =========================================================================
   ACCESSIBILITÉ & RESPONSIVE
   ========================================================================= */
a:focus-visible, .btn:focus-visible, .nav-link:focus-visible, .form-control:focus-visible, .form-select:focus-visible {
  outline: 3px solid var(--mf-red); outline-offset: 2px;
}
@media (max-width: 991.98px) {
  #hero-title { font-size: 2.3rem; }
  #shop-block::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card.border-0:hover, .btn-primary:hover, .btn-outline-primary:hover { transform: none; }
  #post-card:hover img { transform: none; }
}
