/* ==========================================================================
   NILE — Design System 2026
   Style industriel · thème clair blanc/noir · jaune signal
   ========================================================================== */
@import url("fonts/fonts.css");

:root {
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --ink: #0B0B0A;
  --ink-2: #22221F;
  --steel: #66665F;
  --steel-2: #8A8A82;
  --line: #E6E4DD;
  --line-2: #D8D6CE;
  --accent: #FFD400;
  --accent-2: #FFC800;
  --accent-soft: #FFF7CC;
  --danger: #E5484D;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --shadow-hard: 6px 6px 0 rgba(11, 11, 10, 1);
  --shadow-hard-sm: 4px 4px 0 rgba(11, 11, 10, 1);
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 2px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 800; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

/* ---------- Utilitaires ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--accent); outline: 1px solid var(--ink); flex: none; }
.on-dark .kicker { color: #EDEDE8; }

.stripe {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px);
}
.stripe--thin { height: 4px; }

/* grille technique en fond de hero */
.blueprint {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  padding: 15px 26px; border: 1px solid var(--ink); border-radius: var(--radius);
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  background: var(--white); color: var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-sm); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn--primary { background: var(--accent); border-color: var(--ink); }
.btn--primary:hover { background: var(--accent-2); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; }
.btn .arrow { font-family: var(--font-body); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250, 250, 247, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: 8px; }
.brand img { height: 30px; width: auto; }
.brand .brand-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel);
  border-left: 1px solid var(--line-2); padding-left: 12px; line-height: 1.5;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > .nav-item { position: relative; }
.nav a.nav-link {
  display: inline-block; padding: 10px 14px; text-decoration: none;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  border-radius: var(--radius);
}
.nav a.nav-link:hover { color: var(--ink); background: var(--accent-soft); }
.nav .nav-link.is-active { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-item > .drop {
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
  position: absolute; top: 100%; left: 0; min-width: 300px;
  background: var(--white); border: 1px solid var(--ink);
  box-shadow: var(--shadow-hard); padding: 8px; z-index: 300;
}
.nav-item:hover > .drop, .nav-item:focus-within > .drop { visibility: visible; opacity: 1; transform: translateY(2px); }
.drop a {
  display: block; padding: 10px 12px; text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.drop a:hover { background: var(--accent-soft); }
.drop .drop-head {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel); padding: 10px 12px 4px;
}
.drop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.header-cta { margin-left: 10px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--ink); border-radius: var(--radius); padding: 9px 12px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.hero .wrap { position: relative; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero h1 {
  font-size: clamp(38px, 6.2vw, 84px);
  font-weight: 900; letter-spacing: -0.03em; line-height: .98;
  max-width: 18ch; margin-bottom: 26px;
}
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 94%, transparent 94%); }
.hero .lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); max-width: 56ch; margin-bottom: 34px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .crosshair { position: absolute; color: var(--steel-2); font-family: var(--font-mono); font-size: 18px; user-select: none; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--steel);
  text-transform: uppercase;
}
.hero-meta span::before { content: "▪ "; color: var(--accent-2); }

