/* EProjets Lab, site maquettes de territoire (v1, novembre 2026) */

@font-face { font-family: "Metropolis"; src: url("../fonts/Metropolis-Regular.woff2") format("woff2"), url("../fonts/Metropolis-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../fonts/Metropolis-Medium.woff2") format("woff2"), url("../fonts/Metropolis-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../fonts/Metropolis-SemiBold.woff2") format("woff2"), url("../fonts/Metropolis-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../fonts/Metropolis-ExtraBold.woff2") format("woff2"), url("../fonts/Metropolis-ExtraBold.otf") format("opentype"); font-weight: 800; font-display: swap; }

:root {
  --ink: #14163a;
  --body: #474b57;
  --muted: #5f6470;
  --navy: #0f1255;
  --navy-deep: #0a0c3e;
  --violet: #710ab2;
  --cyan: #3fd8ff;
  --paper: #ffffff;
  --mist: #f3f4f8;
  --line: #e2e5ec;
  --font: "Metropolis", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; font-size-adjust: from-font; line-height: 1.65; color: var(--body); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); line-height: 1.14; }
h3 { font-size: 1.22rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 4px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); margin: 0 0 18px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease); white-space: nowrap; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--violet); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn:active { transform: scale(0.98); }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.header.scrolled { border-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--violet); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
.burger span { top: 21px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Accroche */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.lead { font-size: 1.2rem; line-height: 1.6; margin: 26px 0 34px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fig { margin: 0 -120px 0 0; }
.hero-fig img { border-radius: 10px; width: 100%; box-shadow: 0 40px 80px -40px rgba(15, 18, 85, 0.35); }
figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.proofs { list-style: none; margin: 76px 0 0; padding: 34px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); }
.proofs strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.02rem; margin-bottom: 4px; }
.proofs span { font-size: 0.94rem; line-height: 1.55; display: block; }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-intro { font-size: 1.08rem; margin: 22px 0 0; max-width: 40em; }

/* Usages */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.use { padding: 36px 36px 8px 0; }
.use + .use { padding-left: 36px; border-left: 1px solid var(--line); }
.use h3 { margin-bottom: 14px; }
.use-for { font-size: 0.84rem; color: var(--muted); margin-top: 20px; }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.format { background: var(--paper); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.format figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #dcdde3; }
.format figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.format:hover figure img { transform: scale(1.03); }
.format-body { padding: 30px 32px 30px; display: flex; flex-direction: column; flex: 1; }
.format-body h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.format-body ul { list-style: none; padding: 0; margin: 6px 0 24px; font-size: 0.94rem; }
.format-body li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; }
.format-body li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 2px; background: var(--violet); }
.price { margin: auto 0 0; font-size: 0.95rem; color: var(--muted); }
.price strong { color: var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; margin-left: 4px; }
.note { margin: 36px 0 0; font-size: 0.92rem; color: var(--muted); }

/* Méthode */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.step-n { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; color: var(--violet); margin-bottom: 14px; }
.step-n::before { content: "0"; }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 0.96rem; margin: 0; }

