/* Urgence Kinshasa · pages servies par le serveur (fiches, listes, gardes, urgences).
   Mêmes jetons que la carte (statics/public/style.css) : bleu ciel du drapeau pour
   l'interface, jaune de l'étoile pour la garde, rouge pour l'urgence, une couleur par
   niveau. Thème clair et thème sombre conçus tous les deux ; aucun CDN, Inter locale. */

:root {
  color-scheme: light;
  --texte: #0a1c3a; --doux: #46587a; --trait: rgba(10, 28, 58, .12);
  --fond: #eef4fc; --fond-degrade: radial-gradient(1200px 500px at 10% -10%, #dcebff 0%, rgba(220,235,255,0) 60%), linear-gradient(180deg, #f4f8fe 0%, #e9f1fb 100%);
  --surface: rgba(255, 255, 255, .86); --surface-forte: #fff; --surface-douce: rgba(11, 99, 206, .06);
  --ombre: 0 14px 34px -20px rgba(10, 40, 90, .45); --ombre-douce: 0 4px 14px -10px rgba(10, 40, 90, .4);
  --bleu: #0b5fc4; --bleu-doux: rgba(11, 99, 206, .10); --sur-bleu: #fff;
  --jaune: #f7d618; --sur-jaune: #3a2f00; --jaune-doux: rgba(247, 214, 24, .22);
  --rouge-plein: #c81d38; --rouge: #c81d38; --rouge-doux: rgba(210, 31, 60, .08); --vert: #0b7a42; --ambre: #9a4a07; --gris: #56657c;
  --heros: linear-gradient(135deg, #0b4fb3 0%, #0b63ce 45%, #1c8bff 100%);
  --tuiles: saturate(.85);
  --n1: #c81d38; --n2: #0b7a5e; --n3: #2f55d4; --n4: #8f5500; --n5: #6d31d6; --n6: #b02a7f; --n7: #b23c0b; --n8: #0c6a82; --n9: #545d6b; --n10: #62538a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    color-scheme: dark;
    --texte: #eaf2ff; --doux: #a9bbd8; --trait: rgba(255, 255, 255, .11);
    --fond: #061327; --fond-degrade: radial-gradient(1100px 520px at 12% -12%, rgba(27,120,230,.28) 0%, rgba(27,120,230,0) 60%), linear-gradient(180deg, #081a36 0%, #050f22 100%);
    --surface: rgba(255, 255, 255, .055); --surface-forte: #0f2347; --surface-douce: rgba(74, 168, 255, .09);
    --ombre: 0 18px 44px -20px rgba(0, 0, 0, .85); --ombre-douce: 0 6px 16px -10px rgba(0, 0, 0, .7);
    --bleu: #6db8ff; --bleu-doux: rgba(74, 168, 255, .16); --sur-bleu: #04152e;
    --jaune-doux: rgba(247, 214, 24, .16);
    --rouge: #ff6b7d; --rouge-doux: rgba(255, 90, 110, .12); --vert: #4be39a; --ambre: #fbbf24; --gris: #a3b0c2;
    --heros: linear-gradient(135deg, #0a3a8a 0%, #0b52b8 50%, #1b78e6 100%);
    --tuiles: invert(1) hue-rotate(195deg) brightness(.82) contrast(.92) saturate(.5);
    --n1: #ff6b7d; --n2: #34d3a6; --n3: #8fa8ff; --n4: #fbbf24; --n5: #c0a2ff; --n6: #f472c0; --n7: #ff9157; --n8: #38c7e6; --n9: #b3bccb; --n10: #c4b6e8;
  }
}
:root[data-theme="sombre"] {
  color-scheme: dark;
  --texte: #eaf2ff; --doux: #a9bbd8; --trait: rgba(255, 255, 255, .11);
  --fond: #061327; --fond-degrade: radial-gradient(1100px 520px at 12% -12%, rgba(27,120,230,.28) 0%, rgba(27,120,230,0) 60%), linear-gradient(180deg, #081a36 0%, #050f22 100%);
  --surface: rgba(255, 255, 255, .055); --surface-forte: #0f2347; --surface-douce: rgba(74, 168, 255, .09);
  --ombre: 0 18px 44px -20px rgba(0, 0, 0, .85); --ombre-douce: 0 6px 16px -10px rgba(0, 0, 0, .7);
  --bleu: #6db8ff; --bleu-doux: rgba(74, 168, 255, .16); --sur-bleu: #04152e;
  --jaune-doux: rgba(247, 214, 24, .16);
  --rouge: #ff6b7d; --rouge-doux: rgba(255, 90, 110, .12); --vert: #4be39a; --ambre: #fbbf24; --gris: #a3b0c2;
  --heros: linear-gradient(135deg, #0a3a8a 0%, #0b52b8 50%, #1b78e6 100%);
  --tuiles: invert(1) hue-rotate(195deg) brightness(.82) contrast(.92) saturate(.5);
  --n1: #ff6b7d; --n2: #34d3a6; --n3: #8fa8ff; --n4: #fbbf24; --n5: #c0a2ff; --n6: #f472c0; --n7: #ff9157; --n8: #38c7e6; --n9: #b3bccb; --n10: #c4b6e8;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--doux) transparent; }
body { margin: 0; min-height: 100vh; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.55; color: var(--texte); background: var(--fond); background-image: var(--fond-degrade); background-attachment: fixed; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--surface-forte); color: var(--texte); }
.evitement:focus { left: 8px; }
.enveloppe { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 16px; }
.doux { color: var(--doux); }
.petit { font-size: 14px; }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-thumb { background: var(--trait); border-radius: 10px; }

/* ===== En-tête ===== */
.tete { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--fond) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--trait); }
.tete-ligne { display: flex; align-items: center; gap: 12px; padding-block: 10px 6px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.marque b { font-weight: 800; }
.marque img { border-radius: 10px; }
.recherche { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 6px 0 14px; height: 46px; border-radius: 999px; background: var(--surface-forte); border: 1px solid var(--trait); box-shadow: var(--ombre-douce); color: var(--doux); }
.recherche input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; color: var(--texte); outline: none; }
.recherche input::placeholder { color: var(--doux); }
.recherche:focus-within { outline: 3px solid var(--bleu); outline-offset: 1px; }
.btn-chercher { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--bleu); color: var(--sur-bleu); font: inherit; font-weight: 700; cursor: pointer; }
.menu { display: flex; gap: 6px; overflow-x: auto; padding-block: 4px 10px; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--trait); color: var(--texte); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.menu a:hover { transform: translateY(-1px); background: var(--surface-forte); }
.menu a[aria-current="page"] { background: var(--bleu); color: var(--sur-bleu); border-color: transparent; }
.menu .menu-urgence { color: var(--rouge); border-color: color-mix(in srgb, var(--rouge) 35%, transparent); }
.menu .menu-urgence[aria-current="page"] { background: var(--rouge-plein); color: #fff; }
@media (max-width: 560px) { .marque span { display: none; } }

/* ===== Fil d'Ariane ===== */
.ariane { padding-block: 14px 0; font-size: 14px; }
.ariane ol { display: flex; flex-wrap: wrap; gap: 4px 6px; color: var(--doux); }
.ariane li { display: inline-flex; align-items: center; gap: 6px; }
.ariane li + li::before { content: "›"; color: var(--doux); }
.ariane a { color: var(--doux); }
.ariane [aria-current] { color: var(--texte); font-weight: 600; }

/* ===== Contenu ===== */
.contenu { padding-block: 18px 48px; display: grid; gap: 18px; }
.contenu:focus { outline: none; }
h1 { font-size: clamp(28px, 5.6vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
h1 .doux { font-weight: 600; font-size: .6em; }
h2 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; font-weight: 800; }
h2 .doux { font-weight: 500; font-size: 15px; }
.page-tete, .fiche-tete { display: grid; gap: 12px; }
.chapo { font-size: 17.5px; max-width: 70ch; color: var(--texte); }
.fiche-cat { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 5px 12px 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--bleu)) 11%, transparent); color: color-mix(in srgb, var(--c, var(--bleu)) 72%, var(--texte)); font-weight: 700; font-size: 14px; }
.page-garde .fiche-cat { color: var(--sur-jaune); background: var(--jaune); }
.page-urgence .fiche-cat { --c: var(--rouge); }
.fiche-lieu { font-size: 17px; color: var(--doux); }
.fiche-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 17px; }

