/* ============================================================
   GESTES DE VIE — main.css
   Palette corail #EB755B / teal #538787 / fond crème #FAFAF8
   Typo : Poppins (titres) + Source Sans 3 (corps)
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --coral:    #EB755B;
  --coral-dk: #d45e44;
  --teal:     #538787;
  --teal-dk:  #3d6b6b;
  --teal-lt:  #e8f2f2;
  --cream:    #FAFAF8;
  --white:    #ffffff;
  --ink:      #2A2A2A;
  --ink-lt:   #5a5a5a;
  --ink-xlt:  #8a8a8a;
  --border:   #e4e0db;
  --radius:   12px;
  --radius-sm:6px;
  --shadow:   0 2px 16px rgba(83,135,135,.10);
  --shadow-md:0 6px 32px rgba(83,135,135,.14);
  --font-head:"Poppins", sans-serif;
  --font-body:"Source Sans 3", sans-serif;
  --max-w:    1200px;
  --col-main: 68%;
  --col-side: 30%;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.72;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--coral); }
ul { list-style: none; }

/* ---------- CONTAINER ---------- */
.container {
  width: min(var(--max-w), 100% - 2rem);
  margin-inline: auto;
}
.container--wide { width: min(1360px, 100% - 2rem); margin-inline: auto; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .75rem 0;
  min-height: 90px;
}

.nav-logo a {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 72px;
  width: auto;
}

/* Menu principal */
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
  flex: 1;
}

.nav-menu li { display: inline-flex; }

.nav-menu a {
  display: inline-block;
  padding: .45rem .85rem;
  border-radius: 99px;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  transition: background .18s, color .18s;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--teal-lt);
  color: var(--teal-dk);
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ============================================================
   HERO — post-list & post (bandeau coloré pleine largeur)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dk) 100%);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='28' fill='none' stroke='%23ffffff' stroke-width='.4' opacity='.18'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.page-hero__kicker {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 99px;
  margin-bottom: .75rem;
}
.page-hero__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  text-align: left;
}
.page-hero__breadcrumb {
  margin-top: .75rem;
  font-size: .83rem;
  color: rgba(255,255,255,.75);
}
.page-hero__breadcrumb a { color: rgba(255,255,255,.85); }
.page-hero__breadcrumb a:hover { color: var(--white); }

/* ============================================================
   INDEX — Layout F (sidebar)
   ============================================================ */
.index-layout {
  display: grid;
  grid-template-columns: var(--col-main) 1fr;
  gap: 2.5rem;
  padding: 3rem 0 4rem;
  align-items: start;
}

.index-main {}

.index-main__kicker {
  display: inline-block;
  color: var(--coral);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.index-main__h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  text-align: left;
  margin-bottom: 1.25rem;
}

.index-main__content {
  font-size: 1.08rem;
  color: var(--ink-lt);
  line-height: 1.8;
  max-width: 780px;
  margin-bottom: 2.5rem;
}

.showcase-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-dk);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--teal-lt);
}

/* Sidebar index */
.index-sidebar {
  position: sticky;
  top: 110px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.sidebar-card__thumb img,
.sidebar-card__thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.sidebar-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.sidebar-card__baseline {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: .75rem;
  line-height: 1.4;
}

.sidebar-card__meta {
  font-size: .82rem;
  color: var(--ink-xlt);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.sidebar-card__meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.sidebar-card__meta-icon {
  width: 16px; height: 16px;
  fill: var(--coral);
  flex-shrink: 0;
}

.sidebar-card__cta {
  display: inline-block;
  margin-top: 1rem;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  padding: .6rem 1.25rem;
  border-radius: 99px;
  transition: background .18s;
}
.sidebar-card__cta:hover { background: var(--coral-dk); color: var(--white); }

/* ============================================================
   POST-LOOP — carte horizontale image gauche + texte droite
   ============================================================ */
.post-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  margin-bottom: 1.25rem;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card__thumb {
  grid-row: 1 / -1;
  overflow: hidden;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.post-card:hover .post-card__thumb img { transform: scale(1.05); }

.post-card__body {
  padding: 1.1rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
}

.post-card__cat {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--teal);
  padding: .2rem .6rem;
  border-radius: 99px;
  margin-bottom: .6rem;
  align-self: flex-start;
}
.post-card__cat:hover { background: var(--coral); color: var(--white); }

.post-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__title:hover { color: var(--coral); }

.post-card__meta {
  font-size: .78rem;
  color: var(--ink-xlt);
  margin-bottom: .6rem;
}

.post-card__excerpt {
  font-size: .88rem;
  color: var(--ink-lt);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card__more {
  margin-top: .75rem;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  color: var(--coral);
  align-self: flex-start;
}
.post-card__more:hover { color: var(--coral-dk); }

/* ============================================================
   POST-LIST
   ============================================================ */
.post-list-layout {
  padding: 3rem 0 4rem;
}

.post-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination .page,
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--ink-lt);
  transition: all .18s;
}

.pagination .active,
.pagination .page.active {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
}

.pagination a:hover { border-color: var(--coral); color: var(--coral); }

/* ============================================================
   POST.HTML — article complet
   ============================================================ */
.post-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.post-kicker {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28rem .7rem;
  border-radius: 99px;
  margin-bottom: .75rem;
}

.post-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.18;
  text-align: left;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  font-size: .85rem;
  color: var(--ink-xlt);
}

