/* Géométrie de marque : fond prune profond, le G et le c du logo agrandis en arcs, métiers en onglets, réalisations en défilé horizontal. */
:root {
  --plum: #24091F;        /* prune profond tiré du magenta */
  --plum-2: #33102D;
  --magenta: #AF1F8E;     /* encre du logo */
  --orange: #F6861F;      /* encre du logo */
  --light: #F4F1F3;
  --light-2: #E9E2E7;
  --on-dark: #F4EEF2;
  --on-dark-muted: #C2AEBD;
  --ink: #24091F;
  --muted: #6A5765;
  --rule-dark: rgba(244, 238, 242, .14);
  --rule-light: rgba(36, 9, 31, .14);

  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1280px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--plum);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--plum); }
main { overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
section[id] { scroll-margin-top: 90px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "opsz" 96; letter-spacing: -.035em; text-wrap: balance; margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }

/* En-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--plum); border-bottom: 1px solid var(--rule-dark); }
.top .wrap { display: flex; align-items: center; gap: 32px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: 56px; display: block; border-radius: 4px; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--on-dark-muted); transition: color .2s; }
.nav a:hover { color: var(--on-dark); }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--body);
  padding: 14px 22px; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  background: var(--orange); color: var(--plum); border: 0;
  transition: background-color .2s, color .2s;
}
.pill:hover { background: var(--on-dark); }
.pill.line { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--rule-dark); }
.pill.line:hover { box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.pill svg { width: 18px; height: 18px; flex: none; }
.top .pill { padding: 11px 18px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--on-dark); cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

/* Ouverture */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 80px 104px; }
.hero h1 { font-size: clamp(54px, 8.4vw, 128px); line-height: .92; font-weight: 700; font-variation-settings: "opsz" 96, "wdth" 88; margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: var(--on-dark-muted); font-size: 19px; max-width: 40ch; margin: 28px 0 34px; }
.hero .lead strong { color: var(--on-dark); font-weight: 600; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bande des métiers */
.metiers-band { border-block: 1px solid var(--rule-dark); }
.metiers-band ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metiers-band li { padding: 20px 18px; border-left: 1px solid var(--rule-dark); font-size: 15px; color: var(--on-dark-muted); }
.metiers-band li:first-child { border-left: 0; padding-left: 0; }
.metiers-band li b { display: block; color: var(--on-dark); font-family: var(--display); font-size: 20px; letter-spacing: -.02em; font-weight: 600; }

/* Sections claires */
.light { background: var(--light); color: var(--ink); }
.sec { padding-block: 120px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(42px, 5.6vw, 84px); line-height: .98; font-weight: 700; max-width: 14ch; margin-top: 14px; }
.sec-head h2 em { font-style: normal; color: var(--magenta); }
.sec-head p { max-width: 42ch; margin: 0; color: var(--muted); font-size: 18px; }
.light .eyebrow { color: var(--magenta); }

/* Expertises en onglets */
.tabs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; border-top: 2px solid var(--ink); }
.tablist { display: flex; flex-direction: column; border-right: 1px solid var(--rule-light); }
.tablist button {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: baseline; gap: 18px;
  padding: 26px 24px 26px 0; border-bottom: 1px solid var(--rule-light);
  font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.03em; line-height: 1.05;
  color: rgba(36, 9, 31, .38); transition: color .2s, padding .3s, box-shadow .3s;
}
.tablist button small { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--muted); width: 26px; flex: none; }
.tablist button:hover { color: var(--ink); }
.tablist button[aria-selected="true"] { color: var(--ink); padding-left: 18px; box-shadow: inset 4px 0 0 var(--orange); }
.tablist button[aria-selected="true"] small { color: var(--orange); }
.tablist button:focus-visible { outline: 3px solid var(--magenta); outline-offset: -3px; }
.panel { padding: 34px 0 34px 48px; display: grid; gap: 24px; align-content: start; }
.panel h3 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; line-height: 1; }
.panel p { margin: 0; color: var(--muted); max-width: 46ch; font-size: 18px; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.panel li { display: flex; gap: 12px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--rule-light); font-weight: 500; }
.panel li svg { width: 16px; height: 16px; color: var(--magenta); flex: none; }
.panel .pill.dark { justify-self: start; background: var(--plum); color: var(--on-dark); }
.panel .pill.dark:hover { background: var(--magenta); }
.panel .swatch { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--orange) 0 62%, var(--magenta) 62% 100%); max-width: 280px; }

