/* =========================================================
   KAIROS MD — rubrique « Conseils » (liste + articles)
   Même charte que l'accueil : variables, police Inter, sablier, menu, pied de page.
   ========================================================= */
:root {
  --primary:        #181d26;
  --primary-active: #0d1218;
  --ink:            #181d26;
  --body:           #333840;
  --muted:          #41454d;
  --hairline:       #dddddd;
  --canvas:         #faf8f5;
  --surface-soft:   #f4f1ec;
  --surface-strong: #ece8e2;
  --sig-coral:      #aa2d00;
  --sig-cream:      #f5e9d4;
  --sig-peach:      #fcab79;
  --link:           #1b61c9;

  --font: 'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   12px;
  --r-pill: 9999px;

  --sp-xs:  8px;
  --sp-sm:  12px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  32px;
  --sp-xxl: 48px;
  --section:    96px;
  --section-sm: 64px;

  --max-w: 1280px;

  /* mouvements : mêmes courbes et durées que l'accueil */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast:  150ms;
  --dur-base:  200ms;
  --dur-enter: 300ms;
  --dur-draw:  500ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* === BOUTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 14px 22px;
  border-radius: var(--r-lg);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-active); transform: scale(0.97); }
.btn-sm { font-size: 14px; padding: 10px 18px; }
.btn:focus-visible { outline: 2px solid var(--sig-coral); outline-offset: 3px; }

/* === MENU === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.navbar.scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xxl);
  gap: var(--sp-xl);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand-mark { width: 15px; height: 21px; flex-shrink: 0; color: var(--ink); stroke-width: 1.6px; }
.nav-links { display: flex; gap: var(--sp-xl); }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--body); }
.nav-links a[aria-current="page"], .nav-mobile a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-logo:focus-visible,
.nav-links a:focus-visible,
.footer-links a:focus-visible,
.footer-legal a:focus-visible,
.nav-mobile a:focus-visible,
.burger:focus-visible {
  outline: 2px solid var(--sig-coral);
  outline-offset: 3px;
  border-radius: 3px;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 4.5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4.5px); }
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: var(--sp-lg) var(--sp-xxl) var(--sp-xl);
  flex-direction: column;
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 16px;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.nav-mobile .btn { margin-top: var(--sp-lg); align-self: flex-start; padding: 14px 22px; border-bottom: none; color: #fff; }

/* === MISE EN PAGE === */
.page-main { padding-top: 64px; }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xxl);
}
.container--article { max-width: calc(760px + 2 * var(--sp-xxl)); }

/* fil d'Ariane */
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: var(--sp-lg); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { display: inline; }
.breadcrumb li + li::before { content: '›'; margin: 0 var(--sp-xs); color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(65,69,77,0.35); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb a:focus-visible { outline: 2px solid var(--sig-coral); outline-offset: 2px; border-radius: 3px; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* étiquette de catégorie (petite pastille) et date */
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(24,29,38,0.08);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  width: fit-content;
  line-height: 1.5;
}
.pill--idel { color: var(--sig-coral); background: #f8d5b8; }
.post-date { font-size: 14px; color: var(--muted); }

/* titres : même échelle que l'accueil */
.page-title {
  font-size: clamp(28px, calc(1.25rem + 2vw), 46px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.page-intro { margin-top: var(--sp-md); font-size: 16px; color: var(--body); line-height: 1.65; max-width: 620px; }

/* === LISTE DES CONSEILS === */
.conseils-head { padding: var(--section-sm) 0 var(--sp-xxl); }
.conseils-list { padding-bottom: var(--section); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-xl) var(--sp-lg);
}

/* carte d'article : toute la carte est un lien ; effet « Trait kairos » comme les cartes de services */
.post-card {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: inherit;
}
.post-card::before {           /* ombre portée sur un calque : seule son opacité change */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 12px 24px -12px rgba(24,29,38,0.28);
  opacity: 0;
}
.post-card::after {            /* filet corail tracé de gauche à droite */
  content: '';
  position: absolute;
  left: var(--sp-lg);
  right: var(--sp-lg);
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--sig-coral);
  transform: scaleX(0);
  transform-origin: left;
}
.post-card-media { aspect-ratio: 16 / 9; background: var(--surface-strong); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; gap: var(--sp-sm); padding: var(--sp-lg) var(--sp-lg) var(--sp-xl); }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xs) var(--sp-sm); }
.post-card-title {
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.post-card:focus-visible { outline: 2px solid var(--sig-coral); outline-offset: 3px; }
.post-card:active { transform: scale(0.98); transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .post-card { transition: transform var(--dur-base) var(--ease-out); }
  .post-card::before { transition: opacity var(--dur-base) var(--ease-out); }
  .post-card::after { transition: transform var(--dur-base) var(--ease-out); }
  .post-card:hover { transform: translateY(-3px); }
  .post-card:hover:active { transform: translateY(-3px) scale(0.98); }
  .post-card:hover::before { opacity: 1; }
  .post-card:hover::after { transform: scaleX(1); transition: transform var(--dur-draw) var(--ease-out); }
}

/* === ARTICLE === */
.article-head { padding: var(--sp-xxl) 0 var(--sp-xl); }
.article-head .pill { margin-bottom: var(--sp-md); }
.article-head .post-date { display: block; margin-top: var(--sp-md); }
.article-figure { margin: 0 0 var(--sp-xl); }
.article-figure .media {
  aspect-ratio: 16 / 9;
  background: var(--surface-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.article-figure img { width: 100%; height: 100%; object-fit: cover; }
.photo-credit { margin-top: var(--sp-xs); font-size: 12px; color: var(--muted); }
.photo-credit a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(65,69,77,0.35); }
.photo-credit a:hover { color: var(--ink); }
.photo-credit a:focus-visible { outline: 2px solid var(--sig-coral); outline-offset: 2px; border-radius: 2px; }

.lede { font-size: 19px; line-height: 1.6; color: var(--ink); margin-bottom: var(--sp-xl); }

.prose { font-size: 17px; line-height: 1.75; color: var(--body); }
.prose > * + * { margin-top: var(--sp-md); }
.prose h2 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-top: var(--sp-xxl);
}
.prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-top: var(--sp-xl);
}
.prose h2 + *, .prose h3 + * { margin-top: var(--sp-sm); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-xs); }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sig-coral);
}

