@charset "utf-8";

/* ==================================================================
   TREGOR DIGITAL - Articles du blog et pages de fond
   (site à distance, sites pour gîtes). Chargée par $page_css.
   N'utilise que les variables de style.css : suit donc la palette
   du site, y compris l'habillage saisonnier.
   ================================================================== */

/* ---------- Colonne de lecture ---------- */
.article > * { max-width: 72ch; }
.article h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); margin: 2.2em 0 0.6em; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.15rem; margin: 1.8em 0 0.5em; }
.article p, .article li { font-size: 1.06rem; line-height: 1.75; color: var(--ink-soft); }
.article p { margin: 0 0 1em; }
.article strong { color: var(--ink); }
.article ul, .article ol { margin: 0 0 1.3em; padding: 0; list-style: none; display: grid; gap: 10px; }
.article ul li { position: relative; padding-left: 24px; }
.article ul li::before {
  content: ""; position: absolute; left: 3px; top: 0.72em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.article ol { counter-reset: n; }
.article ol li { position: relative; padding-left: 36px; counter-increment: n; }
.article ol li::before {
  content: counter(n); position: absolute; left: 0; top: 0.2em;
  display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; border: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 700; color: var(--gold-lite);
}
.article a:not(.btn) { color: var(--gold-lite); text-decoration: underline; text-underline-offset: 3px; }
.article a:not(.btn):hover { color: var(--gold-pale); }
.article [id] { scroll-margin-top: 110px; }

/* Date et temps de lecture sous le titre */
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 0.9rem; color: var(--ink-dim); }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* Encadré « à retenir » */
.key {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  background: var(--panel-warm);
}
.key p:last-child { margin-bottom: 0; }
.key b { display: block; margin-bottom: 4px; color: var(--ink); }

/* ---------- Tableau de comparaison ---------- */
.table-wrap { overflow-x: auto; margin: 24px 0 28px; border: 1px solid var(--line-soft); border-radius: var(--r-l); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.table-wrap caption { text-align: left; padding: 14px 18px 0; font-size: 0.86rem; color: var(--ink-dim); }
.table-wrap th, .table-wrap td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.table-wrap thead th { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-lite); }
.table-wrap tbody th { color: var(--ink); font-weight: 600; }
.table-wrap td { color: var(--ink-soft); }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Liste des articles (page Blog + renvois) ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  background: var(--panel);
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.post:hover { border-color: var(--line); transform: translateY(-3px); }
.post-tag { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-lite); }
.post h2, .post h3 { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.post p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.post-more { margin-top: auto; padding-top: 6px; font-size: 0.9rem; font-weight: 700; color: var(--gold-lite); display: inline-flex; align-items: center; gap: 6px; }
/* Toute la carte est cliquable, le lien reste sur le titre */
.post a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post a:focus-visible { outline: none; }
.post:focus-within { outline: 2px solid var(--gold-lite); outline-offset: 3px; }
@media (max-width: 980px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }

/* Un seul écran dans le bloc d'ouverture (page gîtes) */
.hero-shots.solo { aspect-ratio: auto; align-self: center; }
.hero-shots.solo .mock { position: relative; inset: auto; width: 100%; }

/* ---------- Récit d'un projet client (page gîtes) ----------
   Préfixé par .article pour passer devant les listes numérotées des articles. */
.article .story { display: grid; gap: 16px; counter-reset: ch; margin: 24px 0 28px; }
.article .story li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  padding: 24px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  background: var(--panel);
  counter-increment: ch;
}
.article .story li::before {
  content: counter(ch, decimal-leading-zero);
  position: static;
  width: 2.2ch;
  height: auto;
  border: 0;
  border-radius: 0;
  grid-row: span 2;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--gold-lite);
}
.article .story h3 { margin: 0; font-size: 1.1rem; }
.article .story p { margin: 0; }

/* Lien mis en avant (accueil, page Sites web) vers la page nationale */
.reach {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 32px;
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: radial-gradient(70% 120% at 100% 50%, var(--panel-warm), transparent 70%), var(--night-2);
}
.reach > .ico { width: 52px; height: 52px; padding: 13px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-warm); }
.reach h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 6px; }
.reach p { margin: 0; max-width: 62ch; color: var(--ink-soft); }
.reach p a { color: var(--gold-lite); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .reach { grid-template-columns: 1fr; }
  .reach .btn { justify-self: start; }
}
