/* Site de Thérence Carvalho
   Voix : sobre, savante, chaleureuse.
   Idée : une bibliothèque de juriste ; reliures de cuir, filets dorés, papier blanc.
   Couleurs : brun de reliure pour la structure, bordeaux réservé à Pouvoirs, filet d'or en accent.
   Typographie : EB Garamond seul ; l'italique est réservé aux titres d'œuvres.
   Mise en page : bandeau photographique, colonne de lecture étroite, années en marge. */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/eb-garamond-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #FFFFFF;
  --wash: #F5F2ED;        /* papier vergé très clair */
  --ink: #211B17;
  --muted: #6B625B;
  --navy: #2E211A;        /* brun de reliure (nom de variable conservé) */
  --navy-deep: #20170F;
  --accent: #7B4424;      /* cuir fauve : liens, années */
  --gilt: #B4925A;        /* filet doré */
  --rule: #E2DCD3;
  --pouvoirs: #5E1A15;    /* bordeaux du podcast Pouvoirs */
  --pouvoirs-ink: #F2E5E2;
  --seal: #9E3A1F;        /* focus clavier */
  --measure: 41rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: 1.1875rem; line-height: 1.62;
  font-kerning: normal; font-variant-ligatures: common-ligatures;
  overflow-x: clip;
}
p, li, dd { hyphens: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 2px; }
i, em, cite { font-style: italic; }
strong { font-weight: 500; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.measure { max-width: var(--measure); }

h1, h2, h3, h4 { font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4vw, 3.15rem); letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.3rem; line-height: 1.5; }
.note { color: var(--muted); font-size: 1.05rem; }

/* ------------------------------------------------------------ bandeau */
.mast { color: #fff; background: linear-gradient(rgba(32,23,15,.66), rgba(32,23,15,.86)), url("images/bibliotheque.jpg") center 40% / cover no-repeat, var(--navy-deep); }
.mast a { color: #fff; }
.mast-top { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-top: 2.4rem; padding-bottom: 1.6rem; }
.id { display: flex; align-items: center; gap: 1.1rem; text-decoration: none; }
.id:hover { color: #fff; }
.mono { width: 3.5rem; height: auto; flex: none; }
.brand { display: block; font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.05; letter-spacing: .005em; }
.role { display: block; margin-top: .4rem; font-size: 1rem; color: rgba(255,255,255,.8); }
.lang { font-size: .98rem; text-decoration: none; padding: .28rem .85rem .32rem; border: 1px solid rgba(255,255,255,.45); border-radius: 2px; white-space: nowrap; }
.lang:hover { background: rgba(255,255,255,.1); }

.menu summary { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2.1rem; border-top: 1px solid rgba(180,146,90,.45); }
.menu a { display: inline-block; padding: .8rem 0 .75rem; border-bottom: 2px solid transparent; text-decoration: none; font-size: 1.06rem; color: rgba(255,255,255,.84); }
.menu a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.4); }
.menu a[aria-current="page"] { color: #fff; border-bottom-color: var(--gilt); }

main { padding-bottom: 5rem; }
.page-head { padding-top: 3.5rem; padding-bottom: 2.25rem; }
.page-head h1 { margin-bottom: 1.25rem; }
.section-label { font-size: 1.6rem; padding-bottom: .6rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--rule); }
.block { margin-top: 4.5rem; }
.block > h2 { font-size: 1.6rem; padding-bottom: .6rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--rule); }
.block-tight { margin-bottom: 3rem; }

/* ------------------------------------------------------------ accueil */
.hero { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 3.5rem; align-items: start; padding-top: 4rem; padding-bottom: 3rem; }
.portrait { width: 17rem; aspect-ratio: 900 / 1187; object-fit: cover; box-shadow: 0 14px 30px -18px rgba(33,27,23,.55); }
.hero h1 { margin-bottom: 1.5rem; max-width: 18ch; }
.hero-text { max-width: 44rem; }
.hero-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }


.thesis { background: var(--wash); padding: 4.75rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.thesis-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 4rem; align-items: center; }
.question { font-size: clamp(2.1rem, 3.7vw, 3.15rem); line-height: 1.12; color: var(--navy); margin: 0; letter-spacing: -.01em; text-wrap: balance; }

.feature { display: grid; grid-template-columns: 13.75rem minmax(0, 1fr); gap: 2.75rem; align-items: start; }
.feature h3 { font-size: 2.15rem; }
.feature h3 a { color: var(--ink); text-decoration: none; }
.feature h3 a:hover { color: var(--navy); }
.sub { font-size: 1.18rem; margin: .3rem 0 .45rem; }
.resp { margin: 0 0 .2rem; }
.imprint { color: var(--muted); margin-bottom: 1rem; }
.feature-cover, .book-cover, .mini-cover { box-shadow: 0 1px 2px rgba(26,31,43,.16), 0 10px 24px -12px rgba(26,31,43,.4); background: var(--wash); }

