/* Le site vitrine de Deskbox (story P18).
 *
 * Mêmes jetons que l'application — charte U4 — pour que le site et le produit
 * se ressemblent : quelqu'un qui arrive sur l'app après avoir vu cette page
 * doit reconnaître l'endroit.
 *
 * La police est servie par nous et non par Google Fonts, pour la même raison
 * que dans l'application (story P3) : sans ça, chaque visiteur transmettrait
 * son adresse IP à un tiers avant même d'avoir vu la page, ce qu'une
 * politique de confidentialité française doit déclarer — ou supprimer.
 */

@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('/polices/public-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('/polices/public-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('/polices/public-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('/polices/public-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --db-degrade: linear-gradient(to top, #001ea2, #9b48e9);
  --db-fond: #f5f7fc;
  --db-surface: #ffffff;
  --db-surface-2: #edf1f8;
  --db-encre: #151a2b;
  --db-texte-2: #525a6b;
  --db-texte-3: #686f85;
  --db-texte-4: #868c99;
  --db-trait: #e2e7f2;
  --db-trait-fort: #d3dae8;
  --db-accent: #3f3ece;
  --db-accent-fort: #2e34bc;
  --db-accent-teinte: #edeefc;
  --db-accent-bord: #dbdcfa;
  --db-succes: #10704a;
  --db-danger: #a41f32;
  --db-ombre-1: 0 1px 2px rgba(16,24,64,.05), 0 3px 10px rgba(16,24,64,.055);
  --db-ombre-2: 0 2px 4px rgba(16,24,64,.05), 0 12px 26px -10px rgba(16,24,64,.2);
  --db-ombre-3: 0 4px 8px -2px rgba(16,24,64,.18), 0 18px 32px -10px rgba(16,24,64,.3);
  --db-ombre-accent: 0 8px 20px -6px rgba(63,62,206,.5);
  --db-rayon: 12px;
  --db-rayon-carte: 15px;
  --db-cible: 44px;
  --police: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--db-fond);
  color: var(--db-encre);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.dedans {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.etroit { max-width: 720px; }

/* Le lien que seul le clavier révèle : on arrive au contenu sans traverser
   l'en-tête à la tabulation. */
.saut {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--db-surface); color: var(--db-accent);
  padding: 12px 18px; border-radius: 0 0 var(--db-rayon) 0; font-weight: 600;
}
.saut:focus { left: 0; }

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }

/* --- L'en-tête ------------------------------------------------------------ */

.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 247, 252, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--db-trait);
}

.entete-dedans {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 12px;
}

.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }

/* L'icône est l'image rendue par Max sous Icon Composer, celle de
   l'application — trois cartes de verre sur le dégradé violet-bleu. Elle
   porte son propre fond : rien à dessiner derrière, seulement à l'arrondir,
   puisque le fichier est carré et que ce sont les systèmes qui arrondissent
   d'habitude. */
.marque-pastille {
  width: 32px; height: 32px; border-radius: 9px;
  object-fit: cover; flex-shrink: 0;
  box-shadow: var(--db-ombre-accent);
}
.marque-pastille.petite { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }

.marque-nom { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }

/* --- Les boutons ---------------------------------------------------------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--db-cible); padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--db-accent); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none;
  box-shadow: var(--db-ombre-accent); cursor: pointer;
  transition: background .14s ease, transform .14s ease;
}
.bouton:hover { background: var(--db-accent-fort); }
.bouton:active { transform: translateY(1px); }
.bouton:disabled { background: var(--db-trait-fort); color: var(--db-texte-3); box-shadow: none; cursor: default; }

.bouton-discret {
  background: var(--db-surface); color: var(--db-accent);
  border: 1px solid var(--db-accent-bord); box-shadow: var(--db-ombre-1);
  padding: 0 18px; min-height: 40px;
}
.bouton-discret:hover { background: var(--db-accent-teinte); }

.bouton-large { width: 100%; min-height: 52px; font-size: 16.5px; }

.lien-sobre {
  color: var(--db-accent); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; min-height: var(--db-cible);
}
.lien-sobre:hover { text-decoration: underline; }

/* --- L'ouverture ---------------------------------------------------------- */

.hero-dedans {
  display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center;
  padding-block: 64px 72px;
}

.sur-titre {
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--db-accent); margin-bottom: 14px;
}

h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; font-weight: 700; }

.accroche {
  margin-top: 18px; max-width: 54ch;
  font-size: 17.5px; line-height: 1.6; color: var(--db-texte-2);
}

.hero-actions {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px;
}

.mention-discrete { margin-top: 14px; font-size: 13.5px; color: var(--db-texte-4); }

