/*
Theme Name:   Au Fil des Saisons Child
Theme URI:    https://embracingeveryseaso.org
Description:  Blog de voyage saisonnier francais - theme enfant GeneratePress. Prototype Almanach Saisonnier / bandes de saison plein cadre. Domine + Onest ; palette brume froide / encre / bleu givre, marqueurs de saison.
Author:       Au Fil des Saisons
Template:     generatepress
Version:      1.0.0
Text Domain:  embracingeveryseaso-child
*/

/* ============================================================
   AU FIL DES SAISONS - DESIGN SYSTEM
   Almanach saisonnier : hero split incarne, bande de saisons
   bord a bord sans gouttiere, calendrier 12 mois, mosaique
   asymetrique, bandes sombres givre profond.
   Aucun motif postal, aucun filet or, aucun angle arrondi.
   ============================================================ */

:root {
  /* palette almanach (semantique) */
  --brume:#ECEDE8; --givre-clair:#E1E5E0; --card:#F5F6F3;
  --ink:#242A25; --muted:#68706A; --line:#CBD2CC;
  --givre:#3E6B7A; --givre-deep:#2F5462; --givre-soft:#9FC0CE;
  --dark:#20404E; --dark-deep:#16303C;

  /* marqueurs de saison (etiquettes et barres uniquement, jamais d'action) */
  --s-printemps:#5F8A57; --s-ete:#B8862F; --s-automne:#A85E33; --s-hiver:#8FA9B4;

  /* alias legacy (composants single / archive du socle) */
  --color-primary:#3E6B7A;
  --color-primary-dark:#2F5462;
  --color-primary-soft:#9FC0CE;
  --color-bg:#ECEDE8;
  --color-bg-deep:#E1E5E0;
  --color-accent:#3E6B7A;
  --color-accent-soft:#9FC0CE;
  --color-accent-deep:#2F5462;
  --color-charcoal:#2C332D;
  --color-ink:#242A25;
  --color-muted:#68706A;
  --color-line:#CBD2CC;
  --color-white:#F5F6F3;

  --font-serif:'Domine', Georgia, 'Times New Roman', serif;
  --font-sans:'Onest', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w:1280px;
  --max-w-wide:1440px;
  --max-w-narrow:760px;
  /* un seul systeme de forme : angles francs (almanach imprime) */
  --radius-sm:0; --radius-md:0; --radius-lg:0; --radius-xl:0;
}

/* ============================================================ GLOBAL */
body, .entry-content, .widget {
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background: var(--color-bg);
  font-size: 17px; line-height: 1.7;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em; line-height: 1.15;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
a { color: var(--givre); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--givre-deep); }
p { margin: 0 0 1.2em; }
img { max-width: 100%; height: auto; }
figure { margin: 2em 0; }
figcaption { font-size: 0.92rem; color: var(--color-muted); margin-top: 0.5rem; font-style: italic; text-align: center; }

/* etiquette (kicker) - alias tb-eyebrow pour single / archive */
.alm-kicker, .tb-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--givre); font-weight: 600;
}
.alm-kicker.on-dark, .tb-eyebrow.on-dark { color: var(--givre-soft); }
.alm-meta, .alm-date { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); }

/* occupancy fallback (jamais de trou d'image) */
.alm-ph { display:block; width:100%; height:100%; min-height:190px;
  background: linear-gradient(135deg, var(--givre-clair), var(--card)); }