.post-meta__sep { color: var(--border); }

/* Article layout with sidebar TOC */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
  padding-bottom: 4rem;
}

.post-content-area {}

.post-featured-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-featured-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Contenu article */
.post-content {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink);
}
.post-content h2 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--teal-dk);
  margin: 2.25rem 0 1rem;
  padding-left: .75rem;
  border-left: 4px solid var(--coral);
}
.post-content h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.75rem 0 .75rem;
}
.post-content h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal);
  margin: 1.5rem 0 .5rem;
}
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .4rem; }
.post-content a { color: var(--teal); text-decoration: underline; }
.post-content a:hover { color: var(--coral); }
.post-content strong { font-weight: 700; color: var(--ink); }
.post-content blockquote {
  border-left: 4px solid var(--teal);
  background: var(--teal-lt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--teal-dk);
}
.post-content img {
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

/* TOC sidebar */
.post-toc-aside {
  position: sticky;
  top: 110px;
}

.toc-card {
  background: var(--white);
  border: 2px solid var(--teal-lt);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.toc-card__title {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.toc-card__title::before {
  content: "☰";
  font-size: 1rem;
  color: var(--coral);
}

/* Bloc signature auteur */
.author-signature {
  background: linear-gradient(135deg, var(--teal-lt) 0%, #f0fafa 100%);
  border: 1px solid rgba(83,135,135,.2);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 3rem 0 2.5rem;
}

.author-signature__label {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}

/* Articles liés */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.related-section__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ============================================================
   PAGE (mentions légales, page statique)
   ============================================================ */
.page-content {
  max-width: 820px;
  padding: 2.5rem 0 4rem;
}
.page-content h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal-dk);
  margin: 2rem 0 .75rem;
  padding-left: .75rem;
  border-left: 4px solid var(--coral);
}
.page-content p { margin-bottom: 1.1rem; font-size: 1rem; line-height: 1.8; }
.page-content a { color: var(--teal); text-decoration: underline; }
.page-content ul { padding-left: 1.5rem; list-style: disc; margin-bottom: 1.1rem; }

/* ============================================================
   PAGE AUTEUR
   ============================================================ */
.author-page {
  padding: 3rem 0 4rem;
}

.author-page__intro {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.author-page__photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--coral);
  box-shadow: 0 4px 20px rgba(235,117,91,.25);
}

.author-page__name {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .25rem;
}

.author-page__role {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  color: var(--coral);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.author-page__content { font-size: 1rem; line-height: 1.8; color: var(--ink-lt); }
.author-page__content p { margin-bottom: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  margin-top: auto;
}

.footer-main {
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-brand__name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}

.footer-brand__desc {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
}

.footer-legal {
  font-size: .82rem;
}

.footer-legal h4 {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: .75rem;
}

.footer-legal p, .footer-legal address {
  font-style: normal;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  font-size: .82rem;
}

.footer-legal a { color: var(--teal); }
.footer-legal a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--coral); }

/* ============================================================
   UTILITAIRES
   ============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: center;
  font-size: .82rem;
  color: var(--ink-xlt);
  margin-bottom: 1.25rem;
}
.breadcrumb ol,
.page-hero__breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: center;
}
.breadcrumb li,
.page-hero__breadcrumb li {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb__sep { color: var(--border); }

.tag-pill {
  display: inline-block;
  background: var(--teal-lt);
  color: var(--teal-dk);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 99px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .index-layout {
    grid-template-columns: 1fr;
  }
  .index-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .sidebar-card { display: contents; }
  .sidebar-card__thumb { border-radius: var(--radius); overflow: hidden; }

  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-toc-aside {
    position: static;
    order: -1;
  }

  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 2px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    gap: .25rem;
  }

  .nav-menu.is-open { display: flex; }

  .site-nav { position: sticky; top: 0; }

  .post-card {
    grid-template-columns: 1fr;
  }
  .post-card__thumb {
    height: 180px;
  }

  .author-page__intro {
    grid-template-columns: 1fr;
  }
  .author-page__photo {
    display: flex;
    justify-content: center;
  }

  .index-sidebar { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .page-hero__title { font-size: 1.6rem; }

  .nav-logo img { height: 52px; }
}

@media (max-width: 480px) {
  .nav-logo img { height: 48px; }
  .post-card__thumb { height: 150px; }
}
