/* ============================================================
   Thibault Gruaz Theme — main.css
   Palette : #fcb900 jaune | #1a1a1a noir | #f5f5f3 gris | #1D6E40 vert
   Typo    : Capital SemiBold (titres) + DM Sans (corps)
   ============================================================ */

/* ─── FONT FACE ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Capital';
  src: url('../fonts/Capital-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
  --tg-yellow:     #fcb900;
  --tg-yellow-lt:  #fff8e1;
  --tg-black:      #1a1a1a;
  --tg-grey-600:   #666666;
  --tg-grey-300:   #d0d0d0;
  --tg-grey-100:   #f5f5f3;
  --tg-white:      #ffffff;
  --tg-green:      #1D6E40;
  --tg-green-lt:   #e8f5ee;
  --tg-pill:       999px;
  --tg-radius:     4px;
  --tg-font-body:  'DM Sans', sans-serif;
  --tg-font-title: 'Capital', 'DM Sans', sans-serif;
  --tg-max-width:  960px;
  --tg-border:     1px solid var(--tg-grey-300);
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--tg-font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--tg-black);
  background: var(--tg-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tg-green); text-decoration: none; }
a:hover { color: var(--tg-yellow); }

/* ─── CONTENEUR ─────────────────────────────────────────────── */
.tg-wrap {
  max-width: var(--tg-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── TYPOGRAPHIE ───────────────────────────────────────────── */
h1, h2, h3, h4, .tg-cap {
  font-family: var(--tg-font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--tg-black);
}
h1 { font-size: clamp(24px, 4vw, 32px); }
h2 { font-size: clamp(18px, 3vw, 22px); }
h3 { font-size: 16px; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.tg-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tg-yellow);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}
.tg-eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1.5px;
  background: var(--tg-yellow);
  flex-shrink: 0;
}