/* ============================================================ BANDEAU-TITRE */
.alm-mast { background: var(--brume); border-bottom: 1px solid var(--line); padding: 1.5rem 0 1.3rem; }
.alm-mast-in { max-width: var(--max-w); margin: 0 auto; padding: 0 1.8rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.alm-np { font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.55rem); letter-spacing: -0.01em; color: var(--ink); display: block; }
.alm-np:hover { color: var(--givre-deep); }
.alm-np-tag { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 0.45rem; }
.alm-now { text-align: right; }
.alm-now-bar { height: 4px; width: 56px; display: block; margin-left: auto; margin-bottom: 0.5rem; background: var(--givre); }
.alm-now-lbl { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.alm-now-val { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
@media (max-width: 560px) {
  .alm-now { text-align: left; }
  .alm-now-bar { margin-left: 0; }
}

/* ============================================================ LAYOUT / NAV */
.alm-main { display: block !important; width: 100%; }
.alm-main > * { width: 100%; }

.alm-nav { background: var(--card); border-bottom: 1px solid var(--line); width: 100%; }
.alm-nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.6rem; }
.alm-nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.alm-nav-menu li { list-style: none; margin: 0; padding: 0; }
.alm-nav-menu li a {
  display: block; padding: 0.9rem 0.85rem;
  font-family: var(--font-sans); font-size: 0.71rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.alm-nav-menu li a:hover { color: var(--givre); border-bottom-color: var(--givre); }
.alm-nav-menu li.current-menu-item > a { color: var(--givre); border-bottom-color: var(--givre); }
@media (max-width: 640px) { .alm-nav-menu li a { padding: 0.7rem 0.6rem; font-size: 0.66rem; } }

/* ============================================================ COQUE DE SECTION */
.alm-sec { padding: 5rem 0; }
.alm-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.8rem; }
.alm-sec-head { margin-bottom: 2.4rem; max-width: 62ch; }
.alm-sec-head .alm-kicker { display: block; margin-bottom: 0.6rem; }
.alm-sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.alm-sec-head p { color: var(--muted); margin: 0.7rem 0 0; font-size: 1.02rem; }
.alm-btn { display: inline-block; background: var(--givre); color: #fff;
  padding: 0.85rem 1.6rem; font-family: var(--font-sans);
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  border: 0; transition: background 0.18s; }
.alm-btn:hover { background: var(--givre-deep); color: #fff; }
.alm-more { display: inline-block; font-family: var(--font-sans); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--givre); border-bottom: 1px solid var(--givre); padding-bottom: 2px; }

/* ============================================================ 1. HERO SPLIT INCARNE */
.alm-hero { padding: 3.4rem 0 3.2rem; }
.alm-hero-in { display: grid; grid-template-columns: 430px 1fr; gap: 4rem; align-items: center; }
.alm-hero-media { position: relative; padding-bottom: 2.6rem; padding-right: 2.6rem; }
.alm-hero-media .p1 { display: block; border: 10px solid var(--card); box-shadow: 0 20px 44px rgba(36,42,37,.14); }
.alm-hero-media .p1 img, .alm-hero-media .p1 .alm-ph { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.alm-hero-media .p2 { position: absolute; right: 0; bottom: 0; width: 52%;
  border: 8px solid var(--card); box-shadow: 0 16px 34px rgba(36,42,37,.16); }
.alm-hero-media .p2 img, .alm-hero-media .p2 .alm-ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; min-height: 0; }
.alm-hero-copy h1 { font-size: clamp(2.1rem, 3.9vw, 3.2rem); margin: 0.9rem 0 1.1rem; }
.alm-hero-copy p { color: var(--muted); font-size: 1.06rem; max-width: 46ch; margin: 0 0 1.6rem; }
.alm-hero-sign { display: block; font-family: var(--font-serif); font-size: 1rem; color: var(--ink);
  margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); max-width: 46ch; }
.alm-hero-sign span { display: block; font-family: var(--font-sans); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem; }

/* ============================================================ 2. BANDE DES SAISONS (bord a bord) */
.alm-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; width: 100%; }
.alm-band a { position: relative; display: block; overflow: hidden; background: var(--dark); color: #fff; }
.alm-band img, .alm-band .alm-ph { width: 100%; height: clamp(240px, 26vw, 360px); object-fit: cover; transition: transform 0.5s; }
.alm-band a:hover img { transform: scale(1.05); }
.alm-band a::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,48,60,0) 38%, rgba(22,48,60,.82) 100%); }
.alm-band-lbl { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; z-index: 2; }
.alm-band-bar { height: 4px; width: 40px; display: block; margin-bottom: 0.6rem; background: var(--givre); }
.alm-band-lbl h3 { color: #fff; font-size: 1.24rem; font-weight: 600; }
.alm-band-lbl em { display: block; font-style: normal; font-family: var(--font-sans);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.78); margin-top: 0.25rem; }

/* ============================================================ 3. A LA UNE (grande + trio) */
.alm-lead { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.6rem; align-items: center;
  border-bottom: 1px solid var(--line); padding-bottom: 2.8rem; }