/* encadrés repris du document */
.box {
  background: var(--sig-cream);
  border-radius: var(--r-md);
  padding: var(--sp-lg) var(--sp-lg);
  margin-top: var(--sp-xl);
}
.box > * + * { margin-top: var(--sp-sm); }
.box-title { font-weight: 600; color: var(--ink); }
.box--example { background: var(--surface-soft); border-left: 3px solid var(--sig-peach); border-radius: 0 var(--r-md) var(--r-md) 0; }
.box--example h2 { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0; }
.box--service { background: #ffffff; border: 1px solid var(--hairline); box-shadow: inset 0 3px 0 var(--sig-coral); }
.box--service h2 { margin-top: 0; }

/* FAQ en accordéon (même rendu que la FAQ de l'accueil) */
.article-faq { margin-top: var(--sp-xxl); }
.article-faq h2 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-lg);
}
.faq-list { display: flex; flex-direction: column; gap: var(--sp-sm); }
.faq-item { background: #ffffff; border: 1px solid var(--hairline); border-radius: var(--r-md); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  min-height: 44px;
  padding: var(--sp-md) var(--sp-lg);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  cursor: pointer;
  border-radius: var(--r-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--sig-coral); outline-offset: 2px; }
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-out); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 var(--sp-lg) var(--sp-lg); font-size: 16px; color: var(--body); line-height: 1.65; }

/* bouton final */
.article-cta { margin-top: var(--sp-xxl); padding: var(--sp-xl) 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); display: flex; justify-content: center; }

/* autres conseils */
.related { padding: var(--sp-xxl) 0 var(--section); }
.related h2 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-lg);
}
.related .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-lg); }
.related .post-card-body { padding: var(--sp-md) var(--sp-md) var(--sp-lg); }
.related .post-card::after { left: var(--sp-md); right: var(--sp-md); }
.related .post-card-title { font-size: 16px; }

/* === PIED DE PAGE === */
.footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: var(--section-sm) 0 var(--sp-xl); }
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xxl) var(--section-sm);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  border-bottom: 1px solid var(--hairline);
}
.footer-brand-name { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: var(--sp-md); }
.footer-brand-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }
.footer-col-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-lg); }
.footer-links { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a[href^="mailto"] { color: var(--link); }
.footer-legal-mentions {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-xxl) 0;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  letter-spacing: 0.01em;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-xxl) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-md);
}
.footer-copy { font-size: 14px; color: var(--muted); }
.footer-legal { display: flex; gap: var(--sp-xl); }
.footer-legal a { font-size: 14px; color: var(--muted); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-inner, .nav-links { gap: var(--sp-lg); }
  .nav-logo, .nav-links a { white-space: nowrap; }
}
@media (max-width: 900px) {
  .nav-inner, .nav-links { gap: var(--sp-md); }
  .related .post-grid { grid-template-columns: 1fr; }
}
/* menu : 7 entrées → menu burger jusqu'à 960 px */
@media (max-width: 960px) {
  .nav-links, .nav-links + .btn { display: none !important; }
  .burger { display: flex; }
}
@media (max-width: 768px) {
  :root { --section: 64px; --section-sm: 48px; --sp-xxl: 24px; }
  .nav-links, .nav-links + .btn { display: none !important; }
  .burger { display: flex; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lede { font-size: 18px; }
  .prose { font-size: 16px; }
}
@media (max-width: 520px) {
  :root { --sp-xxl: 16px; --section: 56px; }
  .footer-legal { flex-direction: column; gap: var(--sp-md); }
  .footer-top { grid-template-columns: 1fr; }
  .nav-mobile { padding: var(--sp-md) var(--sp-md) var(--sp-lg); }
  .box { padding: var(--sp-md); }
  .faq-item summary { padding: var(--sp-md); }
  .faq-answer { padding: 0 var(--sp-md) var(--sp-md); }
  .article-cta .btn { width: 100%; }
}

/* === MOINS D'ANIMATIONS : aucun mouvement (ni soulèvement, ni enfoncement, ni filet animé) === */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .burger span, .faq-chevron, .btn, .post-card, .post-card::before, .post-card::after { transition: none !important; }
  .post-card:hover, .post-card:active, .post-card:hover:active, .btn-primary:active { transform: none; }
  .post-card:hover::after { transform: scaleX(0); }
}