/* ─── BOUTONS ───────────────────────────────────────────────── */
.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tg-font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--tg-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1;
}
.tg-btn--yellow   { background: var(--tg-yellow); color: var(--tg-black); }
.tg-btn--yellow:hover { background: #e0a600; color: var(--tg-black); }
.tg-btn--outline  { background: transparent; color: var(--tg-black); border: 1.5px solid var(--tg-grey-300); }
.tg-btn--outline:hover  { border-color: var(--tg-black); color: var(--tg-black); }
.tg-btn--white    { background: var(--tg-white); color: var(--tg-black); border: 1.5px solid var(--tg-grey-300); }
.tg-btn--white:hover    { border-color: var(--tg-black); color: var(--tg-black); }
.tg-btn--sm       { font-size: 11px; padding: 5px 14px; }

/* ─── NAVIGATION ────────────────────────────────────────────── */
.tg-nav {
  background: var(--tg-white);
  border-bottom: var(--tg-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.tg-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--tg-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.tg-nav__logo {
  font-family: var(--tg-font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--tg-black);
  text-decoration: none;
}
.tg-nav__logo:hover { color: var(--tg-black); }
.tg-nav__links {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
}
.tg-nav__links a {
  font-size: 13px;
  color: var(--tg-grey-600);
  padding: 5px 13px;
  border-radius: var(--tg-pill);
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  display: block;
}
.tg-nav__links a:hover {
  color: var(--tg-black);
  background: var(--tg-grey-100);
}
.tg-nav__links .current-menu-item > a,
.tg-nav__links a.active {
  color: var(--tg-black);
  background: var(--tg-yellow);
  border-color: var(--tg-yellow);
  font-weight: 500;
}
/* Entrée Vaud 2027 toujours en jaune sauf si active */
.tg-nav__links .menu-item-vaud2027 > a {
  font-weight: 500;
}

/* ─── SECTIONS ──────────────────────────────────────────────── */
.tg-section {
  padding: 3rem 0;
  border-bottom: var(--tg-border);
  background: var(--tg-white);
}
.tg-section--alt { background: var(--tg-grey-100); }
.tg-section__header { margin-bottom: 1.75rem; }
.tg-section__title  { margin-bottom: 0.4rem; }
.tg-section__sub    {
  font-size: 13px;
  color: var(--tg-grey-600);
  line-height: 1.7;
  max-width: 540px;
}

/* ─── HERO ──────────────────────────────────────────────────── */
.tg-hero {
  display: flex;
  min-height: 340px;
  border-bottom: var(--tg-border);
  overflow: hidden;
  background: var(--tg-white);
}
.tg-hero__photo {
  width: 32%;
  flex-shrink: 0;
  background: var(--tg-grey-100);
  border-right: var(--tg-border);
  overflow: hidden;
}
.tg-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.tg-hero__photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tg-grey-300);
  font-size: 11px;
  text-align: center;
}
.tg-hero__content {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tg-hero__h1  { font-size: clamp(24px, 4vw, 32px); margin-bottom: 1.25rem; }
.tg-hero__h1 em { font-style: normal; color: var(--tg-yellow); }
.tg-hero__sub {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--tg-grey-600);
  margin-bottom: 2rem;
  max-width: 400px;
}
.tg-hero__btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── SIGNATURE STRIP (mode permanent) ─────────────────────── */
.tg-sig-strip {
  display: flex;
  border-bottom: var(--tg-border);
}
.tg-sig__item {
  flex: 1;
  padding: 1.25rem 1.5rem;
  border-right: var(--tg-border);
  transition: background 0.15s;
}
.tg-sig__item:last-child { border-right: none; }
.tg-sig__item:hover { background: var(--tg-grey-100); }
.tg-sig__word {
  font-family: var(--tg-font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--tg-black);
  margin-bottom: 4px;
  transition: color 0.15s;
}
.tg-sig__item:hover .tg-sig__word { color: var(--tg-yellow); }
.tg-sig__desc { font-size: 11px; color: var(--tg-grey-600); line-height: 1.5; }

/* ─── PRIORITÉS VAUD 2027 ────────────────────────────────────── */
.tg-prios {
  border: var(--tg-border);
  border-radius: var(--tg-radius);
  overflow: hidden;
}
.tg-prio {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: var(--tg-border);
  background: var(--tg-white);
  transition: background 0.15s;
}
.tg-prio:last-child { border-bottom: none; }
.tg-prio:hover { background: var(--tg-grey-100); }
.tg-prio__num {
  font-family: var(--tg-font-title);
  font-size: 22px;
  font-weight: 600;
  color: var(--tg-yellow);
  opacity: 0.5;
  min-width: 30px;
  line-height: 1;
  margin-top: 2px;
}
.tg-prio__title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.tg-prio__text  { font-size: 12px; color: var(--tg-grey-600); line-height: 1.65; margin-bottom: 10px; }

/* ─── GRILLE D'ARTICLES ─────────────────────────────────────── */
.tg-art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--tg-grey-300);
  border: var(--tg-border);
  border-radius: var(--tg-radius);
  overflow: hidden;
}
.tg-art-card {
  background: var(--tg-white);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}
.tg-art-card:hover { background: var(--tg-grey-100); }
.tg-art-card__tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tg-green);
  margin-bottom: 0.6rem;
}
.tg-art-card__title {
  font-family: var(--tg-font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--tg-black);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  flex: 1;
}
.tg-art-card__excerpt { font-size: 11px; color: var(--tg-grey-600); line-height: 1.6; margin-bottom: 0.75rem; }
.tg-art-card__footer  { display: flex; justify-content: space-between; align-items: center; }
.tg-art-card__date    { font-size: 10px; color: var(--tg-grey-300); }
.tg-art-footer { margin-top: 1.25rem; display: flex; justify-content: flex-end; }

/* ─── VALEURS ───────────────────────────────────────────────── */
.tg-val-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--tg-grey-300);
  border: var(--tg-border);
  border-radius: var(--tg-radius);
  overflow: hidden;
}
.tg-val-card {
  background: var(--tg-white);
  padding: 1.25rem;
  border-top: 2px solid var(--tg-yellow);
}
.tg-val-card__name {
  font-family: var(--tg-font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--tg-black);
  margin-bottom: 0.5rem;
}
.tg-val-card__text { font-size: 12px; color: var(--tg-grey-600); line-height: 1.65; }

