/* Tomatis Verona - Roma — thème sobre, clair, lisible (réseau Tomatis) */
:root {
  --bg: #ffffff;
  --paper: #f5f7fa;
  --ink: #232a32;
  --muted: #5c6670;
  --blue: #1f5fa8;          /* bleu Tomatis (proche du #3366ff d'origine, assagi) */
  --blue-dark: #16487f;
  --line: #e2e8f0;
  --max: 1180px;
  --measure: 100ch;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.05rem; line-height: 1.7;
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
img { max-width: 100%; height: auto; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .7rem 1.5rem; flex-wrap: wrap; }
.brand-logo { height: 52px; width: auto; display: block; }
.nav-toggle, .nav-burger { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; align-items: center; }
.site-nav li { position: relative; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; padding: .4rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
/* entrée "Precisazioni" mise en valeur sobrement (sans crier en majuscules) */
.site-nav a.nav-important { color: var(--blue-dark); font-weight: 600; }
.site-nav a.nav-important::before { content: "★ "; color: var(--blue); font-size: .85em; }
/* Sous-menu déroulant */
.site-nav .submenu {
  display: none; position: absolute; left: 0; top: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.1); padding: .4rem 0; min-width: 260px; z-index: 40;
}
.site-nav li.has-children:hover .submenu { display: block; }
.site-nav .submenu li { display: block; }
.site-nav .submenu a { display: block; padding: .45rem 1rem; border: none; font-weight: 400; white-space: normal; }
.site-nav .submenu a:hover { background: var(--paper); color: var(--blue); }

/* Contenu */
.site-main { padding: 2.4rem 0 3.5rem; }
.article-heading {
  font-family: "Spectral", Georgia, serif; font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15;
  color: var(--blue-dark); margin: 0 0 1.4rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--line);
}
.content--home, .article-body { max-width: 100%; }
.content--home { margin: 0 auto; }
.article-body { }
.content h2, .article-body h2 { font-family: "Spectral", serif; color: var(--blue-dark); font-size: 1.55rem; margin: 2rem 0 .7rem; }
.content h3, .article-body h3 { font-family: "Spectral", serif; color: var(--ink); font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
.content p, .article-body p { margin: 0 0 1.05rem; }
/* Liens du contenu : couleur unique (y compris visités) — fini le festival bleu/violet */
.content a, .article-body a,
.content a:visited, .article-body a:visited { color: var(--blue); }
.content a:hover, .article-body a:hover { color: var(--blue-dark); }
.article-body img { border-radius: var(--radius); margin: 1rem 0; }
.article-body table { border-collapse: collapse; margin: 1rem 0; max-width: 100%; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: .4rem .6rem; }

/* Liste de section */
.article-index { list-style: none; margin: 1.5rem 0; padding: 0; }
.article-index li { border-bottom: 1px solid var(--line); }
.article-link { display: block; padding: .8rem .3rem; font-family: "Spectral", serif; font-size: 1.25rem; color: var(--blue-dark); text-decoration: none; }
.article-link:hover { color: var(--blue); background: var(--paper); }

/* Accueil : titre de bienvenue stylé + filet */
.home-title {
  font-family: "Spectral", Georgia, serif; font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.15;
  color: var(--blue-dark); margin: 0 0 .6rem;
}
.home-rule {
  border: 0; height: 3px; width: 90px; margin: 0 0 1.6rem;
  background: var(--blue); border-radius: 2px;
}

/* Carte d'accès clinique */
.clinic-map { margin: 2.6rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.clinic-map h2 { font-family: "Spectral", serif; color: var(--blue-dark); font-size: 1.55rem; margin: 0 0 .5rem; }
.map-frame { position: relative; width: 100%; aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.1); margin: 1rem 0; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link a { color: var(--blue); font-weight: 500; }
@media (max-width: 600px) { .map-frame { aspect-ratio: 4 / 3; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 1.6rem 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* Mobile */
@media (max-width: 860px) {
  .nav-burger { display: block; cursor: pointer; font-size: 1.6rem; color: var(--blue); user-select: none; }
  .site-nav { flex-basis: 100%; max-height: 0; overflow: hidden; transition: max-height .25s; }
  .nav-toggle:checked ~ .site-nav { max-height: 2000px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .4rem 0; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: .7rem 0; }
  .site-nav .submenu { display: block; position: static; border: none; box-shadow: none; padding: 0 0 .4rem 1rem; min-width: 0; }
  .site-nav li.has-children:hover .submenu { display: block; }
}

/* Bibliografia — livres en vedette : texte puis couverture centrée dessous.
   Le HTML place l'<img> avant le texte → column-reverse remet le texte en haut. */
.book-featured {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0;
  padding: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.book-featured .book-info { width: 100%; }
.book-featured .book-info p { margin: 0; }
.book-featured .book-cover {
  width: 180px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  margin: 0 auto;
}
