/* Tandem Lab · site/style.css · Couleurs du logo 04k1b (27 octobre 2026) : papier chaud, bleu nuit, orange pour les traits et les accents ; le bleu nuit sombre seulement pour Jingluo. Une police : Outfit, celle du logo.
   Version du 23 novembre 2026 : apparitions au défilement, traits des fondateurs et fond de Jingluo liés au défilement, Jingluo que l'on tourne du bout du doigt. Les animations sont pilotées par le petit script en bas de index.html ; sans lui, tout s'affiche, immobile. */

@font-face { font-family: 'Outfit'; font-weight: 100 900; font-display: swap; src: url('fonts/outfit-latin.woff2') format('woff2'); 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; }
@font-face { font-family: 'Outfit'; font-weight: 100 900; font-display: swap; src: url('fonts/outfit-latin-ext.woff2') format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- jetons ---------- */
:root {
  --papier: #F6F1EA;        /* le fond : papier chaud */
  --papier-2: #ECE4D9;      /* un cran plus foncé */
  --nuit: #1B3A5C;          /* le bleu nuit du logo : le texte */
  --nuit-2: #4B5F75;        /* texte secondaire : 6:1 sur le papier */
  --orange: #E8833A;        /* l'orange du logo : traits et accents, jamais du texte courant */
  --marron: #8B5A2B;        /* le point du logo : petits textes d'accent, 5:1 sur le papier */
  --fond: #13263D;          /* le fond sombre du logo */
  --sur-fond-2: #C8D2DE;    /* texte secondaire sur le fond sombre : 10:1 */
  --orange-clair: #F4C19D;  /* le point du logo sur fond sombre */
  --filet: rgb(27 58 92 / 0.18);

  --font: 'Outfit', system-ui, sans-serif;
  --t-small: 0.9375rem;                                  /* 15px */
  --t-body: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);   /* 17–19px */
  --t-lead: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);     /* 22–30px */
  --t-dit: clamp(1.625rem, 1.1rem + 2.2vw, 2.75rem);     /* 26–44px : les deux phrases fortes */
  --t-titre: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);       /* 36–64px */
  --t-nom: clamp(3.5rem, 1.6rem + 8vw, 6rem);            /* 56–96px */

  --margin: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(5rem, 11vw, 10rem);
  --largeur: 65rem;         /* 1040px : contenu centré et compact sur grand écran (7 novembre 2026) */
  --barre: 5rem;            /* hauteur de la barre du haut */

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-doux: cubic-bezier(0.65, 0, 0.35, 1);

  /* Le grain du papier : un bruit très léger, teinté du marron du logo */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .18 0 0 0 .55 -.08'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='.13'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--nuit-2) var(--papier); }
body { margin: 0; background: var(--papier) var(--grain); color: var(--nuit); font-family: var(--font); font-size: var(--t-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--orange-clair); color: var(--nuit); }

.link { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 0.08em; text-underline-offset: 0.22em; transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* Le bouton de la barre : un contour qui se remplit */
.bouton { display: inline-flex; align-items: center; padding: 0.55rem 1.15rem; border: 1.5px solid var(--nuit); border-radius: 999px; font-size: var(--t-small); font-weight: 500; line-height: 1.2; text-decoration: none; transition: background-color 200ms ease, color 200ms ease, transform 150ms ease; }
.bouton:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .bouton:hover { background: var(--nuit); color: var(--papier); } }

