/* ==========================================================================
   M.I.B ANTI-CHUTES — Design system & styles
   Stack : HTML/CSS/JS pur. Mobile-first. Aucune dépendance externe.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Couleurs (extraites de la charte Framer : bleu marine + accent rouge) */
  --navy-900: #07203a;
  --navy-800: #0d2e4f;
  --navy-700: #143a63;   /* fond des cartes services */
  --blue:     #1B3A6B;   /* bleu de marque — boutons / badges */
  --blue-600: #264f8a;   /* survol bleu */
  --red:      #E53935;   /* rouge de marque — accent */
  --red-600:  #c62828;   /* survol rouge */
  --red-soft: rgba(229, 57, 53, .12);
  --ink:      #0f1f33;   /* texte courant */
  --muted:    #5b6b7d;
  --bg:       #ffffff;
  --bg-alt:   #f4f7fb;
  --line:     #e3e9f0;
  --white:    #ffffff;

  /* Typo */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Échelle / layout */
  --container: 1180px;
  --radius: 22px;
  --radius-sm: 16px;
  --radius-lg: 30px;
  --shadow: 0 14px 40px rgba(7, 32, 58, .09);
  --shadow-lg: 0 26px 60px rgba(7, 32, 58, .16);
  --header-h: 76px;
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }

/* --- 3. Utilitaires ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy-900); color: #dfe9f4; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block; background: var(--blue); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.section--navy .eyebrow { background: rgba(255,255,255,.12); }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }
.section--navy .lead { color: #b9cadb; }
h2.title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--navy-900); margin-bottom: 16px; }
.section--navy h2.title { color: #fff; }
.title-wrap { max-width: 760px; }
.title-wrap.center { margin-inline: auto; text-align: center; }

/* --- 4. Boutons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(229,57,53,.24); }
.btn--primary:hover { background: var(--red-600); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-600); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.2); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn .arrow { font-size: 1.1em; transform: translateY(1px); }

/* --- 5. Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 26px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--navy-900); }
.brand__mark {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: #fff; display: grid; place-items: center; overflow: hidden;
  padding: 3px; border: 1px solid var(--line);
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font-size: 1.06rem; letter-spacing: .01em; }
.brand__name span { color: var(--red); }
.nav__links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__links a {
  padding: 10px 16px; border-radius: 11px; font-weight: 600; font-size: .96rem; color: var(--ink);
  transition: background .15s, color .15s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { background: var(--bg-alt); color: var(--blue); }
.nav__cta { margin-left: 18px; }
.nav__cta .btn { padding: 12px 24px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 9px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 5px auto; transition: .25s; }
body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown (services / zones) */
.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; font-size: .92rem; }

