/* Lot REFONTE-B-L-ANNUAIRE-PRO (10/11/2026, C460-C462, C466, C470) : annuaire (G15, /artisans et ses sous-pages) et page publique de l'artisan (G16, /pro/<slug>) en direction B. Complete rf-refonte-b.css et rf-refonte-b-vitrine.css ; toutes les regles sont sous body.rfb-g15 ou body.rfb-g16. Aucune couleur nouvelle, aucun script, aucune animation, aucun texte ajoute. Les couleurs de l'artisan (--couleur-entreprise, logo) restent. Le fond de carte IGN n'est pas touche (chargement au clic, CSP inchangee). */

/* Jetons des feuilles en ligne, ramenes aux jetons B : texte secondaire, fonds, filets de champ */
body:is(.rfb-g15, .rfb-g16) {
  --texte-neutre: var(--doux); --texte-tertiaire: var(--doux); --neutre-fond: var(--nuit-3); --primaire-clair: var(--nuit-2); --bordure-champ: color-mix(in srgb, var(--ciel) 45%, transparent);
  --succes-fond: var(--nuit-3); --succes-texte: var(--blanc);
  min-height: 100svh; line-height: 1.55; overflow-wrap: anywhere;
}
body:is(.rfb-g15, .rfb-g16) .evitement:focus { background: var(--blanc); color: var(--nuit); }
body:is(.rfb-g15, .rfb-g16) .visuellement-cache { color: inherit; }

/* Conteneur : celui des pages autonomes (le socle remet a zero le conteneur des pages du site) */
body:is(.rfb-g15, .rfb-g16) .conteneur { width: min(1120px, 100% - 32px); max-width: none; margin-inline: auto; padding: 0; }
body:is(.rfb-g15, .rfb-g16) main { padding-block: 20px 56px; }

/* Haut de page : halo fixe, comme l'accueil B, sans pastille au-dessus du titre (C462) */
body.rfb-g15 .hero { position: relative; max-width: none; margin: 0; padding: 0 0 12px; border-top: 0; color: var(--blanc); box-shadow: none; clip-path: none; background: radial-gradient(ellipse 90% 80% at 88% -14%, color-mix(in srgb, var(--bleu) 34%, transparent), color-mix(in srgb, var(--bleu) 8%, transparent) 58%, transparent 80%), var(--nuit); }
body.rfb-g16 .hero { position: relative; max-width: none; margin: 0; padding: 0 0 20px; box-shadow: none; clip-path: none; color: var(--blanc); background: radial-gradient(ellipse 90% 80% at 88% -14%, color-mix(in srgb, var(--bleu) 30%, transparent), color-mix(in srgb, var(--bleu) 8%, transparent) 58%, transparent 80%), var(--nuit); }
body.rfb-g16 .hero::before { content: none; }
body.rfb-g16 .hero > * { position: relative; }
body.rfb-g15 .marque { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; justify-content: space-between; min-height: 64px; padding-block: 8px; }
body.rfb-g15 .marque a { display: inline-flex; align-items: center; min-height: 44px; color: var(--doux); font-weight: 500; text-decoration: none; }
body.rfb-g15 .marque a:first-child { color: var(--blanc); font-weight: 640; letter-spacing: -.02em; }
body.rfb-g15 .marque a:hover { color: var(--blanc); }
body.rfb-g15 .fil { max-width: none; margin: 0; padding: 0; background: none; font-size: 15px; }
body.rfb-g15 .fil a { color: var(--doux); padding: 0 4px; }
body.rfb-g15 .fil li { color: var(--doux); }
body.rfb-g15 .fil a:hover { color: var(--blanc); }
body.rfb-g15 .fil li + li::before { color: var(--doux); }
body.rfb-g15 .fil [aria-current] { color: var(--blanc); }
body.rfb-g15 .hero h1 { margin: 14px 0 12px; max-width: 19ch; }
body.rfb-g15 .hero .intro { margin: 0; max-width: 60ch; color: var(--doux); font-size: 18px; }

