@font-face {
  font-family: "Archivo";
  src: url("/archivo-v8-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/poppins-v15-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --t-fond: #E4D7C7;
  --t-papier: #FFFFFF;
  --t-papier-creux: #F0E6D4;
  --t-encre: #372E28;
  --t-encre-attenuee: #6B645B;
  --t-filet: #C4B09B;
  --t-accent: #8A4648;
  --t-accent-sombre: #6A2E30;
  --t-appui: #2F5D62;
  --t-teinte-rb: #2F5D62;
  --t-teinte-he: #B07A3E;
  --t-teinte-cs: #6B4A6E;
  --t-titre-police: "Archivo", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --t-texte-police: "Poppins", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --t-travee: 76rem;
  --t-mesure: 68ch;
  --t-rythme: 1.9;
  --t-arrondi: 16px;
  --t-arrondi-s: 12px;
  --t-ombre-douce: 0 8px 28px rgba(90, 60, 40, 0.16);
  --t-ombre-nette: 0 4px 14px rgba(90, 60, 40, 0.14);
  --t-ombre-accent: 0 10px 32px rgba(138, 70, 72, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--t-texte-police);
  font-size: clamp(1rem, 2.4vw, 1.0625rem);
  line-height: var(--t-rythme);
  color: var(--t-encre);
  background: var(--t-fond);
}
img, svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--t-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, a { min-width: 0; }

:focus-visible {
  outline: 3px solid var(--t-accent-sombre);
  outline-offset: 2px;
  border-radius: 4px;
}

.t-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.t-saut {
  position: absolute; left: -9999px; top: 0;
  background: var(--t-accent-sombre); color: #fff; padding: .6rem 1rem; z-index: 999;
  border-radius: 0 0 var(--t-arrondi-s) 0;
}
.t-saut:focus { left: 0; }

.t-travee { width: 100%; max-width: var(--t-travee); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.t-travee > * { min-width: 0; }

/* ───── fronton ───── */
.t-fronton { background: var(--t-papier); border-bottom: 1px solid var(--t-filet); }
.t-fronton__plumage {
  height: 10px;
  background:
    radial-gradient(circle at 50% 0, transparent 5px, var(--t-papier) 5.5px) 0 4px / 14px 6px repeat-x,
    linear-gradient(90deg, var(--t-accent) 0 33%, var(--t-appui) 33% 66%, var(--t-teinte-cs) 66% 100%);
}
.t-fronton__interieur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.t-fronton__marque { display: flex; align-items: center; gap: .75rem; }
.t-fronton__embleme { width: 40px; height: 40px; flex: 0 0 auto; border-radius: var(--t-arrondi-s); box-shadow: var(--t-ombre-nette); }
.t-enseigne { font-family: var(--t-titre-police); font-size: clamp(1.4rem, 3.4vw, 1.85rem); font-weight: 700; color: var(--t-encre); letter-spacing: .01em; }
.t-devise { margin: .1rem 0 0; font-size: .85rem; color: var(--t-encre-attenuee); }
.t-parcours ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; }
.t-parcours__lien { color: var(--t-encre); font-size: .95rem; padding: .35rem .55rem; border-radius: var(--t-arrondi-s); }
.t-parcours__lien[aria-current="page"] { background: var(--t-accent-sombre); color: #fff; }

/* ───── préambule ───── */
.t-preambule { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); max-width: 42rem; }
.t-preambule__titre { font-family: var(--t-titre-police); font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.25; margin: 0 0 1rem; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.t-preambule__intro { margin: 0; color: var(--t-encre); }

/* ───── cartes ───── */
.t-casier { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.t-casier--rubrique { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.t-carte {
  background: var(--t-papier);
  border-radius: var(--t-arrondi);
  box-shadow: var(--t-ombre-douce);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-width: 0;
  border-left: 4px solid var(--t-filet);
  transition: transform .18s ease, box-shadow .18s ease;
}
.t-carte:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(90, 60, 40, .22); }
.t-carte[data-rubrique="rehabilitation-basics"] { border-left-color: var(--t-teinte-rb); }
.t-carte[data-rubrique="home-exercise"] { border-left-color: var(--t-teinte-he); }
.t-carte[data-rubrique="caregiving-support"] { border-left-color: var(--t-teinte-cs); }
.t-carte__vignette { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--t-papier-creux); }
.t-carte__vignette img { width: 100%; height: 100%; object-fit: cover; }
.t-carte__texte { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.t-carte__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .78rem; }
.t-cote { font-family: var(--t-titre-police); font-weight: 700; color: var(--t-encre-attenuee); letter-spacing: .04em; }
.t-mention { font-size: .78rem; background: var(--t-papier-creux); color: var(--t-encre); padding: .15rem .5rem; border-radius: var(--t-arrondi-s); }
.t-mention--large { font-size: .85rem; padding: .25rem .7rem; }
.t-carte__titre { font-family: var(--t-titre-police); font-size: 1.1rem; line-height: 1.35; margin: 0; }
.t-carte__titre a { color: var(--t-encre); }
.t-carte__titre a:hover { color: var(--t-accent); }
.t-carte__abrege { margin: 0; font-size: .9rem; color: var(--t-encre-attenuee); line-height: 1.7; }
.t-carte__datation { margin: .25rem 0 0; font-size: .78rem; color: var(--t-encre-attenuee); }
.t-carte__datation time { font-family: var(--t-titre-police); font-weight: 700; }

/* ───── vedette ───── */
.t-vedette { padding-block: 1rem 1.5rem; }
.t-vedette__lien { display: block; color: inherit; border-radius: var(--t-arrondi); overflow: hidden; background: var(--t-papier); box-shadow: var(--t-ombre-douce); }
.t-vedette__lien:hover { text-decoration: none; box-shadow: 0 16px 44px rgba(138, 70, 72, .28); }
.t-vedette__cadre { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--t-accent-sombre); }
.t-vedette__cadre img { width: 100%; height: 100%; object-fit: cover; }
.t-vedette__legende {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.25rem .85rem;
  font-size: .82rem; color: #F5EDE0;
  text-shadow: 0 1px 4px rgba(0,0,0,.65);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(38,31,26,.75) 100%);
}
.t-vedette__texte { padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.t-vedette__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; font-size: .82rem; color: var(--t-encre-attenuee); }
.t-vedette__meta time { font-family: var(--t-titre-police); font-weight: 700; }
.t-vedette__titre { font-family: var(--t-titre-police); font-size: clamp(1.5rem, 4.4vw, 2.4rem); line-height: 1.28; margin: 0; color: var(--t-encre); text-shadow: 0 1px 0 rgba(255,255,255,.65); }
.t-vedette__abrege { margin: 0; font-size: 1rem; color: var(--t-encre); line-height: 1.7; max-width: 60ch; }