/* ─── TIMELINE PARCOURS ─────────────────────────────────────── */
.tg-timeline { display: flex; flex-direction: column; }
.tg-tl-item {
  display: flex;
  gap: 1.25rem;
  padding: 0.9rem 0;
  border-left: 1px solid var(--tg-grey-300);
  margin-left: 10px;
  padding-left: 1.25rem;
  position: relative;
}
.tg-tl-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 1.2rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tg-yellow);
}
.tg-tl-item__year {
  font-family: var(--tg-font-title);
  font-size: 11px;
  font-weight: 600;
  color: var(--tg-yellow);
  min-width: 36px;
}
.tg-tl-item__text { font-size: 13px; color: var(--tg-grey-600); line-height: 1.5; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.tg-footer { background: var(--tg-black); padding: 2.5rem 0 1.75rem; }
.tg-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.tg-footer__col-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  margin-bottom: 1rem;
}
.tg-footer__logo {
  font-family: var(--tg-font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--tg-yellow);
  margin-bottom: 0.5rem;
}
.tg-footer__tagline { font-size: 12px; color: #666; line-height: 1.6; margin-bottom: 1.25rem; }
.tg-footer__socials { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-footer__soc {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--tg-pill);
  background: transparent;
  color: #888;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.tg-footer__soc:hover { border-color: var(--tg-yellow); color: var(--tg-yellow); }

/* ─── FORMULAIRE CONTACT FOOTER ─────────────────────────────── */
.tg-contact-form { display: flex; flex-direction: column; gap: 8px; }
.tg-contact-form .tg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tg-input {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: var(--tg-pill);
  padding: 8px 16px;
  font-size: 12px;
  color: #ccc;
  font-family: var(--tg-font-body);
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
.tg-input:focus { border-color: var(--tg-yellow); }
.tg-input::placeholder { color: #444; }
textarea.tg-input {
  border-radius: 12px;
  resize: none;
  height: 80px;
  padding: 10px 16px;
  line-height: 1.5;
}
.tg-footer__bottom {
  border-top: 1px solid #1e1e1e;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tg-footer__copy  { font-size: 11px; color: #3a3a3a; }
.tg-footer__legal { font-size: 11px; color: #3a3a3a; }
.tg-footer__legal a { color: #3a3a3a; }
.tg-footer__legal a:hover { color: #666; }

/* ─── SINGLE ARTICLE ────────────────────────────────────────── */
.tg-article { max-width: 720px; margin: 0 auto; padding: 3rem 2rem; }
.tg-article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  font-size: 12px;
  color: var(--tg-grey-600);
}
.tg-article__cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tg-green);
  background: var(--tg-green-lt);
  padding: 3px 10px;
  border-radius: var(--tg-pill);
}
.tg-article__title { font-size: clamp(22px, 4vw, 28px); margin-bottom: 1.5rem; }
.tg-article__content { font-size: 15px; line-height: 1.8; color: #333; }
.tg-article__content h2 { font-size: 18px; margin: 2rem 0 0.75rem; }
.tg-article__content h3 { font-size: 16px; margin: 1.5rem 0 0.5rem; }
.tg-article__content p  { margin-bottom: 1.25rem; }
.tg-article__content blockquote {
  border-left: 3px solid var(--tg-yellow);
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 15px;
  color: var(--tg-grey-600);
  font-style: italic;
  background: var(--tg-grey-100);
}
.tg-article__content a { color: var(--tg-green); border-bottom: 1px solid currentColor; }
.tg-article__content a:hover { color: var(--tg-yellow); }
.tg-article__back { margin-top: 3rem; padding-top: 2rem; border-top: var(--tg-border); }

/* ─── ARCHIVE ARTICLES ──────────────────────────────────────── */
.tg-archive { padding: 3rem 0; }
.tg-archive__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.tg-archive__filter {
  font-size: 12px;
  padding: 5px 16px;
  border-radius: var(--tg-pill);
  border: 1px solid var(--tg-grey-300);
  background: var(--tg-white);
  color: var(--tg-grey-600);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.tg-archive__filter:hover,
.tg-archive__filter.active {
  background: var(--tg-yellow);
  border-color: var(--tg-yellow);
  color: var(--tg-black);
}
.tg-archive__list { display: flex; flex-direction: column; gap: 0; border: var(--tg-border); border-radius: var(--tg-radius); overflow: hidden; }
.tg-archive__item {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: var(--tg-border);
  background: var(--tg-white);
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.tg-archive__item:last-child { border-bottom: none; }
.tg-archive__item:hover { background: var(--tg-grey-100); }
.tg-archive__item-date { font-size: 11px; color: var(--tg-grey-300); min-width: 70px; margin-top: 2px; }
.tg-archive__item-body { flex: 1; }
.tg-archive__item-title { font-family: var(--tg-font-title); font-size: 14px; font-weight: 600; color: var(--tg-black); margin-bottom: 4px; }
.tg-archive__item-excerpt { font-size: 12px; color: var(--tg-grey-600); line-height: 1.6; }
.tg-archive__item-cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tg-green); min-width: 80px; text-align: right; margin-top: 2px; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tg-hero { flex-direction: column; }
  .tg-hero__photo { width: 100%; height: 220px; }
  .tg-hero__photo-placeholder { min-height: 220px; }
  .tg-hero__content { padding: 2rem 1.5rem; }
  .tg-nav__links { display: none; }
  .tg-art-grid { grid-template-columns: 1fr; }
  .tg-val-grid { grid-template-columns: 1fr; }
  .tg-sig-strip { flex-direction: column; }
  .tg-footer__grid { grid-template-columns: 1fr; }
  .tg-contact-form .tg-row { grid-template-columns: 1fr; }
  .tg-archive__item { flex-direction: column; gap: 0.5rem; }
}

/* ─── FOOTER FORM — contraste amélioré ─────────────────────────────────── */
.tg-input {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: var(--tg-pill);
  padding: 9px 16px;
  font-size: 13px;
  color: #e0e0e0;
  font-family: var(--tg-font-body);
  outline: none;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.tg-input:focus {
  border-color: var(--tg-yellow);
  background: #222;
}
.tg-input::placeholder { color: #666; }
textarea.tg-input {
  border-radius: 12px;
  resize: vertical;
  min-height: 80px;
  padding: 10px 16px;
  line-height: 1.6;
}

/* ─── SECTION IMAGE + TEXTE 1/3 - 2/3 ──────────────────────────────────── */
.tg-img-text {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: center;
}
.tg-img-text--reverse {
  direction: rtl;
}
.tg-img-text--reverse > * {
  direction: ltr;
}
.tg-img-text__img {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.tg-img-text__body { }

@media (max-width: 640px) {
  .tg-img-text { grid-template-columns: 1fr; }
  .tg-img-text--reverse { direction: ltr; }
  .tg-img-text__img { aspect-ratio: 16/9; }
}

/* ═══════════════════════════════════════════════════════════════
   ARCHIVE — Liste des articles
   ═══════════════════════════════════════════════════════════════ */

.tg-archive__filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 0;
  border-bottom: 1px solid var(--tg-grey-300);
  margin-bottom: 0;
}
.tg-archive__filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--tg-pill) var(--tg-pill) 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--tg-grey-600);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  position: relative;
  bottom: -1px;
}
.tg-archive__filter:hover {
  color: var(--tg-black);
  background: var(--tg-grey-100);
}
.tg-archive__filter.active {
  color: var(--tg-black);
  background: var(--tg-grey-100);
  border-color: var(--tg-grey-300);
  border-bottom-color: var(--tg-grey-100);
  font-weight: 500;
}
.tg-archive__filter-count {
  font-size: 10px;
  background: var(--tg-grey-300);
  color: var(--tg-grey-600);
  padding: 1px 6px;
  border-radius: var(--tg-pill);
}
.tg-archive__filter.active .tg-archive__filter-count {
  background: var(--tg-yellow);
  color: var(--tg-black);
}

/* Liste articles */
.tg-archive__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: var(--tg-border);
  border-radius: var(--tg-radius);
  overflow: hidden;
  background: var(--tg-white);
}
.tg-archive__item {
  padding: 1.5rem;
  border-bottom: var(--tg-border);
  background: var(--tg-white);
  transition: background 0.15s;
}
.tg-archive__item:last-child { border-bottom: none; }
.tg-archive__item:hover { background: var(--tg-grey-100); }

.tg-archive__item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.6rem;
}
.tg-archive__item-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tg-green);
  background: var(--tg-green-lt);
  padding: 2px 10px;
  border-radius: var(--tg-pill);
  text-decoration: none;
  transition: background 0.15s;
}
.tg-archive__item-cat:hover { background: #c5e8d2; color: var(--tg-green); }
.tg-archive__item-date { font-size: 11px; color: var(--tg-grey-300); }
.tg-archive__item-read {
  font-size: 11px;
  color: var(--tg-grey-300);
  display: flex;
  align-items: center;
  gap: 3px;
}
.tg-archive__item-read::before {
  content: '·';
  color: var(--tg-grey-300);
}
.tg-archive__item-title {
  font-family: var(--tg-font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--tg-black);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.tg-archive__item-title a {
  color: var(--tg-black);
  text-decoration: none;
}
.tg-archive__item-title a:hover { color: var(--tg-black); }
.tg-archive__item-excerpt {
  font-size: 13px;
  color: var(--tg-grey-600);
  line-height: 1.7;
  max-width: 640px;
}

/* Pagination */
.tg-archive__pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
.tg-archive__pagination .nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.tg-archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--tg-pill);
  border: 1.5px solid var(--tg-grey-300);
  font-size: 13px;
  color: var(--tg-grey-600);
  text-decoration: none;
  transition: all 0.15s;
}
.tg-archive__pagination .page-numbers:hover { border-color: var(--tg-black); color: var(--tg-black); }
.tg-archive__pagination .page-numbers.current {
  background: var(--tg-yellow);
  border-color: var(--tg-yellow);
  color: var(--tg-black);
  font-weight: 500;
}
.tg-archive__pagination .prev,
.tg-archive__pagination .next { font-size: 12px; }

/* ═══════════════════════════════════════════════════════════════
   ARTICLE INDIVIDUEL
   ═══════════════════════════════════════════════════════════════ */

.tg-article__header {
  background: var(--tg-white);
  border-bottom: var(--tg-border);
  padding: 2.5rem 0 2rem;
}
.tg-article__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--tg-grey-600);
  margin-bottom: 1.25rem;
}
.tg-article__breadcrumb a {
  color: var(--tg-grey-600);
  text-decoration: none;
}
.tg-article__breadcrumb a:hover { color: var(--tg-black); }
.tg-article__breadcrumb span { color: var(--tg-grey-300); }