/* Annuaire : recherche, ordre d'affichage, liste */
body.rfb-g15 .recherche { margin: 0 0 24px; padding: 18px; background: var(--nuit-2); border: 1px solid var(--trait); border-radius: 20px; box-shadow: none; color-scheme: dark; }
body.rfb-g15 .recherche label, body.rfb-g15 .filtres legend { color: var(--blanc); font-size: 15px; font-weight: 600; }
body.rfb-g15 .recherche :is(select, input[type="text"]) { min-height: 52px; padding: 0 14px; background: var(--nuit); color: var(--blanc); border: 1px solid color-mix(in srgb, var(--ciel) 60%, transparent); border-radius: 12px; font-size: 16px; } /* Lot REFONTE-B-REPRISE (C479) : contour a 3,8:1 au moins contre le fond du champ et le panneau (--bordure-champ, a 2,81:1, reste pour les boutons) */
body.rfb-g15 .recherche :is(select, input[type="text"]):focus { border-color: var(--ciel); }
body.rfb-g15 .recherche input::placeholder { color: var(--doux); opacity: 1; }
body.rfb-g15 .recherche button { min-height: 52px; padding: 0 28px; background: var(--blanc); color: var(--nuit); font-weight: 650; border: 0; border-radius: 99px; transition: transform 130ms cubic-bezier(.23, 1, .32, 1); }
body.rfb-g15 .recherche button:hover { background: #FFFFFF; }
body.rfb-g15 .recherche button:active { transform: scale(.97); }
body.rfb-g15 details.filtres { border-top: 1px solid var(--trait); }
body.rfb-g15 details.filtres summary { color: var(--blanc); font-weight: 600; }
body.rfb-g15 .filtres label.case { color: var(--doux); font-weight: 500; }
body.rfb-g15 .filtres input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--ciel); }
body.rfb-g15 .critere { margin: 0 0 24px; padding: 14px 18px; color: var(--doux); background: var(--nuit-2); border: 1px solid var(--trait); border-radius: 14px; font-size: 16px; }
body.rfb-g15 .critere strong { color: var(--blanc); margin-bottom: 4px; }
body.rfb-g15 .choix { background: var(--nuit-2); border-color: var(--trait); color: var(--doux); }
body.rfb-g15 .choix strong { color: var(--blanc); }
body.rfb-g15 .choix a, body.rfb-g15 ul.liens a, body.rfb-g15 .voisines a { color: var(--ciel); font-weight: 500; }