.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.mini { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.2rem; align-items: start; color: var(--ink); text-decoration: none; }
.mini-cover { width: 5.5rem; }
.mini-title { display: block; font-size: 1.2rem; line-height: 1.25; }
.mini-imprint { display: block; color: var(--muted); font-size: .98rem; margin-top: .35rem; }
.mini:hover .mini-title { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.more { margin-top: 1.75rem; }

.forth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem; }
.forth { display: grid; grid-template-columns: 8.75rem minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.forth-cover { aspect-ratio: 2 / 3; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 1.1rem .85rem .9rem; outline: 1px solid rgba(255,255,255,.35); outline-offset: -6px; box-shadow: 0 10px 24px -12px rgba(26,31,43,.45); }
#conquerir .forth-cover { background: var(--pouvoirs); }
.fc-title { font-size: 1.18rem; line-height: 1.1; }
.fc-sub { font-size: .74rem; line-height: 1.25; margin-top: .45rem; opacity: .82; }
.fc-author { font-size: .72rem; margin-top: auto; opacity: .8; }
.status { color: var(--muted); font-size: .98rem; margin: 0 0 .3rem; }
.forth-title { font-size: 1.65rem; }

.podcast { background: var(--pouvoirs); color: var(--pouvoirs-ink); padding: 4rem 0 4.25rem; }
.podcast a { color: #fff; }
.podcast-head { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; }
.podcast-page { padding: 4rem 0; }
.podcast-page h1 { font-size: clamp(3.2rem, 7vw, 5rem); color: #fff; line-height: 1; }
.podcast-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.podcast h2 { font-size: clamp(3rem, 6vw, 4.4rem); color: #fff; line-height: 1; }
.tagline { font-size: 1.15rem; color: #fff; opacity: .85; margin: .6rem 0 0; }
.podcast p { max-width: 36rem; }
.podcast :focus-visible { outline-color: #fff; }

.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: .6rem 1.35rem .65rem; border-radius: 2px; font-size: 1.05rem; }
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn-light { background: #fff; color: var(--pouvoirs); }
.btn-light:hover { background: var(--pouvoirs-ink); color: var(--pouvoirs); }
.btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.btn-line:hover { background: rgba(255,255,255,.1); color: #fff; }

/* épisodes de Pouvoirs */
.episodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.75rem; }
.episodes-dark { margin-top: 3rem; padding-top: 2.25rem; border-top: 1px solid rgba(255,255,255,.22); }
.ep-play { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; margin-bottom: .8rem; }
.ep-play .ep-thumb { margin-bottom: 0; transition: filter .2s; }
.ep-play:hover .ep-thumb { filter: brightness(.85); }
.ep-icon { position: absolute; left: 50%; top: 50%; width: 3.6rem; height: 3.6rem; margin: -1.8rem 0 0 -1.8rem; border-radius: 50%; background: rgba(32,23,15,.72); box-shadow: 0 0 0 1px rgba(255,255,255,.55); }
.ep-icon::after { content: ""; position: absolute; left: 1.42rem; top: 1.1rem; border-style: solid; border-width: .7rem 0 .7rem 1.15rem; border-color: transparent transparent transparent #fff; }
.ep-play:hover .ep-icon { background: var(--pouvoirs); }
.ep-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; margin-bottom: .8rem; background: #000; }
.ep a { display: block; text-decoration: none; color: var(--ink); }
.ep-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .8rem; background: var(--pouvoirs); }
.ep-name { display: block; font-size: 1.22rem; line-height: 1.2; }
.ep-sub { display: block; color: var(--muted); font-size: 1.02rem; line-height: 1.35; margin-top: .25rem; }
.ep a:hover .ep-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.episodes-dark .ep a { color: #fff; }
.episodes-dark .ep-sub { color: var(--pouvoirs-ink); opacity: .85; }
.ph.ep-thumb { aspect-ratio: 16 / 9; background: var(--pouvoirs); font-size: 1.1rem; }
.episodes-dark .ph.ep-thumb { background: rgba(0,0,0,.25); }

/* influologie */
.sub-h { font-size: 1.6rem; margin-bottom: .9rem; }
.refs-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.feature-sm { grid-template-columns: 10rem minmax(0, 1fr); gap: 1.75rem; }
.feature-sm h3 { font-size: 1.45rem; line-height: 1.2; margin-bottom: .4rem; }
.ref-stack { display: grid; gap: 1.5rem; }
.ref-card { border-top: 2px solid var(--gilt); background: var(--wash); padding: 1.6rem 1.75rem 1rem; }
.ref-card h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: .8rem; }

.links { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 1.25rem; }
.pill { font-size: .98rem; text-decoration: none; padding: .24rem .8rem .28rem; border: 1px solid var(--rule); border-radius: 2rem; background: #fff; }
.pill:hover { border-color: var(--accent); }

/* ------------------------------------------------------------ livres */
.book { display: grid; grid-template-columns: 11.25rem minmax(0, 1fr); gap: 2.5rem; padding-top: 3rem; margin-top: 3rem; border-top: 1px solid var(--rule); scroll-margin-top: 1.5rem; }
.section-label + .book { border-top: 0; padding-top: 0; margin-top: 0; }
.book h2 { font-size: 2rem; }
.desc p, .desc-list { text-align: justify; }
.desc-list { padding-left: 1.2rem; }
.desc-list li { margin-bottom: .5rem; }
.minor { font-size: 1.08rem; color: var(--muted); margin: 1.5rem 0 .4rem; font-weight: 400; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: .4rem; padding-left: 1rem; text-indent: -1rem; }

/* ------------------------------------------------------------ listes datées */
.year-block { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 2rem; margin-top: 2.25rem; }
.section-label + .year-block, .wrap > .year-block:first-child { margin-top: 0; }
.year { font-size: 1.5rem; color: var(--accent); line-height: 1.2; font-variant-numeric: lining-nums; }
.refs { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.refs li { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.refs li:last-child { border-bottom: 0; margin-bottom: 0; }
.read { white-space: nowrap; margin-left: .35rem; }
.post { font-size: 1.22rem; margin-bottom: .6rem; }

.timeline { list-style: none; margin: 0; padding: 0; max-width: 48rem; }
.timeline li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 2rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 0; }
.when { color: var(--accent); font-variant-numeric: lining-nums; }

/* ------------------------------------------------------------ influologie */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 4.5rem; align-items: start; }
.two-col section + section { margin-top: 2.75rem; }
.two-col h2 { font-size: 1.6rem; margin-bottom: .9rem; }
.aside { background: var(--wash); padding: 2rem 2rem 1.5rem; border-top: 2px solid var(--gilt); position: sticky; top: 1.5rem; }
.aside h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.aside h2 + * { margin-top: 0; }
.aside .note + h2 { margin-top: 2rem; }
.questions { margin: 0 0 1rem; padding-left: 1.5rem; font-size: 1.22rem; line-height: 1.35; }
.questions li { margin-bottom: .7rem; padding-left: .25rem; }
.questions li::marker { color: var(--accent); }
.arrowless li { padding-left: 0; text-indent: 0; margin-bottom: .6rem; }

.prose h2 { font-size: 1.4rem; margin: 2rem 0 .5rem; }

/* ------------------------------------------------------------ pied de page */
.foot { border-top: 3px solid var(--gilt); background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 3rem 0 2.5rem; font-size: 1rem; }
.foot a { color: rgba(255,255,255,.9); }
.foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.foot-name { font-size: 1.4rem; color: #fff; margin-bottom: .5rem; }
.foot-links { text-align: right; }
.foot-links a { margin-left: 1.1rem; }
.copy { margin: 0; color: rgba(255,255,255,.6); }

/* cartouche affiché tant qu'une image manque */
.ph { display: flex; align-items: flex-end; aspect-ratio: 2 / 3; background: var(--navy); color: #fff; padding: .9rem; font-size: 1.05rem; line-height: 1.2; }
.ph.portrait { aspect-ratio: 900 / 1187; background: var(--wash); color: var(--navy); font-size: 1.6rem; }
.ph.mini-cover { font-size: .78rem; padding: .5rem; }

/* ------------------------------------------------------------ petits écrans */
@media (max-width: 64rem) {
        .forth-grid { grid-template-columns: 1fr; }
  .episodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refs-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .aside { position: static; }
}
@media (max-width: 52rem) {
  .mast-top { padding-top: 1.4rem; padding-bottom: 1rem; align-items: flex-start; }
  .role { font-size: .92rem; }
  .mono { width: 2.6rem; }
  .menu { position: relative; }
  .menu summary { display: block; list-style: none; cursor: pointer; padding: .7rem 0; border-top: 1px solid rgba(180,146,90,.45); font-size: 1.05rem; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::after { content: " +"; }
  .menu[open] summary::after { content: " −"; }
  .menu ul { flex-direction: column; border-top: 0; padding-bottom: .75rem; }
  .menu a { padding: .45rem 0; }
  .hero, .feature, .book, .thesis-grid, .podcast-head { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero { padding-top: 2.5rem; }
  .portrait { width: 12rem; }
  .feature-cover, .book-cover { width: 10rem; }
  .minis { grid-template-columns: 1fr; }
  .year-block, .timeline li { grid-template-columns: 1fr; gap: .35rem; }
  .desc p, .desc-list { text-align: left; }
  .thesis { padding: 3.25rem 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-links { text-align: left; }
  .foot-links a { margin: 0 1.1rem 0 0; }
}
@media (max-width: 34rem) {
        .forth { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.1rem; }
  .episodes { grid-template-columns: 1fr; }
}

@media print {
  .mast .menu, .lang, .foot, .skip { display: none; }
  .mast { background: none; color: var(--ink); }
  .mast a { color: var(--ink); }
  body { font-size: 11pt; }
}
.podcast .btn-light, .podcast .btn-light:hover { color: var(--pouvoirs); }
@media (max-width: 34rem) { .mono { display: none; } }
