/* NapBuild : écran d'entrée, page livres et pages « bientôt » (pilote, 16/11/2026).
   Complète site.css sans rien changer à l'identité : uniquement des mises en page, avec les jetons et les ombres
   de site.css (aucune couleur, police ni taille de lettre nouvelle). */

/* ---------- Le sélecteur des lignes, dans l'en-tête ---------- */
.lignes { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.lignes a { white-space: nowrap; text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 600; padding: 7px 12px; border-radius: 9px; transition: color .2s, background .2s; }
.lignes a:hover { color: var(--ink); background: var(--panel); }
.lignes a[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: var(--ombre); }
.bar .lignes { margin-left: auto; }
.bar .lignes + .btn { margin-left: 8px; }
@media (max-width: 759px) {
  .bar.avec-lignes .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .bar.avec-lignes .lignes { order: 3; margin-left: 0; width: 100%; justify-content: space-between; }
  .bar.avec-lignes .lignes a { flex: 1; text-align: center; padding: 7px 4px; font-size: 14px; }
  .bar.avec-lignes .btn { margin-left: auto; }
}

/* ---------- Écran d'entrée ---------- */
.entree { min-height: calc(100svh - 62px); display: flex; flex-direction: column; justify-content: center; padding: 40px 0 56px; position: relative; overflow: hidden; }
.entree::before { content: ""; position: absolute; left: 50%; top: -260px; width: 1100px; height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(47 116 230 / .16), rgb(47 116 230 / 0)); pointer-events: none; }
.entree .wrap { position: relative; }
.entree .title { max-width: none; font-size: clamp(32px, 6.4vw, 56px); text-align: center; margin: 0 auto; }
.entree .intro { margin: 14px auto 0; text-align: center; }
.entree .qui { margin-top: 36px; }
@media (min-width: 640px) { .entree .qui { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .entree .qui { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.porte { text-decoration: none; color: var(--ink); transition: box-shadow .3s var(--ease), translate .3s var(--ease); }
.porte:hover { box-shadow: var(--ombre-haute); translate: 0 -3px; }
.porte .qui-corps h3 { font-size: 21px; }
.porte-go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.porte:hover .porte-go { color: var(--orange-titre); }
.entree-bas { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 20px; font-size: 15px; color: var(--muted); }
.entree-bas a { color: var(--accent); font-weight: 700; text-decoration: none; }
.entree-bas a:hover { text-decoration: underline; text-underline-offset: 3px; }
.retour { margin: 0 auto 22px; width: max-content; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding: 9px 10px 9px 16px; border-radius: 999px; background: var(--panel); box-shadow: var(--ombre); font-size: 14.5px; color: var(--muted); }
.retour a { color: var(--accent); font-weight: 700; text-decoration: none; }
.retour button { border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; padding: 2px 8px; border-radius: 8px; }
.retour button:hover { background: var(--soft); color: var(--ink); }
.retour[hidden] { display: none; }
@media (max-width: 639px) {
  .entree { padding-top: 28px; }
  .entree .qui { gap: 12px; margin-top: 24px; }
  .porte { flex-direction: row; border-radius: 20px; }
  .porte .qui-visuel { flex: none; width: 120px; aspect-ratio: auto; }
  .porte .qui-corps { padding: 14px 16px; gap: 4px; }
  .porte .qui-corps h3 { font-size: 19px; }
  .porte .qui-corps p { font-size: 14.5px; line-height: 1.45; }
}

/* Visuels des tuiles : de vraies images de produits */
.qv-page img, .qv-fen img, .qv-tels .phone { position: absolute; }
.qv-page img { width: 40%; height: auto; border-radius: 6px; box-shadow: 0 18px 34px -16px rgb(16 24 40 / .45); }
.qv-page .p1 { left: 9%; top: 14%; transform: rotate(-6deg); }
.qv-page .p2 { left: 31%; top: 9%; z-index: 1; }
.qv-page .p3 { left: 53%; top: 14%; transform: rotate(6deg); }
.qv-page.deux img { width: 34%; }
.qv-page.deux .p1 { left: 15%; top: 12%; }
.qv-page.deux .p2 { left: 49%; top: 18%; transform: rotate(4deg); }
.qv-fen img { left: 8%; top: 14%; width: 130%; max-width: none; border-radius: 12px; box-shadow: var(--ombre-haute); }
.qv-tels .phone { width: 34%; top: 9%; border-radius: 24px; padding: 5px; }
.qv-tels .phone img { border-radius: 20px; }
.qv-tels .t1 { left: 13%; transform: rotate(-5deg); }
.qv-tels .t2 { left: 52%; top: 14%; transform: rotate(5deg); }
@media (max-width: 639px) {
  .porte .qv-page img { width: 70%; left: 15% !important; top: 12% !important; transform: none !important; }
  .porte .qv-page .p2, .porte .qv-page .p3, .porte .qv-tels .t2 { display: none; }
  .porte .qv-tels .phone { width: 62%; left: 19%; top: 8%; transform: none; }
  .porte .qv-fen img { width: 220%; left: 12%; top: 22%; }
}

/* ---------- Page livres ---------- */
.livre-scene { position: relative; min-height: 440px; }
.livre-scene .couv { position: absolute; border-radius: 6px; box-shadow: var(--ombre-haute); }
.livre-scene .c1 { width: 62%; left: 0; top: 0; z-index: 2; }
.livre-scene .c2 { width: 46%; right: 0; top: 30px; transform: rotate(4deg); }
.livre-scene .c3 { width: 34%; right: 6%; top: 300px; z-index: 3; transform: rotate(-3deg); }
@media (max-width: 899px) { .livre-scene { min-height: 0; aspect-ratio: 1 / .78; margin-top: 36px; } .livre-scene .c3 { display: none; } .livre-scene .c2 { top: 8%; } }
.cycle.quatre { counter-reset: none; }
@media (min-width: 900px) { .cycle.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.deux-col { margin-top: 40px; display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .deux-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } .deux-col.inverse > :first-child { order: 2; } }
.deux-col .title { max-width: 16ch; }
.vue-image { margin: 0; }
.vue-image img { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: var(--ombre-haute); background: var(--panel); }
.vue-image figcaption, .mini-legende { margin-top: 12px; font-size: 14px; color: var(--muted); }
.paire { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.paire img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--ombre); }

.styles { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 760px) { .styles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.style { margin: 0; background: var(--panel); border-radius: var(--r); box-shadow: var(--ombre); overflow: hidden; }
.style img { width: 100%; height: auto; display: block; }
.style figcaption { padding: 14px 18px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; }
.style figcaption span { font-weight: 500; font-size: 14px; color: var(--muted); }
.style.choisi { box-shadow: 0 0 0 2px var(--accent), var(--ombre-haute); }

.planche { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .planche { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } }
.planche img { width: 100%; height: auto; display: block; border-radius: 10px; }
.watt .mini-legende { color: #a7b0c4; }

.sorties { margin-top: 44px; display: grid; gap: 16px; }
@media (min-width: 960px) { .sorties { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.sorties .slab { display: flex; flex-direction: column; }
.sorties .slab-vis { height: 250px; padding: 18px 18px 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; background: var(--soft); }
.sorties .slab-vis img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; border-radius: 6px 6px 0 0; box-shadow: var(--ombre); }
.sorties .slab-vis.pages { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sorties .slab-vis.pages.vente { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.sorties .slab-vis.entier { align-items: center; padding-bottom: 18px; }
.sorties .slab-vis.entier img { height: auto; object-fit: contain; border-radius: 4px; }
.sorties .slab-texte { padding: 16px 20px 20px; font-size: 15px; color: var(--muted); }
.sorties .slab-texte b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

.livres-faits { margin-top: 40px; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
@media (min-width: 760px) { .livres-faits { gap: 24px; } }
@media (max-width: 759px) { .livre-fait figcaption { font-size: 13px; } .livre-fait figcaption b { font-size: 14px; } }
.livre-fait { margin: 0; }
.livre-fait img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: var(--ombre-haute); }
.livre-fait figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.livre-fait figcaption b { display: block; color: var(--ink); font-size: 16px; }

.serie { margin-top: 40px; display: grid; gap: 16px; align-items: center; padding: 28px; border-radius: var(--r); background: var(--panel); box-shadow: var(--ombre); border: 2px dashed var(--line); }
@media (min-width: 900px) { .serie { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; } }
.serie h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0; }
.serie p { color: var(--muted); }
.serie img { width: 100%; height: auto; display: block; border-radius: 12px; opacity: .9; }

.aussi .qui-carte { text-decoration: none; color: var(--ink); }
.aussi .qui-carte:hover { box-shadow: var(--ombre-haute); }

#essai .inscription { margin-top: 36px; }
@media (min-width: 860px) { #essai .inscription, .bientot-form .inscription { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 28px; padding: 28px 32px; } }

/* ---------- Pages « bientôt » ---------- */
.bientot .hero-grid { align-items: center; }
.bientot-vue { margin-top: 36px; }
@media (min-width: 900px) { .bientot-vue { margin-top: 0; } }
.bientot-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; }
.bientot-pages img { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--ombre-haute); }

/* ---------- Essai gratuit du livre (carte du haut de page et résultat) ---------- */
.essai-livre { scroll-margin-top: 90px; }
.essai-livre-form { display: grid; gap: 10px; }
.el-champ { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 10px; cursor: text; }
.el-champ .idea-input { opacity: 1; height: auto; font-size: 16px; }
.el-champ .idea-input::placeholder { color: var(--muted); font-weight: 500; opacity: .75; }
.el-champ small { font-weight: 500; }
.el-styles { border: 0; margin: 0; padding: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.el-styles legend { float: left; width: 92px; padding: 0; }
.el-styles label { position: relative; }
.el-styles input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.el-styles span { display: inline-block; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.el-styles input:checked + span { background: var(--accent); color: #fff; box-shadow: none; }
.el-styles input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.el-go { margin-top: 4px; }
.el-note { font-size: 13.5px; color: var(--muted); }
.el-duree { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.el-pills { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.essai-livre.envoye .essai-livre-form { display: none; }
.essai-livre:not(.envoye) .el-pills .pill { opacity: .55; }
@media (max-width: 420px) { .el-champ { grid-template-columns: minmax(0, 1fr); gap: 2px; } .el-styles legend { float: none; width: 100%; margin-bottom: 2px; } }

.el-duo { display: grid; gap: 24px; }
@media (min-width: 900px) { .el-duo { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; } }
.el-couv, .el-page { position: relative; margin: 12px 0 0; border-radius: 10px; overflow: hidden; box-shadow: var(--ombre-haute); background: var(--soft); }
.el-couv img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.el-page img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.el-couv-titre { position: absolute; left: 6%; right: 6%; top: 6%; text-align: center; font-weight: 800; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); text-shadow: 0 0 2px #fff, 0 0 10px rgb(255 255 255 / .95), 0 0 22px rgb(255 255 255 / .8); text-wrap: balance; }
.el-phrase { position: absolute; left: 7%; right: 7%; top: 5%; font-size: clamp(15px, 1.7vw, 19px); font-weight: 600; line-height: 1.4; color: var(--ink); text-align: center; text-wrap: balance; text-shadow: 0 0 2px #fff, 0 0 10px rgb(255 255 255 / .95), 0 0 20px rgb(255 255 255 / .8); }
.el-meme { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--ok-soft); color: var(--ink-2); font-size: 15px; }
.el-meme b { color: var(--ok); }
.el-resume { margin-top: 12px; color: var(--muted); font-size: 15px; }
.el-couv-titre { z-index: 2; }
/* Le résultat présenté comme un vrai livre (pilote, 17/11/2026) : livre fermé avec dos et tranche, puis livre ouvert. */
.el-couv { overflow: visible; border-radius: 3px 8px 8px 3px; margin-right: 10px; box-shadow: 3px 3px 0 -1px #fff, 4px 4px 0 -1px #ddd8cf, 6px 6px 0 -2px #fff, 7px 7px 0 -2px #d3cdc2, 9px 9px 0 -3px #fff, 10px 10px 0 -3px #cbc4b8, var(--ombre-haute); }
.el-couv img { border-radius: 3px 8px 8px 3px; }
.el-couv::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; z-index: 1; border-radius: 3px 0 0 3px; pointer-events: none; background: linear-gradient(90deg, rgb(0 0 0 / .28), rgb(255 255 255 / .22) 30%, rgb(0 0 0 / .14) 55%, rgb(0 0 0 / .05) 75%, transparent); }
.el-page { overflow: visible; border-radius: 4px; margin-bottom: 10px; box-shadow: 0 3px 0 -1px #fff, 0 4px 0 -1px #ddd8cf, 0 6px 0 -2px #fff, 0 7px 0 -2px #d3cdc2, 0 9px 0 -3px #fff, 0 10px 0 -3px #cbc4b8, var(--ombre-haute); }
.el-page img { border-radius: 4px; }
.el-page::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 4px; pointer-events: none; background: linear-gradient(90deg, rgb(0 0 0 / .06), transparent 8%, transparent 40%, rgb(0 0 0 / .07) 46%, rgb(0 0 0 / .26) 49.6%, rgb(255 255 255 / .18) 50.2%, rgb(0 0 0 / .08) 53%, transparent 60%, transparent 92%, rgb(0 0 0 / .06)); }
.el-phrase { z-index: 2; right: 54%; left: 5%; }

/* Logiciels : quatre contrôles au lieu de cinq (disposition seulement). */
@media (min-width: 960px) { .controles.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Essai logiciel (pilote, 17/11/2026) : la fenêtre est celle du système choisi, aux couleurs du logiciel dessiné
   (pas celles du site) ; dessinée à 1200 px puis réduite par le script. */
.lg-aide { margin: -4px 0 12px; color: var(--muted); font-size: 15px; }
.lg-scene { position: relative; width: 100%; overflow: hidden; margin-bottom: 28px; }
@media (max-width: 699px) { .lg-scene { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 12px; } }
.lg-aide-tel { display: none; }
@media (max-width: 699px) { .lg-aide-tel { display: inline; } }
.lg-fenetre { --fond: #fff; --menu: #f5f6f8; --texte: #1d2330; --doux: #6b7280; --trait: rgb(0 0 0 / .08);
  position: absolute; left: 0; top: 0; width: 1200px; transform-origin: 0 0; border-radius: 12px; overflow: hidden; background: var(--fond);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .1), 0 30px 70px -20px rgb(15 23 42 / .35), 0 12px 24px -12px rgb(15 23 42 / .2); font-family: var(--app-police); color: var(--texte); }
.lg-fenetre.fond-sombre { --fond: #14161b; --menu: #1b1e25; --texte: #e8eaef; --doux: #9aa1ad; --trait: rgb(255 255 255 / .08); }
.lg-barre { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: var(--menu); border-bottom: 1px solid var(--trait); font: 600 13px/1 system-ui, sans-serif; color: var(--doux); }
.lg-titre { flex: 1; }
.sys-mac .lg-titre { text-align: center; margin-right: 64px; }
.lg-feux { display: flex; gap: 8px; }
.lg-feux i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lg-feux i:nth-child(2) { background: #febc2e; } .lg-feux i:nth-child(3) { background: #28c840; }
.lg-win { display: flex; margin-right: -14px; height: 100%; }
.lg-win i { width: 46px; display: grid; place-items: center; font-style: normal; font-size: 13px; }
.sys-navigateur .lg-barre { height: 52px; }
.lg-onglet { padding: 8px 16px; border-radius: 8px 8px 0 0; background: var(--fond); color: var(--texte); align-self: flex-end; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-adresse { flex: 1; max-width: 520px; padding: 7px 14px; border-radius: 999px; background: var(--fond); font-weight: 500; color: var(--doux); box-shadow: inset 0 0 0 1px var(--trait); }
.lg-corps { display: flex; height: 700px; }
.lg-menu { width: 220px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; background: var(--menu); border-right: 1px solid var(--trait); }
.lg-marque { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-size: 16px; }
.lg-logo, .lg-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--app); color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.lg-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: none; color: var(--doux); font: 500 14px/1.2 var(--app-police); text-align: left; cursor: pointer; }
.lg-item:hover:not(:disabled) { background: var(--trait); color: var(--texte); }
.lg-item.actif { background: color-mix(in srgb, var(--app) 14%, transparent); color: var(--app); font-weight: 600; }
.fond-sombre .lg-item.actif { color: color-mix(in srgb, var(--app) 70%, #fff); }
.lg-item:disabled { opacity: .45; cursor: default; }
.lg-item:focus-visible { outline: 2px solid var(--app); outline-offset: 1px; }
.lg-org { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px; font-size: 12.5px; color: var(--doux); line-height: 1.3; }
.lg-avatar { width: 26px; height: 26px; border-radius: 50%; font-size: 12px; background: color-mix(in srgb, var(--app) 75%, #000); }
.lg-ecran { display: block; width: 980px; height: 700px; border: 0; background: var(--fond); }
.lg-fiche { display: grid; gap: 14px; padding: 22px; border-radius: 16px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); margin-bottom: 8px; }
.lg-fiche-tete { display: flex; align-items: center; gap: 14px; }
.lg-fiche-logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; color: #fff; font-weight: 800; font-size: 24px; flex: none; }
.lg-fiche-nom { display: block; font-size: 22px; letter-spacing: -.01em; }
.lg-fiche-sys { color: var(--muted); font-size: 14.5px; }
.lg-fiche-accroche { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.lg-fiche-pour { margin: 0; color: var(--ink-2); font-size: 15px; }
.lg-fiche-fonctions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .lg-fiche-fonctions { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.lg-fiche-fonctions li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.lg-fiche-fonctions svg { flex: none; margin-top: 3px; color: var(--ok); }
#essai-en-ligne .lead + .el-note { margin-top: 14px; }
