/* Digital Consulting — page d'accueil
   Feuille partagee par les versions FR et EN de index.html + en/index.html.
   Ne pas dupliquer : toute retouche vaut pour les deux langues. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --paper:       #f5f2ea;
  --paper-2:     #ece5d8;
  --ink:         #221e1a;
  --muted:       #6b625b;
  --light:       #998f84;

  --taupe:       #5c524f;   /* fond exact du logo — header / footer */
  --char:        #3c3531;   /* bandes sombres chaudes */
  --char-deep:   #2f2926;   /* hero le plus profond */

  --amber:       #f7be0b;   /* or du logo — accent graphique + CTA */
  --amber-deep:  #d39e00;   /* survol CTA */
  --ochre:       #a8730a;   /* accent texte lisible sur papier */
  --ochre-deep:  #875a00;

  --rule:        #d9d1c3;
  --rule-soft:   #e6dfd1;
  --card:        #fbf8f1;

  --font-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --maxw: 1160px;
  --gut: clamp(20px, 5vw, 64px);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* grille millimétrée très discrète : papier d'étude */
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* ===== Typo utilitaires ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.8em; height: 1px;
  background: var(--ochre);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.04; margin: 0; }

/* ===== Header / nav ===== */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--taupe);
  border-bottom: 1px solid rgba(0,0,0,0.22);
  box-shadow: 0 6px 20px -12px rgba(0,0,0,0.5);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 38px; width: auto; }
nav.links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
nav.links a.navlink {
  font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: #e3dccf;
  transition: color .2s ease;
}
nav.links a.navlink:hover { color: #fff; }
@media (max-width: 860px) { nav.links a.navlink { display: none; } }

/* Selecteur de langue FR/EN — reste visible sur mobile (2 caracteres) */
nav.links a.navlink.lang {
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 6px;
  padding: 0.3em 0.6em;
  line-height: 1;
}
nav.links a.navlink.lang:hover { border-color: #fff; color: #fff; }
@media (max-width: 860px) { nav.links a.navlink.lang { display: inline-block; } }
@media (max-width: 560px) {
  .brand img { height: 28px; }
  .nav .btn-primary { padding: 0.6em 0.85em; font-size: 0.68rem; }
  .nav .btn-primary .arrow { display: none; }
}

/* ===== Menu burger (≤ 860px) ===== */
.burger {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  width: 42px; height: 38px; padding: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 7px;
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.burger:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.6); }
.burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: #e3dccf; transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .burger span { transition: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--taupe);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #e3dccf; text-decoration: none;
  padding: 15px var(--gut);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .2s ease, color .2s ease;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: rgba(255,255,255,0.07); color: #fff; }

@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .mobile-menu.open { display: flex; }
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.7em 1.15em; border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: #2a2218; }
.btn-primary:hover { background: var(--amber-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--char); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-light:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--char-deep);
  color: #f3efe7;
  overflow: hidden;
}
/* grille blueprint + halo or */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 70% 10%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 35%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; top: -30%; right: -10%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(247,190,11,0.22), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(48px, 7vw, 88px); }

.hero .eyebrow { color: var(--amber); }
.hero .eyebrow::before { background: var(--amber); }

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 22px 0 0;
  color: #fff;
}
.hero h1 .ln { display: block; }
.hero h1 em { font-style: normal; color: var(--amber); white-space: nowrap; }
.hero .lede {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  color: #d8cfc4; max-width: 46ch; margin: 22px 0 0; line-height: 1.5;
}
.hero .signature {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.14);
  max-width: 60ch;
  font-size: 0.96rem; color: #c3b8ac;
}
.hero .signature strong { color: #fff; font-weight: 600; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* bande chiffres sous le hero */
.stats {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.13);
  background: rgba(0,0,0,0.2);
}
.stats .grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stats .stat { padding: 26px 16px; border-right: 1px solid rgba(255,255,255,0.1); text-align: center; }
.stats .stat:last-child { border-right: none; }
.stats .num { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; color: #fff; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.stats .lbl { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: #ab9f92; margin-top: 8px; line-height: 1.35; }
@media (max-width: 760px) {
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .stats .stat { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stats .stat:last-child { grid-column: 1 / -1; }
}

/* ===== Sections ===== */
section.block { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.section-head .idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ochre); font-weight: 500; padding-top: 0.5em; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); max-width: 18ch; }
.section-head .intro { color: var(--muted); max-width: 44ch; margin-left: auto; font-size: 1.02rem; }