/* --- La démonstration ------------------------------------------------------
 *
 * Un téléphone dessiné, et dedans quatre temps qui se succèdent. Le cadre est
 * en CSS plutôt qu'en image : il reste net sur un écran à forte densité, il
 * pèse zéro octet, et il suit la charte si elle bouge.
 */

.demo { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.telephone {
  width: 300px; height: 600px; flex-shrink: 0;
  border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, #2b3350, #141a2e);
  box-shadow: var(--db-ombre-3);
}

.ecran {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 32px; background: var(--db-fond);
}

.etape {
  position: absolute; inset: 0; padding: 22px 16px;
  display: flex; flex-direction: column; gap: 14px;
  /* Au milieu de l'écran : chaque temps a une hauteur différente, et les
     laisser pendre en haut laissait la moitié basse vide. Le premier fait
     exception — ses valeurs qui s'échappent occupent déjà le bas. */
  justify-content: center;
  opacity: 0; transform: translateY(10px) scale(.985);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.etape.active { opacity: 1; transform: none; }

.etape-1 { justify-content: flex-start; }

.barre-titre {
  font-size: 13px; font-weight: 700; letter-spacing: .4px;
  color: var(--db-texte-3); display: flex; align-items: center; gap: 8px;
}
.barre-db { color: var(--db-encre); }
.barre-pastille {
  width: 16px; height: 16px; border-radius: 5px; background: var(--db-degrade); flex-shrink: 0;
}

/* 1. La messagerie, et ce qui s'en échappe ---------------------------------- */

.fils { display: flex; flex-direction: column; gap: 11px; opacity: .55; }
.fil { display: flex; align-items: center; gap: 10px; }
.rond { width: 26px; height: 26px; border-radius: 50%; background: var(--db-trait-fort); flex-shrink: 0; }
.trait { height: 9px; border-radius: 5px; background: var(--db-trait); }
.trait-l { width: 72%; } .trait-m { width: 54%; } .trait-s { width: 38%; }

/* L'extraction, montrée plutôt que dite.
 *
 * Les valeurs apparaissent de travers AU-DESSUS, sur les messages gris où
 * elles sont aujourd'hui, puis descendent se ranger en colonne et prennent la
 * couleur de l'accent. Le problème est toujours à l'écran — la messagerie
 * grise ne bouge pas — mais ce qu'on regarde, c'est ce qui en sort.
 *
 * Chaque pastille porte son point de départ en variables, et une seule
 * animation les ramène toutes à zéro : cinq trajets différents, un seul jeu
 * d'images-clés à relire. */
.eclats {
  position: absolute; left: 24px; right: 20px; top: 296px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
}

.eclat {
  padding: 6px 12px; border-radius: 999px;
  background: var(--db-surface); border: 1px solid var(--db-trait-fort);
  font-size: 12.5px; font-weight: 600; color: var(--db-texte-2);
  box-shadow: var(--db-ombre-1); white-space: nowrap;
  opacity: 0;
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot));
}

.etape-1.active .eclat {
  animation: extraire 2.1s cubic-bezier(.4, .75, .25, 1) forwards;
}

.eclat-1 { --dx:  18px; --dy: -200px; --rot: -6deg; animation-delay: .10s; }
.eclat-2 { --dx: 128px; --dy: -220px; --rot:  7deg; animation-delay: .28s; }
.eclat-3 { --dx:  72px; --dy: -236px; --rot: -4deg; animation-delay: .46s; }
.eclat-4 { --dx: 140px; --dy: -262px; --rot:  5deg; animation-delay: .64s; }
.eclat-5 { --dx:  24px; --dy: -288px; --rot: -7deg; animation-delay: .82s; }

@keyframes extraire {
  0%   { opacity: 0; }
  14%  { opacity: 1; }
  /* Un temps d'arrêt de travers avant de descendre : sans lui, les valeurs
     sont rangées avant qu'on ait vu qu'elles ne l'étaient pas. */
  34%  { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
    border-color: var(--db-accent-bord);
    color: var(--db-accent-fort);
  }
}

/* 2. La demande arrive ------------------------------------------------------ */

.conversation { display: flex; flex-direction: column; gap: 12px; }

.conv-ligne {
  display: flex; align-items: center; gap: 11px;
  background: var(--db-surface); border-radius: var(--db-rayon-carte);
  padding: 12px 13px; box-shadow: var(--db-ombre-1);
  opacity: 0; transform: translateX(26px);
}
.etape-2.active .conv-ligne { animation: entrer .55s cubic-bezier(.2,.9,.3,1) .15s forwards; }

