/* Meilleur E-commerce, feuille de style unique
   Direction : l'étiquette de prix. Encre bleu nuit, papier blanc froid,
   jaune étiquette réservé aux montants et aux actions. */

:root {
  --encre: #172033;
  --encre-2: #3b4660;
  --discret: #5d6782;
  --papier: #ffffff;
  --fond: #f2f4f8;
  --trait: #d5dbe6;
  --etiquette: #ffd23f;
  --etiquette-fonce: #e3b100;
  --lien: #1f4fd1;
  --vert: #11795b;
  --rayon: 6px;
  --titre: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mesure: 68ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --encre: #e8ecf4;
    --encre-2: #c2cada;
    --discret: #98a2b9;
    --papier: #182134;
    --fond: #101828;
    --trait: #2c3850;
    --etiquette: #ffd23f;
    --etiquette-fonce: #ffd23f;
    --lien: #8db0ff;
    --vert: #4fd1a5;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 1.0625rem/1.65 var(--texte);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--lien); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lien); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.12; letter-spacing: -.01em; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; font-stretch: 90%; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.5em; }
p { margin: 0 0 1em; }
small { display: block; font-size: .8em; color: var(--discret); font-weight: 400; }

.evitement { position: absolute; left: -999px; top: 0; background: var(--etiquette); color: #172033; padding: .5rem 1rem; z-index: 10; }
.evitement:focus { left: 1rem; }

/* ---------- En-tête ---------- */
.entete { background: var(--papier); border-bottom: 2px solid var(--encre); }
.entete-in { max-width: 74rem; margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: .55rem; color: var(--encre); text-decoration: none; font-family: var(--titre); font-weight: 800; font-size: 1rem; line-height: 1; font-stretch: 85%; }
.marque span { letter-spacing: -.01em; }
.menu-bouton { font: 600 .95rem var(--texte); background: none; border: 2px solid var(--encre); color: var(--encre); border-radius: var(--rayon); padding: .4rem .9rem; cursor: pointer; }
.menu { flex-basis: 100%; display: none; }
.menu.ouvert { display: block; }
.menu ul { list-style: none; margin: 0; padding: .5rem 0; display: flex; flex-direction: column; gap: .2rem; }
.menu a { display: block; padding: .5rem .25rem; color: var(--encre); text-decoration: none; font-weight: 600; }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--etiquette-fonce); text-decoration-thickness: 3px; }
.menu .btn-nav { margin-top: .4rem; text-align: center; }

/* Menu en ligne à partir de 70rem (1120 px) : avec sept liens et le bouton, il ne tient plus à côté du logo en dessous.
   Entre 70rem et 77rem il est resserré ; mesuré à 1000, 1100 et 1280 px après l'ajout de « Donner un avis ». */
