/* ============================================================ */
/* COULEURS : change ces 5 valeurs pour changer tout le site    */
/* ============================================================ */
:root {
  --ink: #0a0a0a;        /* noir principal */
  --paper: #ffffff;      /* blanc de fond */
  --bone: #f5f3ef;       /* beige chaud */
  --smoke: #8a8a8a;      /* gris texte secondaire */
  --line: rgba(10, 10, 10, 0.08);  /* traits de séparation */
}

/* Remise à zéro de base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Typographies */
.display { font-family: 'Bebas Neue', sans-serif; font-weight: 400; letter-spacing: -0.02em; }
.italic-serif { font-family: 'Bebas Neue', sans-serif;  font-weight: 600; }
.bold-emphasis { -webkit-text-stroke: 1.5px currentColor; paint-order: stroke fill; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; font-size: 0.9rem; font-weight: 500;
  border-radius: 999px; transition: all 0.3s ease; cursor: pointer;
  text-decoration: none; -webkit-appearance: none;
}
.btn-primary { background: #0a0a0a; color: #ffffff; }
.btn-primary:hover { background: #2a2a2a; transform: translateY(-1px); }
.btn-outline { background: #fff; color: #111; border: 1px solid rgba(0,0,0,0.12); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.btn-outline:hover { background: #111; color: #fff; border-color: #111; box-shadow: none; transform: translateY(-1px); }
.btn-inverse { background: #fff; color: #111; border: 1px solid rgba(0,0,0,0.12); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.btn-inverse:hover { background: #111; color: #fff; border-color: #111; box-shadow: none; transform: translateY(-1px); }

/* ============================================================ */
/* NAVBAR                                                       */
/* ============================================================ */
.navbar {
  position: fixed; top: 1rem; left: 1rem; right: 1rem;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  border: 1px solid rgba(0,0,0,0.08);
  transition: border-radius 0.3s ease;
}
.navbar.menu-open { border-radius: 2rem 2rem 1.25rem 1.25rem; }
.navbar-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
@media (min-width: 768px) {
  .navbar { top: 1.5rem; left: 2rem; right: 2rem; padding: 0.75rem 1.75rem; }
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; 
}
.logo-text { font-family: 'Bebas Neue', sans-serif; font-weight: 500; letter-spacing: -0.01em; }

.nav-links { display: none; gap: 2rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a { font-size: 0.9rem; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--ink); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: none; font-size: 0.875rem; font-weight: 500;
  background: #fff; color: #111;
  padding: 0.55rem 1.25rem; border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: all 0.2s; cursor: pointer;
}
.nav-cta:hover { background: #111; color: #fff; border-color: #111; box-shadow: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; align-items: center; gap: 0.25rem; } }

.burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .burger { display: none; } }

.mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  overflow: hidden;
  transition: grid-template-rows 0.35s ease;
}
.mobile-menu-inner {
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 0;
  transition: padding 0.35s ease;
}
.navbar.menu-open .mobile-menu { grid-template-rows: 1fr; }
.navbar.menu-open .mobile-menu-inner { padding: 0.5rem 0 0.75rem; }
.mobile-menu a {
  font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 500;
  color: var(--ink); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.8rem 0; width: 100%; text-align: center;
  border-bottom: 0.5px solid rgba(0,0,0,0.07);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { opacity: 0.5; }
.mobile-menu .mobile-cta {
  font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 500;
  background: #111; color: #fff; padding: 0.6rem 1.5rem; border-radius: 999px;
  border: none; margin-top: 0.5rem; width: auto;
  letter-spacing: 0; text-transform: none; border-bottom: none;
  transition: background 0.2s;
}
.mobile-menu .mobile-cta:hover { background: #333; opacity: 1; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ============================================================ */
/* SECTIONS GÉNÉRIQUES                                          */
/* ============================================================ */
.section { padding: 6rem 1.5rem; }
@media (min-width: 768px) { .section { padding: 10rem 2.5rem; } }
.section-dark { background: var(--ink); color: var(--paper); }
.section-light { background: var(--bone); }
.container { max-width: 1400px; margin: 0 auto; }

.section-header { margin-bottom: 4rem; }
.section-label {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem;
}
.section-label-num { font-family: 'Bebas Neue', sans-serif;  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }
.section-label-text { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; }
.section-title {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.05; letter-spacing: -0.02em;
}
.section-dark .section-label-num,
.section-dark .section-label-text { color: rgba(255, 255, 255, 0.5); }

/* ============================================================ */
/* FOOTER                                                       */
/* ============================================================ */
footer { padding: 5rem 1.5rem 2.5rem; }
@media (min-width: 768px) { footer { padding: 5rem 2.5rem 2.5rem; } }
.footer-top {
  display: grid; gap: 2.5rem; padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .footer-top { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand h3 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.footer-brand p { max-width: 24rem; color: var(--smoke); font-size: 0.95rem; line-height: 1.7; }
.footer-logo-wrap { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; align-items: flex-start; }
.footer-by { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke); }
.footer h4 { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--smoke); margin-bottom: 1.5rem; }
.footer ul li { margin-bottom: 0.75rem; font-size: 0.875rem; }
.footer-bottom {
  padding-top: 2.5rem; display: flex; flex-direction: column;
  justify-content: space-between; gap: 1rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; } }
.footer-bottom p, .footer-bottom a { font-size: 0.75rem; color: var(--smoke); }
.footer-bottom .footer-links { display: flex; gap: 1.5rem; }

/* Underline effect on links */
.link { position: relative; }
.link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: currentColor; transition: width 0.3s;
}
.link:hover::after { width: 100%; }

/* Animations au scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ BLOG ============ */
/* --- Navbar : lien actif --- */
.nav-links a.is-active::after { width: 100%; }

/* --- En-tête simple de la page blog --- */
.blog-hero { padding: 9rem 1.5rem 3.5rem; }
@media (min-width: 768px) { .blog-hero { padding: 10rem 2.5rem 4rem; } }
.blog-hero-title {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 6rem); line-height: .95; letter-spacing: -.03em;
  margin-bottom: 1.5rem;
}
.blog-hero-desc { max-width: 34rem; color: var(--smoke); line-height: 1.7; font-size: 1.05rem; }
@media (min-width: 768px) { #articles { padding-left: 2.5rem; padding-right: 2.5rem; } }

/* --- Filtres catégories --- */
.blog-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 3rem; }
.chip {
  font-size: .85rem; padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12); background: #fff; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:focus-visible, .post-card:focus-visible, .post-featured:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* --- Article à la une --- */
.post-featured {
  display: grid; gap: 2rem; align-items: center;
  padding-bottom: 4rem; margin-bottom: 4rem; border-bottom: 1px solid var(--line);
  cursor: pointer;
}
@media (min-width: 900px) { .post-featured { grid-template-columns: 1.25fr 1fr; gap: 3.5rem; } }
.post-featured-img { border-radius: 1rem; overflow: hidden; aspect-ratio: 4/3; }
.post-featured-img img, .post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.post-featured:hover .post-featured-img img, .post-card:hover .post-card-img img { transform: scale(1.03); }
.post-featured-title {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem); line-height: .95; letter-spacing: -.02em;
  margin: 1rem 0 1.25rem;
}
.post-featured-excerpt { color: var(--smoke); max-width: 32rem; line-height: 1.7; margin-bottom: 2rem; }

.post-meta { display: flex; align-items: center; gap: .75rem; font-size: .8rem; color: var(--smoke); flex-wrap: wrap; }
.post-cat {
  font-size: .75rem; font-weight: 500; color: var(--ink);
  background: var(--bone); padding: .3rem .7rem; border-radius: 999px;
}

/* --- Grille d'articles --- */
.post-grid { display: grid; gap: 3rem 2rem; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { cursor: pointer; display: flex; flex-direction: column; }
.post-card-img { border-radius: .875rem; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 1.25rem; }
.post-card-title {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: 1.85rem; line-height: 1; letter-spacing: -.01em; margin: .85rem 0 .65rem;
}
.post-card-excerpt {
  font-size: .9rem; color: var(--smoke); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-empty { color: var(--smoke); padding: 2rem 0; display: none; }

/* --- Bandeau CTA (réutilisé liste + article) --- */
.cta-band {
  background: var(--ink); color: var(--paper); border-radius: 1.25rem;
  padding: 3rem 2rem; display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 768px) { .cta-band { grid-template-columns: 1fr auto; padding: 3.5rem 3.5rem; } }
.cta-band h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.cta-band p { color: rgba(255,255,255,.6); margin-top: .75rem; max-width: 30rem; }

/* ============================================================ */
/* PAGE ARTICLE                                                 */
/* ============================================================ */
.article-hero { padding: 8rem 1.5rem 3rem; position: relative; overflow: hidden; }
@media (min-width: 768px) { .article-hero { padding: 9rem 2.5rem 3.5rem; } }
.article-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23grain)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.article-hero > * { position: relative; }
.article-hero-inner { max-width: 1100px; margin: 0 auto; }
.breadcrumb { font-size: .8rem; color: var(--smoke); margin-bottom: 2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ink); }
.article-title {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(2.5rem, 6.5vw, 5.25rem); line-height: .93; letter-spacing: -.03em;
  max-width: 16ch; margin: 1.25rem 0 1.5rem;
}
.article-lead { font-size: 1.1rem; color: #4a4a4a; max-width: 40rem; line-height: 1.7; }
.article-cover { max-width: calc(1100px + 5rem); margin: 0 auto; padding: 0 1.5rem; }
.article-cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 1rem; }
@media (min-width: 768px) { .article-cover { padding: 0 2.5rem; } }

.article-layout { max-width: calc(1100px + 5rem); margin: 0 auto; padding: 4rem 1.5rem 2rem; display: grid; gap: 3rem; }
@media (min-width: 768px) { .article-layout { padding: 4.5rem 2.5rem 2rem; } }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 5rem; } }