.tg-article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.tg-article__cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tg-green);
  background: var(--tg-green-lt);
  padding: 3px 12px;
  border-radius: var(--tg-pill);
  text-decoration: none;
}
.tg-article__date,
.tg-article__read { font-size: 12px; color: var(--tg-grey-600); }
.tg-article__read::before { content: '·'; margin-right: 6px; color: var(--tg-grey-300); }

.tg-article__title {
  font-family: var(--tg-font-title);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--tg-black);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.tg-article__byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--tg-grey-600);
  padding-top: 1rem;
  border-top: var(--tg-border);
  flex-wrap: wrap;
  gap: 10px;
}
.tg-article__share {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tg-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--tg-pill);
  border: 1.5px solid var(--tg-grey-300);
  font-size: 12px;
  font-weight: 600;
  color: var(--tg-black);
  text-decoration: none;
  transition: all 0.15s;
  line-height: 1;
}
.tg-share-btn:hover {
  background: var(--tg-yellow);
  border-color: var(--tg-yellow);
  color: var(--tg-black);
}

/* Contenu rédactionnel */
.tg-article__content-wrap {
  background: var(--tg-white);
  padding: 2.5rem 0;
  border-bottom: var(--tg-border);
}
.tg-article__content {
  font-size: 15px;
  line-height: 1.85;
  color: #333;
}
.tg-article__content h2 {
  font-size: 20px;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--tg-yellow);
  display: inline-block;
}
.tg-article__content h3 {
  font-size: 16px;
  margin: 2rem 0 0.5rem;
  color: var(--tg-black);
}
.tg-article__content p { margin-bottom: 1.4rem; }
.tg-article__content p:last-child { margin-bottom: 0; }
.tg-article__content a {
  color: var(--tg-green);
  text-decoration: underline;
  text-decoration-color: #b8dfc8;
  text-underline-offset: 2px;
}
.tg-article__content a:hover { color: var(--tg-black); text-decoration-color: var(--tg-black); }
.tg-article__content blockquote {
  border-left: 3px solid var(--tg-yellow);
  padding: 0.75rem 1.25rem;
  margin: 1.75rem 0;
  background: var(--tg-grey-100);
  border-radius: 0 var(--tg-radius) var(--tg-radius) 0;
  font-size: 15px;
  color: var(--tg-grey-600);
  font-style: italic;
}
.tg-article__content ul,
.tg-article__content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}
.tg-article__content li { margin-bottom: 0.4rem; }
.tg-article__content strong { color: var(--tg-black); font-weight: 600; }
.tg-article__content img {
  max-width: 100%;
  border-radius: var(--tg-radius);
  margin: 1.5rem 0;
}
.tg-article__content hr {
  border: none;
  border-top: 1px solid var(--tg-grey-300);
  margin: 2rem 0;
}

