/* Elite Coding — thème « Bleu confiance » */
:root {
  --navy: #0B1B3F;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-soft: #E3ECFF;
  --blue-pale: #DBE7FF;
  --bg-soft: #F6F8FC;
  --line: #E4EAF5;
  --line-strong: #CBD6EC;
  --text: #0B1B3F;
  --muted: #3A4A6B;
  --subtle: #5B6A88;
  --radius: 24px;
  --font: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-dark); }
img, svg { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-weight: 800; font-size: clamp(30px, 4vw, 50px); }
h3 { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; }
p { margin: 0; }
input, select, textarea, button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.section { padding-top: 104px; padding-bottom: 104px; }
.section-tight { padding-bottom: 104px; }
.section-top { padding-top: 88px; }
.band { background: var(--bg-soft); }
.center { text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }
.eyebrow { display: block; font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.pill { display: inline-flex; font-size: 14px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 6px 14px; }
.link { font-weight: 700; color: var(--blue); min-height: 44px; display: inline-flex; align-items: center; }
.link-light { font-weight: 700; color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
.link-light:hover { color: var(--blue-pale); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 30px rgba(37, 99, 235, .28); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { color: #fff; background: #12285A; }
.btn-outline { background: #fff; border-color: var(--line-strong); color: var(--text); }

/* Header */
.site-header { background: var(--bg-soft); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand-light { color: #fff; margin-bottom: 12px; }
.nav-links { display: flex; align-items: center; gap: 6px 30px; font-size: 15px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; }

/* Hero */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 64px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -0.045em; margin: 24px 0 22px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; font-weight: 600; color: var(--muted); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { color: var(--blue); }

/* Ville 3D */
.hero-3d { flex: 1 1 520px; min-width: 0; height: 600px; position: relative; display: flex; align-items: center; justify-content: center; }
.float { margin-top: 170px; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.scene { position: relative; width: 360px; height: 360px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-45deg); }
.ground { position: absolute; inset: 0; border-radius: 16px; background-color: #fff; border: 1px solid #D5DEEE; box-shadow: 40px 40px 80px rgba(11, 27, 63, .12);
  background-image: linear-gradient(#EEF2F9 1px, transparent 1px), linear-gradient(90deg, #EEF2F9 1px, transparent 1px); background-size: 30px 30px; }
.blk { position: absolute; width: 100px; height: 100px; transform-style: preserve-3d; }
.top { position: absolute; inset: 0; border-radius: 6px; transform-style: preserve-3d; transform: translateZ(var(--h)); display: flex; align-items: flex-end; padding: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.eb { position: absolute; left: 0; top: 100%; width: 100%; height: var(--h); transform-origin: top; transform: rotateX(-90deg); }
.er { position: absolute; left: 100%; top: 0; width: var(--h); height: 100%; transform-origin: left; transform: rotateY(90deg); }
.t-navy { background: var(--navy); color: #fff; } .t-navy .eb { background: #050E24; } .t-navy .er { background: #08142F; }
.t-blue { background: var(--blue); color: #fff; } .t-blue .eb { background: #1645B0; } .t-blue .er { background: #1D52CC; }
.t-light { background: var(--blue-pale); } .t-light .eb { background: #B7CBF2; } .t-light .er { background: #C8D8F8; }
.t-white { background: #fff; border: 1px solid #D5DEEE; } .t-white .eb { background: #E3EAF6; } .t-white .er { background: #EDF2FA; }
.t-dashed { border: 2px dashed var(--blue); color: var(--blue); }
.chip { position: absolute; border-radius: 16px; padding: 14px 18px; font-size: 14px; }
.chip-top { top: 40px; right: 0; background: #fff; border: 1px solid #D5DEEE; box-shadow: 0 20px 40px rgba(11, 27, 63, .1); display: flex; flex-direction: column; }
.chip-top span { color: var(--muted); }
.chip-term { bottom: 30px; left: 0; background: var(--navy); color: #fff; font-family: var(--mono); font-size: 13px; box-shadow: 0 20px 40px rgba(11, 27, 63, .25); }
.dot-green { color: #6EE7B7; }

/* Confiance */
.trust { border-bottom: 1px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; font-weight: 700; color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.logo-ph { width: 120px; height: 36px; border-radius: 8px; background: #F1F4FA; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: var(--subtle); }

/* Estimation */
.brief { background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.brief-text { flex: 1 1 340px; }
.brief-text .mono { color: #9DB4E8; display: block; margin-bottom: 12px; }
.brief-text h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.brief-text p { color: #C3D0EC; }
.brief-form { flex: 1 1 480px; background: #fff; border-radius: 20px; padding: 14px; color: var(--text); }
.brief-form textarea { width: 100%; border: 0; outline: none; resize: none; padding: 8px; font-size: 16px; color: var(--text); }
.brief-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { min-height: 36px; border: 1px solid #D5DEEE; background: var(--bg-soft); color: var(--muted); border-radius: 999px; padding: 0 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tag:hover { border-color: var(--blue); color: var(--blue); }

/* Sections */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 48px; }
.section-head > div { max-width: 680px; }
.section-head > p { max-width: 400px; color: var(--muted); }
.section-head.center { justify-content: center; text-align: center; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.span2 { grid-column: span 2; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card p { color: var(--muted); }
.card-soft { background: var(--bg-soft); }
.card-dark { background: var(--navy); color: #fff; border: 0; padding: 32px; overflow: hidden; }
.card-dark h3 { font-size: 28px; margin-bottom: 10px; }
.card-dark p { color: #C3D0EC; margin-bottom: 16px; }
.card-split { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.card-split > div { flex: 1 1 260px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; background: var(--blue); border-radius: 999px; padding: 3px 12px; margin-bottom: 16px; }
.code-wrap { perspective: 1000px; }
.code { margin: 0; background: #12285A; border: 1px solid #23407F; border-radius: 16px; padding: 18px; font-family: var(--mono); font-size: 13px; line-height: 1.8; color: #DBE7FF; transform: rotateY(-14deg) rotateX(6deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.code .k { color: #7FA3F0; } .code b { color: #fff; font-weight: 500; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.icon-solid { background: var(--blue); color: #fff; }
.icon-navy { background: var(--navy); color: #fff; }
.card-wide { grid-column: span 2; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 20px; align-items: center; align-content: center; }
.card-wide .icon { grid-row: span 2; margin: 0; }
.card-wide h3 { margin: 0; }

/* Pourquoi */
.why { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 104px; padding-bottom: 104px; }
.why > div:first-child { flex: 1 1 380px; }
.why h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 16px; }
.why .muted { margin-bottom: 28px; }
.why-grid { flex: 1 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.mini strong { display: block; font-size: 18px; margin-bottom: 6px; }
.mini p { color: var(--muted); font-size: 15px; }

/* Offres */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.offer { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; position: relative; }
.offer-name { font-size: 20px; }
.offer-lead { color: var(--muted); font-size: 15px; margin: 6px 0 20px; }
.offer-price { font-weight: 800; font-size: 34px; letter-spacing: -0.03em; margin-bottom: 20px; }
.offer-price small { font-size: 16px; font-weight: 600; color: var(--subtle); }
.offer ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
.offer .btn { margin-top: auto; }
.offer-featured { background: var(--navy); color: #fff; border: 0; box-shadow: 0 30px 60px rgba(11, 27, 63, .22); }
.offer-featured .offer-lead { color: #C3D0EC; }
.offer-featured ul { color: var(--blue-pale); }
.offer-flag { position: absolute; top: -14px; left: 32px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 12px; }

/* Étapes */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.steps .mono { color: var(--blue); display: block; margin-bottom: 14px; }
.steps strong { display: block; font-size: 19px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }
.steps .step-dark { background: var(--navy); color: #fff; border: 0; }
.steps .step-dark .mono { color: #9DB4E8; } .steps .step-dark p { color: #C3D0EC; }

/* Grilles & cartes */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.ph { height: 180px; background: #F1F4FA; display: flex; align-items: center; justify-content: center; color: var(--subtle); font-size: 13px; }
.ph-lg { height: 240px; border-radius: 22px; border: 1px solid var(--line); margin-bottom: 18px; }
.project-cover { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 18px 40px -24px rgba(11, 27, 63, .45); border: 1px solid var(--line); margin-bottom: 18px; background: #0B1B3F; }
.project-solo .project { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.project-solo .project-cover { margin-bottom: 0; }
@media (max-width: 760px) { .project-solo .project { grid-template-columns: 1fr; gap: 18px; } }
.tag-soft { display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 3px 10px; }
.project h3 { font-size: 20px; margin: 12px 0 4px; }
.quote { margin: 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.stars { color: var(--blue); letter-spacing: 2px; margin-bottom: 12px; }
.quote blockquote { margin: 0 0 20px; font-size: 19px; font-weight: 600; line-height: 1.5; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote small { display: block; font-size: 14px; color: var(--subtle); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-pale); }
.post { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.post-img { display: block; width: 100%; height: 180px; object-fit: cover; background: #F1F4FA; border-bottom: 1px solid var(--line); transition: transform .4s ease; }
.post:hover .post-img { transform: scale(1.03); }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--subtle); margin-bottom: 10px; }
.post h3 { font-size: 19px; line-height: 1.3; }
.post p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.post .link { margin-top: auto; }

/* Lien qui rend toute la carte cliquable */
.card, .post { position: relative; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible), .post:has(.card-link:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.card-dark .card-link:hover { color: #fff; }
.card-hover { transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-hover:hover { border-color: var(--line-strong); box-shadow: 0 20px 40px rgba(11, 27, 63, .08); transform: translateY(-2px); }

/* Pages intérieures */
.nav-links a[aria-current="page"] { color: var(--blue); }
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 28px 0 72px; }
.page-hero h1 { font-weight: 800; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.05; letter-spacing: -0.045em; margin: 20px 0 18px; max-width: 900px; }
.page-hero h1 em { font-style: normal; color: var(--blue); }
.page-hero .lead { max-width: 680px; }
.page-hero-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.page-hero-grid > div { flex: 1 1 520px; min-width: 0; }
.offer-hero { flex: 0 1 380px; margin-top: 16px; }
.offer-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.offer-facts div { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 14px; }
.offer-facts dt { font-size: 13px; color: #9DB4E8; }
.offer-facts dd { margin: 0; font-weight: 800; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--subtle); margin-bottom: 28px; }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--blue-dark); }
.h2-sm { font-size: clamp(26px, 3vw, 36px); margin-bottom: 20px; }
.two-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { color: var(--blue); flex: none; margin-top: 4px; }
.deliverables { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.deliverables li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; font-weight: 600; }
.chips-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips-list .tag { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.cta-band { justify-content: space-between; }
.cta-actions { flex: 0 0 auto; }
.training-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 20px; }
.training-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.training-head .icon { margin: 0; flex: none; }
.training-meta { font-size: 14px; }
.training .ticks { font-size: 15px; }

/* Article */
.article-hero { padding-bottom: 48px; }
.article-hero .post-meta { justify-content: flex-start; gap: 14px; margin-bottom: 0; }
.article-title { font-size: clamp(32px, 4.2vw, 50px) !important; }
.article-cover { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); margin: 40px 0 8px; }
.prose { font-size: 18px; line-height: 1.75; color: #1F2E4F; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 44px; color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose .sources { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--subtle); }
.article-aside { margin: 48px 0 0; background: var(--blue-soft); border-radius: 20px; padding: 24px 28px; }
.article-aside strong { display: block; font-size: 18px; margin-bottom: 4px; }
.article-aside p { color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { font-size: 24px; color: var(--blue); transition: transform .2s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 20px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact-text { flex: 1 1 380px; }
.xl { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -0.045em; margin-bottom: 16px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 14px; font-weight: 600; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.icon-sm { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.form-card { flex: 1 1 480px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 30px 70px rgba(11, 27, 63, .1); }
.contact-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.contact-form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; background: #FBFCFE; color: var(--text); }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.field-errors { list-style: none; margin: 0; padding: 0; color: #B42318; font-size: 14px; }
.form-note { text-align: center; font-size: 13px; color: var(--subtle); }
.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.alert-success { background: #E7F8EF; color: #136C3B; }
.alert-error { background: #FDECEC; color: #B42318; }

/* Footer */
.site-footer { background: var(--navy); color: #C3D0EC; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px; padding-top: 56px; padding-bottom: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col strong { color: #fff; margin-bottom: 4px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #9DB4E8; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid #1E3363; }

/* Responsive */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { grid-column: auto; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0 4px; }
  .nav-links.open { display: flex; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .card-wide { display: block; }
  .card-wide .icon { margin-bottom: 20px; }
  .city { transform: scale(.68); }
  .hero-3d { height: 440px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
  html { scroll-behavior: auto; }
}

/* Pages légales & erreurs */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }
.error-page { padding: 96px 0 120px; }
.error-page .actions { justify-content: center; }
.error-page .lead { margin-left: auto; margin-right: auto; }
.error-code { display: block; color: var(--blue); margin-bottom: 8px; }

/* Blog : filtres et aperçu admin */
.blog-filters { margin-bottom: 32px; }
.blog-filters .tag[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.preview-banner { background: #FFF4D6; color: #8A5A00; text-align: center; padding: 12px 24px; font-weight: 700; font-size: 15px; }
.preview-banner a { text-decoration: underline; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0 0; }
.prose hr + p { font-size: 14px; color: var(--subtle); }
.prose hr + p em { font-style: normal; }

/* Vidéos */
.video-player { margin: 0; }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--navy); cursor: pointer; color: #fff; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-facade:hover img { transform: scale(1.02); }
.video-facade:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.video-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px rgba(11, 27, 63, .35); transition: background .15s, transform .15s; }
.video-play svg { margin-left: 4px; }
.video-facade:hover .video-play, .video-facade:focus-visible .video-play { background: var(--blue-dark); transform: scale(1.06); }
.video-duration { position: absolute; right: 12px; bottom: 12px; background: rgba(11, 27, 63, .88); color: #fff; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 2px 8px; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; background: #000; }
.video-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 14px; color: var(--subtle); margin-top: 10px; }
.video-caption a { color: var(--blue); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.video-caption span { min-height: 44px; display: inline-flex; align-items: center; }
.video-page { padding-top: 40px; padding-bottom: 72px; }
.video-page .h2-sm { margin-top: 40px; }
.prose .video-player { margin: 32px 0; }
.video-thumb { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.video-card .post-img { height: auto; aspect-ratio: 16 / 9; border-bottom: 0; }
.video-play-sm { width: 52px; height: 52px; }
.transcript { margin-top: 32px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.transcript summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; font-weight: 700; color: var(--blue); }
.transcript .prose { padding-bottom: 20px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
  .video-facade img, .video-play { transition: none; }
}
.grid-fill { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