/* hero de pages internes */
.page-hero { border-bottom: 1px solid var(--line-2); }
.page-hero .wrap { padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 60px); font-weight: 900; letter-spacing: -0.025em; max-width: 24ch; }
.page-hero .lead { font-size: clamp(16.5px, 1.4vw, 19px); color: var(--steel); max-width: 62ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; color: var(--steel); margin-bottom: 26px; text-transform: uppercase; }
.breadcrumb a { color: var(--steel); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--accent-2); padding: 0 6px; }

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 7vw, 96px) 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #F2F2EE; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section-head { max-width: 780px; margin-bottom: clamp(30px, 4vw, 54px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.section-head .sub { color: var(--steel); font-size: 17px; }
.section--dark .section-head .sub { color: #B9B9B0; }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 26px; position: relative;
  transition: transform .13s ease, box-shadow .13s ease, border-color .13s ease;
  display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; }
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); border-color: var(--ink); }
.card .num {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
  background: var(--accent); display: inline-block; padding: 3px 8px;
  margin-bottom: 16px; align-self: flex-start; font-weight: 600;
}
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.card p { color: var(--steel); font-size: 15px; margin-bottom: 0; }
.card .card-link { margin-top: auto; padding-top: 18px; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.card .card-link::after { content: " →"; color: var(--accent-2); }
.card-img { margin: -26px -26px 20px; border-bottom: 1px solid var(--line-2); aspect-ratio: 16/9; overflow: hidden; background: var(--paper); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-img img { transform: scale(1.03); }

/* cartes cas client */
.case-card .logo-box { height: 84px; display: flex; align-items: center; margin-bottom: 18px; }
.case-card .logo-box img { max-height: 56px; max-width: 190px; width: auto; object-fit: contain; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line-2); padding: 4px 10px; color: var(--steel); background: var(--paper);
}
.chip--accent { background: var(--accent-soft); border-color: var(--accent-2); color: var(--ink); }
.chip--filter { cursor: pointer; user-select: none; transition: all .12s; }
.chip--filter:hover { border-color: var(--ink); color: var(--ink); }
.chip--filter.is-on { background: var(--ink); color: var(--accent); border-color: var(--ink); }

/* ---------- Bandeau chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--ink); background: var(--white); }
.stat { padding: 30px 26px; border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--font-mono); font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.stat .n em { font-style: normal; color: var(--accent-2); }
.stat .l { font-size: 13.5px; color: var(--steel); margin-top: 10px; line-height: 1.45; }
.section--dark .stats { background: transparent; border-color: #3A3A36; }
.section--dark .stat { border-color: #3A3A36; }
.section--dark .stat .l { color: #A5A59C; }

/* ---------- Méthode (étapes numérotées, fond noir) ---------- */
.steps { display: grid; gap: 0; border: 1px solid #3A3A36; }
.step { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid #3A3A36; }
.step:last-child { border-bottom: 0; }
.step .idx {
  font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--accent);
  border-right: 1px solid #3A3A36; display: flex; align-items: center; justify-content: center;
  padding: 26px 0;
}
.step .body { padding: 26px 30px; }
.step .body h3 { font-size: 21px; margin-bottom: 6px; }
.step .body p { color: #B9B9B0; margin: 0; font-size: 15.5px; }
.step:hover { background: #141412; }

/* ---------- Logos clients ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.logo-cell {
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; padding: 26px 20px; height: 104px;
  background: var(--white); transition: background .15s;
}
.logo-cell img { max-height: 44px; max-width: 130px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .18s; }
.logo-cell:hover { background: var(--accent-soft); }
.logo-cell:hover img { filter: none; opacity: 1; }

/* ---------- Prose (articles) ---------- */
.prose { max-width: 760px; font-size: 17.5px; line-height: 1.75; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 1.7em 0 .6em; letter-spacing: -0.015em; }
.prose h3 { font-size: clamp(20px, 2vw, 24px); margin: 1.5em 0 .5em; }
.prose h4 { font-size: 18px; margin: 1.3em 0 .4em; }
.prose p { margin: 0 0 1.15em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: var(--accent-soft); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { content: "▪  "; color: var(--accent-2); }
.prose img { border: 1px solid var(--line-2); margin: 1.6em auto; }
.prose blockquote {
  margin: 1.8em 0; padding: 18px 26px; border-left: 4px solid var(--accent);
  background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  font-size: 18px;
}
.prose table { border-collapse: collapse; width: 100%; margin: 1.6em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--ink); color: var(--white); font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.prose tr:nth-child(even) td { background: var(--white); }
.prose pre, .prose code { font-family: var(--font-mono); font-size: 14px; background: var(--white); border: 1px solid var(--line-2); }
.prose code { padding: 2px 6px; }
.prose pre { padding: 16px; overflow-x: auto; }
.prose iframe { max-width: 100%; }

/* méta d'article */
.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 8px;
}
.post-meta .dot { color: var(--accent-2); }
.featured-img { border: 1px solid var(--ink); box-shadow: var(--shadow-hard); margin: 34px 0; }
.featured-img img { width: 100%; object-fit: cover; max-height: 460px; }

/* bloc vidéo */
.video-block { margin: 1.8em 0; border: 1px solid var(--ink); background: var(--ink); }
.video-block video { width: 100%; display: block; }
.video-block .video-fallback { padding: 22px 26px; color: #EDEDE8; font-size: 15px; }
.video-block .video-fallback a { color: var(--accent); }
.video-caption { font-family: var(--font-mono); font-size: 12px; color: var(--steel); padding: 10px 0 0; }

/* bio auteur */
.author-card {
  display: flex; gap: 18px; align-items: center; margin-top: 48px;
  border: 1px solid var(--line-2); background: var(--white); padding: 22px 26px;
}
.author-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 2px solid var(--accent); }
.author-card .name { font-weight: 700; font-size: 16.5px; }
.author-card .role { font-family: var(--font-mono); font-size: 12.5px; color: var(--steel); text-transform: uppercase; letter-spacing: .05em; }

/* pagination / prev-next */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; font-family: var(--font-mono); }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); text-decoration: none; font-size: 13.5px; padding: 0 12px;
  background: var(--white);
}
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 54px; }
.prevnext a { border: 1px solid var(--line-2); background: var(--white); padding: 20px 22px; text-decoration: none; transition: all .12s; }
.prevnext a:hover { border-color: var(--ink); box-shadow: var(--shadow-hard-sm); transform: translate(-2px,-2px); }
.prevnext .dir { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); display: block; margin-bottom: 8px; }
.prevnext .t { font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.prevnext a.next { text-align: right; }

/* ---------- Témoignage ---------- */
.testimonial {
  border: 1px solid var(--ink); background: var(--white); padding: clamp(26px, 4vw, 46px);
  position: relative; box-shadow: var(--shadow-hard);
}
.testimonial::before {
  content: "“"; position: absolute; top: -30px; left: 24px;
  font-size: 90px; font-family: var(--font-display); font-weight: 900; color: var(--accent);
  line-height: 1; text-shadow: 2px 2px 0 var(--ink);
}
.testimonial .quote { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6; font-weight: 500; }
.testimonial .who { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.testimonial .who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.testimonial .who .n { font-weight: 700; font-size: 15px; }

/* ---------- Bande CTA ---------- */
.cta-band { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.cta-band .wrap { padding: clamp(52px, 7vw, 90px) var(--gutter); position: relative; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 900; letter-spacing: -0.025em; max-width: 22ch; }
.cta-band p { color: #B9B9B0; max-width: 58ch; font-size: 17px; }
.cta-band .btn { border-color: var(--white); }
.cta-band .glyph {
  position: absolute; right: -40px; bottom: -70px; font-family: var(--font-mono);
  font-size: 300px; color: #171715; line-height: 1; user-select: none; pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFCFC7; }
.site-footer .top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: clamp(46px, 6vw, 72px) 0 46px; }
.site-footer img.f-logo { height: 34px; margin-bottom: 18px; }
.site-footer .tagline { max-width: 34ch; font-size: 15.5px; color: #A5A59C; }
.site-footer h4 { color: var(--white); font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.site-footer h4::before { content: "// "; color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #CFCFC7; text-decoration: none; font-size: 14.5px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .bottom {
  border-top: 1px solid #26261F; padding: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-family: var(--font-mono); font-size: 12px; color: #8A8A82; justify-content: space-between;
}
.site-footer .bottom a { font-size: 12px; }
.backup-note { background: var(--accent); color: var(--ink); font-family: var(--font-mono); font-size: 12px; padding: 8px 0; text-align: center; letter-spacing: .04em; }
.backup-note a { color: inherit; }

/* ---------- Listing filtres / recherche ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 34px; }
.search-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink); background: var(--white); padding: 0 16px; flex: 1; min-width: 260px; max-width: 460px; }
.search-box input {
  border: 0; outline: 0; background: transparent; height: 46px; width: 100%;
  font-family: var(--font-mono); font-size: 14px;
}
.search-box .icon { color: var(--steel); font-size: 15px; }
.result-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--steel); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- KB catégories ---------- */
.kb-cat { margin-bottom: 44px; }
.kb-cat h2 { font-size: 22px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 6px; display: flex; align-items: baseline; gap: 12px; }
.kb-cat h2 .count { font-family: var(--font-mono); font-size: 13px; color: var(--steel); font-weight: 400; }
.kb-list { list-style: none; margin: 0; padding: 0; }
.kb-list li { border-bottom: 1px solid var(--line); }
.kb-list a {
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 13px 6px; text-decoration: none; font-size: 15.5px; font-weight: 500;
}
.kb-list a:hover { background: var(--accent-soft); }
.kb-list a::after { content: "→"; color: var(--accent-2); font-weight: 700; }

/* ---------- Équipe ---------- */
.person { text-align: left; }
.person .photo { aspect-ratio: 1; overflow: hidden; border: 1px solid var(--ink); margin-bottom: 16px; background: var(--white); position: relative; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .25s ease; }
.person:hover .photo img { filter: none; }
.person .photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.person:hover .photo::after { transform: scaleX(1); }
.person .p-name { font-weight: 800; font-size: 18px; }
.person .p-role { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); margin: 4px 0 8px; }
.person .p-bio { font-size: 14px; color: var(--steel); }

/* ---------- Ressource detail ---------- */
.res-layout { display: grid; grid-template-columns: 380px 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.res-cover { border: 1px solid var(--ink); box-shadow: var(--shadow-hard); position: sticky; top: 100px; }
.res-cover img { width: 100%; }
.dl-panel { border: 1px solid var(--ink); background: var(--white); padding: 26px; margin-top: 30px; }
.dl-panel .note { font-size: 13px; color: var(--steel); margin: 12px 0 0; }

/* ---------- Cas client detail ---------- */
.case-hero { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.case-logo { background: var(--white); border: 1px solid var(--ink); padding: 22px 30px; box-shadow: var(--shadow-hard-sm); }
.case-logo img { max-height: 64px; max-width: 220px; object-fit: contain; }
.case-section { margin-bottom: clamp(36px, 5vw, 60px); }
.case-section > h2 {
  font-size: 15px; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.case-section > h2::before { content: ""; width: 12px; height: 12px; background: var(--accent); outline: 1px solid var(--ink); }
.case-section > h2::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.portfolio-grid img { border: 1px solid var(--line-2); width: 100%; }

/* ---------- Sections génériques (pages offres) ---------- */
.gsec { padding: clamp(40px, 5.5vw, 78px) 0; border-bottom: 1px solid var(--line); }
.gsec:nth-child(even) { background: var(--white); }
.gsec h2 { font-size: clamp(25px, 3vw, 38px); max-width: 26ch; letter-spacing: -0.02em; }
.gsec .cols { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(26px, 4vw, 60px); align-items: start; }
.gsec .media img { border: 1px solid var(--ink); box-shadow: var(--shadow-hard); }
.gsec ul.feature-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.gsec ul.feature-list li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.gsec ul.feature-list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 10px; background: var(--accent); outline: 1px solid var(--ink); }
.gsec .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gsec .gallery img { border: 1px solid var(--line-2); width: 100%; object-fit: contain; background: var(--white); }

.form-note {
  border: 1px dashed var(--ink); background: var(--accent-soft); padding: 22px 26px;
  font-size: 15px; margin: 1.4em 0;
}
.form-note .t { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; display: block; margin-bottom: 8px; }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; position: fixed; inset: 72px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--ink); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 22px; gap: 0; max-height: calc(100vh - 72px); overflow: auto; }
  .nav.is-open { display: flex; }
  .nav-item > .drop { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--accent); margin: 0 0 6px 14px; padding: 0; min-width: 0; }
  .header-cta { display: none; }
  .burger { display: block; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .gsec .cols { grid-template-columns: 1fr; }
  .res-layout { grid-template-columns: 1fr; }
  .res-cover { position: static; max-width: 380px; }
  .case-hero { grid-template-columns: 1fr; align-items: start; }
  .prevnext { grid-template-columns: 1fr; }
  .step { grid-template-columns: 64px 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-footer .top { grid-template-columns: 1fr; }
  .hero-meta { gap: 8px 18px; }
}
@media print {
  .site-header, .site-footer, .backup-note, .cta-band { display: none; }
}

/* ---------- Lecteurs embarqués (YouTube, TwentyThree, ...) ---------- */
.video-embed {
  position: relative; padding-bottom: 56.25%; height: 0;
  margin: 1.8em 0 0; border: 1px solid var(--ink);
  background: var(--ink); box-shadow: var(--shadow-hard-sm);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed--audio { padding-bottom: 166px; background: var(--white); box-shadow: none; border-color: var(--line-2); }
.video-caption { margin-bottom: 1.8em; }

/* ---------- Pages offres retravaillées ---------- */
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.step-num {
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  background: var(--ink); color: var(--accent); padding: 6px 12px;
}
.dept-card {
  border: 1px solid #3A3A36; padding: 24px; display: flex; flex-direction: column; gap: 12px;
  background: #121210; transition: border-color .15s;
}
.dept-card:hover { border-color: var(--accent); }
.dept-card h3 { font-size: 18px; margin: 0; color: var(--white); }
.dept-card h3::before { content: "// "; color: var(--accent); }
.dept-card ul { list-style: none; margin: 0; padding: 0; }
.dept-card li { padding: 7px 0 7px 22px; position: relative; font-size: 14px; color: #C9C9C0; border-bottom: 1px solid #23231F; }
.dept-card li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; background: var(--accent); }
.pricing-list { list-style: none; margin: 14px 0 0; padding: 0; }
.pricing-list li { padding: 8px 0 8px 26px; position: relative; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.pricing-list li::before {
  content: "✓"; position: absolute; left: 0; top: 7px; font-weight: 700;
  color: var(--ink); background: var(--accent); width: 17px; height: 17px;
  font-size: 11px; display: flex; align-items: center; justify-content: center; outline: 1px solid var(--ink);
}
.faq-acc { border: 1px solid var(--line-2); background: var(--paper); margin-bottom: 10px; }
.faq-acc summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 18px 22px; font-weight: 700; font-size: 16.5px;
}
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc .faq-mark { font-family: var(--font-mono); color: var(--ink); background: var(--accent); width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; outline: 1px solid var(--ink); flex: none; font-size: 16px; }
.faq-acc[open] { border-color: var(--ink); box-shadow: var(--shadow-hard-sm); }
.faq-acc[open] .faq-mark { transform: rotate(45deg); }
.faq-acc .faq-body { padding: 0 22px 20px; font-size: 15.5px; color: var(--ink-2); }
.faq-acc .faq-body ul { padding-left: 1.2em; }
.manifesto-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.manifesto-list li { padding: 12px 0 12px 34px; position: relative; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.manifesto-list li::before { content: "→"; position: absolute; left: 0; top: 10px; color: var(--accent-2); font-weight: 800; font-size: 19px; }