/* Sections : un filet et le titre, le texte directement sur le fond */
body.rfb-g15 section.carte { margin: 0; padding: 32px 0; background: none; border: 0; border-top: 1px solid var(--trait); border-radius: 0; }
body.rfb-g15 section.carte h2, body.rfb-g15 .entete-liste h2 { margin: 0 0 16px; font-size: clamp(23px, 5.6vw, 28px); line-height: 1.18; letter-spacing: -.02em; font-weight: 620; color: var(--blanc); }
body.rfb-g15 .entete-liste h2 { margin: 0; }
body.rfb-g15 .entete-liste a { color: var(--ciel); font-weight: 600; }
body.rfb-g15 h3.dep { margin: 24px 0 4px; font-size: 19px; font-weight: 600; }
body.rfb-g15 h3.dep a { color: var(--blanc); }
body.rfb-g15 section.carte p, body.rfb-g15 .source, body.rfb-g15 .vide, body.rfb-g15 .meta { color: var(--doux); }
body.rfb-g15 section.carte strong { color: var(--blanc); }
body.rfb-g15 .source { font-size: 15px; }
body.rfb-g15 ul.liens { gap: 4px 16px; }
body.rfb-g15 a.lien-retour { color: var(--ciel); font-weight: 600; }
body.rfb-g15 a.bouton, body.rfb-g15 .bouton-plein { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; background: var(--blanc); color: var(--nuit); font-weight: 650; border: 0; border-radius: 99px; text-decoration: none; cursor: pointer; transition: transform 130ms cubic-bezier(.23, 1, .32, 1); }
body.rfb-g15 a.bouton:hover, body.rfb-g15 .bouton-plein:hover { background: #FFFFFF; color: var(--nuit); }
body.rfb-g15 a.bouton:active, body.rfb-g15 .bouton-plein:active { transform: scale(.97); }

/* Mention des avis : texte sur le fond, details repliables en dessous */
body.rfb-g15 .mention-avis { background: var(--nuit-2); border: 1px solid var(--trait); color: var(--doux); }
body.rfb-g15 .mention-avis strong { color: var(--blanc); font-weight: 600; }
body.rfb-g15 .avis-info { background: var(--nuit-3); border-color: var(--trait); }
body.rfb-g15 .mention-avis .avis-info { background: none; border: 0; }
body.rfb-g15 .mention-avis .avis-info summary { color: var(--ciel); font-weight: 600; }
body.rfb-g15 .avis-info li { color: var(--doux); }

/* Fiches d'entreprise : une seule boite, le logo garde son fond clair */
body.rfb-g15 ul.cartes { gap: 14px; margin-bottom: 24px; }
body.rfb-g15 ul.cartes > li, body.rfb-g15 ol.du-mois > li, body.rfb-g15 ul.fiches li { background: var(--nuit-2); border: 1px solid var(--trait); border-radius: 16px; box-shadow: none; padding: 18px; }
body.rfb-g15 .logo-carte.initiales { background: var(--nuit-3); border-color: var(--trait); color: var(--blanc); font-weight: 640; font-size: 22px; letter-spacing: 0; }
body.rfb-g15 .nom-carte { font-size: 19px; }
body.rfb-g15 :is(.nom-carte a, .du-mois h3 a, .nom-fiche a) { color: var(--blanc); font-weight: 620; text-decoration: none; letter-spacing: -.01em; }
body.rfb-g15 :is(.nom-carte a, .du-mois h3 a, .nom-fiche a):hover { color: var(--ciel); text-decoration: underline; text-underline-offset: 3px; }
body.rfb-g15 .note { font-weight: 500; color: var(--doux); }
body.rfb-g15 .note .etoiles { color: var(--ciel); }
body.rfb-g15 .note.sans .etoiles { color: var(--doux); }
body.rfb-g15 .note.sans .texte { color: var(--doux); }
body.rfb-g15 .note a { color: var(--doux); }
body.rfb-g15 .note a .texte { color: var(--ciel); }
body.rfb-g15 .metiers { color: var(--blanc); font-weight: 500; }
body.rfb-g15 .lieu-carte, body.rfb-g15 .extrait { color: var(--doux); }
body.rfb-g15 .actions-carte { gap: 8px; }
body.rfb-g15 .actions-carte a { min-height: 46px; padding: 0 18px; border-radius: 99px; font-weight: 600; transition: transform 130ms cubic-bezier(.23, 1, .32, 1); }
body.rfb-g15 .actions-carte a:active { transform: scale(.97); }
body.rfb-g15 .actions-carte .voir { background: none; color: var(--blanc); box-shadow: inset 0 0 0 1px var(--bordure-champ); }
body.rfb-g15 .actions-carte .voir:hover { background: var(--nuit-3); color: var(--blanc); }
body.rfb-g15 .actions-carte .devis { background: var(--nuit-3); color: var(--blanc); box-shadow: inset 0 0 0 1px var(--ciel); }
body.rfb-g15 .actions-carte .devis:hover { background: var(--nuit); color: var(--blanc); }
body.rfb-g15 .badge-verif { background: none; padding: 0; color: var(--blanc); font-weight: 500; font-size: 15px; }
body.rfb-g15 .badge-verif a { color: var(--ciel); }
body.rfb-g15 .pagination a { box-shadow: inset 0 0 0 1px var(--bordure-champ); color: var(--blanc); border-radius: 12px; font-weight: 600; }
body.rfb-g15 .pagination a:hover { background: var(--nuit-3); }
body.rfb-g15 .pagination [aria-current] { background: var(--blanc); color: var(--nuit); border-radius: 12px; }
body.rfb-g15 .pagination span[aria-hidden] { color: var(--doux); }
body.rfb-g15 ol.etapes li { padding: 0 0 0 0; background: none; border: 0; }
body.rfb-g15 ol.etapes li::before { display: block; width: auto; height: auto; margin: 0 0 6px; background: none; color: var(--ciel); font-weight: 600; }
body.rfb-g15 ol.etapes h3 { margin: 0 0 6px; color: var(--blanc); font-weight: 600; font-size: 19px; }

/* Artisans du mois */
body.rfb-g15 .du-mois-image { border-color: var(--trait); background: var(--blanc); }
body.rfb-g15 .du-mois p { color: var(--doux); }
body.rfb-g15 .criteres { color: var(--doux); }
body.rfb-g15 p.mention-avis { padding: 12px 16px; border-radius: 12px; font-weight: 500; }

/* Carte : fond clair des tuiles et reperes inchanges ; bloc avant le clic, sur le fond sombre */
body.rfb-g15 .cadre-carte { background: var(--nuit-3); border-color: var(--trait); }
body.rfb-g15 a.repere, body.rfb-g15 a.repere:hover { color: var(--blanc); }
body.rfb-g15 .tuiles img { height: auto; }
body.rfb-g15 .carte-a-ouvrir { background: var(--nuit-2); border-color: var(--trait); }
body.rfb-g15 .carte-a-ouvrir p { color: var(--doux); }
body.rfb-g15 .source-carte, body.rfb-g15 .carte-note { color: var(--doux); }
body.rfb-g15 ol.liste-carte li { color: var(--doux); }
body.rfb-g15 ol.liste-carte a { color: var(--blanc); }

/* Page de l'artisan : identite, sans pastille ni badge (C462) ; le filet de la couleur de l'entreprise reste */
body.rfb-g16 .identite { animation: none; padding-block: 32px 24px; }
body.rfb-g16 .hero h1 { margin: 0; max-width: 22ch; font-size: clamp(30px, 8.6vw, 52px); }
body.rfb-g16 .logo-pro.initiales { background: var(--nuit-3); color: var(--blanc); font-weight: 640; box-shadow: inset 0 0 0 1px var(--trait); }
body.rfb-g16 .note-pro { color: var(--doux); font-weight: 500; }
body.rfb-g16 .note-pro .etoiles { color: var(--ciel); }
body.rfb-g16 .note-pro a { color: var(--blanc); }
body.rfb-g16 .etiquettes { gap: 4px 18px; margin-top: 14px; }
body.rfb-g16 :is(.etiquette, .pastille) { min-height: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; font-size: 16px; font-weight: 500; color: var(--doux); }
body.rfb-g16 .pastille { color: var(--blanc); }
body.rfb-g16 .actions { gap: 10px; margin-top: 22px; }
body.rfb-g16 .btn { min-height: 52px; padding: 0 26px; border-radius: 99px; font-weight: 650; }
body.rfb-g16 .hero .btn-accent, body.rfb-g16 .btn-accent { background: var(--blanc); color: var(--nuit); box-shadow: none; }
body.rfb-g16 .btn-accent:hover { background: #FFFFFF; color: var(--nuit); }
body.rfb-g16 .btn-verre { background: none; color: var(--blanc); box-shadow: inset 0 0 0 1px var(--bordure-champ); }
body.rfb-g16 .btn-verre:hover { background: var(--nuit-3); }
body.rfb-g16 .btn-neutre { background: none; color: var(--ciel); box-shadow: inset 0 0 0 1px var(--bordure-champ); }
@media (hover: hover) and (pointer: fine) { body.rfb-g16 .btn:hover { transform: none; } }
body.rfb-g16 .btn:active { transform: scale(.97); }
body.rfb-g16 .sans-devis { color: var(--doux); }

/* Galerie : photos pleines (la regle commune img { height: auto } de la feuille B ne doit pas les ecraser) */
body.rfb-g16 .galerie li { background: var(--nuit-2); box-shadow: inset 0 0 0 1px var(--trait); }
body.rfb-g16 :is(.galerie img, .photos img, .photo-equipe img) { width: 100%; height: 100%; max-width: none; }
body.rfb-g16 .galerie-vide { background: var(--nuit-2); color: var(--doux); box-shadow: inset 0 0 0 1px var(--trait); }

/* Rubriques : bande collante sombre, lien actif a l'appui ; onglets sur fond plein (contraste au passage de contenu) */
body.rfb-g16 .rubriques { background: var(--nuit-2); border-bottom: 1px solid var(--trait); box-shadow: none; }
body.rfb-g16 .rubriques a { color: var(--doux); font-weight: 500; }
body.rfb-g16 .rubriques a:hover { background: var(--nuit-3); color: var(--blanc); }
body.rfb-g16 .rubriques a:focus-visible { outline-offset: -2px; }

/* Rubriques de la page : une boite par rubrique, comme la page d'avant */
body.rfb-g16 section.carte { margin: 0 0 16px; padding: 24px; background: var(--nuit-2); border: 1px solid var(--trait); border-radius: 18px; box-shadow: none; }
body.rfb-g16 section.carte h2 { margin: 0 0 14px; font-size: clamp(22px, 5vw, 26px); line-height: 1.2; letter-spacing: -.02em; font-weight: 620; color: var(--blanc); }
body.rfb-g16 section.carte h3 { margin: 22px 0 8px; color: var(--blanc); font-weight: 600; font-size: 18px; }
body.rfb-g16 section.carte p, body.rfb-g16 .vide, body.rfb-g16 .source { color: var(--doux); }
body.rfb-g16 section.carte strong { color: var(--blanc); }
body.rfb-g16 .source { font-size: 15px; }
body.rfb-g16 .liste li { color: var(--doux); }
body.rfb-g16 .liste li::marker { color: var(--doux); }
body.rfb-g16 dl.fiche dt { color: var(--doux); font-weight: 500; }
body.rfb-g16 dl.fiche dd { color: var(--blanc); }
body.rfb-g16 dl.fiche dd a { color: var(--ciel); }
body.rfb-g16 .lien-court { background: var(--nuit-3); color: var(--blanc); border-radius: 8px; }
body.rfb-g16 .photos .cadre, body.rfb-g16 .photo-equipe .cadre { background: var(--nuit-3); }
body.rfb-g16 .photos figcaption { color: var(--doux); }
body.rfb-g16 .certifs li { border-color: var(--trait); }
body.rfb-g16 .certifs .nom { color: var(--blanc); font-weight: 600; }
body.rfb-g16 .certifs .meta { color: var(--doux); }
body.rfb-g16 .badge-rge { background: none; padding: 0 0 0 4px; color: var(--ciel); font-weight: 600; }
body.rfb-g16 table.horaires th { color: var(--blanc); font-weight: 500; }
body.rfb-g16 table.horaires td { color: var(--doux); }
body.rfb-g16 table.horaires :is(th, td) { border-bottom: 1px solid var(--trait); }
body.rfb-g16 .horaires-tout24, body.rfb-g16 .horaires-urgences { color: var(--blanc); }
body.rfb-g16 .reseaux a { background: none; color: var(--blanc); border: 1px solid var(--bordure-champ); border-radius: 99px; font-weight: 500; }
body.rfb-g16 .reseaux a:hover { background: var(--nuit-3); }

/* Avis */
body.rfb-g16 .avis-etoiles { color: var(--ciel); }
body.rfb-g16 .avis-resume { color: var(--blanc); font-weight: 500; }
body.rfb-g16 .avis-liste > li { background: var(--nuit-3); border-color: var(--trait); }
body.rfb-g16 .avis-auteur { color: var(--blanc); font-weight: 600; }
body.rfb-g16 .avis-texte { color: var(--doux); }
body.rfb-g16 .avis-dates { color: var(--doux); }
body.rfb-g16 .avis-reponse { background: var(--nuit-2); border-left: 2px solid var(--ciel); }
body.rfb-g16 .avis-reponse h3 { color: var(--blanc); font-size: 16px; }
body.rfb-g16 .avis-reponse p { color: var(--doux); }
body.rfb-g16 .avis-signaler { color: var(--ciel); }
body.rfb-g16 .avis-verifies { background: var(--nuit-3); border-color: var(--trait); }
body.rfb-g16 .avis-verifies strong { color: var(--blanc); font-weight: 500; }
body.rfb-g16 .avis-info { background: var(--nuit-3); border-color: var(--trait); }
body.rfb-g16 .avis-info summary { color: var(--blanc); font-weight: 600; }
body.rfb-g16 .avis-info li { color: var(--doux); }

/* Page introuvable (G15 et G16) : une seule boite centree sur le fond */
body:is(.rfb-g15, .rfb-g16) main > div.carte { background: var(--nuit-2); border: 1px solid var(--trait); border-radius: 18px; box-shadow: none; color: var(--doux); }
body:is(.rfb-g15, .rfb-g16) main > div.carte h1 { margin: 0 0 10px; color: var(--blanc); font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 620; }
body:is(.rfb-g15, .rfb-g16) main > div.carte p { color: var(--doux); }
body:is(.rfb-g15, .rfb-g16) main > div.carte a { color: var(--ciel); font-weight: 600; }

/* Lot REFONTE-B-REPRISE (10/11/2026, C479) : carte de visite web (/pro/<slug>/carte) et signalement (/pro/<slug>/signaler) sous le code G16. Mise en forme seulement ; le filet de la couleur de l'entreprise et le logo sur fond clair restent ; le QR code garde son fond blanc. */
body.rfb-g16 .entete { color: var(--blanc); background: radial-gradient(ellipse 90% 80% at 88% -14%, color-mix(in srgb, var(--bleu) 30%, transparent), color-mix(in srgb, var(--bleu) 8%, transparent) 58%, transparent 80%), var(--nuit); }
body.rfb-g16 .entete .interieur { padding-block: 32px 24px; }
body.rfb-g16 .entete h1 { font-size: clamp(30px, 8.6vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 620; }
body.rfb-g16 .entete .sous { color: var(--doux); }
body.rfb-g16 .bloc { background: var(--nuit-2); border-color: var(--trait); }
body.rfb-g16 .bloc h2 { color: var(--blanc); font-size: 20px; line-height: 1.25; letter-spacing: -.01em; font-weight: 620; }
body.rfb-g16 .bloc .actions { margin-top: 0; }
body.rfb-g16 .bloc .btn-principal { background: var(--blanc); color: var(--nuit); }
body.rfb-g16 .bloc .btn-principal:hover { background: #FFFFFF; color: var(--nuit); }
/* Un seul bouton plein par vue : avec « Appeler », la demande de devis passe en contour */
body.rfb-g16 .bloc .actions:has(.btn-principal) .btn-accent { background: var(--nuit-3); color: var(--blanc); box-shadow: inset 0 0 0 1px var(--ciel); }
body.rfb-g16 .bloc .actions:has(.btn-principal) .btn-accent:hover { background: var(--nuit); color: var(--blanc); }
body.rfb-g16 .bloc .certifs li { color: var(--blanc); }
body.rfb-g16 .bloc .certifs img { padding: 3px; background: #FFFFFF; border-radius: 6px; } /* Lot FINITIONS-2 (C486) : logo de qualification fonce ou transparent lisible sur le fond sombre (fond deja employe par la feuille et par .logo-cert de /pro) */
body.rfb-g16 .qr svg { border-radius: 8px; }
body.rfb-g16 footer.pied .interieur { width: min(520px, 100% - 32px); }

/* Signalement : les champs comme ceux de la recherche de l'annuaire ; message d'erreur ou de confirmation sur le fond sombre */
body.rfb-g16 main > div.carte strong { color: var(--blanc); font-weight: 600; }
body.rfb-g16 main > div.carte label { margin-bottom: 6px; color: var(--blanc); font-size: 16px; font-weight: 600; }
body.rfb-g16 main > div.carte :is(select, textarea, input[type="text"]) { min-height: 52px; padding: 12px 14px; background: var(--nuit); color: var(--blanc); border: 1px solid color-mix(in srgb, var(--ciel) 60%, transparent); border-radius: 12px; font-size: 16px; color-scheme: dark; }
body.rfb-g16 main > div.carte :is(select, textarea, input[type="text"]):focus { border-color: var(--ciel); }
body.rfb-g16 main > div.carte textarea { min-height: 140px; }
body.rfb-g16 main > div.carte .btn { background: var(--blanc); color: var(--nuit); }
body.rfb-g16 main > div.carte .btn:hover { background: #FFFFFF; }
body.rfb-g16 main > div.carte :is(.erreur, .ok) { padding: 12px 14px; background: var(--nuit-3); color: var(--blanc); border: 1px solid var(--trait); border-radius: 12px; font-weight: 500; }
body.rfb-g16 main > div.carte .erreur { border-color: var(--ciel); }

/* Lot FINITIONS-2 (C486) : champs du formulaire « Publier une demande » comme ceux du signalement ; drapeau DEMANDES_MARCHE_ACTIF ferme en production, regle sans effet tant qu'il l'est */
body.rfb-g15 .formulaire-demande :is(select, textarea, input[type="text"], input[type="email"]) { background: var(--nuit); color: var(--blanc); border: 1px solid color-mix(in srgb, var(--ciel) 60%, transparent); color-scheme: dark; }
body.rfb-g15 .formulaire-demande :is(select, textarea, input[type="text"], input[type="email"]):focus { border-color: var(--ciel); }

/* Lot REFONTE-B-REPRISE (C479) : mouvement reduit : plus de transition ni de contraction a l'appui ; couleurs inchangees */
@media (prefers-reduced-motion: reduce) {
  body.rfb-g15 :is(.recherche button, a.bouton, .bouton-plein, .actions-carte a), body.rfb-g16 .btn { transition: none; }
  body.rfb-g15 :is(.recherche button, a.bouton, .bouton-plein, .actions-carte a):active, body.rfb-g16 .btn:active { transform: none; }
}

/* Pied : celui des pages autonomes, sur le fond du pied B ; liens a 44 px et lisibles */
body:is(.rfb-g15, .rfb-g16) footer.pied { padding: 20px 0; font-size: 15px; }
body:is(.rfb-g15, .rfb-g16) footer.pied a { color: var(--doux); }
body:is(.rfb-g15, .rfb-g16) footer.pied a:hover { color: var(--blanc); }

@media (min-width: 760px) {
  body.rfb-g15 .recherche { padding: 22px; }
  body.rfb-g15 .critere { padding: 14px 20px; }
}
@media (min-width: 900px) {
  body.rfb-g15 .hero { padding-bottom: 20px; }
  body:is(.rfb-g15, .rfb-g16) main { padding-block: 28px 72px; }
}
@media (max-width: 520px) { body.rfb-g16 section.carte { padding: 20px 18px; } }

/* Impression : encre sur blanc, fond de page et halos neutralises */
@media print {
  body:is(.rfb-g15, .rfb-g16) { --nuit: Canvas; --nuit-2: Canvas; --nuit-3: Canvas; --blanc: CanvasText; --doux: CanvasText; --ciel: CanvasText; --bordure-champ: CanvasText; --trait: CanvasText; background: Canvas; color: CanvasText; }
  body:is(.rfb-g15, .rfb-g16) .hero { background: none; }
  /* Lot REFONTE-B-REPRISE (C479) : carte de visite imprimable : encre sur papier, boutons sans aplat */
  body.rfb-g16 .entete { background: none; color: CanvasText; }
  body.rfb-g16 .bloc .btn, body.rfb-g16 .bloc .actions:has(.btn-principal) .btn-accent { background: none; color: CanvasText; box-shadow: inset 0 0 0 1px CanvasText; }
  /* Une feuille A4 comme avant : marges et boutons resserres a l'impression seulement */
  body.rfb-g16 .entete .interieur { padding-block: 10px; }
  body.rfb-g16 .entete h1 { font-size: 26px; }
  body.rfb-g16 main:has(> .bloc) { padding-block: 8px 0; }
  body.rfb-g16 .bloc { margin-bottom: 8px; padding: 10px 14px; break-inside: avoid; }
  body.rfb-g16 .bloc h2 { font-size: 17px; margin-bottom: 6px; }
  body.rfb-g16 .bloc .actions { gap: 4px; }
  body.rfb-g16 .bloc .btn { min-height: 34px; padding: 0 16px; }
  body.rfb-g16 .qr svg { width: 180px; }
  body.rfb-g16 footer.pied:has(.interieur) { padding: 6px 0; }
}

/* Lot ANNUAIRE-ENTETE (10/11/2026, C489) : barre collee en haut de /artisans, ses sous-pages et /pro/<slug> ; fond nuit translucide, flou leger, logo, titre ; « ← Retour » sur les pages filles. L'ancienne ligne de texte (rankflux.fr / Annuaire des artisans) reste dans le HTML, masquee a l'ecran : la barre la remplace. Ancres et focus jamais sous la barre : scroll-padding. */
html:has(> body:is(.rfb-g15, .rfb-g16)) { scroll-padding-top: 76px; }
body.rfb-g15 .hero .marque { display: none; }
body.rfb-g15 .hero > .conteneur { padding-top: 10px; }
body:is(.rfb-g15, .rfb-g16) .ann-barre { position: sticky; top: 0; z-index: 20; padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); background: var(--nuit); /* Reprise 1 : repli sans color-mix */ background: color-mix(in srgb, var(--nuit) 86%, transparent); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); border-bottom: 1px solid var(--trait); }
body:is(.rfb-g15, .rfb-g16) .ann-barre .conteneur { display: flex; align-items: center; gap: 10px; height: 59px; }
body:is(.rfb-g15, .rfb-g16) .ann-barre a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
body:is(.rfb-g15, .rfb-g16) .ann-retour { flex: none; gap: 5px; padding: 0 12px 0 8px; border-radius: 99px; color: var(--blanc); font-size: 15px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--trait); transition: transform 130ms cubic-bezier(.23, 1, .32, 1); }
body:is(.rfb-g15, .rfb-g16) .ann-retour:active { transform: scale(.97); }
body:is(.rfb-g15, .rfb-g16) .ann-logo { flex: none; }
body:is(.rfb-g15, .rfb-g16) .ann-logo img { width: 104px; height: auto; }
body:is(.rfb-g15, .rfb-g16) .ann-titre { min-width: 0; padding-left: 11px; border-left: 1px solid var(--trait); color: var(--blanc); font-size: 15px; font-weight: 600; line-height: 1.15; text-wrap: balance; }
body:is(.rfb-g15, .rfb-g16) .ann-barre .ann-pro { display: none; margin-left: auto; color: var(--doux); font-size: 15px; font-weight: 500; white-space: nowrap; }
body:is(.rfb-g15, .rfb-g16) .ann-pro:hover { color: var(--blanc); }
@media (hover: hover) and (pointer: fine) { body:is(.rfb-g15, .rfb-g16) .ann-retour:hover { background: var(--nuit-3); color: var(--blanc); } }
body.rfb-g16 .rubriques { top: 60px; }
@media (max-width: 359px) { body:is(.rfb-g15, .rfb-g16) .ann-logo img { width: 88px; } body:is(.rfb-g15, .rfb-g16) .ann-barre .conteneur { gap: 8px; } }
@media (min-width: 640px) { body:is(.rfb-g15, .rfb-g16) .ann-barre .ann-pro { display: inline-flex; } }
@media (min-width: 900px) {
  body:is(.rfb-g15, .rfb-g16) .ann-barre .conteneur { height: 63px; gap: 16px; }
  body:is(.rfb-g15, .rfb-g16) .ann-logo img { width: 124px; }
  body:is(.rfb-g15, .rfb-g16) .ann-titre { padding-left: 16px; font-size: 16px; }
  body.rfb-g16 .rubriques { top: 64px; }
}
@media (prefers-reduced-motion: reduce) { body:is(.rfb-g15, .rfb-g16) .ann-retour { transition: none; } body:is(.rfb-g15, .rfb-g16) .ann-retour:active { transform: none; } }
@media print { body:is(.rfb-g15, .rfb-g16) .ann-barre { display: none; } }
/* (fin du bloc Lot ANNUAIRE-ENTETE) */

/* Lot ANNUAIRE-ENTETE-2 (10/11/2026, C491) : bouton menu a droite de la barre, meme composant que le menu du site (details.menu-mobile, /static/vitrine-menu.js).
 * Les regles de structure du menu sont celles de obtp-public.css (feuille absente de l'annuaire), recopiees ici sous la barre ; couleurs de rf-refonte-b.css.
 * Menu ouvert : page assombrie (toucher hors du menu = fermeture, meme sans script), page immobile sous 1024 px ; la barre perd son flou pour que le voile couvre tout l'ecran.
 * « Vous êtes artisan ? » : dans la barre a partir de 640 px, dans le menu en dessous. « ← Accueil » de /artisans : meme forme que « ← Retour ». */
body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile { position: relative; flex: none; margin-left: auto; }
body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile > summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; color: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait); -webkit-tap-highlight-color: transparent; }
body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile > summary::-webkit-details-marker { display: none; }
body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile[open] > summary { position: relative; z-index: 1; background: var(--nuit-3); }
body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--voile-leger); cursor: default; }
body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile nav { position: absolute; right: 0; top: 52px; z-index: 2; width: min(320px, calc(100vw - 32px)); max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; background: var(--nuit-2); border: 1px solid var(--trait); border-radius: 14px; box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }
body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile ul { list-style: none; margin: 0; padding: 0; }
body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 10px; color: var(--blanc); background: transparent; font-size: 16px; font-weight: 600; text-decoration: none; }
body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile a:hover, body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile a[aria-current] { background: var(--nuit-3); color: var(--blanc); }
body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile .sep { border-top: 1px solid var(--trait); margin-top: 8px; padding-top: 8px; }
body:is(.rfb-g15, .rfb-g16) .ann-barre:has(.menu-mobile[open]) { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--nuit); }
/* Menu ouvert : la page sous le voile est masquee (comme une fenetre modale : ni cible ni texte a moitie recouverts par le menu ; aucun changement de mise en page, position de lecture gardee) */
body:is(.rfb-g15, .rfb-g16):has(.ann-barre .menu-mobile[open]) > :not(.ann-barre) { visibility: hidden; }
body:is(.rfb-g15, .rfb-g16):has(.ann-barre .menu-mobile[open]) .ann-barre { visibility: visible; }
@media (hover: hover) and (pointer: fine) { body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile > summary:hover { background: var(--nuit-3); } }
@media (max-width: 1023px) { html:has(> body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile[open]) { overflow: hidden; } }
@media (min-width: 640px) { body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile { margin-left: 0; } body:is(.rfb-g15, .rfb-g16) .ann-barre .ann-menu-pro { display: none; } }
@media (min-width: 900px) { body:is(.rfb-g15, .rfb-g16) .ann-barre .menu-mobile nav { top: 54px; } }
/* (fin du bloc Lot ANNUAIRE-ENTETE-2) */