.pastille {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(to top, #6b8dff, #7a99ff);
  color: #fff; font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.conv-texte { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.conv-nom { font-size: 14.5px; font-weight: 700; }
.conv-objet { font-size: 12.5px; color: var(--db-texte-3); }

.point-neuf {
  width: 9px; height: 9px; border-radius: 50%; background: var(--db-accent); flex-shrink: 0;
}

.bulle {
  background: var(--db-surface); border-radius: 15px 15px 15px 5px;
  padding: 13px 14px; font-size: 13.5px; line-height: 1.5; color: var(--db-texte-2);
  box-shadow: var(--db-ombre-1); opacity: 0; transform: translateY(12px);
}
.etape-2.active .bulle { animation: entrer .55s cubic-bezier(.2,.9,.3,1) .5s forwards; }

@keyframes entrer { to { opacity: 1; transform: none; } }

/* 3. La fiche se remplit ---------------------------------------------------- */

.carte {
  background: var(--db-surface); border-radius: var(--db-rayon-carte);
  box-shadow: var(--db-ombre-1); overflow: hidden;
}

.rangee {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-top: 1px solid var(--db-trait);
  opacity: 0; transform: translateY(8px);
}
.carte .rangee:first-child { border-top: 0; }
.etape-3.active .rangee { animation: remplir .5s cubic-bezier(.2,.9,.3,1) forwards; }
.etape-3.active .rangee[data-rang="1"] { animation-delay: .20s; }
.etape-3.active .rangee[data-rang="2"] { animation-delay: .45s; }
.etape-3.active .rangee[data-rang="3"] { animation-delay: .70s; }
.etape-3.active .rangee[data-rang="4"] { animation-delay: .95s; }

@keyframes remplir {
  0%   { opacity: 0; transform: translateY(8px); background: var(--db-accent-teinte); }
  60%  { background: var(--db-accent-teinte); }
  100% { opacity: 1; transform: none; background: transparent; }
}

.libelle { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--db-texte-3); width: 66px; }
.valeur { font-size: 14.5px; font-weight: 600; }

.source {
  font-size: 12px; line-height: 1.45; color: var(--db-texte-4); padding-inline: 4px;
  opacity: 0;
}
.etape-3.active .source { animation: entrer .5s ease 1.3s forwards; }

/* 4. Le rendez-vous --------------------------------------------------------- */

.grille {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
  background: var(--db-surface); border-radius: var(--db-rayon-carte);
  padding: 12px 10px; box-shadow: var(--db-ombre-1);
}
.jour { font-size: 10.5px; font-weight: 700; color: var(--db-texte-4); text-align: center; }
.case {
  font-size: 13px; font-weight: 600; color: var(--db-texte-2);
  text-align: center; padding: 7px 0; border-radius: 9px;
}
.case-posee { color: #fff; background: var(--db-trait-fort); }
.etape-4.active .case-posee { animation: poser .6s cubic-bezier(.2,.9,.3,1) .3s forwards; }

@keyframes poser {
  0%   { background: var(--db-trait-fort); transform: scale(1); }
  50%  { background: var(--db-accent); transform: scale(1.18); }
  100% { background: var(--db-accent); transform: scale(1); }
}

.rdv {
  display: flex; align-items: center; gap: 12px;
  background: var(--db-surface); border-radius: var(--db-rayon-carte);
  padding: 13px 14px; box-shadow: var(--db-ombre-1);
  border-left: 4px solid var(--db-accent);
  opacity: 0; transform: translateY(14px);
}
.etape-4.active .rdv { animation: entrer .55s cubic-bezier(.2,.9,.3,1) .75s forwards; }

.rdv-heure { font-size: 13px; font-weight: 700; color: var(--db-accent); flex-shrink: 0; }
.rdv-texte { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rdv-nom { font-size: 14px; font-weight: 700; }
.rdv-detail { font-size: 12px; color: var(--db-texte-3); }
.rdv-coche { color: var(--db-succes); flex-shrink: 0; opacity: 0; }
.etape-4.active .rdv-coche { animation: entrer .4s ease 1.25s forwards; }

/* La légende et la jauge ---------------------------------------------------- */

.legende {
  font-size: 14.5px; font-weight: 600; color: var(--db-texte-2);
  text-align: center; min-height: 2.6em; max-width: 300px;
  transition: opacity .3s ease;
}
.legende.efface { opacity: 0; }

.jauge { width: 120px; height: 3px; border-radius: 3px; background: var(--db-trait-fort); overflow: hidden; }
.jauge span { display: block; height: 100%; width: 0; background: var(--db-accent); transition: width .4s linear; }

/* --- Les sections --------------------------------------------------------- */

.bande { padding-block: 64px; }
.bande-claire { background: var(--db-surface); border-block: 1px solid var(--db-trait); }

.bande h2 { font-size: clamp(23px, 3.4vw, 30px); line-height: 1.2; font-weight: 700; margin-bottom: 20px; }
.bande p { color: var(--db-texte-2); font-size: 16.5px; }
.bande p + p { margin-top: 16px; }

.grille-cartes {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px;
}

.carte-texte {
  background: var(--db-fond); border: 1px solid var(--db-trait);
  border-radius: var(--db-rayon-carte); padding: 22px 22px 24px;
}
.carte-texte h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 10px; }
.carte-texte p { font-size: 15.5px; line-height: 1.6; }

code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: .92em; background: var(--db-accent-teinte); color: var(--db-accent-fort);
  padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere;
}

/* --- La liste d'attente ---------------------------------------------------- */

.bande-accent { background: var(--db-accent-teinte); border-top: 1px solid var(--db-accent-bord); }

.accroche-sobre { max-width: 56ch; }

.formulaire {
  margin-top: 26px; background: var(--db-surface);
  border: 1px solid var(--db-trait); border-radius: var(--db-rayon-carte);
  box-shadow: var(--db-ombre-2); padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}

.champ { display: flex; flex-direction: column; gap: 7px; }
.champ label { font-size: 13.5px; font-weight: 600; color: var(--db-texte-2); }
.requis { font-weight: 500; color: var(--db-texte-4); }

.champ input, .champ textarea {
  font: inherit;
  /* 16 px minimum : en dessous, Safari iOS zoome à l'entrée dans le champ. */
  font-size: 16px;
  padding: 12px 14px; border: 1px solid var(--db-trait-fort);
  border-radius: var(--db-rayon); background: var(--db-fond); color: var(--db-encre);
  width: 100%; resize: vertical;
}
.champ input:focus, .champ textarea:focus {
  outline: none; border-color: var(--db-accent); background: var(--db-surface);
  box-shadow: 0 0 0 3px var(--db-accent-teinte);
}

/* Hors de l'écran plutôt que display:none : certains robots ignorent ce qui
   est masqué, et remplissent ce qui ne l'est pas. */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.turnstile:empty { display: none; }

.rgpd { font-size: 12.5px; line-height: 1.5; color: var(--db-texte-4); }
.rgpd a { color: var(--db-accent); }

.reponse {
  margin: 0; padding: 12px 14px; border-radius: var(--db-rayon);
  font-size: 14.5px; line-height: 1.5;
}
.reponse.ok { background: #e4f3ec; color: var(--db-succes); border: 1px solid #cde8db; }
.reponse.erreur { background: #fbedef; color: var(--db-danger); border: 1px solid #f2d6db; }

/* --- Le pied -------------------------------------------------------------- */

.pied { border-top: 1px solid var(--db-trait); padding-block: 36px 44px; }
.pied-dedans { display: flex; flex-direction: column; gap: 14px; }
.pied-marque { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pied-liens a { color: var(--db-texte-2); font-size: 14px; text-decoration: none; }
.pied-liens a:hover { color: var(--db-accent); text-decoration: underline; }
.pied-mention { font-size: 13px; color: var(--db-texte-4); }

/* --- Au téléphone --------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-dedans { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 56px; }
  .demo { order: 2; }
  .grille-cartes { grid-template-columns: 1fr; }
  .bande { padding-block: 48px; }
}

@media (max-width: 420px) {
  .telephone { width: 268px; height: 536px; border-radius: 36px; padding: 9px; }
  .ecran { border-radius: 28px; }
  .formulaire { padding: 18px; }
}

/* --- Quand on préfère que rien ne bouge ------------------------------------
 *
 * Pas « une animation plus discrète » : aucune. La page montre alors le
 * dernier temps, celui qui dit le résultat — un rendez-vous posé —, et la
 * légende qui va avec. Le visiteur n'a rien perdu de l'argument.
 */
@media (prefers-reduced-motion: reduce) {
  .etape, .etape.active { transition: none; }
  .etape.active * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .legende { transition: none; }
  .bouton { transition: none; }
}

/* --- Les questions fréquentes ---------------------------------------------
 *
 * Chaque réponse commence par la réponse. Ce n'est pas une préférence de
 * style : c'est la première phrase qu'un moteur reprend, et une réponse qui
 * commence par un préambule se fait citer sur son préambule.
 */

.faq {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
}

.qr {
  padding: 18px 0;
  border-top: 1px solid var(--db-trait);
}

.faq .qr:first-child { border-top: 0; padding-top: 4px; }

.qr h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.qr p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--db-texte-2);
}

.qr a { color: var(--db-accent); }