.bloc { padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; gap: 14px; align-content: start; }
.fiche { display: grid; gap: 18px; }
.fiche-grille { display: grid; gap: 18px; }
@media (min-width: 860px) { .fiche-grille { grid-template-columns: 1fr 1fr; } }
.sous-titre { font-size: 17px; font-weight: 800; margin-top: 6px; }

/* ===== États et badges ===== */
.etat { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.etat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.etat-ouvert { color: var(--vert); } .etat-bientot { color: var(--ambre); } .etat-ferme { color: var(--rouge); } .etat-inconnu { color: var(--gris); font-weight: 600; }
.badge-garde, .badge-nuit { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.badge-garde { background: var(--jaune); color: var(--sur-jaune); }
.badge-nuit { background: var(--bleu-doux); color: var(--bleu); }

/* ===== Boutons ===== */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 18px; border-radius: 14px; font: inherit; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--ombre-douce); }
.btn-primaire { background: var(--bleu); color: var(--sur-bleu); }
.btn-second { background: var(--surface-forte); color: var(--texte); border-color: var(--trait); }
.btn-garde { background: var(--jaune); color: var(--sur-jaune); }
.btn-urgence { background: var(--rouge-plein); color: #fff; }
@media (max-width: 560px) { .fiche .actions .btn { flex: 1 1 100%; } }

/* ===== Bandeaux ===== */
.bandeau { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; }
.bandeau > div { display: grid; gap: 3px; }
.bandeau .ic { width: 22px; height: 22px; margin-top: 2px; }
.bandeau-ferme { background: var(--rouge-doux); border: 1px solid color-mix(in srgb, var(--rouge) 35%, transparent); }
.bandeau-ferme strong { color: var(--rouge); }
.bandeau-garde { background: var(--jaune-doux); border: 1px solid color-mix(in srgb, var(--jaune) 60%, transparent); }

/* ===== Horaires et informations ===== */
.semaine { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.semaine th, .semaine td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--trait); }
.semaine th { font-weight: 600; width: 40%; }
.semaine tr:last-child th, .semaine tr:last-child td { border-bottom: 0; }
.semaine .aujourdhui { background: var(--bleu-doux); font-weight: 800; }
.semaine .aujourdhui th, .semaine .aujourdhui td { font-weight: 800; }
.infos { display: grid; gap: 10px; }
.infos > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--trait); }
.infos > div:last-child { border-bottom: 0; padding-bottom: 0; }
.infos dt { color: var(--doux); font-weight: 600; }
.infos dd { overflow-wrap: anywhere; }

