/* ==========================================================================
   Profils d'entreprise et cartes de publications (aiceberg.pro)
   ========================================================================== */

/* ---------- En-tête du profil ---------- */
.pro { padding: 32px 0 80px; }
.pro-entete { position: relative; margin-bottom: 24px; }
.pro-couv { aspect-ratio: 16 / 6; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--ice)); }
.pro-couv img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Drapeau du pays de l'entreprise : coin en haut à gauche de la couverture */
.pro-couv { position: relative; }
.pro-logo { position: absolute; left: 32px; bottom: -64px; width: 150px; height: 150px; border-radius: 50%; border: 3px solid var(--white); background: var(--cream); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 700; color: var(--navy); }
.pro-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* Drapeau du pays : pastille ronde posée en haut à droite du logo (pas d'overflow: hidden sur .pro-logo, sinon elle serait coupée) */
.pro-logo img.pro-drapeau { position: absolute; right: 4px; top: 8px; width: 26px; height: 26px; border: 2px solid var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
@media (max-width: 560px) { .pro-logo img.pro-drapeau { right: 0; top: 0; width: 24px; height: 24px; border-width: 2px; } }

.pro-identite { padding: 0 0 0 204px; min-height: 72px; }
.pro-identite h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
.pro-sous-titre { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 6px 0 0; color: var(--text-soft); font-size: .95rem; }
.pro-verifie { display: inline-flex; align-items: center; gap: 5px; color: var(--mint); font-weight: 600; }
.pro-verifie svg { width: 16px; height: 16px; }

.pro-avertissement { background: var(--vanille); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 20px; }

/* ---------- Corps : présentation + coordonnées ---------- */
.pro-corps { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 32px; margin: 36px 0 48px; }
.pro-description { white-space: pre-line; line-height: 1.7; margin: 0; }
.pro-contact { background: var(--cream); border-radius: var(--radius); padding: 22px 24px; align-self: start; }
.pro-contact h2 { font-size: 1.05rem; margin: 0 0 14px; }
.pro-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pro-contact li { display: flex; gap: 10px; align-items: flex-start; }
.pro-contact li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.pro-contact a { word-break: break-word; }

.icone { fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icone .plein { fill: var(--navy); stroke: none; } /* icône pleine (logo yaaKa) : même couleur que le trait */

.pro-reseaux { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pro-reseaux a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px rgba(15, 40, 64, .1); transition: transform .15s; }
.pro-reseaux a:hover { transform: translateY(-2px); }
.pro-reseaux svg { width: 20px; height: 20px; }

/* ---------- Grille de cartes ---------- */
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.cartes-vide { color: var(--text-soft); }

.carte { position: relative; aspect-ratio: 320 / 470; border-radius: 32px; overflow: hidden; background: var(--navy); box-shadow: 0 4px 8px rgba(0, 0, 0, .15); isolation: isolate; transition: transform .2s, box-shadow .2s; }
.carte:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -8px rgba(15, 40, 64, .35); }
.carte-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.carte-fond-vide { background: linear-gradient(160deg, var(--ice) 0%, var(--navy) 70%); }
.carte::before, .carte::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; }
.carte::before { top: 0; height: 120px; background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,.35) 55%, transparent); }
.carte::after { bottom: 0; height: 62%; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.5) 55%, transparent); }

.carte-auteur { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.5); min-width: 0; }
.carte-auteur img, .carte-initiale { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.75); flex-shrink: 0; }
.carte-initiale { display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--navy); font-size: 1rem; text-shadow: none; }
.carte-auteur span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.carte-ville, .carte-brouillon { position: absolute; top: 62px; left: 16px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 12px; background: rgba(255,255,255,.92); color: var(--cherry); }
.carte-brouillon { left: auto; right: 16px; color: var(--navy-dk); background: var(--citron); }

.carte-bas { position: absolute; left: 20px; right: 20px; bottom: 20px; color: #fff; }
.carte-titre { margin: 0 0 6px; font-size: 1.2rem; line-height: 1.25; text-shadow: 0 1px 4px rgba(0,0,0,.6); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte-titre a { color: #fff; text-decoration: none; }
.carte-titre a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
/* Toute la carte est cliquable ; le lien vers le profil (auteur) reste au-dessus */
.carte-lien { position: absolute; inset: 0; z-index: 1; }
.carte-auteur { z-index: 2; }
.carte-bas { z-index: 1; pointer-events: none; }
.carte-bas a { pointer-events: auto; }
.carte-extrait { margin: 0 0 8px; font-size: .9rem; line-height: 1.45; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carte-date { font-size: .8rem; opacity: .8; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
    .pro-corps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .pro-logo { left: 16px; bottom: -48px; width: 110px; height: 110px; font-size: 2.2rem; }
    .pro-identite { padding: 56px 0 0; }
    .cartes { grid-template-columns: 1fr; }
    .carte { max-width: 360px; margin: 0 auto; width: 100%; }
}

/* ==========================================================================
   Page d'une publication
   ========================================================================== */
.publi { padding: 32px 0 80px; }
.publi-couv { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); display: block; margin: 0 0 28px; }
.publi h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 0 0 16px; }
.publi-auteur { display: flex; align-items: center; gap: 12px; margin: 0 0 32px; color: var(--text-soft); font-size: .95rem; }
.publi-auteur a { font-weight: 600; color: var(--navy); text-decoration: none; }
.publi-auteur img, .publi-auteur .carte-initiale { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }

/* Contenu Markdown */
.publi-texte { font-size: 1.08rem; line-height: 1.75; }
.publi-texte h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.publi-texte h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.publi-texte p, .publi-texte ul, .publi-texte ol { margin: 0 0 1.1em; }
.publi-texte blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--ice); color: var(--text-soft); font-style: italic; }
.publi-texte a { color: var(--navy); text-decoration-thickness: 2px; text-decoration-color: var(--ice); text-underline-offset: 3px; }

