/* ==========================================================================
   Expedigo — feuille de style unique (site statique autonome)
   Points de rupture repris de l'original :
     desktop  >= 1200px
     tablette 810px – 1199.98px
     mobile   <= 809.98px
   ========================================================================== */

/* ---------- Polices auto-hébergées ---------- */
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
/* Hanken Grotesk (Google Fonts, police variable : un fichier couvre 300→500) */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 300 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 300 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Variables ---------- */
:root {
  --bg: #000;
  --card: rgb(20, 20, 20);
  --tile: rgb(18, 18, 18);
  --text-strong: rgb(230, 230, 230);
  --text-title: rgb(219, 219, 219);
  --text-muted: rgb(191, 191, 191);
  --border-soft: rgba(255, 255, 255, 0.15);
  --border-card: rgba(204, 204, 204, 0.1);
  --font: "Satoshi", "Satoshi Placeholder", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-alt: "Hanken Grotesk", "Satoshi", system-ui, sans-serif;
  --container: 1016px;
  --gutter: 32px;
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-strong);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.only-mobile { display: none; }

/* ---------- Fond : halo animé + grain (fixes, comme sur l'original) ---------- */
.bg-glow {
  position: fixed;
  z-index: 0;
  top: calc(50% - 240px);
  left: 7.66667%;
  width: 85%;
  height: 480px;
  overflow: hidden;
  background: rgb(20, 20, 20);
  filter: blur(80px);
  pointer-events: none;
  transform: translateZ(0);
}
.bg-glow__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-noise {
  position: fixed;
  z-index: 0;
  inset: 0;
  height: 100vh;
  background: url("../img/noise.png") repeat;
  background-size: 128px;
  opacity: .075;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track, .shine, .pill__shine-border, .btn-glow { animation: none !important; }
}

/* ---------- Apparitions au scroll (reprises du site d’origine) ----------
   Départ : opacity 0, translateY(12px), perspective 1200px.
   Ressorts d’origine convertis en courbes CSS :
     fast   = masse .6, raideur 300, amortissement 50  -> ~0,97 s
     slow   = masse 1,  raideur 250, amortissement 60  -> ~1,40 s
     case   = masse 1,  raideur 400, amortissement 80  -> ~1,18 s
     bouncy = masse 1,  raideur 400, amortissement 30  -> ~0,44 s
   Le contenu reste visible sans JS (règles limitées à html.js). */