/* ───── compact ───── */
.t-compact { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.t-compact__item { min-width: 0; }
.t-compact__lien {
  display: grid; grid-template-columns: 72px 1fr; gap: .85rem; align-items: center;
  padding: .6rem .75rem; border-radius: var(--t-arrondi-s); background: var(--t-papier);
  color: var(--t-encre); border-left: 4px solid var(--t-filet); min-width: 0;
}
.t-compact__lien:hover { text-decoration: none; box-shadow: var(--t-ombre-nette); background: #FBF5EA; }
.t-compact__item[data-rubrique="rehabilitation-basics"] .t-compact__lien { border-left-color: var(--t-teinte-rb); }
.t-compact__item[data-rubrique="home-exercise"] .t-compact__lien { border-left-color: var(--t-teinte-he); }
.t-compact__item[data-rubrique="caregiving-support"] .t-compact__lien { border-left-color: var(--t-teinte-cs); }
.t-compact__vignette { width: 72px; max-width: 100%; aspect-ratio: 1 / 1; border-radius: var(--t-arrondi-s); overflow: hidden; background: var(--t-papier-creux); }
.t-compact__vignette img { width: 100%; height: 100%; object-fit: cover; }
.t-compact__corps { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; min-width: 0; }
.t-compact__titre { font-family: var(--t-titre-police); font-weight: 700; font-size: 1rem; color: var(--t-encre); }
.t-compact__date { font-size: .78rem; color: var(--t-encre-attenuee); margin-left: auto; }

/* ───── blocs ───── */
.t-bloc { padding-block: clamp(2rem, 4vw, 3rem); }
.t-bloc__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 1.25rem; border-bottom: 1px dashed var(--t-filet); padding-bottom: .75rem; }
.t-bloc__titre { font-family: var(--t-titre-police); font-size: clamp(1.25rem, 3.2vw, 1.6rem); margin: 0; color: var(--t-encre); }
.t-bloc__titre a { color: var(--t-encre); }
.t-bloc__phrase { margin: 0; font-size: .9rem; color: var(--t-encre-attenuee); max-width: 60ch; }
.t-bloc__decompte { font-family: var(--t-titre-police); font-weight: 700; font-size: .85rem; color: var(--t-encre-attenuee); }
.t-bloc--rubriques { background: var(--t-papier-creux); border-radius: var(--t-arrondi); padding-inline: clamp(1rem, 3vw, 1.75rem); }

/* ───── onglets ───── */
.t-onglets { display: flex; flex-wrap: wrap; gap: .5rem; }
.t-onglet {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: var(--t-arrondi-s);
  background: var(--t-papier); color: var(--t-encre);
  border-left: 4px solid var(--t-filet); font-size: .92rem;
  box-shadow: var(--t-ombre-nette);
}
.t-onglet[data-teinte="rehabilitation-basics"] { border-left-color: var(--t-teinte-rb); }
.t-onglet[data-teinte="home-exercise"] { border-left-color: var(--t-teinte-he); }
.t-onglet[data-teinte="caregiving-support"] { border-left-color: var(--t-teinte-cs); }
.t-onglet--courant { background: var(--t-teinte-he); color: #fff; }
.t-onglet:hover { text-decoration: none; transform: translateY(-2px); }

/* ───── renvoi ───── */
.t-renvoi { margin: 1rem 0 0; }
.t-renvoi__lien {
  display: inline-block; padding: .55rem 1rem;
  background: var(--t-teinte-he); color: #fff; border-radius: var(--t-arrondi-s);
  font-family: var(--t-titre-police); font-weight: 700; font-size: .9rem;
  box-shadow: var(--t-ombre-accent);
}
.t-renvoi__lien:hover { background: var(--t-accent-sombre); text-decoration: none; }

/* ───── méthode ───── */
.t-bloc--methode {
  background: var(--t-papier-creux); border-radius: var(--t-arrondi);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.75rem);
  border-left: 4px solid var(--t-appui);
}
.t-bloc--methode p { max-width: var(--t-mesure); margin: .75rem 0 0; }

/* ───── reseau ───── */
.t-bloc--reseau { background: var(--t-papier); border-radius: var(--t-arrondi); padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.75rem); box-shadow: var(--t-ombre-nette); }
.t-reseau__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.t-reseau__item { padding: .75rem 1rem; border-radius: var(--t-arrondi-s); background: var(--t-papier-creux); border-left: 4px solid var(--t-filet); }
.t-reseau__item p { margin: 0; font-size: .92rem; }