.alm-lead-img { display: block; overflow: hidden; }
.alm-lead-img img, .alm-lead-img .alm-ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.5s; }
.alm-lead:hover .alm-lead-img img { transform: scale(1.03); }
.alm-lead h3 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); margin: 0.7rem 0 0.8rem; }
.alm-lead h3 a { color: inherit; }
.alm-lead h3 a:hover { color: var(--givre-deep); }
.alm-lead p { color: var(--muted); margin: 0 0 1.1rem; }
.alm-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.8rem; }
.alm-trio a { display: block; color: inherit; }
.alm-trio .alm-ph-box { display: block; overflow: hidden; }
.alm-trio img, .alm-trio .alm-ph { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform 0.5s; }
.alm-trio a:hover img { transform: scale(1.04); }
.alm-trio h4 { font-family: var(--font-serif); font-size: 1.2rem; margin: 0.7rem 0 0.35rem; line-height: 1.2; }
.alm-trio a:hover h4 { color: var(--givre-deep); }
.alm-trio .alm-meta { display: block; }
.alm-trio .alm-date { display: block; margin-top: 0.6rem; }

/* ============================================================ 4. CALENDRIER QUAND PARTIR */
.alm-cal { background: var(--givre-clair); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5rem 0; }
.alm-cal-in { display: grid; grid-template-columns: 250px 1fr; gap: 3rem; align-items: start; }
.alm-cal-rail h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0.6rem 0 0.9rem; }
.alm-cal-rail p { color: var(--muted); font-size: 0.96rem; margin: 0 0 1.6rem; }
.alm-cal-rail ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.alm-cal-rail li { margin: 0; }
.alm-cal-rail li a { display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 0;
  border-bottom: 1px solid var(--line); font-family: var(--font-serif); font-size: 1.06rem;
  color: var(--ink); font-weight: 500; }
.alm-cal-rail li a:hover { color: var(--givre-deep); }
.alm-cal-rail li i { width: 14px; height: 14px; display: block; flex: none; }
.alm-cal-rail li b { margin-left: auto; font-family: var(--font-sans); font-size: 0.68rem;
  letter-spacing: 0.1em; color: var(--muted); font-weight: 500; text-transform: uppercase; }
.alm-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.alm-mo { display: block; background: var(--card); border: 1px solid var(--line); color: inherit; }
.alm-mo img, .alm-mo .alm-ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; min-height: 0; }
.alm-mo-b { display: block; padding: 0.75rem 0.85rem 0.95rem; }
.alm-mo-b i { display: block; height: 3px; width: 26px; margin-bottom: 0.45rem; }
.alm-mo-b strong { font-family: var(--font-serif); font-size: 1.02rem; font-weight: 600; display: block; }
.alm-mo-b span { font-size: 0.78rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 0.2rem; }
.alm-mo:hover { border-color: var(--givre); }
.alm-mo:hover strong { color: var(--givre-deep); }
.alm-mo.is-now { border-color: var(--givre); box-shadow: inset 0 0 0 1px var(--givre); }

