/* Fundi Msahazi (MMBT, 2026) : sable et terre cuite, les couleurs de l'atelier. */
:root { --fond: #f6efe4; --carte: #fffdf9; --ligne: #e3d6c4; --kaki: #b55200; --kaki-clair: #a34a00; --kaki-fonce: #8f4100; --teinte: 181,82,0; --texte: #2b211a; --doux: #6e6155; --vert: #25d366; }
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: Inter, system-ui, sans-serif; line-height: 1.55; }
a { color: var(--kaki-clair); }
main { max-width: 1000px; margin: 0 auto; padding: 0 16px 40px; }
.entete { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(246,239,228,.94); border-bottom: 1px solid var(--ligne); backdrop-filter: blur(8px); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); font-family: Inter, system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; font-size: 1.25rem; }
.marque b { color: var(--kaki-clair); font-weight: 600; }
.bouton { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; color: #fff; background: var(--kaki); border: 0; border-radius: 999px; padding: 11px 20px; transition: transform .15s, background .15s; }
.bouton:hover, .bouton:focus-visible { background: var(--kaki-fonce); transform: translateY(-2px); }
.bouton.petit { padding: 8px 14px; font-size: .88rem; }
.bouton.secondaire { background: transparent; color: var(--doux); border: 1px solid var(--ligne); }
.bouton.whatsapp { background: var(--vert); color: #04220f; width: 100%; margin-top: 6px; padding: 8px 14px; font-size: .9rem; }
.intro { text-align: center; padding: 40px 0 24px; }
h1, h2, h3 { font-family: Inter, system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; }
.intro h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 10px; line-height: 1.15; }
.intro h1 em { color: var(--kaki-clair); }
.intro p { color: var(--doux); max-width: 620px; margin: 0 auto; }
.filtres { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; padding: 18px; border: 1px solid var(--ligne); border-radius: 16px; background: var(--carte); }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; min-width: 0; }
select, input, textarea { width: 100%; min-width: 0; font: inherit; font-weight: 400; color: var(--texte); background: #fff; border: 1px solid var(--ligne); border-radius: 10px; padding: 11px 12px; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--kaki); border-color: var(--kaki); }
.compte { color: var(--doux); margin: 18px 4px; }
.liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.fiche { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--ligne); border-radius: 16px; background: var(--carte); transition: border-color .2s, transform .2s; }
.fiche:hover { border-color: var(--kaki-clair); transform: translateY(-3px); }
.fiche h2 { font-size: 1.1rem; margin: 2px 0 0; }
.fiche p { margin: 0 0 4px; color: var(--doux); font-size: .92rem; overflow-wrap: anywhere; }
.fiche .desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin: 0; }
.fiche .desc.ouverte { display: block; }
.lire { align-self: flex-start; background: none; border: 0; padding: 2px 0 6px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--kaki-clair); cursor: pointer; text-decoration: underline; }
.fiche .lieu { color: var(--texte); font-size: .85rem; }
.metier { align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--kaki-clair); background: rgba(var(--teinte),.1); border-radius: 8px; padding: 4px 9px; }
.vide { text-align: center; padding: 30px 16px; border: 1px dashed var(--ligne); border-radius: 16px; color: var(--doux); }
.carte-form { max-width: 640px; margin: 32px auto 0; padding: 26px; border: 1px solid var(--ligne); border-radius: 16px; background: var(--carte); }
.carte-form h1 { margin-top: 0; }
.carte-form > p { color: var(--doux); }
.carte-form form { display: grid; gap: 14px; }
.accord { display: flex; gap: 14px; align-items: flex-start; font-weight: 400; color: var(--texte); background: rgba(var(--teinte),.08); border: 2px solid var(--kaki); border-radius: 12px; padding: 14px; cursor: pointer; }
.accord input { flex: none; width: 28px; height: 28px; margin: 2px 0 0; accent-color: var(--kaki); cursor: pointer; }
.accord:has(input:checked) { background: #f3e2d3; }
.piege { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.msg { padding: 12px 14px; border-radius: 10px; }
.msg.ok { background: rgba(37,211,102,.14); color: #17663a; }
.msg.ko { background: rgba(176,68,58,.12); color: #9c3328; }
.choix { display: flex; gap: 10px; flex-wrap: wrap; }
footer { text-align: center; color: var(--doux); font-size: .85rem; padding: 26px 16px 34px; border-top: 1px solid var(--ligne); }
@media (max-width: 480px) { .marque span { font-size: 1.1rem; } .entete .bouton.petit { padding: 7px 11px; font-size: .8rem; } }
.btn-installer { margin-left: auto; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--kaki); background: transparent; color: var(--kaki-clair); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .15s, border-color .15s; }
.btn-installer:hover, .btn-installer:focus-visible { border-color: var(--kaki-clair); transform: translateY(-2px); }
.aide-install { max-width: 760px; width: calc(100% - 32px); margin: 10px auto 0; padding: 10px 14px; border: 1px solid var(--kaki); border-radius: 10px; background: var(--carte); color: var(--doux); font-size: .9rem; cursor: pointer; }
@media (max-width: 560px) { .entete { flex-wrap: wrap; row-gap: 8px; } .btn-installer { order: 3; width: 100%; } }
.texte h1 { font-weight: 700; margin: 0 0 6px; }
.texte h2 { font-size: 1.05rem; color: var(--kaki-clair); margin: 22px 0 6px; }
.texte p, .texte li { color: var(--doux); }
.texte .maj { font-size: .85rem; margin-top: 0; }
.recommander { margin-top: 22px; padding: 18px; text-align: center; border: 1px dashed var(--ligne); border-radius: 16px; background: var(--carte); }
.recommander p { margin: 0 0 10px; color: var(--doux); }
.recommander b { color: var(--texte); }
.recommander .bouton { width: auto; padding: 10px 20px; margin: 4px; }
.recommander .message-partage { max-width: 560px; margin: 0 auto 12px; padding: 12px 14px; text-align: left; font-size: .9rem; line-height: 1.5; color: var(--texte); background: var(--fond); border: 1px solid var(--ligne); border-radius: 12px; user-select: all; overflow-wrap: anywhere; }
/* Les fiches bougent doucement, comme sur l'eau, chacune à son rythme. Au survol, elles ondulent un peu plus. */
.fiche, .vide { animation: berce 5s ease-in-out infinite; will-change: transform; }
.fiche:nth-child(3n+2) { animation-duration: 5.8s; animation-delay: -1.7s; }
.fiche:nth-child(3n) { animation-duration: 6.4s; animation-delay: -3.2s; }
.fiche:hover, .fiche:focus-within { animation: vague 2s ease-in-out infinite; }
@keyframes berce { 0%,100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-4px) rotate(-.35deg); } 50% { transform: translateY(-1px) rotate(0); } 75% { transform: translateY(-5px) rotate(.35deg); } }
@keyframes vague { 0%,100% { transform: translateY(-6px) rotate(0); } 25% { transform: translateY(-9px) skewX(1deg) rotate(.3deg); } 50% { transform: translateY(-4px) skewX(-1deg) rotate(-.3deg); } 75% { transform: translateY(-8px) rotate(.2deg); } }
@media (prefers-reduced-motion: reduce) { .fiche, .vide, .fiche:hover { animation: none; } }
/* Mode sombre : suit le réglage du téléphone, sauf si la personne choisit elle-même avec le bouton soleil/lune. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --fond: #000000; --carte: #141414; --ligne: #2c2c2c; --kaki: #b0532a; --kaki-clair: #e08a5c; --kaki-fonce: #9e4723; --teinte: 224,138,92; --texte: #f1e7da; --doux: #b9aa98; color-scheme: dark; }
    :root:not([data-theme="light"]) .entete { background: rgba(0,0,0,.94); }
    :root:not([data-theme="light"]) select, :root:not([data-theme="light"]) input, :root:not([data-theme="light"]) textarea { background: #1a1a1a; color: var(--texte); }
    :root:not([data-theme="light"]) .bouton:hover, :root:not([data-theme="light"]) .bouton:focus-visible { background: var(--kaki-fonce); }
    :root:not([data-theme="light"]) .metier { background: rgba(var(--teinte),.14); }
    :root:not([data-theme="light"]) .accord { background: #1c1c1c; }
    :root:not([data-theme="light"]) .accord:has(input:checked) { background: #262626; }
    :root:not([data-theme="light"]) .msg.ok { color: #6fe3a0; }
    :root:not([data-theme="light"]) .msg.ko { color: #f19a8e; }
}
:root[data-theme="dark"] { --fond: #000000; --carte: #141414; --ligne: #2c2c2c; --kaki: #b0532a; --kaki-clair: #e08a5c; --kaki-fonce: #9e4723; --teinte: 224,138,92; --texte: #f1e7da; --doux: #b9aa98; color-scheme: dark; }
:root[data-theme="dark"] .entete { background: rgba(0,0,0,.94); }
:root[data-theme="dark"] select, :root[data-theme="dark"] input, :root[data-theme="dark"] textarea { background: #1a1a1a; color: var(--texte); }
:root[data-theme="dark"] .bouton:hover, :root[data-theme="dark"] .bouton:focus-visible { background: var(--kaki-fonce); }
:root[data-theme="dark"] .metier { background: rgba(var(--teinte),.14); }
:root[data-theme="dark"] .accord { background: #1c1c1c; }
:root[data-theme="dark"] .accord:has(input:checked) { background: #262626; }
:root[data-theme="dark"] .msg.ok { color: #6fe3a0; }
:root[data-theme="dark"] .msg.ko { color: #f19a8e; }
:root[data-theme="light"] { color-scheme: light; }
/* Deux façons de contacter l'artisan : WhatsApp ou un simple appel. */
.contacts { display: flex; gap: 8px; margin-top: 6px; }
.contacts .bouton { flex: 1; margin-top: 0; padding: 8px 14px; font-size: .9rem; border: 2px solid transparent; }
.bouton.appel { background: transparent; color: var(--kaki-clair); border: 2px solid var(--kaki); }
.bouton.appel:hover, .bouton.appel:focus-visible { background: var(--kaki); color: #fff; }
.reseaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.lien-perso { flex: 0 0 42px; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--carte); border: 2px solid var(--ligne); transition: transform .15s; }
.lien-perso:hover, .lien-perso:focus-visible { transform: scale(1.1); }
.lien-perso svg { width: 22px; height: 22px; }
.res-instagram { color: #fff; border: 0; background: radial-gradient(circle at 30% 110%, #fdc468 0%, #f77737 25%, #e1306c 55%, #833ab4 90%); }
.res-youtube { color: #ff0000; }
.res-facebook { color: #fff; border: 0; background: #1877f2; }
.res-tiktok { color: #fff; border: 0; background: #111; }
.res-linkedin { color: #fff; border: 0; background: #0a66c2; }
.res-x { color: #fff; border: 0; background: #111; }
.res-whatsapp { color: #fff; border: 0; background: #25d366; }
.res-googleplay { border: 0; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.res-snapchat { color: #111; border: 0; background: #fffc00; }
.res-site { color: var(--kaki-clair); }
/* Bouton soleil / lune pour choisir clair ou sombre */
.btn-theme { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--carte); color: var(--kaki-clair); cursor: pointer; padding: 0; transition: transform .15s, border-color .15s; }
.btn-theme:hover, .btn-theme:focus-visible { border-color: var(--kaki-clair); transform: rotate(-15deg); }
.btn-theme svg { width: 20px; height: 20px; }
.btn-theme .lune { display: none; }
:root[data-sombre] .btn-theme .soleil { display: none; }
:root[data-sombre] .btn-theme .lune { display: block; }
.entete-droite { display: flex; align-items: center; gap: 8px; }
:root .bouton.whatsapp:hover, :root .bouton.whatsapp:focus-visible { background: #1fbf5b; }

/* Page de gestion (gérant) */
.gestion { max-width: 760px; margin: 28px auto 0; }
.gestion h2 { margin: 26px 0 12px; }
.gfiche { margin-bottom: 14px; padding: 18px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--carte); }
.gfiche h3 { margin: 8px 0 4px; }
.gfiche p { margin: 4px 0; }
.gfiche .choix { margin-top: 12px; }
.gfiche details { margin-top: 10px; color: var(--doux); }
.gfiche details summary { cursor: pointer; }
.gfiche details .choix select { flex: 1 1 200px; width: auto; }
.vide-gestion { color: var(--doux); }
.gfiche .modif { display: grid; gap: 10px; margin-top: 10px; }
.gfiche .modif label { display: grid; gap: 4px; color: var(--texte); font-weight: 600; }
.gfiche .modif { gap: 16px; margin-top: 14px; }
.gfiche .modif label.case { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.gfiche .modif .galerie-gestion label.case { flex-direction: column; align-items: flex-start; }
.gfiche > details > summary { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--ligne); border-radius: 999px; font-weight: 600; color: var(--texte); list-style: none; }
.gfiche > details > summary::-webkit-details-marker { display: none; }
.gfiche > details[open] > summary { margin-bottom: 4px; }
.gfiche.seule > details > summary { display: none; }
.gtete { display: flex; gap: 14px; align-items: center; }
.gtete .gphoto { width: 84px; height: 84px; flex: 0 0 84px; object-fit: contain; border-radius: 14px; border: 1px solid var(--ligne); background: #fff; margin: 0; }
.gtitre { min-width: 0; }
.gtitre h3 { margin: 6px 0 2px; font-size: 1.2rem; line-height: 1.25; overflow-wrap: anywhere; }
.gtitre .lieu { color: var(--doux); font-size: .9rem; }
.getats { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px !important; }
.getats span { padding: 3px 10px; border-radius: 999px; font-size: .78rem; background: rgba(var(--teinte),.08); color: var(--doux); }
.getats .enligne { background: rgba(31,157,85,.14); color: #1f9d55; font-weight: 600; }
.getats .attente { background: rgba(229,72,77,.12); color: #e5484d; font-weight: 600; }
.getats .signale { background: rgba(229,72,77,.12); color: #e5484d; }
.gdesc { margin: 10px 0 !important; line-height: 1.5; }
.gcoords { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: rgba(var(--teinte),.04); font-size: .92rem; }
.gcoords dt { color: var(--doux); }
.gcoords dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.stats-tuiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.stats-tuiles div { display: grid; justify-items: center; padding: 10px 4px; border: 1px solid var(--ligne); border-radius: 12px; text-align: center; }
.stats-tuiles b { font-size: 1.3rem; color: var(--kaki-clair); }
.stats-tuiles span { font-size: .78rem; color: var(--texte); }
.stats-tuiles small { font-size: .68rem; color: var(--doux); }
.stats-note { font-size: .75rem; color: var(--doux); text-align: center; }
.photo-actuelle { display: flex; align-items: center; gap: 12px; color: var(--doux); font-size: .88rem; }
.photo-actuelle img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; border: 1px solid var(--ligne); background: #fff; }
.bloc-gerant { border-style: dashed; }
.barre-enregistrer { position: sticky; bottom: 0; z-index: 5; margin: 0 -18px -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--carte); border-top: 1px solid var(--ligne); border-radius: 0 0 14px 14px; }
.barre-enregistrer .bouton { width: 100%; justify-content: center; }
@media (max-width: 640px) {
    .stats-tuiles { grid-template-columns: repeat(3, 1fr); }
    .gfiche { padding: 14px; }
    .barre-enregistrer { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
}

/* Recherche repliée : un bouton l'ouvre */

/* Téléphone : deux fiches côte à côte, plus compactes */
@media (max-width: 640px) {
    .liste { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
    .fiche { padding: 12px 11px; gap: 3px; }
    .fiche .metier { font-size: .62rem; padding: 3px 7px; letter-spacing: .03em; }
    .fiche h2 { font-size: .98rem; }
    .fiche p, .fiche .lieu { font-size: .8rem; }
    .fiche .lire { font-size: .8rem; }
    .contacts { flex-direction: column; gap: 7px; }
    .contacts .bouton { padding: 9px 8px; font-size: .88rem; width: 100%; }
    .reseaux { gap: 8px; flex-wrap: wrap; }
    .lien-perso { flex-basis: 34px; width: 34px; height: 34px; }
    .lien-perso svg { width: 18px; height: 18px; }
    .recommander, .vide { grid-column: 1 / -1; }
}

/* Photo ou logo d'une fiche */
.fiche .photo { display: block; margin: -14px -16px 8px; border-radius: 16px 16px 0 0; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ligne); }
.fiche .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Cadrage « photo entière » : toute la photo, sur un fond flou fait de la même photo. */
.fiche .photo.entiere { position: relative; }
.fiche .photo.entiere::before { content: ""; position: absolute; inset: -24px; background: var(--fond-photo) center / cover; filter: blur(18px) brightness(.85); }
.fiche .photo.entiere img { position: relative; object-fit: contain; }
/* Cadrage « portrait » : cadre plus haut, collé en haut de la photo, pour garder la tête et les épaules. */
.fiche .photo.portrait { aspect-ratio: 4 / 5; }
.fiche h2 a.nom-lien { color: var(--kaki-clair); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(var(--teinte),.35); text-underline-offset: 4px; }
.fiche h2 a.nom-lien:hover, .fiche h2 a.nom-lien:focus-visible { text-decoration-color: currentColor; }
.nom-lien .fleche { display: inline-block; font-family: Inter, system-ui, sans-serif; font-weight: 700; transition: transform .15s; }
.nom-lien:hover .fleche { transform: translateX(3px); }
.voir-fiche { align-self: center; margin-top: 10px; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--kaki-clair); background: rgba(var(--teinte),.1); }
.voir-fiche:hover, .voir-fiche:focus-visible { background: rgba(var(--teinte),.18); }
@media (max-width: 640px) { .voir-fiche { font-size: .8rem; padding: 6px 10px; white-space: nowrap; } .voir-fiche .long { display: none; } }
.gphoto { display: block; max-width: 220px; max-height: 160px; border-radius: 10px; object-fit: cover; margin-bottom: 6px; }
.case { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.case input { width: 20px; height: 20px; accent-color: var(--kaki); }
input[type=file] { padding: 9px; }

/* Page d'une fiche, à partager */
.retour { margin: 20px 4px 10px; }
.retour a { font-weight: 600; text-decoration: none; }
.une-fiche { max-width: 520px; margin: 0 auto; }
.fiche.seule { padding: 20px 22px; }
.fiche.seule .photo { margin: -20px -22px 12px; aspect-ratio: auto; max-height: 420px; }
.fiche.seule .photo img { height: auto; max-height: 420px; object-fit: contain; background: var(--carte); }
.fiche.seule h2 { font-size: 1.5rem; }
.fiche.seule p, .fiche.seule .lieu { font-size: 1rem; }
.fiche.seule .contacts { flex-direction: row; }
.partage-fiche { max-width: 520px; margin-left: auto; margin-right: auto; }

/* Gestion : compteurs et bouton pour prévenir */
.stats { font-size: .9rem; color: var(--doux); background: var(--fond); border-radius: 10px; padding: 8px 12px; }
.stats b { color: var(--texte); }
.stats span { font-size: .82rem; }
.bouton.prevenir { width: auto; margin-top: 0; }
@media (max-width: 640px) { .fiche .photo { margin: -12px -11px 6px; } .fiche.seule .photo { margin: -20px -22px 12px; } }

/* Accueil : toutes les cartes ont la même taille ; le texte complet est sur la page de la fiche. */
/* Carte sans photo : taille normale. Carte avec photo : grande forme, à la hauteur des autres cartes à photo de sa ligne. */
.liste { align-items: start; }
.liste .fiche { min-width: 0; }
/* Mosaïque : le script de l'accueil range chaque carte dans le premier trou libre (pas de vide sous les petites cartes). */
.liste.mosaique { grid-auto-rows: 1px; row-gap: 0; }
.liste.mosaique .fiche { margin-bottom: 12px; }
@media (max-width: 640px) { .liste.mosaique .fiche { margin-bottom: 10px; } }
.liste .fiche .metier { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liste .fiche h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; line-height: 1.25; }
.liste .fiche .lieu { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liste .fiche .desc { -webkit-line-clamp: 2; line-clamp: 2; max-height: calc(2 * 1.55em); overflow: hidden; }
.liste .fiche .contacts { margin-top: auto; padding-top: 6px; }
.liste .fiche .reseaux { min-height: 42px; }

.fiche.seule .desc { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; white-space: pre-line; }
@media (max-width: 640px) {
    .liste .fiche h2 { -webkit-line-clamp: 2; line-clamp: 2; }
    .liste .fiche .reseaux { min-height: 34px; }
}

/* Toute la carte ouvre la fiche */
.liste .fiche { cursor: pointer; }
.contact-fiche, .gerant { max-width: 520px; margin: 14px auto 0; justify-content: center; }
.contact-fiche .bouton, .gerant .bouton { width: auto; padding: 10px 22px; }
/* Le bouton « Rechercher » glisse doucement de gauche à droite (comme le bouton WhatsApp de mmbt.fr) ; il s'arrête au toucher ou une fois ouvert. */
@keyframes glisse { 0%, 100% { transform: translateX(-22px) rotate(-2deg); } 50% { transform: translateX(22px) rotate(2deg); } }
/* Le haut de page bouge doucement lui aussi (logo, mode clair/sombre, Installer, Inscrire), chacun à son rythme. */
@keyframes respire { 0%, 100% { translate: 0 0; rotate: 0deg; } 25% { translate: 0 -3px; rotate: -.6deg; } 50% { translate: 0 -1px; rotate: 0deg; } 75% { translate: 0 -4px; rotate: .6deg; } }
@media (prefers-reduced-motion: no-preference) {
    .entete .marque { animation: respire 5s ease-in-out infinite; }
    .entete .btn-theme { animation: respire 5.6s ease-in-out -1.4s infinite; }
    .entete .bouton.petit { animation: respire 5.3s ease-in-out -2.7s infinite; }
    .btn-installer { animation: respire 5.8s ease-in-out -.8s infinite; }
}
.code-gestion { display: grid; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.code-gestion label { display: grid; gap: 6px; color: var(--texte); font-weight: 600; }
.lieu .carte-lien { color: inherit; text-decoration: underline; text-decoration-color: var(--kaki-clair); text-underline-offset: 3px; }
.lieu .carte-lien svg { vertical-align: -1px; margin-right: 3px; color: var(--kaki-clair); }
.modif-pro { display: grid; gap: 12px; margin-top: 14px; }
.modif-pro label { display: grid; gap: 4px; color: var(--texte); font-weight: 600; }
.modif-pro label.case { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.msg:not(.ok):not(.ko) { background: rgba(var(--teinte),.1); }

/* Pastilles de filtre rapide sous « Rechercher » : une ligne qui défile au doigt sur téléphone. */
.pastilles { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 6px 0 2px; scrollbar-width: none; justify-content: center; flex-wrap: wrap; }
.pastilles::-webkit-scrollbar { display: none; }
.pastille { flex: none; text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--kaki-clair); border: 1px solid var(--ligne); background: var(--carte); border-radius: 999px; padding: 6px 14px; transition: background .15s, color .15s; }
.pastille:hover, .pastille:focus-visible { border-color: var(--kaki); }
.pastille.active { background: var(--kaki); border-color: var(--kaki); color: #fff; }
@media (max-width: 640px) { .pastilles { flex-wrap: nowrap; justify-content: flex-start; } }
#resultats { scroll-margin-top: 130px; }   /* après une pastille, la liste arrive juste sous l'en-tête */
.hors-ligne { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--carte); border: 1px solid var(--kaki); color: var(--texte); font-size: .92rem; text-align: center; }
/* Coordonnées en plus sur la fiche : adresse, téléphone fixe, e-mail. */
.coordonnees { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--ligne); display: grid; gap: 8px; }
.coordonnees li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: baseline; }
.coordonnees span { color: var(--doux); font-size: .85rem; }
.coordonnees a { color: var(--texte); overflow-wrap: anywhere; }
.coordonnees small { color: var(--doux); font-size: .8rem; }

/* Couleurs au choix (mémorisées sur le téléphone). Terre cuite par défaut. */
:root[data-couleur="vert"] { --kaki: #2e7d4f; --kaki-clair: #256b43; --kaki-fonce: #1e5736; --teinte: 46,125,79; }
:root[data-couleur="violet"] { --kaki: #6b3fa0; --kaki-clair: #5f3590; --kaki-fonce: #4f2b77; --teinte: 107,63,160; }
:root[data-couleur="nuit"] { --kaki: #1f3a63; --kaki-clair: #1f3a63; --kaki-fonce: #162b4a; --teinte: 31,58,99; }
:root[data-couleur="ardoise"] { --kaki: #3d4650; --kaki-clair: #3d4650; --kaki-fonce: #2c333b; --teinte: 61,70,80; }
:root[data-couleur="rose"] { --kaki: #ab4e68; --kaki-clair: #9a4560; --kaki-fonce: #8a3c55; --teinte: 171,78,104; }
:root[data-couleur="canard"] { --kaki: #0b5351; --kaki-clair: #0b5351; --kaki-fonce: #083e3d; --teinte: 11,83,81; }
:root[data-couleur="vert"][data-sombre] { --kaki: #2e7d4f; --kaki-clair: #6fd19a; --kaki-fonce: #3ba066; --teinte: 111,209,154; }
:root[data-couleur="nuit"][data-sombre] { --kaki: #2d5a96; --kaki-clair: #8db4ea; --kaki-fonce: #3a6bb0; --teinte: 141,180,234; }
:root[data-couleur="ardoise"][data-sombre] { --kaki: #56616d; --kaki-clair: #b8c2cc; --kaki-fonce: #67737f; --teinte: 184,194,204; }
:root[data-couleur="violet"][data-sombre] { --kaki: #8e52b8; --kaki-clair: #c39be0; --kaki-fonce: #a066c9; --teinte: 195,155,224; }
:root[data-couleur="rose"][data-sombre] { --kaki: #ab4e68; --kaki-clair: #e08aa2; --kaki-fonce: #c96a84; --teinte: 224,138,162; }
:root[data-couleur="canard"][data-sombre] { --kaki: #137a77; --kaki-clair: #5cc4c0; --kaki-fonce: #1a8f8b; --teinte: 92,196,192; }
.btn-couleurs { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--carte); cursor: pointer; padding: 0; transition: transform .15s, border-color .15s; }
.btn-couleurs:hover, .btn-couleurs:focus-visible { border-color: var(--kaki-clair); transform: scale(1.08); }
.btn-couleurs span { width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(#b55200 0 51deg, #ab4e68 0 103deg, #6b3fa0 0 154deg, #1f3a63 0 206deg, #0b5351 0 257deg, #2e7d4f 0 309deg, #3d4650 0); }
.choix-couleurs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; padding: 10px 16px; background: var(--carte); border-bottom: 1px solid var(--ligne); }
.choix-couleurs[hidden] { display: none; }
.choix-couleurs p { margin: 0; width: 100%; text-align: center; font-size: .85rem; color: var(--doux); }
.pastille-couleur { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--carte); box-shadow: 0 0 0 2px var(--ligne); cursor: pointer; padding: 0; transition: transform .15s; }
.pastille-couleur:hover, .pastille-couleur:focus-visible { transform: scale(1.12); }
.pastille-couleur[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--texte); transform: scale(1.15); }
@media (max-width: 400px) { .entete-droite { gap: 6px; } .btn-couleurs, .btn-theme { width: 34px; height: 34px; flex-basis: 34px; } }
@media (max-width: 480px) { .choix-couleurs { gap: 6px; } .pastille-couleur { width: min(34px, calc((100vw - 80px) / 7)); height: min(34px, calc((100vw - 80px) / 7)); } }

/* Recherche visible tout de suite (une barre, puis métier et lieu à ouvrir) */
.barre-recherche { max-width: 640px; margin: 0 auto 14px; }
.champ-recherche { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 2px solid var(--kaki); border-radius: 999px; background: var(--carte); color: var(--kaki-clair); }
.champ-recherche input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--texte); padding: 8px 0; outline: none; }
.champ-recherche input:focus { outline: none; }
.champ-recherche:focus-within { box-shadow: 0 0 0 3px rgba(var(--teinte),.25); }
.champ-recherche .bouton { padding: 9px 18px; flex: none; }
.plus-choix > summary { list-style: none; cursor: pointer; text-align: center; margin: 10px 0 0; font-weight: 600; font-size: .92rem; color: var(--kaki-clair); text-decoration: underline; text-underline-offset: 3px; }
.plus-choix > summary::-webkit-details-marker { display: none; }
.plus-choix[open] > summary { margin-bottom: 10px; }
@media (max-width: 400px) { .champ-recherche .bouton { padding: 9px 13px; } .champ-recherche input { font-size: .95rem; } }

/* Plusieurs photos sur la fiche : on les fait défiler */
.galerie { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 2px 0 6px; padding-bottom: 4px; scrollbar-width: thin; }
.galerie a { flex: 0 0 auto; scroll-snap-align: start; }
.galerie img { display: block; height: 150px; width: auto; max-width: 260px; object-fit: cover; border-radius: 12px; border: 1px solid var(--ligne); }
.galerie-gestion { display: flex; flex-wrap: wrap; gap: 10px; }
.galerie-gestion .case { flex-direction: column; align-items: flex-start; gap: 4px; font-size: .85rem; }
.galerie-gestion img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ligne); }

/* Horaires et « Ouvert maintenant » */
.ouvert, .fiche p.ouvert { align-self: flex-start; margin: 2px 0; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #fff; line-height: 1.4; }
.ouvert:empty { display: none; }
.ouvert.oui { background: #1a7f45; }
.ouvert.non { background: #c62f35; }
.fiche.seule .ouvert { font-size: .9rem; padding: 4px 12px; }
.horaires { list-style: none; margin: 6px 0 2px; padding: 10px 14px; border: 1px solid var(--ligne); border-radius: 12px; font-size: .9rem; }
.horaires li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.horaires li span { color: var(--doux); }
.horaires li.aujourdhui { font-weight: 700; }
.horaires li.aujourdhui span { color: var(--texte); }
.horaires-champ { border: 1px solid var(--ligne); border-radius: 12px; padding: 10px 14px; }
.horaires-champ > summary { cursor: pointer; font-weight: 600; }
.horaires-champ .aide { margin: 8px 0; font-size: .85rem; color: var(--doux); }
.horaires-champ .jour { margin: 8px 0; padding: 8px 0; border-top: 1px solid var(--ligne); font-size: .9rem; }
.horaires-champ .jour-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.horaires-champ .jour-tete label.case { display: inline-flex; flex-direction: row; align-items: center; font-weight: 400; margin: 0; gap: 6px; }
.horaires-champ .jour-tete label.case input { margin: 0; width: 20px; height: 20px; }
.horaires-champ .creneau { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin: 4px 0; }
.horaires-champ .creneau small { color: var(--doux); font-size: .75rem; }
.horaires-champ .creneau input { min-width: 0; padding: 6px; }
.horaires-champ .jour.est-ferme .creneau { display: none; }
.horaires li b { font-weight: inherit; text-align: right; }
.horaires-champ .copier-lundi { margin-top: 8px; font-size: .85rem; padding: 7px 14px; }

/* Sous la fiche : 3 autres pros (même métier d'abord), en petites cartes calmes */
.autres-pros { max-width: 600px; margin: 22px auto 0; }
.autres-pros h2 { font-size: 1rem; margin: 0 0 10px; color: var(--doux); font-weight: 600; }
.autres-liste { display: grid; gap: 10px; }
.mini-pro { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texte); background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: 8px; transition: border-color .2s; }
.mini-pro:hover, .mini-pro:focus-visible { border-color: var(--kaki); }
.mini-pro img, .mini-lettre { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.mini-lettre { display: flex; align-items: center; justify-content: center; font-family: var(--titre, Georgia, serif); font-size: 1.8rem; font-weight: 700; color: #fff; background: var(--kaki); }
.mini-texte { min-width: 0; }
.mini-pro b { display: block; font-size: .92rem; color: var(--kaki-clair); line-height: 1.25; overflow-wrap: anywhere; }
.mini-pro small { display: block; margin-top: 2px; font-size: .8rem; color: var(--doux); line-height: 1.3; }

/* Fiche seule : photo entière sur fond flou, moins haute ; on touche pour la voir en grand */
.fiche.seule .photo.grande { position: relative; display: block; height: 340px; max-height: none; background: var(--ligne); }
.fiche.seule .photo.grande::before { content: ""; position: absolute; inset: -30px; background: var(--fond-photo) center / cover; filter: blur(22px) brightness(.9); }
.fiche.seule .photo.grande img { position: relative; width: 100%; height: 100%; max-height: none; object-fit: contain; background: none; }
@media (max-width: 640px) {
    .fiche.seule { padding: 16px 16px; }
    .fiche.seule .photo, .fiche.seule .photo.grande { margin: -16px -16px 10px; }
    .fiche.seule .photo.grande { height: 30vh; min-height: 180px; max-height: 250px; }
    .fiche.seule h2 { font-size: 1.3rem; margin: 4px 0 2px; }
    .fiche.seule .galerie img { width: 84px; height: 84px; }
    .retour { margin: 10px 0 8px; }
}
/* Sous la fiche : trois petits boutons propres au lieu de deux grands blocs */
.actions-fiche { max-width: 520px; margin: 14px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.actions-fiche .action { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 6px; background: var(--carte); color: var(--texte); border: 1px solid var(--ligne); border-radius: 14px; font: inherit; font-size: .8rem; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.actions-fiche .action:hover, .actions-fiche .action:focus-visible { border-color: var(--kaki); color: var(--kaki-clair); }
.actions-fiche svg { width: 22px; height: 22px; fill: var(--kaki); }
.astuce-partage { max-width: 520px; margin: 8px auto 0; text-align: center; font-size: .8rem; color: var(--doux); }
/* Téléphone : barre WhatsApp / Appeler collée en bas quand on descend */
.barre-contact { display: none; }
@media (max-width: 640px) {
    .barre-contact, .barre-contact[hidden] { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--carte); border-top: 1px solid var(--ligne); box-shadow: 0 -4px 16px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .25s; }
    .barre-contact[hidden] { visibility: hidden; }
    .barre-contact.visible { transform: none; }
    .barre-contact .bouton { flex: 1; margin: 0; border: 2px solid transparent; padding: 10px 8px; font-size: .92rem; text-align: center; }
    .barre-contact .bouton.appel { border-color: var(--kaki); }
    body:has(.barre-contact) main { padding-bottom: 80px; }
}

/* Visionneuse de photo (fiche) : plein écran sombre, × pour fermer, toucher la photo pour zoomer et la déplacer au doigt */
.visionneuse { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; flex-direction: column; }
.visionneuse[hidden] { display: none; }
.visionneuse .cadre { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 16px 12px 8px; -webkit-overflow-scrolling: touch; }
.visionneuse img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; cursor: zoom-in; }
.visionneuse.zoom .cadre { display: block; padding: 0; }
.visionneuse.zoom img { max-width: none; max-height: none; width: 250%; border-radius: 0; cursor: zoom-out; }
@media (min-width: 900px) { .visionneuse.zoom img { width: 160%; } }
.visionneuse .fermer { position: relative; z-index: 2; align-self: center; margin: 0 0 calc(14px + env(safe-area-inset-bottom)); min-width: 160px; padding: 12px 28px; border-radius: 999px; border: 0; background: rgba(255,255,255,.95); color: #111; font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.visionneuse .aide { margin: 0; padding: 4px 16px 10px; text-align: center; color: rgba(255,255,255,.75); font-size: .85rem; }
.visionneuse.zoom .aide { display: none; }
html.sans-defil, html.sans-defil body { overflow: hidden; }

/* Tarif, spécialités/matières et niveaux ; demande de cours (professeurs) */
.fiche.seule .tarif { margin: 4px 0 6px; font-size: 1rem; color: var(--texte); }
.fiche.seule .tarif b { color: var(--kaki-clair); }
.etiquettes { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; padding: 0; }
.etiquettes li { padding: 4px 10px; border: 1px solid var(--ligne); border-radius: 999px; font-size: .85rem; color: var(--texte); background: var(--fond); }
.etiquettes.niveaux li { color: var(--doux); border-style: dashed; }
.titre-horaires, .fiche p.titre-horaires { margin: 14px 0 4px; font-weight: 700; font-size: .95rem; color: var(--texte); }
.demande-cours { margin: 10px 0 4px; padding: 12px 14px 14px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--fond); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.fiche .demande-cours p.titre-horaires { grid-column: 1 / -1; margin: 0; }
.demande-cours label { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; color: var(--doux); margin: 0; }
.demande-cours select { width: 100%; font: inherit; font-size: .9rem; padding: 7px 8px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--carte); color: var(--texte); }
.demande-cours .bouton { grid-column: 1 / -1; margin-top: 4px; }
@media (max-width: 380px) { .demande-cours { grid-template-columns: 1fr; } }

/* PC : l'accueil prend toute la largeur de l'écran (plus de colonnes), au lieu d'une bande au milieu. */
@media (min-width: 1100px) {
    main:has(.liste) { max-width: 1720px; padding-left: 28px; padding-right: 28px; }
    .liste { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 16px; }
    .liste.mosaique .fiche { margin-bottom: 16px; }
}

/* Certificat d'auteur MMBT : une carte « diplôme » aux couleurs de l'appli (--cert), cadre et lettres dorés. */
.certificat { --c: var(--cert, #1f4fa8); position: relative; isolation: isolate; overflow: hidden; margin: 0 0 22px; padding: 9px; border-radius: 22px; text-align: center; color: #fff;
  background: #1b2a4a; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 72%, #000) 0%, color-mix(in srgb, var(--c) 44%, #000) 100%);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.14); }
.certificat::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 12% 0%, rgba(255,255,255,.16), transparent 50%), linear-gradient(115deg, transparent 38%, rgba(255,255,255,.08) 50%, transparent 64%); }
.certificat .cert-cadre { border: 1px solid rgba(236,199,90,.7); border-radius: 15px; padding: 26px 16px 20px; }
.certificat p { margin: 0; color: inherit; line-height: 1.3; white-space: normal; }
.certificat .cert-titre { font-size: .72rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #f2cf55; margin-bottom: 14px; }
.certificat .cert-nom { font-size: clamp(1.45rem, 6vw, 2.2rem); font-weight: 800; line-height: 1.12; margin-bottom: 20px; overflow-wrap: anywhere; }
.certificat .cert-par { font-size: .74rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .88; }
.certificat .cert-mmbt { font-size: clamp(1.8rem, 7.5vw, 2.5rem); font-weight: 800; letter-spacing: .16em; color: #f2cf55; margin: 2px 0 16px; }
.certificat .cert-loi { font-size: .84rem; opacity: .86; margin-bottom: 8px; }
.certificat .cert-droits { font-size: .98rem; font-weight: 700; margin-bottom: 6px; }
.certificat .cert-ver { font-size: .78rem; opacity: .62; }
/* Fundi : le certificat prend la couleur de l'appli (terre cuite, ou celle choisie avec la palette). */
.certificat { --cert: var(--kaki); }

/* Fenêtres de Fundi (remplacent les fenêtres grises du navigateur) */
.fenetre-fond { position: fixed; inset: 0; z-index: 100; background: rgba(20, 12, 6, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fenetre { width: 100%; max-width: 420px; background: var(--carte); color: var(--texte); border: 1px solid var(--ligne); border-radius: 20px; padding: 24px 20px 18px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: fenetre .5s cubic-bezier(.22,1,.36,1); }
.fenetre h2 { font-size: 1.25rem; margin: 0 0 8px; }
.fenetre p { color: var(--doux); margin: 0; }
.fenetre-boutons { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.fenetre-boutons .bouton { width: 100%; margin: 0; }
.bouton.danger { background: #b3261e; }
@media (min-width: 520px) { .fenetre-boutons { flex-direction: row-reverse; } .fenetre-boutons .bouton { flex: 1; } }
@keyframes fenetre { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fenetre { animation: none; } }

/* ---- Navigation « douce comme de la soie » (souhait de Maabadi) ----
   Les fenêtres apparaissent et repartent en fondu ; d'une page à l'autre (accueil, fiche, inscription…),
   la page quittée s'efface en se floutant et la nouvelle arrive en douceur, dans l'autre sens au retour.
   Navigateurs récents seulement ; les autres changent de page comme avant. Rien ne bouge si le téléphone demande « moins d'animations ». */
@media (prefers-reduced-motion: no-preference) {
    .fenetre-fond { animation: soie-voile .4s ease-out; }
    .fenetre-fond.sortie { animation: soie-voile .35s ease-in reverse both; pointer-events: none; }
    .fenetre-fond.sortie .fenetre { animation: soie-boite-sortie .35s cubic-bezier(.4,0,.2,1) both; }
    @view-transition { navigation: auto; }
    ::view-transition-group(root) { animation-duration: .7s; }
    ::view-transition-old(root) { animation: soie-sortie .45s cubic-bezier(.4,0,.2,1) both; }
    ::view-transition-new(root) { animation: soie-entree .7s cubic-bezier(.22,1,.36,1) .08s both; }
    html:active-view-transition-type(retour)::view-transition-old(root) { animation-name: soie-sortie-retour; }
    html:active-view-transition-type(retour)::view-transition-new(root) { animation-name: soie-entree-retour; }
}
@keyframes soie-voile { from { opacity: 0; } }
@keyframes soie-boite-sortie { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes soie-sortie { to { opacity: 0; transform: translateY(-8px) scale(.99); filter: blur(6px); } }
@keyframes soie-entree { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }
@keyframes soie-sortie-retour { to { opacity: 0; transform: translateY(8px) scale(.99); filter: blur(6px); } }
@keyframes soie-entree-retour { from { opacity: 0; transform: translateY(-14px); filter: blur(8px); } }

/* ===== Look plus moderne (novembre 2026), comme Koli ===== */
/* Bandeau d'accueil : grand titre sur un dégradé aux couleurs de l'appli, outils dessinés à droite sur ordinateur. */
.accueil-fundi { position: relative; overflow: hidden; margin: 22px 0 18px; padding: 24px 20px 22px; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--kaki) 22%, var(--carte)) 0%, var(--carte) 72%);
  border: 1px solid color-mix(in srgb, var(--kaki) 30%, var(--ligne)); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 26px -16px rgba(0,0,0,.3); }
.accueil-fundi h1 { font-size: clamp(1.7rem, 5.4vw, 2.7rem); line-height: 1.1; margin: 0 0 10px; max-width: 18ch; }
.accueil-fundi h1 em { font-style: normal; color: var(--kaki-clair); }
.accueil-fundi .intro-texte { color: var(--doux); margin: 0; max-width: 58ch; }
.accueil-fundi .surtitre { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--kaki-clair); font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.accueil-fundi .surtitre i { flex: 0 1 34px; height: 0; border-top: 2px dashed currentColor; opacity: .5; }
.accueil-fundi .chiffres { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.accueil-fundi .chiffres span { padding: 6px 12px; border-radius: 999px; font-size: .85rem; color: var(--doux); background: color-mix(in srgb, var(--carte) 70%, transparent); border: 1px solid var(--ligne); }
.accueil-fundi .chiffres b { color: var(--texte); }
.accueil-fundi .deco { position: absolute; right: -34px; bottom: -44px; width: 190px; height: 190px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--kaki) 26%, transparent) 0%, transparent 70%); }
.accueil-fundi .deco svg { display: none; }
@media (min-width: 900px) {
  .accueil-fundi { padding: 36px 40px 32px; }
  .accueil-fundi .deco { right: 6%; top: 50%; bottom: auto; transform: translateY(-50%); width: 240px; height: 240px; display: grid; place-items: center; color: var(--kaki-clair); }
  .accueil-fundi .deco svg { display: block; opacity: .85; }
}
/* Cartes : légère ombre, comme dans Koli. */
.fiche, .carte-form, .filtres, .recommander, .gfiche { box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px -10px rgba(0,0,0,.22); }
/* Inscription : les 3 étapes en images. */
.etapes-illustrees { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 10px; }
.etapes-illustrees li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(var(--teinte),.07); border: 1px solid var(--ligne); }
.etapes-illustrees h3 { font-size: 1rem; margin: 2px 0 2px; color: var(--texte); }
.etapes-illustrees p { margin: 0; color: var(--doux); font-size: .92rem; }
.rond-etape { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--kaki-clair); background: color-mix(in srgb, var(--kaki) 16%, transparent); }
.rond-etape b { position: absolute; right: -4px; top: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; color: #fff; background: var(--kaki); border: 2px solid var(--carte); }
@media (min-width: 700px) { .etapes-illustrees { grid-template-columns: repeat(3, 1fr); } .etapes-illustrees li { flex-direction: column; } }
/* En-tête sur une seule ligne au téléphone : « S'inscrire » en court, le texte complet sur les grands écrans. */
.entete .bouton.petit .court { display: none; }
@media (max-width: 560px) { .entete .bouton.petit .court { display: inline; } .entete .bouton.petit .long { display: none; } .entete { flex-wrap: wrap; } .entete-droite { margin-left: auto; } }
@media (max-width: 360px) { .marque img { width: 34px; height: 34px; } .marque span { font-size: 1rem; } }

/* ===== Bas de page (novembre 2026) : même style que le bandeau du haut ===== */
.recommander { margin-top: 28px; padding: 24px 20px; text-align: left; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--kaki) 30%, var(--ligne)); animation: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--kaki) 18%, var(--carte)) 0%, var(--carte) 70%); display: grid; gap: 18px; }
.recommander h2 { font-size: clamp(1.35rem, 4vw, 1.8rem); margin: 12px 0 6px; color: var(--texte); }
.recommander .reco-texte p { margin: 0; color: var(--doux); max-width: 46ch; }
.rond-reco { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--kaki-clair); background: color-mix(in srgb, var(--kaki) 16%, transparent); }
.recommander .message-partage { position: relative; max-width: none; margin: 0 0 12px; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: var(--fond); border: 1px solid var(--ligne); font-size: .92rem; }
.reco-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.recommander .reco-boutons .bouton { margin: 0; width: auto; flex: 1 1 200px; padding: 11px 18px; font-size: .95rem; }
@media (min-width: 860px) { .recommander { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 32px; padding: 32px 36px; } }
/* Pied de page rangé */
.revoir-guide a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--carte); text-decoration: none; font-weight: 600; }
/* Téléphone et tablette : bandeau centré, « Comores - France - ailleurs » sur toute la largeur, petite clé bien visible en bas à droite. */
@media (max-width: 899px) {
  .accueil-fundi { text-align: center; padding-bottom: 58px; }
  .accueil-fundi h1 { margin-left: auto; margin-right: auto; }
  .accueil-fundi .intro-texte { margin: 0 auto; }
  .accueil-fundi .surtitre { justify-content: space-between; }
  .accueil-fundi .surtitre i { flex: 1 1 auto; max-width: none; }
  .accueil-fundi .chiffres { justify-content: center; }
  .accueil-fundi .deco { right: 14px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--kaki-clair);
    background: color-mix(in srgb, var(--kaki) 18%, transparent); }
  .accueil-fundi .deco svg { display: block; width: 22px; height: 22px; opacity: 1; stroke-width: 2; }
}
/* Ordinateur : texte à gauche, la clé au milieu, les métiers en icônes à droite. */
@media (min-width: 1100px) {
  .accueil-fundi { display: grid; grid-template-columns: minmax(0, 680px) 1fr; align-items: center; gap: 24px; }
  .accueil-fundi .accueil-texte { grid-column: 1; grid-row: 1; }
  .accueil-fundi .deco { position: relative; grid-column: 2; grid-row: 1; justify-self: center; right: auto; top: auto; bottom: auto; transform: none; width: 220px; height: 220px; }
  .vitrine-titre { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--kaki-clair); text-align: right; }
  .metiers-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .metiers-grille a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 14px; border-radius: 16px; background: var(--carte); border: 1px solid var(--ligne); color: var(--texte); text-decoration: none; font-weight: 600; font-size: .88rem; text-align: center; box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); transition: border-color .2s, transform .2s; }
  .metiers-grille a:hover, .metiers-grille a:focus-visible { border-color: var(--kaki); transform: translateY(-3px); }
  .metiers-grille span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--kaki-clair); background: color-mix(in srgb, var(--kaki) 16%, transparent); }
}

/* PC : badge officiel « Disponible sur Google Play » dans l'en-tête */
.badge-play { display: inline-flex; align-items: center; margin-left: auto; border-radius: 8px; transition: transform .2s; }
.badge-play img { display: block; height: 52px; width: auto; margin: -6px 0; }
.badge-play:hover { transform: translateY(-1px); }
.badge-play:focus-visible { outline: 2px solid var(--kaki); outline-offset: 2px; }

/* Fiche créée par Fundi (infos publiques) : mention discrète + lien de retrait */
.fiche-fundi { max-width: 520px; margin: 10px auto 0; padding: 10px 14px; text-align: center; font-size: .82rem; line-height: 1.5; color: var(--doux); border: 1px dashed var(--ligne); border-radius: 12px; }
.fiche-fundi a { color: var(--kaki-clair); font-weight: 600; }
.fiche-source { margin: 10px auto 0; text-align: center; font-size: .8rem; color: var(--doux); }
.fiche-source a { color: var(--kaki-clair); font-weight: 600; }
.cree-fundi { display: flex !important; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px dashed var(--kaki); border-radius: 10px; font-weight: 400; }
.cree-fundi input { width: auto !important; flex: none; margin-top: 4px; }
.retrait p { line-height: 1.6; }

/* Badge « Vérifié par Fundi » en or : accordé à la main par Maabadi dans la gestion. */
.badge-ligne { margin: 2px 0 0; line-height: 1; }
.verifie { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 6px;
    font-size: .68rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2; white-space: nowrap; text-transform: none;
    color: #3b2a05; background: linear-gradient(135deg, #f6dc8c 0%, #d4a72c 55%, #b8860b 100%); box-shadow: 0 1px 2px rgba(120,80,0,.3), inset 0 1px 0 rgba(255,255,255,.45); }
.verifie svg { flex: none; }
.fiche.seule .verifie { font-size: .78rem; padding: 4px 11px 4px 7px; }
.fiche .verifie-ligne { margin: 0; font-size: .82rem; font-weight: 600; color: #8a6508; }
:root[data-theme="dark"] .fiche .verifie-ligne { color: #e7bd4a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fiche .verifie-ligne { color: #e7bd4a; } }

/* « Trier par » à droite du nombre de fiches */
.compte-tri { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 18px 4px; }
.compte-tri .compte { margin: 0; }
.tri label { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--doux); margin: 0; }
.tri select { width: auto; margin: 0; padding: 7px 30px 7px 12px; font-size: .88rem; border-radius: 999px; }

/* Téléphone : bandeau d'accueil plus court pour voir les pros plus vite */
@media (max-width: 640px) {
  .accueil-fundi { margin: 14px 0 12px; padding: 18px 16px 16px; }
  .accueil-fundi .surtitre { margin-bottom: 8px; }
  .accueil-fundi h1 { font-size: 1.6rem; margin-bottom: 0; }
  .accueil-fundi .intro-texte, .accueil-fundi .deco { display: none; }
  .accueil-fundi .chiffres { margin-top: 12px; }
  .compte-tri { margin: 10px 4px 12px; }
}

/* Signaler un souci sur une fiche */
.signaler-lien { text-align: center; margin: 10px 0 0; font-size: .8rem; }
.signaler-lien a { color: var(--doux); }
.signaler .choix-raison { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 8px; border: 1px solid var(--ligne); border-radius: 12px; font-weight: 500; cursor: pointer; }
.signaler .choix-raison input { width: auto; margin: 0; accent-color: var(--kaki); }
.signaler .choix-raison:has(input:checked) { border-color: var(--kaki); }
.signale { color: #e5484d; }

/* « Voir plus de pros » sous la liste : la liste s'arrête net à la même ligne pour toutes les colonnes et s'efface en fondu,
   puis un grand bouton (couleur de l'appli) avec le nombre de pros qui restent. Chaque toucher déroule la suite en douceur. */
.liste.mosaique { position: relative; }
.liste.coupee { overflow: hidden; padding-top: 4px; margin-top: -4px; transition: height .6s cubic-bezier(.2,.7,.2,1);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 300px), rgba(0,0,0,.3) calc(100% - 130px), transparent calc(100% - 50px));
            mask-image: linear-gradient(to bottom, #000 calc(100% - 300px), rgba(0,0,0,.3) calc(100% - 130px), transparent calc(100% - 50px)); }
.liste .fiche[hidden] { display: none; }
.voir-plus { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: -78px 0 34px; text-align: center; transition: opacity .4s, transform .4s; }
.voir-plus.fini { opacity: 0; transform: translateY(10px); }
.plus-pros { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 260px; padding: 15px 30px; font-size: 1.05rem;
    box-shadow: 0 10px 28px -10px rgba(var(--teinte), .75), 0 0 0 6px rgba(var(--teinte), .10); }
.plus-pros svg { transition: transform .3s; }
.plus-pros:hover svg, .plus-pros:focus-visible svg { transform: translateY(3px); }
.plus-reste { margin: 0; font-size: .9rem; color: var(--doux); }
.plus-reste b { color: var(--texte); }
.plus-barre { display: block; width: 180px; height: 4px; border-radius: 4px; background: var(--ligne); overflow: hidden; }
.plus-barre i { display: block; height: 100%; border-radius: inherit; background: var(--kaki); transition: width .6s ease; }
@media (max-width: 640px) { .voir-plus { margin-top: -64px; } .plus-pros { width: min(100%, 340px); } }
@media (prefers-reduced-motion: reduce) { .liste.coupee, .plus-barre i, .voir-plus { transition: none; } }

/* Téléphone Android : le badge Google Play prend la ligne sous le titre, centré */
@media (max-width: 560px) { .badge-play { order: 3; width: 100%; justify-content: center; margin-left: 0; } .badge-play img { height: 54px; } }

/* Accueil, ordinateur : vitrine « À la une » à droite du bandeau (3 petites fenêtres de pros qui flottent et changent) */
.vitrine-une { display: none; }
@media (min-width: 1100px) {
  .accueil-fundi:has(.vitrine-une) { grid-template-columns: minmax(0, 600px) minmax(130px, 1fr) minmax(0, 500px); }
  .accueil-fundi:has(.vitrine-une) .deco { width: 180px; height: 180px; }
  .vitrine-une { display: block; grid-column: 3; grid-row: 1; justify-self: end; width: 100%; }
  .vitrine-une .vitrine-titre { margin: 0 0 12px; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--kaki-clair); text-align: right; }
  .une-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .une-pro { position: relative; display: block; text-decoration: none; color: var(--texte); background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; padding: 10px; box-shadow: 0 10px 26px -14px rgba(0,0,0,.45);
      animation: flotte calc(11s + var(--n) * 1.7s) ease-in-out infinite; animation-delay: calc(var(--n) * -2.3s); transition: opacity .6s ease, filter .6s ease, border-color .2s; }
  .une-pro:hover, .une-pro:focus-visible { border-color: var(--kaki); animation-play-state: paused; }
  .une-pro.change { opacity: 0; filter: blur(4px); }
  .une-photo { position: relative; display: block; height: 118px; border-radius: 11px; overflow: hidden; margin-bottom: 9px; background: color-mix(in srgb, var(--kaki) 10%, var(--carte)); }
  .une-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .une-photo.entiere { background: #fff; }
  .une-photo.entiere img { object-fit: contain; padding: 8px; }
  .une-pro b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; color: var(--kaki-clair); line-height: 1.25; }
  .une-pro small { display: block; margin-top: 3px; font-size: .74rem; color: var(--doux); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .une-verifie { position: absolute; top: 16px; left: 16px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: .66rem; font-weight: 700; color: #3b2a05; background: linear-gradient(135deg, #f6e27a, #d4a937 55%, #f3d66b); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
}

/* Fiche, ordinateur : d'autres pros au hasard sur les côtés, qui flottent doucement */
.pros-cotes { display: none; }
@media (min-width: 1100px) {
    .pros-cotes, .pros-cotes[hidden] { display: block; }
    .pros-cotes .cote { position: fixed; top: 150px; width: 210px; display: flex; flex-direction: column; gap: 18px; z-index: 1; transition: opacity .6s ease, transform .6s ease; }
    /* Les deux colonnes à la même hauteur, toujours à 24 px de la fiche (jamais dessus). */
    .pros-cotes .cote-gauche { left: max(16px, calc((100vw - 600px) / 2 - 234px)); }
    .pros-cotes .cote-droite { right: max(16px, calc((100vw - 600px) / 2 - 234px)); }
    /* En bas de la fiche (autres pros, pied de page) : les fenêtres s'effacent en douceur pour laisser lire. */
    .pros-cotes.efface .cote { opacity: 0; transform: translateY(-12px); pointer-events: none; }
    .flottant { display: block; text-decoration: none; color: var(--texte); background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.06); opacity: .92;
        animation: flotte-doux 9s ease-in-out infinite; transition: opacity .2s, border-color .2s; }
    .flottant:hover, .flottant:focus-visible { opacity: 1; border-color: var(--kaki); animation-play-state: paused; }
    .flottant img, .flottant .mini-lettre { display: flex; width: 100%; height: 90px; object-fit: cover; border-radius: 9px; margin-bottom: 8px; }
    .flottant img.entiere { object-fit: contain; background: #fff; padding: 6px; }
    .flottant .mini-lettre { align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 700; color: #fff; background: var(--kaki); }
    /* Hauteur fixe (nom sur 2 lignes, détail sur 2 lignes) : les fenêtres de gauche et de droite restent alignées. */
    .flottant b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.5em; font-size: .82rem; color: var(--kaki-clair); line-height: 1.25; overflow-wrap: anywhere; }
    .flottant small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.6em; margin-top: 2px; font-size: .72rem; color: var(--doux); line-height: 1.3; }
}
@media (min-width: 1100px) and (max-height: 760px) { .flottant:nth-child(n+3) { display: none; } }
@keyframes flotte-doux { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .une-pro, .flottant { animation: none; } }
@keyframes flotte { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 25% { transform: translate(8px, -10px) rotate(.8deg); } 50% { transform: translate(-6px, 6px) rotate(-.6deg); } 75% { transform: translate(5px, 12px) rotate(.4deg); } }

/* Bandeau : nombre de pros par pays (liens vers ces pros) */
.accueil-fundi .chiffres .zone-chiffre { padding: 6px 12px; border-radius: 999px; font-size: .85rem; color: var(--doux); text-decoration: none; background: color-mix(in srgb, var(--kaki) 12%, var(--carte)); border: 1px solid color-mix(in srgb, var(--kaki) 40%, var(--ligne)); transition: border-color .2s, transform .2s; }
.accueil-fundi .chiffres .zone-chiffre b { color: var(--texte); }
.accueil-fundi .chiffres .zone-chiffre:hover, .accueil-fundi .chiffres .zone-chiffre:focus-visible { border-color: var(--kaki); transform: translateY(-2px); }
.accueil-fundi .chiffres .saut { flex-basis: 100%; height: 0; }

/* Favoris : étoile en haut à droite de chaque fiche */
.fiche { position: relative; }
.etoile { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--ligne); background: color-mix(in srgb, var(--carte) 82%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--doux); transition: transform .2s, color .2s, border-color .2s; }
.etoile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s; }
.etoile:hover, .etoile:focus-visible { border-color: var(--kaki); color: var(--kaki-clair); }
.etoile.on { color: #d4a937; border-color: #d4a937; }
.etoile.on svg { fill: currentColor; }
.etoile:active { transform: scale(.88); }
.fiche.seule .etoile { top: 14px; right: 14px; width: 44px; height: 44px; }
.pastille-fav { display: inline-flex; align-items: center; gap: 6px; }
.pastille-fav svg { width: 16px; height: 16px; fill: #d4a937; }
.pastille-fav[hidden] { display: none; }
/* Petite bulle de confirmation en bas de l'écran */
.bulle-fundi { position: fixed; left: 50%; bottom: 22px; z-index: 60; max-width: min(92vw, 420px); margin: 0; padding: 10px 18px; border-radius: 999px; text-align: center;
    background: var(--texte); color: var(--fond); font-size: .9rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25);
    opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.bulle-fundi.montre { opacity: 1; transform: translate(-50%, 0); }
.fiche:not(:has(> .photo)) > .metier { max-width: calc(100% - 48px); }

/* Alertes nouveaux pros (appli) */
.pastille-alertes { display: inline-flex; align-items: center; gap: 6px; }
.pastille-alertes svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.alertes fieldset { border: 1px solid var(--ligne); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; }
.alertes legend { font-weight: 700; padding: 0 6px; }
.alertes .choix-lieux { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.alertes .choix-lieux .aide-champ { flex-basis: 100%; }
.alertes details { border-top: 1px solid var(--ligne); padding: 8px 0; }
.alertes details:first-of-type { border-top: 0; }
.alertes summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.alertes summary .nb-coches { color: var(--kaki-clair); }
.alertes details .case { margin: 8px 0 8px 6px; }
.alertes form > .bouton { margin: 4px 8px 4px 0; }
.aide-champ { margin: 4px 0 0; font-size: .82rem; color: var(--doux); }
/* Position sur la carte (formulaires) */
.champ-position { margin: 4px 0 14px; padding: 12px 14px; border: 1px dashed var(--ligne); border-radius: 12px; }
.champ-position .etiquette-pos { display: block; font-weight: 600; margin-bottom: 4px; }
.champ-position .pos-etat { margin: 0 0 10px; font-size: .88rem; color: var(--doux); }
.lien-bouton { background: none; border: 0; padding: 6px 4px; margin-left: 6px; color: var(--kaki-clair); text-decoration: underline; font: inherit; font-size: .88rem; cursor: pointer; }

/* Deuxième lieu et extrait audio ou vidéo (demandes de pros, 2026-11-13) */
.lieu2 .aussi { color: var(--doux); }
.extrait { margin-top: 6px; animation: extrait-doux .5s ease both; }
.extrait audio, .champ-extrait audio, .extrait-apercu { display: block; width: 100%; margin-top: 6px; }
.extrait video, .champ-extrait video { display: block; width: 100%; max-height: 70vh; margin-top: 6px; border-radius: 12px; background: #000; }
.champ-extrait { display: flex; flex-direction: column; gap: 4px; }
.champ-extrait .extrait-erreur { color: #b3261e; }
:root[data-theme="dark"] .champ-extrait .extrait-erreur { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .champ-extrait .extrait-erreur { color: #ff8a80; } }
@keyframes extrait-doux { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pastille-extrait { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--ligne); border-radius: 999px;
    font-size: .78rem; color: var(--kaki-clair); text-decoration: none; background: var(--fond); transition: border-color .25s, background .25s; }
.pastille-extrait:hover, .pastille-extrait:focus-visible { border-color: var(--kaki-clair); }
@media (prefers-reduced-motion: reduce) { .extrait { animation: none; } }
.ville2[hidden], .champ-extrait [hidden] { display: none; }

/* Inscription rangée en étapes, « + Ajouter », choix de fichiers et aperçu en direct (2026-11-13) */
.carte-form:has(.inscription-grille) { max-width: 1080px; }
.inscription-grille { display: grid; gap: 24px; }
.form-etapes { display: grid; gap: 18px; }
.bloc-form { display: grid; gap: 14px; margin: 0; padding: 18px 16px 18px; min-width: 0; border: 1px solid var(--ligne); border-radius: 16px; background: rgba(var(--teinte),.03); }
.bloc-form legend { display: flex; align-items: center; gap: 10px; padding: 0 8px; margin-left: -4px; font-weight: 700; font-size: 1.05rem; color: var(--texte); }
.bloc-form legend small { font-weight: 500; font-size: .75rem; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; }
.num-bloc { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--kaki); color: #fff; font-size: .9rem; }
.bloc-form .aide-champ { margin-top: -8px; }
.aide-champ.centre { text-align: center; margin-top: -4px; }
.groupe-plus { display: grid; gap: 8px; }
.groupe-plus [hidden] { display: none; }
.ajouter-plus { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px dashed var(--ligne); border-radius: 999px; background: transparent; color: var(--kaki-clair); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: border-color .25s, background .25s; }
.ajouter-plus span { font-size: 1.15rem; line-height: 1; }
.ajouter-plus:hover, .ajouter-plus:focus-visible { border-color: var(--kaki-clair); background: rgba(var(--teinte),.06); }
.apparait { animation: extrait-doux .35s ease both; }
.choix-fichier { position: relative; }
.choix-fichier > input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.zone-fichier { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border: 1.5px dashed var(--ligne); border-radius: 14px; background: var(--carte); cursor: pointer; transition: border-color .25s, background .25s; }
.choix-fichier:hover .zone-fichier, .choix-fichier:focus-within .zone-fichier { border-color: var(--kaki-clair); background: rgba(var(--teinte),.05); }
.choix-fichier:focus-within .zone-fichier { outline: 2px solid var(--kaki); outline-offset: 2px; }
.zone-fichier.rempli { border-style: solid; border-color: var(--kaki-clair); }
.rond-fichier { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(var(--teinte),.12); color: var(--kaki-clair); }
.zone-texte { display: grid; gap: 2px; min-width: 0; flex: 1; }
.zone-texte b { color: var(--texte); }
.zone-texte small { font-weight: 400; color: var(--doux); font-size: .82rem; overflow-wrap: anywhere; }
.vignettes { display: flex; gap: 6px; }
.vignettes:empty { display: none; }
.vignettes img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--ligne); animation: extrait-doux .35s ease both; }
.apercu-fiche { display: grid; gap: 10px; align-self: start; }
.apercu-titre { margin: 0; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--doux); }
.fiche.apercu { pointer-events: none; }
.fiche.apercu h2 { margin: 2px 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.fiche.apercu .desc { -webkit-line-clamp: 3; line-clamp: 3; }
.apercu-photo img { width: 100%; height: 170px; object-fit: cover; display: block; }
.apercu-photo { margin: -14px -16px 6px; border-radius: 16px 16px 0 0; overflow: hidden; }
.fiche.apercu .contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.fiche.apercu .contacts .bouton { text-align: center; }
@media (min-width: 1000px) {
    .inscription-grille { grid-template-columns: minmax(0, 1fr) 330px; }
    .apercu-fiche { position: sticky; top: 84px; }
}
@media (prefers-reduced-motion: reduce) { .apparait, .vignettes img { animation: none; } }
.zone-texte small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
    .carte-form:has(.inscription-grille) { padding: 20px 14px; }
    .bloc-form { padding: 14px 12px 16px; }
    .bloc-form legend { font-size: 1rem; flex-wrap: wrap; row-gap: 2px; }
    .vignettes { flex-basis: 100%; }
    .vignettes img { width: 64px; height: 64px; }
}
.apercu-photo[hidden], .fiche.apercu .desc[hidden] { display: none; }

/* Case à corriger : en rouge, pour la retrouver tout de suite (2026-11-13) */
:root { --erreur: #c5221f; --erreur-fond: #fdecea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --erreur: #ff8a80; --erreur-fond: #2a1513; } }
:root[data-theme="dark"] { --erreur: #ff8a80; --erreur-fond: #2a1513; }
input.en-erreur, select.en-erreur, textarea.en-erreur { border: 2px solid var(--erreur); background: var(--erreur-fond); animation: secoue-doux .4s ease; }
input.en-erreur:focus, select.en-erreur:focus, textarea.en-erreur:focus { outline-color: var(--erreur); }
.label-erreur { color: var(--erreur); }
.choix-fichier.en-erreur .zone-fichier { border: 2px solid var(--erreur); background: var(--erreur-fond); }
.accord.en-erreur { border-color: var(--erreur); background: var(--erreur-fond); }
.accord.label-erreur { color: var(--texte); }
@keyframes secoue-doux { 0%, 100% { transform: none; } 30% { transform: translateX(-3px); } 60% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .en-erreur { animation: none; } }
.form-etapes .abandon, .modif-pro .abandon { width: 100%; justify-content: center; }

/* ===== Météo dans le bandeau d'accueil (2026-11-16) =====
   Téléphone et tablette : une petite pastille sous les chiffres (dessin, température, ville, heure sur place).
   Ordinateur : une petite carte sous la clé, au milieu du bandeau. Un toucher ouvre la liste des villes. */
.meteo { display: flex; justify-content: center; margin: 12px 0 0; }
.meteo[hidden] { display: none; }
.meteo-bouton { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .88rem; color: var(--texte);
  background: color-mix(in srgb, var(--carte) 70%, transparent); border: 1px solid color-mix(in srgb, var(--kaki) 45%, var(--ligne)); transition: border-color .2s, transform .2s; }
.meteo-bouton:focus-visible { border-color: var(--kaki); }
@media (hover: hover) { .meteo-bouton:hover { border-color: var(--kaki); } }
.meteo-bouton:focus-visible { outline: 2px solid var(--kaki); outline-offset: 2px; }
.meteo-icone { display: grid; place-items: center; color: var(--kaki-clair); }
.meteo-icone svg { width: 22px; height: 22px; }
.meteo-temp { font-size: .98rem; }
.meteo-lieu { font-weight: 600; }
.meteo-desc { display: none; }
.meteo-heure { color: var(--doux); font-size: .8rem; }
.meteo-fleche { color: var(--kaki-clair); flex: none; }
@media (min-width: 1100px) {
  /* La clé remonte un peu et rapetisse, la carte météo se pose en dessous, dans la même colonne. */
  .accueil-fundi .deco { align-self: start; width: 170px; height: 170px; }
  .accueil-fundi:has(.vitrine-une) .deco { width: 150px; height: 150px; }
  .accueil-fundi .deco svg { width: 92px; height: 92px; }
  .meteo { grid-column: 2; grid-row: 1; align-self: end; justify-self: center; width: 100%; max-width: 210px; margin: 0; }
  .meteo-bouton { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 10px; width: 100%; padding: 12px 14px; border-radius: 16px; text-align: left;
    background: var(--carte); border-color: var(--ligne); box-shadow: 0 10px 26px -14px rgba(0,0,0,.45); }
  .meteo-bouton:hover, .meteo-bouton:focus-visible { border-color: var(--kaki); transform: translateY(-2px); }
  .accueil-fundi:has(.vitrine-une) .meteo-bouton { padding: 10px 11px; gap: 2px 8px; }
  .meteo-icone { grid-column: 1; grid-row: 1; }
  .meteo-icone svg { width: 34px; height: 34px; }
  .meteo-temp { grid-column: 2; grid-row: 1; font-size: 1.7rem; line-height: 1.1; }
  .meteo-heure { grid-column: 3; grid-row: 3; align-self: end; font-size: .76rem; }
  .meteo-texte { display: contents; }
  .meteo-lieu { grid-column: 1 / 3; grid-row: 2; margin-top: 6px; color: var(--kaki-clair); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .meteo-fleche { grid-column: 3; grid-row: 2; margin-top: 6px; justify-self: end; }
  .meteo-desc { display: block; grid-column: 1 / 3; grid-row: 3; color: var(--doux); font-size: .78rem; line-height: 1.3; }
}

/* La fenêtre des villes : glisse depuis le bas sur téléphone, apparaît au milieu sur ordinateur. */
html.meteo-ouverte { overflow: hidden; }
.meteo-fond { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 12, 6, .55); }
.meteo-fond[hidden] { display: none; }
.meteo-choix { position: relative; width: 100%; max-width: 480px; max-height: 86vh; overflow-y: auto; overscroll-behavior: contain; background: var(--carte); color: var(--texte);
  border: 1px solid var(--ligne); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -18px 50px rgba(0,0,0,.3); text-align: left; }
.meteo-choix::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--ligne); }
.meteo-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meteo-tete h2 { margin: 0; font-size: 1.25rem; }
.meteo-fermer { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--texte); background: rgba(var(--teinte), .08); border: 1px solid var(--ligne); }
.meteo-fermer:focus-visible { border-color: var(--kaki); }
@media (hover: hover) { .meteo-fermer:hover { border-color: var(--kaki); } }
.meteo-aide { margin: 2px 0 0; color: var(--doux); font-size: .88rem; }
.meteo-groupe { margin: 14px 2px 6px; color: var(--kaki-clair); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.meteo-villes { display: grid; gap: 6px; }
.meteo-villes button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 14px; cursor: pointer; font: inherit; text-align: left; color: var(--texte);
  background: rgba(var(--teinte), .04); border: 1px solid var(--ligne); transition: border-color .2s, background .2s; }
.meteo-villes button:focus-visible { border-color: var(--kaki); }
@media (hover: hover) { .meteo-villes button:hover { border-color: var(--kaki); } }
.meteo-villes button:focus-visible { outline: 2px solid var(--kaki); outline-offset: 1px; }
.meteo-villes button[aria-pressed="true"] { border: 2px solid var(--kaki); padding: 8px 11px; background: color-mix(in srgb, var(--kaki) 12%, var(--carte)); }
.meteo-v-icone { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--kaki-clair); background: color-mix(in srgb, var(--kaki) 14%, transparent); }
.meteo-v-nom { flex: 1; min-width: 0; }
.meteo-v-nom b, .meteo-v-temp b { display: block; }
.meteo-v-nom small, .meteo-v-temp small { display: block; color: var(--doux); font-size: .78rem; }
.meteo-v-temp { flex: none; text-align: right; }
.meteo-v-temp b { font-size: 1.15rem; }
.meteo-source { margin: 14px 0 0; text-align: center; color: var(--doux); font-size: .76rem; }
.meteo-source a { color: var(--kaki-clair); }
@media (min-width: 640px) {
  .meteo-fond { align-items: center; padding: 16px; }
  .meteo-choix { border-bottom: 1px solid var(--ligne); border-radius: 20px; padding: 20px 20px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
  .meteo-choix::before { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .meteo-fond { animation: soie-voile .3s ease-out; }
  .meteo-choix { animation: meteo-monte .42s cubic-bezier(.22,1,.36,1); }
  .meteo-fond.sortie { animation: soie-voile .28s ease-in reverse both; pointer-events: none; }
  .meteo-fond.sortie .meteo-choix { animation: meteo-descend .28s cubic-bezier(.4,0,1,1) both; }
}
@keyframes meteo-monte { from { transform: translateY(100%); } }
@keyframes meteo-descend { to { transform: translateY(100%); } }
@media (min-width: 640px) {
  @keyframes meteo-monte { from { opacity: 0; transform: translateY(8px) scale(.98); } }
  @keyframes meteo-descend { to { opacity: 0; transform: translateY(8px) scale(.98); } }
}
/* Bas de page commun MMBT (pied-mmbt.css) aux couleurs de Fundi : suit la couleur choisie et le mode sombre. */
.pm { --pm-accent: var(--kaki-clair); --pm-bouton: var(--kaki); --pm-sur-accent: #fff; --pm-texte: var(--texte); --pm-doux: var(--doux); --pm-bord: var(--ligne); --pm-fond: var(--fond); --pm-bande: color-mix(in srgb, var(--kaki) 7%, var(--carte)); margin-top: 48px; }
.pm .pm-btn:hover { background: var(--kaki-fonce); filter: none; }