/* --- 6. Hero + carrousel ------------------------------------------------- */
.hero { position: relative; min-height: max(560px, calc(100svh - var(--header-h))); display: flex; align-items: center; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
  transition: opacity 1s ease, transform 6s ease;
  transform: scale(1.08);
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(7,32,58,.92) 0%, rgba(7,32,58,.78) 42%, rgba(7,32,58,.35) 100%);
}
.hero__inner { position: relative; z-index: 2; color: #fff; max-width: 680px; padding: 56px 0; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); text-transform: uppercase; line-height: 1.08; }
.hero h1 .accent { color: var(--red); }
.hero p { margin-top: 20px; font-size: 1.14rem; color: #dbe6f2; max-width: 56ch; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stat { margin-top: 34px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero__stat b { display: block; font-size: 1.9rem; color: var(--red); font-weight: 800; }
.hero__stat span { font-size: .9rem; color: #c6d4e3; }
/* puces du carrousel */
.hero__dots { position: absolute; z-index: 3; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.hero__dots button { width: 30px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); transition: background .2s, width .2s; }
.hero__dots button.is-active { background: var(--red); width: 46px; }

/* --- 7. Section "Qui sommes-nous" / texte + image ------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
/* Variante logo : affiche le logo entier (pas de recadrage) sur un panneau clair */
.split__media--logo { width: fit-content; max-width: 100%; margin-inline: auto; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; place-items: center; padding: clamp(16px, 2.4vw, 26px); }
.split__media--logo img { width: auto; max-width: 100%; max-height: 360px; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; }
.feature { display: flex; gap: 16px; margin-top: 22px; }
.feature__icon { flex: none; width: 48px; height: 48px; border-radius: 16px; background: var(--bg-alt); display: grid; place-items: center; color: var(--blue); }
.feature h3 { font-size: 1.06rem; color: var(--navy-900); margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* --- 8. Grille de services (cartes navy) --------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--navy-700); color: #fff; border-radius: var(--radius); padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__icon { width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--navy-900); display: grid; place-items: center; margin-bottom: 18px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: #bcd0e6; font-size: .96rem; flex: 1; }
.card a.card__link { margin-top: 18px; color: #fff; font-weight: 700; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }
.card a.card__link:hover { color: var(--red); }

/* --- 9. Réalisations / galerie ------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(7,32,58,.82); color: #fff; font-size: .82rem; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.gallery__item::after { content:""; position:absolute; inset:0; background: linear-gradient(transparent 55%, rgba(7,32,58,.45)); }

/* --- 10. FAQ accordéon --------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; font-weight: 700; font-size: 1.06rem; color: var(--navy-900);
}
.faq__q .ico { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--line); font-size: 0; transition: background .25s, border-color .25s; }
.faq__q:hover .ico { border-color: var(--blue); }
.faq__q .ico::before, .faq__q .ico::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--blue); transform: translate(-50%, -50%); transition: transform .3s ease, opacity .2s, background .25s; }
.faq__q .ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.open .faq__q .ico { background: var(--red-soft); border-color: transparent; }
.faq__item.open .faq__q .ico::before, .faq__item.open .faq__q .ico::after { background: var(--red); }
.faq__item.open .faq__q .ico::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 4px 22px; color: var(--muted); }

/* --- 11. Témoignages ----------------------------------------------------- */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 12px; }
.review p { color: var(--ink); font-size: .97rem; }
.review__author { margin-top: 16px; font-weight: 700; color: var(--navy-900); }
.review__author span { display: block; font-weight: 500; color: var(--muted); font-size: .88rem; }

/* Carrousel de témoignages (défilement continu) */
.reviews-carousel {
  margin-top: 44px; overflow: hidden; padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.reviews-track { display: flex; gap: 22px; width: max-content; animation: reviews-scroll 40s linear infinite; }
.reviews-carousel:hover .reviews-track,
.reviews-carousel:focus-within .reviews-track { animation-play-state: paused; }
.reviews-track .review { width: 335px; flex: none; }
@keyframes reviews-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 560px) {
  .reviews-carousel { margin-top: 28px; padding: 10px 0; }
  .reviews-track { gap: 14px; }
  .reviews-track .review { width: 230px; padding: 16px 17px; border-radius: var(--radius-sm); }
  .reviews-track .review p { font-size: .88rem; line-height: 1.5; }
  .reviews-track .stars { margin-bottom: 8px; font-size: .92rem; }
  .reviews-track .review__author { margin-top: 12px; font-size: .92rem; }
  .reviews-track .review__author span { font-size: .82rem; }
}
/* accessibilité : pas de défilement auto, on passe en scroll manuel */
@media (prefers-reduced-motion: reduce) {
  .reviews-carousel { overflow-x: auto; }
  .reviews-track { animation: none; }
}

/* --- 12. Bandeau CTA ----------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--blue)); color: #fff; border-radius: var(--radius-lg); padding: 52px; text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; }
.cta-band p { color: #cfe0f1; margin: 12px auto 26px; max-width: 56ch; }

/* --- 13. Formulaire de contact ------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.contact-info li { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .ico { flex: none; width: 46px; height: 46px; border-radius: 16px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.contact-info b { display: block; color: var(--navy-900); }
.contact-info a, .contact-info span { color: var(--muted); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px;
  font: inherit; color: var(--ink); background: var(--bg-alt); transition: border .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 14px; }
.form__status { display: none; padding: 14px; border-radius: 14px; margin-bottom: 16px; font-weight: 600; }
.form__status.ok { display: block; background: #e6f6ec; color: #1c7a3e; }
.form__status.err { display: block; background: #fdecea; color: var(--red-600); }

/* --- 14. Footer ---------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #b9cadb; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 10px; font-size: .95rem; }
.footer-contact li { margin-bottom: 12px; font-size: .95rem; display: flex; gap: 10px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .2s; }
.socials a:hover { background: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.footer-bottom a { text-decoration: underline; }

/* --- 15. Bandeau cookies ------------------------------------------------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 440px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 22px; display: none;
}
.cookie.show { display: block; }
.cookie h4 { color: var(--navy-900); margin-bottom: 8px; }
.cookie p { font-size: .88rem; color: var(--muted); }
.cookie__actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie .btn { padding: 10px 18px; font-size: .9rem; }
.cookie .btn--text { color: var(--muted); padding: 10px 14px; }

/* --- 16. Page interne : en-tête de page --------------------------------- */
.page-hero { background: var(--navy-900); color: #fff; padding: 60px 0; position: relative; overflow: hidden; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.page-hero::after { content:""; position:absolute; right:-80px; top:-80px; width:320px; height:320px; border-radius:50%; background: rgba(29,78,137,.35); filter: blur(20px); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: .85rem; color: #9fb4ca; margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: #c6d4e3; margin-top: 12px; max-width: 64ch; }

/* prose (pages services / villes / légales) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; color: var(--navy-900); margin: 38px 0 14px; }
.prose h3 { font-size: 1.2rem; color: var(--navy-900); margin: 26px 0 10px; }
.prose p, .prose li { color: #34465a; margin-bottom: 12px; }
.prose ul { margin: 0 0 16px; padding-left: 0; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content:"✓"; position:absolute; left:0; color: var(--red); font-weight: 800; }
.prose a { color: var(--blue); text-decoration: underline; }
.sidebar-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.sidebar-card h3 { color: var(--navy-900); margin-bottom: 14px; }
.with-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }

/* check list 2 col */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 18px 0; }

/* carte Google (page contact) */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); line-height: 0; }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.15); }
@media (max-width: 560px) { .map-embed iframe { height: 300px; } }

