/* ==========================================================================
   Design system — Dr Olivier Fontes
   Source : maquettes HTML validées (Brief de refonte v1.0 — 2026).
   Palette et typographies à respecter strictement (cf. brief §3).
   ========================================================================== */

:root {
  --ink:         #1F5181; /* bleu médical principal — titres, fonds foncés, liens */
  --ink-soft:    #2D6396; /* bleu médical moyen — corps de texte */
  --ink-mid:     #44646F; /* teal/petrol logo — détails secondaires */
  --ink-light:   #95A8BE; /* gris-bleu mat — texte tertiaire, séparateurs */
  --accent:      #A85B3E; /* terracotta institutionnel — accents, italiques, CTA hover */
  --accent-soft: #C9826A; /* terracotta clair — accent secondaire */
  --cream:       #EFEAE0; /* crème chaud — fonds de section */
  --cream-2:     #E3DCCD;
  --paper:       #FAF7F1; /* fond principal du site */
  --line:        #D5CDB8; /* bordures discrètes */
  --muted:       #6B757B; /* gris neutre — légendes, captions */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 17px; line-height: 1.65;
  color: var(--ink-soft); background: var(--paper);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ========== NAV ========== */
nav.top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
body.admin-bar nav.top { top: 32px; }
nav.top .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.logo-img { height: 56px; width: auto; display: block; }
.nav-links { display: flex; gap: 36px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .current-menu-item > a,
.nav-links .current-menu-ancestor > a,
.nav-links a.active { color: var(--ink); }
.nav-links .current-menu-item > a::after,
.nav-links .current-menu-ancestor > a::after,
.nav-links a.active::after {
  content: ''; position: absolute;
  bottom: -28px; left: 0; right: 0;
  height: 2px; background: var(--accent);
}
.nav-cta {
  padding: 10px 22px; background: var(--ink); color: var(--paper);
  text-decoration: none; border-radius: 999px;
  font-size: 14px; font-weight: 500; transition: background .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); color: var(--paper); }
@media (max-width: 880px) { .nav-links { display: none; } }
@media (max-width: 480px) { .logo-img { height: 44px; } nav.top .inner { height: 72px; } }

/* ========== HERO DE PAGE INTÉRIEURE ========== */
.page-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper), var(--cream) 100%);
}
@media (max-width: 720px) { .page-hero { padding: 40px 0 36px; } }

.breadcrumb {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; border: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--ink-light); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent); margin-bottom: 24px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 500; line-height: 1.02;
  letter-spacing: -0.025em; color: var(--ink);
  margin: 0 0 28px;
  max-width: 920px;
}
.em, .page-hero h1 .em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 500; color: var(--accent);
}
.page-hero .lede {
  font-size: 19px; line-height: 1.55;
  color: var(--ink-soft); max-width: 720px;
  margin-bottom: 36px;
}

/* Métriques rapides (fiches interventions) */
.metrics {
  display: flex; flex-wrap: wrap; gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 920px;
}
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric .v {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 500;
  line-height: 1; color: var(--ink);
}
.metric .l {
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ========== BANDEAU INFOS PRATIQUES (pages cliniques) ========== */
.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 36px 40px; margin: 56px 0 80px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
@media (max-width: 980px) { .info-card { grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 28px 32px; } }
@media (max-width: 540px) { .info-card { grid-template-columns: 1fr; gap: 24px; padding: 24px 26px; } }
.info-item h4 {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--accent); margin: 0 0 10px;
}
.info-item .val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 500; line-height: 1.3;
  color: var(--ink); letter-spacing: -0.01em;
}
.info-item .val a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.info-item .val a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.info-item .sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

/* ========== CORPS DE PAGE : GRILLE + SOMMAIRE ========== */
.page-body { padding: 80px 0; }
@media (max-width: 720px) { .page-body { padding: 56px 0; } }

.content-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) { .content-grid { grid-template-columns: 1fr; gap: 32px; } }

.toc { position: sticky; top: 110px; font-size: 13px; }
body.admin-bar .toc { top: 142px; }
@media (max-width: 980px) { .toc { position: static; } }
.toc h4 {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 12px; }
.toc a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 13.5px; line-height: 1.4;
  transition: color .2s;
  display: block;
  border-left: 2px solid transparent;
  padding-left: 12px; margin-left: -14px;
}
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }

