/* ============================================================
   Pidotis — feuille de styles
   Direction : clair éditorial coloré, typographie forte, animé.
   ============================================================ */

:root {
  --bg: #FAF8F5;
  --bg-soft: #F2EFEA;
  --surface: #FFFFFF;
  --ink: #14121F;
  --ink-soft: #4A4658;
  --ink-faint: #8A8698;
  --line: rgba(20, 18, 31, 0.10);
  --line-soft: rgba(20, 18, 31, 0.06);

  --c1: #2E6BE6;  /* bleu */
  --c2: #7C5CFF;  /* violet */
  --c3: #34D399;  /* vert */
  --c4: #E9A85A;  /* ambre */
  --c5: #FF7FB0;  /* rose */
  --c6: #38BDF8;  /* ciel */

  --grad: linear-gradient(100deg, #2E6BE6 0%, #7C5CFF 38%, #FF7FB0 70%, #E9A85A 100%);
  --grad-soft: linear-gradient(120deg, rgba(46,107,230,.12), rgba(124,92,255,.12), rgba(52,211,153,.12));

  --maxw: 1180px;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow-sm: 0 1px 2px rgba(20,18,31,.05), 0 6px 20px rgba(20,18,31,.05);
  --shadow-md: 0 8px 30px rgba(20,18,31,.08), 0 2px 8px rgba(20,18,31,.04);
  --shadow-lg: 0 30px 70px rgba(20,18,31,.14), 0 8px 24px rgba(20,18,31,.06);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

/* ------------------------- base ------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%;
  /* garde-fou anti scroll horizontal sur tous les écrans */
  overflow-x: hidden; overscroll-behavior-x: none;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.01em;
  width: 100%;
  overflow-x: clip;            /* double sécurité (compatible position:sticky) */
  overflow-wrap: break-word;   /* aucun mot trop long ne dépasse */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
::selection { background: rgba(124,92,255,.22); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* halos colorés de fond */
.aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: .50; will-change: transform;
}
.blob-1 { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: radial-gradient(circle at 30% 30%, #9bbcff, transparent 70%); animation: float1 22s var(--ease) infinite; }
.blob-2 { width: 40vw; height: 40vw; right: -10vw; top: 4vw; background: radial-gradient(circle at 60% 40%, #d9c6ff, transparent 70%); animation: float2 26s var(--ease) infinite; }
.blob-3 { width: 38vw; height: 38vw; left: 18vw; top: 48vh; background: radial-gradient(circle at 50% 50%, #bff0d8, transparent 70%); animation: float3 30s var(--ease) infinite; }
.blob-4 { width: 34vw; height: 34vw; right: 6vw; bottom: -8vw; background: radial-gradient(circle at 50% 50%, #ffd9c2, transparent 70%); animation: float1 28s var(--ease) infinite reverse; }

@keyframes float1 { 50% { transform: translate(4vw, 5vh) scale(1.08); } }
@keyframes float2 { 50% { transform: translate(-5vw, 3vh) scale(1.06); } }
@keyframes float3 { 50% { transform: translate(3vw, -4vh) scale(1.1); } }

/* ------------------------- typography helpers ------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .80rem; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-soft); text-transform: none;
  padding: 7px 14px 7px 12px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  max-width: 100%;            /* ne dépasse jamais l'écran */
}
.eyebrow > span:last-child { min-width: 0; }
.eyebrow__dot { align-self: center; }
.eyebrow--center { margin-inline: auto; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ------------------------- nav ------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 248, 245, .72);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
/* point du « i » remplacé par une pastille colorée, en écho au logo */
.brand__i { position: relative; display: inline-block; line-height: 1; }
.brand__i::before {
  content: ""; position: absolute; left: 50%; top: 0.1em;
  width: 0.2em; height: 0.2em; transform: translateX(calc(-50% + 0.4px));
  border-radius: 50%; background: var(--c4);
}
.brand__i--alt::before { background: var(--c6); }  /* 2e « i » en bleu ciel */

.nav__links { display: flex; gap: 6px; }
.nav__links a {
  font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 100px; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--bg-soft); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
/* sélecteur de langue segmenté FR | EN */
.langsw { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; box-shadow: var(--shadow-sm); }
.langsw__btn {
  font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .01em;
  color: var(--ink-faint); background: transparent; border: 0; border-radius: 100px;
  padding: 7px 13px; cursor: pointer; transition: color .2s var(--ease), background .25s var(--ease);
}
.langsw__btn:not(.is-active):hover { color: var(--ink); }
.langsw__btn.is-active { color: #fff; background: var(--ink); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------- hero ------------------------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 110px);
}
.hero > * { min-width: 0; }
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 6.6vw, 5.1rem); line-height: 1.03; letter-spacing: -.035em;
  margin: 22px 0 0; overflow-wrap: break-word;
}
.hero__title span { display: block; }
.hero__sub {
  margin-top: 24px; max-width: 30em; font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: var(--ink-soft); line-height: 1.65;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .98rem; padding: 14px 24px; border-radius: 100px;
  cursor: pointer; border: 1px solid transparent; transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s, border-color .22s;
  will-change: transform;
}
.btn--solid { color: #fff; background: var(--ink); box-shadow: var(--shadow-md); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(124,92,255,.4); box-shadow: var(--shadow-md); }

/* hero art : grappe d'icônes flottantes */
.hero__art { position: relative; aspect-ratio: 1; min-height: 320px; }
.orbit { position: absolute; inset: 0; }
.chip {
  position: absolute; display: grid; place-items: center;
  border-radius: 26%; background: var(--surface);
  box-shadow: var(--shadow-lg); padding: 9px;
  will-change: transform;
  /* Le cadre blanc ET l'icône bougent ensemble : flottement (bob) et physique
     souris sont composés dans le même transform via les variables --px/--py/--rot
     (pilotées par app.js). Sans JS, elles valent 0 → flottement seul. */
  animation: bob 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.chip img { width: 100%; height: 100%; border-radius: 22%; }
.chip--a { width: 30%; left: 6%;  top: 4%;  --d: -0.2s; }
.chip--b { width: 34%; right: 4%; top: 12%; --d: -1.4s; z-index: 2; }
.chip--c { width: 26%; left: 0%;  top: 46%; --d: -2.6s; }
.chip--d { width: 31%; right: 8%; bottom: 6%; --d: -3.1s; }
.chip--e { width: 27%; left: 30%; bottom: 0%; --d: -4.0s; }
.chip--f { width: 25%; left: 34%; top: 26%; --d: -5.2s; z-index: 3; }

@keyframes bob {
  0%, 100% { transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--rot, 0deg)); }
  50%      { transform: translate(var(--px, 0px), calc(var(--py, 0px) - 12px)) rotate(calc(var(--rot, 0deg) - 2deg)); }
}

/* ------------------------- stats ------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-md);
}
.stat { text-align: center; padding: 20px 12px; border-radius: var(--radius-sm); transition: background .25s; }
.stat:hover { background: var(--bg-soft); }
.stat__num { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; letter-spacing: -.03em; }
.stat__num--text { font-size: clamp(1.05rem, 2.2vw, 1.5rem); padding-top: .4em; }
.stat__label { display: block; margin-top: 9px; font-size: .9rem; color: var(--ink-soft); }

/* ------------------------- sections ------------------------- */
.section { padding-top: clamp(64px, 9vw, 128px); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section__head .eyebrow { margin-bottom: 18px; }
.section__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em; overflow-wrap: break-word; }
.section__sub { margin-top: 16px; color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.14rem); }

/* ------------------------- apps grid ------------------------- */
/* min(340px,100%) : un track ne peut jamais dépasser la largeur de l'écran */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 22px; }
.apps-grid > * { min-width: 0; }
.stats > * { min-width: 0; }

.app-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column; gap: 16px;
}
.app-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  transition: opacity .35s var(--ease);
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.app-card:hover::before { opacity: 1; }

.app-card__top { display: flex; align-items: center; gap: 15px; }
.app-card__icon {
  width: 60px; height: 60px; border-radius: 16px; flex: none;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent);
  border: 1px solid var(--line-soft);
}
.app-card__id { flex: 1; min-width: 0; }
.app-card__name { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; }
.app-card__cat { font-size: .85rem; font-weight: 500; color: color-mix(in srgb, var(--accent) 72%, var(--ink-soft)); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: .74rem; font-weight: 600; padding: 5px 11px; border-radius: 100px;
  letter-spacing: .01em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--live { color: #0d8a52; background: rgba(16,185,129,.12); }
.badge--soon { color: var(--ink-soft); background: var(--bg-soft); }
.badge--live::before { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.app-card__tagline { font-weight: 600; font-size: 1.04rem; line-height: 1.4; }
.app-card__desc { color: var(--ink-soft); font-size: .96rem; line-height: 1.6; flex: 1; }

.app-card__links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.store {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .87rem; font-weight: 600; padding: 9px 14px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.store:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--surface); }
.store svg { width: 15px; height: 15px; flex: none; }

/* plateforme pas encore disponible : bouton grisé, non cliquable. Le libellé
   reste court (iOS/Android/Web) ; « Arrive bientôt » apparaît en infobulle au
   survol, ce qui garde les trois boutons compacts sur une seule ligne. */
.store--soon { position: relative; color: var(--ink-faint); background: transparent; border-style: dashed; cursor: default; }
.store--soon:hover { transform: none; border-color: var(--line); }
.store--soon::after {
  content: attr(data-hint);
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translate(-50%, 4px); white-space: nowrap;
  background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  padding: 5px 9px; border-radius: 8px; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.store--soon:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------- studio ------------------------- */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
/* min-width:0 : empêche le bandeau techno (max-content) de faire gonfler
   la colonne et de pousser les valeurs hors écran. */
.studio > * { min-width: 0; }
.studio__intro .section__title { margin-top: 18px; max-width: 14ch; }
.studio__body { margin-top: 20px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.7; max-width: 46ch; }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 26px 28px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
/* halo d'accent dans le coin, qui s'intensifie au survol — rappel des cartes d'apps */
.value::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(120% 85% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 58%);
  transition: opacity .4s var(--ease);
}
.value > * { position: relative; }
.value:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}
.value:hover::before { opacity: 1; }

.value__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.value__ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--accent) 86%, #fff) 0%,
    var(--accent) 52%,
    color-mix(in srgb, var(--accent) 74%, var(--ink)) 100%);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 34%, transparent);
  transition: transform .4s var(--ease);
}
.value:hover .value__ico { transform: translateY(-3px) scale(1.05); }
.value__ico svg { width: 23px; height: 23px; stroke: #fff; }

/* ---- icônes animées au survol : chaque valeur a sa signature ---- */
/* fill-box : les transformations des tracés tournent autour de leur propre centre */
.value__ico svg { transform-origin: center; }
.value__ico svg path { transform-box: fill-box; transform-origin: center; }

/* Design-first : l'étoile scintille, la petite étincelle pulse */
@keyframes ico-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  40%      { transform: scale(1.14) rotate(10deg); }
  72%      { transform: scale(.97) rotate(-4deg); }
}
@keyframes ico-spark {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(.35); opacity: .4; }
}
.value:hover .value__ico--sparkles svg { animation: ico-twinkle 1.6s var(--ease) infinite; }
.value:hover .value__ico--sparkles svg path:nth-child(2) { animation: ico-spark 1.1s ease-in-out infinite; }