/* ───── remontee ───── */
.t-remontee { padding-block: 1rem; }
.t-remontee ol { display: flex; flex-wrap: wrap; gap: .35rem 1rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--t-encre-attenuee); }
.t-remontee li + li::before { content: "／"; margin-right: 1rem; color: var(--t-filet); }

/* ───── fiche article ───── */
.t-fiche { padding-block: 1rem 2rem; }
.t-entete-fiche { padding-block: 1.5rem 2rem; }
.t-entete-fiche .t-cote { display: inline-block; padding: .2rem .55rem; background: var(--t-papier-creux); border-radius: 6px; }
.t-fiche__titre { font-family: var(--t-titre-police); font-size: clamp(1.7rem, 4.6vw, 2.8rem); line-height: 1.25; margin: .75rem 0 1rem; color: var(--t-encre); text-shadow: 0 1px 0 rgba(255,255,255,.65); }
.t-chapeau { font-size: 1.05rem; color: var(--t-encre); max-width: var(--t-mesure); margin: 0; }
.t-planche-image { padding-block: 1rem 2rem; }
.t-planche-image img { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--t-arrondi); box-shadow: var(--t-ombre-douce); }
.t-planche-image__legende { margin-top: .75rem; font-size: .85rem; color: var(--t-encre-attenuee); }