/* ============================================================ 5. CITATION (bande sombre) */
.alm-quote { background: var(--dark); color: #fff; padding: 5.4rem 1.8rem; text-align: center; }
.alm-quote blockquote { max-width: 920px; margin: 1.2rem auto; border: 0; background: transparent; padding: 0;
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.38; color: #fff; font-weight: 500; }
.alm-quote .alm-sig { font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--givre-soft); font-weight: 600; }

/* ============================================================ 6. MOSAIQUE */
.alm-mos { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(110px, auto); gap: 1.5rem; }
.alm-mi { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  overflow: hidden; color: inherit; transition: transform 0.25s, box-shadow 0.25s; }
.alm-mi:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(36,42,37,.12); }
.alm-mi .alm-mi-ph { display: block; overflow: hidden; }
.alm-mi img, .alm-mi .alm-ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.4s; }
.alm-mi:hover img { transform: scale(1.04); }
.alm-mi.big { grid-row: span 2; }
.alm-mi.big img, .alm-mi.big .alm-ph { aspect-ratio: 4/5; }
.alm-mi.tall img, .alm-mi.tall .alm-ph { aspect-ratio: 3/4; }
.alm-mi.wide img, .alm-mi.wide .alm-ph { aspect-ratio: 16/9; }
.alm-mi-b { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.alm-mi-b h3 { font-size: 1.16rem; line-height: 1.2; }
.alm-mi.big .alm-mi-b h3 { font-size: 1.6rem; }
.alm-mi-b .alm-ex { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.alm-mi-b .alm-date { margin-top: auto; }
.alm-mi:hover h3 { color: var(--givre-deep); }

/* ============================================================ 7. PAR RUBRIQUE (bande sombre) */
.alm-rub { background: var(--dark-deep); color: #fff; padding: 5rem 0; }
.alm-rub h2 { color: #fff; }
.alm-rub .alm-sec-head p { color: rgba(255,255,255,.62); }
.alm-rub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.alm-rub-c { display: block; color: #fff; }
.alm-rub-c .alm-ph-box { display: block; overflow: hidden; }
.alm-rub-c img, .alm-rub-c .alm-ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.5s; }
.alm-rub-c:hover img { transform: scale(1.05); }
.alm-rub-c strong { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 600; display: block; margin-top: 0.7rem; }
.alm-rub-c span { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.55); display: block; margin-top: 0.25rem; }
.alm-rub-c:hover strong { color: var(--givre-soft); }

/* ============================================================ 8. INFOLETTRE (split photo) */
.alm-news { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: var(--card); border-top: 1px solid var(--line); }
.alm-news-img img, .alm-news-img .alm-ph { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.alm-news-body { padding: 4rem 3.4rem; }
.alm-news-body h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin: 0.6rem 0 0.8rem; }
.alm-news-body p { color: var(--muted); max-width: 48ch; margin: 0 0 1.5rem; }
.alm-nform { display: flex; gap: 0.6rem; flex-wrap: wrap; max-width: 460px; }
.alm-nform input { flex: 1 1 220px; padding: 0.85rem 1.1rem; border: 1px solid var(--line);
  background: var(--brume); font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink); }
.alm-nform input::placeholder { color: #6E756F; }
.alm-nform button { background: var(--givre); color: #fff; border: 0; padding: 0.85rem 1.6rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer; transition: background 0.18s; }
.alm-nform button:hover { background: var(--givre-deep); }
.alm-note { font-size: 0.74rem; color: var(--muted); margin-top: 0.9rem; }
.alm-note a { text-decoration: underline; }

/* ============================================================ PIED DE PAGE */
.site-footer { background: var(--dark-deep); color: #fff; font-family: var(--font-sans); padding: 3.8rem 1.8rem 1.6rem; }
.alm-footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.4rem; }
.alm-footer-brand { font-family: var(--font-serif); font-weight: 700; font-size: 1.6rem; color: #fff; margin-bottom: 0.5rem; }
.alm-footer-blurb { font-size: 0.9rem; color: rgba(255,255,255,.66); line-height: 1.6; margin: 0.4rem 0 1rem; max-width: 40ch; }
.alm-footer-copy { font-size: 0.8rem; color: rgba(255,255,255,.45); margin: 0; }
.site-footer h5 { font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--givre-soft); margin: 0 0 0.9rem; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer ul a { color: #fff; font-size: 0.92rem; text-decoration: none; }
.site-footer ul a:hover { color: var(--givre-soft); }
.alm-footer-rgpd { max-width: var(--max-w); margin: 2.4rem auto 0; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.14); font-size: 0.76rem; color: rgba(255,255,255,.55);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.alm-footer-rgpd a { color: rgba(255,255,255,.78); text-decoration: underline; }

/* ============================================================ ARTICLE */
.single .entry-content, .page .entry-content {
  max-width: var(--max-w-narrow); margin: 0 auto; font-size: 18px; line-height: 1.8;
}
.single .entry-content > p:first-of-type { font-size: 1.16rem; line-height: 1.68; color: var(--ink); }
.tb-post-header { max-width: var(--max-w-narrow); margin: 2.5rem auto 1.5rem; padding: 0 1.8rem; }
.tb-breadcrumb { font-family: var(--font-sans); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 1rem; }
.tb-breadcrumb a { color: var(--givre); text-decoration: none; }
.tb-breadcrumb a:hover { color: var(--givre-deep); }
.tb-post-cat { display: inline-block; font-family: var(--font-sans); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: var(--givre);
  padding: 0.35rem 0.85rem; text-decoration: none; font-weight: 600; margin-bottom: 1rem; }
.tb-post-cat:hover { background: var(--givre-deep); color: #fff; }
.tb-post-title { font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.13; margin: 0.3rem 0 1.2rem; }
.tb-post-meta { font-family: var(--font-sans); font-size: 0.88rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; }
.tb-post-meta strong { color: var(--color-charcoal); font-weight: 600; }
.tb-post-meta a { color: var(--givre); }
.tb-post-cover { max-width: var(--max-w-wide); margin: 2rem auto 3rem; padding: 0 1.8rem; }
.tb-post-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.ftc-disclosure { max-width: var(--max-w-narrow); margin: 0 auto 2.5rem; background: var(--givre-clair);
  border-left: 4px solid var(--givre); padding: 1rem 1.25rem;
  font-size: 0.94rem; color: var(--color-charcoal); }
.ftc-disclosure p { margin: 0; }
.ftc-disclosure a { color: var(--givre-deep); text-decoration: underline; }
.entry-content .ftc-disclosure { margin-left: 0; margin-right: 0; }

.single .entry-content blockquote { border-left: 4px solid var(--givre); background: var(--givre-clair);
  font-family: var(--font-serif); font-style: normal; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.45;
  color: var(--ink); padding: 1.6rem 1.8rem; margin: 2.5rem 0; border-radius: 0; }
.entry-content img { border-radius: 0; }

.tb-author-bio { max-width: var(--max-w-narrow); margin: 4rem auto 2rem; padding: 2rem;
  background: var(--card); border: 1px solid var(--line);
  display: grid; grid-template-columns: 96px 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 540px) { .tb-author-bio { grid-template-columns: 1fr; text-align: center; } }
.tb-author-avatar { width: 96px; height: 96px; background: var(--givre); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 2rem; }
@media (max-width: 540px) { .tb-author-avatar { margin: 0 auto; } }
.tb-author-bio .tb-eyebrow { margin-bottom: 0.4rem; display: block; }
.tb-author-bio h4 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.tb-author-bio p { font-size: 0.96rem; color: var(--muted); margin: 0 0 0.4rem; line-height: 1.6; }
.tb-author-bio a { font-family: var(--font-sans); font-size: 0.85rem; color: var(--givre-deep); }

.tb-related { max-width: var(--max-w); margin: 4rem auto 3rem; padding: 0 1.8rem; }
.tb-related h3 { font-size: 1.5rem; margin: 0 0 1.5rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.tb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 700px) { .tb-related-grid { grid-template-columns: 1fr; } }
.tb-related-card { text-decoration: none; color: inherit; display: block; }
.tb-related-card .tb-related-cover { aspect-ratio: 4/3; overflow: hidden; background: var(--givre-clair); margin-bottom: 0.8rem; }
.tb-related-cover img { width: 100%; height: 100%; object-fit: cover; }
.tb-related-card .tb-related-title { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.3; margin: 0; }
.tb-related-card:hover .tb-related-title { color: var(--givre-deep); }

/* ============================================================ ARCHIVE */
.tb-archive-hero { background: var(--givre-clair); padding: 4rem 1.8rem 3.5rem; border-bottom: 1px solid var(--line); }
.tb-archive-hero-in { max-width: var(--max-w); margin: 0 auto; }
.tb-archive-hero .tb-eyebrow { margin-bottom: 0.8rem; display: block; }
.tb-archive-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 0 0 0.6rem; }
.tb-archive-hero p { max-width: 66ch; margin: 0; font-size: 1.02rem; color: var(--muted); line-height: 1.6; }
.tb-archive-count { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--givre); font-weight: 600; margin-bottom: 1rem; }
.tb-archive-feature { max-width: var(--max-w); margin: 3rem auto 0; padding: 0 1.8rem; }
.tb-archive-feature .tb-spread { padding: 0 0 3rem; border-bottom: 1px solid var(--line); }
.tb-spread { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 800px) { .tb-spread { grid-template-columns: 1fr; gap: 2rem; } }
.tb-spread-image { display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--givre-clair); }
.tb-spread-image img { width: 100%; height: 100%; object-fit: cover; }
.tb-spread-text .tb-eyebrow { margin-bottom: 0.8rem; display: block; }
.tb-spread-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.18; margin: 0 0 1rem; }
.tb-spread-text h3 a { color: inherit; }
.tb-spread-text h3 a:hover { color: var(--givre-deep); }
.tb-spread-excerpt { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.2rem; line-height: 1.65; }
.tb-spread-read { display: inline-block; font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--givre); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--givre); padding-bottom: 2px; }
.tb-archive-grid { max-width: var(--max-w); margin: 3rem auto; padding: 0 1.8rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 900px) { .tb-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tb-archive-grid { grid-template-columns: 1fr; } }
.tb-archive-card { text-decoration: none; color: inherit; display: block; }
.tb-archive-card .tb-archive-cover { aspect-ratio: 3/2; overflow: hidden; background: var(--givre-clair); margin-bottom: 1rem; }
.tb-archive-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.tb-archive-card:hover .tb-archive-cover img { transform: scale(1.04); }
.tb-archive-card .tb-archive-meta { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.tb-archive-card .tb-archive-title { font-family: var(--font-serif); font-size: 1.28rem; line-height: 1.3; margin: 0 0 0.5rem; }
.tb-archive-card:hover .tb-archive-title { color: var(--givre-deep); }
.tb-archive-card .tb-archive-excerpt { font-size: 0.95rem; color: var(--muted); line-height: 1.55; }
.tb-archive-empty { max-width: 700px; margin: 4rem auto; text-align: center; padding: 0 1.8rem; color: var(--muted); }
.tb-archive-pagination { max-width: var(--max-w); margin: 2rem auto 4rem; padding: 0 1.8rem; text-align: center; }
.tb-archive-pagination a, .tb-archive-pagination .page-numbers { color: var(--givre); }
.tb-archive-pagination .current { color: var(--givre-deep); font-weight: 700; }


/* ============================================================ INFOLETTRE EN PIED D'ARTICLE */
.alm-post-news { background: var(--givre-clair); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 3.6rem 1.8rem; }
.alm-post-news-in { max-width: var(--max-w-narrow); margin: 0 auto; }
.alm-post-news .tb-eyebrow { display: block; margin-bottom: 0.6rem; }
.alm-post-news h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 0.7rem; }
.alm-post-news p { color: var(--muted); max-width: 52ch; margin: 0 0 1.4rem; }

/* accessibilite : libelles reserves aux lecteurs d'ecran */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============================================================ BARRE DE PROGRESSION */
@supports (animation-timeline: scroll()) {
  .tb-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%;
    background: var(--givre); transform-origin: left; transform: scaleX(0);
    animation: tb-progress linear; animation-timeline: scroll(root block); z-index: 9999; }
  @keyframes tb-progress { to { transform: scaleX(1); } }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1000px) {
  .alm-hero-in { grid-template-columns: 1fr; gap: 2.6rem; }
  .alm-hero-media { max-width: 440px; padding-right: 2rem; padding-bottom: 2.2rem; }
  .alm-band { grid-template-columns: repeat(2, 1fr); }
  .alm-band a:last-child { grid-column: span 2; }
  .alm-cal-in { grid-template-columns: 1fr; gap: 2.2rem; }
  .alm-months { grid-template-columns: repeat(3, 1fr); }
  .alm-rub-grid { grid-template-columns: repeat(2, 1fr); }
  .alm-lead { grid-template-columns: 1fr; gap: 1.6rem; }
  .alm-trio { grid-template-columns: 1fr; gap: 1.8rem; }
  .alm-mos { grid-template-columns: repeat(2, 1fr); }
  .alm-mi.big { grid-row: auto; }
  .alm-news { grid-template-columns: 1fr; }
  .alm-news-body { padding: 2.6rem 1.8rem; }
  .alm-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .alm-band { grid-template-columns: 1fr; }
  .alm-band a:last-child { grid-column: auto; }
  .alm-months { grid-template-columns: repeat(2, 1fr); }
  .alm-rub-grid { grid-template-columns: 1fr; }
  .alm-mos { grid-template-columns: 1fr; }
  .alm-sec { padding: 3.4rem 0; }
  .alm-cal { padding: 3.4rem 0; }
  .alm-rub { padding: 3.4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