/* --- Icônes SVG ---------------------------------------------------------- */
.card__icon svg, .feature__icon svg, .contact-info .ico svg { width: 24px; height: 24px; }
svg.ic { width: 1.05em; height: 1.05em; flex: none; vertical-align: -.16em; }
.btn svg.ic { width: 18px; height: 18px; }
.footer-contact svg.ic { width: 17px; height: 17px; margin-top: 3px; color: #8aa1b8; }
.gallery__tag svg.ic { width: 14px; height: 14px; }
.socials a svg { width: 19px; height: 19px; }

/* --- 17. Responsive ------------------------------------------------------ */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; margin-left: auto; }
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 18px 24px; gap: 4px;
    transform: translateY(-120%); transition: transform .28s ease; box-shadow: var(--shadow); margin-left: 0;
  }
  body.nav-open .nav__links { transform: none; }
  .nav__links a { padding: 13px 12px; }
  .nav__cta { margin: 8px 0 0; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .cards, .gallery { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-band { padding: 38px 22px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .gallery, .checks, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero__inner { padding: 30px 0; }
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.45rem); }
  .hero p { margin-top: 16px; font-size: 1.05rem; }
  .hero__actions { margin-top: 26px; gap: 12px; }
  .hero__stat { margin-top: 30px; gap: 24px; }
  .hero__stat b { font-size: 1.7rem; }
  .hero__stat span { font-size: .85rem; }
}

/* --- 18. Blog / Article -------------------------------------------------- */
.article { max-width: 760px; }

/* méta dans le page-hero (date, temps de lecture, catégorie) */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; font-size: .85rem; color: #9fb4ca; }
.article-meta .pill { background: rgba(255,255,255,.12); color: #fff; padding: 5px 13px; border-radius: 999px; font-weight: 600; }
.article-meta .dot { opacity: .45; }

/* image de couverture */
.article__cover { margin: 6px 0 30px; }
.article__cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16/9; object-fit: cover; }
.article__cover figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Réponse directe en tête (GEO — bloc extractible par les IA) */
.key-takeaway { background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius-sm); padding: 22px 26px; margin: 0 0 30px; }
.key-takeaway h2 { font-size: .82rem; color: var(--blue); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.key-takeaway p { color: var(--ink); margin: 0; font-size: 1.04rem; }

/* Sommaire (table des matières) */
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; margin: 0 0 32px; box-shadow: var(--shadow); }
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.toc li { counter-increment: toc; margin-bottom: 9px; padding-left: 32px; position: relative; }
.toc li:last-child { margin-bottom: 0; }
.toc li::before { content: counter(toc); position: absolute; left: 0; top: 0; width: 23px; height: 23px; background: var(--blue); color: #fff; border-radius: 50%; font-size: .74rem; font-weight: 700; display: grid; place-items: center; }
.toc a { color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.toc a:hover { color: var(--blue); }

/* Encadré chiffre-clé */
.callout { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--navy-900); color: #fff; border-radius: var(--radius-sm); padding: 22px 26px; margin: 26px 0; }
.callout b { font-size: 2rem; color: var(--red); font-weight: 800; line-height: 1; white-space: nowrap; }
.callout p { color: #cfe0f1 !important; margin: 0 !important; font-size: .95rem; }

/* Boîte auteur (signaux E-E-A-T) */
.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 40px 0 0; }
.author-box__avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; padding: 7px; }
.author-box__avatar img { width: 100%; height: 100%; object-fit: contain; }
.author-box h3 { font-size: 1.05rem; color: var(--navy-900); margin: 0 0 2px; }
.author-box .role { font-size: .85rem; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.author-box p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Étiquettes (tags) */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.tags span { font-size: .82rem; font-weight: 600; color: var(--blue); background: var(--bg-alt); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }

/* Note de mise à jour */
.update-note { font-size: .85rem; color: var(--muted); font-style: italic; margin-top: 4px; }

/* Liste d'articles (index blog + articles liés) */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card__media { aspect-ratio: 16/9; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.post-card h3 { font-size: 1.12rem; color: var(--navy-900); margin-bottom: 10px; line-height: 1.25; }
.post-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.post-card__meta { margin-top: 16px; font-size: .82rem; color: #9fb4ca; }
.post-card__link { margin-top: 14px; color: var(--blue); font-weight: 700; font-size: .9rem; }
.post-card__link:hover { color: var(--red); }

@media (max-width: 860px) { .post-grid { grid-template-columns: repeat(2, 1fr); } .callout { grid-template-columns: 1fr; gap: 8px; } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } .author-box { flex-direction: column; } }

/* accessibilité : réduit les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .hero__slide { transform: none !important; }
}