/* Méthode */
.method .wrap { padding-block: 120px; }
.method .sec-head h2 em { color: var(--orange); font-style: normal; }
.method .sec-head p { color: var(--on-dark-muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--orange), var(--magenta)); }
.timeline li { position: relative; padding-top: 44px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--plum); border: 2px solid var(--orange); }
.timeline li:nth-child(n+3)::before { border-color: var(--magenta); }
.timeline li:nth-child(3)::before { background: var(--orange); border-color: var(--orange); }
.timeline .when { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.timeline h3 { font-size: 26px; font-weight: 600; margin: 6px 0 8px; letter-spacing: -.02em; }
.timeline p { margin: 0; color: var(--on-dark-muted); font-size: 15.5px; }

/* Réalisations en défilé */
.reel-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.hero-solo .wrap { grid-template-columns: minmax(0, 1fr); }
.note { margin: 0;  display: inline-flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 600; color: var(--magenta); background: rgba(175, 31, 142, .08); padding: 10px 14px; border-radius: 6px; max-width: 640px; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.arrows { display: flex; gap: 8px; flex: none; }
.arrows button { all: unset; box-sizing: border-box; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color .2s, color .2s; }
.arrows button:hover { background: var(--ink); color: var(--light); }
.arrows button:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }
.arrows svg { width: 20px; height: 20px; }
.reel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; }
.card {
  flex: none; width: min(78vw, 380px); aspect-ratio: 4 / 5; max-width: 100%;
  scroll-snap-align: start; border-radius: 6px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; justify-content: space-between; padding: 24px;
  text-decoration: none;
}
.card .meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card h3 { font-size: 34px; font-weight: 700; line-height: 1; }
.card .client { font-size: 15px; opacity: .8; margin-top: 8px; }
.card .shape { position: absolute; right: -30%; top: 12%; width: 90%; aspect-ratio: 1; border-radius: 50%; border: 44px solid currentColor; opacity: .14; pointer-events: none; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card:hover .shape { transform: rotate(-30deg) scale(1.06); }
.c1 { background: var(--plum); color: var(--on-dark); }
.c1 .shape { color: var(--orange); opacity: .5; border-right-color: transparent; }
.c2 { background: var(--orange); color: var(--plum); }
.c3 { background: var(--magenta); color: var(--on-dark); }
.c4 { background: var(--light-2); color: var(--ink); }
.c4 .shape { color: var(--magenta); }
.c5 { background: var(--plum-2); color: var(--on-dark); }
.c5 .shape { color: var(--magenta); opacity: .45; border-bottom-color: transparent; }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; padding-block: 120px; }
.contact h2 { font-size: clamp(46px, 6.4vw, 96px); line-height: .95; font-weight: 700; margin: 14px 0 26px; }
.contact h2 em { font-style: normal; color: var(--orange); }
.wa {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center;
  background: var(--orange); color: var(--plum); text-decoration: none;
  padding: 22px 24px; border-radius: 6px; margin-bottom: 26px;
  transition: background-color .2s;
}
.wa:hover { background: var(--on-dark); }
.wa svg { width: 34px; height: 34px; }
.wa b { display: block; font-family: var(--display); font-size: 24px; letter-spacing: -.02em; }
.wa span { font-size: 15px; }
.coords { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 24px; }
.coords dt { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 4px; }
.coords dd { margin: 0; font-variant-numeric: tabular-nums; }

form.brief { background: var(--light); color: var(--ink); border-radius: 8px; padding: 32px; display: grid; gap: 18px; align-self: start; }
form.brief h3 { font-size: 30px; font-weight: 700; }
form.brief > p { margin: -10px 0 0; color: var(--muted); font-size: 15px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, fieldset legend { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--body); color: var(--ink);
  background: #FFFFFF; border: 1px solid rgba(36, 9, 31, .25); border-radius: 6px;
  padding: 12px 13px; width: 100%;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(175, 31, 142, .2); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(36, 9, 31, .3); padding: 8px 14px; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; }