@media (min-width: 70rem) {
  .menu-bouton { display: none; }
  .menu { display: block; flex-basis: auto; }
  .menu ul { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: .7rem; padding: 0; }
  .menu a { white-space: nowrap; font-size: .95rem; }
  .menu .btn-nav { margin: 0; font-size: .9rem; padding: .4rem .7rem; }
}
@media (min-width: 77rem) {
  .menu ul { gap: 1rem; }
  .menu a { font-size: 1rem; }
  .menu .btn-nav { font-size: .95rem; padding: .45rem .9rem; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; background: var(--etiquette); color: #172033; border: 2px solid #172033;
  font: 700 1rem/1.2 var(--texte); padding: .65rem 1.1rem; border-radius: var(--rayon);
  text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 #172033;
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #172033; text-decoration: none; }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
@media (prefers-color-scheme: dark) { .btn { border-color: #ffd23f; box-shadow: 3px 3px 0 #000; } }
.btn-nav { padding: .45rem .9rem; font-size: .95rem; }
.lien-fiche { font-weight: 600; }

/* ---------- Mise en page ---------- */
main { display: block; }
.ariane { max-width: 74rem; margin: 0 auto; padding: 1rem 1rem 0; font-size: .9rem; color: var(--discret); }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.ariane li + li::before { content: "/"; margin-right: .3rem; color: var(--trait); }
.ariane a { color: var(--discret); }

.article, .hub { max-width: 74rem; margin: 0 auto; padding: 1.5rem 1rem 2rem; }
.article-tete { max-width: 50rem; margin-bottom: 2rem; }
.rubrique { margin: 0 0 .5rem; font-weight: 600; font-size: .95rem; }
.rubrique a { color: var(--discret); }
.chapo { font-size: 1.2rem; line-height: 1.55; color: var(--encre-2); max-width: var(--mesure); }
.signature { font-size: .9rem; color: var(--discret); }
.essai { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; margin: 1.2rem 0; }

.prose { max-width: var(--mesure); }
.prose > p, .prose > h2, .prose > h3 { max-width: var(--mesure); }
.prose .table-wrap, .prose .cta-sim { max-width: 62rem; width: min(62rem, calc(100vw - 2rem)); }
.prose h2 { padding-top: .6rem; border-top: 2px solid var(--encre); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 .6rem; background: var(--papier); border: 2px solid var(--encre); border-radius: var(--rayon); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: .8rem 1rem; font-weight: 700; font-family: var(--titre); font-size: 1.05rem; border-bottom: 2px solid var(--encre); }
th, td { text-align: left; padding: .6rem 1rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
thead th { font-size: .85rem; color: var(--discret); font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
table.tarifs td:nth-child(2), table.tarifs td:nth-child(3) { white-space: nowrap; }
table.duel td { white-space: nowrap; text-align: right; }
table.duel thead th:not(:first-child) { text-align: right; }
table.duel tbody tr:last-child { background: color-mix(in srgb, var(--etiquette) 22%, transparent); }
.ecart { font-weight: 600; margin: 0 0 1.5rem; }
.hypotheses { font-size: .92rem; color: var(--encre-2); }

.verif { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--discret); margin: .6rem 0 1.4rem; }
.verif-pastille { flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: var(--vert); }

/* ---------- Accueil ---------- */
.hero { background: var(--encre); color: #fff; }
@media (prefers-color-scheme: dark) { .hero { background: #0a1120; } }
.hero-texte { max-width: 74rem; margin: 0 auto; padding: 2.5rem 1rem 2rem; }
.hero h1 { max-width: 17ch; color: #fff; }
.hero .chapo { color: #c9d2e3; }
.hero .verif { color: #c9d2e3; }

.simulateur { max-width: 74rem; margin: 0 auto; padding: 0 1rem 2rem; }
.simulateur > h2 { margin: 0; padding: 1.6rem 0 1rem; }
.sim-grille { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .sim-grille { grid-template-columns: 22rem 1fr; align-items: start; } .sim-form { position: sticky; top: 1rem; } }

.sim-form, .formulaire { background: var(--papier); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 1.2rem; }
.champ { margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.champ > label, legend { display: block; font-weight: 600; margin-bottom: .35rem; }
.champ-duo { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 30rem) { .champ-duo { grid-template-columns: 1fr 1fr; } }
input[type=number], input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: 1rem var(--texte); color: var(--encre); background: var(--fond);
  border: 2px solid var(--trait); border-radius: var(--rayon); padding: .55rem .7rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--lien); outline: none; }
input[type=range] { width: 100%; accent-color: var(--encre); margin-top: .6rem; }
@media (prefers-color-scheme: dark) { input[type=range] { accent-color: var(--etiquette); } }
.interrupteur { display: flex; gap: .6rem; align-items: flex-start; }
.interrupteur input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--encre); }
.interrupteur label { font-weight: 500; }
.choix { display: flex; border: 2px solid var(--encre); border-radius: var(--rayon); overflow: hidden; }
.choix { position: relative; }
.choix input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.choix label { flex: 1; text-align: center; padding: .5rem .2rem; cursor: pointer; font-weight: 600; font-size: .95rem; }
.choix label + input + label { border-left: 2px solid var(--encre); }
.choix input:checked + label { background: var(--encre); color: var(--papier); }
.choix input:focus-visible + label { outline: 3px solid var(--lien); outline-offset: -3px; }
.sim-aide { font-size: .85rem; color: var(--discret); margin: 0; }

.sim-synthese { font-weight: 600; }
.sim-note { background: var(--papier); border-left: 4px solid var(--lien); padding: .7rem 1rem; }
.sim-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.sim-ligne { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: .9rem 1rem; }
.sim-premier { border: 2px solid var(--encre); }
.sim-tete { display: flex; align-items: center; gap: .8rem; }
.sim-rang { font-family: var(--titre); font-weight: 800; font-size: 1.4rem; width: 1.6rem; color: var(--discret); }
.sim-nom { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.sim-nom strong { font-family: var(--titre); font-size: 1.2rem; }
.sim-nom span { font-size: .88rem; color: var(--discret); }

/* L'élément signature : l'étiquette de prix */
.etiquette {
  position: relative; display: inline-block; background: var(--etiquette); color: #172033;
  font: 800 1.35rem/1 var(--titre); font-variant-numeric: tabular-nums; white-space: nowrap;
  padding: .45rem .8rem .45rem 1.5rem; border: 2px solid #172033;
  clip-path: polygon(.9rem 0, 100% 0, 100% 100%, .9rem 100%, 0 50%);
  border-radius: 0 var(--rayon) var(--rayon) 0;
}
.etiquette::before { content: ""; position: absolute; left: .75rem; top: 50%; width: .4rem; height: .4rem; margin-top: -.2rem; border-radius: 50%; background: var(--papier); box-shadow: 0 0 0 2px #172033; }
.sim-premier .etiquette { font-size: 1.6rem; }
.sim-barre { height: 4px; background: var(--fond); margin: .7rem 0 .4rem; border-radius: 2px; }
.sim-barre span { display: block; height: 100%; background: var(--encre-2); border-radius: 2px; transition: width .25s ease; }
.sim-premier .sim-barre span { background: var(--etiquette-fonce); }
.sim-ligne details summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--lien); padding: .2rem 0; }
.sim-detail { margin: .5rem 0; font-size: .9rem; }
.sim-detail td { padding: .35rem .3rem; }
.sim-detail td:last-child { text-align: right; white-space: nowrap; }
.sim-total td { font-weight: 700; border-top: 2px solid var(--encre); }
.sim-alt { font-size: .88rem; color: var(--encre-2); margin: .3rem 0; }
.sim-creation { font-size: .9rem; font-weight: 600; margin: .5rem 0; }
.sim-actions { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin: .7rem 0 0; }
.sim-actions .btn { padding: .45rem .8rem; font-size: .92rem; }
@media (max-width: 30rem) { .sim-tete { flex-wrap: wrap; } .etiquette { margin-left: 2.4rem; } }
@media (prefers-reduced-motion: reduce) { .sim-barre span { transition: none; } .btn:hover { transform: none; } }

.bande { max-width: 74rem; margin: 0 auto; padding: 1rem 1rem 1.5rem; }
.bande > h2 { padding-top: .8rem; border-top: 2px solid var(--encre); }
.colonnes { display: grid; gap: 0 2rem; }
@media (min-width: 52rem) { .colonnes { grid-template-columns: repeat(3, 1fr); } }
.suite { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; font-weight: 600; }
table.synthese td:nth-child(2) { white-space: nowrap; }

.grille-profils, .grille-guides, .lies-grille { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.profil, .guide, .carte-lien { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; background: var(--papier); border: 1px solid var(--trait); border-left: 4px solid var(--encre); border-radius: var(--rayon); color: var(--encre); text-decoration: none; line-height: 1.4; }
.profil:hover, .guide:hover, .carte-lien:hover { border-left-color: var(--etiquette-fonce); }
.profil strong, .guide strong { font-family: var(--titre); font-size: 1.1rem; }
.profil span, .guide span { font-size: .92rem; color: var(--encre-2); }
.guide { border-left-color: var(--lien); }

.faq-item { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); margin: 0 0 .6rem; max-width: 52rem; }
.faq-item summary { cursor: pointer; padding: .9rem 1rem; font-weight: 700; }
.faq-item p { padding: 0 1rem 1rem; margin: 0; max-width: var(--mesure); }

/* ---------- Articles ---------- */
.cta-sim { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; background: var(--papier); border: 2px dashed var(--encre); border-radius: var(--rayon); padding: 1rem 1.2rem; margin: 2rem 0; }
.cta-sim p { margin: 0; flex: 1 1 20rem; }
.lies { max-width: 74rem; margin: 0 auto; padding: 0 1rem 2rem; }
.lies h2 { padding-top: .8rem; border-top: 2px solid var(--encre); }
.carte-type { font-size: .82rem; color: var(--discret); font-weight: 600; }
.carte-lien { font-weight: 700; }
.carte-sim { border-left-color: var(--etiquette-fonce); }

.hub-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.hub-liste a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.1rem; background: var(--papier); border: 1px solid var(--trait); border-top: 4px solid var(--encre); border-radius: var(--rayon); color: var(--encre); text-decoration: none; }
.hub-liste a:hover { border-top-color: var(--etiquette-fonce); }
.hub-liste strong { font-family: var(--titre); font-size: 1.2rem; }
.hub-liste span { color: var(--encre-2); font-size: .95rem; }

.partenaires { max-width: 74rem; margin: 0 auto 2rem; padding: 0 1rem; }
.partenaires p { font-size: .88rem; color: var(--encre-2); background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: .7rem 1rem; margin: 0; max-width: 52rem; }

.formulaire { max-width: 46rem; margin-top: 1.5rem; }
.facultatif { font-weight: 400; color: var(--discret); }
.piege { position: absolute; left: -9999px; }
.erreur { max-width: 74rem; margin: 0 auto; padding: 3rem 1rem; }

/* ---------- Pied ---------- */
.pied { background: var(--encre); color: #c9d2e3; margin-top: 2rem; }
@media (prefers-color-scheme: dark) { .pied { background: #0a1120; } }
.pied-in { max-width: 74rem; margin: 0 auto; padding: 2rem 1rem 1rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.pied .marque { color: #fff; margin-bottom: .8rem; }
.pied .marque .logo-svg { --papier: #172033; --encre: #ffd23f; }
.pied p { font-size: .92rem; }
.pied .verif { color: #c9d2e3; }
.pied-titre { font-family: var(--titre); font-weight: 700; color: #fff; margin-bottom: .4rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin: .25rem 0; }
.pied a { color: #fff; }
.copy { max-width: 74rem; margin: 0 auto; padding: 1rem; font-size: .85rem; border-top: 1px solid #2c3850; }
caption { white-space: normal; }
table.duel td { white-space: normal; }
@media (max-width: 30rem) { th, td { padding: .5rem .6rem; } .sim-nom span { overflow-wrap: anywhere; } }

/* Tableaux en cartes sur mobile */
@media (max-width: 40rem) {
  .table-wrap { overflow-x: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap caption { display: block; width: 100%; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .table-wrap tbody tr { padding: .4rem 0 .6rem; border-bottom: 2px solid var(--encre); }
  .table-wrap tbody tr:last-child { border-bottom: 0; }
  .table-wrap th[scope="row"] { display: block; padding: .6rem .9rem .3rem; font-size: 1.05rem; text-align: left; border: 0; }
  .table-wrap td { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .35rem .9rem; border: 0; text-align: right; white-space: normal !important; }
  .table-wrap td::before { content: attr(data-label); flex: 0 0 42%; text-align: left; font-weight: 600; font-size: .85rem; opacity: .75; }
  .table-wrap td[data-label=""]::before { display: none; }
  .table-wrap td .v { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .table-wrap td .v small { display: block; }
}

/* Accueil : hero sur deux colonnes */
.hero-in { max-width: 74rem; margin: 0 auto; padding: 0 1rem; display: grid; gap: 2rem; align-items: center; }
.hero-in .hero-texte { max-width: none; margin: 0; padding: 2.5rem 0 1rem; }
.hero h1 { max-width: 22ch; }
.hero .chapo { max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin: 1.4rem 0 .4rem; }
.lien-clair { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.hero-exemple { background: #fff; color: #172033; border: 2px solid #ffd23f; border-radius: var(--rayon); padding: 1.2rem 1.3rem; margin-bottom: 2rem; box-shadow: 6px 6px 0 #ffd23f; }
.hx-titre { margin: 0; font-family: var(--titre); font-weight: 800; font-size: 1.1rem; }
.hx-sous, .hx-note { margin: .25rem 0 0; font-size: .85rem; color: #3b4660; }
.hero-exemple ol { list-style: none; margin: 1rem 0 .6rem; padding: 0; display: grid; gap: .45rem; }
.hero-exemple li { display: grid; grid-template-columns: 7.5rem 1fr auto; align-items: center; gap: .6rem; font-size: .92rem; }
.hx-nom { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-barre { height: .55rem; background: #e6eaf2; border-radius: 3px; overflow: hidden; }
.hx-barre span { display: block; height: 100%; background: #3b4660; border-radius: 3px; }
.hero-exemple li:first-child .hx-barre span { background: #e3b100; }
.hx-prix { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
@media (min-width: 60rem) {
  .hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; }
  .hero-in .hero-texte { padding: 3.5rem 0; }
  .hero-exemple { margin: 3rem 0; }
}
/* Bouton du menu : texte toujours foncé sur fond jaune */
.menu a.btn, .menu a.btn:visited, .btn, .btn:visited { color: #172033; }

/* =====================================================================
   Annuaire des experts e-commerce (carte, listes, fiches, inscription,
   demande de devis, administration). Repris de l'annuaire
   d'organiser-mon-evenement.com et adapté à la charte du site.
   ===================================================================== */
:root { --alerte: #a3243b; --alerte-pale: #fdecef; --jaune-pale: #fff6d1; }
@media (prefers-color-scheme: dark) { :root { --alerte: #ffb3bd; --alerte-pale: #3a1f28; --jaune-pale: #2d2716; } }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.conteneur { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 1rem; }
.page-annuaire { padding-top: 1.5rem; padding-bottom: 1rem; }
.page-annuaire .article-tete { margin-bottom: 1rem; }
input[type=date], input[type=url], input[type=password], input[type=search], input:not([type]) {
  width: 100%; font: 1rem var(--texte); color: var(--encre); background: var(--fond);
  border: 2px solid var(--trait); border-radius: var(--rayon); padding: .55rem .7rem;
}
.note { font-size: .88rem; color: var(--discret); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn.btn-second, .btn.btn-second:visited { background: var(--papier); color: var(--encre); border-color: var(--encre); box-shadow: 3px 3px 0 var(--encre); }
.btn.btn-second:hover { box-shadow: 2px 2px 0 var(--encre); }
@media (prefers-color-scheme: dark) { .btn.btn-second, .btn.btn-second:visited { border-color: var(--encre); box-shadow: 3px 3px 0 #000; } }
.sim-actions .btn-expert { padding: .45rem .8rem; font-size: .92rem; }
button.btn:disabled { opacity: .6; cursor: wait; }
.ann-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 1rem 0; }

/* Grande carte en pleine largeur avec panneau flottant */
.annuaire { margin: 0 0 1.5rem; }
.carte-pleine { position: relative; border-top: 2px solid var(--encre); border-bottom: 2px solid var(--encre); }
.ann-carte { height: 640px; width: 100%; z-index: 1; background: var(--fond); }
.panneau-carte { position: absolute; z-index: 500; top: 20px; left: max(16px, calc((100vw - 74rem) / 2 + 16px)); width: 300px; background: var(--papier); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 1.1rem; box-shadow: 5px 5px 0 var(--encre); }
.panneau-carte h2 { font-size: 1.15rem; margin: 0 0 .8rem; }
.panneau-carte input[type="text"], .panneau-carte select { margin-bottom: .55rem; font-size: .93rem; padding: .45rem .6rem; }
.panneau-carte .afficher { width: 100%; font: 700 1rem/1.2 var(--texte); background: var(--etiquette); color: #172033; border: 2px solid #172033; border-radius: var(--rayon); padding: .6rem; cursor: pointer; }
.panneau-carte .reset { display: block; width: 100%; background: none; border: 0; color: var(--lien); font: inherit; font-size: .92rem; text-decoration: underline; padding: .5rem; cursor: pointer; }
.panneau-carte .tous { display: flex; gap: .5rem; align-items: flex-start; font-size: .84rem; color: var(--discret); margin: .3rem 0; line-height: 1.35; }
.panneau-carte .tous input { margin-top: .15rem; accent-color: var(--encre); }
.panneau-carte .count { font-size: .85rem; color: var(--discret); margin: .5rem 0 .4rem; text-align: center; }
.panneau-carte .note { margin: .3rem 0 0; }
.legende { font-size: .8rem; color: var(--discret); line-height: 1.8; margin: 0; }
.legende i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid #172033; }
.legende .l-a { background: #c2185b; } .legende .l-v { background: #11795b; } .legende .l-o { background: #ffd23f; }
.fonds { position: absolute; z-index: 500; top: 20px; right: max(16px, calc((100vw - 74rem) / 2 + 16px)); display: flex; background: var(--papier); border: 2px solid var(--encre); border-radius: var(--rayon); overflow: hidden; }
.fonds button { font: inherit; font-size: .9rem; border: 0; background: var(--papier); color: var(--encre); padding: .5rem 1rem; cursor: pointer; }
.fonds button.on { font-weight: 700; background: var(--etiquette); color: #172033; }
.pin span { display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); margin: 2px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.pin-ok span { background: #11795b; } .pin-ad span { background: #c2185b; width: 26px; height: 26px; margin: 0; }
.clu span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; color: #172033; font-weight: 700; font-size: .8rem; border: 3px solid rgba(255, 255, 255, .85); }
.clu-o span { background: #ffd23f; } .clu-v span { background: #11795b; color: #fff; } .clu-a span { background: #c2185b; color: #fff; }
.leaflet-popup-content { font: 14px/1.5 var(--texte); color: #172033; }
.leaflet-popup-content a { color: #1f4fd1; }
.leaflet-container { font-family: var(--texte); }
.ann-tete { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; flex-wrap: wrap; padding-top: .6rem; }
.ann-tete h2 { margin: 1.2rem 0 .4rem; }
.ann-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: .8rem 0; }
.vide { color: var(--discret); grid-column: 1 / -1; }
.pro { display: flex; flex-direction: column; background: var(--papier); border: 1px solid var(--trait); border-top: 4px solid var(--encre); border-radius: var(--rayon); overflow: hidden; color: var(--encre); text-decoration: none; }
.pro:hover { border-top-color: var(--etiquette-fonce); }
.pro-ad { border-color: #c2185b; box-shadow: 0 0 0 1px #c2185b inset; }
.pro-b { padding: .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.pro-b strong { font-family: var(--titre); font-size: 1.1rem; line-height: 1.3; }
.pro-l { font-size: .88rem; color: var(--discret); }
.pro-a { font-size: .92rem; line-height: 1.45; color: var(--encre-2); }
.pro-b { flex: 1; }
.pro-r { font-size: .84rem; font-weight: 600; color: var(--vert); margin-top: auto; padding-top: .2rem; }
/* La carte entière mène à la fiche (lien étiré du nom) ; le lien « N avis » reste cliquable au-dessus. */
.pro { position: relative; }
.pro-t { color: inherit; text-decoration: none; }
.pro-t::after { content: ""; position: absolute; inset: 0; }
.pro-t:focus-visible { outline: none; }
.pro:focus-within { outline: 3px solid var(--lien); outline-offset: 2px; }
/* Note des avis clients sur les cartes des listes et dans les bulles de la carte */
.nav-note { margin: 0; font-size: .88rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.nav-note .etl { font-size: 1rem; letter-spacing: 1px; background: linear-gradient(90deg, var(--etiquette-fonce) var(--p), var(--trait) var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-note a { position: relative; z-index: 1; color: var(--lien); }
.leaflet-popup-content .nav-note { margin: .25rem 0 .1rem; font-size: .82rem; }
.leaflet-popup-content .nav-note .etl { background-image: linear-gradient(90deg, #e3b100 var(--p), #d5dbe6 var(--p)); }
.badges { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; }
.badge { display: inline-block; font-weight: 700; font-size: .74rem; letter-spacing: .03em; padding: .15rem .55rem; border-radius: var(--rayon); }
.badge.ok { background: color-mix(in srgb, var(--vert) 16%, var(--papier)); color: var(--vert); }
.badge.ad { background: #c2185b; color: #fff; text-decoration: none; }
.badge.new { background: var(--etiquette); color: #172033; }
.badge.warn { background: var(--alerte-pale); color: var(--alerte); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0; }
.tag { font-size: .78rem; background: var(--fond); border: 1px solid var(--trait); color: var(--encre); padding: .1rem .55rem; border-radius: 999px; }

/* Pages de l'annuaire */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 1.4rem 0; }
.chiffres > div { background: var(--papier); border: 1px solid var(--trait); border-top: 4px solid var(--etiquette-fonce); padding: .9rem 1rem; border-radius: var(--rayon); min-width: 0; }
.chiffres b { display: block; font-family: var(--titre); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.chiffres span { font-size: .86rem; color: var(--discret); }
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .8rem; margin: 1rem 0; }
.cartes .carte-lien strong { font-family: var(--titre); font-size: 1.08rem; }
.cartes .carte-lien span { font-size: .9rem; color: var(--discret); font-weight: 400; }
.grille-deps { columns: 4 13rem; column-gap: 1.5rem; font-size: .94rem; margin: .4rem 0 1.2rem; }
.grille-deps a { display: block; padding: .15rem 0; break-inside: avoid; }
.grille-deps small { display: inline; color: var(--discret); }
.ouvertes { columns: 2 19rem; column-gap: 1.8rem; font-size: .93rem; }
.ouvertes p { margin: 0 0 .5rem; break-inside: avoid; }
.ouvertes small { color: var(--discret); }
.pastilles { display: flex; flex-wrap: wrap; gap: .4rem; }
.pastille { border: 1px solid var(--trait); background: var(--papier); border-radius: 999px; padding: .25rem .8rem; font-size: .88rem; text-decoration: none; }
.encart { background: var(--papier); border: 2px dashed var(--encre); border-radius: var(--rayon); padding: 1rem 1.2rem; margin: 2rem 0; }
.encart h2 { margin-top: 0; font-size: 1.3rem; }
.annuaire-accueil p { max-width: var(--mesure); }
.cta-expert { border-style: solid; border-color: var(--etiquette-fonce); }
.faq { max-width: 52rem; }
.message-envoi { font-weight: 600; }

/* Fiche d'un expert */
.fiche-expert { padding-top: .2rem; }
.page-serveur > h1 { margin-top: .6rem; }
.fiche-grille { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 2.5rem; align-items: start; }
.fiche-cote { position: sticky; top: 1rem; background: var(--papier); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 1.1rem; }
.fiche-cote .btn { width: 100%; text-align: center; }
.fiche-cote h2 { font-size: 1.15rem; margin: 1.2rem 0 .5rem; border: 0; padding: 0; }
.lieu { font-weight: 700; margin-top: 0; }
.coord p { margin: .35rem 0; font-size: .93rem; overflow-wrap: anywhere; }
.lbl { display: inline-block; min-width: 4.6rem; color: var(--discret); font-size: .85rem; }
dl.infos { display: grid; grid-template-columns: 13rem 1fr; gap: .4rem 1rem; margin: .6rem 0; }
dl.infos dt { font-weight: 600; color: var(--discret); font-size: .92rem; }
dl.infos dd { margin: 0; }
.video { position: relative; aspect-ratio: 16 / 9; } .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.avis, .erreur-bloc { background: var(--alerte-pale); border-left: 4px solid var(--alerte); padding: .8rem 1rem; border-radius: var(--rayon); margin: 1rem 0; color: var(--encre); }
.message-ok, .panneau { background: var(--papier); border: 1px solid var(--trait); border-left: 4px solid var(--vert); padding: .9rem 1.1rem; border-radius: var(--rayon); margin: 1rem 0; }
.contact-pro { background: var(--papier); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 1.2rem; margin: 2rem 0; }
.contact-pro h2 { margin-top: 0; }
.form-grille, .grille-form { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .form-grille, .grille-form { grid-template-columns: 1fr 1fr; } }
.form-grille .plein, .grille-form .plein { grid-column: 1 / -1; }
.consentement { display: flex; gap: .6rem; align-items: flex-start; }
.consentement input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; flex: none; accent-color: var(--encre); }
.proches p { display: flex; justify-content: space-between; gap: .8rem; border-bottom: 1px solid var(--trait); padding: .5rem 0; margin: 0; font-size: .94rem; }
.proches b { white-space: nowrap; font-weight: 600; color: var(--discret); }
.proches small { display: inline; color: var(--discret); }
@media (max-width: 899px) { .fiche-grille { grid-template-columns: 1fr; } .fiche-cote { position: static; } dl.infos { grid-template-columns: 1fr; } dl.infos dd { margin-bottom: .5rem; } }

/* Réalisations d'une fiche : liens vers les boutiques réalisées */
.realisations p { margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--trait); overflow-wrap: anywhere; }
.realisations p:last-child { border-bottom: 0; }
.realisations a { font-weight: 600; }
.realisations small { display: inline; margin-left: .3rem; }
.realisations-form { margin-top: .9rem; }
.realisations-form label small { display: inline; font-size: .85em; }

/* Formulaires : inscription en six étapes et demande de devis */
.etapes { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1.2rem 0; }
.etapes li { flex: 1 1 7rem; font-size: .84rem; padding: .5rem .6rem; border-top: 4px solid var(--trait); color: var(--discret); }
.etapes li.on { border-color: var(--etiquette-fonce); color: var(--encre); font-weight: 700; }
.etapes li.fait { border-color: var(--encre); }
.inscription, .form-devis { background: var(--papier); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 1.2rem; max-width: 52rem; }
.etape { display: none; } .etape.on { display: block; }
.etape fieldset, .bloc-devis { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
.etape legend, .bloc-devis legend, .lab { font-weight: 700; margin-bottom: .4rem; display: block; padding: 0; }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .3rem 1rem; }
.cases label { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.cases input { width: 1.1rem; height: 1.1rem; margin-top: .25rem; flex: none; accent-color: var(--encre); }
.aide { font-size: .85rem; color: var(--discret); margin: .3rem 0 0; }
.aide.ok { color: var(--vert); } .aide.ko { color: var(--alerte); }
.cases.deps { max-height: 340px; overflow: auto; border: 1px solid var(--trait); padding: .6rem; border-radius: var(--rayon); }
.nav-form { display: flex; gap: .6rem; justify-content: space-between; margin: 1.2rem 0 0; }
.mention-editeur { background: var(--jaune-pale); border-left: 4px solid var(--etiquette-fonce); padding: .8rem 1rem; border-radius: var(--rayon); max-width: 52rem; }
.routage { max-width: var(--mesure); }

/* Pages du serveur (administration, modération) */
.admin { padding: 1.5rem 0; }
.admin table { font-size: .9rem; }
.admin td, .admin th { vertical-align: top; }
.tablebox { overflow-x: auto; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); }
.top-admin { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 1.1rem 0; }
.kpis div { background: var(--papier); border: 1px solid var(--trait); padding: .8rem; border-radius: var(--rayon); }
.kpis b { display: block; font-size: 1.4rem; font-family: var(--titre); }
.kpis span { font-size: .84rem; color: var(--discret); }
.mini { font: inherit; font-size: .82rem; padding: .3rem .7rem; border-radius: var(--rayon); border: 1px solid var(--trait); background: var(--papier); color: var(--encre); cursor: pointer; text-decoration: none; display: inline-block; margin: 2px 4px 2px 0; }
.mini.dark { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.mini.red { color: var(--alerte); }
.st { font-size: .74rem; font-weight: 600; border-radius: 999px; padding: .1rem .5rem; background: var(--fond); color: var(--discret); }
.st.ok { color: var(--vert); } .st.wait { background: var(--alerte-pale); color: var(--alerte); }
.acts details { display: inline-block; } .acts summary { list-style: none; } .acts form { display: inline; }
.admin input[type="search"] { width: auto; }
[data-etroit] { max-width: 26rem; }
.apercu { width: 100%; height: 1500px; border: 1px solid var(--trait); border-radius: var(--rayon); background: #fff; }
@media (max-width: 700px) { .kpis { grid-template-columns: 1fr 1fr; } }

@media (max-width: 899px) {
  .panneau-carte { position: relative; top: 0; left: 0; width: auto; margin: 16px; box-shadow: none; }
  .carte-pleine { display: flex; flex-direction: column-reverse; }
  .ann-carte { height: 440px; }
  .fonds { top: auto; bottom: 12px; right: auto; left: 12px; }
  .chiffres { grid-template-columns: 1fr 1fr; }
}
@media (prefers-color-scheme: dark) {
  .leaflet-container { background: #182134; }
  .panneau-carte { box-shadow: 5px 5px 0 #000; }
}
@media print { .annuaire { display: none !important; } }

/* Accueil : bandeau puis carte en tête */
.hero-annuaire .hero-in .hero-texte { padding-bottom: 1.5rem; }
.hero-chiffres .chiffres { grid-template-columns: 1fr 1fr; margin: 0 0 2rem; }
.hero-chiffres .chiffres > div { background: #fff; color: #172033; border-color: #ffd23f; }
.hero-chiffres .chiffres span, .hero-chiffres .chiffres a { color: #3b4660; }
@media (min-width: 60rem) { .hero-chiffres .chiffres { margin: 0; } }
.accueil #annuaire { margin-top: 0; }
