/* Styles des pages du blog SKY CROISSANCE (reprend la charte de la page d'accueil) */
:root {
  --navy: #06264F;
  --navy-2: #0E3466;
  --red: #C4161C;
  --red-hover: #A51218;
  --ink: #0B1B33;
  --muted: #52617A;
  --on-navy: #C7D3E6;
  --on-navy-soft: #93A6C4;
  --line: #E1E6EE;
  --bg-soft: #F4F6FA;
  --radius: 14px;
  --max: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: Inter, system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: Montserrat, Inter, sans-serif; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; flex: none; background: var(--red); border-radius: 2px; }

.btn { display: inline-flex; align-items: center; gap: 10px; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 15px; padding: 15px 26px; border-radius: 8px; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(196,22,28,.28); }
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }

/* En-tête */
header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 3px solid var(--navy); transition: box-shadow .2s; }
header.scrolled { box-shadow: 0 8px 24px rgba(6,38,79,.12); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo img { height: 60px; width: auto; display: block; }
.nav-links { display: flex; gap: 34px; font-size: 15px; font-weight: 600; color: var(--navy); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--red); transition: right .2s; }
.nav-links a:hover, .nav-links a.current { color: var(--red); }
.nav-links a:hover::after, .nav-links a.current::after { right: 0; }
.nav .btn { padding: 12px 20px; font-size: 14px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 2px solid var(--navy); border-radius: 10px; background: #fff; cursor: pointer; place-content: center; gap: 5px; padding: 0; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
header.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
header.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* En-tête de page blog */
.blog-hero { background: var(--navy); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.blog-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 260px at 100% 0%, rgba(196,22,28,.30), transparent 70%); }
.blog-hero .wrap { position: relative; }
.blog-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 52px); max-width: 860px; text-wrap: balance; }
.blog-hero p { color: var(--on-navy); font-size: 19px; max-width: 700px; margin-top: 16px; }
.blog-hero .eyebrow { color: #FF4A51; }
.blog-hero .eyebrow::before { background: #FF4A51; }
.crumbs { font-size: 14px; color: var(--on-navy-soft); margin-bottom: 18px; }
.crumbs a { color: var(--on-navy); }
.crumbs a:hover { color: #fff; }
.meta-line { margin-top: 22px; font-size: 14px; color: var(--on-navy-soft); }

/* Liste des articles */
.posts { padding: 64px 0 80px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(6,38,79,.12); }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--navy); }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .tag { font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.post-card h2, .post-card h3 { font-size: 21px; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .more { margin-top: auto; padding-top: 8px; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 14px; color: var(--red); }

/* Article */
.article { padding: 56px 0 72px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 56px; justify-content: center; }
.prose { font-size: 18px; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.8vw, 30px); margin-top: 1.8em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose p, .prose li { color: #26344A; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--navy); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose .answer { font-size: 20px; color: var(--navy); background: var(--bg-soft); border-left: 4px solid var(--red); padding: 20px 24px; border-radius: 0 12px 12px 0; }
.prose .step-label { display: inline-block; font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--navy); padding: 4px 10px; border-radius: 4px; }
.prose figure img { width: 100%; height: auto; border-radius: 12px; display: block; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose .source { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 17px; margin: 0; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--navy); color: var(--navy); display: grid; place-items: center; font-weight: 600; }
.faq details[open] summary::after { content: "−"; background: var(--navy); color: #fff; }
.faq details p { padding: 0 0 16px; }
aside.side { position: sticky; top: 108px; align-self: start; display: grid; gap: 20px; }
.side-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px 24px; }
.side-card h2 { color: #fff; font-size: 20px; line-height: 1.25; }
.side-card p { color: var(--on-navy); font-size: 15px; margin: 10px 0 18px; }
.side-card .btn { width: 100%; justify-content: center; }
.side-toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-size: 14px; }
.side-toc p { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.side-toc a { display: block; padding: 5px 0; color: var(--navy); font-weight: 500; }
.side-toc a:hover { color: var(--red); }
.cta-band { background: var(--bg-soft); border-radius: var(--radius); padding: 32px; text-align: center; margin-top: 2.2em; }
.cta-band h2 { margin: 0 0 10px; font-size: 26px; }
.cta-band p { color: var(--muted); margin-bottom: 20px; }

/* Pied de page */
footer { background: var(--navy); font-size: 14px; color: var(--on-navy-soft); border-top: 4px solid var(--red); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.foot-brand .logo img { height: 50px; width: auto; }
.foot-brand p { margin-top: 16px; max-width: 360px; color: var(--on-navy); font-size: 15px; }
.foot-brand .foot-place { margin-top: 10px; color: var(--on-navy-soft); font-size: 14px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-title { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.foot-col a { color: var(--on-navy); transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-col .foot-cta { color: #fff; font-weight: 600; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-legal a:hover { color: #fff; }

/* Bandeau cookies */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 720px; margin: 0 auto; background: var(--navy); color: #fff; border-radius: 12px; padding: 18px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; box-shadow: 0 12px 36px rgba(6,38,79,.35); font-size: 14px; }
.cookie-bar p { flex: 1 1 280px; color: var(--on-navy); }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar .btns { display: flex; gap: 8px; }
.cookie-bar button { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 14px; border-radius: 8px; padding: 10px 16px; cursor: pointer; border: 2px solid #fff; }
.cookie-bar .accept { background: var(--red); border-color: var(--red); color: #fff; }
.cookie-bar .refuse { background: transparent; color: #fff; }
.mobile-cta { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; justify-content: center; box-shadow: 0 10px 30px rgba(6,38,79,.35); }

@media (max-width: 1000px) {
  .article-grid { grid-template-columns: 1fr; gap: 36px; }
  aside.side { position: static; }
  .side-toc { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { justify-content: flex-start; gap: 12px; }
  .nav .logo { margin-right: auto; }
  .menu-btn { display: grid; }
  header.menu-open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 6px 24px 18px; border-bottom: 3px solid var(--navy); box-shadow: 0 18px 30px rgba(6,38,79,.14); }
  header.menu-open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  header.menu-open .nav-links a::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { height: 64px; }
  .logo img { height: 42px; }
  .nav .btn { display: none; }
  .mobile-cta { display: flex; }
  footer { padding-bottom: 96px; }
  .prose { font-size: 17px; }
  .post-grid { grid-template-columns: 1fr; }
  header.menu-open .nav-links { padding-inline: 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 44px 28px; }
  .cta-band { padding: 26px 18px; }
}
