/* Polices hébergées sur le site : aucune donnée des visiteurs n'est envoyée à un tiers (licence SIL OFL, voir assets/licences) */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* AM.Digital — portfolio
   Layout : bandeau héros prune pleine largeur (signature de marque), puis colonnes éditoriales calmes sur fond papier teinté de prune. L'or ne sert qu'à souligner. */
:root {
  --plum: #66004A;          /* violet AM.Digital */
  --plum-deep: #3D002C;
  --gold: #C79613;          /* or AM.Digital */
  --gold-soft: #E7C35A;
  --paper: #FBF8FA;         /* neutre teinté prune */
  --surface: #FFFFFF;
  --ink: #22101C;
  --muted: #6A5662;
  --line: #E9DDE5;
  --brand-text: #66004A;    /* prune lisible sur fond clair */
  --on-plum: #FFF7FB;
  --on-plum-muted: #E6CDDD;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: clamp(.82rem, .8rem + .1vw, .88rem);
  --s0: clamp(1rem, .96rem + .2vw, 1.08rem);
  --s1: clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
  --s2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --s3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --s4: clamp(2.6rem, 1.8rem + 4vw, 5rem);

  --wrap: 72rem;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15070F; --surface: #1F0D18; --ink: #F6EDF2; --muted: #BCA6B4;
    --line: #3A2232; --brand-text: #F0A8D6; --plum-deep: #2A001E; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15070F; --surface: #1F0D18; --ink: #F6EDF2; --muted: #BCA6B4;
  --line: #3A2232; --brand-text: #F0A8D6; --plum-deep: #2A001E; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--s0); line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -.02em; }
h2 { font-size: var(--s3); font-weight: 700; }
h3 { font-size: var(--s1); font-weight: 650; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #22101C; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.label {
  font-family: var(--f-mono); font-size: var(--s-1); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.section { padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 46rem; }
.section-head .lede { color: var(--muted); font-size: var(--s1); line-height: 1.5; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--plum); color: var(--on-plum);
  border-bottom: 1px solid rgba(199,150,19,.35);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--on-plum); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.brand span b { color: var(--gold-soft); }
.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,.35); color: var(--on-plum);
  border-radius: 8px; padding: .45rem .75rem; font: 600 .9rem var(--f-body); cursor: pointer;
}
.nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.8rem); }
.nav a { color: var(--on-plum); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--gold-soft); }
.nav .nav-cta { background: var(--gold); color: #22101C; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; }
.nav .nav-cta:hover { background: var(--gold-soft); color: #22101C; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--plum-deep); padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); }
  .nav[data-open="false"] { display: none; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .nav-cta { margin-top: .8rem; text-align: center; border-bottom: 0; }
}

/* ---------- Héros ---------- */
.hero { background: var(--plum); color: var(--on-plum); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -12rem; bottom: -14rem; width: 34rem; height: 34rem; border-radius: 50%;
  border: 1px solid rgba(231,195,90,.25); box-shadow: 0 0 0 4rem rgba(231,195,90,.05), 0 0 0 8rem rgba(231,195,90,.03);
  pointer-events: none;
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem); position: relative; z-index: 1;
}
.hero .label { color: var(--gold-soft); }
.hero h1 { font-size: var(--s4); font-weight: 800; margin-block: 1.1rem 1.4rem; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero .intro { font-size: var(--s1); line-height: 1.5; color: var(--on-plum-muted); max-width: 36rem; }
.hero .who { margin-top: 1.6rem; font-size: var(--s0); color: var(--on-plum); }
.hero .who strong { font-family: var(--f-display); font-size: 1.15em; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: .98rem; cursor: pointer; font-family: var(--f-body);
}
.btn-gold { background: var(--gold); color: #22101C; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(255,247,251,.55); color: var(--on-plum); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

/* Fiche brief : convention du métier */
.brief {
  background: #FFF7FB; color: #22101C; border-radius: 6px; padding: 1.5rem 1.5rem 1.2rem;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.55); transform: rotate(1.2deg); max-width: 26rem; justify-self: end; width: 100%;
}
.brief-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #22101C; padding-bottom: .6rem; margin-bottom: .4rem; gap: 1rem; }
.brief-top span { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #6A5662; }
.brief-top strong { font-family: var(--f-display); font-size: 1.1rem; }
.brief dl { margin: 0; display: grid; }
.brief dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed #D9C6D2; }
.brief dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #66004A; padding-top: .15rem; }
.brief dd { margin: 0; font-size: .95rem; line-height: 1.45; }
.brief .stamp { margin-top: .9rem; display: inline-block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: #8A6508; border: 1.5px solid #C79613; padding: .25rem .6rem; border-radius: 4px; transform: rotate(-3deg); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .brief { justify-self: start; transform: none; }
}

/* Disponibilités */
.avail { background: var(--plum-deep); color: var(--on-plum); }
.avail .wrap { display: flex; flex-wrap: wrap; gap: .6rem 2rem; align-items: center; padding-block: 1rem; font-size: .95rem; }
.avail .label { color: var(--gold-soft); }
.avail ul { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.avail li::before { content: "●"; color: var(--gold); margin-right: .5rem; font-size: .7em; vertical-align: middle; }

/* ---------- Profil ---------- */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.profile-text { display: grid; gap: 1.2rem; max-width: 40rem; }
.profile-text p { font-size: 1.08em; }
.profile-text .pull { font-family: var(--f-display); font-size: var(--s2); line-height: 1.2; color: var(--brand-text); font-weight: 600; letter-spacing: -.01em; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); display: grid; gap: 1.6rem; }
.timeline li { padding-left: 1.4rem; position: relative; display: grid; gap: .25rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline .when { font-family: var(--f-mono); font-size: var(--s-1); color: var(--muted); }
.timeline strong { font-family: var(--f-display); font-size: 1.08rem; }
.timeline p { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } }

.todo { display: inline-block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: var(--brand-text);
  background: color-mix(in srgb, var(--gold) 16%, transparent); border: 1px dashed var(--gold); padding: .05rem .4rem; border-radius: 4px; }

/* ---------- Expertises ---------- */
.expertise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.expertise > article { padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); display: grid; gap: 1.1rem; align-content: start; }
.expertise > article + article { border-left: 1px solid var(--line); }
.expertise h3 { font-size: var(--s2); }
.expertise .tag { color: var(--brand-text); }
.expertise p { color: var(--muted); }
.skills { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; }
.skills li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.skills li span:last-child { font-family: var(--f-mono); font-size: var(--s-1); color: var(--muted); text-align: right; }
@media (max-width: 760px) {
  .expertise { grid-template-columns: minmax(0, 1fr); }
  .expertise > article + article { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Réalisations ---------- */
.cases { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.case {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 1rem + 2vw, 2.6rem);
}
.case-meta { display: grid; gap: .9rem; align-content: start; }
.case-meta .num { font-family: var(--f-display); font-size: var(--s3); font-weight: 800; color: var(--gold); line-height: 1; }
.case-meta h3 { font-size: var(--s2); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.chip.real { border-color: var(--brand-text); color: var(--brand-text); }
.case-body { display: grid; gap: 0; }
.case-body > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--line); }
.case-body > div:first-child { border-top: 0; padding-top: 0; }
.case-body dt { font-family: var(--f-mono); font-size: var(--s-1); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); padding-top: .15rem; }
.case-body dd { margin: 0; }
.case-body ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.palette { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.palette span { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.palette i { width: 22px; height: 22px; border-radius: 5px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
@media (max-width: 860px) { .case { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .case-body > div { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }

/* ---------- Méthode ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 1.4rem 1.2rem 0 0; border-top: 3px solid var(--line); display: grid; gap: .55rem; align-content: start; position: relative; }
.steps li::before { content: "0" counter(step); font-family: var(--f-mono); font-size: var(--s-1); color: var(--brand-text); }
.steps li:first-child { border-top-color: var(--gold); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Outils ---------- */
.tools { display: flex; flex-wrap: wrap; gap: .6rem; }
.tools li { list-style: none; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; }
.tools { padding: 0; margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--plum); color: var(--on-plum); border-top: 0; }
.contact .label { color: var(--gold-soft); }
.contact .lede { color: var(--on-plum-muted); }
.contact a { color: var(--gold-soft); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.channels { list-style: none; margin: 0; padding: 0; display: grid; }
.channels li { display: grid; gap: .15rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.channels .label { font-size: .72rem; }
.channels .val { font-size: 1.1rem; font-weight: 600; word-break: break-word; }
.copy { margin-left: .5rem; background: transparent; border: 1px solid rgba(255,247,251,.4); color: var(--on-plum); border-radius: 6px; font: 600 .75rem var(--f-body); padding: .2rem .5rem; cursor: pointer; }
form.contact-form { background: #FFF7FB; color: #22101C; border-radius: var(--radius); padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: #22101C; background: #FFFFFF; border: 1.5px solid #D9C6D2; border-radius: 8px; padding: .75rem .85rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #66004A; box-shadow: 0 0 0 3px rgba(102,0,74,.15); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: #4D3A46; }
.consent input { margin-top: .3rem; accent-color: #66004A; }
.form-status { font-size: .92rem; min-height: 1.4em; color: #4D3A46; }
.form-status[data-state="ok"] { color: #1B6B3A; }
.form-status[data-state="error"] { color: #A3122E; }
form .btn-gold { justify-self: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--plum-deep); color: var(--on-plum-muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem; }
.site-footer a { color: var(--on-plum); }
.site-footer .slogan { font-family: var(--f-display); color: var(--gold-soft); font-weight: 600; }
.socials { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Pages simples (mentions, 404) */
.page { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.page .prose { max-width: 42rem; display: grid; gap: 1rem; }
.page .prose h1 { font-size: var(--s3); }
.page .prose h2 { font-size: var(--s1); margin-top: 1rem; }

/* Mouvement : entrée légère, contenu visible au repos */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .intro, .hero .actions, .brief { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero .intro { animation-delay: .08s; } .hero .actions { animation-delay: .16s; } .brief { animation-delay: .22s; }
  @keyframes rise { from { translate: 0 14px; } to { translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sw-plum { background: #66004A; } .sw-gold { background: #C79613; }
.mb { margin-bottom: 1.4rem; } .section-head.flush { margin-bottom: 0; }
.contact form a.form-link { color: #66004A; }

/* ---------- Pages générées : réalisations, journal ---------- */
.nav a[aria-current="page"] { color: var(--gold-soft); text-decoration: underline; text-underline-offset: .45em; text-decoration-thickness: 2px; }
.case-link { color: inherit; text-decoration: none; }
.case-link:hover { color: var(--brand-text); text-decoration: underline; }
.case { transition: border-color .2s ease, box-shadow .2s ease; }
.case:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: 0 18px 40px -28px rgba(61,0,44,.45); }
.case-cover { border-radius: 8px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; max-width: 100%; }
.case-more { border-top: 0 !important; padding-top: .3rem !important; }
.case-more a { font-weight: 700; text-decoration: none; }
.case-more a:hover { text-decoration: underline; }
.kpis { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; }
.kpis li { display: grid; gap: .1rem; min-width: 0; }
.kpis strong { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.kpis span { font-size: .88rem; color: var(--muted); max-width: 14rem; }
.kpis.big strong { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.more-link { margin-top: 2rem; }
.btn-outline { border-color: var(--brand-text); color: var(--brand-text); }
.btn-outline:hover { background: var(--brand-text); color: var(--paper); }

.study-head { background: var(--plum); color: var(--on-plum); }
.study-head .wrap { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); display: grid; gap: 1rem; max-width: var(--wrap); }
.study-head .label { color: var(--gold-soft); }
.study-head h1 { font-size: var(--s4); font-weight: 800; max-width: 22ch; }
.study-head .intro { font-size: var(--s1); color: var(--on-plum-muted); max-width: 40rem; line-height: 1.5; }
.crumbs { font-size: .9rem; color: var(--on-plum-muted); }
.crumbs a { color: var(--on-plum); }
.chips.on-plum .chip { border-color: rgba(255,247,251,.35); color: var(--on-plum-muted); }
.chips.on-plum .chip.real { border-color: var(--gold-soft); color: var(--gold-soft); }
.study-cover { margin: clamp(-2rem, -1rem - 2vw, -1rem) 0 0; }
.study-cover img { border-radius: var(--radius); width: 100%; aspect-ratio: 12 / 7; object-fit: cover; box-shadow: 0 30px 60px -35px rgba(0,0,0,.5); }
.study-grid { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); align-items: start; }
.fiche { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5.5rem); border-top: 3px solid var(--gold); padding-top: 1rem; display: grid; gap: .8rem; }
.fiche dl { margin: 0; display: grid; }
.fiche dl > div { padding: .7rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; }
.fiche dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fiche dd { margin: 0; font-weight: 600; }
.study-body { display: grid; gap: 2.6rem; max-width: 44rem; min-width: 0; }
.study-body h2 { font-size: var(--s2); margin-bottom: .8rem; }
.study-body ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.study-body > section > p { font-size: 1.08em; }
.prose-body { display: grid; gap: 1rem; min-width: 0; }
.prose-body p, .prose-body li { font-size: 1.08em; }
.prose-body h2 { font-size: var(--s2); margin-top: 1rem; }
.prose-body img { border-radius: 8px; }
.prose-body blockquote { margin: 0; padding-left: 1.2rem; border-left: 3px solid var(--gold); font-family: var(--f-display); font-size: var(--s1); color: var(--brand-text); }
.article-body { max-width: 42rem; padding-block: clamp(3rem, 2rem + 4vw, 5rem) 1rem; }
.signature { max-width: 42rem; padding-bottom: 4rem; font-family: var(--f-display); font-weight: 600; color: var(--brand-text); }
.lesson { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: .6rem; }
.lesson p:last-child { font-family: var(--f-display); font-size: var(--s1); line-height: 1.35; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.gallery figure { margin: 0; display: grid; gap: .4rem; }
.gallery img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .85rem; color: var(--muted); }
.study-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.study-nav a { display: grid; gap: .3rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 650; font-size: 1.1rem; background: var(--surface); }
.study-nav a:hover { border-color: var(--gold); }
.study-nav .nx { text-align: right; }
@media (max-width: 820px) {
  .study-grid { grid-template-columns: minmax(0, 1fr); }
  .fiche { position: static; }
  .study-nav { grid-template-columns: minmax(0, 1fr); }
  .study-nav .nx { text-align: left; }
}
.section.first { border-top: 0; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; }
.posts li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .3rem 2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.posts time { font-family: var(--f-mono); font-size: var(--s-1); color: var(--muted); padding-top: .3rem; grid-row: span 2; }
.posts a { font-family: var(--f-display); font-size: var(--s1); font-weight: 650; color: var(--ink); text-decoration: none; }
.posts a:hover { color: var(--brand-text); text-decoration: underline; }
.posts p { color: var(--muted); }
@media (max-width: 600px) { .posts li { grid-template-columns: minmax(0, 1fr); } .posts time { grid-row: auto; } }

/* Barre de lecture dorée (navigateurs récents ; ignorée ailleurs) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .study::before { content: ""; position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px; z-index: 30;
      background: var(--gold); transform-origin: 0 50%; animation: lire linear both; animation-timeline: scroll(root); }
    @keyframes lire { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* Correctifs de rendu */
.profile-text p.label { font-size: var(--s-1); }
ul.kpis { display: flex; flex-wrap: wrap; padding-left: 0; }
.hero .todo, .study-head .todo, .site-footer .todo, .contact .todo { color: var(--gold-soft); background: rgba(231,195,90,.12); border-color: var(--gold-soft); }
.hero h1 { font-size: clamp(2.4rem, 1.7rem + 3.2vw, 4.3rem); }
.study-head h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 4rem); }
.study-body p.label, .lesson p.label { font-size: var(--s-1); }

/* ---------- Preuves chiffrées sous le héros ---------- */
.preuves { background: var(--plum-deep); color: var(--on-plum); border-top: 1px solid rgba(231,195,90,.25); }
.preuves .wrap { padding-block: 1.6rem 1.8rem; display: grid; gap: 1rem; }
.preuves .label { color: var(--gold-soft); }
.preuves .label a { color: var(--on-plum); }
.preuves ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1.2rem 2rem; }
.preuves li { display: grid; gap: .2rem; border-left: 2px solid var(--gold); padding-left: .9rem; min-width: 0; }
.preuves strong { font-family: var(--f-display); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 800; color: var(--gold-soft); line-height: 1; font-variant-numeric: tabular-nums; }
.preuves span { color: var(--on-plum-muted); font-size: .92rem; }
.avail { border-top: 1px solid rgba(255,255,255,.08); }

/* Identité dans la fiche brief */
.brief-id { display: flex; gap: .9rem; align-items: center; padding: .8rem 0 .4rem; }
.brief-id img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid #C79613; flex: none; }
.brief-id strong { display: block; font-family: var(--f-display); font-size: 1.05rem; color: #22101C; }
.brief-id span { font-size: .85rem; color: #66004A; font-style: italic; }

/* ---------- Galerie de créations ---------- */
.galerie { list-style: none; margin: 0; padding: 0; columns: 3 15rem; column-gap: 1rem; }
.galerie li { break-inside: avoid; margin-bottom: 1rem; }
.galerie figure { margin: 0; display: grid; gap: .5rem; }
.galerie .zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(61,0,44,.6); }
.galerie .zoom img { width: 100%; height: auto; display: block; transition: transform .35s ease; }
.galerie .zoom:hover img { transform: scale(1.03); }
.galerie video { width: 100%; max-width: 100%; border-radius: 10px; background: #000; }
.galerie figcaption { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.galerie figcaption a { white-space: nowrap; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .galerie .zoom img { transition: none; } }
.creations { background: color-mix(in srgb, var(--plum) 5%, var(--paper)); }

/* Visionneuse */
.visionneuse { border: 0; padding: 0; background: transparent; max-width: min(92vw, 60rem); max-height: 92vh; overflow: visible; }
.visionneuse::backdrop { background: rgba(21,7,15,.86); }
.visionneuse img { max-width: 100%; max-height: 80vh; width: auto; display: block; margin-inline: auto; border-radius: 8px; }
.visionneuse p { color: #FFF7FB; text-align: center; margin-top: .8rem; font-size: .95rem; }
.visionneuse .fermer { position: absolute; top: -2.6rem; right: 0; background: #C79613; color: #22101C; border: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; }

/* ---------- Réseaux sociaux ---------- */
.reseaux { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.reseaux a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; border: 1px solid rgba(255,247,251,.3); color: var(--on-plum); }
.reseaux a:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.reseaux .ico { width: 1.05rem; height: 1.05rem; fill: currentColor; flex: none; }
.reseaux--contact { margin-top: .4rem; }
.reseaux--pied a { padding: .35rem; border-color: transparent; }
.reseaux--pied a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reseaux--pied .ico { width: 1.3rem; height: 1.3rem; }
.site-footer .wrap { align-items: center; }

/* Partage d'une étude de cas */
.partage { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding-bottom: 2rem; }
.partage ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.partage a { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.partage a:hover { border-color: var(--gold); }

/* Méthode en 7 étapes */
.steps { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .9rem; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tableaux dans les récits */
.prose-body table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose-body th, .prose-body td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose-body th { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); }
.prose-body h2 { font-size: var(--s1); }

/* Images de couverture : affichées sans agrandissement au-delà de leur taille réelle */
.study-cover { display: flex; justify-content: center; }
.study-cover img { width: auto; max-width: 100%; aspect-ratio: auto; object-fit: contain; }
.study-body > section.prose-body > h2:first-child { font-size: var(--s2); }
.study-body .galerie { columns: 2 12rem; }
