/* Mailinmotion — site vitrine
   Même famille typographique que CleanMail (Bricolage + Schibsted) pour une marque cohérente.
   Élément signature : le parcours client dessiné en ligne de métro dans l'en-tête. */

@font-face { font-family: "Bricolage"; src: url(fonts/bricolage-grotesque-latin-wdth-normal.woff2) format("woff2-variations"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Bricolage"; src: url(fonts/bricolage-grotesque-latin-ext-wdth-normal.woff2) format("woff2-variations"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: "Schibsted"; src: url(fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url(fonts/schibsted-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url(fonts/schibsted-grotesk-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url(fonts/schibsted-grotesk-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F3F4F7;
  --sheet: #FFFFFF;
  --ink: #171A3A;
  --ink-2: #4A4F72;
  --ink-3: #7C819F;
  --rule: #DCDFE8;
  --action: #3B3BEA;
  --action-dark: #2A2AC4;
  --accent: #3B3BEA;
  --ok: #17845A;
  --risk: #B86E00;
  --bad: #C42F3A;
  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --text: "Schibsted", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --r: 14px;
}

*, *::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: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-dark); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 3px; }
::selection { background: #D9D9FF; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 16px; max-width: 66ch; }
.small { font-size: 14.5px; color: var(--ink-3); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

h1, h2, h3 { font-family: var(--display); font-weight: 750; letter-spacing: -0.02em; line-height: 1.04; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(42px, 6vw, 80px); font-stretch: 80%; }
h2 { font-size: clamp(32px, 4vw, 52px); font-stretch: 82%; }
h3 { font-size: 22px; font-stretch: 92%; letter-spacing: -0.01em; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 52ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1 var(--text); padding: 15px 22px; border-radius: 10px; background: var(--action); color: #fff; text-decoration: none; border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--action-dark); color: #fff; }
.btn-small { padding: 10px 15px; font-size: 15px; }
.btn-block { width: 100%; }
.link { font-weight: 600; color: var(--ink); }

/* En-tête */
.top { max-width: var(--wrap); margin: 0 auto; padding: 18px clamp(18px, 4vw, 40px); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 750 22px/1 var(--display); font-stretch: 85%; letter-spacing: -0.02em; margin: 0; }
.logo:hover { color: var(--ink); }
.mark { width: 38px; height: 27px; color: var(--ink); }
.top nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.top nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }

/* Accroche */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.who { font-weight: 600; color: var(--ink-2); margin-bottom: 18px; }
.hero h1 { margin-bottom: 24px; }
.actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 30px; }

.journey { margin: 0; background: var(--sheet); border-radius: 22px; padding: 26px 26px 18px; box-shadow: 0 1px 0 var(--rule), 0 26px 50px -32px rgba(23, 26, 58, .4); }
.journey svg { width: 100%; height: auto; overflow: visible; }
.journey .track { fill: none; stroke: #E4E6EE; stroke-width: 10; stroke-linecap: round; }
.journey .track-live { fill: none; stroke: var(--action); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.journey .stop circle { fill: var(--sheet); stroke: var(--ink); stroke-width: 4; }
.journey .stop text { font: 600 15px var(--text); fill: var(--ink); }
.journey .stop .day { font: 500 13px var(--text); fill: var(--ink-3); }
.journey .goal circle { fill: var(--ok); stroke: var(--ok); }
.journey figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.journey.is-live .track-live { animation: draw 3.2s cubic-bezier(.45, .05, .3, 1) .3s forwards; }
.journey.is-live .stop { opacity: .35; animation: lit .4s ease forwards; }
.journey.is-live .s1 { animation-delay: .3s; } .journey.is-live .s2 { animation-delay: .8s; } .journey.is-live .s3 { animation-delay: 1.35s; }
.journey.is-live .s4 { animation-delay: 1.9s; } .journey.is-live .s5 { animation-delay: 2.5s; } .journey.is-live .s6 { animation-delay: 3.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lit { to { opacity: 1; } }

.tools { list-style: none; padding: 22px 0 0; margin: 56px 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 10px 34px; color: var(--ink-2); font-size: 15.5px; }
.tools b { color: var(--ink); font-weight: 650; }

/* Sections */
.section { padding: 96px 0; }
.band { padding: 96px 0; background: var(--sheet); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 52px; }
.head h2 { margin: 0; }
.head p { margin: 0; color: var(--ink-2); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillars article { border-top: 3px solid var(--ink); padding-top: 22px; }
.pillars p { color: var(--ink-2); font-size: 16px; }
.pillars ul { list-style: none; padding: 0; margin: 18px 0 0; }
.pillars li { padding: 9px 0 9px 22px; border-top: 1px solid var(--rule); position: relative; font-size: 15.5px; }
.pillars li::before { content: ""; position: absolute; left: 0; top: 18px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--action); }

/* Références : registre chronologique */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 210px 1fr; gap: 32px; padding: 30px 0; border-top: 1px solid var(--rule); }
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.years { font: 700 15px/1.4 var(--text); color: var(--ink-3); padding-top: 4px; font-variant-numeric: tabular-nums; }
.ledger h3 { font-size: 28px; font-stretch: 85%; margin-bottom: 10px; }
.ledger p { color: var(--ink-2); margin-bottom: 8px; }
.ledger .tags { font-size: 14.5px; color: var(--ink-3); margin: 0; }

.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.formats article { background: var(--paper); border-radius: var(--r); padding: 26px 24px; }
.formats h3 { font-size: 20px; }
.formats p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

/* Applications */
.app { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; background: var(--ink); color: #DADCEE; border-radius: 24px; padding: clamp(28px, 4vw, 56px); }
.app-name { font: 800 15px/1 var(--display); font-stretch: 80%; letter-spacing: .04em; text-transform: uppercase; color: #8BE0B9; margin-bottom: 18px; }
.app h3 { color: #fff; font-size: clamp(28px, 3vw, 38px); font-stretch: 82%; }
.app p { color: #B9BCD8; }
.app ul { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.app li { font-size: 14.5px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #E3E5F4; }
.app .btn { background: #fff; color: var(--ink); }
.app .btn:hover { background: #DADBFF; }
.app.soon { background: var(--sheet); color: var(--ink); }
.badge { font-size: 12px; padding: 3px 8px; border-radius: 99px; background: #FFF3C4; color: #6B5300; vertical-align: 2px; }
.app-visual { background: #fff; border-radius: 16px; padding: 10px 0; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px dashed var(--rule); color: var(--ink); font-size: 15px; }
.mini-row:last-child { border-bottom: 0; }
.st { font: 800 12.5px/1 var(--display); font-stretch: 75%; letter-spacing: .06em; text-transform: uppercase; font-style: normal; padding: 6px 9px 5px; border: 2px solid currentColor; border-radius: 4px; transform: rotate(-3deg); white-space: nowrap; }
.st.ok { color: var(--ok); } .st.bad { color: var(--bad); transform: rotate(-5deg); } .st.risk { color: var(--risk); transform: rotate(2deg); }
.more { margin-top: 22px; color: var(--ink-3); }

/* Parcours */
.parcours { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.head-col p { color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(var(--action), #C9CCE0); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 26px 38px; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--sheet); border: 3px solid var(--ink); }
.timeline li:first-child::before { background: var(--action); border-color: var(--action); }
.timeline span { display: block; font-size: 14px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.timeline b { display: block; color: var(--ink); font: 700 19px/1.3 var(--display); font-stretch: 90%; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.card { background: var(--sheet); border-radius: 20px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 1px 0 var(--rule); }
form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--ink-3); }
input, select, textarea { font: 400 16px/1.4 var(--text); padding: 12px 14px; border-radius: 10px; border: 1.5px solid #C9CDDA; background: #fff; color: var(--ink); width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px #D9D9FF; }
.has-error input, .has-error textarea { border-color: var(--bad); }
.field small { color: var(--bad); font-size: 14px; }
.error { background: #FAE6E8; color: #8E1E27; padding: 12px 14px; border-radius: 10px; margin: 0; }
.hp { position: absolute; left: -9999px; }
.done h3 { color: var(--ok); }

/* Pied de page */
.foot { padding: 40px 0; border-top: 1px solid var(--rule); }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 12px 32px; align-items: center; }
.foot nav { display: flex; gap: 24px; justify-content: flex-end; flex-wrap: wrap; font-size: 15px; }
.foot nav a { color: var(--ink-2); }
.foot .small { grid-column: 1 / -1; margin: 0; }
.foot .mark { width: 30px; height: 21px; }
.foot .logo { font-size: 18px; }

/* Page texte */
.page { max-width: 780px; margin: 0 auto; padding: 40px clamp(18px, 4vw, 40px) 96px; }
.page h2 { font-size: 30px; margin-top: 44px; }
.todo { background: #FFF3C4; padding: 0 4px; border-radius: 3px; }

@media (max-width: 980px) {
  .hero-grid, .head, .parcours, .contact-grid, .app { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .formats { grid-template-columns: 1fr 1fr; }
  .ledger li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { flex-direction: column; align-items: flex-start; }
  .top nav { justify-content: flex-start; gap: 16px; }
  .formats, .row { grid-template-columns: 1fr; }
  .section, .band { padding: 64px 0; }
  .foot-in { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .journey.is-live .track-live { animation: none; stroke-dashoffset: 0; }
  .journey.is-live .stop { animation: none; opacity: 1; }
}
