/* Le style commun des pages d'offres du site (« Outils sur mesure », « Publicité automatique », « Avatar »). */
/* La page « Outils sur mesure ». Même direction artistique que le site : fond noir, Helvetica Neue, un petit mot fin au-dessus d'un grand,
   des touches en pilule, et les souris qui travaillent toutes seules. Ici elles rangent un mur d'outils noir et or (sur-mesure.js). */
:root { --police: "Helvetica Neue", Helvetica, "Nimbus Sans", Arimo, Arial, sans-serif; --petit: clamp(15px, 1.45vw, 20px); --gris: rgba(255, 255, 255, .66); }
html { background: #000; }
body { margin: 0; background: #000; color: #fff; font-family: var(--police); font-weight: 400; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
::selection { background: #fff; color: #000; }

/* les touches du haut, comme dans le studio : retour à l'anneau, contact ; et à droite, la demande d'audit gratuit */
.touches { position: fixed; left: 50%; top: calc(20px + env(safe-area-inset-top)); z-index: 5; display: flex; gap: 10px; transform: translate(-50%, 0); }
.touche { display: inline-flex; align-items: center; height: 38px; padding: 0 19px; border-radius: 19px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .66); color: #fff;
  font: 400 12.5px/1 var(--police); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, color .2s, border-color .2s; }
.touche:hover, .touche:focus-visible { background: #fff; color: #000; border-color: #fff; outline: none; }
.touche-pleine { background: #fff; color: #000; border-color: #fff; }
.touche-pleine:hover, .touche-pleine:focus-visible { background: rgba(0, 0, 0, .66); color: #fff; }
.touche .fleche { display: inline-block; margin-right: .6em; transform: translateY(-.04em); }
.audit { position: fixed; right: calc(20px + env(safe-area-inset-right)); top: calc(20px + env(safe-area-inset-top)); z-index: 5; }
/* sur un petit écran : « Retour » à gauche, « Votre audit gratuit » à droite (il mène au même formulaire que « Contact ») */
@media (max-width: 680px) { .touches { left: calc(14px + env(safe-area-inset-left)); transform: none; } .touche-contact { display: none; } .audit { right: calc(14px + env(safe-area-inset-right)); } }
@media (max-width: 480px) { .touches { gap: 8px; } .touches .touche, .audit { height: 34px; padding: 0 15px; font-size: 11.5px; } }

/* un titre du site : un petit mot fin, puis un grand mot (1em du grand = --grand) */
.mot { margin: 0; text-align: center; white-space: nowrap; font-weight: 400; text-transform: uppercase; }
.mt-petit { display: block; font-weight: 300; font-size: var(--petit); line-height: .716; letter-spacing: .045em; padding-left: .045em; margin-bottom: calc(var(--grand) * .34); }
.mt-grand { display: block; font-size: var(--grand); line-height: .716; letter-spacing: .02em; padding-left: .02em; }
.mt-ligne { display: block; }
.mt-ligne + .mt-ligne { margin-top: .3em; }
@media (min-width: 760px) { .mt-ligne { display: inline; } }
/* les lettres du grand mot montent l'une après l'autre, comme « IMMERSIF » à l'arrivée du site */
.lettres span { display: inline-block; opacity: 0; transform: translateY(.62em); transition: transform .95s cubic-bezier(.16, .84, .24, 1), opacity .7s ease; transition-delay: calc(var(--i) * 70ms + 300ms); }
.pret .lettres span { opacity: 1; transform: none; }
.lettres { visibility: hidden; }                       /* caché tant que les lettres ne sont pas prêtes à monter */
.pret .lettres { visibility: visible; }

/* ───── le mur d'outils ───── */
.mur { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; --l: 104px; }
.mur-fiches { position: absolute; inset: 0; user-select: none; -webkit-user-select: none; }
/* Un outil : un petit écran de tableau de bord, noir et or, au format des photos du site (3 × 4).
   Dérangé, il est éteint (gris) ; une fois rangé à sa place, il s'allume en or et son voyant s'éclaire. Les dessins sont dans sur-mesure.js. */
.fiche { position: absolute; left: 0; top: 0; box-sizing: border-box; width: var(--l); height: calc(var(--l) * 4 / 3); padding: calc(var(--l) * .09); border-radius: calc(var(--l) * .07);
  background: linear-gradient(155deg, #1e1c18 0%, #141311 52%, #0c0b0a 100%); border: 1px solid rgba(233, 207, 142, .13);
  opacity: 0; transition: opacity .8s ease, border-color .4s ease; will-change: transform; }
.mur-fiches.la .fiche { opacity: 1; }
.fiche-nom { display: block; font-size: calc(var(--l) * .074); line-height: 1; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; color: #d6cfbf; opacity: .5; transition: opacity .5s ease; }
.fiche-voyant { position: absolute; right: calc(var(--l) * .09); top: calc(var(--l) * .095); width: calc(var(--l) * .042); height: calc(var(--l) * .042); border-radius: 50%; background: rgba(255, 255, 255, .2); transition: background .5s ease, box-shadow .5s ease; }
.fiche svg { display: block; width: 100%; height: auto; margin-top: calc(var(--l) * .085); overflow: visible; filter: grayscale(1) brightness(.55); opacity: .62; transition: filter .6s ease, opacity .6s ease; }
.fiche.range { border-color: rgba(233, 207, 142, .22); }
.fiche.range .fiche-nom { opacity: .95; }
.fiche.range .fiche-voyant { background: #f0dca6; box-shadow: 0 0 calc(var(--l) * .07) rgba(240, 220, 166, .85); }
.fiche.range svg { filter: none; opacity: 1; }
.fiche.tenu { z-index: 2; border-color: rgba(240, 220, 166, .55); box-shadow: 0 10px 30px rgba(0, 0, 0, .75); }
/* les éléments des dessins (unités du dessin : 100 × 120) */
.fiche svg text { font-family: var(--police); font-size: 7.4px; letter-spacing: .04em; fill: #c3bbaa; }
.fiche svg .n { font-size: 25px; font-weight: 300; letter-spacing: 0; fill: #f6f1e6; }                 /* un grand nombre */
.fiche svg .m { font-size: 6.4px; fill: #8f887a; }                                                      /* une petite légende */
.fiche svg .sur { font-size: 6.2px; font-weight: 500; letter-spacing: .02em; fill: #17140f; }          /* un mot écrit sur de l'or */
.fiche svg .dore { font-size: 6.2px; letter-spacing: .02em; fill: #dcb96f; }
.fiche svg .o { fill: none; stroke: #dcb96f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }   /* un trait d'or */
.fiche svg .fin { stroke-width: 1; }
.fiche svg .of { fill: url(#or); }                                                                      /* un aplat d'or, clair en haut */
.fiche svg .oh { fill: url(#or-h); }                                                                    /* un aplat d'or, clair à droite */
.fiche svg .aire { fill: url(#or-aire); }
.fiche svg .piste { fill: rgba(233, 207, 142, .1); }
.fiche svg .trait { fill: none; stroke: rgba(233, 207, 142, .17); stroke-width: .8; }
.fiche svg .pt { fill: #f6e7bd; }
.fiche svg .halo { fill: rgba(240, 220, 166, .22); }
.fiche svg .ligne { fill: #cfc7b6; opacity: .5; }
.fiche svg .ligne2 { fill: #cfc7b6; opacity: .22; }
.fiche svg .sombre { fill: #17140f; opacity: .78; }
.fiche svg .coche { fill: none; stroke: #17140f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fiche svg .seuil { fill: none; stroke: #dcb96f; stroke-width: .9; stroke-dasharray: 2.5 3; opacity: .75; }
.fiche svg .anneau-piste { fill: none; stroke: rgba(233, 207, 142, .13); stroke-width: 8; }
.fiche svg .anneau { fill: none; stroke: url(#or); stroke-width: 8; stroke-linecap: round; }
.or-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* le texte, dans le trou du mur */
.mur-centre { position: absolute; left: 50%; top: 50%; z-index: 3; box-sizing: border-box; width: max-content; max-width: 100%; padding: 0 18px; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.mur-centre::before { content: ""; position: absolute; left: 50%; top: 50%; width: 112%; height: 124%; transform: translate(-50%, -50%); z-index: -1;   /* une ombre douce : le texte reste lisible si une feuille dérangée passe dessous */
  background: radial-gradient(closest-side, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .8) 62%, rgba(0, 0, 0, 0) 100%); }
.mur .mot { --grand: clamp(44px, 8vw, 118px); }
.mur[data-jeu="pub"] .mot { --grand: clamp(38px, 7.3vw, 108px); }                    /* « AUTOMATIQUE » est un mot long */
.mur-phrase { margin: calc(var(--l) * .44) auto 0; max-width: 21em; text-wrap: balance; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.42; font-weight: 300; color: rgba(255, 255, 255, .88); opacity: 0; transition: opacity 1s ease 1.1s; }
.pret .mur-phrase { opacity: 1; }
.defile { display: flex; flex-direction: column; align-items: center; gap: 7px; margin: calc(var(--l) * .36) 0 0; font: 400 10.5px/1 var(--police); letter-spacing: .32em; opacity: 0; transition: opacity 1s ease 1.6s; }
.pret .defile { opacity: 1; }
.defile span { padding-left: .32em; opacity: .78; }
.defile svg { display: block; width: 11px; height: 17px; animation: defile-fleche 1.9s ease-in-out infinite; }
@keyframes defile-fleche { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(4px); opacity: .95; } }

/* les souris et leurs cadres de sélection : les mêmes que sur le site (equipe.js) */
.equipe { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.souris { position: absolute; left: 0; top: 0; width: 21px; height: 27px; margin: -1.5px 0 0 -1.5px; transform-origin: 3px 3px; will-change: transform; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .5)); }
.souris svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cadre { position: absolute; left: 0; top: 0; box-sizing: border-box; border: 1px solid var(--c); will-change: transform; }
.cadre i { position: absolute; width: 7px; height: 7px; box-sizing: border-box; background: #fff; border: 1px solid var(--c); }
.cadre i:nth-child(1) { left: -4px; top: -4px; } .cadre i:nth-child(2) { right: -4px; top: -4px; }
.cadre i:nth-child(3) { left: -4px; bottom: -4px; } .cadre i:nth-child(4) { right: -4px; bottom: -4px; }
.cadre b { position: absolute; left: 50%; top: calc(100% + 7px); transform: translateX(-50%); padding: 3px 5px; border-radius: 2px; background: #2f7cf6; color: #fff; white-space: nowrap;
  font: 600 10px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.cadre .croix { display: none; }

/* ───── la suite de la page : du texte, posé sur le noir ───── */
.bloc { padding: clamp(92px, 17vh, 190px) 22px; text-align: center; }
.dit p { margin: 0 auto; max-width: 24em; font-size: clamp(23px, 3vw, 44px); line-height: 1.2; font-weight: 300; text-wrap: balance; }

/* Des exemples d'outils : juste leurs noms, l'un sous l'autre. Ils s'allument un à un quand on descend (sur-mesure.js), avec le même voyant doré que les outils du mur. */
.exemples { padding-top: 0; }
.mots { list-style: none; margin: 0; padding: 0; font-size: clamp(23px, 4vw, 58px); line-height: 1.24; letter-spacing: .02em; text-transform: uppercase; }
.mots li { position: relative; width: max-content; max-width: 100%; margin: 0 auto; transition: color .5s ease; }
.mots .voyant { position: absolute; right: calc(100% + .5em); top: 50%; width: .15em; height: .15em; margin-top: -.075em; border-radius: 50%; background: #f0dca6; box-shadow: 0 0 .3em rgba(240, 220, 166, .85); transition: background .5s ease, box-shadow .5s ease; }
.mots li.eteint { color: rgba(255, 255, 255, .2); }
.mots li.eteint .voyant { background: rgba(255, 255, 255, .2); box-shadow: none; }
.mots-phrases { font-size: clamp(19px, 2.7vw, 38px); line-height: 1.5; }                 /* des phrases entières plutôt que des mots : un peu plus petit */
@media (max-width: 700px) {                                  /* sur téléphone les phrases passent sur deux lignes : on les espace, et le voyant se pose au-dessus de chacune */
  .mots-phrases { line-height: 1.22; }
  .mots-phrases li + li { margin-top: 1.15em; }
  .mots-phrases .voyant { position: static; display: block; margin: 0 auto .55em; }
}
/* un titre de paragraphe, puis sa première phrase en grand */
.intro .mot { --grand: clamp(40px, 7.2vw, 106px); }
.intro p { margin: clamp(52px, 9vh, 100px) auto 0; max-width: 24em; font-size: clamp(23px, 3vw, 44px); line-height: 1.2; font-weight: 300; text-wrap: balance; }
/* la dernière phrase, en grandes capitales */
.chute { margin: 0 auto; max-width: 21em; font-size: clamp(25px, 3.9vw, 58px); line-height: 1.14; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
.gagner .mot { --grand: clamp(42px, 11vw, 160px); }
/* le grand mot change, comme au-dessus de l'anneau : l'un monte et s'efface pendant que l'autre arrive */
.at-mots { display: block; position: relative; height: .716em; font-size: var(--grand); line-height: .716; letter-spacing: .02em; }
.at-mot { position: absolute; left: 50%; top: 0; padding-left: .02em; opacity: 0; transform: translate(-50%, .24em); animation: mot-tourne 4.6s ease-in-out infinite both; }
.at-mot:nth-child(2) { animation-delay: -2.3s; }
@keyframes mot-tourne { 0% { opacity: 0; transform: translate(-50%, .24em); } 7%, 50% { opacity: 1; transform: translate(-50%, 0); } 57%, 100% { opacity: 0; transform: translate(-50%, -.24em); } }
.paire { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 110px); max-width: 900px; margin: clamp(64px, 11vh, 120px) auto 0; }
.paire h3, .etapes h3 { margin: 0 0 16px; font-size: var(--petit); font-weight: 300; line-height: 1.15; letter-spacing: .045em; text-transform: uppercase; }
.paire p, .etapes p { margin: 0 auto; max-width: 21em; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; font-weight: 300; color: var(--gris); }

.etapes .mot { --grand: clamp(40px, 7.2vw, 106px); }
.etapes ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 5vw, 80px); max-width: 1080px; margin: clamp(64px, 11vh, 120px) auto 0; padding: 0; }
/* le numéro de l'étape, dans le même contour que les touches */
.numero { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 22px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; font-size: 12.5px; letter-spacing: .04em; }

.fin { padding-bottom: clamp(120px, 22vh, 240px); }
.fin .mot { --grand: clamp(44px, 11vw, 160px); white-space: normal; }
.fin .mt-petit { line-height: 1.25; margin-bottom: calc(var(--grand) * .3); }
.fin .touche { margin-top: clamp(40px, 7vh, 72px); height: 46px; padding: 0 28px; border-radius: 23px; font-size: 13px; }

@media (max-width: 759px) {
  .paire, .etapes ol { grid-template-columns: 1fr; gap: 54px; }
}

/* le voile : la page s'ouvre et se ferme sur du noir, pour que le passage depuis le site soit doux */
.voile { position: fixed; inset: 0; z-index: 30; background: #000; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.voile.ferme { opacity: 1; transition-duration: .38s; }

@media (prefers-reduced-motion: reduce) {
  .lettres span, .mur-phrase, .defile, .fiche, .voile, .mots li, .mots .voyant { transition: none; }
  .defile svg { animation: none; opacity: .8; }
  .at-mots { height: auto; }
  .at-mot { position: static; display: block; opacity: 1; transform: none; animation: none; }
  .at-mot + .at-mot { margin-top: .3em; }
}
noscript p { margin: 0; padding: 120px 22px 0; text-align: center; font-size: 18px; }

/* ───── la page « Avatar » : le titre et la vidéo (côte à côte sur ordinateur, l'un sous l'autre sur téléphone) ───── */
.avatar-haut { box-sizing: border-box; min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: clamp(28px, 5vh, 46px);
  padding: calc(88px + env(safe-area-inset-top)) 18px clamp(36px, 7vh, 72px); }
.avatar-texte { text-align: center; }
.avatar-haut .mot { --grand: clamp(44px, 8vw, 118px); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .avatar-haut .mot { --grand: clamp(44px, 6.6vw, 100px); } }   /* à côté de la vidéo : « EN AVATAR » doit tenir dans sa moitié d'écran */
.avatar-phrase { margin: clamp(26px, 4vh, 44px) auto 0; max-width: 19em; text-wrap: balance; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.42; font-weight: 300; color: rgba(255, 255, 255, .88);
  opacity: 0; transition: opacity 1s ease 1.1s; }
.pret .avatar-phrase { opacity: 1; }
.avatar-haut .defile { display: none; margin-top: clamp(30px, 5vh, 52px); }
/* La vidéo est verticale, sur un fond noir pur comme la page : on ne garde que sa partie utile (de la ligne 100 à la ligne 1520 sur 1920),
   le haut et le bas n'étant que du noir. Rien n'est coupé de l'image : « STUDIO IA » et les légendes restent dans le cadre. */
.ecran { box-sizing: border-box; width: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: 0; transition: opacity 1s ease .5s; }
.pret .ecran { opacity: 1; }
.ecran-cadre { position: relative; width: min(100%, 520px); aspect-ratio: 1080 / 1420; overflow: hidden; cursor: pointer; }
.ecran-video { position: absolute; left: 0; top: -7.042%; display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1920; background: #000; }
.son { height: 42px; margin: 0; padding: 0 22px; border-radius: 21px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.son-icone { width: 17px; height: 14px; margin-right: .65em; flex: none; }
.son .son-ondes, .son.avec-son .son-barre { display: none; }
.son.avec-son .son-ondes { display: inline; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .avatar-haut { grid-template-columns: 1fr 1fr; align-items: center; padding: calc(92px + env(safe-area-inset-top)) clamp(24px, 4vw, 64px) 36px; }
  .avatar-haut .defile { display: flex; }
  .ecran-cadre { width: auto; height: min(calc(100vh - 200px), 860px); height: min(calc(100svh - 200px), 860px); min-height: 420px; }
}
/* le texte qui suit la vidéo, et la dernière phrase avant « Contact » */
.mots-longs { line-height: 1.22; }   /* des phrases longues (page « Avatar ») : comme sur téléphone, partout : le voyant au-dessus de chaque phrase, et des lignes égales */
.mots-longs li { max-width: min(100%, 24em); text-wrap: balance; }
.mots-longs li + li { margin-top: 1.15em; }
.mots-longs .voyant { position: static; display: block; margin: 0 auto .55em; }
.dit p + p { margin-top: clamp(44px, 8vh, 84px); }
.fin-phrase { margin: 0 auto; max-width: 24em; font-size: clamp(23px, 3vw, 44px); line-height: 1.2; font-weight: 300; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .avatar-phrase, .ecran { transition: none; } }