/* ===== Carte statique (4 tuiles OpenStreetMap) ===== */
.carte-statique { position: relative; display: block; height: 240px; border-radius: 16px; overflow: hidden; background: var(--surface-douce); border: 1px solid var(--trait); }
.carte-tuiles { position: absolute; width: 512px; height: 512px; left: calc(50% - var(--px)); top: calc(50% - var(--py)); filter: var(--tuiles); }
.carte-tuiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.carte-repere { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -26px 0 0 -13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--rouge); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.35); }

/* ===== Fiabilité ===== */
.fiabilite ul { display: grid; gap: 10px; }
.fiabilite li { display: flex; gap: 10px; align-items: flex-start; }
.fiabilite li .ic { margin-top: 3px; color: var(--bleu); }

/* ===== Listes de lieux ===== */
.liste-lieux { display: grid; gap: 10px; }
@media (min-width: 760px) { .liste-lieux { grid-template-columns: 1fr 1fr; } }
.carte-lieu { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface-forte); border: 1px solid var(--trait); transition: transform .15s ease, box-shadow .15s ease; }
.carte-lieu:hover { transform: translateY(-2px); box-shadow: var(--ombre-douce); }
.carte-lieu-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.carte-lieu h3, .carte-lieu h4 { font-size: 16.5px; line-height: 1.3; font-weight: 700; }
.carte-lieu h3 a, .carte-lieu h4 a { color: var(--texte); text-decoration: none; }
.carte-lieu h3 a:hover, .carte-lieu h4 a:hover { text-decoration: underline; }
.carte-lieu .doux { font-size: 14.5px; }
.carte-lieu-pied { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14.5px; margin-top: 2px; }
.tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.vide { padding: 14px 16px; border-radius: 14px; background: var(--surface-douce); }
.note-source { font-size: 14px; color: var(--doux); max-width: 75ch; }