/* ---------- la barre ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: calc(var(--largeur) + 2 * var(--margin)); min-height: var(--barre); margin: 0 auto; padding: 0 var(--margin); }
.bar__logo img { height: 2.25rem; width: auto; }

/* ---------- ouverture : les deux traits se rejoignent, le nom se dévoile, puis la signature ---------- */
/* Grand écran : le nom et la signature à gauche, le symbole en grand à droite ; téléphone : empilés, symbole d'abord.
   Sur grand écran, l'ouverture occupe tout le premier écran ; sur téléphone, elle reste compacte. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); max-width: calc(var(--largeur) + 2 * var(--margin)); min-height: calc(100vh - var(--barre)); min-height: calc(100svh - var(--barre)); margin: 0 auto; padding: clamp(2rem, 5vh, 4rem) var(--margin) clamp(4rem, 10vh, 6rem); }
.hero__symbol { width: 100%; max-width: 32rem; justify-self: end; order: 2; }
.hero__texte { order: 1; }
.hero__nom { font-size: clamp(3.5rem, 1rem + 6vw, 5.75rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; color: var(--nuit); }
/* Le nom en dégradé comme dans le logo : le mélange des deux couleurs tombe au milieu du mot */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero__nom { width: fit-content; background: linear-gradient(90deg, var(--nuit) 30%, var(--orange) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero__signature { margin-top: 1.25rem; max-width: 24ch; font-size: var(--t-lead); line-height: 1.3; color: var(--nuit-2); }

@media (prefers-reduced-motion: no-preference) {
  /* Les deux traits partent ensemble, à la même vitesse, et chacun continue dans sa moitié de boucle :
     le bleu remonte par le bas, l'orange descend par le haut, ils se rejoignent à droite. Aucun ne s'arrête avant l'autre.
     Départ et arrivée en douceur (élan sur 20 % du geste, arrivée sur 20 %), étapes calculées.
     La boucle entière apparaît sous les deux moitiés une fois la rencontre faite : aucune couture à la jonction. */
  .hero__trait { stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 0; animation: tracer-trait 1.4s linear 0.2s both; }
  .hero__trait--haut, .hero__trait--bas { animation-name: tracer-demi-boucle; }
  .hero__boucle { opacity: 0; animation: apparaitre 0.01s linear 1.6s forwards; }
  .hero__point { opacity: 0; transform: scale(0.3); transform-box: fill-box; transform-origin: center; animation: point 0.7s var(--ease-expo) 1.5s forwards; }
  /* Autour du symbole : la barre descend, le nom se dévoile de gauche à droite pendant que les traits avancent,
     la signature monte quand ils se rejoignent. */
  .bar { animation: descendre 0.9s var(--ease-expo) both; }
  .hero__nom { animation: devoiler 1.3s var(--ease-doux) 0.25s both; }
  .hero__signature { animation: monter 1s var(--ease-expo) 1.15s both; }
}
@keyframes tracer-trait {
  0% { stroke-dashoffset: 1; opacity: 0; }
  4.25% { stroke-dashoffset: 0.9924; opacity: 1; }
  8.5% { stroke-dashoffset: 0.9696; opacity: 1; }
  12.75% { stroke-dashoffset: 0.9315; opacity: 1; }
  17% { stroke-dashoffset: 0.8782; opacity: 1; }
  19.75% { stroke-dashoffset: 0.8357; opacity: 1; }
  69.25% { stroke-dashoffset: 0.0015; opacity: 1; }
  69.5% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes tracer-demi-boucle {
  0% { stroke-dashoffset: 1; opacity: 0; }
  69.25% { stroke-dashoffset: 1; opacity: 0; }
  69.5% { stroke-dashoffset: 0.9923; opacity: 1; }
  81.25% { stroke-dashoffset: 0.4254; opacity: 1; }
  83.75% { stroke-dashoffset: 0.3195; opacity: 1; }
  85.25% { stroke-dashoffset: 0.2633; opacity: 1; }
  86.5% { stroke-dashoffset: 0.2205; opacity: 1; }
  88.25% { stroke-dashoffset: 0.1671; opacity: 1; }
  90% { stroke-dashoffset: 0.121; opacity: 1; }
  91.75% { stroke-dashoffset: 0.0824; opacity: 1; }
  93.25% { stroke-dashoffset: 0.0551; opacity: 1; }
  95% { stroke-dashoffset: 0.0303; opacity: 1; }
  96.5% { stroke-dashoffset: 0.0148; opacity: 1; }
  98.25% { stroke-dashoffset: 0.0037; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes apparaitre { to { opacity: 1; } }
@keyframes point { to { opacity: 1; transform: none; } }
@keyframes descendre { from { opacity: 0; transform: translateY(-0.75rem); } }
@keyframes devoiler { from { clip-path: inset(-15% 100% -15% 0); } to { clip-path: inset(-15% -5% -15% 0); } }
@keyframes monter { from { opacity: 0; transform: translateY(1rem); filter: blur(6px); } }


/* ---------- apparitions au défilement (classes posées par le script) ---------- */
/* Une seule règle : chaque unité ne joue qu'une fois, dans l'ordre de la page (voir le script).
   .r : un titre court ou un paragraphe monte et se met au point · .r-titre : un grand titre se découvre de haut en bas
   (le script glisse son contenu dans un bloc .r-titre__dedans) · .r-ligne : un filet se tire, puis le contenu arrive ·
   .r-mots : une phrase forte s'écrit mot à mot */
@media (prefers-reduced-motion: no-preference) {
  .js .r, .js .r-ligne > * { opacity: 0; transform: translateY(1.1rem); filter: blur(6px); transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo), filter 0.9s var(--ease-expo); transition-delay: calc(var(--rang, 0) * 80ms); }
  .js .r.vu, .js .r-ligne.vu > * { opacity: 1; transform: none; filter: none; }
  .js .r-ligne > :nth-child(2) { --rang: 1; }
  .js .r-titre__dedans { display: block; clip-path: inset(0 -2% 100% -2%); transform: translateY(0.45em); transition: clip-path 1.1s var(--ease-expo), transform 1.1s var(--ease-expo); }
  .js .r-titre.vu .r-titre__dedans { clip-path: inset(-10% -2% -25% -2%); transform: none; }
  .js .r-mots .mot { opacity: 0; transform: translateY(0.35em); filter: blur(4px); transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo), filter 0.7s var(--ease-expo); transition-delay: calc(var(--i, 0) * 45ms); }
  .js .r-mots.vu .mot { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* Mouvement réduit : un simple fondu, sans déplacement */
  .js .r, .js .r-titre__dedans, .js .r-ligne > *, .js .r-mots { opacity: 0; transition: opacity 0.5s ease; }
  .js .r.vu, .js .r-titre.vu .r-titre__dedans, .js .r-ligne.vu > *, .js .r-mots.vu { opacity: 1; }
}

/* ---------- les deux phrases fortes : elles s'écrivent mot à mot, depuis l'invisible ---------- */
.dit { font-size: var(--t-dit); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; text-wrap: balance; }
.dit__fort { font-weight: 600; }
.dit .mot { display: inline-block; }

/* ---------- d'où vient la marque ---------- */
.origine { max-width: calc(var(--largeur) + 2 * var(--margin)); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--margin) var(--section); }
.origine__titre { font-size: var(--t-titre); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.origine__lead { margin-top: 1.5rem; max-width: 44ch; font-size: var(--t-lead); line-height: 1.35; }
/* Les deux fondateurs côte à côte sur toute la largeur, chacun sous l'un des deux traits du symbole */
.origine__duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 7vw, 5.5rem); }
.fondateur::before { content: ""; display: block; height: 3px; margin-bottom: 1.5rem; border-radius: 2px; background: var(--nuit); transform-origin: left center; }
.fondateur--sofiene::before { background: var(--orange); }
.fondateur__nom { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.fondateur__metier { margin: 0.25rem 0 1rem; font-weight: 500; color: var(--marron); }
.fondateur p:last-child { max-width: 40ch; font-size: 1.0625em; color: var(--nuit-2); }
/* Les traits des deux fondateurs se tirent de gauche à droite au rythme du défilement (--trait, de 0 à 1, posé par le script) */
@media (prefers-reduced-motion: no-preference) {
  .js .fondateur::before { transform: scaleX(var(--trait, 1)); }
}
.origine__fin { margin-top: clamp(3rem, 7vw, 5.5rem); max-width: 21em; }

/* ---------- ce que nous faisons (6 novembre 2026) : deux lignes « pour qui · quoi », sous un filet ---------- */
/* Grand écran : titre et intro à gauche, les deux lignes à droite, la phrase de fin sur toute la largeur */
.offre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 5rem); max-width: calc(var(--largeur) + 2 * var(--margin)); margin: 0 auto; padding: 0 var(--margin) var(--section); }
.offre__titre { font-size: var(--t-titre); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.offre__lead { margin-top: 1.5rem; max-width: 30ch; font-size: var(--t-lead); line-height: 1.35; }
.offre__liste { margin: 0.5rem 0 0; }
.offre__ligne { position: relative; padding: 1.75rem 0; }
.offre__ligne::before, .offre__ligne:last-child::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--filet); transform-origin: left center; }
.offre__ligne:last-child::after { top: auto; bottom: 0; }
.offre__pour { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 600; line-height: 1.25; }
.offre__ligne dd { margin: 0.5rem 0 0; max-width: 48ch; color: var(--nuit-2); }
.offre__fin { grid-column: 1 / -1; margin-top: clamp(2rem, 5vw, 4rem); max-width: 19em; }
@media (prefers-reduced-motion: no-preference) {
  .js .offre__ligne::before, .js .offre__ligne:last-child::after { transform: scaleX(0); transition: transform 1.3s var(--ease-expo); }
  .js .offre__ligne.vu::before { transform: none; }
  .js .offre__ligne:last-child.vu::after { transform: none; transition-delay: 0.25s; }
}