/* Tags */
.tg-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: var(--tg-border);
}
.tg-article__tag {
  font-size: 11px;
  color: var(--tg-grey-600);
  background: var(--tg-grey-100);
  border: var(--tg-border);
  padding: 3px 12px;
  border-radius: var(--tg-pill);
  text-decoration: none;
  transition: all 0.15s;
}
.tg-article__tag:hover {
  background: var(--tg-yellow);
  border-color: var(--tg-yellow);
  color: var(--tg-black);
}

/* Articles liés */
.tg-related__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--tg-grey-300);
  border: var(--tg-border);
  border-radius: var(--tg-radius);
  overflow: hidden;
}
.tg-related__item {
  background: var(--tg-white);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: background 0.15s;
}
.tg-related__item:hover { background: var(--tg-grey-100); }
.tg-related__item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}
.tg-related__item-title {
  font-family: var(--tg-font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--tg-black);
  line-height: 1.4;
  margin-bottom: 0.4rem;
  flex: 1;
}
.tg-related__item-excerpt {
  font-size: 11px;
  color: var(--tg-grey-600);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex: 1;
}
.tg-related__item-link {
  font-size: 11px;
  color: var(--tg-green);
  font-weight: 500;
  margin-top: auto;
}

/* Responsive articles */
@media (max-width: 768px) {
  .tg-related__list { grid-template-columns: 1fr; }
  .tg-article__content { font-size: 14px; }
  .tg-archive__filters { gap: 4px; }
}

/* ─── NAV : corrections ─────────────────────────────────────────────────── */
/* Liens inactifs sans fond */
.tg-nav__links .tg-nav__link {
  font-size: 13px;
  color: var(--tg-grey-600);
  cursor: pointer;
  padding: 5px 13px;
  border-radius: var(--tg-pill);
  transition: all 0.15s;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  display: block;
}
.tg-nav__links .tg-nav__link:hover {
  color: var(--tg-black);
  background: var(--tg-grey-100);
}
.tg-nav__links .tg-nav__link.active {
  color: var(--tg-black);
  background: var(--tg-yellow);
  border-color: var(--tg-yellow);
  font-weight: 500;
}

/* Supprimer le hamburger en desktop */
.tg-nav__toggle { display: none; }

/* Afficher hamburger uniquement mobile */
@media (max-width: 700px) {
  .tg-nav__toggle { display: block; }
  .tg-nav__links  { display: none; }
  .tg-nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    background: var(--tg-white);
    border-bottom: var(--tg-border);
    padding: 1rem 2rem;
    z-index: 99;
  }
}