/* ===== Puces, tuiles, pagination ===== */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puces a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: var(--surface-forte); border: 1px solid var(--trait); color: var(--texte); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: transform .15s ease; }
.puces a:hover { transform: translateY(-1px); border-color: var(--bleu); }
.puces a[aria-current] { background: var(--bleu); color: var(--sur-bleu); }
.compte { font-size: 12.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--bleu-doux); color: var(--bleu); font-variant-numeric: tabular-nums; }
.tuiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tuiles a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-forte); border: 1px solid var(--trait); color: var(--texte); text-decoration: none; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease; }
.tuiles a:hover { transform: translateY(-2px); box-shadow: var(--ombre-douce); }
.tuiles a .ic { width: 38px; height: 38px; padding: 8px; border-radius: 12px; color: var(--c, var(--bleu)); background: color-mix(in srgb, var(--c, var(--bleu)) 13%, transparent); }
.tuiles a span:first-of-type { flex: 1; }
.liens-suite { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; font-weight: 600; }
.pagination ol { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--surface-forte); border: 1px solid var(--trait); text-decoration: none; }
.pagination [aria-current] { background: var(--bleu); color: var(--sur-bleu); border-color: transparent; }

/* ===== Urgences ===== */
.numeros { display: grid; gap: 12px; }
@media (min-width: 760px) { .numeros { grid-template-columns: repeat(3, 1fr); } }
.numero a, .numero > div { display: grid; gap: 4px; height: 100%; padding: 18px 20px; border-radius: 20px; text-decoration: none; }
.numero a { background: var(--rouge-plein); color: #fff; box-shadow: var(--ombre); transition: transform .15s ease; }
.numero a:hover { transform: translateY(-2px); }
.numero-pompiers a { background: #b3261e; }
.numero > div { background: var(--surface-forte); border: 1px solid var(--trait); }
.numero-libelle { font-weight: 700; font-size: 17px; }
.numero-chiffres { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.numero-note { color: var(--texte); }
.source { font-size: 14.5px; color: var(--doux); }

/* ===== FAQ ===== */
.faq details { border-top: 1px solid var(--trait); padding-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 8px; color: var(--texte); }

/* ===== Gérant ===== */
.gerant { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; border: 1px dashed color-mix(in srgb, var(--bleu) 45%, transparent); color: var(--texte); text-decoration: none; }
.gerant > span { display: grid; gap: 2px; }
.gerant .ic { width: 28px; height: 28px; color: var(--bleu); }

/* ===== Pied ===== */
.pied { border-top: 1px solid var(--trait); background: color-mix(in srgb, var(--surface-forte) 55%, transparent); padding-block: 28px 36px; }
.pied-grille { display: grid; gap: 24px; }
@media (min-width: 760px) { .pied-grille { grid-template-columns: 1.1fr 1fr 1.2fr; } }
.pied h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); margin-bottom: 10px; }
.pied p, .pied li { font-size: 15px; margin-bottom: 6px; }
.lien-fort { font-weight: 800; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print { .tete, .pied, .actions, .carte-statique, .gerant { display: none; } body { background: #fff; color: #000; } .bloc { box-shadow: none; border-color: #ccc; } }

/* ===== Partage (feuille du bas sur téléphone, panneau sous le bouton sur ordinateur) ===== */
.partage { position: relative; }
.partage > summary { list-style: none; }
.partage > summary::-webkit-details-marker { display: none; }
.partage-panneau { display: grid; gap: 12px; padding: 18px; border-radius: 22px 22px 0 0; background: var(--surface-forte); border: 1px solid var(--trait); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.45); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-height: 85vh; overflow: auto; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .partage-panneau { position: absolute; left: auto; right: 0; bottom: auto; top: calc(100% + 8px); width: 440px; border-radius: 20px; box-shadow: var(--ombre); } }
.partage-titre { font-weight: 800; font-size: 18px; }
.partage-entete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.partage-fermer { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--trait); background: var(--surface); color: var(--texte); cursor: pointer; }
.partage[open]::before { content: ""; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .35); }
@media (min-width: 760px) { .partage[open]::before { background: transparent; } }
.partage-apercu { font-size: 14.5px; padding: 10px 12px; border-radius: 12px; background: var(--surface-douce); overflow-wrap: anywhere; }
.partage-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.choix { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--trait); color: var(--texte); font: inherit; font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer; text-align: left; }
.choix:hover { border-color: var(--bleu); transform: translateY(-1px); }
.choix .ic { color: var(--bleu); }
.partage-lien input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--trait); background: var(--surface); color: var(--texte); font: inherit; font-size: 14px; }
.partage-choix [hidden] { display: none; }

