/* ==========================================================================
   page.css — gabarit des pages d'un métier (creatorlib.fr) et d'un lieu de vente (authorlib.com), et de leur
   page de liste (S223 bis, 23/11/2026). Fiche DESIGN_SITES_CALCULATEURS_S103.md §SC2, §SC5 ; maquettes 5A (céramique)
   et 6A (salons du livre), transcrites telles quelles.
   Fichier IDENTIQUE dans sites/authorlib/css/ et sites/creatorlib/css/ (contrôlé par scripts/pages.test.mjs) :
   les couleurs propres à un site passent par les variables --mt-* (défauts = creatorlib.fr ; authorlib.com les
   règle dans css/styles.css).
   Bouton « Calculer… » (contour) et bande « Ouvrir le calculateur » (§SC5 n° 2 et n° 4) depuis S224 bis, avec la page
   calculateur/. Pages générées depuis les maquettes S103 / S103 bis (10 métiers, 3 lieux de vente, §SC11).
   Mode sombre (S233, 30/11/2026, demande de Yacine) : toutes les couleurs passent par des variables --mt-* dont les
   valeurs par défaut sont EXACTEMENT celles des maquettes (le mode clair ne bouge pas) ; le bloc
   html[data-theme="sombre"] .mt en fin de fichier donne la nuit d'encre commune aux deux sites, chaque site y ajoute
   ses accents (--mt-accent, --mt-bouton…) dans sa propre feuille.
   ========================================================================== */