/* ========== ARTICLE (typographie de contenu) ========== */
.article {
  max-width: 720px;
  font-size: 17px; line-height: 1.7;
  color: var(--ink-soft);
}
.article h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500; line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 56px 0 20px;
  scroll-margin-top: 110px;
}
.article h2:first-child { margin-top: 0; }
.article h2 .em { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--accent); }
.article h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 32px 0 14px;
}
.article p { margin: 0 0 18px; }
.article p strong, .article li strong { color: var(--ink); font-weight: 600; }
.article ul { list-style: none; margin: 16px 0 24px; padding: 0; }
.article ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.article ul li::before {
  content: ''; position: absolute;
  left: 0; top: 11px;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.article a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.article a:hover { border-bottom-color: var(--accent); }

/* ========== CALLOUT / ENCADRÉ ========== */
.callout {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--cream);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
/* Variante avec label "À noter" (pages cliniques) */
.callout--note::before {
  content: 'À noter';
  display: block;
  font-family: 'Instrument Sans', sans-serif;
  font-style: normal;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ========== CARTE IMPLANTS (fiches interventions) ========== */
.implants-card {
  margin: 32px 0; padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 4px;
}
.implants-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500;
  color: var(--ink); margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.implants-card .sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; letter-spacing: 0.02em; }
.implants-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 18px; }
@media (max-width: 720px) { .implants-grid { grid-template-columns: 1fr; } }
.implant-item {
  padding: 18px;
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--cream);
}
.implant-item .name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px; font-weight: 500;
  color: var(--accent); margin-bottom: 6px;
}
.implant-item .desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* ========== GRILLE BÉNÉFICES ========== */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
@media (max-width: 600px) { .benefits { grid-template-columns: 1fr; } }
.benefit {
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 4px;
  transition: all .25s;
}
.benefit:hover { border-color: var(--accent-soft); background: var(--cream); }
.benefit .num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px; color: var(--accent);
  display: block; margin-bottom: 6px;
}
.benefit h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-weight: 500;
  color: var(--ink); margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.benefit p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 0; }

/* ========== TIMELINE ========== */
.timeline-mini { margin: 28px 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.tl-step {
  display: grid; grid-template-columns: 110px 1fr; gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.tl-step:last-child { border-bottom: none; }
.tl-step .when {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px; color: var(--accent);
  padding-top: 2px;
}
.tl-step .what { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.tl-step .what strong { color: var(--ink); }
@media (max-width: 600px) { .tl-step { grid-template-columns: 1fr; gap: 4px; } }

/* ========== FAQ ACCORDÉON (details/summary natif, sans JS) ========== */
.faq { margin: 28px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  list-style: none;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 400;
  color: var(--accent);
  transition: transform .3s;
  line-height: 1; padding-top: 2px;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.faq .answer p { margin-bottom: 12px; }

/* ========== TAGS INTERVENTIONS (pages cliniques) ========== */
.interventions-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.tag {
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; color: var(--ink);
}
.tag.highlight { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ========== SCHÉMAS / FIGURES ========== */
.schema {
  margin: 36px 0;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 28px 24px 20px;
}
.schema svg, .schema img {
  width: 100%; height: auto; display: block;
  max-width: 720px; margin: 0 auto;
}
.schema.compact { max-width: 480px; margin-left: auto; margin-right: auto; }
.schema.compact img { max-width: 100%; }
.schema figcaption {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14.5px; line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
@media (max-width: 600px) {
  .schema { padding: 18px 14px 14px; }
  .schema figcaption { font-size: 13.5px; }
}

/* ========== CARTE / PLAN D'ACCÈS ========== */
.map-block { margin: 36px 0; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.map-block iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.map-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 16px; color: var(--muted); text-align: center; padding: 32px;
}
.map-placeholder .icon { font-family: 'Cormorant Garamond', serif; font-size: 48px; color: var(--accent); }
.map-placeholder p { margin: 0; font-size: 14px; max-width: 420px; }
.map-placeholder strong {
  color: var(--ink); display: block; margin-bottom: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
}

/* ========== SECTION "VOIR AUSSI" (cards liées) ========== */
.related { background: var(--cream); padding: 80px 0; border-top: 1px solid var(--line); }
.related-head { text-align: center; margin: 0 auto 48px; max-width: 700px; }
.related-head .eyebrow { display: inline-flex; margin-bottom: 16px; }
.related-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}
.related-head h3 .em { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--accent); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .related-grid { grid-template-columns: 1fr; } }
.rel-card {
  background: var(--paper);
  padding: 32px 28px;
  border: 1px solid var(--line); border-radius: 4px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 14px;
  transition: all .3s;
}
.rel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -16px rgba(31, 81, 129, 0.15);
  border-color: var(--accent-soft);
}
.rel-card .label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px; color: var(--accent);
  letter-spacing: 0.02em;
}
.rel-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.2;
  margin: 0;
}
.rel-card p { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.rel-card .arrow {
  margin-top: 8px;
  font-size: 13px; color: var(--ink); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.rel-card svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ========== CTA FINAL ========== */
.cta-final { background: var(--paper); text-align: center; padding: 110px 0; }
.cta-monogram { display: flex; justify-content: center; margin-bottom: 28px; }
.cta-monogram img { height: 56px; width: auto; opacity: 0.85; }
@media (max-width: 480px) { .cta-monogram img { height: 44px; } }
.cta-final h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 24px; color: var(--ink);
}
.cta-final h2 .em { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--accent); }
.cta-final p { font-size: 18px; color: var(--ink-soft); max-width: 540px; margin: 0 auto 40px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: all .25s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); border: none; }
.btn-primary:hover { background: var(--accent); color: var(--paper); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--cream); color: var(--ink); }
.cta-final .urgence { margin-top: 40px; font-size: 13px; color: var(--muted); font-style: italic; }