/* Référence */
.section-dark { background: var(--navy-deep); color: rgba(255, 255, 255, 0.78); padding: 96px 0; }
.section-dark h2 { color: #fff; margin-bottom: 22px; }
.section-dark .eyebrow { color: var(--cyan); }
.ref { display: grid; grid-template-columns: 1fr auto; gap: 72px; align-items: center; }
.ref-text { max-width: 720px; }
.ref-text p:last-child { margin: 0; font-size: 1.06rem; }
.ref-logo { background: #fff; border-radius: 12px; padding: 26px 34px; }
.ref-logo img { width: 150px; height: auto; }

/* Questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-weight: 600; font-size: 1.08rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 26px; max-width: 46em; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.contact-text h2 { margin-bottom: 20px; }
.team { margin: 34px 0 26px; display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center; }
.team img { width: 104px; height: 104px; object-fit: cover; object-position: 50% 30%; border-radius: 50%; }
.team figcaption { margin: 0; font-size: 0.93rem; color: var(--body); line-height: 1.5; }
.team strong { color: var(--ink); }
.direct { font-weight: 600; line-height: 1.9; margin: 0; }
.direct a { color: var(--ink); text-decoration: none; }
.direct a:hover { color: var(--violet); }
.form { background: var(--paper); border-radius: 14px; padding: 38px; border: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; transition: border-color 0.15s; }
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: 2px solid transparent; border-color: var(--violet); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-weight: 400; font-size: 0.84rem; color: var(--body); margin: 4px 0 24px; line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--violet); }
.form-status { margin: 16px 0 0; font-size: 0.94rem; min-height: 1.4em; }
.form-status.ok { color: #14724a; }
.form-status.err { color: #b3261e; }

/* Curseur avant / après */
.section-tight { padding-top: 0; }
.compare-wrap .section-head { margin-bottom: 36px; }
.compare { margin: 0; --pos: 45%; }
.compare-stage { position: relative; border-radius: 12px; overflow: hidden; }
.compare img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.compare .compare-top { position: absolute; inset: 0; height: 100%; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-bar { position: absolute; top: 0; left: var(--pos); width: 2px; height: 100%; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare-bar::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%; background: #fff url("../img/icons/compare.svg") center / 22px no-repeat; transform: translate(-50%, -50%); box-shadow: 0 6px 20px rgba(10, 12, 62, 0.3); }
.compare-range { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-stage:has(.compare-range:focus-visible) { outline: 2px solid var(--violet); outline-offset: 4px; }
.compare-tag { position: absolute; top: 18px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: rgba(255, 255, 255, 0.92); padding: 7px 12px; border-radius: 999px; pointer-events: none; }
.compare-tag-l { left: 18px; }
.compare-tag-r { right: 18px; }

/* Collectivités */
.buy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.buy > div { border-top: 2px solid var(--violet); padding-top: 22px; }
.buy h3 { margin-bottom: 10px; }
.buy p { font-size: 0.96rem; margin: 0; }
.note + .note { margin-top: 12px; }
.note strong { color: var(--ink); font-weight: 600; }
.price strong { white-space: nowrap; }
.ref-link { margin-top: 22px !important; }
.ref-link a { color: var(--cyan); font-weight: 600; text-decoration: none; }
.ref-link a::after { content: "  →"; }
.use-for a { color: var(--violet); }
.form-tint { background: var(--mist); border-color: transparent; }
.section-alt .faq, .section-alt .faq details { border-color: #d9dce6; }

/* Page secondaire */
.hero-page { padding-bottom: 96px; }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.case figure { margin: 0; }
.case img { border-radius: 12px; width: 100%; }
.nav a[aria-current="page"] { color: var(--violet); }

/* Pied de page */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.66); padding: 44px 0; font-size: 0.88rem; }
.footer-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer p { margin: 16px 0 0; line-height: 1.6; }
.footer nav { display: flex; gap: 26px; }
.footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer a:hover { color: #fff; }

/* Apparition */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 980px) {
  .hero { padding-top: 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-fig { margin: 0; }
  .proofs { grid-template-columns: 1fr; gap: 22px; margin-top: 48px; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 40px; }
  .uses { grid-template-columns: 1fr; }
  .use, .use + .use { padding: 28px 0 10px; border-left: 0; }
  .use + .use { border-top: 1px solid var(--line); }
  .formats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .ref { grid-template-columns: 1fr; gap: 36px; }
  .buy { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .case { grid-template-columns: 1fr; }
  .ref-logo { justify-self: start; }
  .contact { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 24px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 20px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 20px; }
  .lead { font-size: 1.08rem; }
  .hero-cta .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .buy { grid-template-columns: 1fr; }
  .compare-tag { top: 10px; font-size: 0.66rem; padding: 5px 9px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 24px 20px; }
  .format-body { padding: 24px 22px; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}

/* Pages légales et page introuvable */
.legal { padding: 72px 0 112px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; margin: 44px 0 14px; }
.legal h3 { margin: 28px 0 10px; }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.notfound { padding: 140px 0 160px; }
.notfound h1 { margin-bottom: 20px; }
.notfound p { margin-bottom: 32px; font-size: 1.1rem; }
.field-note { font-size: 0.86rem; color: var(--muted); margin: 14px 0 0; }
.tag { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; position: relative; top: -2px; }
.team-line { margin: 28px 0 22px; }
.team-line strong { color: var(--ink); }

/* ===== v2, pages séparées (13 novembre 2026) ===== */
.tagline { font-size: 1.3rem; font-weight: 600; color: var(--violet); margin: 18px 0 0; letter-spacing: -0.01em; }
.hero-page h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.hero-short { padding-bottom: 56px; }
.hero-short .lead { margin-bottom: 28px; }
.section-flush { padding-top: 24px; }
.hero-fig figure { margin: 0; }

/* Fil d'Ariane */
.crumbs { margin: 0 0 22px; font-size: 0.86rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }

/* Menu : sous-menu « Nos maquettes » */
.nav-group { position: relative; }
.nav-toggle { font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.nav-toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.2s var(--ease); }
.nav-toggle:hover, .nav-group.is-current .nav-toggle { color: var(--violet); }
.nav-sub { position: absolute; top: calc(100% + 18px); left: -22px; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-shadow: 0 24px 48px -24px rgba(15, 18, 85, 0.3); display: none; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.nav-sub a { display: block; padding: 9px 12px; border-radius: 6px; }
.nav-sub a:hover { background: var(--mist); }
.nav-group:hover .nav-sub, .nav-toggle[aria-expanded="true"] + .nav-sub { display: block; }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
@media (max-width: 960px) {
  .nav-group { border-bottom: 1px solid var(--line); padding: 15px 0 8px; }
  .nav-toggle { font-size: 1.05rem; pointer-events: none; }
  .nav-toggle::after { display: none; }
  .nav-sub { position: static; display: block; border: 0; box-shadow: none; padding: 6px 0 0 12px; min-width: 0; }
  .nav-sub::before { display: none; }
  .nav .nav-sub a { padding: 8px 0; border-bottom: 0; font-size: 1rem; }
  .nav { max-height: calc(100vh - 76px); overflow-y: auto; }
}

/* Cartes des maquettes (accueil) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: border-color 0.2s; }
.card:hover { border-color: #c9cdda; }
.card figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #dcdde3; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover figure img { transform: scale(1.03); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body h3 a:hover { color: var(--violet); }
.card-body p { font-size: 0.95rem; }
.card .price { margin-top: auto; }
.card .price strong { font-size: 1.05rem; }

/* Mise en page texte + image */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split-top { margin-top: 48px; align-items: start; }
.split figure, .case figure { margin: 0; }
.split img { border-radius: 12px; width: 100%; }
.prose h2 { margin-bottom: 20px; }
.prose h2:not(:first-child) { margin-top: 56px; }
.prose ul { padding-left: 20px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.uses-2 { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
.use .price { margin-top: 18px; }
.arrow { font-weight: 600; text-decoration: none; }
.arrow::after { content: "  →"; }
.arrow:hover { text-decoration: underline; }

/* Fiche technique */
.specs { margin: 0; border-top: 2px solid var(--ink); }
.specs > div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.specs dd { margin: 0; font-size: 0.96rem; }
.specs dd strong { color: var(--ink); }
.specs-inline { margin-top: 30px; }

/* Ils nous font confiance */
.trust { padding-top: 80px; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.trust-title { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--muted); text-align: center; margin-bottom: 34px; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px 64px; }
.logos img { height: 56px; width: auto; max-width: 190px; object-fit: contain; }
.logos img.logo-tall { height: 96px; }

/* Réalisations */
.projects { display: grid; gap: 56px; }
.project { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.project figure { margin: 0; }
.project img { border-radius: 12px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.project h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 14px; }
.project h2 a { color: var(--ink); text-decoration: none; }
.project h2 a:hover { color: var(--violet); }

/* FAQ : titres dans summary */
.faq summary h3 { font: inherit; color: inherit; margin: 0; letter-spacing: 0; display: inline; }
.faq-theme { font-size: 1.4rem; margin: 56px 0 18px; }
.faq-theme:first-child { margin-top: 0; }

/* 404 */
.notfound-links { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 10px; }

/* Pied de page en colonnes */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 40px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-h { font-weight: 600; color: #fff; margin: 0 0 14px !important; }
.footer-grid nav { display: block; }
.footer-legal p { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; }

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .split, .project { grid-template-columns: 1fr; gap: 36px; }
  .uses-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .specs > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .logos { gap: 28px 40px; }
  .logos img { height: 40px; }
  .logos img.logo-tall { height: 72px; }
}

/* ===== v3, recommandations Modern Web Guidance (15 novembre 2026) ===== */
/* Champs en erreur : visibles sans dépendre de la couleur seule */
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.consent:has(input[aria-invalid="true"]) span { color: #b3261e; }

/* Mouvement réduit : on coupe les déplacements, pas les changements de couleur */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .format:hover figure img, .card:hover figure img { transform: none; }
  .btn:active { transform: none; }
}

/* Transitions entre pages (Chrome, Edge, Safari ; les autres changent de page normalement) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .header { view-transition-name: site-header; }
}

/* Impression : tout le contenu visible, sans menu ni formulaire */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .header, .burger, .nav, .form, .skip, .hero-cta, .compare-range, .compare-bar, .compare-tag { display: none !important; }
  .section, .section-dark, .hero { padding: 24px 0; background: none; color: #000; }
  .section-dark h2, .section-dark p { color: #000; }
  a { color: inherit; }
}
.crumbs a[aria-current="page"] { color: var(--ink); text-decoration: none; }