/* Expertise grid */
.stack-line {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--char);
  background: var(--paper-2); border: 1px solid var(--rule);
  padding: 14px 18px; border-radius: 8px; margin-bottom: 36px; line-height: 1.7;
}
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
@media (max-width: 880px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .skills { grid-template-columns: 1fr; } }
.skill { background: var(--card); padding: 26px 24px; transition: background .2s ease; }
.skill:hover { background: #fff; }
.skill .k { font-family: var(--font-mono); font-size: 0.66rem; color: var(--light); letter-spacing: 0.12em; }
.skill h3 { font-size: 1.18rem; margin: 8px 0 8px; font-weight: 600; }
.skill p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Modalités */
.modes { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 22px; }
@media (max-width: 980px) { .modes { grid-template-columns: 1fr; } }
.mode { border-radius: 14px; padding: 34px 32px; position: relative; border: 1px solid var(--rule); background: var(--card); }
.mode.feature { background: var(--char); color: #f3efe7; border-color: var(--char); box-shadow: 0 24px 50px -28px rgba(47,41,38,0.55); }
.mode .tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-block; padding: 4px 10px; border-radius: 100px; margin-bottom: 18px;
  background: var(--paper-2); color: var(--muted);
}
.mode.feature .tag { background: var(--amber); color: #2a2218; }
.mode h3 { font-size: 1.55rem; margin-bottom: 12px; }
.mode.feature h3 { color: #fff; }
.mode p { margin: 0 0 16px; color: var(--muted); }
.mode.feature p { color: #d8cfc4; }
.mode ul { list-style: none; margin: 0; padding: 0; }
.mode li { padding-left: 22px; position: relative; margin-bottom: 9px; font-size: 0.95rem; }
.mode li::before { content: "→"; position: absolute; left: 0; color: var(--ochre); font-family: var(--font-mono); }
.mode.feature li::before { color: var(--amber); }

/* Réalisations */
.works { border-top: 1px solid var(--rule); }
.work {
  display: grid; grid-template-columns: 0.5fr 1.6fr 0.9fr; gap: 28px;
  padding: 30px 4px; border-bottom: 1px solid var(--rule);
  align-items: baseline; transition: background .2s ease;
}
.work:hover { background: var(--card); }
.work .meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--light); text-transform: uppercase; }
.work .meta .yr { color: var(--ochre); display: block; margin-top: 4px; }
.work .title { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; line-height: 1.15; }
.work .title .sub { display: block; font-family: var(--font-body); font-size: 0.92rem; font-weight: 400; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.work .result { font-size: 0.92rem; color: var(--ink); }
.work .result strong { color: var(--ochre-deep); }
.work.eki { background: linear-gradient(90deg, rgba(247,190,11,0.1), transparent 70%); }
.work .extlink { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ochre-deep); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; white-space: nowrap; }
.work .extlink:hover { border-color: var(--ochre-deep); }
@media (max-width: 820px) {
  .work { grid-template-columns: 1fr; gap: 10px; padding-block: 24px; }
  .work .meta { order: -1; }
}

/* Différenciateurs */
.diff-band { background: var(--char); color: #f3efe7; border-radius: 16px; padding: clamp(34px, 5vw, 56px); position: relative; overflow: hidden; }
.diff-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(100% 100% at 0% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(100% 100% at 0% 0%, #000 30%, transparent 75%);
}
.diff-band .eyebrow { color: var(--amber); }
.diff-band .eyebrow::before { background: var(--amber); }
.diff-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); max-width: 22ch; margin: 16px 0 36px; position: relative; }
.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.12); position: relative; border-radius: 10px; overflow: hidden; }
@media (max-width: 760px) { .diffs { grid-template-columns: 1fr; } }
.diff { background: var(--char); padding: 26px 24px; }
.diff .n { font-family: var(--font-mono); font-size: 0.7rem; color: var(--amber); letter-spacing: 0.1em; }
.diff h3 { color: #fff; font-size: 1.2rem; margin: 10px 0 8px; }
.diff p { color: #c3b8ac; font-size: 0.92rem; margin: 0; line-height: 1.5; }

/* Transmission + distinctions (secondaire) */
.aside-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 760px) { .aside-grid { grid-template-columns: 1fr; } }
.mini h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 14px; }
.mini p { color: var(--muted); margin: 0 0 10px; font-size: 0.96rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pill { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; padding: 6px 11px; border-radius: 100px; border: 1px solid var(--rule); color: var(--muted); background: var(--card); }
.pill.star { border-color: var(--amber); color: var(--ochre-deep); background: rgba(247,190,11,0.1); }
a.pill { text-decoration: none; cursor: pointer; transition: background .2s ease, transform .15s ease; }
a.pill:hover { background: rgba(247,190,11,0.22); transform: translateY(-1px); }

/* Dispo band */
.avail { border-block: 1px solid var(--rule); background: var(--paper-2); }
.avail .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.avail .f { padding: 24px var(--gut); border-right: 1px solid var(--rule); }
.avail .grid > .f:first-child { padding-left: var(--gut); }
.avail .f:last-child { border-right: none; }
.avail .k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); }
.avail .v { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; margin-top: 6px; color: var(--char); }
@media (max-width: 760px) {
  .avail .grid { grid-template-columns: 1fr 1fr; }
  .avail .f { border-bottom: 1px solid var(--rule); }
  .avail .f:nth-child(2) { border-right: none; }
}

/* Contact CTA */
.contact { text-align: center; }
.contact h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 16ch; margin: 18px auto 0; }
.contact .lede { color: var(--muted); max-width: 48ch; margin: 18px auto 0; }
.contact .cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.contact-lines { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 30px; font-family: var(--font-mono); font-size: 0.84rem; }
.contact-lines a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.contact-lines a:hover { color: var(--ochre-deep); border-color: var(--ochre); }

/* Footer */
footer.site { background: var(--taupe); color: #d6cdbf; padding-block: 38px; }
footer.site .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
footer.site .brand img { height: 34px; width: auto; }
footer.site .legal { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; line-height: 1.8; }
footer.site a { color: #ece5d8; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
footer.site a:hover { color: #fff; border-color: #fff; }

/* Showcase triptyque */
.showcase { padding-block: clamp(40px, 6vw, 76px); }
.showcase .eyebrow { margin-bottom: 24px; }
.tri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .tri { grid-template-columns: repeat(2, 1fr); } }
.tri figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); border: 1px solid var(--rule); }
.tri img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.tri figure:hover img { transform: scale(1.05); }
.tri figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: #fff; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; background: linear-gradient(transparent, rgba(18,13,9,0.85)); }
.tri figcaption::before { content: "→ "; color: var(--amber); }
@media (max-width: 560px) { .tri { grid-template-columns: 1fr; } }

/* Reveal au scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