/* ===== Position partagée ===== */
.position-heure { font-size: 15px; color: var(--doux); }

/* Messenger ne s'ouvre que dans l'application mobile : bouton masqué sur ordinateur (souris), où il ne ferait rien. */
@media (hover: hover) and (pointer: fine) { .partage-choix li:has(a[href^="fb-messenger:"]) { display: none; } }

/* ===== Panneau de partage v2 : vrais logos des plateformes, en pastilles, comme une feuille de partage de téléphone ===== */
.partage-apercu { display: grid; gap: 2px; font-size: 14px; line-height: 1.4; padding: 12px 14px; border-radius: 14px; background: var(--surface-douce); overflow-wrap: anywhere; }
.partage-apercu strong { font-size: 15px; color: var(--texte); }
.partage-apercu span { color: var(--doux); }
.partage-choix { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
.partage-choix .choix { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; min-height: 0; padding: 4px 2px; border: 0; border-radius: 14px; background: none; color: var(--texte); font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transform: none; }
.partage-choix .choix:hover, .partage-choix .choix:focus-visible { border: 0; transform: none; background: var(--surface-douce); }
.partage-choix .choix:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.logo { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .45); transition: transform .15s ease; }
.choix:hover .logo { transform: translateY(-2px) scale(1.04); }
.logo svg { width: 26px; height: 26px; }
.logo-whatsapp { background: #25D366; }
.logo-facebook { background: #0866FF; }
.logo-messenger { background: linear-gradient(45deg, #0099FF 0%, #A033FF 60%, #FF5280 90%, #FF7061 100%); }
.logo-x { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 6px 14px -8px rgba(0, 0, 0, .45); }
.logo-x svg { width: 22px; height: 22px; }
.logo-telegram { background: #26A5E4; }
.logo-linkedin { background: #0A66C2; }
.logo-sms { background: #34C759; }
.logo-courriel { background: #5B6473; }
.logo-plus { background: var(--surface-douce); color: var(--texte); box-shadow: inset 0 0 0 1px var(--trait); }
.partage-copie { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; border: 1px solid var(--trait); background: var(--surface); }
.partage-copie input { flex: 1; min-width: 0; border: 0; background: none; color: var(--texte); font: inherit; font-size: 14px; padding: 8px 0; outline: none; text-overflow: ellipsis; }
.btn-copier { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--bleu); color: var(--sur-bleu); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-copier:hover { filter: brightness(1.08); }
.btn-copier.ok { background: #0f8a4b; color: #fff; }
.partage-lien { display: none; }
@media (max-width: 380px) { .logo { width: 48px; height: 48px; } .partage-choix { gap: 12px 2px; } }
/* Messenger ne s'ouvre que dans l'application mobile : bouton masqué sur ordinateur (souris), où il ne ferait rien. */
@media (hover: hover) and (pointer: fine) { .partage-choix li:has(a[href^="fb-messenger:"]) { display: none; } }