:root {
  --spring-od: linear(0, .167, .359, .505, .621, .707, .776, .828, .867, .898, .922, .94, .954, .964, .973, .979, .984, .987, .99, .993, .994, .996, .997, .998, 1);
  --spring-bouncy: linear(0, .057, .185, .349, .505, .644, .76, .852, .922, .968, .998, 1.016, 1.024, 1.027, 1.025, 1.022, 1.018, 1.013, 1.01, 1.007, 1.004, 1.002, 1.001, 1, 1);
}
html.js [data-appear] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: var(--appear-dur, .97s);
  transition-timing-function: var(--spring-od);
  transition-delay: var(--appear-delay, 0s);
}
html.js [data-appear="up"] { transform: perspective(1200px) translateY(12px); }
html.js [data-appear="up-flat"] { transform: translateY(12px); }
html.js [data-appear-spring="fast"]   { --appear-dur: .97s; }
html.js [data-appear-spring="slow"]   { --appear-dur: 1.4s; }
html.js [data-appear-spring="case"]   { --appear-dur: 1.18s; }
html.js [data-appear-spring="bouncy"] { --appear-dur: .44s; transition-timing-function: var(--spring-bouncy); }
html.js [data-appear].is-in { opacity: 1; transform: none; }
@supports not (transition-timing-function: linear(0, 1)) {
  html.js [data-appear] { transition-timing-function: cubic-bezier(.2, .75, .3, 1); }
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-appear] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mise en page ---------- */
.page, .footer {
  position: relative;
  z-index: 1;
}
.page {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Titres ---------- */
.title-shine {
  font-weight: 500;
  font-size: 46px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--text-strong);
  background-image: radial-gradient(61% 200% at 39.7% 21.9%, rgb(255, 255, 255) 0%, rgba(180, 195, 204, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title {
  font-weight: 400;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  color: var(--text-strong);
}
.section-title--center { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo { display: block; width: 100%; }
.hero-logo img {
  width: 100%;
  max-width: none;
  height: 108px;
  object-fit: contain;
}
.hero-title { margin-top: 46px; }
.hero-sub {
  margin-top: 21px;
  max-width: 500px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-muted);
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* Bouton « lumineux » (effet « Running stroke » d’origine) :
   le halo fait le tour Haut -> Droite -> Bas -> Gauche, un changement toutes les 0,7 s,
   transition linéaire de 0,8 s -> boucle de 2,8 s. */
@property --gw { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --gh { syntax: "<percentage>"; inherits: true; initial-value: 100%; }
@property --gx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --gy { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --sw { syntax: "<percentage>"; inherits: true; initial-value: 49.27%; }
@property --sh { syntax: "<percentage>"; inherits: true; initial-value: 119%; }
@property --sx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --sy { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@keyframes running-stroke {
  0%, 100% { --gw: 50%; --gh: 100%;  --gx: 50%;  --gy: 50%;  --sw: 49.27%; --sh: 119%;  --sx: 50%;  --sy: 50%; }  /* Haut */
  25%      { --gw: 25%; --gh: 35.4%; --gx: 100%; --gy: 50%;  --sw: 16.2%;  --sh: 41.2%; --sx: 100%; --sy: 50%; }  /* Droite */
  50%      { --gw: 25%; --gh: 50%;   --gx: 50%;  --gy: 100%; --sw: 20.7%;  --sh: 50%;   --sx: 50%;  --sy: 100%; } /* Bas */
  75%      { --gw: 25%; --gh: 34.4%; --gx: 0%;   --gy: 50%;  --sw: 16.6%;  --sh: 43.1%; --sx: 0%;   --sy: 50%; }  /* Gauche */
}
.btn-glow {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 51px;
  padding: 0 28px;
  border-radius: 118px;
  background: rgb(10, 10, 10);
  color: #fff;
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  animation: running-stroke 2.8s linear infinite;
  transition: --gw .8s linear, --gh .8s linear, --gx .8s linear, --gy .8s linear, --sw .8s linear, --sh .8s linear, --sx .8s linear, --sy .8s linear;
}
.btn-glow__glow, .btn-glow__stroke, .btn-glow__fill {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.btn-glow__glow {
  inset: 0;
  border-radius: 72px;
  background: radial-gradient(var(--gw) var(--gh) at var(--gx) var(--gy), rgb(181, 225, 255) 0%, rgba(181, 225, 255, 0) 100%);
  filter: blur(15px);
}
.btn-glow__stroke {
  inset: 0;
  border-radius: 72px;
  background: radial-gradient(var(--sw) var(--sh) at var(--sx) var(--sy), rgb(125, 203, 255) 0%, rgba(161, 217, 255, 0) 100%);
}
.btn-glow__fill {
  inset: 2px;
  border-radius: 114px;
  background: rgb(10, 10, 10);
}
.btn-glow__label { position: relative; }
/* Survol (variante survol d’origine) : halo centré, contour plein */
.btn-glow:hover {
  animation: none;
  --gw: 50%; --gh: 100%; --gx: 50%; --gy: 50%;
  --sw: 75%; --sh: 181.16%; --sx: 50%; --sy: 50%;
}

/* Bouton contour */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--border-soft);
  border-radius: 37px;
  background: transparent;
  box-shadow: inset 0 -1px 0 0 rgba(47, 43, 67, .1), 0 1px 3px 0 rgba(47, 43, 67, .1);
  color: #fff;
  font-family: var(--font-alt);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}
.btn-outline .icon { flex: none; width: 20px; height: 20px; color: #fff; }
a.btn-outline[href]:hover { border-color: rgba(255, 255, 255, .3); background-color: rgba(255, 255, 255, .04); }
.btn-rdv { cursor: default; }
.btn-small { background: var(--card); align-self: flex-start; }

/* ---------- Cas clients ---------- */
.cases { margin-top: 123px; }
.cases .section-title { margin-bottom: 48px; }
.case {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  height: 500px;
  padding: 60px 40px;
  border-radius: 32px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--border-card);
}
.case + .case { margin-top: 48px; }
.case__glow {
  position: absolute;
  z-index: -1;
  top: -45px;
  right: 0;
  width: 590px;
  height: 590px;
  border-radius: 50%;
  opacity: .15;
  filter: blur(100px);
  pointer-events: none;
}
.case--green .case__glow { background: rgb(130, 201, 94); }
.case--orange .case__glow { background: rgb(212, 135, 64); }
.case__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 0;
}
.case__title {
  font-weight: 400;
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: var(--text-title);
}
.case__desc {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: var(--text-muted);
}
.case--orange .case__desc { text-wrap: balance; }
.case__media { min-width: 0; }
.case__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 428 / 245;
  object-fit: cover;
  border-radius: 8px;
}
.case__stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
}
.case__stats dt {
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-strong);
}
.case__stats dd {
  margin-top: 9px;
  font-weight: 500;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text-strong);
}

/* ---------- À propos (phrases + pastilles) ---------- */
.about {
  margin-top: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 18px;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: #fff;
  text-align: center;
}
.about__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 17px;
  row-gap: 18px;
}
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 17px;
  border-radius: 277px;
  overflow: hidden;
  background: rgb(60, 63, 68);          /* « Border » */
  white-space: nowrap;
  isolation: isolate;
}
.pill__shine-border {                    /* « Border-Shine » (masque qui balaie) */
  position: absolute;
  inset: 0;
  background: rgb(90, 97, 101);
  -webkit-mask-image: linear-gradient(to right, transparent 30%, #EEE 50%, transparent 70%);
  mask-image: linear-gradient(to right, transparent 30%, #EEE 50%, transparent 70%);
  -webkit-mask-size: 150% auto;
  mask-size: 150% auto;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  animation: shine 5s ease-in-out infinite;
}
.pill__fill {                            /* « Fill » */
  position: absolute;
  inset: 1px;
  border-radius: 427px;
  background: #000;
}
.pill__text, .pill__layer {
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0;
}
.pill__text {                            /* « Text » */
  position: relative;
  z-index: 1;
  color: rgb(173, 177, 184);
}
.pill__layer {                           /* « Glow » x2 + « Shine » */
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: rgb(237, 238, 240);
  pointer-events: none;
  user-select: none;
}
.pill__layer--blur3 { filter: blur(3px); }
.pill__layer--blur6 { filter: blur(6px); }
.pill__layer--sharp { z-index: 2; }
.shine {
  display: inline-block;
  -webkit-mask-image: linear-gradient(to right, transparent 30%, #EEE 50%, transparent 70%);
  mask-image: linear-gradient(to right, transparent 30%, #EEE 50%, transparent 70%);
  -webkit-mask-size: 150% auto;
  mask-size: 150% auto;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  animation: shine 5s ease-in-out infinite;
}
@keyframes shine {
  0%   { -webkit-mask-position: 200%; mask-position: 200%; }
  100% { -webkit-mask-position: -100%; mask-position: -100%; }
}

/* ---------- Partenaires (bandeau défilant) ---------- */
.partners { margin-top: 106px; }
.ticker {
  margin-top: 38px;
  padding: 10px 0;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
  --tile: 86px;
  --tile-gap: 64px;
  --tile-radius: 32px;
  --logo-scale: 1;
  --ticker-duration: 120s; /* 16 tuiles x 150 px / 20 px/s */
}
.ticker__track {
  flex: none;
  display: flex;
  gap: var(--tile-gap);
  padding-right: var(--tile-gap);
  animation: ticker var(--ticker-duration) linear infinite;
}
@keyframes ticker { to { transform: translateX(-100%); } }
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tile);
  height: var(--tile);
  border-radius: var(--tile-radius);
  background: var(--tile);
  background-color: rgb(18, 18, 18);
}
.tile img { max-width: none; object-fit: contain; }
.logo-base     { width: calc(48px * var(--logo-scale)); height: calc(48px * var(--logo-scale)); }
.logo-cm       { width: calc(81px * var(--logo-scale)); height: calc(87px * var(--logo-scale)); }
.logo-bnp      { width: calc(71px * var(--logo-scale)); height: calc(105px * var(--logo-scale)); }
.logo-lovable  { width: calc(40px * var(--logo-scale)); height: calc(40px * var(--logo-scale)); }
.logo-sendcloud{ width: calc(45px * var(--logo-scale)); height: calc(45px * var(--logo-scale)); }
.logo-webflow  { width: calc(44px * var(--logo-scale)); height: calc(44px * var(--logo-scale)); }
.logo-hotjar   { width: calc(37px * var(--logo-scale)); height: calc(43px * var(--logo-scale)); }
.logo-notion   { width: calc(37px * var(--logo-scale)); height: calc(40px * var(--logo-scale)); }
.logo-glide    { width: calc(48px * var(--logo-scale)); height: calc(48px * var(--logo-scale)); }

/* ---------- Compétences ---------- */
.skills { margin-top: 144px; }
.skills__list {
  margin-top: 32px;
  max-width: 720px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.skills__list li {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--border-soft);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: var(--text-strong);
}
.skills__list li.skills__more {
  padding: 8px 16px;
  font-size: 18px;
  color: var(--text-muted);
}

/* ---------- CTA ---------- */
.cta {
  margin-top: 121px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta .btn-glow { margin-top: 30px; padding: 0 28px; }

/* ---------- Pied de page ---------- */
.footer {
  max-width: calc(1024px + 2 * var(--gutter));
  margin: 124px auto 0;
  padding: 0 var(--gutter) 31px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: var(--text-muted);
}
.footer a { color: var(--text-title); transition: color .2s ease; }
.footer a:hover { color: #fff; }

/* ==========================================================================
   Tablette : 810px – 1199.98px
   ========================================================================== */
@media (max-width: 1199.98px) {
  .bg-glow { left: 0; width: 100%; }
  .hero { padding-top: 96px; }
  .title-shine { font-size: 38px; letter-spacing: -0.32px; }
  .hero-title { margin-top: 46px; }
  .hero-sub { margin-top: 23px; font-size: 18px; }
  .section-title { font-size: 30px; letter-spacing: -0.5px; }
  .cases { margin-top: 125px; }
  .case__title { font-size: 22px; line-height: 1.3; }
  .case__stats dt { font-size: 18px; }
  .case__stats dd { font-size: 36px; }
  .about { margin: 116px auto 0; max-width: 650px; font-size: 20px; flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 17px; }
  .about__row { display: contents; }
  .partners { margin-top: 116px; }
  .ticker { margin-top: 39px; }
  .skills { margin-top: 160px; }
  .skills__list { margin-top: 48px; max-width: 600px; }
  .skills__list li.skills__more { font-size: 16px; }
  .cta { margin-top: 120px; }
  .footer { font-size: 12px; }
}

/* ==========================================================================
   Mobile : <= 809.98px
   ========================================================================== */
@media (max-width: 809.98px) {
  :root { --gutter: 16px; }
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
  br.only-mobile { display: inline; }

  .hero { padding: 128px 8px 0; }
  .title-shine { font-size: 32px; }
  .hero-title { max-width: 330px; }
  .hero-sub { font-size: 18px; max-width: 342px; }
  .hero-actions { margin-top: 30px; flex-direction: column; }
  .btn-glow { padding: 0 28px; }

  .cases { margin-top: 95px; }
  .cases .section-title { margin-bottom: 32px; }
  .case {
    display: block;
    height: auto;
    padding: 32px 24px;
    border-radius: 24px;
  }
  .case--orange { border-radius: 32px; }
  .case + .case { margin-top: 32px; }
  .case__glow { display: none; }
  .case__desc { font-size: 16px; }
  .case--orange .case__desc { text-wrap: wrap; }
  .case__text .btn-small { margin-top: 32px; }
  .case__media { margin-top: 32px; }
  .case__stats { margin-top: 25px; }
  .case__stats dd { font-size: 32px; }

  .about { padding: 0 8px; margin-top: 116px; max-width: none; column-gap: 12px; row-gap: 11px; }
  .about__long { white-space: normal; }

  .partners { margin-top: 116px; }
  .partners .section-title { text-align: center; }
  .ticker {
    margin-top: 51px;
    margin-left: 8px; margin-right: 8px;
    --tile: 50px;
    --tile-radius: 12px;
    --logo-scale: .625;
    --ticker-duration: 91.2s; /* 16 tuiles x 114 px / 20 px/s */
  }

  .skills { margin-top: 96px; }
  .skills .section-title { text-align: center; }
  .skills__list { margin: 32px auto 0; max-width: 318px; justify-content: center; }

  .cta { margin-top: 138px; }
  .cta .btn-glow { margin-top: 28px; }

  .footer {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .footer__copy { text-align: left; }
}

/* Bouton lumineux + apparition : on cumule les transitions (apparition ressort / survol 0,8 s linéaire) */
html.js .btn-glow[data-appear] {
  transition-property: opacity, transform, --gw, --gh, --gx, --gy, --sw, --sh, --sx, --sy;
  transition-duration: var(--appear-dur), var(--appear-dur), .8s, .8s, .8s, .8s, .8s, .8s, .8s, .8s;
  transition-timing-function: var(--spring-od), var(--spring-od), linear, linear, linear, linear, linear, linear, linear, linear;
  transition-delay: var(--appear-delay, 0s), var(--appear-delay, 0s), 0s, 0s, 0s, 0s, 0s, 0s, 0s, 0s;
}