.chips input:checked + label { background: var(--magenta); color: #FFFFFF; box-shadow: none; }
.chips input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
form.brief .pill { justify-self: start; background: var(--plum); color: var(--on-dark); }
form.brief .pill:hover { background: var(--magenta); }
.sent { background: rgba(246, 134, 31, .18); padding: 12px 14px; border-radius: 6px; font-weight: 500; font-size: 15px; margin: 0; }
.sent.error { background: rgba(175, 31, 142, .12); color: var(--magenta); }
.fineprint { margin: 0; font-size: 13px; color: var(--muted); }
.fineprint a { color: var(--ink); }
form.brief { position: relative; }
form.brief .pill[disabled] { opacity: .6; cursor: wait; }
.coords a { text-decoration: none; border-bottom: 1px solid var(--rule-dark); }
.coords a:hover { color: var(--orange); }

/* Lien d'évitement */
.skip { position: fixed; z-index: 100; left: calc(12px + env(safe-area-inset-left, 0px)); top: -80px; background: var(--orange); color: var(--plum); padding: 10px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

main:focus { outline: none; }

/* Pages simples (mentions légales, confidentialité, 404) */
.doc { background: var(--light); color: var(--ink); }
.doc .wrap { padding-block: 72px 110px; max-width: 820px; }
.doc h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 700; margin: 14px 0 32px; }
.doc h2 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 40px 0 10px; }
.doc p, .doc li { max-width: 68ch; }
.doc .todo { background: rgba(246, 134, 31, .22); padding: 0 4px; border-radius: 3px; }
.doc .back { display: inline-flex; gap: 8px; align-items: center; margin-top: 40px; font-weight: 600; }
.doc .back svg { width: 18px; height: 18px; }

/* Barre de contact mobile */
.mobile-bar { display: none; }

/* Pied */
footer { border-top: 1px solid var(--rule-dark); }
footer .wrap { padding-block: 48px 80px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
footer .sig { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; max-width: 18ch; }
footer .sig em { font-style: normal; color: var(--orange); }
footer .legal { display: grid; gap: 10px; justify-items: end; font-size: 14px; color: var(--on-dark-muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--orange); }


@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 48px 72px; }
  .metiers-band ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metiers-band li:nth-child(3) { border-left: 0; padding-left: 0; }
  .metiers-band li:nth-child(n+3) { border-top: 1px solid var(--rule-dark); }
  .tabs { grid-template-columns: minmax(0, 1fr); }
  .tablist { border-right: 0; }
  .panel { padding: 30px 0 0; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .timeline::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--orange), var(--magenta)); }
  .timeline li { padding: 0 0 0 48px; }
  .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  footer .legal { justify-items: start; }
}
@media (max-width: 760px) {
  .nav, .top .pill { display: none; }
  .menu-btn { display: block; }
  .top.open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: var(--plum); border-bottom: 1px solid var(--rule-dark); padding: 6px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); }
  .top.open .nav a { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; color: var(--on-dark); padding-block: 12px; border-bottom: 1px solid var(--rule-dark); }
  .sec, .method .wrap, .contact .wrap { padding-block: 84px; }
  .metiers-band ul { grid-template-columns: minmax(0, 1fr); }
  .metiers-band li, .metiers-band li:first-child, .metiers-band li:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-dark); }
  .metiers-band li:first-child { border-top: 0; }
  .tablist button { padding-block: 20px; }
  .panel ul { grid-template-columns: minmax(0, 1fr); }
  .arrows { display: none; }
  .row2, .coords { grid-template-columns: minmax(0, 1fr); }
  form.brief { padding: 22px; }
  .hero .wrap { padding-block: 40px 64px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar {
    display: flex; gap: 10px;
    position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    background: var(--plum); border-top: 1px solid var(--rule-dark);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .mobile-bar .pill { flex: 1; justify-content: center; padding: 14px 12px; font-size: 14px; white-space: nowrap; }
  }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
