/* Complète les feuilles de www.affection.org (MDB, r9, aff, tr : chargées avant celle-ci) : couleurs, polices et composants identiques,
   pour qu'on ne sente pas changer de site. Les variables gardent les noms utilisés par moderation.css. */
:root { --rose: #F55EAD; --violet: #5F297D; --fond: #ffffff; --texte: #5F297D; --bord: #D7C4DF; --gris: #6e6679; }
#NAVBAR [hidden], footer [hidden], #capit-logonbox[hidden], .invite[hidden], .barre-annonce[hidden], .invitation[hidden], .invitation [hidden], .panneau-connexion[hidden] { display: none !important; }
#capit-logonbox { width: 245px; flex: none; }
.preparation { background: #fff4c2; color: #4d3f00; text-align: center; padding: 6px 12px; font-size: .88rem; }
.preparation a { color: inherit; }
main .me-l { min-width: 0; }
.titre-site { display: flex; justify-content: center; align-items: center; gap: 4px; text-align: left; margin: 24px 0; }
.titre-site h1 { margin: 0; }
.sr-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.intro { color: var(--gris); text-align: center; }
.carte-nom { text-decoration: none; }
.sans-photo { display: flex; align-items: center; justify-content: center; height: 250px; background: #fff; }
.carte .badge, .fiche .badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--violet); color: #fff; vertical-align: middle; }
/* Fiche d'une annonce (Alexis, 23/11/2026 : « la fiche est moche, rends-la plus jolie ») : carte d'en-tête aux couleurs du genre (celles des
   cartes de l'accueil), photo encadrée, badge « Membre abonné », blocs encadrés, recherche en puces. */
.fiche { max-width: 860px; margin: 12px auto 28px; padding: 0 12px; }
.fiche-tete { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; padding: 22px; border: 1px solid var(--bord); border-radius: 16px;
  background: linear-gradient(135deg, #F2F3FF 0%, #fff 78%); box-shadow: 0 2px 10px rgba(95, 41, 125, .08); }
.fiche-tete-f { background: linear-gradient(135deg, #FDF0E0 0%, #fff 78%); border-color: #FCDEBA; }
.fiche-tete-m { background: linear-gradient(135deg, #E1EEFE 0%, #fff 78%); border-color: #BCDAFE; }
.fiche-photo { width: 200px; height: 200px; flex: none; border-radius: 16px; object-fit: cover; border: 4px solid #fff; background: #fff; box-shadow: 0 4px 14px rgba(48, 42, 57, .18); }
.fiche-identite { flex: 1 1 240px; min-width: 0; }
.fiche h1 { margin: 0 0 4px; font-size: 2rem; font-weight: 700; color: var(--violet); overflow-wrap: anywhere; }
.fiche-sous { margin: 0 0 10px; color: #4a4353; font-size: 1.05rem; line-height: 1.4; }
.fiche-abonne { margin: 0 0 12px; }
.fiche-badge-abonne { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #d4a017; color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none; }
.fiche-badge-abonne:hover, .fiche-badge-abonne:focus-visible { background: #b8860b; color: #fff; }
.fiche-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.fiche-actions .icone { min-width: 46px; height: 46px; margin-right: 0; background: #fff; box-shadow: 0 1px 4px rgba(48, 42, 57, .12); }
.fiche-actions .icone:hover { background: #F2F3FF; }
.fiche section h2 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; color: var(--violet); }
.fiche section p { margin: 0 0 8px; color: #302a39; line-height: 1.55; overflow-wrap: anywhere; }
.fiche section > :last-child { margin-bottom: 0; }
.fiche-mots p { font-size: 1.05rem; }
.fiche-puces { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; }
.fiche-puces li { padding: 4px 12px; border: 1px solid var(--bord); border-radius: 999px; background: #F2F3FF; color: var(--violet); font-weight: 600; font-size: .92rem; }
.fiche-liste { margin: 0; padding-left: 1.2rem; color: #302a39; line-height: 1.6; }
.fiche-liste li:first-child { font-weight: 600; }
.fiche-liste li { overflow-wrap: anywhere; }
/* Flèches « profil précédent / profil suivant » (public/js/fiche-nav.js) : au-dessus de la fiche ; info-bulles comme les icônes de la fiche. */
.fiche-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 860px; margin: 10px auto 0; padding: 0 12px; }
.fiche-nav[hidden] { display: none !important; }
.fiche-nav-fleche { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border: 1px solid var(--bord); border-radius: 50%;
  background: #fff; color: var(--violet); box-shadow: 0 1px 4px rgba(48, 42, 57, .12); text-decoration: none; }
.fiche-nav-fleche:hover, .fiche-nav-fleche:focus-visible { background: var(--violet); border-color: var(--violet); color: #fff; }
.fiche-nav-fleche[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.fiche-nav-fleche[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); white-space: nowrap; background: #302a39; color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.3; padding: 4px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 20; }
#fiche-nav-prec[data-tip]::after { left: 0; }
#fiche-nav-suiv[data-tip]::after { right: 0; }
.fiche-nav-fleche[data-tip]:hover::after, .fiche-nav-fleche[data-tip]:focus-visible::after { opacity: 1; }
.fiche-nav-retour { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 8px; color: var(--violet); font-size: .95rem; text-decoration: none; }
.fiche-nav-libelle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fiche-nav-position { flex: none; font-weight: 700; }
.fiche-nav-retour:hover { color: var(--violet); }   /* r9.css met tous les liens en rouge au survol */
.fiche-nav-retour:hover .fiche-nav-libelle { text-decoration: underline; }
.icone { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--bord); text-decoration: none; font-size: 1.1rem; margin-right: 6px; }
.icone:hover { background: #F2F3FF; }
.fiche section { margin: 16px 0; padding: 18px 20px; border: 1px solid var(--bord); border-radius: 14px; background: #fff; }
.albums { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.albums img { border-radius: 4px; object-fit: cover; }
.zone-widget { min-height: 560px; }
@media (max-width: 600px) {
  .fiche { padding: 0 8px; }
  .fiche-tete { flex-direction: column; text-align: center; padding: 16px; gap: 14px; }
  .fiche-identite { flex: none; width: 100%; }
  .fiche-photo { width: 170px; height: 170px; }
  .fiche h1 { font-size: 1.6rem; }
  .fiche-actions { justify-content: center; }
  .fiche section { padding: 14px 14px; }
}
.invite { padding: 12px 16px; border: 1px solid var(--bord); border-radius: 4px; margin: 8px 0; background: #F2F3FF; }
.bouton { margin-left: 8px; text-transform: none; }
/* Bandeau et fenêtre « Créer une annonce » : repris tels quels de www.affection.org (vert). */
.barre-annonce { display: flex; justify-content: center; padding: 6px 12px; background: #eef7f0; border-bottom: 1px solid #b9dcc0; }
.bouton-annonce { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px; border: 1px solid #1e7e34; border-radius: 22px; background: #1e7e34; color: #fff !important; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; }
.bouton-annonce:hover { background: #17692b; border-color: #17692b; }
.bouton-annonce:focus-visible { outline: 3px solid #14361d; outline-offset: 2px; }
#capit-chat-invitations { position: fixed; bottom: 90px; right: 20px; z-index: 1050; max-width: 320px; padding: 16px 38px 16px 16px; background: #fff; color: #302a39; border: 1px solid #d9cbe4; border-radius: 12px; box-shadow: 0 4px 20px #0002; }
#capit-chat-invitations p { margin: 0 0 8px; }
#capit-chat-invitations button { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #797081; font-size: 20px; line-height: 1; cursor: pointer; }

/* Chat et messagerie (21/11/2026) : sablier seul avant l'affichage complet (aucun clignotement). */
.page-plein .jeanne-chat-host { position: relative; min-height: max(420px, calc(100dvh - 146px)); }
.page-plein .jeanne-chat-host iframe:not([style*="position:fixed"]) { height: calc(100dvh - 146px) !important; min-height: 420px !important; border-radius: 0 !important; }
.chat-netiquette { margin: 4px 0 6px; text-align: center; font-size: 12px; line-height: 1.4; }
.chat-netiquette a { color: #767676; }   /* lien « Nétiquette » sous le salon (Alexis, 11/11/2026) */
html.chat-attente .jeanne-chat-host iframe, html.messagerie-attente main { visibility: hidden; animation: attente-secours 0s linear 7s forwards; }
html.chat-attente .jeanne-chat-host::after, html.messagerie-attente body::after {
  content: ""; position: fixed; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F297D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12M6 22h12M7 2v3.5c0 1.6.8 2.7 2 3.6L12 11.5l3-2.4c1.2-.9 2-2 2-3.6V2M7 22v-3.5c0-1.6.8-2.7 2-3.6l3-2.4 3 2.4c1.2.9 2 2 2 3.6V22'/%3E%3Cpath d='M9.5 20h5L12 17.8z' fill='%235F297D'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0; pointer-events: none; z-index: 1000;
  animation: attente-sablier-v .15s ease forwards, attente-sablier-r 1.6s ease-in-out infinite;
}
@keyframes attente-secours { to { visibility: visible; } }
@keyframes attente-sablier-v { to { opacity: .9; } }
@keyframes attente-sablier-r { 0%, 45% { transform: rotate(0); } 55%, 100% { transform: rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { html.chat-attente .jeanne-chat-host::after, html.messagerie-attente body::after { animation: attente-sablier-v .15s ease forwards; } }
/* Forum : même principe (la hauteur du widget se règle par --cf-height). */
.page-plein #capit-forum-affection-host { --cf-height: calc(100dvh - 120px); margin-top: 0 !important; margin-bottom: 0 !important; }

/* Visiteurs (19/11/2026) : boîte à deux boutons sur téléphone, pastille verte des membres connectés. */
#capit-logonbox.boite-mobile { width: auto; display: flex; gap: 8px; padding: 8px; }
.boite-mobile .btn { flex: 1 1 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding-left: 8px; padding-right: 8px; }
/* Retour de la connexion (js/sso.js, 20/11/2026) : rien de réservé aux visiteurs ne s'affiche avant que la session soit connue. */
html.session-attente [data-hors-session] { visibility: hidden !important; }
/* Invitation de l'accueil (20/11/2026) : au-dessus des cartes ; sur téléphone, le bouton tient dans le premier écran, sur toute la largeur. */
.invitation { max-width: 30rem; margin: 0 auto 16px; padding: 14px 16px; text-align: center; border: 1px solid var(--bord); border-radius: 8px; background: #F2F3FF; }
.invitation h2 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 700; color: var(--violet); }
.invitation p { margin: 0 0 12px; color: #302a39; }
.invitation .invitation-creer { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; font-size: 1.1rem; font-weight: 700; text-transform: none; white-space: normal; }
.invitation .invitation-membre { margin: 10px 0 0; }
.invitation-membre a { color: var(--violet); text-decoration: underline; }
@media (max-width: 600px) {
  .titre-site { margin: 10px 0; }
  .invitation { margin: 0 8px 12px; }
}
.carte .en-ligne { position: absolute; top: 6px; right: 6px; z-index: 2; width: 14px; height: 14px; border-radius: 50%; background: #2fbf4a; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }

/* Panneau des pages réservées aux membres (20/11/2026), d'après lib/inscription.inc de www : cadre crème (#FEF9EF) au fin trait violet sombre
   (#5A007B), marge intérieure de 20 px, 140 px de haut au moins ; texte gras violet ; deux boutons côte à côte, empilés sur un petit écran. */
.panneau-connexion { text-align: center; margin: 0 auto 24px; padding: 0 8px; }
.panneau-connexion .titre-site { margin: 16px 0 20px; }
.panneau-connexion .panneau-nom { margin: 0; }
.panneau-connexion .panneau-nom a { color: inherit; text-decoration: none; }
.panneau-cadre { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; box-sizing: border-box; min-height: 140px;
  max-width: 100%; padding: 20px; background: #FEF9EF; border: 1px solid #5A007B; border-radius: 0; }
.panneau-texte { margin: 0 0 16px; font-weight: 700; color: var(--violet); }
.panneau-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.panneau-boutons .btn { margin: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-transform: none; white-space: normal; }
@media (max-width: 380px) { .panneau-boutons { flex-direction: column; align-items: stretch; } }

/* Crush (cœur) de la fiche, 23/11/2026 : bouton rond comme l'enveloppe ; cœur plein rouge une fois envoyé. */
button.icone.crush { background: #fff; cursor: pointer; color: inherit; }
button.icone.crush svg path { fill: none; stroke: #c2185b; stroke-width: 1.8; }
button.icone.crush.crush-pose svg path, button.icone.crush:hover svg path { fill: #e91e63; stroke: #c2185b; }
button.icone.crush:disabled { opacity: .6; cursor: progress; }
.crush-info { font-size: .85rem; color: #555; margin-right: 6px; }
/* Info-bulles des icônes de la fiche (Alexis, 23/11/2026 : « il n'y a pas de tooltip ») : data-tip, jamais de title (pas de double bulle) */
.fiche-actions .icone { position: relative; }
.fiche-actions .icone[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: #302a39; color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.3; padding: 4px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 20; }
.fiche-actions .icone[data-tip]:hover::after, .fiche-actions .icone[data-tip]:focus-visible::after { opacity: 1; }
/* Albums d'une fiche : couverture, titre, nombre de photos (23/11/2026) */
.albums-fiche { gap: 14px; }
.albums-fiche li { width: 110px; }
.albums-fiche a { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; }
.albums-fiche img, .albums-fiche .albums-vide { width: 96px; height: 96px; }
.albums-fiche .albums-vide { display: block; border-radius: 4px; background: #efe9f4; }
.albums-fiche .album-titre { font-weight: 600; font-size: .9rem; line-height: 1.25; overflow-wrap: anywhere; color: var(--violet, #5f297d); }
.albums-fiche .album-nb { font-size: .8rem; color: #6b6275; }
.albums-fiche a:hover .album-titre { text-decoration: underline; }
/* Sous-menu de l'onglet Profil (Alexis, 23/11/2026 : « Déconnexion » en sous-menu du profil, plus une entrée pour les factures) : ouvert par
   public/js/session.js pour un membre connecté. Profil est le dernier onglet : le menu s'aligne sur le bord droit, sous la barre. */
.nav-principale { position: relative; }
.menu-profil { position: absolute; top: 100%; right: 4px; z-index: 1040; min-width: 232px; max-width: calc(100vw - 8px); padding: 6px 0; background: #fff; border: 1px solid var(--bord); border-radius: 8px; box-shadow: 0 6px 24px rgba(48, 42, 57, .22); text-align: left; }
.menu-profil[hidden] { display: none !important; }
.menu-profil a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; color: #302a39; text-decoration: none; font-size: .95rem; line-height: 1.25; }
.menu-profil a:hover, .menu-profil a:focus-visible { background: #F2F3FF; color: var(--violet); }
.menu-profil a i { width: 20px; flex: none; text-align: center; color: var(--violet); }
.menu-profil hr { margin: 6px 0; border: 0; border-top: 1px solid var(--bord); opacity: 1; }
/* Info-bulles des icônes de la fiche sur petit écran (23/11/2026) : centrées sous la rangée entière et bornées à sa largeur (plus de débordement sur 320 px) */
@media (max-width: 600px) {
  .fiche-actions { position: relative; }
  .fiche-actions .icone { position: static; }
  .fiche-actions .icone[data-tip]::after { left: 0; right: 0; margin: 0 auto; transform: none; width: max-content; max-width: 100%; white-space: normal; text-align: center; }
}