/* ───── duo corps + releve ───── */
.t-duo { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; padding-block: 1rem 3rem; }
@media (min-width: 60rem) {
  .t-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); }
  .t-releve { position: sticky; top: 1.5rem; align-self: start; }
}
.t-corps { max-width: var(--t-mesure); min-width: 0; }
.t-corps > * { min-width: 0; }
.t-corps h2 { font-family: var(--t-titre-police); font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 2rem 0 .75rem; line-height: 1.35; }
.t-corps h3 { font-family: var(--t-titre-police); font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.t-corps p { margin: 0 0 1rem; }
.t-corps ul, .t-corps ol { padding-left: 1.25rem; }
.t-corps table { width: 100%; border-collapse: collapse; }
.t-corps th, .t-corps td { padding: .6rem .75rem; border-bottom: 1px solid var(--t-filet); text-align: left; }
.t-tableau-defilant { overflow-x: auto; margin-block: 1.25rem; border-radius: var(--t-arrondi-s); box-shadow: var(--t-ombre-nette); }

/* ───── releve ───── */
.t-releve { background: var(--t-papier-creux); border-radius: var(--t-arrondi); padding: 1.25rem; border-left: 4px solid var(--t-appui); box-shadow: var(--t-ombre-nette); min-width: 0; }
.t-releve__titre { font-family: var(--t-titre-police); font-size: 1rem; margin: 0 0 .5rem; color: var(--t-encre); }
.t-releve__titre + * { margin-bottom: 1.25rem; }
.t-releve__sommaire { list-style: decimal; margin: 0; padding-left: 1.25rem; font-size: .9rem; }
.t-releve__sommaire li { margin-bottom: .35rem; }
.t-releve__sources { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.t-releve__sources li { margin-bottom: .35rem; word-break: break-word; }

/* ───── pied ───── */
.t-pied { background: var(--t-accent-sombre); color: #F5EDE0; margin-top: 3rem; padding-block: 2.5rem 1.5rem; }
.t-pied__colonnes { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.t-pied__colonne { min-width: 0; }
.t-pied__colonne h2 { font-family: var(--t-titre-police); font-size: 1rem; margin: 0 0 .75rem; color: #F5EDE0; letter-spacing: .02em; }
.t-pied__colonne p, .t-pied__colonne li { font-size: .88rem; }
.t-pied__colonne ul { list-style: none; margin: 0; padding: 0; }
.t-pied__colonne li { margin-bottom: .35rem; }
.t-pied__colonne a { color: #F5EDE0; }
.t-pied__colonne a:hover { color: #FFFFFF; }
.t-pied__note { font-size: .82rem; opacity: .9; }
.t-pied__ligne { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(245,237,224,.25); font-size: .82rem; opacity: .85; }

/* ───── divers ───── */
.t-bloc--voisines { padding-block: 3rem 1rem; }
@media (max-width: 40rem) {
  .t-fronton__interieur { flex-direction: column; align-items: flex-start; }
  .t-parcours ul { gap: .25rem .5rem; }
  .t-parcours__lien { padding: .3rem .5rem; font-size: .9rem; }
  .t-casier, .t-casier--rubrique { grid-template-columns: 1fr; }
  .t-vedette__titre { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; transform: none !important; }
}

/* ───── aile du préambule et typographie japonaise ───── */
.t-preambule { position: relative; max-width: var(--t-travee); }
.t-preambule > * { position: relative; max-width: 44rem; }
.t-preambule::before {
  content: ""; position: absolute; right: clamp(0rem, 3vw, 2.5rem); top: 50%;
  width: clamp(9rem, 22vw, 17rem); aspect-ratio: 1 / 1; transform: translateY(-50%) rotate(-12deg);
  opacity: .18; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 16% at 62% 30%, var(--t-accent) 98%, transparent 100%),
    radial-gradient(ellipse 44% 14% at 58% 48%, var(--t-appui) 98%, transparent 100%),
    radial-gradient(ellipse 38% 12% at 54% 64%, var(--t-teinte-he) 98%, transparent 100%),
    radial-gradient(ellipse 30% 10% at 50% 78%, var(--t-teinte-cs) 98%, transparent 100%);
}
@media (max-width: 40rem) { .t-preambule::before { display: none; } }
.t-preambule__titre { position: relative; padding-bottom: .9rem; }
.t-preambule__titre::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 4.5rem; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--t-accent) 0 33%, var(--t-appui) 33% 66%, var(--t-teinte-cs) 66%);
}
.t-preambule__titre, .t-vedette__titre, .t-fiche__titre, .t-carte__titre, .t-bloc__titre, .t-corps h2 { word-break: auto-phrase; text-wrap: balance; }
.t-preambule__intro, .t-chapeau, .t-corps p { text-wrap: pretty; }
.t-preambule__intro { font-size: clamp(1rem, 2.2vw, 1.12rem); }
.t-cote { color: var(--t-accent); }
.t-corps h2 { padding-left: .85rem; border-left: 4px solid var(--t-accent); }