.article-layout > * { min-width: 0; }
.toc { order: -1; border: 1px solid var(--line); border-radius: .875rem; padding: 1.25rem 1.25rem 1rem; align-self: start; }
@media (min-width: 1024px) { .toc { order: 0; position: sticky; top: 7rem; } }
.toc-title { font-size: .8rem; font-weight: 600; margin-bottom: .75rem; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; font-size: .85rem; color: var(--smoke); padding: .4rem 0; border-top: 1px solid var(--line); display: flex; gap: .6rem; }
.toc li::before { content: counter(toc); font-family: 'Bebas Neue', sans-serif; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.toc a:hover { color: var(--ink); }

.prose { max-width: 42rem; font-size: 1.05rem; line-height: 1.8; color: #2b2b2b; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400; color: var(--ink);
  font-size: clamp(1.9rem, 3.5vw, 2.5rem); line-height: 1; letter-spacing: -.01em;
  margin-top: 3.25rem; scroll-margin-top: 7rem;
}
.prose h3 { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-top: 2rem; }
.prose ul { list-style: none; }
.prose ul li { padding-left: 1.25rem; position: relative; margin-top: .5rem; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .8em; width: .5rem; height: 1px; background: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.key-box { background: var(--bone); border-radius: .875rem; padding: 1.5rem 1.75rem; }
.key-box-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; line-height: 1; margin-bottom: .75rem; color: var(--ink); }
.key-box ul li { margin-top: .4rem; font-size: .98rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .875rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.prose th { text-align: left; font-weight: 600; padding: .85rem 1rem; background: var(--bone); color: var(--ink); }
.prose td { padding: .85rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }

.faq-block details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq-block details:last-child { border-bottom: 1px solid var(--line); }
.faq-block summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: '+'; font-weight: 400; font-size: 1.25rem; line-height: 1; transition: transform .25s; }
.faq-block details[open] summary::after { transform: rotate(45deg); }
.faq-block details p { margin-top: .75rem; font-size: .98rem; color: #4a4a4a; }

.author-row { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 3rem; }
.author-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.author-avatar img { width: 80%; height: auto; }
.author-row strong { display: block; font-size: .95rem; }
.author-row span { font-size: .85rem; color: var(--smoke); }


/* --- Images, légendes, encadrés --- */
.article-cover figure { margin: 0; }
.article-cover figcaption, .prose figcaption { font-size: .85rem; color: var(--smoke); margin-top: .6rem; }
.prose figure { margin: 2rem 0; }
.prose figure img { width: 100%; height: auto; border-radius: .875rem; }
.prose ol { padding-left: 1.25rem; }
.prose ol li { margin-top: .5rem; padding-left: .25rem; }
.key-box p { margin: 0; font-size: 1rem; }
.key-box p + p { margin-top: .6rem; }
.article-updated { color: var(--smoke); }
.blog-empty { color: var(--smoke); padding: 2rem 0 4rem; }
.not-found { padding: 11rem 1.5rem 6rem; text-align: center; }
.not-found h1 { font-family: 'Bebas Neue', sans-serif; font-weight: 300; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; margin-bottom: 1rem; }
.not-found p { color: var(--smoke); margin-bottom: 2rem; }

.article-hero::before { display: none; }
.article-title { max-width: none; font-size: clamp(2rem, 4.5vw, 3.75rem); }