/* ========== FOOTER ========== */
footer.site-footer { background: var(--ink); color: var(--paper); padding: 72px 0 32px; }
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.15);
}
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }
.foot-logo {
  height: 60px; width: auto; display: block;
  margin-bottom: 18px;
  filter: brightness(0) invert(1); opacity: 0.92;
}
@media (max-width: 480px) { .foot-logo { height: 50px; } }
.foot-brand p { font-size: 14px; line-height: 1.5; color: rgba(245, 241, 234, 0.65); max-width: 320px; }
.foot-col h5 {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent-soft); margin: 0 0 18px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { color: rgba(245, 241, 234, 0.75); text-decoration: none; font-size: 14px; transition: color .2s; }
.foot-col a:hover { color: var(--accent-soft); }
.foot-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: rgba(245, 241, 234, 0.5);
}
.foot-bottom em { font-family: 'Cormorant Garamond', serif; font-style: italic; }

/* ==========================================================================
   Compatibilité WordPress / Elementor
   ========================================================================== */

/* Le contenu Gutenberg/Elementor hérite de la typographie "article"
   quand la page utilise la classe .article (placeholders actuels). */
.site-main { display: block; }
.entry-content > .wrap { padding-top: 0; }

/* Neutralise le fond blanc par défaut d'Elementor sur les sections */
.elementor-section { background-color: transparent; }

/* Bannière cookies tarteaucitron — habillage à la charte */
#tarteaucitronRoot #tarteaucitronAlertBig {
  background: var(--ink) !important;
  font-family: 'Instrument Sans', sans-serif !important;
}
#tarteaucitronRoot #tarteaucitronDisclaimerAlert { font-size: 14px !important; }
#tarteaucitronRoot .tarteaucitronCTAButton,
#tarteaucitronRoot #tarteaucitronCloseAlert {
  border-radius: 999px !important;
  font-family: 'Instrument Sans', sans-serif !important;
  font-weight: 500 !important;
}
#tarteaucitronRoot #tarteaucitronPersonalize2 { background: var(--accent) !important; }
#tarteaucitronRoot .tarteaucitronDeny { background: transparent !important; border: 1px solid rgba(250,247,241,0.5) !important; }
#tarteaucitronIcon button { background: var(--ink) !important; border-radius: 999px 999px 0 0 !important; }

/* Liens d'évitement accessibilité */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 0; }