/* Vidéos (chargées au clic) */
.media { position: relative; margin: 1.6em auto; background: var(--navy-dk); border-radius: var(--radius-sm); overflow: hidden; }
.media-paysage { aspect-ratio: 16 / 9; }
.media-portrait { aspect-ratio: 9 / 16; max-width: 360px; }
.media-instagram { aspect-ratio: 4 / 5.6; max-width: 420px; background: #fff; border: 1px solid var(--line); }
.media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-lancer { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 0; cursor: pointer; color: #fff; font: inherit; font-weight: 700; background: linear-gradient(160deg, var(--ice), var(--navy) 75%); }
.media-instagram .media-lancer { background: linear-gradient(160deg, #f58529, #dd2a7b 50%, #8134af); }
.media-lancer svg { width: 64px; height: 64px; fill: rgba(255,255,255,.95); }
.media-lancer svg path { fill: var(--navy); }
.media-lancer:hover svg, .media-lancer:focus-visible svg { transform: scale(1.08); }
.media-lancer:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: .75rem; line-height: 1.4; color: rgba(255,255,255,.85); background: rgba(0,0,0,.35); text-align: center; }
.media figcaption a { color: #fff; }
.media-active figcaption { display: none; }

/* Aperçu de lien */
.lien-apercu { display: flex; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; text-decoration: none; color: var(--text); background: var(--white); transition: box-shadow .2s; }
.lien-apercu:hover { box-shadow: var(--shadow); }
.lien-apercu img { width: 220px; flex-shrink: 0; aspect-ratio: 600 / 315; height: auto; object-fit: cover; align-self: center; }
.lien-apercu-texte { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; min-width: 0; font-size: .95rem; line-height: 1.45; }
.lien-apercu-site { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); }
.lien-apercu strong { color: var(--navy); }
.lien-apercu-desc { color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lien-apercu-hote { font-size: .8rem; color: var(--ice); }
@media (max-width: 560px) {
    .lien-apercu { flex-direction: column; }
    .lien-apercu img { width: 100%; }
}

.publi-autres { margin-top: 64px; }

/* ==========================================================================
   Éditeur de publication (espace client)
   ========================================================================== */
.editeur-barre { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: var(--cream); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.editeur-barre button { min-width: 40px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.editeur-barre button:hover, .editeur-barre button:focus-visible { border-color: var(--navy); }
.editeur-barre .sep { width: 1px; background: var(--line); margin: 4px 2px; }
.editeur-onglets { display: flex; gap: 4px; margin-left: auto; }
.editeur-onglets button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.editeur textarea { width: 100%; min-height: 420px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-family: var(--font); font-size: 1rem; line-height: 1.6; }
.editeur-apercu { min-height: 420px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: var(--white); }
.editeur-aide { font-size: .85rem; color: var(--text-soft); margin: 10px 0 0; line-height: 1.6; }
.editeur-aide code { background: var(--cream); padding: 1px 6px; border-radius: 4px; }
.editeur-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.liste-publis { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.liste-publis li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.liste-publis .titre { flex: 1 1 260px; font-weight: 600; color: var(--navy); }
/* Mes publications : statut + date, puis actions en badges (Modifier, Voir, Partager, Supprimer) */
.liste-publis-infos { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.liste-publis-date { color: var(--text-soft); font-size: .85rem; }
.liste-publis-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.liste-publis-actions form { margin: 0; display: contents; }
.badge-action,
.liste-publis .bouton-partage.badge-action {
    --badge: var(--navy);
    display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto; margin: 0;
    padding: 6px 12px; border: 1.5px solid var(--badge); border-radius: 999px; box-shadow: none;
    background: var(--white); color: var(--badge); font: inherit; font-size: .82rem; font-weight: 700; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.badge-action svg,
.liste-publis .bouton-partage.badge-action svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge-action:hover, .badge-action:focus-visible,
.liste-publis .bouton-partage.badge-action:hover { background: var(--badge); border-color: var(--badge); color: #fff; }
.badge-action:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
/* Une couleur par action (texte et bordure ; fond plein au survol). Sélecteurs renforcés pour passer
   devant la règle commune ci-dessus (le badge Partager est aussi un .bouton-partage) */
.liste-publis .badge-action.badge-modifier  { --badge: #b8461f; } /* orange */
.liste-publis .badge-action.badge-voir      { --badge: #187650; } /* vert */
.liste-publis .badge-action.badge-partager  { --badge: #17789a; } /* bleu glacier */
.liste-publis .badge-action.badge-supprimer { --badge: #b3261e; } /* rouge */
/* Abonnements / Abonnés / Bloqués (compte/abonnements.php) */
.liste-publis .badge-action.badge-arreter,
.liste-publis .badge-action.badge-retirer   { --badge: #b8461f; } /* orange */
.liste-publis .badge-action.badge-bloquer   { --badge: #b3261e; } /* rouge */
.liste-publis .badge-action.badge-debloquer { --badge: #187650; } /* vert */
.liste-relations li { justify-content: space-between; }
.relation-identite { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 260px; }
.relation-identite > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.relation-identite .titre { flex: none; overflow-wrap: anywhere; text-decoration: none; }
.relation-identite a.titre:hover { text-decoration: underline; }
.relation-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.relation-initiale { display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--navy); font-weight: 700; }
.relations-onglets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.relations-onglets a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font-weight: 700; font-size: .92rem; text-decoration: none; }
.relations-onglets a:hover { border-color: var(--navy); }
.relations-onglets a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.relations-nombre { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--cream); color: var(--navy); font-size: .78rem; text-align: center; }
.relations-onglets a[aria-current] .relations-nombre { background: rgba(255, 255, 255, .2); color: #fff; }
.relations-aide { margin-top: 18px; font-size: .9rem; color: var(--text-soft); }
@media (max-width: 700px) {
    /* Mobile : titre sur toute la largeur, puis statut et date, puis les badges */
    .liste-publis li { flex-direction: column; align-items: flex-start; gap: 10px; }
    .liste-publis .titre { flex: none; }
    .liste-publis-actions { width: 100%; }
    /* (en colonne, la base de 260px deviendrait une hauteur : grands carrés vides) */
    .relation-identite { flex: none; width: 100%; }
    .badge-action, .liste-publis .bouton-partage.badge-action { padding: 8px 12px; font-size: .85rem; }
}
.statut { font-size: .75rem; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 12px; }
.statut-published { background: #e4f6ee; color: #145c40; }
.statut-draft { background: var(--vanille); color: var(--chocolat); }
.statut-hidden { background: #fdecea; color: #8e2216; }

/* ==========================================================================
   Zone d'envoi d'image (clic ou glisser-déposer, aperçu immédiat : assets/js/images.js)
   ========================================================================== */
.label-zone { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.zone-image { position: relative; display: block; cursor: pointer; overflow: hidden; outline: 3px dashed transparent; outline-offset: -3px; transition: outline-color .2s; }
.zone-image input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.zone-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zone-image:focus-within, .zone-image.survol { outline-color: var(--orange); }
.zone-publi { aspect-ratio: 16 / 9; max-width: none; border-radius: var(--radius); background: var(--cream-2) var(--vagues); border: 2px dashed var(--line); }
.zone-publi.a-image { border-style: solid; }
.zone-vide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--navy); text-align: center; padding: 12px; }
.zone-vide svg { width: 44px; height: 44px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.zone-vide strong { font-size: 1.05rem; }
.zone-vide small { color: var(--text-soft); font-size: .85rem; }
.zone-image.a-image .zone-vide { display: none; }
.zone-image .pastille { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; background: rgba(15, 40, 64, .78); color: #fff; font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 30px; pointer-events: none; }
.zone-image .pastille svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zone-image:not(.a-image) .pastille { display: none; }
.zone-supprimer { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 400; font-size: .9rem; color: var(--text-soft); cursor: pointer; }

/* Miniature de vidéo (copie locale) et titre sur le lecteur */
.media-miniature { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-avec-image .media-lancer { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.1) 65%, rgba(0,0,0,.55) 100%); }
.media-avec-image.media-instagram { background: var(--navy-dk); border: 0; }
.media-titre { position: absolute; top: 0; left: 0; right: 0; z-index: 1; padding: 14px 18px; color: #fff; font-weight: 700; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-active .media-miniature, .media-active .media-titre { display: none; }

/* ==========================================================================
   Annuaire « Trouver un glacier »
   ========================================================================== */
.annuaire h1, .page-publications h1 { margin: 0 0 20px; }
.annuaire h1 + .annuaire-intro { margin-top: -14px; } /* lien juste sous le titre (Trouver un candidat) */
.annuaire-intro { color: var(--text-soft); margin: 0 0 24px; }
.annuaire-recherche { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 20px; margin: 0 0 28px; background: var(--cream); border-radius: var(--radius); }
.annuaire-recherche label { display: block; font-weight: 700; color: var(--navy); font-size: .9rem; margin: 0 0 6px; }
.annuaire-champ { position: relative; flex: 1 1 320px; }
.annuaire-champ .icone { position: absolute; left: 14px; bottom: 14px; width: 20px; height: 20px; pointer-events: none; }
.annuaire-champ input { width: 100%; padding-left: 44px; }
.annuaire-rayon select { min-width: 110px; }
.annuaire-tout { align-self: center; font-size: .9rem; }
.annuaire-compte { color: var(--text-soft); margin: 0 0 16px; }
.annuaire-pages { display: flex; justify-content: center; gap: 12px; margin: 32px 0 0; }
.annuaire-pro { margin: 56px 0 0; padding: 28px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), var(--navy-dk)); color: #fff; }
.annuaire-pro h2 { color: #fff; margin: 0 0 8px; }
.annuaire-pro p { color: rgba(255,255,255,.85); margin: 0 0 18px; }
/* Pages de ville : liens vers les villes voisines, ou toutes les villes par département (page générale) */
.annuaire-villes { margin: 56px 0 0; }
.annuaire-villes h2 { margin: 0 0 16px; }
.annuaire-villes-dep { font-weight: 700; color: var(--navy); }
.annuaire-villes-liste { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; list-style: none; }
.annuaire-villes-liste a { font-size: .95rem; }

/* Liste de suggestions (villes, adresses) */
.adresse-liste { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 300px; overflow-y: auto; }
.adresse-liste li { padding: 10px 14px; cursor: pointer; }
.adresse-liste li small { color: var(--text-soft); }
.adresse-liste li[aria-selected="true"], .adresse-liste li:hover { background: var(--cream); }

/* Carte d'un glacier : logo rond au centre, nom et ville en bas */
.carte-glacier-identite { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.carte-glacier-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.3); background: var(--cream); }
span.carte-glacier-logo { display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 700; color: var(--navy); }
.carte-lieu { margin: 0 0 8px; font-size: .9rem; font-weight: 600; opacity: .95; }
.carte-verifie { display: inline-block; font-size: .75rem; font-weight: 700; color: #b9f0d6; }
.carte-distance { position: absolute; top: 16px; right: 16px; z-index: 2; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,.92); color: var(--navy); pointer-events: none; }
.carte-glacier .carte-titre { font-size: 1.3rem; }
/* Cartes de l’annuaire : ombres haute et basse de même hauteur (centrées), grande zone transparente au milieu */
.carte-glacier::before { height: 34%; background: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.3) 50%, transparent); }
.carte-glacier::after { height: 34%; background: linear-gradient(0deg, rgba(0,0,0,.88), rgba(0,0,0,.55) 55%, transparent); }

/* ---------- Barre de recherche de l'annuaire (une seule barre arrondie) ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.recherche { margin: 0 0 32px; }
.recherche-barre { display: flex; align-items: stretch; background: var(--white); border: 2px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); padding: 6px; transition: border-color .2s, box-shadow .2s; }
.recherche-barre:focus-within { border-color: var(--ice); box-shadow: var(--shadow), 0 0 0 4px rgba(47, 178, 216, .15); }
.recherche-ville, .recherche-rayon { position: relative; display: flex; align-items: center; }
.recherche-ville { flex: 1 1 auto; min-width: 0; }
.recherche-rayon { flex: 0 0 auto; border-left: 2px solid var(--line); margin: 6px 0; }
.recherche-icone { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; fill: none; stroke: var(--ice); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.recherche-ville input, .recherche-rayon select {
    width: 100%; height: 52px; border: 0; background: transparent; outline: none; box-shadow: none;
    font: inherit; font-size: 1.05rem; color: var(--text); padding: 0 16px 0 52px;
}
.recherche-ville input::placeholder { color: var(--text-soft); opacity: .8; }
.recherche-rayon select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px; font-weight: 600; color: var(--navy); }
.recherche-chevron { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.recherche-bouton { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 0 26px; background: var(--orange-btn); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .2s, transform .15s; }
.recherche-bouton:hover { background: var(--orange-dk); }
.recherche-bouton:active { transform: scale(.97); }
.recherche-bouton:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.recherche-bouton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.recherche .adresse-liste { top: calc(100% + 12px); left: 8px; right: 8px; border-radius: var(--radius-sm); }
.recherche-tout { margin: 12px 0 0 24px; font-size: .9rem; }

@media (max-width: 640px) {
    .recherche-barre { flex-wrap: wrap; border-radius: var(--radius); padding: 8px; }
    .recherche-ville { flex: 1 1 100%; border-bottom: 2px solid var(--line); }
    .recherche-rayon { flex: 1 1 auto; border-left: 0; margin: 0; }
    .recherche-bouton { flex: 1 1 auto; justify-content: center; min-height: 48px; margin-top: 6px; }
}

/* ==========================================================================
   Abonnements
   ========================================================================== */
.pro-abonnes { font-weight: 600; color: var(--navy); }
.pro-suivre { margin: 14px 0 0; }
.bouton-suivre { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--orange-btn); background: var(--orange-btn); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.bouton-suivre:hover { background: var(--orange-dk); border-color: var(--orange-dk); color: #fff; }
.bouton-suivre:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.bouton-suivre svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* Déjà abonné : bouton discret ; au survol, propose « Ne plus suivre » */
.bouton-suivre.suivi { background: var(--white); color: var(--navy); border-color: var(--line); }
.bouton-suivre .libelle-arreter { display: none; }
.bouton-suivre.suivi:hover, .bouton-suivre.suivi:focus-visible { background: #fdecea; border-color: #f5c3bc; color: #8e2216; }
.bouton-suivre.suivi:hover .libelle-suivi, .bouton-suivre.suivi:focus-visible .libelle-suivi { display: none; }
.bouton-suivre.suivi:hover .libelle-arreter, .bouton-suivre.suivi:focus-visible .libelle-arreter { display: inline; }
.bouton-suivre.suivi:hover svg, .bouton-suivre.suivi:focus-visible svg { display: none; }

.liste-suivis { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liste-suivis li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.suivi-identite { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.suivi-identite img, .suivi-identite .carte-initiale { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--line); }
.suivi-identite small { color: var(--text-soft); }

/* Identité du profil : nom et infos à gauche (à côté du logo), bouton Suivre / Abonné à droite */
.pro-identite { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; }
.pro-identite-texte { min-width: 0; }
.pro-suivre { margin: 0; flex-shrink: 0; }
@media (max-width: 560px) {
    .pro-identite { flex-direction: column; align-items: flex-start; }
}

/* Bouton Suivre / Abonné : à droite, centré à la même hauteur que le logo (à cheval sur le bas de la couverture).
   Centre du logo = 11 px au-dessus du bas de la couverture ; la couverture se termine 24 px au-dessus de .pro-identite. */
.pro-identite { position: relative; }
.pro-suivre { position: absolute; right: 32px; top: -35px; transform: translateY(-50%); z-index: 2; }
.pro-suivre .bouton-suivre { box-shadow: 0 6px 18px rgba(15, 40, 64, .22); }
.pro-suivre .bouton-suivre.suivi { background: var(--white); }
@media (max-width: 560px) {
    /* Logo mobile : 110 px, centre 7 px au-dessus du bas de la couverture */
    .pro-suivre { right: 16px; top: -31px; }
    .pro-suivre .bouton-suivre { min-height: 40px; padding: 0 16px; font-size: .9rem; }
}

/* Bouton Suivre / Abonné centré exactement sur le bord bas de la couverture
   (la couverture se termine 24 px au-dessus de .pro-identite, voir .pro-entete) */
.pro-suivre { top: -24px; transform: translateY(-50%); }
@media (max-width: 560px) { .pro-suivre { top: -24px; } }

/* Mobile : logo plus petit (80 px) */
@media (max-width: 560px) {
    .pro-logo { left: 16px; bottom: -36px; width: 80px; height: 80px; border-width: 2px; font-size: 1.7rem; }
    .pro-identite { padding-top: 36px; }
}

/* Logo centré exactement sur le bord bas de la couverture (comme le bouton Suivre) : bottom = - hauteur / 2 */
.pro-logo { bottom: -75px; }                 /* ordinateur : 150 px */
.pro-identite { min-height: 60px; }
@media (max-width: 560px) {
    .pro-logo { bottom: -40px; }             /* mobile : 80 px */
    .pro-identite { padding-top: 28px; }     /* laisse la place au bas du logo (40 px sous la couverture, 24 px de marge déjà) */
}

/* ==========================================================================
   Notifications push (Mon fil)
   ========================================================================== */
.bloc-notifications { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 22px; margin: 0 0 32px; border-radius: var(--radius); background: var(--ice-pale); border: 1px solid #bfe6f2; }
.bloc-notifications[hidden] { display: none; }
.notif-icone { width: 34px; height: 34px; flex-shrink: 0; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notif-texte { flex: 1 1 260px; min-width: 0; }
.notif-texte strong { color: var(--navy); }
.notif-etat { margin: 2px 0 0; color: var(--text-soft); font-size: .95rem; }
.notif-ios { margin-top: 10px; font-size: .9rem; }
.notif-ios ol { margin: 6px 0 0; padding-left: 20px; }
.notif-actions { display: flex; gap: 8px; }
/* Boutons masqués : l'attribut hidden l'emporte sur le display des .btn */
.notif-actions [hidden] { display: none !important; }
/* Notifications activées : bouton vert */
.notif-activer.notif-ok, .notif-activer.notif-ok:hover { background: var(--mint); border-color: var(--mint); color: #fff; cursor: default; transform: none; }

/* Cartes : même taille partout (profil, fil, annuaire) — elles ne s'étirent plus dans les pages étroites */
.cartes { grid-template-columns: repeat(auto-fill, minmax(240px, 272px)); }
@media (max-width: 560px) {
    .cartes { grid-template-columns: 1fr; justify-items: center; }
}

/* ==========================================================================
   Messagerie privée
   ========================================================================== */
.messagerie { display: grid; grid-template-columns: 300px 1fr; height: min(72vh, 680px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.msg-conversations { border-right: 1px solid var(--line); overflow-y: auto; background: var(--cream); }
.msg-conversations ul { list-style: none; margin: 0; padding: 0; }
.msg-conversations li + li { border-top: 1px solid var(--line); }
.msg-conversations a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--text); }
.msg-conversations a:hover { background: var(--cream-2); }
.msg-conversations li.actif a { background: var(--white); box-shadow: inset 4px 0 0 var(--orange); }
.msg-conversations img, .msg-fil-entete img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--line); }
.msg-conv-texte { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: .9rem; }
.msg-conv-texte strong { color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-conv-texte span { color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-conversations li.non-lu .msg-conv-texte span { color: var(--text); font-weight: 600; }
.msg-point { width: 10px; height: 10px; border-radius: 50%; background: var(--cherry); flex-shrink: 0; }
.msg-vide { padding: 16px; margin: 0; color: var(--text-soft); font-size: .92rem; }

.msg-fil { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.msg-fil-entete { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.msg-fil-entete img, .msg-fil-entete .notif-initiale { width: 40px; height: 40px; }
.msg-fil-nom { font-weight: 700; color: var(--navy); text-decoration: none; }
.msg-retour { display: none; font-size: 1.4rem; text-decoration: none; color: var(--navy); padding: 0 6px 0 0; }
.msg-liste { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, #fbfdfe, #f4f9fb); }
.msg { max-width: 75%; padding: 9px 14px 6px; border-radius: 18px; line-height: 1.45; }
.msg p { margin: 0; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.msg time { display: block; margin-top: 3px; font-size: .7rem; opacity: .7; text-align: right; }
.msg-moi { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.msg-autre { align-self: flex-start; background: var(--white); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-saisie { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.msg-saisie textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; padding: 11px 16px; border: 2px solid var(--line); border-radius: 22px; font: inherit; line-height: 1.4; outline: none; }
.msg-saisie textarea:focus { border-color: var(--ice); }
.msg-envoyer { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--orange-btn); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.msg-envoyer:hover { background: var(--orange-dk); }
.msg-envoyer:disabled { opacity: .6; cursor: wait; }
.msg-envoyer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.msg-choisir { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-soft); }
.msg-choisir svg { width: 56px; height: 56px; fill: none; stroke: var(--line); stroke-width: 1.5; }

@media (max-width: 760px) {
    /* Mobile : la liste, puis la conversation en plein écran */
    .messagerie { grid-template-columns: 1fr; height: calc(100dvh - 190px); min-height: 420px; }
    .messagerie.avec-fil .msg-conversations { display: none; }
    .messagerie:not(.avec-fil) .msg-fil { display: none; }
    .msg-conversations { border-right: 0; }
    .msg-retour { display: inline-block; }
    .msg { max-width: 85%; }
}

/* Bouton « Message » sur le profil (rond, à côté de Suivre) */
.pro-suivre { display: flex; align-items: center; gap: 10px; }
.bouton-message { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); color: var(--navy); box-shadow: 0 6px 18px rgba(15, 40, 64, .22); transition: background .2s, border-color .2s; }
.bouton-message:hover { background: var(--cream); border-color: var(--navy); }
.bouton-message:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.bouton-message svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .bouton-message { width: 40px; height: 40px; } }

/* Titre des cartes : 2 lignes au plus, coupé par « … » */
.carte-titre { -webkit-line-clamp: 2; line-clamp: 2; }

/* Page d'une publication : article sur 2/3, autres publications à droite (en dessous sur mobile) */
.publi-grille { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 48px; align-items: start; }
.publi-cote { position: sticky; top: 96px; }
.publi-cote h2 { font-size: 1.1rem; margin: 0 0 14px; }
.publi-cote h2:not(:first-child) { margin-top: 32px; }
.publi-cote-cartes { display: grid; gap: 18px; justify-items: center; }
.publi-cote-cartes .carte { width: 100%; max-width: 300px; }
@media (max-width: 900px) {
    .publi-grille { grid-template-columns: 1fr; gap: 40px; }
    .publi-cote { position: static; }
    .publi-cote-cartes { grid-template-columns: repeat(auto-fill, minmax(240px, 272px)); justify-content: center; }
}
/* Colonne de droite plus haute que l'écran : pas de position collante (les dernières cartes resteraient inaccessibles) */
.publi-cote { position: static; }

/* ==========================================================================
   Partage (icône + fenêtre) — même présentation que le bloc des articles
   ========================================================================== */
.bouton-partage { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; background: var(--white); border: 2px solid var(--line); color: var(--navy); cursor: pointer; box-shadow: 0 6px 18px rgba(15, 40, 64, .22); transition: background .2s, border-color .2s; }
.bouton-partage:hover { background: var(--cream); border-color: var(--navy); }
.bouton-partage:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.bouton-partage svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .bouton-partage { width: 40px; height: 40px; } }

.partage-fenetre { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); color: var(--text); box-shadow: 0 30px 80px -20px rgba(15, 40, 64, .45); }
.partage-fenetre::backdrop { background: rgba(15, 40, 64, .55); }
.partage-interieur { position: relative; padding: 32px 24px; text-align: center; }
.partage-fermer { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 1.8rem; line-height: 1; color: var(--navy); cursor: pointer; }
.partage-fermer:hover { background: var(--cream-2); }
.partage-fermer:focus-visible { outline: 2px solid var(--ice); outline-offset: 0; }
.partage-fenetre:focus { outline: none; }
/* Titre : marges latérales pour ne jamais passer sous la croix */
.partage-titre { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.3; color: var(--navy); margin: 0 0 20px; padding: 0 40px; text-wrap: balance; }
.partage-liens { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.partage-liens li { margin: 0; }
.partage-btn { --reseau: var(--navy); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 2px solid var(--reseau); border-radius: 50%; background: var(--white); color: var(--reseau); cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s, transform .2s; }
.partage-btn svg { width: 22px; height: 22px; fill: currentColor; }
.partage-btn:hover, .partage-btn:focus-visible { background: var(--reseau); color: var(--white); transform: translateY(-2px); }
.partage-facebook { --reseau: #1877f2; }
.partage-x { --reseau: #000000; }
.partage-linkedin { --reseau: #0a66c2; }
.partage-email { --reseau: var(--ice); }
.partage-copier { --reseau: var(--orange-dk); }
.partage-copier.copie { --reseau: var(--mint); background: var(--mint); color: var(--white); }
.partage-natif { margin: 0 auto 16px; }
.partage-natif[hidden] { display: none; }
/* Mobile : seul le bouton « Partager » (partage natif du téléphone) est proposé */
.partage-mobile .partage-liens, .partage-mobile .partage-statut { display: none; }
.partage-mobile .partage-natif { margin-bottom: 0; }
.partage-natif svg { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -2px; margin-left: 6px; }
.partage-statut { min-height: 1.4em; margin: 10px 0 0; font-size: .9rem; color: var(--text-soft); }
.partage-statut:empty { min-height: 0; margin: 0; }
.partage-contact { margin: 18px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.partage-contact p { margin: 0 0 12px; }

/* Publication : icône de partage à droite de l'auteur */
.publi-auteur { justify-content: space-between; }
.publi-auteur-identite { display: flex; align-items: center; gap: 12px; }
.publi-auteur .bouton-partage { box-shadow: none; }

/* Suppression d'une conversation (icône corbeille dans l'en-tête) */
.msg-effacer { margin-left: auto; }
.msg-effacer-bouton { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--text-soft); cursor: pointer; }
.msg-effacer-bouton:hover, .msg-effacer-bouton:focus-visible { background: #fdecea; color: #8e2216; }
.msg-effacer-bouton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Chargement progressif (/publications) */
.lazy-suite { display: flex; justify-content: center; align-items: center; min-height: 80px; margin-top: 24px; }
.lazy-chargement { display: inline-flex; align-items: center; gap: 10px; color: var(--text-soft); }
.lazy-chargement[hidden], .lazy-plus[hidden] { display: none; }
.lazy-rond { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ice); animation: lazy-tourne .8s linear infinite; }
@keyframes lazy-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lazy-rond { animation: none; } }

/* Grilles de cartes : 3 par ligne, centrées (2 sur tablette, 1 sur mobile) */
.cartes { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; }
@media (max-width: 900px) { .cartes { grid-template-columns: repeat(2, minmax(0, 300px)); } }
@media (max-width: 560px) { .cartes { grid-template-columns: minmax(0, 340px); } }

/* Messagerie : liens, vidéos et aperçus dans les bulles */
.msg:has(.msg-piece) { width: min(420px, 88%); }
.msg-piece { margin: 8px 0 2px; }
.msg-piece .media { margin: 0; }
.msg-piece .media-portrait { max-width: 260px; }
.msg-piece .media-instagram { max-width: 300px; }
.msg-piece .lien-apercu { margin: 0; flex-direction: column; color: var(--text); }
.msg-piece .lien-apercu img { width: 100%; }
.msg-piece .lien-apercu-texte { padding: 10px 12px; font-size: .88rem; }
.msg-moi p a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.msg-autre p a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* Post X intégré */
.media-tweet { aspect-ratio: auto; height: 560px; max-width: 550px; background: #0f1419; }
.media-tweet .media-lancer { background: linear-gradient(160deg, #2f3336, #0f1419 70%); }
.msg-piece .media-tweet { height: 480px; }

/* Messagerie : lien vers le profil de l'interlocuteur */
.msg-fil-identite { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--navy); }
.msg-fil-identite .msg-fil-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.msg-fil-identite:hover .msg-fil-nom { text-decoration: underline; }
.msg-voir-profil { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: 8px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.msg-voir-profil:hover, .msg-voir-profil:focus-visible { border-color: var(--navy); background: var(--cream); }
.msg-voir-profil svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .msg-voir-profil span { display: none; } .msg-voir-profil { padding: 6px; } }

/* Accueil : section « Dernières publications » */
.publis-tout { text-align: center; margin: 32px 0 0; }

/* Mentions légales d'un profil (icône balance + fenêtre) */
.bouton-mentions { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px rgba(15, 40, 64, .1); cursor: pointer; transition: transform .15s; }
.bouton-mentions:hover, .bouton-mentions:focus-visible { transform: translateY(-2px); }
.bouton-mentions svg { width: 20px; height: 20px; }
.mentions-fenetre .partage-interieur { text-align: left; }
.mentions-fenetre .partage-titre { text-align: center; }
.mentions-liste { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.mentions-liste dt { font-weight: 700; color: var(--navy); font-size: .9rem; }
.mentions-liste dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .mentions-liste { grid-template-columns: 1fr; gap: 2px; } .mentions-liste dd { margin-bottom: 10px; } }

/* Profil : icônes des liens sous le nom, sans encadré ; présentation sur toute la largeur */
.pro-identite .pro-reseaux { margin: 14px 0 0; gap: 8px; }
.pro-identite .pro-reseaux a, .pro-identite .bouton-mentions { width: 38px; height: 38px; background: var(--white); border: 1px solid var(--line); box-shadow: none; }
.pro-identite .pro-reseaux a:hover, .pro-identite .bouton-mentions:hover,
.pro-identite .pro-reseaux a:focus-visible, .pro-identite .bouton-mentions:focus-visible { border-color: var(--navy); background: var(--cream); transform: none; }
.pro-identite .pro-reseaux svg, .pro-identite .bouton-mentions svg { width: 18px; height: 18px; }
.pro-corps { grid-template-columns: 1fr; margin-top: 28px; }
.pro-description { max-width: 820px; }

/* Profil : présentation à droite du nom (ordinateur), dessous (tablette / mobile) */
.pro-identite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 40px; align-items: start; }
.pro-identite .pro-description { max-width: none; padding-top: 6px; color: var(--text); }
.pro-corps { margin: 0 0 40px; }
@media (max-width: 900px) {
    .pro-identite { grid-template-columns: 1fr; }
    .pro-identite .pro-description { padding-top: 0; }
}

/* Messagerie refusée (par moi ou par l'autre compte) : message à la place de la zone de saisie */
.msg-bloque { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--cream); color: var(--text-soft); font-size: .95rem; }

/* Profil : titre « Publications » centré */
#titre-publications { text-align: center; }

/* Profil : icônes des liens inversées (fond bleu, tracé couleur de la bordure) */
.pro-identite .pro-reseaux a, .pro-identite .bouton-mentions { background: var(--navy); border-color: var(--navy); }
.pro-identite .pro-reseaux .icone { stroke: var(--line); }
.pro-identite .pro-reseaux .plein { fill: var(--line); }
.pro-identite .pro-reseaux a:hover, .pro-identite .bouton-mentions:hover,
.pro-identite .pro-reseaux a:focus-visible, .pro-identite .bouton-mentions:focus-visible { background: #1d4a73; border-color: #1d4a73; }
.pro-identite .pro-reseaux a:focus-visible, .pro-identite .bouton-mentions:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }

/* Profil : métier principal et badges (autres métiers, statut, recrute, recherche un emploi) */
.pro-metier { margin: 4px 0 0; color: var(--navy); font-weight: 700; font-size: 1.02rem; }
.pro-badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0 0; padding: 0; }
.pro-badges li { padding: 3px 11px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--navy); font-size: .82rem; font-weight: 600; }
.pro-badges .pro-badge-statut { background: var(--ice-pale); border-color: #bfe6f2; }
.pro-badges .pro-badge-recrute { background: #e3f6ec; border-color: #b7e2c9; color: #17603f; }
.pro-badges .pro-badge-emploi { background: #fff1e0; border-color: #f3d1a6; color: #8a4a12; }
.pro-metier .pro-badges { display: inline-flex; margin: 0 0 0 8px; vertical-align: 2px; }
.pro-metier .pro-badge-statut { padding: 2px 10px; border-radius: 999px; background: var(--ice-pale); border: 1px solid #bfe6f2; color: var(--navy); font-size: .8rem; font-weight: 600; }

/* ==========================================================================
   Hashtags : bas de publication, recherche (/publications), éditeur
   ========================================================================== */
.publi-hashtags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.publi-hashtags a { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--ice-pale); border: 1px solid #bfe6f2; color: var(--navy); font-weight: 600; font-size: .92rem; text-decoration: none; transition: background .2s, border-color .2s; }
.publi-hashtags a:hover, .publi-hashtags a:focus-visible { background: #fff; border-color: var(--ice); }

/* Liste de suggestions (recherche et éditeur) */
.hashtag-suggestions { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(15, 40, 64, .16); max-height: 300px; overflow-y: auto; }
.hashtag-suggestions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--navy); font-weight: 600; }
.hashtag-suggestions li small { color: var(--text-soft); font-weight: 400; font-size: .8rem; }
.hashtag-suggestions li[aria-selected="true"], .hashtag-suggestions li:hover { background: var(--ice-pale); }

/* Barre de recherche */
.recherche-hashtag { display: flex; gap: 10px; align-items: stretch; max-width: 640px; margin: 0 0 18px; }
.recherche-hashtag-champ { position: relative; flex: 1; min-width: 0; }
.recherche-hashtag-diese { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ice); font-weight: 800; font-size: 1.15rem; pointer-events: none; }
.recherche-hashtag input { width: 100%; height: 100%; min-height: 50px; font: inherit; color: var(--text); padding: 0 18px 0 40px; border: 1.5px solid #d9cdb4; border-radius: 999px; background: #fffdf9; transition: border-color .2s, box-shadow .2s; }
.recherche-hashtag input:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 4px rgba(47, 178, 216, .18); }
.recherche-hashtag-resultat { margin: 0 0 24px; color: var(--text-soft); }
@media (max-width: 560px) { .recherche-hashtag { flex-direction: column; } .recherche-hashtag input { min-height: 48px; } }

/* Éditeur : étiquettes */
.hashtags-zone { position: relative; }
.hashtags-etiquettes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 52px; padding: 8px 10px; border: 1.5px solid #d9cdb4; border-radius: 10px; background: #fffdf9; cursor: text; transition: border-color .2s, box-shadow .2s; }
.hashtags-etiquettes:focus-within { border-color: var(--ice); box-shadow: 0 0 0 4px rgba(47, 178, 216, .18); }
.hashtag-etiquette { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; }
.hashtag-etiquette button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.hashtag-etiquette button:hover, .hashtag-etiquette button:focus-visible { background: rgba(255, 255, 255, .35); }
.hashtags-saisie { flex: 1; min-width: 140px; border: 0; outline: none; background: transparent; font: inherit; color: var(--text); padding: 6px 4px; }
.hashtags-zone .hashtag-suggestions { top: auto; margin-top: 6px; position: absolute; }

/* Page « Publications » : titre, introduction et recherche centrés */
.page-publications .annuaire-intro, .page-publications .recherche-hashtag-resultat { text-align: center; }
.page-publications .recherche-hashtag { margin-left: 0; margin-right: 0; }
/* Champ de saisie DANS la zone des étiquettes : sans bordure propre (la zone porte la bordure) */
.field .hashtags-etiquettes input.hashtags-saisie,
.field .hashtags-etiquettes input.hashtags-saisie:focus { width: auto; flex: 1; min-width: 140px; border: 0; border-radius: 0; box-shadow: none; outline: none; background: transparent; padding: 6px 4px; }

/* Barres de recherche : loupe ronde orangée à l'intérieur, sans bouton « Rechercher » */
.recherche-loupe, .recherche-bouton { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--orange-btn); color: #fff; cursor: pointer; transition: background .2s, transform .15s; }
.recherche-loupe:hover, .recherche-bouton:hover { background: var(--orange-dk); }
.recherche-loupe:active, .recherche-bouton:active { transform: scale(.94); }
.recherche-loupe:focus-visible, .recherche-bouton:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.recherche-loupe svg, .recherche-bouton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
/* Publications : la loupe dans le champ, à droite */
.recherche-hashtag { display: block; max-width: 640px; }
.recherche-hashtag .recherche-loupe { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); }
.recherche-hashtag .recherche-loupe:active { transform: translateY(-50%) scale(.94); }
.recherche-hashtag input { padding-right: 60px; min-height: 58px; }
/* Page Publications : titre et barre de recherche de la même largeur que la grille des cartes
   (3 × 300px + 2 × 24px ; 2 colonnes sous 900px ; 1 colonne de 340px sous 560px) */
.page-publications h1, .page-publications .hashtag-ariane, .page-publications .recherche-hashtag,
.page-publications .hashtag-suivre, .page-publications .hashtag-compte {
    max-width: 948px; margin-left: auto; margin-right: auto;
}
@media (max-width: 900px) {
    .page-publications h1, .page-publications .hashtag-ariane, .page-publications .recherche-hashtag,
    .page-publications .hashtag-suivre, .page-publications .hashtag-compte { max-width: 624px; }
}
@media (max-width: 560px) {
    .page-publications h1, .page-publications .hashtag-ariane, .page-publications .recherche-hashtag,
    .page-publications .hashtag-suivre, .page-publications .hashtag-compte { max-width: 340px; }
}
/* Trouver un glacier / un candidat : titre, recherche, filtres et encart à la largeur de la grille des cartes */
.annuaire .wrap > :not(.cartes) { max-width: 948px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .annuaire .wrap > :not(.cartes) { max-width: 624px; } }
@media (max-width: 560px) { .annuaire .wrap > :not(.cartes) { max-width: 340px; } }
/* Les 3 pages de recherche : de l'air entre la barre du haut, le titre, la recherche et les cartes */
main.pro.annuaire, main.pro.page-publications { padding-top: 64px; }
.annuaire h1, .page-publications h1 { margin-bottom: 36px; }
.annuaire h1 + .annuaire-intro { margin-top: -26px; margin-bottom: 36px; }
.annuaire .recherche, .page-publications .recherche-hashtag { margin-bottom: 48px; }
@media (max-width: 560px) {
    main.pro.annuaire, main.pro.page-publications { padding-top: 40px; }
    .annuaire h1, .page-publications h1 { margin-bottom: 28px; }
    .annuaire h1 + .annuaire-intro { margin-top: -18px; margin-bottom: 28px; }
    .annuaire .recherche, .page-publications .recherche-hashtag { margin-bottom: 36px; }
}
/* Trouver un glacier : la loupe au bout de la barre */
.recherche-bouton { flex: 0 0 44px; align-self: center; margin-left: 4px; }
@media (max-width: 700px) {
    .recherche-bouton { flex: 0 0 44px; min-height: 0; margin: 6px 0 0 auto; }
}

/* ==========================================================================
   QR code d'un profil ou d'une publication (includes/qrcode.php, assets/js/qrcode-fenetre.js)
   ========================================================================== */
/* Publication : bouton rond à droite du bouton de partage */
.publi-actions { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bouton-qrcode-rond { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; background: var(--white); border: 2px solid var(--line); color: var(--navy); cursor: pointer; transition: background .2s, border-color .2s; }
.bouton-qrcode-rond:hover { background: var(--cream); border-color: var(--navy); }
.bouton-qrcode-rond:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.bouton-qrcode-rond svg { width: 21px; height: 21px; stroke-width: 2; }
@media (max-width: 560px) { .bouton-qrcode-rond { width: 40px; height: 40px; } }

/* Fenêtre (modale) centrée, mêmes codes que la fenêtre de partage */
.qrcode-fenetre { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); color: var(--text); box-shadow: 0 30px 80px -20px rgba(15, 40, 64, .45); overflow-y: auto; }
.qrcode-fenetre::backdrop { background: rgba(15, 40, 64, .55); }
html.qrcode-ouvert { overflow: hidden; }
.qrcode-interieur { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 24px 24px; text-align: center; }
.qrcode-fermer { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 1.8rem; line-height: 1; color: var(--navy); cursor: pointer; }
.qrcode-fermer:hover { background: var(--cream-2); }
.qrcode-fermer:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
.qrcode-nom { margin: 0; padding: 0 32px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.25; color: var(--navy); }
.qrcode-cadre { box-sizing: border-box; width: 100%; max-width: 320px; padding: 12px; background: #fff; border-radius: 18px; box-shadow: 0 10px 28px -14px rgba(15, 40, 64, .35); }
.qrcode-image { display: block; width: 100%; height: auto; }
.qrcode-telecharger { display: inline-flex; align-items: center; gap: 10px; }
.qrcode-telecharger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.qrcode-statut { margin: 0; min-height: 0; font-size: .9rem; color: var(--text-soft); }
.qrcode-statut:empty { display: none; }

/* Mon fil : titre et message d'attente centrés (le message n'existe que tant qu'il n'y a aucune publication) */
.page-fil h1 { text-align: center; }
.page-fil .cartes-vide, .page-fil .fil-vide { text-align: center; }

/* Suivre un hashtag : bouton sur /publications?tag=… et liste dans Mon espace (rubrique Notifications) */
.hashtag-suivre { margin: 0 0 30px; text-align: center; } /* centré, comme la barre de recherche */
.hashtag-suivre form { margin: 0; }
.hashtag-suivre-aide { margin: 8px 0 0; font-size: .9rem; color: var(--text-soft); }
.hashtag-suivre-erreur { margin: 8px 0 0; font-size: .9rem; color: #8e2216; }
.hashtags-suivis-titre { margin: 26px 0 6px; font-size: 1.1rem; }
.hashtags-suivis { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; padding: 0; }
.hashtags-suivis li { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 14px; border: 1.5px solid #bfe6f2; border-radius: 999px; background: var(--ice-pale); }
.hashtags-suivis a { color: var(--navy); font-weight: 700; font-size: .92rem; text-decoration: none; }
.hashtags-suivis a:hover { text-decoration: underline; }
.hashtags-suivis form { margin: 0; display: inline-flex; }
.hashtags-suivis button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--navy); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.hashtags-suivis button:hover, .hashtags-suivis button:focus-visible { background: #fdecea; color: #8e2216; }
.hashtag-ajout { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
.hashtag-ajout-champ { display: inline-flex; align-items: center; gap: 4px; flex: 1 1 220px; max-width: 360px; padding: 0 12px; border: 1.5px solid #d9cdb4; border-radius: 10px; background: #fffdf9; }
.hashtag-ajout-champ span { color: var(--text-soft); font-weight: 700; }
.hashtag-ajout-champ input { flex: 1; min-width: 0; padding: .65em 0; border: 0; background: none; font: inherit; outline: none; }
.hashtag-ajout-champ:focus-within { border-color: var(--ice); box-shadow: 0 0 0 4px rgba(47, 178, 216, .18); }
.hashtags-suivis-bloc { margin: 0 0 36px; padding: 20px 22px; border: 1px solid #bfe6f2; border-radius: var(--radius); background: #f6fcfe; }
.hashtags-suivis-bloc .hashtags-suivis-titre { margin: 0 0 6px; font-size: 1.2rem; }
.hashtags-suivis-bloc .hashtags-suivis li { background: var(--white); }
.notifs-page-titre { margin: 0 0 14px; font-size: 1.2rem; }
.hashtag-ajout-champ { position: relative; } /* ancre de la liste de suggestions */

/* ==========================================================================
   Réactions aux publications (includes/reactions.php, assets/js/reactions.js)
   ========================================================================== */
.reactions { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.bouton-reaction { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; background: var(--white); border: 2px solid var(--line); color: #c8364d; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.bouton-reaction:hover { background: #fdeef1; border-color: #e8a3b0; }
.bouton-reaction:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.bouton-reaction svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bouton-reaction.choisie { background: #fdeef1; border-color: #e8a3b0; }
.bouton-reaction-auteur, .bouton-reaction-auteur:hover { cursor: default; background: var(--white); border-color: var(--line); } /* auteur : affichage seul */
.reaction-actuelle { display: inline-flex; font-size: 1.35rem; line-height: 1; }
.bouton-reaction.rebond { animation: reaction-rebond .35s ease; }
@keyframes reaction-rebond { 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bouton-reaction.rebond { animation: none; } }
/* Choix des 5 réactions : bulle au-dessus du cœur */
.reactions-choix { position: absolute; z-index: 40; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; margin: 0; padding: 6px 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 30px rgba(15, 40, 64, .2); }
.reactions-choix[hidden] { display: none; }
.reactions-choix button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 1.55rem; line-height: 1; cursor: pointer; transition: transform .15s, background .15s; }
.reactions-choix button:hover, .reactions-choix button:focus-visible { transform: translateY(-4px) scale(1.15); background: var(--cream); outline: none; }
.reactions-choix button[aria-checked="true"] { background: #fdeef1; box-shadow: inset 0 0 0 2px #e8a3b0; }
@media (max-width: 560px) {
    .bouton-reaction { width: 40px; height: 40px; }
    .reactions-choix { left: auto; right: -96px; transform: none; } /* calée à droite, au-dessus du partage et du QR code : reste dans l’écran */
    .reactions-choix button { width: 40px; height: 40px; font-size: 1.4rem; }
}
/* Cartes : réactions à côté de la date */
.carte-reactions { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: .8rem; font-weight: 700; }
.carte-reactions > span[aria-hidden] { letter-spacing: -2px; margin-right: 2px; }
/* Compteur de réactions dans le rond (en haut à droite, comme la cloche) */
.bouton-reaction { position: relative; }
.reaction-compteur { position: absolute; top: -4px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 800; line-height: 22px; text-align: center; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.reaction-compteur[hidden] { display: none; }

/* Page Notifications : suppression d'une notification (×) ou de toutes */
.notifs-page-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.notifs-page-entete .notifs-page-titre { margin: 0; }
.notifs-page-entete form { margin: 0; }
.badge-action.badge-supprimer-tout { --badge: #b3261e; }
.notifs-precedentes { display: flex; justify-content: center; margin: 18px 0 0; }
.badge-action.badge-precedentes { --badge: #17789a; padding: 8px 18px; font-size: .9rem; }
html[data-theme="sombre"] .badge-action.badge-precedentes { --badge: #5cc8ea; }
html[data-theme="sombre"] .badge-action.badge-precedentes:hover, html[data-theme="sombre"] .badge-action.badge-precedentes:focus-visible { color: #0f1a24; }
.notifs-page li { display: flex; align-items: center; }
.notifs-page li > a { flex: 1; min-width: 0; }
.notif-supprimer { margin: 0 10px 0 0; flex: none; }
.notif-supprimer button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-soft); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.notif-supprimer button:hover, .notif-supprimer button:focus-visible { background: #fdecea; color: #8e2216; }
.notifs-page li.non-lue { background: var(--ice-pale); } /* fond « non lue » sur toute la ligne, croix comprise */

/* ==========================================================================
   Statistiques (compte/statistiques.php)
   ========================================================================== */
.page-stats .wrap-narrow { max-width: 980px; }
.stats-intro { margin: 0 0 14px; }
.stats-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 22px; }
.stats-tuile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.stats-tuile-valeur { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1.1; color: var(--navy); }
.stats-tuile-libelle { font-size: .85rem; color: var(--text-soft); }
.stats-carte { margin: 0 0 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.stats-carte h2 { margin: 0 0 10px; font-size: 1.2rem; }
.stats-carte h2 span { font-family: inherit; font-weight: 500; font-size: .85rem; color: var(--text-soft); margin-left: 6px; }
.stats-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; padding: 0; list-style: none; font-size: .88rem; color: var(--text); }
.stats-legende li { display: inline-flex; align-items: center; gap: 8px; }
.stats-pastille { width: 14px; height: 4px; border-radius: 2px; }
.stats-graphe { display: block; width: 100%; height: auto; overflow: visible; }
.stats-grille { stroke: #ece6d9; stroke-width: 1; }
.stats-axe { fill: var(--text-soft); font-size: 11px; font-family: inherit; }
.stats-courbe { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.stats-point { fill: var(--white); stroke-width: 2; }
.stats-survol { fill: transparent; }
.stats-survol:hover { fill: rgba(15, 40, 64, .05); }
.stats-donnees { margin-top: 10px; font-size: .88rem; }
.stats-donnees summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.stats-donnees table, .stats-tableau { width: 100%; border-collapse: collapse; margin-top: 8px; }
.stats-donnees th, .stats-donnees td, .stats-tableau th, .stats-tableau td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.stats-donnees th:first-child, .stats-donnees td:first-child, .stats-tableau th:first-child, .stats-tableau td:first-child { text-align: left; }
.stats-tableau th, .stats-donnees th { font-size: .8rem; color: var(--text-soft); font-weight: 700; }
.stats-tableau td { font-variant-numeric: tabular-nums; }
.stats-tableau td a { color: var(--navy); font-weight: 600; text-decoration: none; }
.stats-tableau td a:hover { text-decoration: underline; }
.stats-tableau-defile { overflow-x: auto; }
.stats-barres { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.stats-barres li { display: grid; grid-template-columns: 130px 1fr 52px; align-items: center; gap: 12px; font-size: .9rem; }
.stats-barre-piste { height: 12px; border-radius: 6px; background: var(--cream); overflow: hidden; }
.stats-barre { display: block; height: 100%; min-width: 0; border-radius: 0 4px 4px 0; }
.stats-barre-valeur { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy); }
.stats-note { font-size: .85rem; color: var(--text-soft); }
@media (max-width: 560px) {
    .stats-carte { padding: 16px 14px; }
    .stats-barres li { grid-template-columns: 96px 1fr 40px; gap: 8px; }
    .stats-tuile-valeur { font-size: 1.4rem; }
}

/* ==========================================================================
   Profil : icônes des liens à droite du logo, juste sous la couverture ;
   nom, métier et infos sous le logo, présentation à droite (pro.php)
   ========================================================================== */
.pro-entete .pro-reseaux { position: absolute; left: 0; right: 0; top: calc(100% + 44px); margin: 0; gap: 8px; justify-content: center; z-index: 1; } /* centrées horizontalement */
.pro-entete .pro-reseaux a, .pro-entete .bouton-mentions { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; background: var(--navy); border: 1px solid var(--navy); box-shadow: none; cursor: pointer; transition: background .15s; }
.pro-entete .pro-reseaux .icone { stroke: var(--line); }
.pro-entete .pro-reseaux .plein { fill: var(--line); }
.pro-entete .pro-reseaux svg { width: 18px; height: 18px; }
.pro-entete .pro-reseaux a:hover, .pro-entete .bouton-mentions:hover,
.pro-entete .pro-reseaux a:focus-visible, .pro-entete .bouton-mentions:focus-visible { background: #1d4a73; border-color: #1d4a73; transform: none; }
.pro-entete .pro-reseaux a:focus-visible, .pro-entete .bouton-mentions:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
/* Le nom commence sous le logo (75 px sous la couverture, dont 24 px de marge de l'en-tête) */
.pro-identite { padding: 98px 0 0; min-height: 0; } /* sous les icônes (82 px sous la couverture) + 40 px d’espace */
@media (max-width: 560px) {
    /* Logo 80 px (40 px sous la couverture) ; icônes plus bas pour ne pas toucher le bouton Suivre */
    .pro-entete .pro-reseaux { top: calc(100% + 56px); gap: 6px; }
    .pro-entete .pro-reseaux a, .pro-entete .bouton-mentions { width: 34px; height: 34px; }
    .pro-entete .pro-reseaux svg { width: 16px; height: 16px; }
    .pro-identite { padding-top: 100px; }
}

/* Profil sur mobile : couverture sur toute la largeur, collée sous la barre du haut, sans arrondi ;
   pas d'encart « Vous voyez votre profil tel que le voient les visiteurs » (l'encart « Aperçu » d'un profil non publié reste) */
@media (max-width: 560px) {
    main.pro { padding-top: 0; }
    .pro-entete .pro-couv { margin: 0 -20px; border-radius: 0; }
    .pro-avertissement-visiteur { display: none; }
}

/* Page d'un hashtag (/publications?tag=…) : fil d'Ariane, recherche, H1 (nom du hashtag), suivi,
   puis le nombre de publications au-dessus de la première ligne de cartes */
.hashtag-ariane { text-align: center; margin: 0 0 18px; font-size: .92rem; color: var(--text-soft); }
.hashtag-ariane a { color: var(--text-soft); }
.hashtag-ariane a:hover { color: var(--orange-dk); }
.page-publications .hashtag-titre { margin-top: 0; margin-bottom: 16px; overflow-wrap: anywhere; }
/* Même largeur que la grille de cartes (3 x 300 px + 2 espaces de 24 px, centrée) : le texte démarre au bord de la 1re carte */
.hashtag-compte { max-width: 948px; margin: 0 auto 16px; color: var(--text-soft); }
@media (max-width: 900px) { .hashtag-compte { max-width: 624px; } }
@media (max-width: 560px) { .hashtag-compte { max-width: 340px; } }

/* Bouton de suivi d'un hashtag : fond vert quand le hashtag est suivi (et au moment du clic sur « Suivre ») */
.hashtag-suivre .bouton-suivre.suivi,
.hashtag-suivre .bouton-suivre:not(.suivi):active { background: #1f8a5e; border-color: #1f8a5e; color: #fff; }
/* Survol d'un hashtag suivi : on garde l'alerte rouge « Ne plus suivre » */
.hashtag-suivre .bouton-suivre.suivi:hover,
.hashtag-suivre .bouton-suivre.suivi:focus-visible { background: #fdecea; border-color: #f5c3bc; color: #8e2216; }

/* Mes publications : miniature de l'image de la carte à gauche, titre / statut / actions à droite */
.liste-publis-miniatures li { flex-wrap: nowrap; align-items: center; gap: 16px; }
.liste-publis-mini {
    flex: none; width: 64px; aspect-ratio: 320 / 470; border-radius: 10px; overflow: hidden;
    background: linear-gradient(160deg, var(--ice-pale) 0%, var(--cream-2) 100%);
    box-shadow: 0 2px 6px rgba(15, 40, 64, .15);
}
.liste-publis-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.liste-publis-corps { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
@media (max-width: 700px) {
    /* Mobile : miniature + titre / statut en haut, puis les 4 actions alignées sur toute la largeur */
    .liste-publis-miniatures li {
        display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start;
        gap: 6px 14px; padding: 14px;
    }
    .liste-publis-miniatures .liste-publis-mini { grid-row: 1 / 3; width: 64px; }
    .liste-publis-miniatures .liste-publis-corps { display: contents; }
    .liste-publis-miniatures .titre { grid-column: 2; font-size: .98rem; line-height: 1.35; }
    .liste-publis-miniatures .liste-publis-infos { grid-column: 2; }
    .liste-publis-miniatures .liste-publis-actions {
        grid-column: 1 / -1; width: 100%;
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
        margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line);
    }
    .liste-publis-miniatures .liste-publis-actions .badge-action,
    .liste-publis-miniatures .liste-publis-actions .bouton-partage.badge-action {
        flex-direction: column; justify-content: center; gap: 4px; width: 100%;
        padding: 8px 4px; border-radius: 14px; font-size: .72rem;
    }
    .liste-publis-miniatures .liste-publis-actions .badge-action svg { width: 18px; height: 18px; }
}

/* Mode sombre : boutons d'action (Modifier, Voir, Partager, Supprimer…) en teintes plus claires, bien lisibles sur fond nuit ;
   au survol, fond plein clair et texte foncé */
html[data-theme="sombre"] .liste-publis .badge-action.badge-modifier,
html[data-theme="sombre"] .liste-publis .badge-action.badge-arreter,
html[data-theme="sombre"] .liste-publis .badge-action.badge-retirer   { --badge: #f39a74; }
html[data-theme="sombre"] .liste-publis .badge-action.badge-voir,
html[data-theme="sombre"] .liste-publis .badge-action.badge-debloquer { --badge: #4fd39a; }
html[data-theme="sombre"] .liste-publis .badge-action.badge-partager  { --badge: #5cc8ea; }
html[data-theme="sombre"] .liste-publis .badge-action.badge-supprimer,
html[data-theme="sombre"] .liste-publis .badge-action.badge-bloquer   { --badge: #f47b72; }
html[data-theme="sombre"] .liste-publis .badge-action:hover,
html[data-theme="sombre"] .liste-publis .badge-action:focus-visible,
html[data-theme="sombre"] .liste-publis .bouton-partage.badge-action:hover { color: #0f1a24; }

/* Statistiques, « Vos publications » sur mobile : titre sur toute la largeur, puis les 4 chiffres en colonnes dessous */
@media (max-width: 700px) {
    .stats-tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .stats-tableau, .stats-tableau tbody { display: block; }
    .stats-tableau tr {
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px;
        padding: 12px 0; border-bottom: 1px solid var(--line);
    }
    .stats-tableau td { display: block; padding: 0; border: 0; text-align: center; }
    .stats-tableau td.stats-titre { grid-column: 1 / -1; text-align: left; line-height: 1.35; }
    .stats-tableau td[data-libelle] { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
    .stats-tableau td[data-libelle]::before {
        content: attr(data-libelle); display: block; margin-bottom: 2px;
        font-size: .72rem; font-weight: 700; color: var(--text-soft);
    }
}

/* Statistiques, « Vos publications » : une couleur par colonne (Vues, Réactions, Partages, QR code) */
.stats-tableau { --c-vues: #17789a; --c-reactions: #b83262; --c-partages: #187650; --c-qr: #6a4fc4; }
html[data-theme="sombre"] .stats-tableau { --c-vues: #5cc8ea; --c-reactions: #f48fb1; --c-partages: #4fd39a; --c-qr: #ab9df2; }
.stats-tableau :is(th, td):nth-child(2) { --c: var(--c-vues); }
.stats-tableau :is(th, td):nth-child(3) { --c: var(--c-reactions); }
.stats-tableau :is(th, td):nth-child(4) { --c: var(--c-partages); }
.stats-tableau :is(th, td):nth-child(5) { --c: var(--c-qr); }
.stats-tableau :is(th, td):not(:first-child) { color: var(--c); }
.stats-tableau td:not(:first-child) { font-weight: 700; }
@media (max-width: 700px) {
    /* Mobile : chaque chiffre dans une pastille teintée de sa couleur */
    .stats-tableau td[data-libelle] {
        color: var(--c); padding: 8px 4px; border-radius: 12px;
        background: color-mix(in srgb, var(--c) 12%, transparent);
        border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
    }
    .stats-tableau td[data-libelle]::before { color: var(--c); opacity: .85; }
}

/* Mon fil : même largeur de page que /publications, pour des cartes de la même taille (3 x 300 px) */
.page-fil .wrap-narrow { max-width: var(--wrap); }

/* Messagerie : le lecteur Instagram exige au moins 326 px de large, sinon il n'affiche qu'une version
   réduite qui renvoie vers Instagram au lieu de jouer la vidéo. La bulle qui contient un post / Reel Instagram
   s'élargit donc (sans la limite des 75 %) et ses marges intérieures se resserrent. */
.msg:has(.msg-piece .media-instagram) { max-width: none; width: min(380px, 100%); padding-left: 8px; padding-right: 8px; }
.msg-piece .media-instagram { max-width: none; width: 100%; min-width: 326px; }
.msg:has(.msg-piece .media-instagram) p, .msg:has(.msg-piece .media-instagram) time { padding: 0 6px; }

/* ── Commentaires des publications (publication.php) ── */
.commentaires { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.commentaires h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; margin: 0 0 18px; }
.commentaires-nombre { min-width: 28px; padding: 2px 9px; border-radius: 999px; background: var(--cream); color: var(--navy); font-size: .85rem; text-align: center; }
.commentaires-vide { color: var(--text-soft); }
.commentaires-liste { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.commentaire { display: flex; gap: 12px; align-items: flex-start; }
.commentaire-logo { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
span.commentaire-logo { display: grid; place-items: center; font-size: 1rem; }
.commentaire-corps { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 4px 18px 18px 18px; background: var(--cream); }
.commentaire-attente .commentaire-corps { background: transparent; border: 1.5px dashed var(--waffle); }
.commentaire-entete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 4px; font-size: .9rem; }
.commentaire-entete a, .commentaire-entete strong { color: var(--navy); font-weight: 700; text-decoration: none; }
.commentaire-entete a:hover { text-decoration: underline; }
.commentaire-entete time { color: var(--text-soft); font-size: .8rem; }
.commentaire-badge { padding: 1px 8px; border-radius: 999px; background: #fdf0d8; color: #8a5a12; font-size: .72rem; font-weight: 700; }
.commentaire-texte { line-height: 1.6; overflow-wrap: anywhere; }
.commentaire-texte a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.commentaire-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.commentaire-actions form { margin: 0; }
.commentaire-actions .badge-action.badge-voir { --badge: #187650; }
.commentaire-actions .badge-action.badge-supprimer { --badge: #b3261e; }
.commentaire-message { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: #e6f6ee; color: #14613f; font-weight: 600; }
.commentaire-message-erreur { background: #fdecea; color: #8e2216; }
.commentaire-form textarea {
    width: 100%; min-height: 90px; padding: 12px 14px; resize: vertical;
    border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); color: var(--text); font: inherit;
}
.commentaire-form textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 4px rgba(47, 178, 216, .18); }
.commentaire-form-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.commentaire-aide { margin: 0; font-size: .85rem; color: var(--text-soft); }
.commentaire-connexion { margin: 0; }
.commentaire-prive { margin: 18px 0 0; font-size: .9rem; color: var(--text-soft); }
.commentaire-prive a { color: var(--navy); }
html[data-theme="sombre"] .commentaire-badge { background: #3a2c12; color: #f5c46b; }
html[data-theme="sombre"] .commentaire-message { background: #123627; color: #8fe0b8; }
html[data-theme="sombre"] .commentaire-message-erreur { background: #3b1714; color: #f5a39b; }
html[data-theme="sombre"] .commentaire-actions .badge-action.badge-voir { --badge: #4fd39a; }
html[data-theme="sombre"] .commentaire-actions .badge-action.badge-supprimer { --badge: #f47b72; }
html[data-theme="sombre"] .commentaire-actions .badge-action:hover { color: #0f1a24; }

/* Éditeur : réglage des commentaires */
.commentaires-reglage .case-ligne { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 400; font-size: .92rem; }
.commentaires-reglage .field-aide { margin: 8px 0 0; font-size: .85rem; color: var(--text-soft); }
.commentaire-avatar { flex: none; display: block; border-radius: 50%; transition: transform .2s; }
.commentaire-avatar:hover { transform: scale(1.06); }

/* Publication : bouton rond « Commentaires » (après le cœur), compteur comme les réactions ; clic -> #commentaires */
.bouton-commentaire {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 2px solid var(--line);
    color: #17789a; text-decoration: none; transition: background .2s, border-color .2s;
}
.bouton-commentaire:hover { background: var(--ice-pale); border-color: #8fd0e6; }
.bouton-commentaire:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.bouton-commentaire svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="sombre"] .bouton-commentaire { color: #5cc8ea; }
html[data-theme="sombre"] .bouton-commentaire:hover { border-color: #5cc8ea; }

/* Cartes : nombre de commentaires à côté des réactions */
.carte-commentaires { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: .8rem; font-weight: 700; }
.carte-commentaires svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Mobile : la ligne des boutons (cœur, commentaires, partage, QR code) passe sous le nom de l'auteur */
@media (max-width: 560px) {
    .publi-auteur { flex-wrap: wrap; row-gap: 14px; }
    .publi-actions { width: 100%; gap: 12px; justify-content: flex-end; } /* calées à droite */
    .bouton-commentaire { width: 40px; height: 40px; }
    /* Bulle des réactions calée sur le bord droit de l'écran : décalage selon le nombre de boutons à droite du cœur (40 px + 12 px chacun) */
    .reactions-choix { left: auto; right: -202px; transform: none; } /* commentaires + republier + partage + QR code */
    .publi-actions:not(:has(.bouton-commentaire)) .reactions-choix,
    .publi-actions:not(:has(.bouton-republier)) .reactions-choix { right: -150px; }
    .publi-actions:not(:has(.bouton-commentaire)):not(:has(.bouton-republier)) .reactions-choix { right: -98px; }
    .bouton-republier { width: 40px; height: 40px; }
}

/* Réactions en icônes SVG (includes/reactions.php) : trait de la couleur de la réaction, remplissage léger */
.reactions .reaction-icone {
    width: 26px; height: 26px; stroke: var(--r); fill: var(--r); fill-opacity: .2;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.reactions .reaction-coeur { fill-opacity: .9; } /* cœur choisi : plein */
.bouton-reaction .reaction-icone { width: 23px; height: 23px; }
.reactions-choix button .reaction-icone { width: 28px; height: 28px; }
.reactions-choix button[aria-checked="true"] .reaction-icone { fill-opacity: .45; }
@media (max-width: 560px) { .bouton-reaction .reaction-icone { width: 20px; height: 20px; } .reactions-choix button .reaction-icone { width: 25px; height: 25px; } }

/* Cartes : les 3 réactions les plus choisies dans des pastilles rondes de leur couleur, qui se chevauchent */
.carte-reacs { display: inline-flex; align-items: center; letter-spacing: 0 !important; margin-right: 3px; }
.carte-reac {
    display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    background: var(--r); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35);
}
.carte-reac + .carte-reac { margin-left: -5px; }
.carte-reac-ico { width: 12px; height: 12px; stroke: #fff; fill: #fff; fill-opacity: .3; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carte-reac-ico.reaction-coeur { fill-opacity: 1; }

/* ── Republication sur son profil (publication.php, pro.php) ── */
.republier { margin-top: 28px; }
.republier-bouton {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
    border: 2px solid var(--line); border-radius: 999px; background: var(--white);
    color: var(--navy); font-weight: 700; text-decoration: none; cursor: pointer; list-style: none;
    transition: background .2s, border-color .2s;
}
.republier-bouton::-webkit-details-marker { display: none; }
.republier-bouton:hover { background: var(--cream); border-color: var(--waffle); }
.republier-bouton svg, .republier-fait svg, .republie-par svg {
    width: 22px; height: 22px; flex: none; fill: none; stroke: #d08a2e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.republier-details[open] .republier-bouton { background: var(--cream); border-color: var(--waffle); }
.republier-form { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.republier-form label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--navy); }
.republier-form textarea {
    width: 100%; padding: 10px 14px; resize: vertical; border: 1.5px solid var(--line); border-radius: 14px;
    background: var(--white); color: var(--text); font: inherit;
}
.republier-form textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 4px rgba(47, 178, 216, .18); }
.republier-fait { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px; border-radius: 16px; background: var(--cream); }
.republier-fait p { display: flex; align-items: center; gap: 10px; margin: 0; }
.republier-fait a { color: var(--navy); font-weight: 700; }
.republier-fait form { margin: 0; }
.republier-fait .badge-action.badge-supprimer { --badge: #b3261e; }
html[data-theme="sombre"] .republier-fait .badge-action.badge-supprimer { --badge: #f47b72; }
html[data-theme="sombre"] .republier-fait .badge-action:hover { color: #0f1a24; }

/* Profil : cartes republiées (bandeau « Republié par … » et petit mot au-dessus de la carte d'origine) */
.section-republiees { margin-top: 40px; }
.carte-republiee { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.republie-par { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .85rem; font-weight: 700; color: var(--text-soft); }
.republie-par svg { width: 18px; height: 18px; }
.republie-note { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--cream); font-size: .9rem; font-style: italic; color: var(--text); overflow-wrap: anywhere; }

/* Profil privé vu par un membre non abonné (pro.php) */
.pro-prive {
    display: flex; align-items: center; gap: 16px; max-width: 640px; margin: 30px auto; padding: 22px 24px;
    border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--cream); color: var(--text);
}
.pro-prive svg { width: 36px; height: 36px; flex: none; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pro-prive p { margin: 0; line-height: 1.55; }
.pro-prive strong { color: var(--navy); }

/* Publication : bouton rond « Republier » (cornet), entre Commentaires et Partager */
.bouton-republier {
    display: inline-flex; align-items: center; justify-content: center; padding: 0;
    width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 2px solid var(--line);
    color: #c97a1e; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s;
}
.bouton-republier:hover { background: #fdf3e2; border-color: #e6b36a; }
.bouton-republier:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.bouton-republier svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bouton-republier.choisie { background: #fdf3e2; border-color: #e6b36a; }
.bouton-republier.choisie svg { fill: currentColor; fill-opacity: .25; }
html[data-theme="sombre"] .bouton-republier { color: #f0b45c; }
html[data-theme="sombre"] .bouton-republier:hover, html[data-theme="sombre"] .bouton-republier.choisie { background: #3a2c12; border-color: #f0b45c; }
@media (max-width: 560px) { .bouton-republier { width: 40px; height: 40px; } }
/* Fenêtre de republication */
.republier-fenetre .republier-form { margin: 0; padding: 0; border: 0; background: none; }
.republier-fenetre .republier-form p { margin: 0 0 14px; line-height: 1.55; }
.republier-fenetre .republier-form .commentaire-aide { margin: 6px 0 14px; }

/* Cartes : badge « Republié » (cornet) sur les publications republiées d'un profil */
.carte-republie {
    position: absolute; z-index: 2; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px 3px 7px; border-radius: 12px; background: rgba(255, 255, 255, .94); color: #b8641a;
    font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.carte-republie svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Alignement des boutons ronds d'une publication : même taille, même épaisseur de bord, icônes de même taille ── */
.publi-actions { align-items: center; }
.publi-actions :is(.bouton-reaction, .bouton-commentaire, .bouton-republier, .bouton-partage, .bouton-qrcode-rond) {
    position: relative; flex: none; width: 48px; height: 48px; padding: 0; border-width: 2px; box-sizing: border-box;
}
.publi-actions :is(.bouton-commentaire, .bouton-republier, .bouton-partage, .bouton-qrcode-rond) > svg,
.publi-actions .bouton-reaction .reaction-actuelle > svg { width: 22px; height: 22px; stroke-width: 2; }
.publi-actions .reactions { display: inline-flex; }
.bouton-republier-auteur, .bouton-republier-auteur:hover { cursor: default; background: var(--white); border-color: var(--line); }
@media (max-width: 560px) {
    .publi-actions :is(.bouton-reaction, .bouton-commentaire, .bouton-republier, .bouton-partage, .bouton-qrcode-rond) { width: 40px; height: 40px; }
    .publi-actions :is(.bouton-commentaire, .bouton-republier, .bouton-partage, .bouton-qrcode-rond) > svg,
    .publi-actions .bouton-reaction .reaction-actuelle > svg { width: 19px; height: 19px; }
}

/* ── Cartes : la date puis les compteurs (réactions, commentaires, republications), alignés sur une ligne ── */
.carte-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .8rem; line-height: 1; }
.carte-meta .carte-date { opacity: .85; }
.carte-stats { display: inline-flex; align-items: center; gap: 12px; }
.carte-stat { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.carte-stat-ico { display: inline-flex; align-items: center; justify-content: center; height: 20px; }
.carte-stat-ico > svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.carte-stat-nb { font-variant-numeric: tabular-nums; }
/* Carte republiée : le nom de l'auteur s'arrête avant le badge « Republié » (coin en haut à droite) */
.carte:has(.carte-republie) .carte-auteur { right: 122px; }

/* Statistiques, « Vos publications » : colonne Republications (cornet, caramel), entre Réactions et Partages */
.stats-tableau { --c-rep: #b8641a; }
html[data-theme="sombre"] .stats-tableau { --c-rep: #f0b45c; }
.stats-tableau :is(th, td):nth-child(4) { --c: var(--c-rep); }
.stats-tableau :is(th, td):nth-child(5) { --c: var(--c-partages); }
.stats-tableau :is(th, td):nth-child(6) { --c: var(--c-qr); }
@media (max-width: 700px) {
    .stats-tableau tr { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 5px; }
    .stats-tableau td[data-libelle] { padding: 8px 2px; }
    .stats-tableau td[data-libelle]::before { font-size: .66rem; }
}

/* Statistiques, « Vos publications » : icône au-dessus du libellé de chaque colonne (couleur de la colonne) */
.stats-th { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.stats-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.stats-lib-mobile { display: none; }
@media (max-width: 700px) {
    /* Mobile : icône + libellé court au-dessus du chiffre (remplace le libellé texte seul) */
    .stats-tableau td[data-libelle]::before { content: none; }
    .stats-lib-mobile {
        display: flex; flex-direction: column; align-items: center; gap: 3px; margin-bottom: 4px;
        font-size: .66rem; font-weight: 700; color: var(--c); opacity: .9;
    }
    .stats-lib-mobile .stats-ico { width: 17px; height: 17px; }
}

/* Statistiques sur ordinateur : titres des publications sur une ligne (coupés par « … », titre complet au survol),
   libellés des colonnes sur une seule ligne */
.stats-th, .stats-th span { white-space: nowrap; }
@media (min-width: 701px) {
    .stats-tableau td.stats-titre { width: 100%; max-width: 0; }
    .stats-tableau td.stats-titre a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .stats-tableau th:not(:first-child), .stats-tableau td:not(:first-child) { padding-left: 16px; }
}

/* Statistiques : ligne « Total » en bas du tableau « Vos publications » */
.stats-tableau tfoot th, .stats-tableau tfoot td { border-bottom: 0; border-top: 2px solid var(--line); padding-top: 12px; font-weight: 800; }
.stats-tableau tfoot th { text-align: left; color: var(--navy); }
@media (max-width: 700px) {
    .stats-tableau tfoot { display: block; }
    .stats-tableau tfoot tr { border-bottom: 0; border-top: 2px solid var(--line); }
    .stats-tableau tfoot th, .stats-tableau tfoot td { border-top: 0; padding-top: 0; }
    .stats-tableau tfoot th.stats-titre { display: block; grid-column: 1 / -1; padding: 0; }
}

/* Statistiques : tri du tableau « Vos publications » (assets/js/stats-tri.js) */
.stats-tri {
    display: inline-flex; align-items: flex-end; gap: 4px; padding: 0; border: 0; background: none;
    color: inherit; font: inherit; font-weight: inherit; cursor: pointer; text-align: inherit;
}
.stats-tri:hover .stats-th span, .stats-tri:focus-visible .stats-th span { text-decoration: underline; text-underline-offset: 3px; }
.stats-tri:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
.stats-fleche { min-width: .8em; font-size: .7rem; line-height: 1.6; }
.stats-tableau th:first-child .stats-th { align-items: flex-start; }
.stats-tri-mobile[hidden] { display: none !important; }
.stats-tri-mobile { display: none; }
@media (max-width: 700px) {
    .stats-tri-mobile { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
    .stats-tri-mobile label { font-size: .85rem; font-weight: 700; color: var(--text-soft); }
    .stats-tri-mobile select {
        flex: 1; min-width: 0; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px;
        background: var(--white); color: var(--text); font: inherit; font-size: .9rem;
    }
    .stats-tri-sens {
        flex: none; width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 12px;
        background: var(--white); color: var(--navy); font-size: .9rem; cursor: pointer;
    }
}

/* ── Publication : boutons d'action sans bordure ronde, compteur à droite de l'icône (comme Instagram) ── */
html .publi-actions { gap: 6px; }
html .publi-actions :is(.bouton-reaction, .bouton-commentaire, .bouton-republier, .bouton-partage, .bouton-qrcode-rond) {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: auto; min-width: 44px; height: 44px; padding: 0 6px; border: 0; border-radius: 10px;
    background: none; box-shadow: none;
}
html .publi-actions :is(.bouton-reaction, .bouton-commentaire, .bouton-republier, .bouton-partage, .bouton-qrcode-rond):is(:hover, :focus-visible, .choisie) {
    background: rgba(127, 127, 127, .12); border: 0;
}
html .publi-actions :is(.bouton-reaction-auteur, .bouton-republier-auteur):hover { background: none; }
html .publi-actions :is(.bouton-commentaire, .bouton-republier, .bouton-partage, .bouton-qrcode-rond) > svg,
html .publi-actions .bouton-reaction .reaction-actuelle > svg { width: 26px; height: 26px; }
html .publi-actions .reaction-actuelle { display: inline-flex; }
html .publi-actions .reaction-compteur {
    position: static; min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none;
    color: var(--text); font-size: 1rem; font-weight: 600; line-height: 1;
}
html .publi-actions .reaction-compteur[hidden] { display: none; }
@media (max-width: 560px) {
    html .publi-actions { gap: 2px; }
    html .publi-actions :is(.bouton-reaction, .bouton-commentaire, .bouton-republier, .bouton-partage, .bouton-qrcode-rond) { min-width: 40px; height: 40px; padding: 0 5px; }
    html .publi-actions :is(.bouton-commentaire, .bouton-republier, .bouton-partage, .bouton-qrcode-rond) > svg,
    html .publi-actions .bouton-reaction .reaction-actuelle > svg { width: 24px; height: 24px; }
    /* Bulle des réactions calée sur le bord droit de la ligne de boutons, quelle que soit la largeur des compteurs */
    html .publi-actions { position: relative; }
    html .publi-actions .reactions { position: static; }
    html .publi-actions .reactions-choix { left: auto; right: 0; transform: none; }

    /* Cartes annexes sous la publication : pleine largeur */
    .publi-cote-cartes { grid-template-columns: minmax(0, 1fr); }
    .publi-cote-cartes .carte { max-width: none; }
}
/* Mode sombre : aucun fond derrière les icônes ni derrière les compteurs (la règle « fonds bleu marine » de style.css ne s'applique pas ici) */
html[data-theme="sombre"] .publi-actions :is(.reactions, a, button, span) .reaction-compteur { background: none; border-color: transparent; color: var(--text); }
html[data-theme="sombre"] .publi-actions :is(.bouton-reaction, .bouton-commentaire, .bouton-republier, .bouton-partage, .bouton-qrcode-rond):is(:hover, :focus-visible, .choisie) { background: none; }

/* Cartes de publications : la date sous le nom de l'auteur */
.carte-publi .carte-auteur-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.2; }
.carte-publi .carte-auteur-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-publi .carte-auteur .carte-date { font-size: .75rem; font-weight: 500; opacity: .9; white-space: nowrap; }
/* Cartes de publications : compteurs sous le titre (réactions, commentaires, republications), icônes et nombres en blanc */
.carte-publi .carte-bas { bottom: 12px; }
.carte-compteurs { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 16px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.carte-compteurs .carte-stat { gap: 6px; font-size: .95rem; font-weight: 700; }
.carte-compteurs .carte-stat-ico { height: 22px; }
.carte-compteurs .carte-stat-ico > svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
/* Publication : icônes et compteurs des boutons d'action en bleu (mode clair) ou en blanc (mode sombre).
   La bulle de choix des 5 réactions garde ses couleurs. */
html .publi-actions :is(.bouton-reaction, .bouton-commentaire, .bouton-republier, .bouton-partage, .bouton-qrcode-rond) { color: #173a5e; }
html .publi-actions :is(.bouton-commentaire, .bouton-republier, .bouton-partage, .bouton-qrcode-rond) > svg,
html .publi-actions .bouton-reaction svg { stroke: currentColor; }
html .publi-actions .bouton-reaction .reaction-icone { stroke: currentColor; fill: currentColor; }
html .publi-actions .reaction-compteur { color: #173a5e; }
html[data-theme="sombre"] .publi-actions :is(.bouton-reaction, .bouton-commentaire, .bouton-republier, .bouton-partage, .bouton-qrcode-rond) { color: #fff; }
html[data-theme="sombre"] .publi-actions :is(.reactions, a, button, span) .reaction-compteur { color: #fff; }

/* ==========================================================================
   Favoris (includes/favoris.php, compte/favoris.php, assets/js/favoris.js)
   ========================================================================== */
/* Carte : étoile en haut à droite ; le badge « Republiée » passe juste en dessous */
.carte-favori {
    position: absolute; z-index: 3; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff;
    cursor: pointer; text-decoration: none; transition: background .2s, transform .15s;
}
.carte-favori:hover { background: rgba(0, 0, 0, .55); transform: scale(1.06); }
.carte-favori:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.carte-favori svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.carte-favori.choisie { color: #ffc93c; }
.carte-favori.choisie svg { fill: currentColor; }
.carte-publi .carte-auteur { right: 64px; }
.carte:has(.carte-republie) .carte-auteur { right: 64px; }
.carte-publi .carte-republie { top: 62px; }

/* Publication : étoile dans la rangée des actions, même présentation que les autres boutons */
html .publi-actions .bouton-favori {
    position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: auto; min-width: 44px; height: 44px; padding: 0 6px; border: 0; border-radius: 10px;
    background: none; box-shadow: none; color: #173a5e; cursor: pointer; text-decoration: none;
}
html .publi-actions .bouton-favori > svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
html .publi-actions .bouton-favori:is(:hover, :focus-visible) { background: rgba(127, 127, 127, .12); }
html .publi-actions .bouton-favori.choisie > svg { fill: currentColor; }
html[data-theme="sombre"] .publi-actions .bouton-favori { color: #fff; }
html[data-theme="sombre"] .publi-actions .bouton-favori:is(:hover, :focus-visible) { background: none; }
@media (max-width: 560px) {
    html .publi-actions .bouton-favori { min-width: 40px; height: 40px; padding: 0 5px; }
    html .publi-actions .bouton-favori > svg { width: 24px; height: 24px; }
}

/* Fenêtre « Enregistrer dans vos favoris » */
.favori-fenetre .partage-interieur { text-align: left; }
.favori-fenetre .partage-titre { text-align: left; padding: 0 44px 0 0; }
.favori-form { margin: 0; }
.favori-themes { display: grid; gap: 10px; max-height: min(320px, 45vh); overflow-y: auto; margin: 0 0 16px; padding: 2px 4px 2px 2px; border: 0; }
.favori-theme {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px;
    background: var(--white); cursor: pointer; transition: border-color .15s, background .15s;
}
.favori-theme:hover { border-color: #8cc9e8; }
.favori-theme:has(input:checked) { border-color: #1d9bd1; background: #eef8fd; }
.favori-theme input { width: 20px; height: 20px; margin: 0; accent-color: #1d9bd1; flex: none; }
.favori-theme-nom { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favori-theme-nb { flex: none; font-size: .85rem; color: var(--text-soft); }
html[data-theme="sombre"] .favori-theme:has(input:checked) { background: #12324a; }
.favori-nouveau { display: flex; gap: 10px; margin: 0 0 14px; }
.favori-nouveau input { flex: 1; min-width: 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); color: var(--text); font: inherit; }
.favori-nouveau .btn { flex: none; white-space: nowrap; }
.favori-erreur { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #8e2216; }
.favori-erreur[hidden] { display: none; }
.favori-boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.favori-boutons .favori-retirer { color: #b3261e; border-color: #b3261e; }
.favori-boutons .favori-retirer:hover { background: #b3261e; color: #fff; }
.favori-boutons .favori-retirer[hidden] { display: none; }
@media (max-width: 520px) {
    .favori-nouveau { flex-direction: column; }
}

/* Page Mes favoris : tuiles des thèmes */
.page-favoris .wrap-narrow { max-width: var(--wrap); }
.page-favoris h1 { text-align: center; }
.favoris-intro { text-align: center; margin: 0 auto 28px; max-width: 640px; color: var(--text-soft); }
.favoris-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px; }
.favoris-tuile {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--white); color: var(--text);
    text-decoration: none; box-shadow: 0 6px 18px rgba(15, 40, 64, .12); transition: transform .2s, box-shadow .2s;
}
.favoris-tuile:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -8px rgba(15, 40, 64, .3); }
.favoris-tuile:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }
.favoris-tuile-image { display: block; aspect-ratio: 3 / 2; background: #1b2a44; }
.favoris-tuile-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.favoris-tuile-nom { padding: 14px 12px 2px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favoris-tuile-nb { padding: 0 12px 16px; text-align: center; color: var(--text-soft); }
html[data-theme="sombre"] .favoris-tuile { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.favoris-nouveau { max-width: 520px; margin: 36px auto 0; padding: 0; border: 0; background: none; }
.favoris-nouveau label { display: block; font-weight: 700; margin: 0 0 8px; }
.favoris-nouveau-ligne { display: flex; gap: 10px; }
.favoris-nouveau-ligne input { flex: 1; min-width: 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); color: var(--text); font: inherit; }
/* Page d'un thème */
.favoris-entete { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: -6px 0 32px; }
.favoris-retour { display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--cream-2); color: var(--navy); text-decoration: none; font-weight: 600; }
.favoris-retour:hover { text-decoration: underline; }
.favoris-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px; }
.favoris-actions form { margin: 0; padding: 0; border: 0; background: none; }
.favoris-renommer summary { list-style: none; cursor: pointer; }
.favoris-renommer summary::-webkit-details-marker { display: none; }
.favoris-renommer[open] summary { display: none; }
.favoris-renommer form { display: flex; gap: 8px; }
.favoris-renommer input { padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); color: var(--text); font: inherit; }
.favoris-supprimer { color: #b3261e; border-color: #b3261e; }
.favoris-supprimer:hover { background: #b3261e; border-color: #b3261e; color: #fff; }

/* Statistiques : colonne Favoris (étoile, doré) entre Republiées et Partages */
.stats-tableau { --c-fav: #a87800; }
html[data-theme="sombre"] .stats-tableau { --c-fav: #ffc93c; }
.stats-tableau :is(th, td):nth-child(5) { --c: var(--c-fav); }
.stats-tableau :is(th, td):nth-child(6) { --c: var(--c-partages); }
.stats-tableau :is(th, td):nth-child(7) { --c: var(--c-qr); }
@media (max-width: 700px) {
    .stats-tableau tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Icône « Commenter » pleine (bulle à trois points) : remplissage au lieu du trait */
svg.ico-plein { fill: currentColor !important; stroke: none !important; }
html .publi-actions .bouton-commentaire > svg.ico-plein { width: 24px; height: 24px; }
.carte-compteurs .carte-stat-ico > svg.ico-plein { width: 18px; height: 18px; }
@media (max-width: 560px) { html .publi-actions .bouton-commentaire > svg.ico-plein { width: 22px; height: 22px; } }

/* Titre tronqué d'une carte : les points de suspension prennent la couleur du titre (blanc), pas celle des titres h3 du site */
.carte .carte-titre, html[data-theme="sombre"] .carte .carte-titre { color: #fff; }

/* Cartes : les 4 icônes du bas sont cliquables (réagir, commenter, republier, enregistrer) ; plus d'étoile en haut à droite */
.carte-compteurs .carte-action {
    display: inline-flex; align-items: center; gap: 6px; margin: -6px -6px; padding: 6px; border: 0; border-radius: 10px;
    background: none; color: #fff; font: inherit; font-size: .95rem; font-weight: 700; text-decoration: none; text-shadow: inherit;
    cursor: pointer; pointer-events: auto; transition: transform .15s, background .15s;
}
.carte-compteurs .carte-action:hover { background: rgba(255, 255, 255, .14); transform: scale(1.06); }
.carte-compteurs .carte-action:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.carte-compteurs .carte-action.choisie svg { fill: currentColor; }
.carte-compteurs .carte-stat-reactions.choisie { color: #ff6b8f; }
.carte-compteurs .carte-stat-favoris.choisie { color: #ffc93c; }
.carte-compteurs .carte-action.rebond .carte-stat-ico { animation: reaction-rebond .35s ease; }
.carte-publi .carte-auteur { right: 16px; }
.carte:has(.carte-republie) .carte-auteur { right: 122px; }
.carte-publi .carte-republie { top: 14px; }
.carte-compteurs .carte-action .carte-stat-ico > svg { stroke: currentColor; }
.carte-compteurs .carte-action.choisie .carte-stat-ico > svg { fill: currentColor; }

/* Publication : le cœur est un « J'aime » direct (formulaire sans le style des formulaires du site) */
.reactions-form { display: inline-flex; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }

/* Brouillons automatiques (assets/js/brouillon-auto.js, compte/brouillons.php) */
.brouillon-auto-lien { margin-bottom: 20px; }
.brouillon-auto-lien a { color: inherit; font-weight: 700; text-decoration: underline; }
.brouillon-auto-etat { align-self: center; color: var(--text-soft); font-size: .85rem; }
.brouillon-auto-etat a { color: inherit; text-decoration: underline; }
.brouillons-intro { color: var(--text-soft); }
.brouillon-extrait { flex-basis: 100%; color: var(--text-soft); font-size: .9rem; overflow-wrap: anywhere; }

/* Commentaire privé (visible seulement par l'auteur de la publication et par celui qui l'a écrit) */
.commentaire-badge.commentaire-badge-prive { background: #ece7fb; color: #4b3a8c; }
html[data-theme="sombre"] .commentaire-badge.commentaire-badge-prive { background: #2f2752; color: #d6ccff; }

/* Statistiques : colonne Commentaires (bleu roi) entre Réactions et Republiées → colonnes décalées d'un cran */
.stats-tableau { --c-com: #2c4fc0; }
html[data-theme="sombre"] .stats-tableau { --c-com: #9db5ff; }
.stats-tableau :is(th, td):nth-child(4) { --c: var(--c-com); }
.stats-tableau :is(th, td):nth-child(5) { --c: var(--c-rep); }
.stats-tableau :is(th, td):nth-child(6) { --c: var(--c-fav); }
.stats-tableau :is(th, td):nth-child(7) { --c: var(--c-partages); }
.stats-tableau :is(th, td):nth-child(8) { --c: var(--c-qr); }
@media (max-width: 700px) {
    .stats-tableau tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Statistiques (ordinateur) : icône centrée au-dessus de son libellé */
.stats-tableau thead th:not(:first-child) .stats-th { align-items: center; }

/* CV d'un profil (employé, étudiant / apprenti) : fenêtre ouverte par l'icône CV (includes/cv.php) */
.cv-fenetre { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; }
.cv-titre { margin: 0 0 14px; text-align: center; font-size: 1.15rem; font-weight: 700; color: var(--orange); }
.cv-infos { margin: 0 0 6px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.cv-infos dt { font-weight: 700; color: var(--navy); font-size: .9rem; }
.cv-infos dd { margin: 0; overflow-wrap: anywhere; }
.cv-rubrique { margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--navy); }
.cv-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.cv-liste li { display: grid; gap: 2px; }
.cv-liste .cv-lieu { color: var(--text); }
.cv-liste .cv-dates { color: var(--text-soft); font-size: .88rem; }
.cv-liste p, .cv-fenetre .partage-interieur > p:not(.partage-titre):not(.cv-titre):not(.cv-contact) { margin: 4px 0 0; overflow-wrap: anywhere; }
.cv-pastilles { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cv-pastilles li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.cv-pastilles li span { color: var(--text-soft); }
.cv-contact { margin: 24px 0 0; text-align: center; }
@media (max-width: 480px) { .cv-infos { grid-template-columns: 1fr; gap: 2px; } .cv-infos dd { margin-bottom: 8px; } }

/* « Trouver un candidat » (trouver-un-candidat.php) */
.recherche-ville-cv { border-left: 2px solid var(--line); margin: 6px 0; }
.recherche-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 14px 0 0 8px; }
.recherche-filtres label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.recherche-filtres input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); }
.recherche-filtres select { font: inherit; padding: .5em 2.2em .5em .9em; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font-weight: 600; }
.recherche-filtres a { font-size: .9rem; }
.carte-candidat .carte-poste { margin: 2px 0 4px; font-weight: 700; color: var(--orange); }
.carte-candidat .carte-pastilles { margin: 8px 0 0; gap: 6px; }
.carte-candidat .carte-pastilles li { font-size: .8rem; padding: 2px 10px; }
.carte-candidat .cv-pastille-dispo { border-color: #1baf7a; color: #1baf7a; font-weight: 700; }
.carte-candidat .carte-maj { margin: 8px 0 0; font-size: .8rem; color: var(--text-soft); }
@media (max-width: 720px) { .recherche-ville-cv { flex: 1 1 100%; border-left: 0; border-bottom: 2px solid var(--line); margin: 0; } }

/* ── Publications sponsorisées (includes/sponsor.php, compte/sponsoriser.php, assets/js/sponso.js) ──
   Tickets juste au-dessus des cartes, sur la même grille que .cartes (3 colonnes de 300px, 2 sur tablette,
   1 de 340px sur mobile) : chaque ticket a exactement la largeur d'une carte ; 3 au plus */
.sponso-tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 24px; margin: 0 0 24px; }
@media (max-width: 900px) { .sponso-tickets { grid-template-columns: repeat(2, minmax(0, 300px)); } }
@media (max-width: 560px) { .sponso-tickets { grid-template-columns: minmax(0, 340px); gap: 18px; } }
/* Page d'une publication : en haut de la colonne de droite, au-dessus des cartes, à leur largeur */
.sponso-tickets.sponso-tickets-cote { grid-template-columns: minmax(0, 300px); gap: 18px; margin: 0 0 18px; }
@media (max-width: 900px) { .sponso-tickets.sponso-tickets-cote { grid-template-columns: repeat(auto-fill, minmax(240px, 272px)); } }
@media (max-width: 560px) { .sponso-tickets.sponso-tickets-cote { grid-template-columns: minmax(0, 1fr); } }
.sponso-ticket { position: relative; display: flex; align-items: stretch; height: 100px; border-radius: 18px; overflow: hidden; background: var(--white); color: var(--text); text-decoration: none; box-shadow: 0 4px 8px rgba(0, 0, 0, .15); transition: transform .2s, box-shadow .2s; }
a.sponso-ticket:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
a.sponso-ticket:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }
.sponso-ticket-image { position: relative; flex: none; width: 100px; height: 100px; overflow: hidden; background: var(--cream); }
.sponso-ticket-image > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sponso-ticket-initiale { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--navy), var(--ice)); }
.sponso-ticket-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 24px 12px 8px 12px; }
.sponso-badge { position: absolute; top: 6px; right: 10px; display: inline-flex; align-items: center; gap: 4px; color: #c44d24a6; font-size: .68rem; font-weight: 700; letter-spacing: .02em; line-height: 1.5; } /* discret : sans fond */
.sponso-badge svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sponso-ticket-titre { font-weight: 700; font-size: .98rem; line-height: 1.2; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sponso-ticket-auteur { font-size: .8rem; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-theme="sombre"] .sponso-ticket-titre { color: var(--text); }

/* Page « Sponsoriser une publication » */
.sponso-intro { color: var(--text-soft); }
.sponso-apercu { margin: 18px 0 24px; max-width: 360px; }
.sponso-ticket-apercu { pointer-events: none; }
.sponso-apercu-recadre { position: absolute; max-width: none; height: auto; }
.sponso-aide { font-size: .92rem; color: var(--text-soft); }
.sponso-recadrage, .sponso-durees { margin: 0 0 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.sponso-recadrage legend, .sponso-durees legend { padding: 0 6px; font-weight: 700; color: var(--navy); }
.sponso-recadrage-zone { position: relative; display: inline-block; max-width: 100%; line-height: 0; border-radius: var(--radius-sm); overflow: hidden; user-select: none; touch-action: none; }
.sponso-recadrage-zone img { display: block; max-width: 100%; max-height: 420px; width: auto; }
.sponso-recadrage-carre { position: absolute; box-sizing: border-box; border: 2px solid #fff; outline: 1px dashed rgba(0, 0, 0, .55); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); cursor: move; touch-action: none; }
.sponso-recadrage-carre:focus-visible { border-color: var(--ice); }
.sponso-recadrage-taille { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font-weight: 600; }
.sponso-recadrage-taille input { flex: 1; accent-color: var(--orange-btn); }
.sponso-durees { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sponso-durees legend { grid-column: 1 / -1; }
.sponso-duree { position: relative; cursor: pointer; }
.sponso-duree input { position: absolute; opacity: 0; }
.sponso-duree > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; border: 2px solid var(--line); border-radius: var(--radius-sm); text-align: center; transition: border-color .2s, background .2s; }
.sponso-duree > span span { font-size: .9rem; color: var(--text-soft); }
.sponso-duree input:checked + span { border-color: var(--orange-btn); background: var(--cream); }
.sponso-duree input:focus-visible + span { outline: 3px solid var(--ice); outline-offset: 2px; }
.sponso-etat { padding: 12px 16px; border-radius: var(--radius-sm); }
.sponso-etat-attente { background: var(--vanille); }
.sponso-etat-active { background: #e4f6ee; color: #145c40; }
.sponso-annuler { margin: 12px 0 0; }
.sponso-titre-stats { margin-top: 36px; }
.sponso-stats h3 { margin: 0 0 14px; font-size: 1.05rem; }
.sponso-en-cours { margin-left: 6px; padding: 2px 8px; border-radius: 10px; background: #e4f6ee; color: #145c40; font-size: .75rem; font-weight: 700; vertical-align: middle; }
.statut-sponso { background: var(--orange-btn); color: #fff; }
.liste-publis .badge-action.badge-sponsoriser { --badge: #c44d24; } /* orange des boutons */

/* ---------- Hub du compte (compte/hub.php) : tuiles icône + libellé ---------- */
.hub-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-top: 8px; }
.hub-tuile-form { display: contents; }
.hub-tuile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    min-height: 130px; padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white); color: var(--navy); font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.3;
    text-align: center; text-decoration: none; cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .08); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hub-tuile:hover { color: var(--navy); transform: translateY(-2px); border-color: var(--ice); box-shadow: 0 8px 18px rgba(0, 0, 0, .14); }
.hub-tuile:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }
.hub-icone { width: 34px; height: 34px; fill: none; stroke: var(--ice); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hub-tuile-sortir, .hub-tuile-sortir:hover { color: var(--orange); }
.hub-tuile-sortir .hub-icone { stroke: var(--orange); }
@media (max-width: 560px) {
    .hub-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hub-tuile { min-height: 112px; font-size: .92rem; }
}
.hub-section { margin-top: 36px; }
.hub-partenaire { margin-top: 32px; padding: 20px 22px; border: 1px solid #bfe6f2; border-radius: var(--radius); background: #f6fcfe; }
.hub-partenaire h2 { margin: 0 0 6px; font-size: 1.2rem; }
.hub-partenaire p { margin: 0; }
.hub-partenaire-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px !important; }
.hub-partenaire-code { padding: 8px 16px; border: 1.5px dashed var(--ice); border-radius: 10px; background: var(--white); color: var(--navy); font-size: 1.25rem; font-weight: 800; letter-spacing: .08em; user-select: all; }
.hub-partenaire-statut { color: #187650; font-weight: 700; font-size: .9rem; }
.hub-partenaire .hub-partenaire-qr { margin-top: 14px; font-size: .92rem; color: var(--text-soft); }
.hub-partenaire .hub-partenaire-nb { margin-top: 8px; }
html[data-theme="sombre"] .hub-partenaire { background: var(--cream); border-color: var(--line); }
.hub-tuile-admin .hub-icone { stroke: var(--orange); }

/* ---------- Back-office : utilisateurs inscrits (compte/admin-utilisateurs.php) ---------- */
.admin-recherche { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.admin-recherche input[type="search"] { flex: 1 1 240px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--white); color: var(--text); }
.admin-profil { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.admin-utilisateurs .liste-publis-date { overflow-wrap: anywhere; }
@media (max-width: 700px) { .admin-profil { flex: none; width: 100%; } }
.admin-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Offres de licence (compte/telechargement.php) ---------- */
.licences-defile { overflow-x: auto; margin: 8px 0 12px; }
.licences-note { margin: 0 0 28px; }
.licences-tableau { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.licences-tableau thead th { background: #173a5e; color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 14px 20px; }
.licences-tableau tbody th, .licences-tableau tbody td { padding: 16px 20px; border-top: 1px solid var(--line); text-align: left; }
.licences-tableau tbody th { font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; }
.licences-tableau tbody td { color: var(--text); }
.licences-tableau tbody tr:first-child th, .licences-tableau tbody tr:first-child td { border-top: 0; }
.licences-tableau tbody td strong { color: var(--navy); white-space: nowrap; }
.licences-mois { display: block; white-space: nowrap; opacity: .7; font-size: .85em; } /* montant par mois sous le tarif total */
.licences-eco { display: table; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--orange-btn); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: 0; white-space: nowrap; }
.licences-tel { font-weight: 700; white-space: nowrap; }
.licences-tableau thead th:nth-child(3), .licences-tableau tbody td:nth-child(3) { text-align: right; }
.licences-tableau tbody tr:nth-child(even) { background: var(--cream); }
@media (max-width: 600px) {
    .licences-tableau thead th { padding: 12px 10px; font-size: .72rem; letter-spacing: .03em; }
    .licences-tableau tbody th, .licences-tableau tbody td { padding: 12px 10px; font-size: .9rem; }
    .licences-tableau tbody th { font-size: .74rem; letter-spacing: 0; }
    .licences-eco { font-size: .7rem; padding: 1px 8px; }
}

/* ---------- Page Membres (trouver-un-membre.php) ---------- */
.membres-suite { display: flex; justify-content: center; margin: 24px 0 0; }
.membres-suite[hidden] { display: none; }

/* ---------- Mentions @ (assets/js/mentions.js) ---------- */
.mentions-suggestions { box-sizing: border-box; max-height: 280px; overflow-y: auto; }
.mention-identite { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.mention-identite img, .mention-initiale { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.mention-initiale { display: inline-flex; align-items: center; justify-content: center; background: var(--ice-pale); color: var(--navy); font-size: .8rem; }
a.mention { font-weight: 700; text-decoration: none; }
a.mention:hover { text-decoration: underline; }
.hub-filleuls { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.hub-filleuls li { padding: 8px 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.hub-filleuls li span { color: var(--text-soft); font-size: .88rem; margin-left: 6px; }
/* Semaines offertes par le parrainage (compte/hub.php, compte/sponsoriser.php) */
.hub-recompense { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.hub-recompense p { margin: 0; }
.hub-recompense .hub-recompense-jauge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.hub-recompense-jauge > span:not(.hub-recompense-texte) { width: 28px; height: 10px; border-radius: 5px; background: var(--line); }
.hub-recompense-jauge > span.plein { background: #F97A4E; }
.hub-recompense-texte { margin-left: 6px; font-size: .9rem; color: var(--text-soft); }
.hub-recompense .hub-recompense-dispo { margin-top: 10px; color: #187650; }
.hub-recompense .hub-recompense-report { margin-top: 8px; font-size: .9rem; color: var(--text-soft); }
.sponso-offerte { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: #e4f6ee; border: 1px solid #b7e4cf; }
.sponso-offerte p { margin: 0 0 10px; color: #145c40; }
html[data-theme="sombre"] .sponso-offerte { background: var(--cream); border-color: var(--line); }
html[data-theme="sombre"] .sponso-offerte p { color: var(--text); }
.hub-partenaire .hub-partenaire-liste { margin: 6px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }

/* Éditeur : cadrage de l'image pour la carte, format portrait (assets/js/recadrage-carte.js) */
.carte-recadrage { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.carte-recadrage[hidden] { display: none; }
.carte-recadrage-titre { margin: 0 0 14px; }
.carte-recadrage-corps { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.carte-recadrage-gauche { flex: 1 1 320px; min-width: 0; }
.carte-recadrage-zone { position: relative; display: inline-block; max-width: 100%; line-height: 0; border-radius: var(--radius-sm); overflow: hidden; user-select: none; touch-action: none; }
.carte-recadrage-zone img { display: block; max-width: 100%; max-height: 380px; width: auto; }
.carte-recadrage-cadre { position: absolute; box-sizing: border-box; border: 2px solid #fff; outline: 1px dashed rgba(0, 0, 0, .55); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); cursor: move; touch-action: none; }
.carte-recadrage-cadre:focus-visible { border-color: var(--ice); }
.carte-recadrage-taille { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font-weight: 600; }
.carte-recadrage-taille input { flex: 1; accent-color: var(--orange-btn); }
.carte-recadrage-droite { flex: 0 0 170px; }
.carte-recadrage-legende { display: block; margin-bottom: 8px; color: var(--text-soft); font-size: .85rem; }
.carte-recadrage-apercu { position: relative; width: 170px; aspect-ratio: 320 / 470; border-radius: 18px; overflow: hidden; background: var(--navy); box-shadow: 0 4px 8px rgba(0, 0, 0, .15); }
.carte-recadrage-apercu img { position: absolute; max-width: none; height: auto; }
.carte-recadrage-apercu::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.carte-recadrage-apercu-titre { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; color: #fff; font-weight: 700; font-size: .85rem; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Hub : actualités d'aiceberg.pro en tickets qui défilent horizontalement (assets/js/hub-annonces.js) */
.hub-annonces { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 28px; }
.hub-annonces-piste { flex: 1; min-width: 0; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px; padding: 6px 4px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hub-annonces-piste::-webkit-scrollbar { display: none; }
.hub-annonce.sponso-ticket { flex: 0 0 min(380px, 82%); scroll-snap-align: start; }
.hub-annonce .sponso-ticket-texte { padding: 8px 14px; }
.hub-annonce .sponso-ticket-titre { -webkit-line-clamp: 3; }
.hub-annonces-fleche { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--navy); cursor: pointer; }
.hub-annonces-fleche[hidden] { visibility: hidden; display: inline-flex; } /* garde sa place : la piste ne bouge pas */
.hub-annonces-fleche svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hub-annonces-fleche:hover, .hub-annonces-fleche:focus-visible { background: var(--cream); }
html[data-theme="sombre"] .hub-annonces-fleche { color: var(--text); }
@media (max-width: 700px) {
    .hub-annonces-fleche { display: none !important; } /* mobile : on fait glisser au doigt */
    .hub-annonces-piste { gap: 14px; }
}
/* Tickets du hub : fond beige clair derrière le titre */
.hub-annonce .sponso-ticket-texte { background: #f9eee6; }
html[data-theme="sombre"] .hub-annonce .sponso-ticket-texte { background: #f9eee6; }
html[data-theme="sombre"] .hub-annonce .sponso-ticket-titre { color: #173a5e; } /* texte foncé : lisible sur le fond beige */
.hub-annonces { margin: 0 0 20px; }
/* Éditeur : « Supprimer l'image » coché → zone vide tout de suite (assets/js/recadrage-carte.js) */
.zone-image.image-retiree > img, .zone-image.image-retiree .pastille { display: none; }
.zone-image.image-retiree .zone-vide { display: flex; }
/* Publication : fine ombre autour de l'image d'en-tête (détache les images à fond blanc) */
.publi-couv { box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 10px rgba(0, 0, 0, .12); }
html[data-theme="sombre"] .publi-couv { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 2px 10px rgba(0, 0, 0, .4); }

/* Administration > Prospection (compte/admin-prospects.php) */
.prospects-import { max-width: 720px; }
.prospects-import textarea { width: 100%; font-family: var(--font); font-size: .95rem; }
.admin-recherche select { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--white); color: var(--text); max-width: 100%; }
.prospects-liste { list-style: none; margin: 0 0 20px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
/* Une fiche : nom + étiquettes (1re ligne), e-mail · ville · lien avec icônes (2e ligne), boutons ronds à droite */
.prospect { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prospect:last-child { border-bottom: 0; }
.prospect p { margin: 0; }
.prospect-infos { flex: 1 1 0; min-width: 0; }
.prospect-titre { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.prospect-nom { font-size: 1.02rem; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.prospect-etiquette { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: .74rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.prospect-cat { background: var(--ice-pale); color: #0d5a72; white-space: normal; }
.prospect-membre { background: var(--cream); color: var(--orange-dk); }
.prospect-envoi-ok { background: #e4f6ee; color: #145c40; }
.prospect-envoi-ko { background: #fdecea; color: #8e2216; }
.prospect-envoi-attente { background: #fff4dc; color: #7a4b00; }
.prospect-details { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin-top: 4px; font-size: .88rem; color: var(--text-soft); }
.prospect-details > * { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.prospect-details svg { flex: none; width: 15px; height: 15px; }
.prospect-lien { color: var(--navy); }
.prospect-manque { font-style: italic; opacity: .75; }
/* Boutons ronds : Modifier (crayon, croix une fois ouvert) et Supprimer (corbeille) */
.prospect-actions { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.prospect-bouton { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.prospect-bouton svg { width: 18px; height: 18px; }
.prospect-bouton:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.prospect-bouton-danger:hover { background: #fdecea; border-color: #f5c3bc; color: #8e2216; }
.prospect-bouton:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
.prospect-modifier > summary { list-style: none; }
.prospect-modifier > summary::-webkit-details-marker { display: none; }
.prospect-modifier .icone-fermer, .prospect-modifier[open] .icone-modifier { display: none; }
.prospect-modifier[open] .icone-fermer { display: block; }
.prospect-supprimer { margin: 0; }
/* Formulaire ouvert : sous la fiche, sur toute la largeur ; la croix le referme, la corbeille est masquée */
.prospect:has(.prospect-modifier[open]) .prospect-actions { flex: 1 1 100%; }
.prospect:has(.prospect-modifier[open]) .prospect-supprimer { display: none; }
.prospect-modifier[open] { flex: 1 1 100%; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.prospect-modifier[open] > .prospect-form { flex: 1 1 100%; }
.prospect-form { margin-top: 4px; }
.prospect-form .field { max-width: 520px; margin-bottom: 12px; }
.prospect-form input:not([type="checkbox"]), .prospect-form select { width: 100%; }
.prospects-pages { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; font-weight: 600; }
.prospects-liste + .prospects-pages { margin-top: -6px; }
@media (max-width: 560px) {
    .prospect { gap: 8px 10px; padding: 10px 12px; }
    .prospect-nom { font-size: .97rem; }
    /* Mobile : un champ par ligne (nom, catégorie, membre, état d'envoi, puis e-mail, ville, lien) */
    .prospect-titre { flex-direction: column; align-items: flex-start; gap: 5px; }
    .prospect-details { margin-top: 6px; }
    .prospect-details { flex-direction: column; align-items: flex-start; gap: 3px; }
    .prospect-actions { gap: 6px; }
    .prospect-bouton { width: 34px; height: 34px; }
    .prospect-bouton svg { width: 16px; height: 16px; }
}
.prospects-fleche { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--navy); transition: background .2s; }
.prospects-fleche:hover { background: var(--cream); }
.prospects-fleche:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
.prospects-fleche svg { width: 24px; height: 24px; }
.prospects-pages > span:empty { width: 40px; }

/* ---------- Fenêtre « Nos boutiques » du profil (pro.php, assets/js/boutiques-carte.js) ---------- */
.boutiques-fenetre { width: min(680px, calc(100vw - 24px)); }
.boutiques-fenetre .partage-interieur { padding: 28px 20px 20px; }
.boutiques-carte { height: 300px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #e8eef2; z-index: 0; }
.boutiques-carte[hidden] { display: none; }
.boutiques-source { margin: 6px 2px 14px; font-size: .75rem; color: var(--text-soft); }
.boutiques-adresses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.boutiques-adresses li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 4px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); }
.boutiques-adresses li.actif { border-color: #C44D24; box-shadow: inset 3px 0 0 #C44D24; }
.boutiques-voir { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.boutiques-voir:hover, .boutiques-voir:focus-visible { background: var(--cream); outline: none; }
.boutiques-voir strong { color: var(--navy); }
.boutiques-voir span { font-size: .9rem; overflow-wrap: anywhere; }
.boutiques-itineraire { flex: none; padding: 6px 12px; border-radius: 999px; background: #C44D24; color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; }
.boutiques-itineraire:hover, .boutiques-itineraire:focus-visible { background: #a63d1b; color: #fff; }
.boutiques-actions { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.boutiques-appeler { padding: 6px 12px; border-radius: 999px; border: 1px solid #C44D24; color: #C44D24; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.boutiques-appeler:hover, .boutiques-appeler:focus-visible { background: #C44D24; color: #fff; }
/* Bulle d'un repère : couleurs fixes (fond blanc de Leaflet, y compris en mode nuit) */
.boutiques-bulle { display: flex; flex-direction: column; gap: 2px; color: #173a5e; font-size: .9rem; line-height: 1.35; }
.boutiques-bulle strong { color: #173a5e; }
@media (max-width: 560px) { .boutiques-carte { height: 240px; } .boutiques-adresses { max-height: 220px; } }

/* Signalement en bas d'une publication (compte connecté) : publication.php, compte/signalement.php */
.publi-signaler { display: flex; flex-direction: column; align-items: flex-end; margin: 24px 0 8px; }
.publi-signaler .commentaire-message { align-self: stretch; }
.bouton-signaler { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text-soft); font: inherit; font-size: .85rem; cursor: pointer; }
.bouton-signaler svg { width: 18px; height: 18px; flex: none; }
.bouton-signaler:hover, .bouton-signaler:focus-visible { border-color: #C44D24; color: #C44D24; outline: none; }
.signaler-form { margin-top: 16px; text-align: left; }
.signaler-form .field textarea { min-height: 120px; }
.signaler-form .champ-aide { font-size: .85rem; color: var(--text-soft); margin: 6px 0 0; }
.signaler-form > .champ-aide { margin: 0 0 16px; }

/* ==========================================================================
   Profil (pro.php) : CV, boutiques et QR code en ronds blancs à gauche de Partager (comme lui) ;
   site web, réseaux sociaux et mentions légales sous la présentation, à droite (ronds bleus, règles .pro-identite .pro-reseaux)
   ========================================================================== */
.bouton-profil { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; background: var(--white); border: 2px solid var(--line); color: var(--navy); cursor: pointer; box-shadow: 0 6px 18px rgba(15, 40, 64, .22); transition: background .2s, border-color .2s; }
.bouton-profil:hover { background: var(--cream); border-color: var(--navy); }
.bouton-profil:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.bouton-profil svg { width: 21px; height: 21px; }
.bouton-profil .icone { stroke: currentColor; stroke-width: 2; }
.pro-presentation { min-width: 0; padding-top: 6px; }
.pro-identite .pro-presentation .pro-description { padding-top: 0; }
.pro-presentation .pro-reseaux { margin: 18px 0 0; }
.pro-identite { padding-top: 76px; } /* plus de rangée d'icônes sous la couverture : le nom suit le logo (51 px sous l'en-tête) */
@media (max-width: 900px) { .pro-presentation { padding-top: 0; } }
@media (max-width: 560px) {
    .bouton-profil { width: 40px; height: 40px; }
    .bouton-profil svg { width: 19px; height: 19px; }
    .pro-suivre { gap: 8px; }
    .pro-identite { padding-top: 36px; }
}
/* Liens sous la présentation : alignés à droite, plus petits */
.pro-presentation .pro-reseaux { justify-content: flex-end; gap: 6px; }
.pro-identite .pro-presentation .pro-reseaux a, .pro-identite .pro-presentation .bouton-mentions { width: 32px; height: 32px; }
.pro-identite .pro-presentation .pro-reseaux svg { width: 16px; height: 16px; }

/* Profil, mode sombre : Boutiques, QR code et Partager à l'inverse du mode clair
   (fond beige, icône et bordure bleues ; survol : fond bleu, icône et bordure beiges) */
html[data-theme="sombre"] .pro-suivre :is(.bouton-profil, .bouton-partage) { background: #e8dcc4; border-color: #173a5e; color: #173a5e; }
html[data-theme="sombre"] .pro-suivre :is(.bouton-profil, .bouton-partage):is(:hover, :focus-visible) { background: #173a5e; border-color: #e8dcc4; color: #e8dcc4; }
html[data-theme="sombre"] .pro-suivre :is(.bouton-profil, .bouton-partage):focus-visible { outline-color: #e8dcc4; }

/* Fenêtre de partage, mode sombre : logo X en clair (noir illisible sur fond sombre) */
html[data-theme="sombre"] .partage-x { --reseau: #e3ecf5; }
/* Liens sous la présentation : rond 22 px, icône 12 px */
.pro-identite .pro-presentation .pro-reseaux a, .pro-identite .pro-presentation .bouton-mentions { width: 22px; height: 22px; }
.pro-identite .pro-presentation .pro-reseaux svg { width: 12px; height: 12px; }

/* Profil : icône « Compte pro certifié » (SIRET vérifié, ouvre une fenêtre) et mentions légales à côté de la ville */
.pro-sous-titre .pro-verifie { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: var(--mint); cursor: pointer; line-height: 0; }
.pro-sous-titre .pro-verifie svg { width: 20px; height: 20px; }
.pro-sous-titre .pro-verifie:hover, .pro-sous-titre .pro-verifie:focus-visible { color: #1f8f63; outline: none; }
.pro-sous-titre .pro-verifie:focus-visible { box-shadow: 0 0 0 3px rgba(43, 179, 127, .35); border-radius: 50%; }
.pro-identite .pro-sous-titre .pro-mentions { width: 22px; height: 22px; }
.pro-identite .pro-sous-titre .pro-mentions svg { width: 12px; height: 12px; }
.pro-sous-titre .pro-mentions .icone { stroke: var(--line); }
html[data-theme="sombre"] .pro-sous-titre .pro-mentions .icone { stroke: #e3ecf5; }
.certifie-fenetre .certifie-icone { margin: 0 0 10px; color: var(--mint); line-height: 0; }
.certifie-fenetre .certifie-icone svg { width: 52px; height: 52px; }
.certifie-fenetre .partage-titre { margin-bottom: 12px; }
.certifie-texte { margin: 0; line-height: 1.6; color: var(--text); }
/* Mentions légales à côté de la ville : rond gris discret (second plan derrière la certification) */
.pro-identite .pro-sous-titre .pro-mentions { background: #e9edf1; border-color: #e9edf1; }
.pro-identite .pro-sous-titre .pro-mentions:is(:hover, :focus-visible) { background: #d8dfe6; border-color: #d8dfe6; }
.pro-identite .pro-sous-titre .pro-mentions .icone { stroke: #586b7d; }
html[data-theme="sombre"] .pro-identite .pro-sous-titre .pro-mentions { background: #2e4153; border-color: #2e4153; }
html[data-theme="sombre"] .pro-identite .pro-sous-titre .pro-mentions:is(:hover, :focus-visible) { background: #3a5168; border-color: #3a5168; }
html[data-theme="sombre"] .pro-identite .pro-sous-titre .pro-mentions .icone { stroke: #9cadbd; }
/* Liens sous la présentation : rond 28 px, icône 15 px (22 px trop petit) */
.pro-identite .pro-presentation .pro-reseaux a, .pro-identite .pro-presentation .bouton-mentions { width: 28px; height: 28px; }
.pro-identite .pro-presentation .pro-reseaux svg { width: 15px; height: 15px; }
/* Mode sombre : la balance garde le même gris clair qu'en mode clair */
html[data-theme="sombre"] .pro-identite .pro-sous-titre .pro-mentions { background: #e9edf1; border-color: #e9edf1; }
html[data-theme="sombre"] .pro-identite .pro-sous-titre .pro-mentions:is(:hover, :focus-visible) { background: #d8dfe6; border-color: #d8dfe6; }
html[data-theme="sombre"] .pro-identite .pro-sous-titre .pro-mentions .icone { stroke: #586b7d; }

/* Profil : bouton Suivre / Suivi rond, sans texte, premier de la rangée d'icônes (même taille que CV, boutiques, QR code, Partager).
   Suivre : rond orange, « + » blanc ; Demande envoyée : rond blanc, horloge ; Suivi : rond vert clair, cloche (règle plus bas).
   Survol de Suivi / Demande envoyée : fond rouge clair, icône d'arrêt (cloche barrée, croix) */
.pro-suivre form { display: flex; margin: 0; }
.pro-suivre .bouton-suivre-rond { width: 48px; height: 48px; min-height: 0; padding: 0; gap: 0; justify-content: center; border-radius: 50%; box-shadow: 0 6px 18px rgba(15, 40, 64, .22); }
.pro-suivre .bouton-suivre-rond svg { width: 21px; height: 21px; stroke-width: 2.2; }
.pro-suivre .bouton-suivre-rond .icone-arreter { display: none; }
.pro-suivre .bouton-suivre-rond.suivi:is(:hover, :focus-visible) svg { display: none; }
.pro-suivre .bouton-suivre-rond.suivi:is(:hover, :focus-visible) svg.icone-arreter { display: block; }
@media (max-width: 560px) {
    .pro-suivre .bouton-suivre-rond { width: 40px; height: 40px; }
    .pro-suivre .bouton-suivre-rond svg { width: 19px; height: 19px; }
}
.pro-suivre .bouton-suivre-rond.suivi { background: var(--white); border-color: var(--line); color: var(--navy); }
.pro-suivre .bouton-suivre-rond.suivi:is(:hover, :focus-visible) { background: #fdecea; border-color: #f5c3bc; color: #8e2216; }
html[data-theme="sombre"] .pro-suivre .bouton-suivre-rond.suivi { background: #e8dcc4; border-color: #173a5e; color: #173a5e; }
html[data-theme="sombre"] .pro-suivre .bouton-suivre-rond.suivi:is(:hover, :focus-visible) { background: #fdecea; border-color: #f5c3bc; color: #8e2216; }

/* Profil sur mobile : logo et icônes près des bords de l'écran */
@media (max-width: 560px) {
    .pro-logo { left: -16px; } /* logo à 4 px du bord de l'écran (marge du .wrap : 20 px) */
    .pro-suivre { right: -16px; } /* boutique, QR code, partager : à 4 px du bord droit, comme le logo à gauche */
}

/* Ligne sous la présentation : mentions légales à gauche, site et réseaux sociaux à droite */
.pro-liens { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.pro-liens .pro-reseaux, .pro-presentation .pro-liens .pro-reseaux { margin: 0 0 0 auto; }

/* Mentions légales (après Certifié, à côté de la ville) : pastille orange #F97A4E, icône et petit texte « Légal » blancs */
.pro-identite .pro-sous-titre .pro-mentions,
html[data-theme="sombre"] .pro-identite .pro-sous-titre .pro-mentions { width: auto; height: 24px; gap: 5px; padding: 0 10px 0 8px; border-radius: 999px; background: #f97a4e; border-color: #f97a4e; color: #fff; font: inherit; font-size: .72rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.pro-identite .pro-sous-titre .pro-mentions:is(:hover, :focus-visible),
html[data-theme="sombre"] .pro-identite .pro-sous-titre .pro-mentions:is(:hover, :focus-visible) { background: #e8673a; border-color: #e8673a; }
.pro-identite .pro-sous-titre .pro-mentions .icone,
html[data-theme="sombre"] .pro-identite .pro-sous-titre .pro-mentions .icone { stroke: #fff; }
.pro-identite .pro-sous-titre .pro-mentions svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Profil : compte suivi -> rond « Suivi » sur fond vert clair, cloche vert foncé.
   « Demande envoyée » (sans aria-pressed) garde le fond blanc ; survol : rouge clair, cloche barrée */
.pro-suivre .bouton-suivre-rond.suivi[aria-pressed="true"],
html[data-theme="sombre"] .pro-suivre .bouton-suivre-rond.suivi[aria-pressed="true"] { background: #dcf5e8; border-color: #b4e6cc; color: #17734b; }
.pro-suivre .bouton-suivre-rond.suivi[aria-pressed="true"]:is(:hover, :focus-visible),
html[data-theme="sombre"] .pro-suivre .bouton-suivre-rond.suivi[aria-pressed="true"]:is(:hover, :focus-visible) { background: #fdecea; border-color: #f5c3bc; color: #8e2216; }
.bouton-suivre .icone-cloche { width: 17px; height: 17px; stroke-width: 2.2; }

/* Certifié (à côté de la ville) : pastille vert clair, icône et petit texte vert foncé (comme le bouton Suivi) */
.pro-sous-titre .pro-verifie { gap: 4px; height: 24px; padding: 0 10px 0 6px; border-radius: 999px; background: #dcf5e8; color: #17734b; font: inherit; font-size: .72rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.pro-sous-titre .pro-verifie svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--mint); }
.pro-sous-titre .pro-verifie:hover, .pro-sous-titre .pro-verifie:focus-visible { background: #c6eed9; color: #17734b; }
.pro-sous-titre .pro-verifie:focus-visible { border-radius: 999px; }

/* Administration > Campagnes e-mail (compte/admin-campagnes.php) : aperçu du mail tel qu'il partira */
.campagne-apercu { margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.campagne-apercu-entete { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; padding: 12px 16px; background: var(--cream); border-bottom: 1px solid var(--line); font-size: .92rem; }
.campagne-apercu-entete dt { color: var(--text-soft); }
.campagne-apercu-entete dd { margin: 0; overflow-wrap: anywhere; }
.campagne-apercu-corps { padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.55; color: var(--text); }
.campagne-apercu-html { display: block; width: 100%; height: 900px; border: 0; background: #fff; }
.campagne-apercu-texte { margin: 0 0 8px; }
.campagne-apercu-texte summary, .form details.field > summary { cursor: pointer; font-weight: 700; }
.campagne-code { width: 100%; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }

/* Prospection : message « Enregistré ✓ » ou erreur après un envoi sans rechargement (assets/js/prospects-admin.js) */
.prospect-statut { margin: 0; align-self: center; font-size: .9rem; font-weight: 700; }
.prospect-statut-ok { color: #145c40; }
.prospect-statut-ko { margin-top: 8px; color: #8e2216; }

/* Annuaire : carte d'un glacier pas encore inscrit (includes/cartes.php, carte_prospect) */
.carte-revendiquer { position: relative; z-index: 2; margin: 8px 0 0; font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.85); }
.carte-revendiquer a { color: #fff; text-decoration: underline; }
.carte-revendiquer a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.carte-prospect .carte-extrait { font-size: .85rem; opacity: .9; }
/* Prospection : état de la fiche dans l'annuaire */
.prospect-annuaire-oui { background: #e3f5fa; color: #0d5a72; }
.prospect-annuaire-non { background: #f1ede4; color: #6b5a3a; }
.carte-revendiquee { color: #b9f0d6; font-weight: 700; } /* profil inscrit : « ✓ Entreprise revendiquée », en vert comme l’ancien badge vérifié */
/* Prospection : fiche complète (entreprise, catégorie, ville, lien ; image et ville localisée pour l’annuaire) */
.prospect:has(> .prospect-infos[data-complet]) { background: #eef8f3; }
html[data-theme="sombre"] .prospect:has(> .prospect-infos[data-complet]) { background: rgba(43, 179, 127, .14); }

/* Pagination de l'annuaire (trouver-un-glacier) : ‹ Précédente  1 … 4 5 [6] 7 8 … 20  Suivante › */
.pagination-bloc { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 40px 0 8px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; padding: 6px;
    background: var(--white); border-radius: 999px; }
.pagination-numeros { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pagination-numeros li { margin: 0; }
.pagination-num { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px;
    border-radius: 999px; font-weight: 700; color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums;
    transition: background .2s, color .2s, transform .2s; }
a.pagination-num:hover { background: var(--ice-pale); color: var(--navy); transform: translateY(-1px); }
.pagination-num[aria-current] { background: linear-gradient(135deg, var(--ice), #1b8db3); color: #fff;
    box-shadow: 0 8px 18px -8px rgba(47, 178, 216, .8); }
.pagination-trou { min-width: 22px; text-align: center; color: var(--text-soft); font-weight: 700; letter-spacing: 1px; user-select: none; }
.pagination-fleche { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px 0 12px; border-radius: 999px;
    font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s; }
.pagination-fleche:last-child { padding: 0 12px 0 18px; }
a.pagination-fleche:hover { background: var(--ice-pale); color: var(--navy); }
a.pagination-fleche[rel="prev"]:hover { transform: translateX(-2px); }
a.pagination-fleche[rel="next"]:hover { transform: translateX(2px); }
.pagination-fleche[aria-disabled] { opacity: .35; cursor: default; }
.pagination-fleche svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pagination a:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
.pagination-etat { display: none; padding: 0 8px; font-weight: 700; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pagination-info { margin: 0; font-size: .9rem; color: var(--text-soft); }
.annuaire #resultats { scroll-margin-top: 110px; }
/* Tablette : flèches seules */
@media (max-width: 760px) {
    .pagination-fleche span { display: none; }
    .pagination-fleche, .pagination-fleche:last-child { justify-content: center; width: 44px; padding: 0; }
}
/* Mobile : ‹  Page 6 sur 20  › sur toute la largeur */
@media (max-width: 560px) {
    .pagination-bloc { margin-top: 32px; }
    .pagination { justify-content: space-between; width: 100%; }
    .pagination-numeros { display: none; }
    .pagination-etat { display: block; }
    a.pagination-fleche { background: var(--ice-pale); }
    .pagination-fleche, .pagination-fleche:last-child { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .pagination-num, .pagination-fleche { transition: none; transform: none !important; } }

/* Trouver un glacier : champ « Nom du glacier » devant la ville, et ses suggestions (assets/js/nom-glacier.js) */
.recherche-nom { position: relative; display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.recherche-nom + .recherche-ville { flex: 1 1 0; }
.recherche-nom::after { content: ""; position: absolute; right: 0; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.recherche-nom input {
    width: 100%; height: 52px; border: 0; background: transparent; outline: none; box-shadow: none;
    font: inherit; font-size: 1.05rem; color: var(--text); padding: 0 16px 0 52px;
}
.recherche-nom input::placeholder { color: var(--text-soft); opacity: .8; }
.recherche-nom input::-webkit-search-cancel-button { cursor: pointer; }
#nom-liste li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
#nom-liste mark { background: none; color: var(--orange-dk); }
.suggestion-revendiquee { font-size: .78rem; font-weight: 700; color: #1f8a61; }
.suggestion-lieu { flex: 1 1 100%; color: var(--text-soft); }
html[data-theme="sombre"] .suggestion-revendiquee { color: var(--mint); }
@media (max-width: 640px) {
    .recherche-nom { flex: 1 1 100%; border-bottom: 2px solid var(--line); }
    .recherche-nom::after { display: none; }
    .recherche-nom + .recherche-ville { flex: 1 1 100%; }
}

/* Trouver un glacier : « Rayon » affiché tant qu'aucun rayon n'est choisi */
.recherche-rayon select:has(option[value=""]:checked) { color: var(--text-soft); font-weight: 400; }
.recherche-rayon option { color: var(--text); font-weight: 600; }