/* ---------- Jingluo : toute la largeur ; en arrivant, le fond passe du papier au bleu nuit (--nuitee, de 0 à 1, posé par le script) ---------- */
.jingluo { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(2.5rem, 5vw, 5rem); min-height: 100vh; min-height: 100svh; padding: var(--section) max(var(--margin), (100% - var(--largeur)) / 2); background: var(--fond); color: var(--papier); overflow: clip; }
@supports (background: color-mix(in oklab, red 50%, transparent)) {
  .js .jingluo { background: color-mix(in oklab, var(--fond) calc(var(--nuitee, 1) * 100%), transparent); }
}
.jingluo__texte { max-width: 36rem; }
.jingluo__nom { font-size: var(--t-nom); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.jingluo__nom [lang] { font-size: 0.5em; font-weight: 400; letter-spacing: 0; color: var(--orange-clair); }
.jingluo__sous { margin: 0.75rem 0 1.75rem; font-size: var(--t-lead); line-height: 1.3; color: var(--orange-clair); }
.jingluo__texte p:not([class]) { font-size: 1.0625em; color: var(--sur-fond-2); }
.jingluo__bientot { margin-top: 1.75rem; font-weight: 600; }
.jingluo ::selection { background: var(--orange); color: var(--fond); }
/* Le téléphone : un boîtier, une lueur tirée des couleurs de l'appli, et l'écran que l'on fait tourner */
.jingluo__ecran { position: relative; display: grid; justify-items: center; }
.jingluo__ecran::before { content: ""; position: absolute; left: 50%; top: 46%; width: 190%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgb(54 150 170 / 0.3), rgb(54 150 170 / 0.08) 55%, transparent); pointer-events: none; }
.appareil { position: relative; padding: 0.45rem; border-radius: 2.6rem; background: #0A1622; border: 1px solid rgb(246 241 234 / 0.16); box-shadow: 0 0.5rem 1.25rem -0.5rem rgb(0 0 0 / 0.5), 0 3rem 5rem -2rem rgb(0 0 0 / 0.7); }
.appareil video { display: block; width: clamp(14.5rem, 23vw, 19rem); aspect-ratio: 390 / 844; object-fit: cover; background: #0B2029; border-radius: 2.15rem; pointer-events: none; }
.appareil--tournant { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.appareil--saisi { cursor: grabbing; }
.appareil:focus-visible { border-radius: 2.6rem; outline-offset: 6px; }
.jingluo__geste { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 1.5rem; font-size: var(--t-small); color: var(--sur-fond-2); }
.jingluo__geste[hidden] { display: none; }
.jingluo__geste svg { flex: none; color: var(--orange-clair); }
@media (prefers-reduced-motion: no-preference) {
  /* Le téléphone se pose : il monte et grandit un peu */
  .js .jingluo__ecran.r { transform: translateY(3.5rem) scale(0.94); filter: none; transition-duration: 1.3s; }
  .js .jingluo__ecran.r.vu { transform: none; }
}

/* ---------- pied : l'adresse en grand, pour finir ---------- */
.pied { max-width: calc(var(--largeur) + 2 * var(--margin)); margin: 0 auto; padding: var(--section) var(--margin) clamp(2rem, 5vw, 3.5rem); }
.pied__invite { display: block; margin-bottom: 0.5rem; font-size: var(--t-lead); line-height: 1.3; color: var(--nuit-2); }
.pied__mail { display: inline-flex; align-items: center; gap: 0.3em; max-width: 100%; font-size: clamp(1.5rem, 0.55rem + 4.6vw, 4.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; text-decoration: none; }
/* Le soulignement orange du logo ; au survol, un surligné clair monte derrière l'adresse */
.pied__mail span { min-width: 0; overflow-wrap: anywhere; padding: 0.05em 0.08em 0.1em; margin: 0 -0.08em; border-radius: 0.12em; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 100% 0.07em no-repeat, linear-gradient(var(--orange-clair), var(--orange-clair)) 0 100% / 100% 0 no-repeat; transition: background-size 0.45s var(--ease-expo); }
.pied__mail svg { flex: none; width: 0.8em; height: 0.8em; color: var(--orange); transition: transform 0.45s var(--ease-expo); }
@media (hover: hover) and (pointer: fine) {
  .pied__mail:hover span { background-size: 100% 0.07em, 100% 100%; }
  .pied__mail:hover svg { transform: translate(0.12em, -0.12em); }
}
.pied__mail:focus-visible { outline-offset: 8px; border-radius: 0.5rem; }
.pied__legal { margin-top: clamp(4rem, 9vw, 7rem); padding-top: 1.5rem; border-top: 1px solid var(--filet); font-size: var(--t-small); color: var(--nuit-2); }

/* ---------- téléphone ---------- */
@media (max-width: 48em) {
  :root { --barre: 4.25rem; }
  .bar__logo img { height: 1.9rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(2.5rem, 8vh, 4.5rem) clamp(3.5rem, 12vw, 5rem); }
  .hero__symbol { order: 1; justify-self: start; width: clamp(13rem, 55vw, 20rem); margin-left: -0.4rem; }
  .hero__texte { order: 2; }
  .origine__duo { grid-template-columns: 1fr; }
  .offre { grid-template-columns: 1fr; }
  .offre__liste { margin-top: 1.5rem; }
  .jingluo { grid-template-columns: 1fr; min-height: 0; }
  .jingluo__ecran { justify-self: center; }
}

/* ---------- pages de texte (politiques de confidentialité) ---------- */
.doc__main { max-width: 44rem; margin: 0 auto; padding: clamp(3rem, 8vh, 6rem) var(--margin) 6rem; }
.doc__eyebrow { font-size: var(--t-small); color: var(--marron); margin-bottom: 2rem; }
.doc__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.doc__date { margin-top: 0.75rem; font-size: var(--t-small); color: var(--nuit-2); }
.doc h2 { font-size: 1.25rem; font-weight: 600; margin: 2.5rem 0 0.75rem; }
.doc p, .doc ul { margin-bottom: 0.75rem; }
.doc ul { list-style: disc; padding-left: 1.2em; }
.doc li { margin-bottom: 0.5rem; }
.doc li::marker { color: var(--orange); }
.doc b { font-weight: 600; }