.mt{color:var(--mt-encre,#16213A);font:400 17px/1.6 Inter,system-ui,sans-serif}
.mt .c{width:min(1180px,100% - 48px);margin-inline:auto}
.mt-fil{font-size:.85rem;color:var(--mt-encre-3,#6E778C);padding-top:28px;margin:0 0 1rem}
.mt-fil a{color:var(--mt-encre-3,#6E778C)}
.mt h1{font:600 clamp(2.1rem,4.4vw,3.4rem)/1.06 Spectral,Georgia,serif;letter-spacing:-.015em;margin:0 0 16px;color:var(--mt-encre,#16213A)}
.mt h2{font:600 clamp(1.6rem,3vw,2.2rem)/1.15 Spectral,Georgia,serif;margin:0 0 22px;color:var(--mt-encre,#16213A)}

/* Haut de page : texte à gauche, photo à droite (une colonne sur téléphone). */
.mt-hero{display:grid;grid-template-columns:1.05fr 1fr;gap:48px;align-items:center;padding:24px 0 56px}
@media (max-width:860px){.mt-hero{grid-template-columns:1fr;gap:24px;padding-bottom:36px}}
.mt-hero .kick{display:inline-block;font:600 .8rem Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--mt-accent,#047857);margin:0 0 12px}
.mt-hero p{color:var(--mt-encre-2,#46506A);font-size:1.08rem;margin:0 0 20px;max-width:52ch}
.mt-hero img{display:block;border-radius:22px;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;box-shadow:0 30px 60px -30px rgba(22,33,58,.45)}
.mt-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.mt-b{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:12px 20px;font:600 .95rem Inter,system-ui,sans-serif;text-decoration:none;background:var(--mt-bouton,#1B2A4A);color:var(--mt-bouton-texte,#fff);border:1px solid var(--mt-bouton,#1B2A4A)}
.mt-b.l{background:var(--mt-surface,#fff);color:var(--mt-bouton,#1B2A4A)}

/* Bande vers le calculateur (§SC5 n° 4) : fond clair, titre et phrase propres à la page, bouton à droite (dessous sur
   téléphone). Aucun chiffre d'exemple propre à la page. */
.mt-calc{background:var(--mt-doux,#F7F6F3);border-radius:24px;padding:30px;display:grid;grid-template-columns:1.4fr auto;gap:20px;align-items:center;margin-bottom:56px}
@media (max-width:760px){.mt-calc{grid-template-columns:1fr;padding:22px}}
.mt-calc h2{margin:0 0 6px}
.mt-calc p{margin:0;color:var(--mt-encre-2,#46506A)}
.mt-calc .mt-b{justify-self:start}

/* « Ce que vous suivez dans … » : 4 cartes, 2 colonnes (1 sur téléphone). */
.mt-cartes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-bottom:56px}
@media (max-width:760px){.mt-cartes{grid-template-columns:1fr}}
.mt-carte{border:1px solid var(--mt-filet,#E4E1DA);border-radius:20px;padding:22px;background:var(--mt-surface,#fff)}
.mt-carte h3{font:600 1.08rem/1.3 Inter,system-ui,sans-serif;margin:0 0 6px;color:var(--mt-encre,#16213A)}
.mt-carte p{margin:0;color:var(--mt-encre-2,#46506A);font-size:.98rem}
.mt-carte .ic{width:40px;height:40px;border-radius:12px;background:var(--mt-doux,#F7F6F3);display:grid;place-items:center;margin-bottom:12px;color:var(--mt-accent,#047857)}
.mt-carte .ic svg{width:22px;height:22px}

/* Questions : 3 questions propres à la page, la première ouverte. */
.mt-faq{padding-bottom:56px}
.mt-faq details{border-top:1px solid var(--mt-filet,#E4E1DA);padding:14px 0}
.mt-faq summary{font-weight:600;cursor:pointer}
.mt-faq p{color:var(--mt-encre-2,#46506A);margin:8px 0 0}

/* « Les autres métiers » / « Les autres façons de vendre » : une pastille par page publiée, la page en cours en plein. */
.mt h2.mt-autres-titre{margin-top:0}
.mt-autres{display:flex;flex-wrap:wrap;gap:10px;padding:8px 0 56px}
.mt-autres a{border:1px solid var(--mt-filet,#E4E1DA);border-radius:999px;padding:8px 14px;text-decoration:none;color:var(--mt-encre,#16213A);font-size:.93rem;background:var(--mt-surface,#fff)}
.mt-autres a.ici{background:var(--mt-encre,#16213A);color:var(--mt-surface,#fff);border-color:var(--mt-encre,#16213A)}

/* Bande de fin sombre : titre propre à la page et liste d'attente facultative. */
.mt-fin{background:var(--mt-fin,#1B2A4A);color:#fff;border-radius:24px;padding:30px;margin-bottom:56px;display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:center;scroll-margin-top:96px}
@media (max-width:760px){.mt-fin{grid-template-columns:1fr;padding:22px}}
.mt-fin h2{color:#fff;margin:0 0 6px}
.mt-fin>div>p{margin:0;color:rgba(255,255,255,.8)}
/* Les deux sites gardent leur formulaire (classes du site, même liste Brevo que leur accueil) habillé à l'identique. */
.mt-fin form{margin:0;max-width:none}
.mt-fin .inscription-ligne,.mt-fin .form-rangee{display:flex;gap:8px;background:var(--mt-champ,#fff);border:0;border-radius:999px;padding:5px;box-shadow:none}
.mt-fin input[type="email"]{flex:1;min-width:0;border:0;outline:0;margin:0;padding:0 14px;height:auto;font:400 .95rem Inter,system-ui,sans-serif;border-radius:999px;background:transparent;color:var(--mt-champ-texte,#16213A);box-shadow:none}
.mt-fin input[type="email"]::placeholder{color:var(--mt-champ-indice,#6E778C)}
.mt-fin input[type="email"]:focus-visible{outline:2px solid var(--mt-accent,#047857);outline-offset:1px}
.mt-fin button[type="submit"]{border:0;border-radius:999px;background:var(--mt-bouton-fin,#0F1E33);color:var(--mt-bouton-fin-texte,#fff);padding:11px 16px;font:600 .88rem Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer;box-shadow:none;transform:none}
.mt-fin button[type="submit"]:disabled{opacity:.6;cursor:wait}
.mt-fin .inscription-accord,.mt-fin .form-consentement{display:block;margin:10px 0 0;color:rgba(255,255,255,.75);font-size:.8rem;line-height:1.45;text-align:left}
.mt-fin .inscription-accord a,.mt-fin .form-consentement a{color:inherit}
.mt-fin .inscription-erreur,.mt-fin .form-erreur{margin:8px 0 0 14px;color:#FECACA;font-size:.82rem}
.mt-fin .inscription-ok,.mt-fin .form-succes{display:flex;align-items:center;gap:.55rem;margin:0;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:999px;padding:.7rem 1.1rem;font-weight:600;font-size:.93rem}
.mt-fin .inscription-ok svg,.mt-fin .form-succes svg{width:18px;height:18px;flex:none}
.mt-fin [hidden]{display:none!important}
@media (max-width:540px){
  .mt-fin .inscription-ligne,.mt-fin .form-rangee{flex-direction:column;border-radius:16px}
  .mt-fin input[type="email"]{height:44px}
  .mt-fin button[type="submit"]{justify-content:center}
}

/* Page des métiers en liste (choix 1A de Yacine, 23/11/2026) : une ligne par métier (miniature, nom, phrase), deux
   colonnes sur ordinateur, puis l'encadré « Votre métier n'est pas dans la liste ? ». */
.mt-intro{color:var(--mt-encre-2,#46506A);font-size:1.08rem;max-width:60ch;margin:-4px 0 28px}
.mt-lignes{display:grid;grid-template-columns:1fr 1fr;column-gap:40px;border-top:1px solid var(--mt-filet,#E4E1DA);margin-bottom:28px}
@media (max-width:760px){.mt-lignes{grid-template-columns:1fr}}
.mt-lignes a{display:flex;align-items:center;gap:14px;padding:16px 4px;border-bottom:1px solid var(--mt-filet,#E4E1DA);text-decoration:none;color:var(--mt-encre,#16213A)}
.mt-lignes a:hover b{text-decoration:underline;text-underline-offset:4px}
.mt-lignes b{display:block;font:600 1.05rem/1.3 Inter,system-ui,sans-serif}
.mt-lignes span{display:block;color:var(--mt-sous-texte,#5B6678);font-size:.93rem;line-height:1.45;margin-top:2px}
.mt-lignes svg{flex:none;margin-left:auto;width:18px;height:18px;color:var(--mt-fleche,#8B95A5)}
.mt-lignes img{width:64px;height:64px;flex:none;border-radius:14px;object-fit:cover}
@media (max-width:540px){.mt-lignes img{width:52px;height:52px;border-radius:12px}}
.mt-autre{background:var(--mt-doux,#F7F6F3);border-radius:20px;padding:22px 24px;margin-bottom:64px}
.mt-autre b{display:block;font:600 1.1rem/1.3 Inter,system-ui,sans-serif;margin-bottom:4px}
.mt-autre p{margin:0;color:var(--mt-encre-2,#46506A)}

/* Page de liste (metiers/, lieux-de-vente/) : une carte par page publiée (photo, nom, une phrase). */
/* Retour S232 (Yacine) : cartes CENTRÉES dans la page (colonnes vides repliées par auto-fit, largeur bornée). */
.mt-liste{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,360px));justify-content:center;gap:18px;padding:8px 0 64px}
.mt-liste a{display:flex;flex-direction:column;border:1px solid var(--mt-filet,#E4E1DA);border-radius:20px;overflow:hidden;background:var(--mt-surface,#fff);text-decoration:none;color:var(--mt-encre,#16213A);transition:box-shadow .2s ease}
.mt-liste a:hover{box-shadow:0 18px 40px -26px rgba(22,33,58,.45)}
.mt-liste img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.mt-liste b{display:block;font:600 1.08rem/1.3 Inter,system-ui,sans-serif;padding:16px 18px 2px}
.mt-liste span{display:block;padding:0 18px 18px;color:var(--mt-encre-2,#46506A);font-size:.98rem}

/* Mode sombre (S233) : nuit d'encre commune aux deux sites (jetons de la maison Opus.Lib, commun/css/base.css). La bande
   de fin reste une bande sombre, un ton au-dessus du fond ; son champ d'adresse passe en sombre. Les accents (boutons,
   pictogrammes) sont réglés par chaque site dans sa feuille. */
html[data-theme="sombre"] .mt{--mt-encre:#E8EDF5;--mt-encre-2:#A9B6C9;--mt-encre-3:#8B98AD;--mt-sous-texte:#A9B6C9;--mt-fleche:#76859C;--mt-filet:#22304A;--mt-surface:#111D31;--mt-doux:#14223A;--mt-champ:#0A1322;--mt-champ-texte:#E8EDF5;--mt-champ-indice:#8B98AD}
html[data-theme="sombre"] .mt-fin{border:1px solid #2A3B58}
html[data-theme="sombre"] .mt-hero img{box-shadow:0 30px 60px -30px rgba(0,0,0,.7)}

/* ==========================================================================
   Page « Fonctionnalités » (S108, fiche DESIGN_CALENDRIER_BESOINS_S108.md §CB13 du dépôt principal, maquettes 5A → 5D ;
   corrections de DESIGN_NUIT_S108_BIS.md §NB4). Le <style> de la maquette est rangé ici tel quel ; seules les couleurs
   passent par des variables (--fx-*, --mt-*) dont les défauts sont celles de la maquette, pour le mode sombre (S233).
   Une rubrique = texte (titre Spectral 600, une phrase, puces) + écran d'ordinateur avec le téléphone posé devant
   (.fx-duo : ordinateur 86 %, téléphone 29 % calé en bas à droite), à gauche / à droite en alternance ; en haut,
   le visuel « téléphone et ordinateur » (.fx-hero) ; à la fin, le bandeau sombre « Envie de l'essayer ? » (titre
   BLANC : il était invisible dans la première maquette, §NB4 n° 1). Sous 820 px : une colonne, image sous le texte.
   ========================================================================== */
.fx-intro{max-width:62ch}
.fx-som{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 8px;padding:0;list-style:none}
.fx-som a{display:inline-block;border:1px solid var(--mt-filet,#E4E1DA);border-radius:999px;padding:6px 14px;font-size:.92rem;color:inherit;text-decoration:none;background:var(--mt-surface,#fff)}
.fx-som a:hover{border-color:var(--mt-encre-3,#6E778C)}
.fx-b{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;align-items:center;padding:44px 0;border-top:1px solid var(--fx-filet,#EEECE7);scroll-margin-top:84px}
.fx-b:nth-of-type(even){grid-template-columns:300px minmax(0,1fr)}
.fx-b:nth-of-type(even) .fx-t{order:2}
.fx-t h2{font-family:Spectral,Georgia,serif;font-weight:600;font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.15;margin:0 0 12px}
.fx-t p{margin:0 0 14px;max-width:60ch}
.fx-t ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.fx-t li{padding-left:26px;position:relative}
.fx-t li:before{content:"";position:absolute;left:4px;top:.55em;width:9px;height:9px;border-radius:50%;background:var(--fx-puce,#2F6B4F)}
/* Cadres d'appareils réalistes (30/11/2026, retour de Yacine : « d'énormes bordures qui ne ressemblent à aucun appareil »).
   Dessinés en CSS seul, sans changer les pages, communs aux deux sites (ce fichier est IDENTIQUE sur authorlib.com et
   creatorlib.fr) ; mêmes proportions que les iPhone photographiés des accueils (bord fin noir, tranche métal, grands
   arrondis, îlot dynamique).
   • iPhone (.fx-tel) : l'élément est l'ÉCRAN — bande d'état (heure, réseau, batterie : pseudo-élément ::after, fond
     #FAFAFA = le haut des captures) au-dessus de la capture, îlot dynamique (::before), arrondis 15 % ; bord noir et
     tranche par des ombres pleines : ils n'occupent aucune place dans la mise en page. Une seule mesure, la largeur du
     téléphone (--fx-tel-l) : bande d'état, bord (3 %) et heure en découlent.
   • Ordinateur portable (.fx-pc) : l'image est l'écran dans un bord noir fin (--fx-lunette, un peu plus haut en haut),
     petite caméra au milieu du bord haut (::before), base aluminium discrète un peu plus large que l'écran, avec
     l'encoche d'ouverture (::after).
   • Dans le duo, les tailles suivent la largeur du duo (unités cqw : le duo est un conteneur) ; ailleurs, en px. */
.fx-tel{--fx-tel-l:300px;--fx-bord:calc(var(--fx-tel-l)*.03);--fx-heure:calc(var(--fx-tel-l)*.042);position:relative;width:var(--fx-tel-l);justify-self:center;padding-top:calc(var(--fx-tel-l)*.125);border-radius:15%/7%;overflow:hidden;background:#FAFAFA;box-shadow:0 0 0 var(--fx-bord) var(--fx-lunette,#0B0D12),0 0 0 calc(var(--fx-bord) + 1.5px) var(--fx-tranche,#8D939E),0 18px 40px var(--fx-ombre,rgba(22,33,58,.18))}
.fx-tel img{display:block;width:100%;height:auto}
.fx-tel:before{content:"";position:absolute;z-index:1;top:0;left:50%;margin-top:2.4%;width:31%;height:0;padding-top:8.6%;border-radius:999px;background:#05060A;transform:translateX(-50%)}
.fx-tel:after{content:"9:41";content:"9:41"/"";position:absolute;top:0;left:0;width:100%;aspect-ratio:100/12.5;box-sizing:border-box;display:flex;align-items:center;padding:0 0 0 10%;font:600 var(--fx-heure)/1 -apple-system,BlinkMacSystemFont,Inter,system-ui,sans-serif;letter-spacing:-.01em;color:#0B0D12;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 12'%3E%3Cg fill='%230B0D12'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='6' width='3' height='6' rx='1'/%3E%3Crect x='10' y='3.5' width='3' height='8.5' rx='1'/%3E%3Crect x='15' y='1' width='3' height='11' rx='1'/%3E%3Cpath d='M31 3.2a9.6 9.6 0 0 1 13 0l-1.5 1.6a7.4 7.4 0 0 0-10 0z M33.4 5.8a6 6 0 0 1 8.2 0L40 7.4a3.8 3.8 0 0 0-5 0z M37.5 11.5 35.6 9.6a2.7 2.7 0 0 1 3.8 0z'/%3E%3Crect x='49.5' y='1.5' width='15' height='9' rx='2.6' fill='none' stroke='%230B0D12' stroke-opacity='.45'/%3E%3Crect x='51' y='3' width='12' height='6' rx='1.4'/%3E%3Crect x='65.5' y='4.3' width='1.6' height='3.4' rx='.8' fill-opacity='.45'/%3E%3C/g%3E%3C/svg%3E") no-repeat right 8% center/22% auto}
.fx-pc{--fx-lun:8px;position:relative;width:93%;justify-self:center;padding-bottom:calc(var(--fx-lun)*2.2)}
.fx-pc img{display:block;width:100%;height:auto;box-sizing:border-box;border:var(--fx-lun) solid var(--fx-lunette,#0B0D12);border-top-width:calc(var(--fx-lun)*1.75);border-radius:calc(var(--fx-lun)*1.6) calc(var(--fx-lun)*1.6) calc(var(--fx-lun)*.5) calc(var(--fx-lun)*.5);background:#fff;box-shadow:0 0 0 1px var(--fx-tranche,#8D939E),0 18px 40px var(--fx-ombre,rgba(22,33,58,.18))}
.fx-pc:before{content:"";position:absolute;z-index:1;top:calc(var(--fx-lun)*.875 - var(--fx-lun)*.25);left:50%;width:calc(var(--fx-lun)*.5);height:calc(var(--fx-lun)*.5);border-radius:50%;background:#2A3242;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);transform:translateX(-50%)}
.fx-pc:after{content:"";position:absolute;left:-3.5%;right:-3.5%;bottom:0;height:calc(var(--fx-lun)*2.2);border-radius:0 0 calc(var(--fx-lun)*2.4) calc(var(--fx-lun)*2.4)/0 0 calc(var(--fx-lun)*1.8) calc(var(--fx-lun)*1.8);background:linear-gradient(var(--fx-socle-creux,#A6ACB6),var(--fx-socle-creux,#A6ACB6)) 50% 0/14% 38% no-repeat,linear-gradient(180deg,var(--fx-socle-1,#EEF0F3) 0%,var(--fx-socle-2,#D3D7DD) 50%,var(--fx-socle-3,#9EA4AE) 100%);box-shadow:0 12px 20px -10px var(--fx-ombre,rgba(22,33,58,.3))}
.fx-b.large{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
.fx-fin{margin:36px 0 56px;padding:36px;border-radius:20px;background:var(--fx-fin,#16213A);color:#fff;display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between}
.mt .fx-fin h2{font-family:Spectral,Georgia,serif;font-weight:600;margin:0;font-size:1.7rem;color:#fff}
.fx-fin p{margin:6px 0 0;opacity:.8}
.fx-fin a{background:#fff;color:#16213A;border-radius:999px;padding:12px 22px;font-weight:600;text-decoration:none;white-space:nowrap}
.fx-duo{position:relative;width:100%;padding:0 0 36px;justify-self:center;container-type:inline-size}
.fx-duo .fx-pc{--fx-lun:.95cqw;width:84%;margin-left:3%;justify-self:auto}
.fx-duo .fx-tel{--fx-tel-l:28cqw;position:absolute;right:1.2cqw;bottom:1.2cqw;box-shadow:0 0 0 var(--fx-bord) var(--fx-lunette,#0B0D12),0 0 0 calc(var(--fx-bord) + 1px) var(--fx-tranche,#8D939E),0 14px 30px var(--fx-ombre-tel,rgba(22,33,58,.25))}
.fx-hero{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);gap:48px;align-items:center;margin:28px 0 12px;padding:36px;border-radius:24px;background:var(--fx-hero,#F4F2EE)}
.fx-hero h2{font-family:Spectral,Georgia,serif;font-weight:600;font-size:clamp(1.6rem,2.8vw,2.3rem);line-height:1.12;margin:0 0 14px}
.fx-hero p{margin:0;max-width:46ch}
@media (max-width:820px){
  .fx-hero{grid-template-columns:1fr;gap:24px;padding:22px}
  .fx-duo{padding-bottom:26px}
  .fx-b,.fx-b:nth-of-type(even),.fx-b.large{grid-template-columns:1fr;gap:24px}
  .fx-b:nth-of-type(even) .fx-t{order:0}
  .fx-tel{--fx-tel-l:min(280px,80vw)}
  .fx-fin{padding:24px}
}
/* Mode sombre (S233) : filets et fonds de la nuit d'encre ; tranche des appareils plus claire que la nuit, base de
   l'ordinateur en aluminium sombre (les écrans gardent leurs captures claires). */
html[data-theme="sombre"] .fx{--fx-filet:#22304A;--fx-hero:#14223A;--fx-fin:#13233B;--fx-puce:#6FCF97;--fx-ombre:rgba(0,0,0,.45);--fx-ombre-tel:rgba(0,0,0,.55);--fx-tranche:#5A6375;--fx-socle-1:#5B6578;--fx-socle-2:#3E4759;--fx-socle-3:#262D3B;--fx-socle-creux:#1B2130}
html[data-theme="sombre"] .fx-fin{border:1px solid #2A3B58}
