/* 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;
  --logo: #004062;
  --line: #e2e8f0;
  --max: 1080px;
  --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(--logo); font-size: 1.55rem; font-weight: 600; 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;
}


/* --- Cartes (Link) --- */
.home-section { font-family:"Spectral",Georgia,serif; color:var(--logo); font-weight:700; font-size:1.45rem; margin:2.2rem 0 1rem; }
.card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1rem; }
.card { display:flex; flex-direction:column; gap:.4rem; padding:1.1rem 1.2rem; background:#fff; border:1px solid var(--line); border-left:4px solid var(--blue); border-radius:var(--radius); text-decoration:none; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform:translateY(-3px); box-shadow:0 10px 26px rgba(0,64,98,.13); border-left-color:var(--logo); }
.card-title { font-family:"Spectral",Georgia,serif; font-weight:700; color:var(--logo); font-size:1.08rem; line-height:1.25; }
.card-desc { color:#5b6670; font-size:.9rem; line-height:1.5; }
.card--dead { border-left-color:#c2c2c2; opacity:.65; }
.card--dead:hover { transform:none; box-shadow:none; }

/* --- Portrait (accueil) --- */
figure.portrait { float:right; max-width:230px; margin:.2rem 0 1rem 1.6rem; }
figure.portrait img { width:100%; border-radius:8px; box-shadow:0 8px 24px rgba(0,64,98,.18); display:block; }
figure.portrait figcaption { font-size:.82rem; color:#5b6670; font-style:italic; line-height:1.4; margin-top:.45rem; text-align:center; }
@media (max-width:620px){ figure.portrait { float:none; margin:0 auto 1.2rem; } }

.card--info { border-left-color:var(--logo); cursor:default; }
.card--info:hover { transform:none; box-shadow:none; }
.card-body { color:#46505a; font-size:.95rem; line-height:1.65; }
.card-body a { color:var(--blue); }
.pull-quote { border-left:4px solid var(--logo); background:#f3f6f9; padding:1rem 1.3rem; margin:1.4rem 0; border-radius:0 8px 8px 0; }
.pull-quote .quote-intro { font-weight:600; color:var(--logo); margin:0 0 .6rem; }
.pull-quote p { margin:0 0 .5rem; }
.pull-quote em { color:#3a4550; }
figure.portrait--left { float:left; margin:.2rem 1.6rem 1rem 0; }
.pull-quote--right { border-left:none; border-right:4px solid var(--logo); border-radius:8px 0 0 8px; text-align:left; }