/* Privacy-first : la coche se retrace, comme une vérification */
@keyframes ico-check {
  from { stroke-dashoffset: 14; }
  to   { stroke-dashoffset: 0; }
}
.value:hover .value__ico--shield svg path:nth-child(2) {
  stroke-dasharray: 14; animation: ico-check .55s var(--ease) forwards;
}

/* Built to last : la couche supérieure de la pile flotte légèrement */
@keyframes ico-stack {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.8px); }
}
.value:hover .value__ico--layers svg path:nth-child(1) { animation: ico-stack 1.3s ease-in-out infinite; }

/* Crafted in France : le cœur bat (double pulsation) */
@keyframes ico-heartbeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.22); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.13); }
  60%      { transform: scale(1); }
}
.value:hover .value__ico--heart svg { animation: ico-heartbeat 1.3s ease-in-out infinite; }
.value__num {
  font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1;
  letter-spacing: -.02em; opacity: .5;
  color: color-mix(in srgb, var(--accent) 60%, var(--ink-faint));
}
.value__t { font-family: var(--display); font-weight: 600; font-size: 1.18rem; margin-bottom: 8px; letter-spacing: -.01em; }
.value__b { font-size: .95rem; color: var(--ink-soft); line-height: 1.6; }

/* ------------------------- contact ------------------------- */
.contact {
  position: relative; overflow: hidden; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(40px, 6vw, 76px) 24px; box-shadow: var(--shadow-md);
}
.contact::before { content: ""; position: absolute; inset: 0; opacity: .5; background: radial-gradient(80% 120% at 50% -20%, rgba(124,92,255,.18), transparent 60%); pointer-events: none; }
.contact > * { position: relative; }
.contact .eyebrow { margin-bottom: 18px; }
.contact .section__title { max-width: 16ch; margin-inline: auto; }
.contact .section__sub { max-width: 44ch; margin-inline: auto; }
/* formulaire de contact */
.cform { max-width: 540px; margin: 32px auto 0; display: grid; gap: 14px; text-align: left; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform input, .cform textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  transition: border-color .2s var(--ease), background .2s, box-shadow .2s;
}
.cform textarea { min-height: 132px; resize: vertical; }
.cform input::placeholder, .cform textarea::placeholder { color: var(--ink-faint); }
.cform input:focus, .cform textarea:focus {
  outline: none; background: var(--surface);
  border-color: color-mix(in srgb, var(--c2) 55%, var(--line));
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .12);
}
.cform button { width: 100%; margin-top: 2px; }
.cform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform__captcha { display: flex; justify-content: center; min-height: 0; }
.cform__captcha:empty { display: none; }   /* masqué tant que hCaptcha n'a pas rendu son widget */
.cform__note { font-size: .82rem; color: var(--ink-faint); text-align: center; }
.cform__status { min-height: 1.2em; margin-top: -2px; font-size: .92rem; font-weight: 600; text-align: center; }
.cform__status.is-ok { color: #0d8a52; }
.cform__status.is-err { color: #d6453d; }
.cform__status.is-warn { color: #b07516; }

/* ------------------------- footer ------------------------- */
.footer { margin-top: clamp(72px, 9vw, 130px); border-top: 1px solid var(--line); padding: 56px 0 36px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer__tagline { margin-top: 14px; color: var(--ink-soft); font-size: .94rem; max-width: 30ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__title { font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 4px; }
.footer__col a { color: var(--ink-soft); font-size: .95rem; width: fit-content; transition: color .2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: .85rem; color: var(--ink-faint); }
.footer__made::before { content: "✦ "; color: var(--c2); }

/* ------------------------- reveal animations ------------------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ------------------------- legal pages ------------------------- */
.legal { max-width: 760px; padding-top: clamp(40px, 6vw, 80px); padding-bottom: 60px; }
.legal h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; margin-bottom: 8px; }
.legal .updated { color: var(--ink-faint); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: color-mix(in srgb, var(--c2) 70%, var(--ink)); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-soft); margin-bottom: 24px; }
.back-link:hover { color: var(--ink); }
[data-lang] { display: none; }

/* ------------------------- responsive ------------------------- */
/* Tablettes & petits portables */
@media (max-width: 980px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 4px; }
  /* Mobile : le texte mène (eyebrow + titre + sous-titre + CTA), puis la grappe
     d'icônes vient en showcase, posée sur un halo doux — au lieu d'icônes
     « brutes » tout en haut sans contexte. Elle reste interactive au doigt. */
  .hero__art {
    order: 0; width: 100%; max-width: 380px; margin: 26px auto 0;
    min-height: 0; aspect-ratio: 1;
    background: radial-gradient(58% 54% at 50% 46%, rgba(124,92,255,.14), rgba(46,107,230,.06) 46%, transparent 72%);
    border-radius: 32px;
  }
  .studio { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Passage en menu burger + colonnes simplifiées */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(250,248,245,.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 14px 24px 20px; box-shadow: var(--shadow-md);
  }
  .nav__links.open a { padding: 12px 14px; font-size: 1.05rem; }
  .values { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 18px 8px; }
}

/* Téléphones */
@media (max-width: 560px) {
  .nav__inner { gap: 12px; }
  .stat__num--text { font-size: 1.05rem; }
}

@media (max-width: 440px) {
  .wrap { padding-inline: 18px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .contact { padding-inline: 18px; }
}

/* Très petits téléphones (≈320–360px) : on serre tout pour zéro débordement */
@media (max-width: 360px) {
  .wrap { padding-inline: 15px; }
  .nav__inner { gap: 8px; }
  .brand__name { font-size: 1.05rem; }
  .langsw__btn { padding: 7px 10px; }
  .stats { gap: 4px; padding: 10px; }
  .app-card, .value, .contact { padding: 20px; }
}

/* ------------------------- reduced motion ------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .blob { animation: none; }
}
