/* ═══════════════════════════════════════════════════════════════════════════
   PRAYER FIRE — feuille de style (v1.1)
   Inspirée du guide de design EduFlow (fond crème, jaune d'action, bleu marine,
   polices Sora pour les titres et Inter pour le texte, boutons « pilule »),
   accordée aux couleurs du logo (bleu nuit + dégradé orange du feu).

   MODE NUIT
     Toutes les couleurs passent par des VARIABLES (--pf-…) définies en section 1.
     Le mode nuit redéfinit simplement ces variables : rien d'autre à toucher.
       - « Auto » : suit le réglage du téléphone (prefers-color-scheme).
       - « Jour » / « Nuit » : forcé par l'attribut data-theme sur <html> (choix dans Mon espace).

   ORGANISATION DU FICHIER
     1. Variables jour + nuit       8. Fenêtres (modales), toasts
     2. Base                        9. À la une (publications), réactions, médias
     3. Boutons                    10. Écrans : sujet, prière (minuteur), programmer
     4. Champs de formulaire       11. Mes prières, témoignages, mon espace, notifications
     5. Accueil public + partage   12. Responsive (tablette ≥ 640 px, ordinateur ≥ 1024 px)
     6. Coquille (en-tête, menu)
     7. Cartes, badges, onglets

   ASTUCE DÉBUTANT : tout est préfixé « pf- » pour ne jamais entrer en conflit
   avec le thème WordPress ou un autre plugin.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────────── 1. VARIABLES ───────────── */
:root {
	/* Surfaces */
	--pf-fond: #FFFCF5;           /* fond général (canvas EduFlow) */
	--pf-fond-2: #FBF5E6;         /* fond un peu plus soutenu */
	--pf-carte: #FFFFFF;          /* cartes */
	--pf-carte-2: #FBF8F0;        /* en-têtes de listes, zones discrètes */
	--pf-champ: #FFFFFF;          /* fond des champs */
	--pf-bord-champ: #DCD6C6;
	--pf-ligne: #E9E4D6;          /* bordures */
	--pf-ligne-2: #F1EDE2;        /* séparateurs très légers */
	--pf-entete: rgba(255, 252, 245, .9);
	--pf-nav: rgba(255, 255, 255, .94);
	/* Textes */
	--pf-encre: #152647;          /* titres, texte fort */
	--pf-texte: #2A3550;          /* texte courant */
	--pf-gris: #5B6680;           /* texte secondaire */
	--pf-gris-clair: #8A93A8;
	--pf-gris-pale: #CFC9BA;      /* jours désactivés, icônes vides */
	/* Couleurs de marque */
	--pf-marine: #152647;
	--pf-marine-2: #1D3462;
	--pf-nuit: #0B1630;
	--pf-jaune: #FBBD23;
	--pf-jaune-fonce: #E9A90F;
	--pf-orange: #EA580C;
	--pf-bleu: #2463EB;
	--pf-vert: #16A249;
	--pf-ambre: #B45309;
	--pf-rouge: #DC2626;
	--pf-feu: linear-gradient(135deg, #FBBD23 0%, #F97316 55%, #EA580C 100%);
	/* Élément « plein » (onglet actif, puce active…) */
	--pf-plein: #152647;
	--pf-plein-texte: #FFFFFF;
	--pf-bloc-fonce: #152647;     /* résumé du programme, toasts */
	/* Teintes (fond / texte) des badges et encadrés */
	--pf-t-jaune: #FFF4D6;   --pf-t-jaune-txt: #7A4E00;
	--pf-t-vert: #E7F7EE;    --pf-t-vert-txt: #126B35;
	--pf-t-ambre: #FEF3C7;   --pf-t-ambre-txt: #92400E;
	--pf-t-bleu: #EEF2FF;    --pf-t-bleu-txt: #2463EB;
	--pf-t-gris: #EEF0F4;    --pf-t-gris-txt: #4B5568;
	--pf-t-rouge: #FEF2F2;   --pf-t-rouge-txt: #991B1B;
	--pf-t-avatar: #E3E8F4;
	--pf-t-choix: #F3F7FF;
	--pf-squelette-1: #F3EEE2; --pf-squelette-2: #FAF6EC;
	/* Ombres, arrondis, polices */
	--pf-ombre-carte: 0 1px 2px rgba(21, 38, 71, .05), 0 12px 32px -18px rgba(21, 38, 71, .35);
	--pf-ombre-forte: 0 40px 80px -40px rgba(21, 38, 71, .55);
	--pf-r-champ: 10px;
	--pf-r-carte: 18px;
	--pf-r-pilule: 9999px;
	--pf-titre: 'Sora', system-ui, sans-serif;
	--pf-corps: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--pf-nav-h: 68px;             /* hauteur de la barre du bas (mobile) */
	--pf-bas: env(safe-area-inset-bottom, 0px); /* zone de l'iPhone sous la barre */
	color-scheme: light;
}

/* Mode nuit : mêmes variables, valeurs sombres (bleu nuit du logo). */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="jour"]) {
		--pf-fond: #0C1222; --pf-fond-2: #111A2E; --pf-carte: #151E33; --pf-carte-2: #1A2540;
		--pf-champ: #10192C; --pf-bord-champ: #2E3B5A; --pf-ligne: #26314C; --pf-ligne-2: #1F2942;
		--pf-entete: rgba(12, 18, 34, .88); --pf-nav: rgba(16, 24, 42, .95);
		--pf-encre: #F2F4FA; --pf-texte: #D3D9E6; --pf-gris: #9AA5BE; --pf-gris-clair: #7C87A1; --pf-gris-pale: #3B4766;
		--pf-bleu: #6B9BFF; --pf-vert: #34C26B; --pf-ambre: #F0A43C; --pf-rouge: #F87171;
		--pf-plein: #F2F4FA; --pf-plein-texte: #0C1222; --pf-bloc-fonce: #1E2A49;
		--pf-t-jaune: #3A2E10; --pf-t-jaune-txt: #FCD372;
		--pf-t-vert: #0F3321;  --pf-t-vert-txt: #7BE0A3;
		--pf-t-ambre: #3B2A0E; --pf-t-ambre-txt: #F6C065;
		--pf-t-bleu: #172A55;  --pf-t-bleu-txt: #9BBBFF;
		--pf-t-gris: #222C45;  --pf-t-gris-txt: #B4BDD2;
		--pf-t-rouge: #3B1515; --pf-t-rouge-txt: #FCA5A5;
		--pf-t-avatar: #24304D; --pf-t-choix: #172A55;
		--pf-squelette-1: #151E33; --pf-squelette-2: #1C2742;
		--pf-ombre-carte: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -18px rgba(0, 0, 0, .7);
		color-scheme: dark;
	}
}
:root[data-theme="nuit"] {
	--pf-fond: #0C1222; --pf-fond-2: #111A2E; --pf-carte: #151E33; --pf-carte-2: #1A2540;
	--pf-champ: #10192C; --pf-bord-champ: #2E3B5A; --pf-ligne: #26314C; --pf-ligne-2: #1F2942;
	--pf-entete: rgba(12, 18, 34, .88); --pf-nav: rgba(16, 24, 42, .95);
	--pf-encre: #F2F4FA; --pf-texte: #D3D9E6; --pf-gris: #9AA5BE; --pf-gris-clair: #7C87A1; --pf-gris-pale: #3B4766;
	--pf-bleu: #6B9BFF; --pf-vert: #34C26B; --pf-ambre: #F0A43C; --pf-rouge: #F87171;
	--pf-plein: #F2F4FA; --pf-plein-texte: #0C1222; --pf-bloc-fonce: #1E2A49;
	--pf-t-jaune: #3A2E10; --pf-t-jaune-txt: #FCD372;
	--pf-t-vert: #0F3321;  --pf-t-vert-txt: #7BE0A3;
	--pf-t-ambre: #3B2A0E; --pf-t-ambre-txt: #F6C065;
	--pf-t-bleu: #172A55;  --pf-t-bleu-txt: #9BBBFF;
	--pf-t-gris: #222C45;  --pf-t-gris-txt: #B4BDD2;
	--pf-t-rouge: #3B1515; --pf-t-rouge-txt: #FCA5A5;
	--pf-t-avatar: #24304D; --pf-t-choix: #172A55;
	--pf-squelette-1: #151E33; --pf-squelette-2: #1C2742;
	--pf-ombre-carte: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -18px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

/* ───────────── 2. BASE ─────────────
   :where(...) donne une priorité (« spécificité ») nulle à ces règles de base :
   ainsi les classes des boutons (.pf-btn-primaire…) gagnent toujours. */
html, body.pf-plein-ecran { margin: 0; padding: 0; background: var(--pf-fond); }
body.pf-plein-ecran { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
.pf-app, .pf-app *, .pf-app *::before, .pf-app *::after { box-sizing: border-box; }
.pf-app {
	font-family: var(--pf-corps);
	font-size: 16px;
	line-height: 1.5;
	color: var(--pf-texte);
	background: var(--pf-fond);
	min-height: 100vh;
	min-height: 100dvh;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
.pf-app :where(h1, h2, h3, h4) { font-weight: 700; font-family: var(--pf-titre); color: var(--pf-encre); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.pf-app :where(p) { margin: 0; }
.pf-app :where(a) { color: var(--pf-bleu); text-decoration: none; }
.pf-app :where(a:not(.pf-btn)):hover { text-decoration: underline; }
.pf-app :where(img) { max-width: 100%; display: block; }
.pf-app :where(button) { font: inherit; color: inherit; cursor: pointer; }
.pf-app :where(ul) { margin: 0; padding: 0; list-style: none; }
.pf-app svg { flex-shrink: 0; }
.pf-app :focus { outline: none; }
.pf-app :focus-visible { outline: 3px solid var(--pf-bleu); outline-offset: 2px; border-radius: 6px; }
.pf-cache, .pf-app [hidden] { display: none !important; }
.pf-lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───────────── 3. BOUTONS ───────────── */
.pf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px;
	border-radius: var(--pf-r-pilule); border: 2px solid transparent;
	font-family: var(--pf-corps); font-size: 16px; font-weight: 600; line-height: 1;
	text-decoration: none !important; white-space: nowrap;
	transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
	user-select: none;
}
.pf-btn:active { transform: scale(.97); }
.pf-btn[disabled] { opacity: .55; pointer-events: none; }
.pf-btn svg { width: 20px; height: 20px; }
.pf-btn-primaire { background: var(--pf-jaune); color: #152647; box-shadow: 0 2px 8px -2px rgba(36, 99, 235, .15); }
.pf-btn-primaire:hover { background: var(--pf-jaune-fonce); }
.pf-btn-marine { background: var(--pf-plein); color: var(--pf-plein-texte); }
.pf-btn-vert { background: var(--pf-vert); color: #fff; }
.pf-btn-contour { background: transparent; color: var(--pf-bleu); border-color: color-mix(in srgb, var(--pf-bleu) 28%, transparent); }
.pf-btn-contour:hover { border-color: color-mix(in srgb, var(--pf-bleu) 55%, transparent); }
.pf-btn-contour-clair { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.pf-btn-contour-clair:hover { background: rgba(255, 255, 255, .16); }
.pf-btn-texte { background: transparent; color: var(--pf-bleu); padding: 0 8px; min-height: 40px; }
.pf-btn-danger { background: transparent; color: var(--pf-rouge); border-color: color-mix(in srgb, var(--pf-rouge) 30%, transparent); }
.pf-btn-petit { min-height: 38px; padding: 0 16px; font-size: 14px; }
.pf-btn-petit svg { width: 18px; height: 18px; }
.pf-btn-bloc { display: flex; width: 100%; }
.pf-btn-feu { background: var(--pf-feu); color: #fff; box-shadow: 0 10px 24px -10px rgba(234, 88, 12, .7); }
.pf-btn-feu:hover { filter: brightness(1.05); }
.pf-btn-whatsapp { background: #25D366; color: #fff; }
.pf-btn-icone { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: transparent; border: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--pf-encre); position: relative; }
.pf-btn-icone:hover { background: color-mix(in srgb, var(--pf-encre) 7%, transparent); }
.pf-btn-icone svg { width: 22px; height: 22px; }
.pf-lien { background: none; border: 0; padding: 0; color: var(--pf-bleu); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ───────────── 4. CHAMPS ───────────── */
.pf-champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.pf-champ > label, .pf-legende { font-size: 14px; font-weight: 600; color: var(--pf-encre); }
.pf-facultatif { font-weight: 400; color: var(--pf-gris); }
.pf-aide { font-size: 13px; color: var(--pf-gris); }
.pf-input, .pf-select, .pf-textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	font-family: var(--pf-corps); font-size: 16px; /* 16 px minimum : évite le zoom automatique sur iPhone */
	color: var(--pf-encre); background-color: var(--pf-champ);
	border: 1px solid var(--pf-bord-champ); border-radius: var(--pf-r-champ);
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none; appearance: none;
}
.pf-select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238A93A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
}
.pf-textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.pf-input:focus, .pf-select:focus, .pf-textarea:focus { border-color: var(--pf-bleu); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf-bleu) 18%, transparent); outline: none; }
.pf-input::placeholder, .pf-textarea::placeholder { color: var(--pf-gris-clair); }
/* Les champs date / heure ont une largeur minimale « cachée » dans Chrome/Safari : on l'annule. */
.pf-app input[type="date"], .pf-app input[type="time"] { min-width: 0; max-width: 100%; display: block; padding-left: 10px; padding-right: 8px; line-height: 1.2; }
.pf-compteur-mots { align-self: flex-end; font-size: 13px; color: var(--pf-gris); font-variant-numeric: tabular-nums; }
.pf-compteur-mots.pf-trop { color: var(--pf-rouge); font-weight: 600; }

/* mot de passe + œil */
.pf-mdp { position: relative; }
.pf-mdp .pf-input { padding-right: 52px; }
.pf-oeil { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--pf-gris); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.pf-oeil svg { width: 22px; height: 22px; }

/* téléphone : indicatif + numéro */
.pf-tel { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; }

/* cases à cocher */
.pf-case { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.pf-case input { width: 20px; height: 20px; accent-color: var(--pf-bleu); }

/* choix Oui / Non en cartes */
.pf-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-choix label { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 2px solid var(--pf-ligne); border-radius: 14px; background: var(--pf-carte); cursor: pointer; transition: border-color .15s, background .15s; }
.pf-choix input { position: absolute; opacity: 0; pointer-events: none; }
.pf-choix strong { font-family: var(--pf-titre); font-size: 16px; color: var(--pf-encre); display: flex; align-items: center; gap: 8px; }
.pf-choix strong svg { width: 20px; height: 20px; }
.pf-choix span { font-size: 13px; color: var(--pf-gris); line-height: 1.4; }
.pf-choix label:has(input:checked) { border-color: var(--pf-bleu); background: var(--pf-t-choix); }
.pf-choix label:has(input:focus-visible) { outline: 3px solid var(--pf-bleu); outline-offset: 2px; }

/* interrupteur (notifications) */
.pf-interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--pf-ligne-2); cursor: pointer; }
.pf-interrupteur:last-child { border-bottom: 0; }
.pf-interrupteur strong { display: block; color: var(--pf-encre); font-size: 15px; }
.pf-interrupteur small { display: block; color: var(--pf-gris); font-size: 13px; }
.pf-interrupteur input { position: absolute; opacity: 0; }
.pf-interrupteur i { width: 48px; height: 28px; border-radius: 14px; background: var(--pf-gris-pale); position: relative; flex-shrink: 0; transition: background .2s; }
.pf-interrupteur i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.pf-interrupteur input:checked + i { background: var(--pf-vert); }
.pf-interrupteur input:checked + i::after { transform: translateX(20px); }
.pf-interrupteur input:focus-visible + i { outline: 3px solid var(--pf-bleu); outline-offset: 2px; }

/* puces (filtres, choix rapides) */
.pf-puces { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pf-puces::-webkit-scrollbar { display: none; }
.pf-puces.pf-puces-wrap { flex-wrap: wrap; overflow: visible; }
.pf-puce { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: var(--pf-r-pilule); border: 1px solid var(--pf-ligne); background: var(--pf-carte); color: var(--pf-encre); font-size: 14px; font-weight: 500; transition: all .15s; }
.pf-puce svg { width: 16px; height: 16px; }
.pf-puce:hover { border-color: var(--pf-gris-clair); }
.pf-puce.pf-actif { background: var(--pf-plein); color: var(--pf-plein-texte); border-color: var(--pf-plein); }

/* messages d'erreur / info dans les formulaires */
.pf-alerte { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; }
.pf-alerte svg { width: 20px; height: 20px; margin-top: 1px; }
.pf-alerte-erreur { background: var(--pf-t-rouge); color: var(--pf-t-rouge-txt); }
.pf-alerte-ok { background: var(--pf-t-vert); color: var(--pf-t-vert-txt); }
.pf-alerte-info { background: var(--pf-t-jaune); color: var(--pf-t-jaune-txt); }

/* pièces jointes à envoyer */
.pf-joindre { display: flex; flex-direction: column; gap: 8px; }
.pf-joindre-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-joint { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 6px 6px 8px; border: 1px solid var(--pf-ligne); border-radius: 12px; background: var(--pf-carte); font-size: 13px; color: var(--pf-encre); }
.pf-joint img, .pf-joint .pf-joint-pdf { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.pf-joint-pdf { display: flex; align-items: center; justify-content: center; background: var(--pf-t-rouge); color: var(--pf-t-rouge-txt); font-size: 11px; font-weight: 700; }
.pf-joint span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.pf-joint button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--pf-gris); display: flex; align-items: center; justify-content: center; }
.pf-joint button svg { width: 16px; height: 16px; }

/* ───────────── 5. ACCUEIL PUBLIC + PARTAGE ───────────── */
.pf-landing { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; background: #0B1630; color: #fff; display: flex; flex-direction: column; }
.pf-landing-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; max-width: none !important; }
.pf-landing-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 22, 48, .55) 0%, rgba(11, 22, 48, .15) 35%, rgba(11, 22, 48, .2) 60%, rgba(11, 22, 48, .88) 100%); }
.pf-landing-haut { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; padding-top: max(16px, env(safe-area-inset-top)); }
.pf-marque { display: flex; align-items: center; gap: 10px; font-family: var(--pf-titre); font-weight: 800; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.pf-marque img { width: 40px; height: 40px; object-fit: contain; }
.pf-marque b { background: var(--pf-feu); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-landing-contenu { position: relative; z-index: 2; margin-top: auto; padding: 24px 20px calc(36px + var(--pf-bas)); max-width: 640px; }
.pf-surtitre { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pf-jaune); margin-bottom: 12px !important; }
.pf-landing h1 { color: #fff; font-size: 36px; font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.pf-landing h1 span { display: block; background: var(--pf-feu); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.pf-landing-texte { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .86); margin: 16px 0 24px !important; max-width: 520px; }
.pf-landing-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pf-landing-actions .pf-btn { flex: 1 1 160px; min-height: 54px; }
.pf-landing-verset { margin-top: 22px !important; font-size: 14px; font-style: italic; color: rgba(255, 255, 255, .72); }
.pf-landing-points { display: none; }

/* Contenu partagé, vu par un visiteur (lien ?s= ou ?t=) */
.pf-invite { position: relative; z-index: 2; flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 8px 16px calc(32px + var(--pf-bas)); }
.pf-invite-carte { width: 100%; max-width: 560px; background: var(--pf-fond); color: var(--pf-texte); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); overflow: hidden; }
.pf-invite-tete { padding: 22px 22px 18px; background: var(--pf-feu); color: #fff; }
.pf-invite-tete h1 { color: #fff; font-size: 22px; font-weight: 800; }
.pf-invite-tete p { color: rgba(255, 255, 255, .92); margin-top: 6px !important; }
.pf-invite-corps { padding: 20px 22px 24px; }
.pf-invite-corps h2 { font-size: 22px; margin: 10px 0 12px; }
.pf-invite-corps .pf-sujet-contenu { font-size: 16px; margin-top: 12px; }
.pf-invite-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }
.pf-invite-cta .pf-btn { min-height: 56px; font-size: 17px; }
.pf-invite-cta small { color: var(--pf-gris); font-size: 14px; }

/* Panneau de connexion : 1/3 de la largeur sur ordinateur, plein écran sur mobile */
.pf-panneau-fond { position: fixed; inset: 0; z-index: 40; background: rgba(11, 22, 48, .35); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.pf-panneau {
	position: fixed; z-index: 50; top: 0; right: 0; bottom: 0;
	width: 100%; background: var(--pf-fond); color: var(--pf-texte);
	transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
	display: flex; flex-direction: column; box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .5);
	overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.pf-panneau-ouvert .pf-panneau { transform: none; }
.pf-panneau-ouvert .pf-panneau-fond { opacity: 1; pointer-events: auto; }
.pf-panneau-fermer { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 10px; z-index: 2; }
.pf-panneau-corps { padding: 28px 24px calc(32px + var(--pf-bas)); width: 100%; max-width: 440px; margin: 0 auto; }
.pf-panneau-logo { width: 190px; margin: 4px auto 22px; }
.pf-panneau h2 { font-size: 24px; margin-bottom: 6px; text-align: center; }
.pf-panneau-sous { text-align: center; color: var(--pf-gris); font-size: 15px; margin-bottom: 24px !important; }
.pf-ligne-entre { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -4px 0 18px; flex-wrap: wrap; }
.pf-separateur { display: flex; align-items: center; gap: 12px; color: var(--pf-gris); font-size: 14px; margin: 22px 0 14px; }
.pf-separateur::before, .pf-separateur::after { content: ""; flex: 1; height: 1px; background: var(--pf-ligne); }
.pf-photo-choix { display: flex; align-items: center; gap: 14px; }
.pf-photo-apercu { width: 64px; height: 64px; border-radius: 50%; background: var(--pf-fond-2); border: 2px dashed var(--pf-bord-champ); display: flex; align-items: center; justify-content: center; color: var(--pf-gris); overflow: hidden; flex-shrink: 0; }
.pf-photo-apercu img { width: 100%; height: 100%; object-fit: cover; }
.pf-photo-apercu svg { width: 26px; height: 26px; }

/* ───────────── 6. COQUILLE DE L'APP ───────────── */
.pf-coquille { min-height: 100vh; min-height: 100dvh; }
.pf-entete {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; gap: 10px;
	height: 60px; padding: 0 12px 0 16px; padding-top: env(safe-area-inset-top);
	box-sizing: content-box;
	background: var(--pf-entete); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--pf-ligne);
}
.pf-entete .pf-marque { color: var(--pf-encre); font-size: 16px; }
.pf-entete .pf-marque img { width: 34px; height: 34px; }
.pf-entete-titre { display: none; }
.pf-entete-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.pf-pastille { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pf-orange); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--pf-fond); line-height: 1; }
.pf-entete-avatar { padding: 0; border: 0; background: none; border-radius: 50%; margin-left: 4px; }

.pf-vue { padding: 20px 16px calc(var(--pf-nav-h) + 28px + var(--pf-bas)); max-width: 1180px; margin: 0 auto; }
.pf-vue-entree { animation: pf-apparait .16s ease-out both; }
@keyframes pf-apparait { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Barre de navigation du bas (mobile) */
.pf-nav {
	position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
	height: calc(var(--pf-nav-h) + var(--pf-bas)); padding-bottom: var(--pf-bas);
	display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
	background: var(--pf-nav); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
	border-top: 1px solid var(--pf-ligne);
}
.pf-nav-marque { display: none; }
.pf-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; color: var(--pf-gris); font-size: 11px; font-weight: 600; text-decoration: none !important; position: relative; }
.pf-nav-icone { position: relative; display: flex; }
.pf-nav a svg { width: 24px; height: 24px; }
.pf-nav a.pf-actif { color: var(--pf-encre); }
.pf-nav a.pf-actif::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--pf-jaune); }
.pf-nav .pf-nav-plus .pf-nav-bulle { width: 48px; height: 48px; border-radius: 50%; background: var(--pf-feu); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -8px rgba(234, 88, 12, .8); margin-top: -18px; border: 3px solid var(--pf-carte); }
.pf-nav .pf-nav-plus.pf-actif::before { display: none; }
/* Pastille « nouveau contenu » sur une icône du menu */
.pf-nav-pastille { position: absolute; top: -7px; right: -16px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--pf-orange); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; border: 2px solid var(--pf-carte); box-sizing: content-box; }
.pf-nav-bas { display: none; }

/* ───────────── 7. CARTES, BADGES, ONGLETS ───────────── */
.pf-titre-vue { font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.pf-sous-vue { color: var(--pf-gris); margin-top: 6px !important; }
.pf-section { margin-top: 28px; }
.pf-section-titre { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pf-section-titre h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.pf-section-titre h2 svg { width: 20px; height: 20px; color: var(--pf-orange); }
.pf-section-titre h2 small { font-family: var(--pf-corps); font-size: 14px; font-weight: 500; color: var(--pf-gris); }

.pf-carte { background: var(--pf-carte); border: 1px solid var(--pf-ligne); border-radius: var(--pf-r-carte); box-shadow: var(--pf-ombre-carte); padding: 18px; }
.pf-grille { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* Onglets Communauté / Mes sujets */
.pf-onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 18px 0 14px; border-radius: var(--pf-r-pilule); background: var(--pf-fond-2); border: 1px solid var(--pf-ligne); }
.pf-onglets a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: var(--pf-r-pilule); color: var(--pf-gris); font-weight: 600; font-size: 15px; text-decoration: none !important; }
.pf-onglets a svg { width: 18px; height: 18px; }
.pf-onglets a.pf-actif { background: var(--pf-carte); color: var(--pf-encre); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.pf-onglets a span.pf-compte { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pf-t-jaune); color: var(--pf-t-jaune-txt); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

.pf-carte-sujet { display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease, box-shadow .15s ease; }
.pf-carte-sujet:hover { transform: translateY(-2px); }
.pf-carte-haut { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pf-carte-sujet h3 { font-size: 18px; font-weight: 700; }
.pf-extrait { color: var(--pf-gris); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-carte-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pf-gris); min-width: 0; flex-wrap: wrap; }
.pf-carte-meta strong { color: var(--pf-encre); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-lieu { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.pf-lieu svg { width: 14px; height: 14px; }
.pf-carte-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--pf-ligne-2); }
.pf-carte-pied-actions { display: flex; gap: 6px; align-items: center; }
.pf-compteur { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--pf-encre); }
.pf-compteur svg { width: 18px; height: 18px; color: var(--pf-orange); }
.pf-compteur b { font-family: var(--pf-titre); }
.pf-points { display: inline-flex; gap: 3px; margin-left: 2px; }
.pf-point { width: 8px; height: 8px; border-radius: 50%; }
.pf-point-actif { background: var(--pf-vert); }
.pf-point-retard { background: #F59E0B; }
.pf-point-ponctuel, .pf-point-termine { background: var(--pf-gris-pale); }

/* Sujets clôturés : bien distincts (liseré de couleur, légèrement atténués) */
.pf-carte-exauce { border-left: 5px solid var(--pf-vert); }
.pf-carte-suspendu { border-left: 5px solid var(--pf-ambre); }
.pf-carte-terminee { opacity: .78; }
.pf-carte-terminee:hover { opacity: 1; }

/* Cartes « en vedette » : fond bleu nuit avec lueur de feu (identiques jour et nuit) */
.pf-vedette { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 12px; margin: 0 -16px; scrollbar-width: none; }
.pf-vedette::-webkit-scrollbar { display: none; }
.pf-vedette > * { scroll-snap-align: start; }
.pf-carte-vedette { background: radial-gradient(120% 90% at 100% 0%, rgba(251, 189, 35, .28), transparent 55%), linear-gradient(160deg, #1D3462, #0B1630); border: 0; color: #fff; box-shadow: var(--pf-ombre-forte); min-height: 240px; }
.pf-carte-vedette h3 { color: #fff; font-size: 20px; }
.pf-carte-vedette .pf-extrait { color: rgba(255, 255, 255, .78); }
.pf-carte-vedette .pf-carte-meta, .pf-carte-vedette .pf-compteur { color: rgba(255, 255, 255, .8); }
.pf-carte-vedette .pf-carte-meta strong { color: #fff; }
.pf-carte-vedette .pf-carte-pied { border-top-color: rgba(255, 255, 255, .12); }
.pf-carte-vedette .pf-compteur svg { color: var(--pf-jaune); }
.pf-carte-vedette .pf-badge-cat { background: rgba(255, 255, 255, .12); color: #fff; }
.pf-carte-vedette .pf-avatar { background: rgba(255, 255, 255, .15); color: #fff; }
.pf-carte-vedette .pf-btn-icone { color: #fff; }

.pf-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.pf-badge svg { width: 13px; height: 13px; }
.pf-badge-cat { background: var(--pf-t-jaune); color: var(--pf-t-jaune-txt); }
.pf-badge-admin { background: #2463EB; color: #fff; }
.pf-badge-moi { background: var(--pf-t-bleu); color: var(--pf-t-bleu-txt); }
.pf-badge-vert { background: var(--pf-t-vert); color: var(--pf-t-vert-txt); }
.pf-badge-ambre { background: var(--pf-t-ambre); color: var(--pf-t-ambre-txt); }
.pf-badge-gris { background: var(--pf-t-gris); color: var(--pf-t-gris-txt); }
.pf-badge-feu { background: var(--pf-feu); color: #fff; }
.pf-badge-nouveau { background: var(--pf-orange); color: #fff; }

.pf-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: var(--pf-t-avatar); color: var(--pf-encre); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase; overflow: hidden; }
.pf-avatar svg { width: 60%; height: 60%; }
.pf-avatar-anonyme { background: var(--pf-t-gris); color: var(--pf-gris); }
.pf-avatar-marque { background: #fff; object-fit: contain; padding: 2px; }
.pf-avatar-m { width: 40px; height: 40px; font-size: 14px; }
.pf-avatar-l { width: 84px; height: 84px; font-size: 28px; }

.pf-vide { text-align: center; padding: 36px 20px; color: var(--pf-gris); }
.pf-vide svg { width: 44px; height: 44px; color: var(--pf-gris-pale); margin: 0 auto 10px; display: block; }
.pf-vide p + .pf-btn { margin-top: 16px; }
.pf-chargement { display: flex; justify-content: center; padding: 40px; animation: pf-chargement-tard .45s ease both; }
/* v1.6.2 : la roue n'apparaît qu'après 0,25 s → un écran qui arrive vite ne « clignote » plus */
@keyframes pf-chargement-tard { 0%, 55% { opacity: 0; } 100% { opacity: 1; } }
.pf-roue { width: 32px; height: 32px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--pf-encre) 14%, transparent); border-top-color: var(--pf-orange); animation: pf-tourne .8s linear infinite; }
@keyframes pf-tourne { to { transform: rotate(360deg); } }
.pf-plus { display: flex; justify-content: center; margin-top: 20px; }
.pf-squelette { border-radius: var(--pf-r-carte); background: linear-gradient(90deg, var(--pf-squelette-1) 25%, var(--pf-squelette-2) 37%, var(--pf-squelette-1) 63%); background-size: 400% 100%; animation: pf-brille 1.3s ease infinite; height: 190px; }
@keyframes pf-brille { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Barre de recherche */
.pf-recherche { position: relative; margin: 0 0 12px; }
.pf-recherche svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--pf-gris-clair); }
.pf-recherche .pf-input { padding-left: 44px; border-radius: var(--pf-r-pilule); }

/* ───────────── 8. MODALES & TOASTS ───────────── */
.pf-modal-fond { position: fixed; inset: 0; z-index: 100; background: rgba(5, 10, 24, .55); display: flex; align-items: flex-end; justify-content: center; animation: pf-fondu .2s ease both; }
@keyframes pf-fondu { from { opacity: 0; } to { opacity: 1; } }
.pf-modal {
	position: relative; width: 100%; max-height: 92vh; max-height: 92dvh;
	background: var(--pf-fond); border-radius: 22px 22px 0 0;
	display: flex; flex-direction: column;
	box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .4);
	animation: pf-monte .3s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes pf-monte { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.pf-modal::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--pf-ligne); }
.pf-modal-tete { display: flex; align-items: flex-start; gap: 10px; padding: 22px 16px 6px 20px; }
.pf-modal-tete h2 { font-size: 20px; flex: 1; padding-top: 8px; }
.pf-modal-corps { padding: 10px 20px calc(24px + var(--pf-bas)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pf-modal-plein { height: 100%; max-height: 100%; border-radius: 0; }
.pf-modal-plein::before { display: none; }
.pf-modal-pied { padding: 12px 20px calc(16px + var(--pf-bas)); border-top: 1px solid var(--pf-ligne); background: var(--pf-fond); display: flex; gap: 10px; }
.pf-modal-pied .pf-btn { flex: 1; }
.pf-modal-centre { text-align: center; }
.pf-modal-icone { width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 14px; display: flex; align-items: center; justify-content: center; background: var(--pf-t-jaune); color: var(--pf-orange); }
.pf-modal-icone svg { width: 30px; height: 30px; }
.pf-modal-message { font-size: 17px; line-height: 1.55; color: var(--pf-encre); }
.pf-modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

.pf-toasts { position: fixed; z-index: 200; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.pf-toast { pointer-events: auto; max-width: 480px; width: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--pf-bloc-fonce); color: #fff; font-size: 15px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .45); animation: pf-toast .3s cubic-bezier(.2, .8, .2, 1) both; }
.pf-toast svg { width: 20px; height: 20px; margin-top: 1px; color: var(--pf-jaune); }
.pf-toast-erreur { background: #7F1D1D; }
.pf-toast-erreur svg { color: #FCA5A5; }
.pf-toast-sortie { animation: pf-toast-sort .25s ease both; }
@keyframes pf-toast { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pf-toast-sort { to { transform: translateY(-16px); opacity: 0; } }

/* Visionneuse d'image (plein écran) */
.pf-visionneuse { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: 16px; animation: pf-fondu .2s ease both; }
.pf-visionneuse img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.pf-visionneuse .pf-btn-icone { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; color: #fff; background: rgba(255, 255, 255, .12); }

/* Partage */
.pf-partage-apercu { background: var(--pf-carte); border: 1px solid var(--pf-ligne); border-radius: 14px; padding: 14px; font-size: 15px; color: var(--pf-texte); line-height: 1.55; }
.pf-partage-apercu small { display: block; margin-top: 8px; color: var(--pf-bleu); word-break: break-all; font-size: 13px; }
.pf-partage-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pf-partage-boutons .pf-btn { padding: 0 12px; }
.pf-partage-boutons .pf-btn:first-child { grid-column: 1 / -1; }

/* ───────────── 9. À LA UNE, RÉACTIONS, MÉDIAS ───────────── */
.pf-une { margin-top: 20px; }
.pf-une-titre { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pf-une-titre h2 { font-size: 13px; font-family: var(--pf-corps); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pf-orange); display: flex; align-items: center; gap: 8px; }
.pf-une-titre h2 svg { width: 18px; height: 18px; }
.pf-une-liste { display: flex; flex-direction: column; gap: 16px; }
.pf-post { padding: 0; overflow: hidden; border: 2px solid transparent; background: linear-gradient(var(--pf-carte), var(--pf-carte)) padding-box, var(--pf-feu) border-box; }
.pf-post-tete { display: flex; align-items: center; gap: 10px; padding: 14px 12px 8px 16px; }
.pf-post-tete > div { flex: 1; min-width: 0; }
.pf-post-tete strong { display: flex; align-items: center; gap: 6px; color: var(--pf-encre); }
.pf-post-tete small { color: var(--pf-gris); font-size: 13px; }
.pf-post-corps { padding: 0 16px 12px; }
.pf-post-corps h3 { font-size: 19px; margin-bottom: 6px; }
.pf-post-texte { white-space: pre-line; color: var(--pf-texte); line-height: 1.6; overflow-wrap: anywhere; }
.pf-replie { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pf-post-media { background: #000; }
.pf-post-media img { width: 100%; max-height: 520px; object-fit: cover; cursor: zoom-in; }
.pf-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; padding: 0; display: block; cursor: pointer; overflow: hidden; }
.pf-video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.pf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-video-lecture { position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: #FF0000; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.pf-video-lecture svg { width: 26px; height: 26px; color: #fff; }
.pf-post-stats { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; font-size: 13px; color: var(--pf-gris); }
.pf-post-stats-reac { display: flex; align-items: center; gap: 6px; }
.pf-reac-bulles { display: inline-flex; }
.pf-reac-bulles i { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--pf-carte); margin-left: -4px; }
.pf-reac-bulles i:first-child { margin-left: 0; }
.pf-reac-bulles i svg { width: 11px; height: 11px; color: #fff; }
.pf-reac-bulles .pf-b-aime { background: #2463EB; }
.pf-reac-bulles .pf-b-adore { background: #E11D48; }
.pf-actions-barre { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--pf-ligne-2); padding: 4px; }
.pf-actions-barre.pf-3 { grid-template-columns: repeat(3, 1fr); }
.pf-action { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; border-radius: 10px; background: none; color: var(--pf-gris); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pf-action:hover { background: var(--pf-fond-2); }
.pf-action svg { width: 20px; height: 20px; }
.pf-action.pf-aime-actif { color: #2463EB; }
.pf-action.pf-adore-actif { color: #E11D48; }
.pf-action.pf-adore-actif svg { fill: currentColor; }
.pf-action.pf-prier { color: var(--pf-orange); }
.pf-action.pf-prier-fait { color: var(--pf-vert); }
.pf-action-pop { animation: pf-pop .35s ease; }
@keyframes pf-pop { 40% { transform: scale(1.25); } }

/* Galerie de fichiers joints */
.pf-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 14px; }
.pf-galerie button { aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--pf-fond-2); }
.pf-galerie img { width: 100%; height: 100%; object-fit: cover; }
.pf-docs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pf-doc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--pf-ligne); border-radius: 12px; background: var(--pf-carte); color: var(--pf-encre); text-decoration: none !important; font-size: 14px; }
.pf-doc .pf-joint-pdf { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.pf-doc span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-doc small { color: var(--pf-gris); }

/* ───────────── 10. ÉCRANS ───────────── */

/* Retour */
.pf-retour { display: inline-flex; align-items: center; gap: 4px; margin-left: -8px; margin-bottom: 10px; color: var(--pf-gris); font-weight: 600; font-size: 15px; background: none; border: 0; padding: 8px; border-radius: 10px; }
.pf-retour svg { width: 20px; height: 20px; }
.pf-barre-haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Page d'un sujet */
.pf-sujet-tete h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; margin: 10px 0 14px; }
.pf-auteur { display: flex; align-items: center; gap: 12px; }
.pf-auteur strong { display: block; color: var(--pf-encre); }
.pf-auteur small { color: var(--pf-gris); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pf-sujet-contenu { font-size: 17px; line-height: 1.75; white-space: pre-line; color: var(--pf-texte); margin-top: 18px; overflow-wrap: anywhere; }
.pf-sujet-cote { margin-top: 24px; }
.pf-bandeau { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-top: 18px; }
.pf-bandeau svg { width: 22px; height: 22px; margin-top: 2px; }
.pf-bandeau-vert { background: var(--pf-t-vert); color: var(--pf-t-vert-txt); }
.pf-bandeau-ambre { background: var(--pf-t-ambre); color: var(--pf-t-ambre-txt); }
.pf-bandeau p { white-space: pre-line; }
.pf-zone-actions { display: grid; gap: 10px; }
.pf-zone-actions .pf-btn { min-height: 54px; font-size: 17px; }
.pf-mon-eng { background: var(--pf-t-jaune); border: 1px solid color-mix(in srgb, var(--pf-jaune) 45%, transparent); border-radius: var(--pf-r-carte); padding: 16px; }
.pf-mon-eng h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.pf-mon-eng h3 svg { width: 20px; height: 20px; color: var(--pf-orange); }
.pf-mon-eng p { font-size: 14px; color: var(--pf-t-jaune-txt); }
.pf-mon-eng-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pf-mon-eng-actions .pf-btn { flex: 1 1 140px; }

.pf-stats-inter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pf-stat { background: var(--pf-carte); border: 1px solid var(--pf-ligne); border-radius: 14px; padding: 12px; text-align: center; }
.pf-stat b { display: block; font-family: var(--pf-titre); font-size: 22px; color: var(--pf-encre); line-height: 1.1; }
.pf-stat span { font-size: 12px; color: var(--pf-gris); }
.pf-stat-vert b { color: var(--pf-vert); }
.pf-stat-ambre b { color: var(--pf-ambre); }

.pf-liste { background: var(--pf-carte); border: 1px solid var(--pf-ligne); border-radius: var(--pf-r-carte); overflow: hidden; }
.pf-liste-titre { padding: 10px 16px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pf-gris); background: var(--pf-carte-2); border-bottom: 1px solid var(--pf-ligne); }
.pf-ligne { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--pf-ligne-2); }
.pf-ligne:last-child { border-bottom: 0; }
.pf-ligne-txt { flex: 1; min-width: 0; }
.pf-ligne-txt strong { display: block; color: var(--pf-encre); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-ligne-txt small { display: block; color: var(--pf-gris); font-size: 13px; line-height: 1.4; }

/* Choix S'engager (icônes bien centrées) */
.pf-options { display: grid; gap: 12px; margin-top: 16px; }
.pf-option { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; border-radius: 16px; border: 2px solid var(--pf-ligne); background: var(--pf-carte); transition: border-color .15s, transform .12s; width: 100%; }
.pf-option:hover { border-color: var(--pf-jaune); }
.pf-option:active { transform: scale(.99); }
.pf-option-icone { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-option-icone svg { width: 28px; height: 28px; display: block; }
.pf-option-feu { background: var(--pf-feu); color: #fff; }
.pf-option-bleu { background: var(--pf-t-bleu); color: var(--pf-t-bleu-txt); }
.pf-option-txt { display: block; min-width: 0; }
.pf-option-txt strong { display: block; font-family: var(--pf-titre); font-size: 17px; color: var(--pf-encre); }
.pf-option-txt small { display: block; font-size: 14px; color: var(--pf-gris); margin-top: 2px; }

/* Prière : minuteur circulaire */
.pf-chrono { text-align: center; padding: 6px 0 4px; }
.pf-anneau { position: relative; width: 248px; height: 248px; margin: 0 auto 12px; }
.pf-anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.pf-anneau-piste { fill: none; stroke: var(--pf-ligne); stroke-width: 12; }
.pf-anneau-barre { fill: none; stroke: url(#pf-degrade-feu); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .3s linear, stroke .3s; }
.pf-anneau-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.pf-anneau-centre img { width: 66px; margin-bottom: 2px; transform-origin: 50% 85%; animation: pf-flamme-vive 1.9s ease-in-out infinite; }
.pf-anneau-etiquette { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pf-orange); }
.pf-chrono-temps { font-family: var(--pf-titre); font-size: 50px; font-weight: 700; letter-spacing: -.02em; color: var(--pf-encre); font-variant-numeric: tabular-nums; line-height: 1.05; }
.pf-chrono-total { font-size: 14px; color: var(--pf-gris); min-height: 21px; }
/* Mode « libre » (sans programme) : l'anneau tourne doucement */
.pf-chrono-libre .pf-anneau svg { animation: pf-tourne 8s linear infinite; }
/* Mode « temps en plus » (après 0) : tout passe au vert, l'anneau respire */
.pf-chrono-plus .pf-anneau-barre { stroke: var(--pf-vert); }
.pf-chrono-plus .pf-anneau-etiquette { color: var(--pf-vert); }
.pf-chrono-plus .pf-chrono-temps { color: var(--pf-vert); }
.pf-chrono-plus .pf-anneau { animation: pf-respire-anneau 2.6s ease-in-out infinite; }
@keyframes pf-respire-anneau { 50% { transform: scale(1.03); } }
@keyframes pf-vacille { 0%, 100% { transform: scale(1) rotate(0); } 40% { transform: scale(1.04) rotate(-2deg); } 70% { transform: scale(.98) rotate(2deg); } }
/* Logo du minuteur : la flamme « danse » et rayonne doucement */
@keyframes pf-flamme-vive {
	0%, 100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 3px rgba(251, 189, 35, .35)); }
	20% { transform: scale(1.07, 1.1) rotate(-3deg); filter: drop-shadow(0 0 10px rgba(249, 115, 22, .65)); }
	45% { transform: scale(.97, .95) rotate(2.5deg); filter: drop-shadow(0 0 5px rgba(251, 189, 35, .45)); }
	70% { transform: scale(1.05, 1.08) rotate(-1.5deg); filter: drop-shadow(0 0 12px rgba(234, 88, 12, .7)); }
}
.pf-chrono-msg { font-size: 17px; color: var(--pf-encre); }
.pf-chrono-sujet { font-size: 14px; color: var(--pf-gris); margin-top: 6px !important; }
.pf-chrono-alerte { margin-top: 10px !important; font-size: 15px; font-weight: 600; color: var(--pf-vert); min-height: 22px; }

/* Programmer */
.pf-etape { background: var(--pf-carte); border: 1px solid var(--pf-ligne); border-radius: var(--pf-r-carte); padding: 16px; margin-bottom: 14px; }
.pf-etape-titre { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pf-etape-num { width: 28px; height: 28px; border-radius: 50%; background: var(--pf-plein); color: var(--pf-plein-texte); font-family: var(--pf-titre); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-etape-titre h3 { font-size: 17px; }
.pf-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pf-deux > * { min-width: 0; }
.pf-deux .pf-champ { margin-bottom: 10px; }
.pf-jours-sem { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.pf-jour-sem { aspect-ratio: 1; max-height: 48px; border-radius: 50%; border: 1px solid var(--pf-ligne); background: var(--pf-fond); font-weight: 700; color: var(--pf-encre); font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all .12s; }
.pf-jour-sem.pf-actif { background: var(--pf-jaune); border-color: var(--pf-jaune); color: #152647; }
.pf-cal { margin-top: 12px; }
.pf-cal-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pf-cal-tete strong { font-family: var(--pf-titre); text-transform: capitalize; color: var(--pf-encre); }
.pf-cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pf-cal-entete { text-align: center; font-size: 12px; font-weight: 700; color: var(--pf-gris-clair); padding: 4px 0; }
.pf-cal-jour { aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; font-size: 15px; font-weight: 500; color: var(--pf-encre); display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; position: relative; }
.pf-cal-jour.pf-dans { background: var(--pf-fond-2); }
.pf-cal-jour.pf-actif { background: var(--pf-jaune); font-weight: 700; color: #152647; }
.pf-cal-jour[disabled] { color: var(--pf-gris-pale); background: transparent; cursor: default; }
.pf-cal-jour.pf-auj::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--pf-orange); }
.pf-duree { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-duree-ligne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--pf-ligne-2); }
.pf-duree-ligne:last-child { border-bottom: 0; }
.pf-duree-ligne .pf-select { min-height: 42px; padding: 8px 28px 8px 10px; background-position: right 6px center; font-size: 15px; }
.pf-duree-ligne span { font-weight: 600; color: var(--pf-encre); text-transform: capitalize; font-size: 15px; }
.pf-heure { display: grid; grid-template-columns: minmax(0, 160px) 1fr; gap: 10px; align-items: center; margin-top: 14px; }
.pf-resume { background: var(--pf-bloc-fonce); color: #fff; border-radius: var(--pf-r-carte); padding: 16px 18px; margin-bottom: 14px; }
.pf-resume-chiffres { display: flex; gap: 22px; flex-wrap: wrap; }
.pf-resume-chiffres b { display: block; font-family: var(--pf-titre); font-size: 26px; color: var(--pf-jaune); line-height: 1.1; }
.pf-resume-chiffres span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.pf-resume-dates { margin-top: 12px !important; font-size: 14px; color: rgba(255, 255, 255, .85); }
.pf-resume-dates b { color: #fff; }

/* ───────────── 11. MES PRIÈRES, TÉMOIGNAGES, MON ESPACE, NOTIFICATIONS ───────────── */
.pf-bilan { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pf-bilan .pf-stat { text-align: left; padding: 14px 16px; }
.pf-bilan .pf-stat b { font-size: 22px; }
/* Carte-lien (ex. « Mes sujets » dans Mon espace) */
.pf-carte-lien { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: inherit; }
.pf-carte-lien > svg { width: 22px; height: 22px; color: var(--pf-gris-clair); }
.pf-carte-lien .pf-option-icone { width: 44px; height: 44px; }
.pf-carte-lien .pf-option-icone svg { width: 22px; height: 22px; }
.pf-carte-auj { display: flex; align-items: center; gap: 12px; border-left: 4px solid var(--pf-jaune); }
.pf-carte-auj .pf-ligne-txt strong { white-space: normal; }
.pf-eng-carte { display: flex; flex-direction: column; gap: 8px; }
.pf-eng-carte h3 { font-size: 16px; }
.pf-eng-infos { font-size: 14px; color: var(--pf-gris); display: flex; flex-direction: column; gap: 3px; }
.pf-eng-infos span { display: flex; gap: 6px; align-items: center; }
.pf-eng-infos svg { width: 16px; height: 16px; color: var(--pf-gris-clair); }
.pf-progression { height: 6px; border-radius: 3px; background: var(--pf-ligne-2); overflow: hidden; margin-top: 4px; }
.pf-progression i { display: block; height: 100%; background: var(--pf-feu); border-radius: 3px; }

.pf-temoignage { display: flex; flex-direction: column; gap: 10px; position: relative; padding-bottom: 0; }
.pf-temoignage-guillemet { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; color: color-mix(in srgb, var(--pf-jaune) 50%, transparent); }
.pf-temoignage h3 { font-size: 18px; padding-right: 40px; }
.pf-temoignage-texte { font-size: 16px; line-height: 1.7; color: var(--pf-texte); white-space: pre-line; overflow-wrap: anywhere; }
.pf-temoignage-texte.pf-replie { -webkit-line-clamp: 5; }
.pf-lien-sujet { font-size: 13px; color: var(--pf-gris); }
.pf-temoignage .pf-actions-barre, .pf-temoignage .pf-post-stats { margin: 0 -18px; }
.pf-temoignage .pf-post-stats { padding: 0 18px; }

.pf-profil { display: flex; align-items: center; gap: 16px; }
.pf-profil-photo { position: relative; }
.pf-profil-photo button { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--pf-carte); background: var(--pf-plein); color: var(--pf-plein-texte); display: flex; align-items: center; justify-content: center; padding: 0; }
.pf-profil-photo button svg { width: 15px; height: 15px; }
.pf-profil h2 { font-size: 22px; }
.pf-profil p { color: var(--pf-gris); font-size: 14px; display: flex; align-items: center; gap: 4px; }
.pf-profil p svg { width: 15px; height: 15px; }
.pf-mon-sujet { display: flex; flex-direction: column; gap: 10px; }
.pf-mon-sujet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-mon-sujet-actions .pf-btn { flex: 1 1 110px; }
.pf-reglage h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pf-reglage h3 svg { width: 20px; height: 20px; color: var(--pf-orange); }
.pf-segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--pf-fond-2); border: 1px solid var(--pf-ligne); margin-top: 10px; }
.pf-segments button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; border-radius: 10px; background: none; color: var(--pf-gris); font-weight: 600; font-size: 14px; }
.pf-segments button svg { width: 18px; height: 18px; }
.pf-segments button.pf-actif { background: var(--pf-carte); color: var(--pf-encre); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.pf-notif { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--pf-ligne); }
.pf-notif:last-child { border-bottom: 0; }
.pf-notif-icone { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-notif-icone svg { width: 20px; height: 20px; }
.pf-notif-vert { background: var(--pf-t-vert); color: var(--pf-vert); }
.pf-notif-ambre { background: var(--pf-t-ambre); color: var(--pf-ambre); }
.pf-notif-txt { flex: 1; font-size: 15px; }
.pf-notif-txt strong { display: block; font-family: var(--pf-titre); color: var(--pf-encre); margin-bottom: 2px; }
.pf-notif-txt small { color: var(--pf-gris-clair); font-size: 12px; }
.pf-notif.pf-non-lu .pf-notif-txt strong::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pf-orange); margin-left: 8px; vertical-align: middle; }
.pf-citation { background: var(--pf-carte); border-left: 4px solid var(--pf-jaune); border-radius: 0 14px 14px 0; padding: 16px 18px; font-size: 16px; line-height: 1.7; white-space: pre-line; color: var(--pf-texte); }

/* ───────────── 12. RESPONSIVE ───────────── */

/* Tablette (≥ 640 px) */
@media (min-width: 640px) {
	.pf-grille { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	.pf-vedette { grid-auto-columns: 46%; }
	.pf-landing h1 { font-size: 50px; }
	.pf-landing-contenu { padding-left: 40px; padding-right: 40px; padding-bottom: 56px; }
	.pf-landing-haut { padding: 22px 40px; }
	.pf-invite { align-items: center; padding-bottom: 48px; }
	.pf-modal-fond { align-items: center; padding: 24px; }
	.pf-modal { max-width: 560px; border-radius: 22px; max-height: 88vh; }
	.pf-modal::before { display: none; }
	.pf-modal-plein { max-width: 720px; height: auto; max-height: 92vh; border-radius: 22px; }
	.pf-modal-corps { padding-bottom: 24px; }
	.pf-modal-pied { border-radius: 0 0 22px 22px; padding-bottom: 16px; }
	.pf-titre-vue { font-size: 30px; }
	.pf-sujet-tete h1 { font-size: 32px; }
	.pf-vue { padding-left: 24px; padding-right: 24px; }
	.pf-toasts { left: auto; right: 20px; align-items: flex-end; width: 420px; }
	.pf-onglets { max-width: 460px; }
	.pf-une-liste { max-width: 680px; }
}

/* Ordinateur (≥ 1024 px) : navigation à gauche, panneau de connexion sur 1/3 de la largeur */
@media (min-width: 1024px) {
	.pf-panneau { width: 33.333vw; min-width: 400px; max-width: 520px; }
	.pf-panneau-fond { background: rgba(11, 22, 48, .2); }
	.pf-panneau-ouvert .pf-landing-contenu { transform: translateX(-2vw); opacity: .9; }
	.pf-landing-contenu { transition: transform .32s ease, opacity .32s ease; padding-left: 64px; padding-bottom: 72px; max-width: 720px; }
	.pf-landing-haut { padding: 26px 64px; }
	.pf-landing h1 { font-size: 60px; }
	.pf-landing-voile { background: linear-gradient(90deg, rgba(11, 22, 48, .85) 0%, rgba(11, 22, 48, .45) 40%, rgba(11, 22, 48, 0) 70%), linear-gradient(180deg, rgba(11, 22, 48, .5) 0%, rgba(11, 22, 48, 0) 30%, rgba(11, 22, 48, 0) 70%, rgba(11, 22, 48, .6) 100%); }
	.pf-landing-img { object-position: 70% 70%; }
	.pf-landing-points { display: flex; gap: 22px; margin-top: 28px !important; flex-wrap: wrap; }
	.pf-landing-points li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .82); }
	.pf-landing-points svg { width: 18px; height: 18px; color: var(--pf-jaune); }
	.pf-landing-actions .pf-btn { flex: 0 0 auto; min-width: 190px; }

	/* 2 lignes : l'en-tête (hauteur naturelle) puis le contenu (tout le reste) */
	.pf-coquille { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; }
	.pf-nav {
		position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 22px 14px;
		display: flex; flex-direction: column; align-items: stretch; gap: 4px;
		border-top: 0; border-right: 1px solid var(--pf-ligne); background: var(--pf-carte);
		grid-row: 1 / span 2;
	}
	.pf-nav-marque { order: -2; display: flex; padding: 0 10px 22px; color: var(--pf-encre); font-size: 17px; }
	.pf-nav a { flex-direction: row; justify-content: flex-start; gap: 12px; height: 48px; padding: 0 14px; border-radius: 12px; font-size: 15px; color: var(--pf-gris); }
	.pf-nav a:hover { background: var(--pf-fond); }
	.pf-nav a.pf-actif { background: var(--pf-t-jaune); color: var(--pf-encre); }
	.pf-nav a.pf-actif::before { top: 12px; bottom: 12px; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
	.pf-nav-pastille { position: static; margin-left: auto; border: 0; }
	.pf-nav .pf-nav-plus { order: -1; margin-bottom: 14px; background: var(--pf-feu); color: #fff !important; justify-content: center; border-radius: var(--pf-r-pilule); box-shadow: 0 10px 24px -12px rgba(234, 88, 12, .8); }
	.pf-nav .pf-nav-plus:hover { background: var(--pf-feu); filter: brightness(1.05); }
	.pf-nav .pf-nav-plus .pf-nav-bulle { width: auto; height: auto; background: none; box-shadow: none; margin: 0; border: 0; }
	.pf-nav .pf-nav-plus.pf-actif { background: var(--pf-feu); }
	.pf-nav-bas { display: block; margin-top: auto; padding: 14px; font-size: 13px; color: var(--pf-gris); border-top: 1px solid var(--pf-ligne); }
	.pf-entete { grid-column: 2; padding: 0 32px; }
	.pf-entete .pf-marque { display: none; }
	.pf-entete-titre { display: block; font-size: 15px; font-family: var(--pf-corps); font-weight: 600; color: var(--pf-gris); }
	.pf-vue { grid-column: 2; padding: 32px 32px 64px; width: 100%; }
	.pf-vedette { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 4px 0 8px; }
	.pf-sujet-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
	.pf-sujet-cote { position: sticky; top: 92px; margin-top: 0; }
}
@media (min-width: 1280px) {
	.pf-grille { grid-template-columns: repeat(3, 1fr); }
}

/* Moins d'animations si l'utilisateur l'a demandé dans son téléphone */
@media (prefers-reduced-motion: reduce) {
	.pf-app *, .pf-app *::before, .pf-app *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ───────────── v1.1.1 ───────────── */

/* Bouton « contacter l'auteur sur WhatsApp » */
.pf-btn-icone.pf-contact { width: 38px; height: 38px; min-height: 38px; background: #25D366; color: #fff; }
.pf-btn-icone.pf-contact:hover { background: #1EBE5A; }
.pf-btn-icone.pf-contact svg { width: 20px; height: 20px; }
.pf-carte-meta .pf-contact { width: 32px; height: 32px; min-height: 32px; }
.pf-carte-meta .pf-contact svg { width: 17px; height: 17px; }

/* Confidentialité du numéro */
.pf-confidentialite { margin-bottom: 16px; }
.pf-confidentialite .pf-interrupteur { padding-top: 4px; }
.pf-confidentialite .pf-interrupteur strong { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pf-confidentialite .pf-interrupteur strong svg { width: 18px; height: 18px; color: #25D366; }
.pf-confidentialite .pf-alerte { margin: 6px 0 0; }

/* Partage : une ligne d'icônes rondes */
.pf-partage-icones { display: flex; justify-content: space-between; gap: 6px; margin-top: 18px; }
.pf-partage-ic { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--pf-gris); font-size: 11px; font-weight: 600; text-decoration: none !important; }
.pf-partage-ic > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pf-partage-rond { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: transform .12s; }
.pf-partage-ic:active .pf-partage-rond { transform: scale(.92); }
.pf-partage-rond svg { width: 24px; height: 24px; }
.pf-r-whatsapp { background: #25D366; }
.pf-r-facebook { background: #1877F2; }
.pf-r-instagram { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.pf-r-tiktok { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.pf-r-autres { background: var(--pf-t-gris); color: var(--pf-encre); }
.pf-r-copier { background: var(--pf-t-bleu); color: var(--pf-t-bleu-txt); }

/* ───────────── v1.2 ───────────── */

/* Correction : pied des cartes de sujet. Avec le bouton WhatsApp, « Consulter » débordait à droite.
   → le pied peut passer sur 2 lignes (flex-wrap) et les boutons restent toujours collés à droite. */
.pf-carte-pied { flex-wrap: wrap; row-gap: 10px; }
.pf-compteur { min-width: 0; flex: 1 1 auto; }
.pf-compteur span { white-space: nowrap; }
.pf-carte-pied-actions { margin-left: auto; flex-shrink: 0; }
.pf-carte-pied-actions .pf-btn-icone { width: 38px; height: 38px; min-height: 38px; }
.pf-carte-pied-actions .pf-btn-icone svg { width: 19px; height: 19px; }

/* Barres d'actions à 4 ou 5 boutons : sur téléphone, icône au-dessus d'un petit libellé. */
.pf-actions-barre.pf-4 { grid-template-columns: repeat(4, 1fr); }
.pf-actions-barre.pf-5 { grid-template-columns: repeat(5, 1fr); }
.pf-action { position: relative; }
.pf-action-nb { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pf-t-bleu); color: var(--pf-t-bleu-txt); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 560px) {
	.pf-actions-barre.pf-4 .pf-action, .pf-actions-barre.pf-5 .pf-action { flex-direction: column; gap: 2px; font-size: 11px; min-height: 52px; padding: 4px 2px; }
	.pf-actions-barre.pf-4 .pf-action svg, .pf-actions-barre.pf-5 .pf-action svg { width: 21px; height: 21px; }
	.pf-actions-barre .pf-action-nb { position: absolute; top: 3px; left: calc(50% + 6px); height: 16px; min-width: 16px; font-size: 10px; }
}

/* Lieu d'habitation : pays + ville côte à côte (empilés sur petit écran) */
.pf-lieu-grille { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .pf-lieu-grille { grid-template-columns: 1fr 1fr; } }
.pf-btn-position { margin-top: 10px; }
.pf-btn-position svg { width: 17px; height: 17px; }
.pf-lieu-champ [data-position-etat] { display: block; margin-top: 6px; }
.pf-lieu-champ [data-position-etat] svg { width: 14px; height: 14px; vertical-align: -2px; }

/* Badge rouge (modération) */
.pf-badge-rouge { background: var(--pf-t-rouge); color: var(--pf-t-rouge-txt); }

/* Notifications v1.2 */
.pf-notif-feu { background: var(--pf-t-jaune); color: var(--pf-orange); }
.pf-notif-rose { background: color-mix(in srgb, #E11D48 15%, transparent); color: #F43F5E; }
.pf-notif-bleu { background: var(--pf-t-bleu); color: var(--pf-t-bleu-txt); }
.pf-notif-cliquable { cursor: pointer; }
.pf-notif-cliquable:hover { background: var(--pf-fond-2); border-radius: 12px; }
.pf-notif-txt small { display: block; margin-top: 4px; }
.pf-notif-extrait { display: block; margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: var(--pf-fond-2); color: var(--pf-texte); font-size: 14px; font-style: italic; white-space: pre-line; overflow-wrap: anywhere; }
.pf-prevenu { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--pf-gris); }
.pf-prevenu svg { width: 16px; height: 16px; color: var(--pf-orange); }
.pf-puces-retour { flex-wrap: wrap; overflow: visible; }
.pf-puces-retour .pf-puce { flex-shrink: 1; min-height: 36px; padding: 6px 14px; text-align: left; }
/* Puce choisie dans « Dire merci » seulement (la règle générale des filtres reste celle de la ligne 256) */
.pf-puces-retour .pf-puce.pf-actif { border-color: var(--pf-bleu); background: var(--pf-t-choix); color: var(--pf-encre); }

/* Encouragements */
.pf-coms { display: flex; flex-direction: column; gap: 12px; }
.pf-com { display: flex; gap: 10px; align-items: flex-start; }
.pf-com .pf-avatar { width: 34px; height: 34px; }
.pf-com-bulle { flex: 1; min-width: 0; background: var(--pf-fond-2); border-radius: 4px 16px 16px 16px; padding: 10px 14px; }
.pf-com-bulle strong { font-size: 14px; color: var(--pf-encre); margin-right: 6px; }
.pf-com-bulle p { margin: 4px 0 0; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.pf-com-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.pf-com-pied small { color: var(--pf-gris-clair); font-size: 12px; }
.pf-com-pied .pf-lien { font-size: 12px; font-weight: 600; color: var(--pf-gris); }
.pf-com-masque .pf-com-bulle { opacity: .7; }
.pf-com-form { display: flex; align-items: flex-end; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pf-ligne-2); }
.pf-com-form .pf-avatar { width: 34px; height: 34px; margin-bottom: 5px; }
.pf-com-form .pf-textarea { flex: 1; min-height: 44px; resize: none; padding-top: 10px; padding-bottom: 10px; border-radius: 22px; }
.pf-com-envoyer { width: 44px; height: 44px; min-height: 44px; background: var(--pf-feu); color: #fff; flex-shrink: 0; }
.pf-com-envoyer svg { width: 20px; height: 20px; }
.pf-signaler-discret { display: inline-flex; align-items: center; gap: 5px; align-self: flex-end; margin: 4px 8px 0 0; padding: 4px 6px; border: 0; background: none; color: var(--pf-gris-clair); font-size: 12px; font-weight: 600; }
.pf-signaler-discret svg { width: 14px; height: 14px; }

/* Nouvelles d'un sujet : petite frise */
.pf-nouvelles { display: flex; flex-direction: column; gap: 0; border-left: 3px solid var(--pf-t-bleu); margin-left: 8px; }
.pf-nouvelle { position: relative; padding: 0 0 18px 18px; }
.pf-nouvelle::before { content: ""; position: absolute; left: -8px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--pf-bleu); border: 3px solid var(--pf-fond); }
.pf-nouvelle-date { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 600; color: var(--pf-gris); }
.pf-nouvelle-date svg { width: 15px; height: 15px; }
.pf-nouvelle-date .pf-lien { margin-left: auto; font-size: 12px; color: var(--pf-gris); }
.pf-nouvelle p { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; }

/* Signaler */
.pf-motifs { display: flex; flex-direction: column; gap: 8px; }
.pf-motif { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--pf-ligne); border-radius: 12px; cursor: pointer; }
.pf-motif input { width: 18px; height: 18px; accent-color: var(--pf-rouge); flex-shrink: 0; }
.pf-motif:has(input:checked) { border-color: var(--pf-rouge); background: var(--pf-t-rouge); }

/* Modération (admin) */
.pf-mod-carte { display: flex; flex-direction: column; gap: 8px; }
.pf-mod-raisons { margin: 0; padding-left: 18px; font-size: 14px; color: var(--pf-texte); }
.pf-mod-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--pf-ligne-2); }
.pf-carte-lien .pf-compte { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--pf-rouge); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
/* Page d'un sujet : la zone Encouragements passe sous le sujet (colonne de gauche) sur ordinateur */
@media (min-width: 1024px) {
	.pf-sujet-cote { grid-row: 1 / span 2; grid-column: 2; }
	.pf-sujet-coms { grid-column: 1; grid-row: 2; margin-top: 0; }
}
@media (max-width: 479px) { .pf-com-form > .pf-avatar { display: none; } }

/* ───────────── v1.3 ───────────── */

/* Carte de sujet : titre + texte cliquables, « Consulter » = bouton rond avec un œil, tout sur une ligne */
.pf-carte-zone { display: block; color: inherit; text-decoration: none !important; border-radius: 10px; }
.pf-carte-zone:active { opacity: .75; }
.pf-carte-zone h3 { margin-bottom: 6px; }
.pf-carte-pied { flex-wrap: nowrap; }
.pf-compteur { overflow: hidden; }
.pf-compteur small { font-size: 12px; color: var(--pf-gris); }
.pf-carte-vedette .pf-compteur small { color: rgba(255, 255, 255, .7); }
.pf-btn-voir { background: var(--pf-plein); color: var(--pf-plein-texte); }
.pf-btn-voir:hover { background: var(--pf-plein); opacity: .9; }
.pf-btn-voir-vedette { background: var(--pf-jaune); color: #152647; }
.pf-carte-vedette .pf-carte-pied-actions .pf-btn-icone:not(.pf-contact):not(.pf-btn-voir) { color: #fff; }
@media (max-width: 380px) { .pf-points { display: none; } }
.pf-aide.pf-aide-erreur { color: var(--pf-rouge); font-weight: 600; }
/* Logo un peu plus grand (symbole haute définition, sans fond) */
.pf-marque img { width: 46px; height: 46px; }
.pf-entete .pf-marque img { width: 40px; height: 40px; }
/* Logo « Prayer Fire » des publications À la une : plus de rond blanc derrière */
.pf-avatar-marque { background: transparent; padding: 0; }

/* Onglets à 3 (Communauté · Fil · Mes sujets) */
.pf-onglets.pf-onglets-3 { grid-template-columns: repeat(3, 1fr); }
/* v1.3.1 — Sur téléphone : icône AU-DESSUS du libellé, 3 colonnes vraiment égales, texte jamais coupé */
@media (max-width: 560px) {
	.pf-onglets.pf-onglets-3 { padding: 5px; gap: 5px; border-radius: 20px; }
	.pf-onglets.pf-onglets-3 a { position: relative; flex-direction: column; gap: 3px; min-height: 58px; padding: 6px 4px; border-radius: 15px; font-size: 13px; line-height: 1.15; white-space: nowrap; }
	.pf-onglets.pf-onglets-3 a svg { width: 20px; height: 20px; }
	.pf-onglets.pf-onglets-3 a span.pf-compte { position: absolute; top: 4px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
}
/* Onglet choisi : bien visible, de jour comme de nuit (fond + liseré + icône couleur feu) */
.pf-onglets a.pf-actif { box-shadow: 0 1px 3px rgba(0, 0, 0, .12), inset 0 0 0 1px var(--pf-ligne); }
.pf-onglets a.pf-actif svg { color: var(--pf-orange); }
:root[data-theme="nuit"] .pf-onglets a.pf-actif { background: #2A3A5E; color: #fff; box-shadow: inset 0 0 0 1px #3D5288; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="jour"]) .pf-onglets a.pf-actif { background: #2A3A5E; color: #fff; box-shadow: inset 0 0 0 1px #3D5288; }
}

/* Liens vers un profil */
.pf-lien-profil { color: inherit; text-decoration: none !important; display: inline-flex; align-items: center; gap: inherit; }
.pf-lien-profil:hover strong, .pf-lien-profil:hover { text-decoration: underline; }
.pf-carte-meta .pf-lien-profil { gap: 8px; }

/* Prière du jour */
.pf-jour { position: relative; overflow: hidden; margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--pf-orange) 35%, var(--pf-ligne)); background: linear-gradient(160deg, color-mix(in srgb, #FBBD23 12%, var(--pf-carte)) 0%, var(--pf-carte) 60%); }
.pf-jour-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pf-jour-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--pf-r-pilule); background: var(--pf-feu); color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.pf-jour-badge svg { width: 16px; height: 16px; }
.pf-jour-tete time { font-size: 13px; color: var(--pf-gris); }
.pf-jour-verset { margin: 0 0 14px; font-style: italic; color: var(--pf-texte); font-size: 15px; line-height: 1.6; }
.pf-jour-verset cite { display: block; margin-top: 4px; font-style: normal; font-weight: 700; font-size: 13px; color: var(--pf-orange); }
.pf-jour-sujet { padding: 12px 14px; border-radius: 14px; background: var(--pf-fond-2); }
.pf-jour-sujet h3 { margin: 8px 0 4px; font-size: 18px; }
.pf-jour-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pf-jour-compte { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--pf-gris); }
.pf-jour-compte svg { width: 18px; height: 18px; color: var(--pf-orange); }

/* Fil d'activité */
.pf-bilan-jour { display: flex; align-items: center; gap: 14px; }
.pf-bilan-jour strong { display: block; font-family: var(--pf-titre); color: var(--pf-encre); }
.pf-bilan-jour span { font-size: 14px; color: var(--pf-gris); }
.pf-bilan-jour-icone { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--pf-feu); color: #fff !important; display: flex; align-items: center; justify-content: center; }
.pf-bilan-jour-icone svg { width: 24px; height: 24px; }
.pf-fil { padding: 6px 16px; }
.pf-fil-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--pf-ligne-2); }
.pf-fil-item:last-child { border-bottom: 0; }
.pf-fil-avatar { position: relative; flex-shrink: 0; width: 40px; height: 40px; }
.pf-fil-pastille { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--pf-carte); }
.pf-fil-pastille svg { width: 12px; height: 12px; }
.pf-notif-jaune { background: var(--pf-t-jaune); color: var(--pf-t-jaune-txt); }
.pf-fil-corps { flex: 1; min-width: 0; }
.pf-fil-phrase { margin: 0; font-size: 15px; line-height: 1.45; }
.pf-fil-apercu { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--pf-fond-2); color: var(--pf-texte); text-decoration: none !important; font-size: 14px; }
.pf-fil-apercu strong { display: block; color: var(--pf-encre); margin-bottom: 2px; }
.pf-fil-apercu span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-fil-louange { font-style: italic; border-left: 3px solid #F43F5E; }
.pf-fil-corps small { display: block; margin-top: 6px; font-size: 12px; color: var(--pf-gris-clair); }
.pf-fil-corps .pf-lien { display: inline-block; margin-top: 6px; font-size: 13px; }

/* Profil d'un membre */
.pf-membre-tete { display: flex; align-items: center; gap: 16px; }
.pf-membre-id { min-width: 0; }
.pf-membre-id h1 { font-size: 24px; margin: 0 0 4px; overflow-wrap: anywhere; }
.pf-membre-id p { margin: 2px 0; }
.pf-membre-abos { display: flex; gap: 18px; margin: 14px 0 4px; }
.pf-lien-discret { border: 0; background: none; padding: 0; color: var(--pf-gris); font-size: 15px; cursor: pointer; }
.pf-lien-discret b { color: var(--pf-encre); font-family: var(--pf-titre); }
.pf-membre-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.pf-membre-actions .pf-btn { flex: 1; }
.pf-bilan.pf-bilan-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .pf-bilan.pf-bilan-4 { grid-template-columns: repeat(4, 1fr); } }
.pf-bilan.pf-bilan-3 { grid-template-columns: repeat(3, 1fr); }
.pf-bilan.pf-bilan-3 .pf-stat b { font-size: 18px; }
.pf-stat-serie { text-decoration: none !important; color: inherit; }
.pf-stat-serie b { color: var(--pf-orange) !important; }
.pf-espace-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
@media (min-width: 520px) { .pf-espace-actions { grid-template-columns: 1fr 1fr; } }
.pf-ligne-lien { text-decoration: none !important; color: inherit; }
.pf-ligne-lien > svg { width: 18px; height: 18px; color: var(--pf-gris-clair); flex-shrink: 0; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-badge-defi { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--pf-r-pilule); background: var(--pf-carte); border: 1px solid var(--pf-ligne); }
.pf-badge-defi span { font-size: 22px; line-height: 1; }
.pf-badge-defi strong { font-size: 14px; color: var(--pf-encre); }

/* Séries et défis */
.pf-serie { display: flex; align-items: center; gap: 18px; }
.pf-serie h2 { margin: 0 0 4px; font-size: 20px; }
.pf-serie p { margin: 0 0 4px; }
.pf-serie-flamme { position: relative; width: 84px; height: 84px; flex-shrink: 0; border-radius: 50%; background: var(--pf-fond-2); display: flex; align-items: center; justify-content: center; font-size: 46px; filter: grayscale(.8); }
.pf-serie-flamme b { position: absolute; bottom: -4px; right: -4px; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 17px; background: var(--pf-plein); color: var(--pf-plein-texte); font-family: var(--pf-titre); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.pf-serie-allumee .pf-serie-flamme { filter: none; background: color-mix(in srgb, #FBBD23 25%, var(--pf-carte)); animation: pf-flamme-vive 2.4s ease-in-out infinite; }
.pf-defis { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .pf-defis { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pf-defis { grid-template-columns: 1fr 1fr 1fr; } }
.pf-defi { display: flex; gap: 14px; align-items: flex-start; }
.pf-defi-icone { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--pf-fond-2); display: flex; align-items: center; justify-content: center; font-size: 28px; filter: grayscale(1); opacity: .55; }
.pf-defi-ok .pf-defi-icone { filter: none; opacity: 1; background: color-mix(in srgb, #FBBD23 22%, var(--pf-carte)); }
.pf-defi-txt { flex: 1; min-width: 0; }
.pf-defi-txt strong { display: block; color: var(--pf-encre); }
.pf-defi-txt small { display: block; color: var(--pf-gris); font-size: 13px; margin-bottom: 6px; }
.pf-defi-txt .pf-progression { margin: 6px 0 2px; }
.pf-serie-mini { display: block; margin-top: 10px; font-weight: 700; color: var(--pf-orange); }
.pf-badges-gagnes { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; text-align: left; }
.pf-badge-gagne { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #FBBD23 18%, var(--pf-carte)); }
.pf-badge-gagne i { font-style: normal; font-size: 26px; }
.pf-badge-gagne b { color: var(--pf-orange); }

/* Mur de louange */
.pf-louange-form { margin: 4px 0 16px; }
.pf-louange-form .pf-textarea { margin-top: 8px; }
.pf-louange-form-pied { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.pf-louange-form-pied .pf-case { font-size: 14px; margin-right: auto; }
.pf-louanges { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .pf-louanges { grid-template-columns: 1fr 1fr; } }
.pf-louange { border-left: 4px solid #F43F5E; }
.pf-louange-tete { display: flex; align-items: center; gap: 10px; }
.pf-louange-tete strong { display: block; color: var(--pf-encre); font-size: 15px; }
.pf-louange-tete small { color: var(--pf-gris-clair); font-size: 12px; }
.pf-louange-tete .pf-badge { margin-left: auto; }
.pf-louange-texte { margin: 12px 0; font-family: var(--pf-titre); font-size: 18px; line-height: 1.5; color: var(--pf-encre); white-space: pre-line; overflow-wrap: anywhere; }
.pf-louange-pied { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pf-louange-pied .pf-lien { font-size: 12px; color: var(--pf-gris); }
.pf-amen { background: var(--pf-fond-2); color: var(--pf-encre); border: 1px solid var(--pf-ligne); }
.pf-amen.pf-aime-actif { background: color-mix(in srgb, #F43F5E 14%, var(--pf-carte)); border-color: #F43F5E; color: #F43F5E; }
.pf-amen b:empty { display: none; }
@media (max-width: 480px) { .pf-jour-verset { font-size: 14px; } .pf-jour-sujet h3 { font-size: 17px; } }

/* ───────────── v1.3.1 : À la une (carrousel, lecteur plein écran, commentaires) ───────────── */
.pf-une { margin-bottom: 18px; }
.pf-une-titre { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pf-une-titre h2 { margin: 0; }
.pf-une-titre h2 svg { width: 20px; height: 20px; color: var(--pf-orange); }
.pf-ul-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pf-ul-rail::-webkit-scrollbar { display: none; }
.pf-ul-carte { flex: 0 0 min(78vw, 290px); scroll-snap-align: start; display: flex; flex-direction: column; background: var(--pf-carte); border: 1px solid var(--pf-ligne); border-radius: 20px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.pf-ul-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border: 0; padding: 0; margin: 0; background: #0C1222; color: #fff; cursor: pointer; overflow: hidden; text-align: left; }
.pf-ul-media img, .pf-ul-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-ul-lecture { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.pf-ul-lecture svg { width: 26px; height: 26px; margin-left: 3px; }
.pf-ul-etiquette { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 10px; background: rgba(0, 0, 0, .5); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.pf-ul-story .pf-ul-etiquette { background: linear-gradient(135deg, #F472B6, #FB923C); }
.pf-ul-story { box-shadow: inset 0 0 0 3px #F472B6; }
.pf-ul-legende { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); font-size: 13px; line-height: 1.4; }
.pf-ul-legende b { display: block; font-size: 15px; margin-bottom: 2px; }
.pf-ul-texte { display: flex; flex-direction: column; justify-content: center; padding: 26px 22px; }
.pf-ul-texte p { margin: 0; font-family: var(--pf-titre); font-size: 19px; line-height: 1.45; white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; }
.pf-ul-texte cite { margin-top: 14px; font-style: normal; font-weight: 700; opacity: .9; }
.pf-ul-clair { color: #152647 !important; }
.pf-ul-actions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--pf-ligne-2); }
.pf-ul-act { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 46px; border: 0; background: none; color: var(--pf-gris); font-size: 13px; font-weight: 700; cursor: pointer; }
.pf-ul-act svg { width: 21px; height: 21px; }
.pf-ul-act.pf-aime-actif { color: #2463EB; }
.pf-ul-act.pf-adore-actif { color: #E11D48; }
.pf-ul-act.pf-adore-actif svg, .pf-lect-act.pf-adore-actif svg { fill: currentColor; }
.pf-ul-sujet { padding: 16px; gap: 8px; border-color: color-mix(in srgb, var(--pf-orange) 35%, var(--pf-ligne)); background: linear-gradient(160deg, color-mix(in srgb, #FBBD23 12%, var(--pf-carte)) 0%, var(--pf-carte) 60%); }
.pf-ul-pastille { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--pf-r-pilule); background: var(--pf-feu); color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.pf-ul-pastille svg { width: 15px; height: 15px; }
.pf-ul-sujet-img { width: 100%; height: 130px; object-fit: cover; border-radius: 12px; }
.pf-ul-sujet h3 { margin: 4px 0; font-size: 18px; }
.pf-ul-sujet .pf-extrait { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pf-ul-sujet-pied { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pf-jour-compte { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pf-gris); }
.pf-jour-compte svg { width: 17px; height: 17px; color: var(--pf-orange); flex-shrink: 0; }
@media (min-width: 1024px) { .pf-ul-carte { flex-basis: 270px; } }

/* Lecteur plein écran (style TikTok / Réels) */
.pf-liseuse { position: fixed; inset: 0; z-index: 90; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; }
.pf-lect-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pf-lect-image, .pf-lect-video { max-width: 100%; max-height: 100%; }
.pf-lect-couvrir { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .pf-lect-couvrir { width: auto; max-width: min(100%, 56.25vh); object-fit: contain; } }
.pf-lect-yt { width: 100%; aspect-ratio: 16 / 9; border: 0; max-height: 100%; }
.pf-lect-yt.pf-lect-vertical { width: min(100%, 56.25vh); height: 100%; aspect-ratio: auto; }
.pf-lect-texte { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 40px 28px 120px; }
.pf-lect-texte p { margin: 0 auto; max-width: 560px; font-family: var(--pf-titre); font-size: 26px; line-height: 1.45; white-space: pre-line; }
.pf-lect-texte cite { margin: 18px auto 0; max-width: 560px; width: 100%; font-style: normal; font-weight: 700; opacity: .9; }
.pf-lect-haut { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 14px 30px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.pf-lect-marque { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pf-lect-marque img { width: 30px; height: 30px; }
.pf-lect-marque small { font-weight: 400; opacity: .75; }
.pf-lect-fermer { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; display: flex; align-items: center; justify-content: center; }
.pf-lect-fermer svg { width: 22px; height: 22px; }
.pf-lect-progres { position: absolute; z-index: 3; top: max(6px, env(safe-area-inset-top)); left: 12px; right: 12px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.pf-lect-progres i { display: block; height: 100%; width: 0; background: #fff; }
.pf-lect-cote { position: absolute; z-index: 2; right: 10px; bottom: 120px; display: flex; flex-direction: column; gap: 16px; }
.pf-lect-act { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); cursor: pointer; }
.pf-lect-act span { width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.pf-lect-act svg { width: 26px; height: 26px; }
.pf-lect-act.pf-aime-actif span { background: #2463EB; }
.pf-lect-act.pf-adore-actif span { background: #E11D48; }
.pf-lect-legende { position: absolute; z-index: 2; left: 0; right: 70px; bottom: 56px; padding: 14px 16px; cursor: pointer; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.pf-lect-legende b { display: block; font-size: 16px; margin-bottom: 4px; }
.pf-lect-legende p { margin: 0; font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.pf-lect-legende.pf-ouverte { background: rgba(0, 0, 0, .55); max-height: 50vh; overflow: auto; }
.pf-lect-legende.pf-ouverte p { -webkit-line-clamp: unset; }
.pf-lect-nav { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; font-size: 13px; opacity: .9; }
.pf-lect-nav button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; display: flex; align-items: center; justify-content: center; }
.pf-lect-nav button:disabled { opacity: .3; }
.pf-lect-nav svg { width: 20px; height: 20px; }

/* Panneau des commentaires (monte du bas, s'agrandit, se replie) */
.pf-feuille-fond { position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, 0); transition: background .22s; }
.pf-feuille-fond.pf-ouvert { background: rgba(0, 0, 0, .45); }
.pf-feuille { position: absolute; left: 0; right: 0; bottom: 0; height: 68vh; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; background: var(--pf-carte); color: var(--pf-texte); border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .22s ease, height .22s ease; }
.pf-feuille-fond.pf-ouvert .pf-feuille { transform: none; }
.pf-feuille.pf-grande { height: 94vh; }
.pf-feuille-poignee { display: flex; justify-content: center; padding: 10px 0 4px; border: 0; background: none; cursor: grab; }
.pf-feuille-poignee i { width: 44px; height: 5px; border-radius: 3px; background: var(--pf-gris-pale); }
.pf-feuille-tete { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 8px 18px; border-bottom: 1px solid var(--pf-ligne-2); }
.pf-feuille-tete h2 { font-size: 16px; margin: 0; }
.pf-feuille-liste { flex: 1; overflow: auto; padding: 12px 16px; -webkit-overflow-scrolling: touch; }
.pf-fc-fil { margin-bottom: 14px; }
.pf-fc { display: flex; gap: 10px; align-items: flex-start; }
.pf-fc .pf-avatar { width: 34px; height: 34px; }
.pf-fc-reponse .pf-avatar { width: 26px; height: 26px; font-size: 10px; }
.pf-fc-corps { flex: 1; min-width: 0; }
.pf-fc-bulle { display: inline-block; max-width: 100%; padding: 8px 12px; border-radius: 4px 16px 16px 16px; background: var(--pf-fond-2); }
.pf-fc-bulle strong { font-size: 13px; color: var(--pf-encre); }
.pf-fc-bulle p { margin: 2px 0 0; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.pf-fc-pied { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 0 4px; }
.pf-fc-pied small { color: var(--pf-gris-clair); font-size: 12px; }
.pf-fc-pied button { border: 0; background: none; padding: 0; color: var(--pf-gris); font-size: 12px; font-weight: 700; cursor: pointer; }
.pf-fc-reponses { margin: 8px 0 0 44px; display: flex; flex-direction: column; gap: 10px; }
.pf-fc-voir { margin: 6px 0 0 44px; border: 0; background: none; padding: 0; color: var(--pf-gris); font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; }
.pf-fc-reponses .pf-fc-voir { margin-left: 0; }
.pf-feuille-form { border-top: 1px solid var(--pf-ligne-2); padding: 8px 12px max(10px, env(safe-area-inset-bottom)); }
.pf-feuille-reponse { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 8px; font-size: 13px; color: var(--pf-gris); }
.pf-feuille-reponse button { border: 0; background: none; color: var(--pf-gris); display: flex; }
.pf-feuille-reponse svg { width: 16px; height: 16px; }
.pf-feuille-saisie { display: flex; align-items: flex-end; gap: 8px; }
.pf-feuille-saisie .pf-avatar { width: 34px; height: 34px; margin-bottom: 5px; }
.pf-feuille-saisie .pf-textarea { flex: 1; min-height: 44px; resize: none; padding-top: 10px; padding-bottom: 10px; border-radius: 22px; }

/* Visiteur arrivé par un lien « À la une » */
.pf-invite-une-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; }
.pf-invite-une-texte { border-radius: 14px; color: #fff; min-height: 220px; }
/* Carrousel : toutes les cartes à la même hauteur (vignettes carrées ; le plein écran montre le format réel) */
.pf-ul-media, .pf-ul-media.pf-ul-vertical { aspect-ratio: 1 / 1; }

/* ───────────── v1.4 : vidéos en sourdine, glisser dans le lecteur ───────────── */
.pf-ul-carte { position: relative; }
.pf-ul-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; transform: scale(1.35); }
.pf-ul-vertical iframe { transform: scale(1.8); } /* recadre une vidéo verticale YouTube dans la carte carrée */
.pf-ul-son { position: absolute; z-index: 2; right: 10px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pf-ul-son svg { width: 20px; height: 20px; }
.pf-ul-texte-corps { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; font-family: var(--pf-titre); font-size: 18px; line-height: 1.45; }
.pf-lect-boutons { display: flex; gap: 8px; }
.pf-lect-son svg { width: 22px; height: 22px; }
.pf-lect-yt { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 100%; }
.pf-lect-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-lect-yt.pf-lect-vertical { width: min(100%, 56.25vh); height: 100%; aspect-ratio: auto; }
.pf-lect-voile { position: absolute; z-index: 1; inset: 70px 0 0 0; display: flex; align-items: center; justify-content: center; }
.pf-lect-voile-haut { bottom: 70px; } /* laisse les commandes de la vidéo (barre du bas) accessibles */
.pf-lect-pause { width: 72px; height: 72px; border-radius: 50%; background: rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pf-lect-pause svg { width: 34px; height: 34px; margin-left: 4px; color: #fff; }
.pf-lect-cote, .pf-lect-legende, .pf-lect-haut, .pf-lect-progres { z-index: 3; }
.pf-lect-points { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; gap: 6px; }
.pf-lect-points i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: all .2s; }
.pf-lect-points i.pf-actif { width: 20px; border-radius: 4px; background: #fff; }
.pf-lect-fleche { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; }
.pf-lect-fleche svg { width: 24px; height: 24px; }
.pf-lect-gauche { left: 16px; }
.pf-lect-droite { right: 90px; }
@media (hover: hover) and (pointer: fine) { .pf-lect-fleche:not([hidden]) { display: flex; } } /* flèches seulement à la souris ; au doigt on glisse */
.pf-entre-droite { animation: pf-glisse-g .25s ease both; }
.pf-entre-gauche { animation: pf-glisse-d .25s ease both; }
@keyframes pf-glisse-g { from { transform: translateX(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pf-glisse-d { from { transform: translateX(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.pf-lect-texte .pf-riche { margin: 0 auto; max-width: 560px; font-family: var(--pf-titre); font-size: 24px; line-height: 1.45; }
.pf-lect-legende .pf-riche { font-size: 14px; line-height: 1.45; max-height: 3em; overflow: hidden; }
.pf-lect-legende.pf-ouverte .pf-riche { max-height: none; }
/* Texte mis en forme dans le tableau de bord (gras, listes, couleurs…) */
.pf-riche > :first-child { margin-top: 0; }
.pf-riche > :last-child { margin-bottom: 0; }
.pf-riche p { margin: 0 0 .5em; }
.pf-riche h2 { font-size: 1.35em; margin: 0 0 .4em; color: inherit; }
.pf-riche h3 { font-size: 1.15em; margin: 0 0 .4em; color: inherit; }
.pf-riche ul, .pf-riche ol { margin: 0 0 .5em 1.2em; padding: 0; }
.pf-riche ul { list-style: disc; } .pf-riche ol { list-style: decimal; } .pf-riche li { display: list-item; }
.pf-riche blockquote { margin: 0 0 .5em; padding-left: .8em; border-left: 3px solid currentColor; font-style: italic; opacity: .95; }
.pf-riche a { color: inherit; text-decoration: underline; }
.pf-ul-legende .pf-riche { display: inline; }

/* ───────────── v1.4 : mentions, hashtags, liens, J'aime des commentaires ───────────── */
.pf-mention, .pf-hashtag { color: #2463EB; font-weight: 600; text-decoration: none !important; }
.pf-mention:hover, .pf-hashtag:hover { text-decoration: underline !important; }
:root[data-theme="nuit"] .pf-mention, :root[data-theme="nuit"] .pf-hashtag, :root[data-theme="nuit"] .pf-lien-externe { color: #8AB4FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="jour"]) .pf-mention, :root:not([data-theme="jour"]) .pf-hashtag, :root:not([data-theme="jour"]) .pf-lien-externe { color: #8AB4FF; } }
.pf-lien-externe { color: #2463EB; text-decoration: underline !important; overflow-wrap: anywhere; }
.pf-liseuse .pf-mention, .pf-liseuse .pf-hashtag, .pf-liseuse .pf-lien-externe, .pf-ul-texte .pf-mention, .pf-ul-texte .pf-hashtag { color: inherit; text-decoration: underline !important; }
.pf-mention-liste { position: absolute; z-index: 20; left: 0; right: 0; bottom: calc(100% + 6px); max-height: 260px; overflow: auto; background: var(--pf-carte); border: 1px solid var(--pf-ligne); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 4px; }
.pf-mention-liste button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--pf-texte); text-align: left; cursor: pointer; }
.pf-mention-liste button:hover, .pf-mention-liste button:focus { background: var(--pf-fond-2); }
.pf-mention-liste .pf-avatar { width: 32px; height: 32px; }
.pf-mention-liste b { display: block; color: var(--pf-encre); font-size: 14px; }
.pf-mention-liste small { color: var(--pf-gris); font-size: 12px; }
.pf-fc-bulle, .pf-com-bulle { position: relative; }
.pf-jaime-bulle { position: absolute; right: -8px; bottom: -10px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 3px; border-radius: 12px; background: var(--pf-carte); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); font-size: 12px; color: var(--pf-gris); }
.pf-jaime-bulle i { width: 18px; height: 18px; border-radius: 50%; background: #2463EB; color: #fff; display: flex; align-items: center; justify-content: center; }
.pf-jaime-bulle svg { width: 11px; height: 11px; }
.pf-jaime-bulle:has(b:empty) { display: none; }
.pf-jaime-com { border: 0; background: none; padding: 0; color: var(--pf-gris); font-size: 12px; font-weight: 700; cursor: pointer; }
.pf-jaime-com.pf-aime-actif { color: #2463EB; }
.pf-com-pied .pf-jaime-com { font-size: 12px; }
.pf-nouvelle-reagir { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border: 1px solid var(--pf-ligne); border-radius: var(--pf-r-pilule); background: var(--pf-carte); color: var(--pf-encre); font-size: 13px; font-weight: 600; cursor: pointer; }
.pf-nouvelle-reagir svg { width: 16px; height: 16px; color: var(--pf-bleu); }
.pf-titre-tag { color: #2463EB; }

/* ═══════════════════════ v1.4 — GROUPES, CERCLES, CHAÎNES, CARTE ═══════════════════════ */

/* Couleurs des groupes : une teinte pleine (pastille) + une teinte pâle (étiquette). */
.pf-g-feu    { --g: #EA580C; --g-pale: #FFEDD5; --g-txt: #9A3412; }
.pf-g-nuit   { --g: #1E3A8A; --g-pale: #E0E7FF; --g-txt: #1E3A8A; }
.pf-g-vert   { --g: #16A249; --g-pale: #DCFCE7; --g-txt: #166534; }
.pf-g-ciel   { --g: #0EA5E9; --g-pale: #E0F2FE; --g-txt: #075985; }
.pf-g-violet { --g: #7C3AED; --g-pale: #EDE9FE; --g-txt: #5B21B6; }
.pf-g-rose   { --g: #DB2777; --g-pale: #FCE7F3; --g-txt: #9D174D; }
:root[data-theme="nuit"] [class*="pf-g-"] { --g-pale: rgba(255, 255, 255, .08); --g-txt: #F2F4FA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="jour"]) [class*="pf-g-"] { --g-pale: rgba(255, 255, 255, .08); --g-txt: #F2F4FA; } }

.pf-badge-groupe { background: var(--g-pale); color: var(--g-txt); text-decoration: none !important; text-transform: none; letter-spacing: 0; font-size: 12px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--g); }
.pf-badge-groupe svg { width: 13px; height: 13px; flex-shrink: 0; }
.pf-carte-vedette .pf-badge-groupe { background: rgba(255, 255, 255, .12); color: #fff; }

.pf-g-pastille { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: var(--g); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; border: 0; }
.pf-g-grande { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }

.pf-groupes-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.pf-liste-groupes { display: grid; gap: 10px; }
@media (min-width: 900px) { .pf-liste-groupes { grid-template-columns: 1fr 1fr; } }
.pf-groupe-carte { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.pf-groupe-lien { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; text-decoration: none !important; }
.pf-groupe-lien .pf-ligne-txt small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pf-groupe-lien .pf-ligne-txt small svg { width: 14px; height: 14px; }
.pf-groupe-lien > svg { width: 18px; height: 18px; color: var(--pf-gris-clair); flex-shrink: 0; }
.pf-groupe-lien .pf-compte { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pf-orange); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.pf-groupe-tete { display: flex; align-items: center; gap: 16px; border-top: 5px solid var(--g); }
.pf-groupe-tete h1 { font-size: 24px; line-height: 1.2; color: var(--pf-encre); word-break: break-word; }
.pf-groupe-type { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 4px; color: var(--pf-gris); font-size: 14px; }
.pf-groupe-type svg { width: 15px; height: 15px; }
[class*="pf-g-bandeau-feu"] { --g: #EA580C; } [class*="pf-g-bandeau-nuit"] { --g: #1E3A8A; } [class*="pf-g-bandeau-vert"] { --g: #16A249; }
[class*="pf-g-bandeau-ciel"] { --g: #0EA5E9; } [class*="pf-g-bandeau-violet"] { --g: #7C3AED; } [class*="pf-g-bandeau-rose"] { --g: #DB2777; }
.pf-groupe-rejoindre { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.pf-groupe-rejoindre .pf-btn { width: 100%; }
.pf-groupe-outils { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pf-select-mini { width: auto; min-height: 36px; padding: 0 30px 0 10px; font-size: 13px; flex-shrink: 0; max-width: 130px; }
.pf-couleurs { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-couleurs .pf-g-pastille { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 2px var(--pf-carte), 0 0 0 2px transparent; transition: box-shadow .15s; }
.pf-couleurs .pf-g-pastille.pf-actif { box-shadow: 0 0 0 3px var(--pf-carte), 0 0 0 5px var(--g); }
.pf-code-invitation { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; margin-bottom: 14px; border-radius: 14px; background: var(--pf-fond-2); border: 1px dashed var(--pf-bord-champ); }
.pf-code-invitation small { color: var(--pf-gris); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.pf-code-invitation b { font-size: 26px; letter-spacing: .18em; color: var(--pf-encre); font-family: ui-monospace, Menlo, Consolas, monospace; }
.pf-input-code { text-transform: uppercase; letter-spacing: .2em; font-size: 20px; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Chaînes */
.pf-chaine-carte { display: block; color: inherit; text-decoration: none !important; }
.pf-chaine-carte h3, .pf-chaine-tete h1 { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 4px; color: var(--pf-encre); }
.pf-chaine-carte h3 { font-size: 17px; }
.pf-chaine-tete h1 { font-size: 22px; line-height: 1.25; }
.pf-chaine-carte h3 svg, .pf-chaine-tete h1 svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--pf-orange); }
.pf-chaine-tete .pf-aide svg { width: 15px; height: 15px; vertical-align: -2px; }
.pf-chaine-couverture { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.pf-chaine-couverture .pf-progression { flex: 1; height: 10px; border-radius: 5px; margin: 0; }
.pf-chaine-couverture b { font-size: 15px; color: var(--pf-encre); min-width: 44px; text-align: right; }
.pf-chaine-maillon { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: var(--pf-t-vert); color: var(--pf-t-vert-txt); font-size: 13px; font-weight: 600; }
.pf-chaine-maillon .pf-avatar { width: 26px; height: 26px; font-size: 11px; margin-right: -12px; border: 2px solid var(--pf-carte); }
.pf-chaine-maillon span:last-child { margin-left: 14px; }
.pf-chaine-trou { background: var(--pf-t-ambre); color: var(--pf-t-ambre-txt); }
.pf-chaine-trou svg { width: 16px; height: 16px; flex-shrink: 0; }
.pf-chaine-trou span:last-child { margin-left: 0; }
.pf-chaine-mien { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--pf-orange); }
.pf-chaine-mien svg { width: 16px; height: 16px; flex-shrink: 0; }
.pf-chaine-invite h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 4px; }
.pf-chaine-invite h3 svg { width: 18px; height: 18px; color: var(--pf-orange); }
.pf-chaine-invite .pf-btn { margin-top: 10px; }
.pf-direct { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 2px; animation: pf-pulse 1.4s ease-in-out infinite; }
@keyframes pf-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

.pf-chaine-jour { padding: 0; margin-bottom: 10px; overflow: hidden; }
.pf-chaine-jour summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; }
.pf-chaine-jour summary::-webkit-details-marker { display: none; }
.pf-chaine-jour summary b { display: inline-block; color: var(--pf-encre); }
.pf-chaine-jour summary b::first-letter { text-transform: uppercase; }
.pf-chaine-jour summary small { color: var(--pf-gris); margin-left: auto; font-size: 13px; }
.pf-chaine-jour summary svg { width: 18px; height: 18px; color: var(--pf-gris); transition: transform .2s; }
.pf-chaine-jour[open] summary svg { transform: rotate(180deg); }
.pf-creneau { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; border-top: 1px solid var(--pf-ligne-2); }
.pf-creneau-heure { display: flex; flex-direction: column; width: 70px; flex-shrink: 0; line-height: 1.2; }
.pf-creneau-heure b { font-size: 15px; color: var(--pf-encre); }
.pf-creneau-heure small { font-size: 11px; color: var(--pf-gris-clair); }
.pf-creneau-qui { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--pf-texte); }
.pf-creneau-qui > span:not(.pf-creneau-fait) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 4px; }
.pf-creneau-qui .pf-avatar { width: 28px; height: 28px; font-size: 11px; }
.pf-creneau-vide { color: var(--pf-gris-clair); font-style: italic; }
.pf-creneau-fait { display: inline-flex; color: var(--pf-vert); }
.pf-creneau-fait svg { width: 18px; height: 18px; }
.pf-creneau .pf-btn, .pf-creneau .pf-badge { flex-shrink: 0; }
.pf-creneau-passe { opacity: .55; }
.pf-creneau-mien { background: var(--pf-t-jaune); }
.pf-creneau-mien .pf-creneau-heure b { color: var(--pf-t-jaune-txt); }
.pf-creneau-actuel { box-shadow: inset 4px 0 0 var(--pf-orange); opacity: 1; }
.pf-creneau-actuel .pf-creneau-heure b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pf-orange); margin-left: 6px; vertical-align: middle; animation: pf-pulse 1.4s infinite; }
.pf-clignote { animation: pf-clignote 1.2s ease 2; }
@keyframes pf-clignote { 50% { background: var(--pf-t-bleu); } }

/* Carte du monde */
.pf-carte-monde { padding: 0; overflow: hidden; margin-top: 14px; }
.pf-carte-monde-zone { height: 340px; background: var(--pf-fond-2); z-index: 0; }
@media (min-width: 900px) { .pf-carte-monde-zone { height: 460px; } }
.pf-carte-monde .leaflet-popup-content { font: 14px/1.45 inherit; margin: 10px 14px; }
.pf-carte-monde .leaflet-container { font-family: inherit; }
:root[data-theme="nuit"] .pf-carte-monde .leaflet-popup-content-wrapper, :root[data-theme="nuit"] .pf-carte-monde .leaflet-popup-tip { background: #151E33; color: #F2F4FA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="jour"]) .pf-carte-monde .leaflet-popup-content-wrapper, :root:not([data-theme="jour"]) .pf-carte-monde .leaflet-popup-tip { background: #151E33; color: #F2F4FA; } }
.pf-ville-ligne { width: 100%; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.pf-ville-ligne .pf-progression { height: 4px; margin-top: 6px; }
.pf-ville-rang { width: 28px; height: 28px; border-radius: 50%; background: var(--pf-t-jaune); color: var(--pf-t-jaune-txt); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-ville-chiffres { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; line-height: 1.2; }
.pf-ville-chiffres b { font-size: 18px; color: var(--pf-encre); }
.pf-ville-chiffres small { font-size: 11px; color: var(--pf-gris); white-space: nowrap; }

@media (max-width: 420px) {
	.pf-groupes-actions .pf-btn, .pf-groupe-outils .pf-btn { padding-left: 10px; padding-right: 10px; font-size: 14px; }
	.pf-creneau { padding: 8px 10px; gap: 8px; }
	.pf-creneau-heure { width: 58px; }
}
/* Demandes d'entrée dans un cercle : les boutons passent sous le nom sur téléphone. */
.pf-ligne-demande { flex-wrap: wrap; }
.pf-ligne-boutons { display: flex; gap: 8px; margin-left: auto; }
.pf-groupe-tete + .pf-carte, .pf-liste .pf-ligne-txt small { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .pf-ligne-boutons { width: 100%; padding-left: 56px; } .pf-ligne-boutons .pf-btn { flex: 1; } }
.pf-creneau-heure { width: 82px; }
.pf-creneau-heure b { white-space: nowrap; }
@media (max-width: 420px) { .pf-creneau-heure { width: 74px; } .pf-creneau-heure b { font-size: 14px; } }

/* v1.4.1 — lecteur : petite roue pendant le chargement de la vidéo */
.pf-lect-attente .pf-lect-voile::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: pf-tourne .8s linear infinite; pointer-events: none; }
@keyframes pf-tourne { to { transform: rotate(360deg); } }

/* v1.4.1 — commentaire ouvert depuis une notification */
.pf-surligne > .pf-fc-corps > .pf-fc-bulle, .pf-surligne .pf-com-bulle { animation: pf-surligne 2.6s ease; }
@keyframes pf-surligne { 0%, 40% { box-shadow: 0 0 0 3px var(--pf-orange); background: var(--pf-t-jaune); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* v1.4.1 — appui long sur un commentaire */
@media (hover: none) {
	.pf-fc-bulle, .pf-com-bulle { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
	.pf-seul-souris { display: none !important; }
}
.pf-bulle-pressee { transform: scale(.97); transition: transform .15s; filter: brightness(.94); }
.pf-com-apercu { padding: 12px 14px; border-radius: 14px; background: var(--pf-fond-2); margin-bottom: 12px; font-size: 14px; color: var(--pf-texte); max-height: 120px; overflow: hidden; }
.pf-com-apercu b { display: block; color: var(--pf-encre); margin-bottom: 2px; }
.pf-menu-actions { display: flex; flex-direction: column; }
.pf-menu-actions button { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--pf-ligne-2); background: none; color: var(--pf-encre); font: inherit; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; }
.pf-menu-actions button:last-child { border-bottom: 0; }
.pf-menu-actions button svg { width: 22px; height: 22px; color: var(--pf-gris); }
.pf-menu-actions .pf-danger, .pf-menu-actions .pf-danger svg { color: var(--pf-rouge, #DC2626); }
@media (max-width: 639px) {
	.pf-modal-menu { align-items: flex-end; }
	.pf-modal-menu .pf-modal { width: 100%; max-width: none; border-radius: 22px 22px 0 0; margin: 0; padding-bottom: env(safe-area-inset-bottom); }
}
/* v1.4.1 — fond OpenStreetMap assombri en mode nuit */
.pf-tuiles-nuit { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }

/* ═══════════════════════ v1.4.1 — PRIÈRE ENSEMBLE, VISIO, PHOTO DE GROUPE ═══════════════════════ */
.pf-badge-bleu { background: var(--pf-t-bleu); color: var(--pf-t-bleu-txt); }
.pf-badge svg { width: 13px; height: 13px; }
.pf-g-pastille { overflow: hidden; }
.pf-g-pastille img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-g-pastille svg { width: 22px; height: 22px; }
.pf-groupe-photo-champ { display: flex; align-items: center; gap: 14px; }
.pf-groupe-param { margin-top: 8px; }
.pf-groupe-param svg { width: 18px; height: 18px; }
.pf-segments.pf-segments-2 { grid-template-columns: 1fr 1fr; }

.pf-rencontre-carte { display: block; color: inherit; text-decoration: none !important; }
.pf-rencontre-carte h3, .pf-rencontre-tete h1 { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; color: var(--pf-encre); }
.pf-rencontre-carte h3 { font-size: 17px; }
.pf-rencontre-tete h1 { font-size: 24px; }
.pf-rencontre-carte h3 svg { width: 20px; height: 20px; color: var(--pf-orange); }
.pf-rencontre-sujet { display: block; font-weight: 600; color: var(--pf-encre); margin-top: 4px; text-decoration: none !important; }
.pf-rencontre-carte .pf-aide svg, .pf-rencontre-tete .pf-aide svg { width: 15px; height: 15px; vertical-align: -2px; }
.pf-rencontre-direct { border: 2px solid transparent; background: linear-gradient(var(--pf-carte), var(--pf-carte)) padding-box, var(--pf-feu) border-box; }
.pf-rencontre-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pf-rencontre-actions .pf-btn:only-child { grid-column: 1 / -1; }
.pf-compte-rebours { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--pf-fond-2); text-align: center; }
.pf-compte-rebours small { display: block; color: var(--pf-gris); font-size: 13px; }
.pf-compte-rebours b { font-size: 26px; color: var(--pf-encre); font-variant-numeric: tabular-nums; }
.pf-presents { display: flex; flex-wrap: wrap; gap: 14px; }
.pf-present { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; }
.pf-present small { font-size: 12px; color: var(--pf-texte); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pf-visio { position: fixed; inset: 0; z-index: 110; background: #0B1630; display: flex; flex-direction: column; }
.pf-visio-haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); color: #fff; font-weight: 600; }
.pf-visio-haut span { display: flex; align-items: center; gap: 8px; }
.pf-visio-haut svg { width: 20px; height: 20px; }
.pf-visio-haut .pf-btn-danger { background: #DC2626; color: #fff; border-color: #DC2626; }
.pf-visio-zone { flex: 1; min-height: 0; }
.pf-visio-zone iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 420px) { .pf-rencontre-actions { grid-template-columns: 1fr; } }

/* v1.4.2 — boutons de la prière ensemble : jamais de débordement sur téléphone */
.pf-rencontre-actions .pf-btn { min-width: 0; white-space: normal; text-align: center; line-height: 1.2; }
@media (max-width: 600px) { .pf-rencontre-actions { grid-template-columns: 1fr; } }
/* v1.4.2 — iPhone : un champ en dessous de 16 px fait zoomer l'écran quand on le touche */
@media (pointer: coarse) { .pf-app input, .pf-app select, .pf-app textarea { font-size: max(16px, 1em); } }
/* v1.4.2 — confidentialité du numéro : 3 choix */
.pf-segments-conf { margin-top: 8px; }
.pf-segments-conf label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border-radius: 10px; color: var(--pf-gris); font-weight: 600; font-size: 14px; cursor: pointer; text-align: center; padding: 0 4px; }
.pf-segments-conf label svg { width: 17px; height: 17px; flex-shrink: 0; }
.pf-segments-conf label.pf-actif { background: var(--pf-carte); color: var(--pf-encre); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.pf-segments-conf input { position: absolute; opacity: 0; pointer-events: none; }
.pf-confidentialite .pf-legende { display: flex; align-items: center; gap: 6px; }
.pf-confidentialite .pf-legende svg { width: 18px; height: 18px; color: #25D366; }
.pf-confidentialite .pf-aide { margin-top: 8px; }

/* v1.4.2 — notifications : glisser à gauche pour supprimer */
.pf-notif-outils { display: flex; justify-content: space-between; align-items: center; margin-top: -6px; }
.pf-lien-gris { color: var(--pf-gris) !important; }
.pf-notif-astuce { font-size: 12px; margin: 4px 0 8px; }
@media (hover: hover) and (pointer: fine) { .pf-notif-astuce { display: none; } }
.pf-notif-glisse { position: relative; overflow: hidden; transition: height .25s ease, opacity .2s ease, margin .25s ease; }
.pf-notif-glisse > .pf-notif { position: relative; z-index: 1; background: var(--pf-fond); transition: transform .2s ease; }

.pf-notif-fond-suppr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-right: 20px; background: #DC2626; color: #fff; font-weight: 600; font-size: 14px; }
.pf-notif-fond-suppr svg { width: 20px; height: 20px; }
.pf-notif-pret .pf-notif-fond-suppr { background: #B91C1C; }
.pf-notif-sortie { opacity: 0; }
.pf-notif-suppr { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--pf-gris); display: none; align-items: center; justify-content: center; cursor: pointer; }
.pf-notif-suppr svg { width: 16px; height: 16px; }
.pf-notif:hover .pf-notif-suppr { display: flex; }
.pf-notif-suppr:hover { background: var(--pf-t-rouge); color: var(--pf-t-rouge-txt); }

/* v1.4.2 — chaîne : qui a vraiment prié */
.pf-maillon { display: inline-flex; align-items: center; gap: 4px; position: relative; margin-right: 8px; }
.pf-maillon .pf-avatar { width: 28px; height: 28px; font-size: 11px; }
.pf-maillon-nom { font-size: 13px; }
.pf-maillon-ic { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; }
.pf-maillon-ic svg { width: 12px; height: 12px; }
.pf-maillon-fait .pf-maillon-ic { background: var(--pf-vert); color: #fff; }
.pf-maillon-manque .pf-maillon-ic { background: var(--pf-t-rouge); color: var(--pf-t-rouge-txt); }
.pf-maillon-manque .pf-maillon-nom { text-decoration: line-through; color: var(--pf-gris); }
.pf-maillon-manque .pf-avatar { filter: grayscale(1); opacity: .6; }
.pf-creneau-prie { background: color-mix(in srgb, var(--pf-vert) 7%, transparent); opacity: 1; }
.pf-creneau-manque { background: color-mix(in srgb, #DC2626 6%, transparent); }
.pf-progression-double { position: relative; }
.pf-progression-double i { position: absolute; left: 0; top: 0; bottom: 0; }
.pf-progression-double i.pf-pris { background: color-mix(in srgb, #F97316 30%, transparent); }
.pf-progression-double i:not(.pf-pris) { background: var(--pf-vert); }
.pf-vert-txt { color: var(--pf-vert); } .pf-rouge-txt { color: var(--pf-rouge, #DC2626); }
.pf-chaine-tete .pf-aide svg { width: 15px; height: 15px; vertical-align: -2px; }
.pf-creneau-qui { flex-wrap: wrap; row-gap: 4px; }
.pf-creneau-qui > .pf-maillon { overflow: visible; margin-left: 0; white-space: nowrap; }

/* ═══════════════════════ v1.5 — MESSAGERIE ═══════════════════════ */
.pf-entete-actions .pf-btn-icone { position: relative; }
.pf-entete-actions a.pf-btn-icone.pf-actif { color: var(--pf-orange); }
.pf-messages-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-recherche { position: relative; }
.pf-recherche > svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--pf-gris); pointer-events: none; }
.pf-recherche .pf-input { padding-left: 42px; }
.pf-conversations { padding: 4px 0; }
.pf-conv { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: inherit; text-decoration: none !important; border-bottom: 1px solid var(--pf-ligne-2); }
.pf-conv:last-child { border-bottom: 0; }
.pf-conv-photo { width: 44px; height: 44px; border-radius: 50%; font-size: 15px; }
.pf-conv-txt { flex: 1; min-width: 0; }
.pf-conv-txt strong { display: flex; align-items: center; gap: 5px; color: var(--pf-encre); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-conv-txt strong svg { width: 15px; height: 15px; color: var(--pf-gris); flex-shrink: 0; }
.pf-conv-txt small { display: block; color: var(--pf-gris); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-conv-non-lu .pf-conv-txt small { color: var(--pf-encre); font-weight: 600; }
.pf-conv-cote { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.pf-conv-cote small { font-size: 12px; color: var(--pf-gris); }
.pf-conv-non-lu .pf-conv-cote small { color: var(--pf-orange); font-weight: 600; }
.pf-conv-cote .pf-compte { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pf-orange); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pf-groupe-discussion { margin-top: 10px; }
.pf-btn-ecrire { flex-shrink: 0; color: var(--pf-bleu); }
.pf-btn-ecrire svg { width: 20px; height: 20px; }

/* ═══════════════════════ v1.6 — CHAT COMPLET (comme WhatsApp) ═══════════════════════
   La discussion est « épinglée » à l'écran (position: fixed) : l'en-tête en haut, la zone d'écriture en bas,
   et SEUL le fil des messages défile entre les deux. Avant (v1.5), toute la page défilait,
   et la zone d'écriture partait avec les messages quand on remontait. */
html.pf-en-discussion, html.pf-en-discussion body { overflow: hidden !important; overscroll-behavior: none; }
html.pf-en-discussion .pf-vue { padding: 0; animation: none !important; }
@media (max-width: 1023px) {
	html.pf-en-discussion .pf-nav { display: none; }
	html.pf-en-discussion .pf-entete { display: none; }
}
.pf-discussion {
	position: fixed; z-index: 25; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh;
	display: flex; flex-direction: column; background: var(--pf-chat-fond);
}
@media (min-width: 1024px) {
	/* Ordinateur : colonne centrée à droite du menu, sous l'en-tête */
	.pf-discussion { top: 61px; bottom: 0; height: auto; left: calc(260px + max(0px, (100vw - 260px - 900px) / 2)); right: max(0px, (100vw - 260px - 900px) / 2); border-left: 1px solid var(--pf-ligne); border-right: 1px solid var(--pf-ligne); }
}
:root { --pf-chat-fond: #F4EFE6; --pf-bulle-moi: #FFE9D6; --pf-bulle-moi-bord: #F9D7B8; --pf-bulle-moi-texte: #3B2410; }
:root[data-theme="nuit"] { --pf-chat-fond: #0E1526; --pf-bulle-moi: #3A2A1E; --pf-bulle-moi-bord: #4A3524; --pf-bulle-moi-texte: #F6E7D8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="jour"]) { --pf-chat-fond: #0E1526; --pf-bulle-moi: #3A2A1E; --pf-bulle-moi-bord: #4A3524; --pf-bulle-moi-texte: #F6E7D8; } }

.pf-disc-tete { flex-shrink: 0; display: flex; align-items: center; gap: 2px; padding: 6px 4px; padding-top: max(6px, env(safe-area-inset-top)); background: var(--pf-carte); border-bottom: 1px solid var(--pf-ligne); }
.pf-disc-qui { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding-left: 2px; color: inherit; text-decoration: none !important; }
.pf-disc-qui > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.pf-disc-qui strong { color: var(--pf-encre); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-disc-qui small { color: var(--pf-gris); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-disc-qui small.pf-ecrit, .pf-ecrit { color: var(--pf-vert); font-style: normal; font-weight: 600; }
.pf-disc-tete .pf-btn-icone { flex-shrink: 0; }
.pf-conv-avatar { position: relative; display: inline-flex; flex-shrink: 0; }
.pf-en-ligne { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #22C55E; border: 2px solid var(--pf-carte); }

.pf-disc-epingle { flex-shrink: 0; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--pf-ligne); background: var(--pf-carte); color: var(--pf-texte); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.pf-disc-epingle[hidden] { display: none; }
.pf-disc-epingle svg { width: 16px; height: 16px; color: var(--pf-orange); flex-shrink: 0; }
.pf-disc-epingle span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pf-disc-fil { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 10px 8px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; position: relative; }
.pf-disc-anciens { display: block; margin: 0 auto 8px; }
.pf-disc-vide { text-align: center; color: var(--pf-gris); padding: 50px 20px; }
.pf-disc-vide svg { width: 42px; height: 42px; opacity: .5; }
.pf-msg-jour { text-align: center; margin: 14px 0 8px; }
.pf-msg-jour span { display: inline-block; padding: 4px 12px; border-radius: 10px; background: var(--pf-carte); color: var(--pf-gris); font-size: 12px; font-weight: 600; box-shadow: 0 1px 1px rgba(0,0,0,.05); }

/* Bulles */
.pf-msg { position: relative; display: flex; align-items: flex-end; gap: 6px; margin-top: 8px; touch-action: pan-y; transition: transform .18s ease; }
.pf-msg.pf-glisse-en-cours { transition: none; }
.pf-msg-suite { margin-top: 2px; }
.pf-msg-a-reac { margin-bottom: 14px; }
.pf-msg .pf-avatar, .pf-msg-place { width: 28px; height: 28px; flex-shrink: 0; font-size: 11px; }
.pf-msg-glisse { position: absolute; left: -34px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; display: none; align-items: center; justify-content: center; background: var(--pf-carte); color: var(--pf-gris); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.pf-glisse-en-cours .pf-msg-glisse { display: flex; }
.pf-glisse-pret .pf-msg-glisse { color: var(--pf-orange); }
.pf-msg-glisse svg { width: 16px; height: 16px; }
.pf-msg-bulle { position: relative; max-width: min(80%, 540px); min-width: 64px; padding: 6px 10px 4px; border-radius: 16px 16px 16px 4px; background: var(--pf-carte); color: var(--pf-texte); font-size: 15px; line-height: 1.4; word-wrap: break-word; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0,0,0,.06); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (hover: hover) and (pointer: fine) { .pf-msg-bulle { -webkit-user-select: text; user-select: text; } }
.pf-msg-mien { justify-content: flex-end; }
.pf-msg-mien .pf-msg-bulle { border-radius: 16px 16px 4px 16px; background: var(--pf-bulle-moi); color: var(--pf-bulle-moi-texte); }
.pf-msg-bulle-media { padding: 3px; }
.pf-msg-bulle-media .pf-msg-heure { position: absolute; right: 8px; bottom: 6px; padding: 1px 6px; border-radius: 8px; background: rgba(0,0,0,.45); color: #fff !important; opacity: 1 !important; }
.pf-msg-bulle-media .pf-msg-coche { color: #fff; }
.pf-msg-nom { display: block; font-size: 12.5px; color: var(--pf-orange); margin-bottom: 1px; }
.pf-msg-nom a { color: inherit; }
.pf-msg-texte { white-space: pre-wrap; }
.pf-msg-heure { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 11px; color: var(--pf-gris); margin-top: 1px; line-height: 1.3; }
.pf-msg-mien .pf-msg-heure { color: inherit; opacity: .65; }
.pf-msg-coche { font-size: 11px; letter-spacing: -2px; margin-left: 2px; display: inline-flex; }
.pf-msg-coche svg { width: 12px; height: 12px; }
.pf-msg-coche.pf-lu { color: #2F9BF0; opacity: 1; font-weight: 700; }
.pf-msg-mien .pf-msg-heure .pf-lu { opacity: 1; }
.pf-msg-etoile { color: #E9A600; font-size: 12px; }
.pf-msg-supprime { color: var(--pf-gris); font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }
.pf-msg-supprime svg { width: 14px; height: 14px; }
.pf-msg-transfere { display: flex; align-items: center; gap: 4px; font-size: 12px; font-style: italic; color: var(--pf-gris); margin-bottom: 2px; }
.pf-msg-transfere svg { width: 13px; height: 13px; }
.pf-msg-menu { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: inherit; color: var(--pf-gris); cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0; }
.pf-msg-menu svg { width: 16px; height: 16px; }
.pf-msg:hover .pf-msg-menu { display: inline-flex; }
.pf-msg-flash { animation: pf-flash 1.4s ease; }
@keyframes pf-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--pf-orange); } 100% { box-shadow: 0 1px 1px rgba(0,0,0,.06); } }
.pf-bulle-pressee { transform: scale(.97); transition: transform .15s; }

/* Citation (réponse) */
.pf-msg-citation { display: flex; align-items: center; gap: 8px; width: 100%; margin: 2px 0 4px; padding: 6px 8px; border: 0; border-left: 4px solid var(--pf-orange); border-radius: 8px; background: rgba(0,0,0,.05); color: inherit; font: inherit; text-align: left; cursor: pointer; }
:root[data-theme="nuit"] .pf-msg-citation { background: rgba(255,255,255,.07); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="jour"]) .pf-msg-citation { background: rgba(255,255,255,.07); } }
.pf-msg-citation span { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.pf-msg-citation b { font-size: 12.5px; color: var(--pf-orange); }
.pf-msg-citation small { font-size: 13px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-msg-citation img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; order: 2; }

/* Réactions */
.pf-msg-reactions { position: absolute; bottom: -15px; right: 8px; display: inline-flex; align-items: center; gap: 1px; padding: 1px 6px; min-height: 24px; border: 1px solid var(--pf-ligne); border-radius: 12px; background: var(--pf-carte); font-size: 14px; line-height: 1; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.pf-msg:not(.pf-msg-mien) .pf-msg-reactions { right: auto; left: 8px; }
.pf-msg-reactions small { font-size: 11.5px; color: var(--pf-gris); margin-left: 3px; }
.pf-reac-rangee { display: flex; justify-content: space-between; gap: 4px; padding: 6px 4px 12px; }
.pf-reac-rangee button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--pf-fond-2); font-size: 24px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .12s; }
.pf-reac-rangee button:active { transform: scale(1.2); }
.pf-reac-rangee button.pf-actif { background: var(--pf-t-jaune, #FEF3C7); box-shadow: inset 0 0 0 2px var(--pf-orange); }
.pf-reac-rangee svg { width: 20px; height: 20px; color: var(--pf-gris); }
.pf-reac-grand { font-size: 26px; width: 40px; text-align: center; }

/* Photos, vidéos, documents, appels */
.pf-msg-media { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 13px; overflow: hidden; max-width: 300px; }
.pf-msg-media img, .pf-msg-media video { display: block; width: 100%; max-width: 300px; max-height: 360px; object-fit: cover; border-radius: 13px; background: #000; }
.pf-msg-video video { min-height: 140px; }
.pf-msg-progres { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(0,0,0,.35); color: #fff; font-size: 13px; }
.pf-msg-progres .pf-roue { width: 28px; height: 28px; border-width: 3px; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.pf-msg-doc .pf-msg-progres, .pf-audio .pf-msg-progres { position: static; flex-direction: row; background: none; color: inherit; }
.pf-msg-doc .pf-msg-progres .pf-roue, .pf-audio .pf-msg-progres .pf-roue { width: 18px; height: 18px; border-width: 2px; border-color: rgba(0,0,0,.15); border-top-color: var(--pf-orange); }
.pf-msg-doc { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 300px; margin: 2px 0; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.05); color: inherit !important; text-decoration: none !important; }
.pf-msg-doc > svg { width: 22px; height: 22px; color: var(--pf-gris); flex-shrink: 0; }
.pf-doc-icone { position: relative; flex-shrink: 0; width: 38px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--pf-bleu); }
.pf-doc-icone svg { width: 38px; height: 44px; stroke-width: 1.3; }
.pf-doc-icone b { position: absolute; bottom: 7px; font-size: 8.5px; font-weight: 800; color: var(--pf-bleu); }
.pf-doc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-doc-txt strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-doc-txt small { font-size: 12px; opacity: .7; }
.pf-msg-appel { display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 4px 2px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pf-msg-appel > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.pf-msg-appel strong { font-size: 14.5px; }
.pf-msg-appel small { font-size: 12.5px; opacity: .7; }
.pf-appel-icone { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,.06); color: var(--pf-vert); flex-shrink: 0; }
.pf-appel-icone svg { width: 19px; height: 19px; }
.pf-msg-appel.pf-manque .pf-appel-icone, .pf-msg-appel.pf-manque strong { color: var(--pf-rouge); }

/* Lecteur audio (messages vocaux) */
.pf-audio { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 280px; padding: 4px 2px; cursor: default; }
.pf-audio-btn { width: 38px; height: 38px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--pf-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.pf-audio-btn svg { width: 18px; height: 18px; }
.pf-audio-barre { flex: 1; height: 26px; display: flex; align-items: center; cursor: pointer; position: relative; }
.pf-audio-barre::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(0,0,0,.14); }
.pf-audio-barre span { position: relative; display: block; height: 4px; border-radius: 2px; background: var(--pf-orange); }
.pf-audio-barre span::after { content: ""; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--pf-orange); }
.pf-audio small { font-size: 12px; opacity: .75; min-width: 32px; font-variant-numeric: tabular-nums; }
.pf-audio-micro svg { width: 16px; height: 16px; color: var(--pf-vert); }
.pf-audio > svg { width: 20px; height: 20px; }

/* « … écrit » (trois points) */
.pf-disc-ecrit { display: inline-flex; gap: 4px; margin: 8px 0 2px 6px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--pf-carte); box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.pf-disc-ecrit[hidden] { display: none; }
.pf-disc-ecrit span { width: 7px; height: 7px; border-radius: 50%; background: var(--pf-gris); animation: pf-points 1.2s infinite ease-in-out; }
.pf-disc-ecrit span:nth-child(2) { animation-delay: .15s; } .pf-disc-ecrit span:nth-child(3) { animation-delay: .3s; }
@keyframes pf-points { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Bouton « ↓ » */
.pf-disc-bas-btn { position: absolute; right: 14px; bottom: 86px; z-index: 2; width: 42px; height: 42px; border: 1px solid var(--pf-ligne); border-radius: 50%; background: var(--pf-carte); color: var(--pf-gris); box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pf-disc-bas-btn[hidden] { display: none; }
.pf-disc-bas-btn svg { width: 22px; height: 22px; }
.pf-disc-bas-btn b { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--pf-vert); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }

/* Pied : zone d'écriture (FIXE en bas) */
.pf-disc-pied { flex-shrink: 0; background: var(--pf-chat-fond); padding-bottom: env(safe-area-inset-bottom); }
.pf-disc-reponse { display: flex; align-items: center; gap: 10px; margin: 6px 8px 0; padding: 8px 6px 8px 10px; border-radius: 14px 14px 0 0; background: var(--pf-carte); }
.pf-disc-reponse[hidden] { display: none; }
.pf-reponse-trait { align-self: stretch; width: 4px; border-radius: 2px; background: var(--pf-orange); }
.pf-reponse-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-reponse-txt b { font-size: 13px; color: var(--pf-orange); }
.pf-reponse-txt small { font-size: 13px; color: var(--pf-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-disc-reponse img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.pf-disc-saisie { display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px 8px; }
.pf-disc-saisie[hidden] { display: none; }
.pf-saisie-btn { width: 44px; height: 44px; flex-shrink: 0; color: var(--pf-gris); }
.pf-saisie-btn svg { width: 24px; height: 24px; }
.pf-saisie-champ { flex: 1; min-width: 0; display: flex; align-items: flex-end; background: var(--pf-carte); border: 1px solid var(--pf-ligne); border-radius: 24px; padding-right: 4px; }
.pf-saisie-champ .pf-textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 130px; resize: none; border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 24px; padding: 11px 6px 11px 16px; }
.pf-saisie-dans { width: 38px; height: 44px; flex-shrink: 0; border: 0; background: none; color: var(--pf-gris); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.pf-saisie-dans[hidden], .pf-saisie-rond[hidden] { display: none; }
.pf-saisie-dans svg { width: 23px; height: 23px; }
.pf-saisie-rond { width: 46px; height: 46px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--pf-orange); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(234, 88, 12, .35); }
.pf-saisie-rond svg { width: 22px; height: 22px; }
.pf-disc-vocal { display: flex; align-items: center; gap: 10px; padding: 6px 8px 8px 4px; }
.pf-disc-vocal[hidden] { display: none; }
.pf-disc-vocal b { font-variant-numeric: tabular-nums; color: var(--pf-encre); }
.pf-vocal-point { width: 12px; height: 12px; border-radius: 50%; background: #EF4444; animation: pf-clignote 1s infinite; }
@keyframes pf-clignote { 50% { opacity: .2; } }
.pf-vocal-aide { flex: 1; color: var(--pf-gris); font-size: 13px; }
.pf-disc-bloque { padding: 14px; text-align: center; color: var(--pf-gris); background: var(--pf-carte); border-top: 1px solid var(--pf-ligne); font-size: 14px; }
.pf-disc-attente { display: flex; align-items: center; gap: 8px; margin: 6px 10px 0; padding: 8px 12px; border-radius: 12px; background: var(--pf-carte); color: var(--pf-gris); font-size: 13px; }
.pf-disc-attente svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--pf-orange); }
.pf-disc-invitation { padding: 14px 14px 12px; background: var(--pf-carte); border-top: 1px solid var(--pf-ligne); text-align: center; }
.pf-disc-invitation p { font-size: 14px; color: var(--pf-texte); margin: 0 0 12px; }
.pf-disc-invitation-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pf-disc-invitation-btns .pf-btn { flex: 1; min-width: 96px; }
.pf-disc-invitation-btns .pf-danger, .pf-disc-invitation-btns .pf-danger svg { color: var(--pf-rouge); }

/* Feuilles : « + », émojis, aperçu avant envoi */
.pf-joindre-chat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 6px 0; }
.pf-joindre-chat button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 4px; border: 0; background: none; color: var(--pf-texte); font: inherit; font-size: 13px; cursor: pointer; }
.pf-joindre-chat button span { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.pf-joindre-chat button span svg { width: 26px; height: 26px; }
.pf-j-violet { background: #8B5CF6; } .pf-j-rose { background: #EC4899; } .pf-j-bleu { background: #3B82F6; }
.pf-emojis-onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--pf-ligne); padding-bottom: 6px; margin-bottom: 6px; overflow-x: auto; }
.pf-emojis-onglets button { flex: 1; min-width: 40px; height: 38px; border: 0; border-radius: 10px; background: none; font-size: 20px; cursor: pointer; }
.pf-emojis-onglets button.pf-actif { background: var(--pf-fond-2); }
.pf-emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); max-height: 46vh; overflow-y: auto; }
.pf-emojis button { height: 44px; border: 0; background: none; font-size: 26px; cursor: pointer; border-radius: 10px; }
.pf-emojis button:hover { background: var(--pf-fond-2); }
.pf-modal-apercu .pf-modal { max-width: 560px; }
.pf-apercu-envoi { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 10px; }
.pf-apercu-envoi img, .pf-apercu-envoi video { flex: 0 0 100%; max-height: 55vh; object-fit: contain; border-radius: 12px; background: #000; scroll-snap-align: center; }
.pf-apercu-legende { padding: 0; }
.pf-webcam video { width: 100%; border-radius: 12px; background: #000; transform: scaleX(-1); }
.pf-ligne-bouton { width: 100%; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.pf-ligne-coche { cursor: pointer; }
.pf-ligne-coche input { width: 22px; height: 22px; accent-color: var(--pf-orange); flex-shrink: 0; }
.pf-ligne-coche .pf-conv-photo, .pf-ligne-coche .pf-avatar { width: 40px; height: 40px; }

/* Liste : onglets, invitations, messages importants */
.pf-messages-tete .pf-titre-vue { flex: 1; }
.pf-messages-onglets { margin-top: 14px; }
.pf-messages-onglets .pf-compte { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pf-orange); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; }
.pf-messages-onglets .pf-compte.pf-cache { display: none; }
.pf-conv-attente { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--pf-fond-2); font-size: 11.5px; font-weight: 600; color: var(--pf-gris); }
.pf-important { display: block; padding: 12px 14px; margin-bottom: 10px; color: inherit; text-decoration: none !important; }
.pf-important-tete { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pf-gris); margin-bottom: 6px; }
.pf-important-tete .pf-avatar { width: 24px; height: 24px; font-size: 10px; }
.pf-important-tete strong { color: var(--pf-encre); }
.pf-important-tete svg { width: 14px; height: 14px; }
.pf-important-tete time { margin-left: auto; }
.pf-important p { margin: 0; color: var(--pf-texte); white-space: pre-wrap; }
.pf-contact-groupe { color: var(--pf-orange); }

/* ── Appels audio / vidéo (plein écran, au-dessus de TOUT) — v1.6.1 : à deux ou en groupe ── */
body.pf-en-appel { overflow: hidden; }
.pf-appel { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: max(40px, env(safe-area-inset-top)) 16px max(30px, env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 30%, #334155 0%, #0F172A 70%); color: #fff; }
.pf-appel-grille { position: absolute; inset: 0; display: grid; gap: 4px; grid-template-columns: 1fr; grid-auto-rows: 1fr; background: #0F172A; opacity: 0; transition: opacity .25s; }
.pf-appel-grille[data-n="2"] { grid-template-rows: 1fr 1fr; }
.pf-appel-grille[data-n="3"], .pf-appel-grille[data-n="4"] { grid-template-columns: 1fr 1fr; }
.pf-appel-grille[data-n="5"], .pf-appel-grille[data-n="6"], .pf-appel-grille[data-n="7"] { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .pf-appel-grille[data-n="2"] { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; } .pf-appel-grille[data-n="5"], .pf-appel-grille[data-n="6"], .pf-appel-grille[data-n="7"] { grid-template-columns: 1fr 1fr 1fr; } }
/* La grille apparaît dès qu'on est connecté (vidéo) ou pour un groupe ; un appel audio à deux garde la grande photo. */
.pf-appel-en-ligne.pf-appel-video .pf-appel-grille, .pf-appel-groupe.pf-appel-en-ligne .pf-appel-grille { opacity: 1; }
.pf-tuile { position: relative; overflow: hidden; background: #1E293B; display: flex; align-items: center; justify-content: center; min-height: 0; }
.pf-tuile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.pf-tuile.pf-tuile-image video { opacity: 1; }
.pf-tuile-photo .pf-avatar { width: 84px; height: 84px; font-size: 28px; }
.pf-tuile.pf-tuile-image .pf-tuile-photo { display: none; }
.pf-tuile-nom { position: absolute; left: 10px; bottom: 8px; padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,.45); font-size: 13px; font-weight: 600; }
.pf-tuile-attente::after { content: ""; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: pf-tourne .8s linear infinite; }
@keyframes pf-tourne { to { transform: rotate(360deg); } }
.pf-appel-infos { position: relative; text-align: center; margin-top: 30px; transition: margin .25s; }
.pf-appel-infos .pf-avatar, .pf-appel-infos .pf-g-pastille { width: 112px; height: 112px; font-size: 38px; margin: 0 auto 16px; box-shadow: 0 0 0 8px rgba(255,255,255,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pf-appel-en-ligne.pf-appel-video .pf-appel-infos, .pf-appel-groupe.pf-appel-en-ligne .pf-appel-infos { margin-top: 0; padding: 4px 12px; border-radius: 14px; background: rgba(0,0,0,.35); }
.pf-appel-en-ligne.pf-appel-video .pf-appel-infos .pf-avatar, .pf-appel-en-ligne.pf-appel-video .pf-appel-infos .pf-g-pastille, .pf-appel-groupe.pf-appel-en-ligne .pf-appel-infos .pf-avatar, .pf-appel-groupe.pf-appel-en-ligne .pf-appel-infos .pf-g-pastille { display: none; }
.pf-appel-en-ligne.pf-appel-video .pf-appel-infos h2, .pf-appel-groupe.pf-appel-en-ligne .pf-appel-infos h2 { font-size: 16px; margin: 0; }
.pf-appel-entrant .pf-appel-infos .pf-avatar, .pf-appel-entrant .pf-appel-infos .pf-g-pastille { animation: pf-pulse 1.6s infinite; }
@keyframes pf-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 70% { box-shadow: 0 0 0 22px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.pf-appel-infos h2 { color: #fff; font-size: 26px; margin: 0 0 6px; }
.pf-appel-infos p { color: rgba(255,255,255,.8); margin: 0; font-variant-numeric: tabular-nums; }
.pf-appel-local { position: absolute; right: 12px; bottom: calc(120px + env(safe-area-inset-bottom)); width: 96px; height: 136px; object-fit: cover; border-radius: 14px; background: #111; box-shadow: 0 4px 14px rgba(0,0,0,.45); display: none; transform: scaleX(-1); z-index: 2; }
.pf-appel-video.pf-appel-a-local .pf-appel-local { display: block; }
.pf-appel-boutons { position: relative; z-index: 3; display: flex; gap: 18px; justify-content: center; }
.pf-appel-btn { width: 60px; height: 60px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; position: relative; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pf-appel-btn svg { width: 26px; height: 26px; }
.pf-appel-btn span { position: absolute; top: 68px; font-size: 13px; white-space: nowrap; }
.pf-appel-btn.pf-coupe { background: #fff; color: #0F172A; }
.pf-appel-raccrocher { background: #EF4444; }
.pf-appel-raccrocher svg { width: 32px; height: 32px; }
.pf-appel-decrocher { background: #22C55E; animation: pf-pulse 1.6s infinite; }
.pf-appel-entrant .pf-appel-boutons { gap: 90px; margin-bottom: 26px; }
.pf-appel-fin .pf-appel-grille { opacity: .3; }
@media (min-width: 1024px) { .pf-appel-local { width: 200px; height: 150px; bottom: 120px; } }
.pf-msg-systeme { text-align: center; margin: 10px 0; }
.pf-msg-systeme span { display: inline-block; max-width: 86%; padding: 6px 12px; border-radius: 12px; background: var(--pf-t-jaune); color: var(--pf-t-jaune-txt); font-size: 13px; }

/* ── v1.6 : inscription — case « J'accepte que ma position soit enregistrée » ── */
.pf-case-position { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border: 1.5px solid var(--pf-ligne); border-radius: 14px; background: var(--pf-carte); cursor: pointer; }
.pf-case-position input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--pf-orange); }
.pf-case-position span { display: flex; flex-direction: column; gap: 4px; }
.pf-case-position strong { color: var(--pf-encre); font-size: 15px; line-height: 1.35; }
.pf-case-position small { color: var(--pf-gris); font-size: 13px; line-height: 1.45; font-weight: 400; }
.pf-case-position:has(input:checked) { border-color: var(--pf-orange); background: color-mix(in srgb, var(--pf-orange) 6%, var(--pf-carte)); }
.pf-roue-mini { display: inline-block; width: 14px; height: 14px; border-width: 2px; vertical-align: -2px; }

/* v1.6.1 : réel lancé sans le son (téléphone qui refuse le son automatique) → pastille « Toucher pour le son » */
.pf-lect-pastille-son { position: absolute; z-index: 6; left: 50%; top: calc(70px + env(safe-area-inset-top)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 20px; background: rgba(0,0,0,.6); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.pf-lect-pastille-son svg { width: 18px; height: 18px; }

.pf-version { text-align: center; margin: 14px 0 0; font-size: 12px; color: var(--pf-gris); }

/* ═══════════════════════════════════════════════════════════════════════════
   v1.7 — REFONTE « LUMIÈRE » (étape 2 : audit de design)
   Objectif : une app conviviale et légère, inspirée de Facebook / Instagram :
     - fond gris très clair, cartes blanches sans bordure, ombres discrètes ;
     - UNE seule couleur d'action : l'orange du feu (plus de mélange jaune / dégradé / bleu) ;
     - boutons secondaires gris clair, boutons « texte » bleus pour les liens ;
     - tailles harmonisées : 44 px (normal), 36 px (petit), coins arrondis 12 px ;
     - titres plus légers (Inter 700 au lieu de Sora 800), la police Sora reste pour le logo ;
     - mode nuit doux : gris anthracite (comme Facebook) au lieu du bleu marine saturé,
       couleurs adoucies pour ne pas éblouir.
   Tout passe par des variables : pour changer une couleur, modifiez-la ici.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
	--pf-fond: #F2F3F5; --pf-fond-2: #E9EBEE; --pf-carte: #FFFFFF; --pf-carte-2: #F7F8FA;
	--pf-champ: #FFFFFF; --pf-bord-champ: #D3D7DD; --pf-ligne: #E4E6EB; --pf-ligne-2: #EEF0F3;
	--pf-entete: rgba(255, 255, 255, .94); --pf-nav: rgba(255, 255, 255, .97);
	--pf-encre: #1C1E21; --pf-texte: #2B2E33; --pf-gris: #65676B; --pf-gris-clair: #8A8D91; --pf-gris-pale: #CED0D4;
	--pf-orange: #E8590C; --pf-bleu: #1B6FD8; --pf-vert: #1E9E55; --pf-rouge: #D93025;
	--pf-primaire: #E8590C; --pf-primaire-survol: #D24F09; --pf-primaire-texte: #FFFFFF;
	--pf-primaire-doux: #FFF0E6; --pf-primaire-doux-txt: #B8460A;
	--pf-secondaire: #E9EBEE; --pf-secondaire-survol: #DFE2E6; --pf-secondaire-txt: #1C1E21;
	--pf-plein: #1C1E21; --pf-plein-texte: #FFFFFF;
	--pf-t-jaune: #FFF5DB; --pf-t-jaune-txt: #7A5200;
	--pf-t-avatar: #E4E6EB; --pf-t-choix: #FFF0E6;
	--pf-ombre-carte: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 8px -4px rgba(0, 0, 0, .06);
	--pf-r-carte: 14px; --pf-r-bouton: 12px;
	--pf-chat-fond: #EFEAE2;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="jour"]) {
		--pf-fond: #17181B; --pf-fond-2: #222327; --pf-carte: #232428; --pf-carte-2: #2A2B30;
		--pf-champ: #2A2B30; --pf-bord-champ: #3D3F46; --pf-ligne: #33353B; --pf-ligne-2: #2B2D32;
		--pf-entete: rgba(30, 31, 35, .95); --pf-nav: rgba(30, 31, 35, .97);
		--pf-encre: #E8EAED; --pf-texte: #D3D5DA; --pf-gris: #A9ACB3; --pf-gris-clair: #8C8F96; --pf-gris-pale: #4A4C53;
		--pf-orange: #F0803F; --pf-bleu: #7FAEF5; --pf-vert: #5BC48A; --pf-rouge: #F08A82; --pf-ambre: #E9B062;
		--pf-primaire: #E8702E; --pf-primaire-survol: #F0803F; --pf-primaire-texte: #FFFFFF;
		--pf-primaire-doux: #3A2A20; --pf-primaire-doux-txt: #F5A774;
		--pf-secondaire: #34363C; --pf-secondaire-survol: #3E4047; --pf-secondaire-txt: #E8EAED;
		--pf-plein: #E8EAED; --pf-plein-texte: #17181B; --pf-bloc-fonce: #2A2B30;
		--pf-t-jaune: #3A3220; --pf-t-jaune-txt: #EBC77A;
		--pf-t-vert: #1E3328; --pf-t-vert-txt: #8FD6AE;
		--pf-t-ambre: #3A3022; --pf-t-ambre-txt: #E9C08A;
		--pf-t-bleu: #23304A; --pf-t-bleu-txt: #A9C6F5;
		--pf-t-gris: #2E3036; --pf-t-gris-txt: #BFC2C8;
		--pf-t-rouge: #3A2324; --pf-t-rouge-txt: #F2AAA4;
		--pf-t-avatar: #34363C; --pf-t-choix: #3A2A20;
		--pf-squelette-1: #232428; --pf-squelette-2: #2A2B30;
		--pf-ombre-carte: 0 1px 2px rgba(0, 0, 0, .35);
		--pf-chat-fond: #1B1C1F; --pf-bulle-moi: #4A3424; --pf-bulle-moi-texte: #F3E6DA;
	}
}
:root[data-theme="nuit"] {
	--pf-fond: #17181B; --pf-fond-2: #222327; --pf-carte: #232428; --pf-carte-2: #2A2B30;
	--pf-champ: #2A2B30; --pf-bord-champ: #3D3F46; --pf-ligne: #33353B; --pf-ligne-2: #2B2D32;
	--pf-entete: rgba(30, 31, 35, .95); --pf-nav: rgba(30, 31, 35, .97);
	--pf-encre: #E8EAED; --pf-texte: #D3D5DA; --pf-gris: #A9ACB3; --pf-gris-clair: #8C8F96; --pf-gris-pale: #4A4C53;
	--pf-orange: #F0803F; --pf-bleu: #7FAEF5; --pf-vert: #5BC48A; --pf-rouge: #F08A82; --pf-ambre: #E9B062;
	--pf-primaire: #E8702E; --pf-primaire-survol: #F0803F; --pf-primaire-texte: #FFFFFF;
	--pf-primaire-doux: #3A2A20; --pf-primaire-doux-txt: #F5A774;
	--pf-secondaire: #34363C; --pf-secondaire-survol: #3E4047; --pf-secondaire-txt: #E8EAED;
	--pf-plein: #E8EAED; --pf-plein-texte: #17181B; --pf-bloc-fonce: #2A2B30;
	--pf-t-jaune: #3A3220; --pf-t-jaune-txt: #EBC77A;
	--pf-t-vert: #1E3328; --pf-t-vert-txt: #8FD6AE;
	--pf-t-ambre: #3A3022; --pf-t-ambre-txt: #E9C08A;
	--pf-t-bleu: #23304A; --pf-t-bleu-txt: #A9C6F5;
	--pf-t-gris: #2E3036; --pf-t-gris-txt: #BFC2C8;
	--pf-t-rouge: #3A2324; --pf-t-rouge-txt: #F2AAA4;
	--pf-t-avatar: #34363C; --pf-t-choix: #3A2A20;
	--pf-squelette-1: #232428; --pf-squelette-2: #2A2B30;
	--pf-ombre-carte: 0 1px 2px rgba(0, 0, 0, .35);
	--pf-chat-fond: #1B1C1F; --pf-bulle-moi: #4A3424; --pf-bulle-moi-texte: #F3E6DA;
}

/* Titres : plus légers et plus petits (le contenu passe avant) */
.pf-app :where(h1, h2, h3, h4) { font-family: var(--pf-corps); letter-spacing: -.01em; }
.pf-titre-vue { font-size: 23px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; }
@media (min-width: 1024px) { .pf-titre-vue { font-size: 27px; } }
.pf-sous-vue { font-size: 15px; }
.pf-section-titre h2 { font-size: 17px; }
.pf-marque, .pf-landing h1 { font-family: var(--pf-titre); }

/* Cartes : sans bordure, ombre discrète (comme Facebook) */
.pf-carte { border-color: transparent; box-shadow: var(--pf-ombre-carte); border-radius: var(--pf-r-carte); }
:root[data-theme="nuit"] .pf-carte { border-color: var(--pf-ligne-2); }

/* ── Boutons harmonisés ── */
.pf-btn { min-height: 44px; padding: 0 18px; border-radius: var(--pf-r-bouton); border-width: 1px; font-size: 15px; font-weight: 600; box-shadow: none; }
.pf-btn-petit { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.pf-btn-primaire, .pf-btn-feu, .pf-btn-voir-vedette { background: var(--pf-primaire); color: var(--pf-primaire-texte); box-shadow: none; filter: none; }
.pf-btn-primaire:hover, .pf-btn-feu:hover { background: var(--pf-primaire-survol); filter: none; }
.pf-btn-contour, .pf-btn-marine, .pf-btn-secondaire, .pf-btn-voir { background: var(--pf-secondaire); color: var(--pf-secondaire-txt); border-color: transparent; }
.pf-btn-contour:hover, .pf-btn-marine:hover, .pf-btn-secondaire:hover, .pf-btn-voir:hover { background: var(--pf-secondaire-survol); border-color: transparent; opacity: 1; }
.pf-btn-texte { color: var(--pf-bleu); border-radius: 10px; }
.pf-btn-texte:hover { background: var(--pf-secondaire); }
.pf-btn-danger { background: var(--pf-t-rouge); color: var(--pf-t-rouge-txt); border-color: transparent; }
.pf-btn-vert { background: var(--pf-vert); }
/* Bouton rond « Écrire » des cartes (ancien vert WhatsApp) → orange doux */
.pf-btn-icone.pf-contact { background: var(--pf-primaire-doux); color: var(--pf-primaire-doux-txt); }
.pf-btn-icone.pf-contact:hover { background: var(--pf-primaire-doux); filter: brightness(.97); }
.pf-btn-icone.pf-btn-voir { background: var(--pf-secondaire); color: var(--pf-secondaire-txt); }

/* ── Onglets, segments, puces : même langage partout ── */
.pf-onglets, .pf-segments { background: var(--pf-fond-2); border: 0; border-radius: 12px; padding: 4px; }
.pf-onglets a, .pf-segments button { border-radius: 9px; }
.pf-onglets a.pf-actif, .pf-segments button.pf-actif { background: var(--pf-carte); color: var(--pf-encre); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.pf-onglets a.pf-actif svg, .pf-segments button.pf-actif svg { color: var(--pf-primaire); }
.pf-puce { background: var(--pf-secondaire); border-color: transparent; color: var(--pf-secondaire-txt); }
.pf-puce:hover { border-color: transparent; background: var(--pf-secondaire-survol); }
.pf-puce.pf-actif { background: var(--pf-primaire-doux); color: var(--pf-primaire-doux-txt); border-color: transparent; }

/* ── Barre du bas : onglet actif en orange ── */
.pf-nav a.pf-actif { color: var(--pf-primaire); }
.pf-nav a.pf-actif::before { background: var(--pf-primaire); }
.pf-nav .pf-nav-plus .pf-nav-bulle { box-shadow: 0 6px 14px -6px rgba(232, 89, 12, .7); }
@media (min-width: 1024px) {
	.pf-nav a.pf-actif { background: var(--pf-primaire-doux); color: var(--pf-primaire-doux-txt); }
	.pf-nav .pf-nav-plus { background: var(--pf-primaire); box-shadow: none; }
}

/* ── Champs ── */
.pf-input, .pf-select, .pf-textarea { border-radius: 10px; }

/* États vides : plus compacts */
.pf-vide { padding: 28px 16px; }
.pf-vide svg { opacity: .45; }
/* Mode nuit : onglet / segment choisi en gris clair (et non plus bleu vif) */
:root[data-theme="nuit"] .pf-onglets a.pf-actif, :root[data-theme="nuit"] .pf-segments button.pf-actif { background: var(--pf-carte-2); color: var(--pf-encre); box-shadow: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="jour"]) .pf-onglets a.pf-actif, :root:not([data-theme="jour"]) .pf-segments button.pf-actif { background: var(--pf-carte-2); color: var(--pf-encre); box-shadow: none; }
}
/* Boutons dans un état vide : icône de taille normale */
.pf-vide .pf-btn svg, .pf-carte .pf-btn svg { width: 20px; height: 20px; margin: 0; opacity: 1; color: inherit; display: inline-block; }
.pf-vide .pf-btn { margin-top: 6px; }
/* Liens d'action (« Tout marquer comme lu »…) : sans soulignement, comme des boutons texte */
.pf-lien { text-decoration: none; }
.pf-lien:hover { text-decoration: underline; }
/* Carte d'un groupe : le bouton « Rejoindre » ne dépasse plus */
.pf-groupe-carte .pf-groupe-lien { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none !important; }
.pf-groupe-carte .pf-ligne-txt small svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-right: 3px; }
.pf-groupe-carte .pf-btn { flex-shrink: 0; }
.pf-liste-groupes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pf-liste-groupes > * { min-width: 0; }
.pf-appel-avertissement { position: absolute; left: 16px; right: 16px; bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 3; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.45); color: #fff; font-size: 13px; text-align: center; }
.pf-bandeau-notif { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--pf-primaire-doux); color: var(--pf-primaire-doux-txt); font-size: 13.5px; }
.pf-bandeau-notif > svg { width: 20px; height: 20px; flex-shrink: 0; }
.pf-bandeau-notif span { flex: 1; }

/* ── v1.7 : Mon espace façon « Réglages » (iPhone / réseaux sociaux) ── */
.pf-profil-compact { display: flex; align-items: center; gap: 14px; padding: 16px; }
.pf-profil-compact .pf-profil-photo { flex-shrink: 0; }
.pf-profil-compact-txt { flex: 1; min-width: 0; }
.pf-profil-compact-txt h2 { font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-profil-compact-txt p { color: var(--pf-gris); font-size: 13.5px; margin-top: 2px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-lien-profil-voir { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 5px 12px 5px 9px; border-radius: 16px; background: var(--pf-secondaire); color: var(--pf-secondaire-txt) !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; }
.pf-lien-profil-voir svg { width: 15px; height: 15px; }
.pf-btn-rond { background: var(--pf-secondaire); flex-shrink: 0; }
.pf-btn-rond svg { width: 20px; height: 20px; }
.pf-bilan-mini { display: flex; gap: 18px; padding: 10px 6px 0; color: var(--pf-gris); font-size: 14px; }
.pf-bilan-mini b { color: var(--pf-encre); }
.pf-rappel-ligne { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--pf-t-bleu); color: var(--pf-t-bleu-txt); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.pf-rappel-ligne svg { width: 18px; height: 18px; flex-shrink: 0; }
.pf-rappel-ligne span { flex: 1; }

.pf-reglage-groupe { margin-top: 18px; background: var(--pf-carte); border-radius: var(--pf-r-carte); box-shadow: var(--pf-ombre-carte); overflow: hidden; }
.pf-reglage-ligne { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none !important; cursor: pointer; position: relative; }
.pf-reglage-ligne + .pf-reglage-ligne, .pf-reglage-groupe > div + .pf-reglage-ligne, .pf-reglage-groupe > .pf-reglage-ligne + div .pf-reglage-ligne { border-top: 1px solid var(--pf-ligne-2); }
.pf-reglage-ligne:hover { background: var(--pf-carte-2); }
.pf-reglage-statique { cursor: default; }
.pf-reglage-statique:hover { background: none; }
.pf-reglage-ligne > svg { width: 18px; height: 18px; color: var(--pf-gris-clair); flex-shrink: 0; }
.pf-reglage-icone { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.pf-reglage-icone svg { width: 18px; height: 18px; }
.pf-ri-feu { background: #F07B2E; } .pf-ri-violet { background: #8B5CF6; } .pf-ri-jaune { background: #E9A500; } .pf-ri-bleu { background: #3B82F6; }
.pf-ri-rouge { background: #EF4444; } .pf-ri-vert { background: #22A55B; } .pf-ri-gris { background: #8E9199; }
.pf-reglage-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-reglage-txt strong { color: var(--pf-encre); font-size: 15.5px; font-weight: 500; }
.pf-reglage-txt small { color: var(--pf-gris); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-reglage-danger .pf-reglage-txt strong { color: var(--pf-rouge); }
.pf-reglage-groupe .pf-compte { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pf-rouge); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.pf-interrupteur-seul { padding: 0; border: 0; display: inline-flex; }
.pf-interrupteur-seul input:disabled + i { opacity: .45; }
.pf-reglage-sous { padding: 0 14px 6px 58px; border-top: 1px solid var(--pf-ligne-2); }
.pf-reglage-sous .pf-interrupteur { padding: 10px 0; }
.pf-reglage-sous .pf-interrupteur strong { font-size: 14.5px; font-weight: 500; }
.pf-reglage-test { display: block; margin: 8px 0 6px; font-size: 14px; }
.pf-reglage-note { padding: 0 14px 12px 58px; color: var(--pf-gris); font-size: 13px; }
.pf-segments-mini { display: inline-grid; grid-template-columns: repeat(3, auto); margin: 0; padding: 3px; }
.pf-segments-mini button { min-height: 30px; padding: 0 10px; font-size: 13px; }
.pf-reglage-groupe .pf-interrupteur input:checked + i { background: var(--pf-vert); }
@media (hover: none) { .pf-reglage-ligne:hover { background: none; } .pf-reglage-ligne:active { background: var(--pf-carte-2); } }
.pf-groupes-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ═════ v1.8 : Suggestions « Pour toi » (rails de cartes, comme Instagram / Facebook) ═════ */
.pf-pourtoi .pf-section-titre h2 svg, .pf-sugg-raison svg { color: var(--pf-primaire); }
.pf-sugg-bloc + .pf-sugg-bloc { margin-top: 14px; }
.pf-sugg-sous { font-size: 14px; font-weight: 600; color: var(--pf-gris); margin: 0 0 8px; font-family: inherit; }
.pf-sugg-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pf-sugg-rail::-webkit-scrollbar { display: none; }
.pf-sugg { position: relative; flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--pf-carte); border-radius: var(--pf-r-carte); box-shadow: var(--pf-ombre-carte); transition: opacity .2s, transform .2s; }
.pf-sugg-partie { opacity: 0; transform: scale(.92); }
.pf-sugg-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--pf-gris-clair); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pf-sugg-x svg { width: 16px; height: 16px; }
.pf-sugg-x:hover { background: var(--pf-carte-2); color: var(--pf-encre); }
.pf-sugg-sujet { width: 248px; }
.pf-sugg-sujet .pf-carte-haut { padding-right: 26px; margin: 0; flex-wrap: nowrap; overflow: hidden; }
.pf-sugg-titre { color: var(--pf-encre) !important; font-weight: 700; font-size: 15.5px; line-height: 1.3; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pf-sugg-raison { display: flex; align-items: flex-start; gap: 5px; color: var(--pf-gris); font-size: 12.5px; line-height: 1.35; margin: 0; }
.pf-sugg-raison svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.pf-sugg-raison span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-sugg-pied { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--pf-gris); margin-top: auto; }
.pf-sugg-auteur { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pf-sugg-auteur span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-sugg-auteur .pf-avatar { width: 24px; height: 24px; font-size: 10px; }
.pf-sugg-nb { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.pf-sugg-nb svg { width: 15px; height: 15px; color: var(--pf-primaire); }
.pf-sugg-btn { width: 100%; justify-content: center; }
.pf-sugg-personne, .pf-sugg-groupe { width: 158px; align-items: center; text-align: center; }
.pf-sugg-profil { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--pf-encre) !important; text-decoration: none !important; min-width: 0; width: 100%; margin-top: 4px; }
.pf-sugg-profil strong { font-size: 14.5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-sugg-groupe .pf-sugg-profil strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.pf-sugg-personne .pf-avatar-l { width: 72px; height: 72px; font-size: 24px; }
.pf-sugg-personne .pf-sugg-raison, .pf-sugg-groupe .pf-sugg-raison { justify-content: center; text-align: center; min-height: 2.7em; }
.pf-sugg-info { color: var(--pf-gris); font-size: 12px; margin-top: -4px; }
.pf-sugg-groupe .pf-btn:disabled { opacity: .7; }
.pf-fardeaux .pf-ligne { padding: 12px 4px; }
.pf-fardeaux .pf-ligne-txt small { color: var(--pf-primaire); }
.pf-suggere-ligne { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--pf-carte-2); min-height: 0; }
.pf-suggere-ligne .pf-reglage-txt small { white-space: normal; }
.pf-suggere-ligne[hidden] { display: none; }

/* Mes habitudes de prière */
.pf-habitude { margin-top: 12px; }
.pf-habitude-tete { display: flex; align-items: center; gap: 10px; }
.pf-habitude-tete strong { font-size: 15.5px; }
.pf-habitude-msg { margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; }
.pf-habitude-chiffres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pf-habitude-chiffres > span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 10px; background: var(--pf-carte-2); font-size: 13px; color: var(--pf-gris); }
.pf-habitude-chiffres b { color: var(--pf-encre); font-size: 15px; }
.pf-habitude-chiffres svg { width: 15px; height: 15px; }
.pf-habitude-chiffres em { font-style: normal; font-weight: 600; font-size: 12px; }
.pf-habitude-astuce { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; color: var(--pf-gris); font-size: 13px; line-height: 1.4; }
.pf-habitude-astuce svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--pf-primaire); }
.pf-hausse { color: var(--pf-vert); } .pf-baisse { color: var(--pf-gris-clair); }
@media (min-width: 900px) { .pf-sugg-sujet { width: 270px; } }

/* ═════ v1.8.1 : cartes plus compactes (sujets, témoignages) + chiffres « Mes prières » ═════ */
/* Bug corrigé : dans une grille, une carte trop large (barre d'actions) poussait la 3e colonne hors de l'écran. */
.pf-grille { grid-template-columns: minmax(0, 1fr); }
.pf-grille > * { min-width: 0; }
@media (min-width: 760px) { .pf-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pf-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* En-tête « publication » dans les cartes : photo, nom, lieu · date */
.pf-carte-sujet .pf-post-tete, .pf-temoignage .pf-post-tete { padding: 0; gap: 10px; align-items: center; }
.pf-post-qui { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-post-qui strong { font-size: 14.5px; font-weight: 600; color: var(--pf-encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pf-post-qui strong a { color: inherit !important; text-decoration: none !important; }
.pf-post-qui small { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--pf-gris); font-size: 12.5px; white-space: nowrap; }
.pf-post-qui small .pf-lieu { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: inline-flex; flex-shrink: 1; }
.pf-post-qui small .pf-lieu svg { width: 12px; height: 12px; flex-shrink: 0; }
.pf-post-qui small time { flex-shrink: 0; }
.pf-sep { flex-shrink: 0; }
.pf-carte-sujet .pf-post-tete .pf-avatar-m, .pf-temoignage .pf-post-tete .pf-avatar-m { width: 38px; height: 38px; font-size: 13px; flex-shrink: 0; }
.pf-post-tete > .pf-badge { flex-shrink: 0; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
.pf-carte-vedette .pf-post-qui strong { color: #fff; }
.pf-carte-vedette .pf-post-qui small { color: rgba(255, 255, 255, .72); }

/* Carte de sujet resserrée */
.pf-carte-sujet { gap: 8px; }
.pf-carte-sujet .pf-carte-haut { margin: 0; }
.pf-carte-sujet h3 { font-size: 16.5px; line-height: 1.3; }
.pf-carte-sujet .pf-extrait { font-size: 14.5px; -webkit-line-clamp: 2; margin-top: 3px; }
.pf-carte-sujet .pf-carte-pied { padding-top: 8px; }

/* Témoignages : mur en colonnes (pas de vides sous les cartes courtes) */
.pf-mur { display: block; }
.pf-mur > .pf-carte { margin-bottom: 14px; break-inside: avoid; }
@media (min-width: 900px) { .pf-mur { columns: 2; column-gap: 18px; } }
@media (min-width: 1500px) { .pf-mur { columns: 3; } }
.pf-temoignage { gap: 8px; padding: 14px 16px 0; container-type: inline-size; overflow: hidden; }
.pf-temoignage .pf-carte-haut { margin: 2px 0 0; }
.pf-temoignage h3 { font-size: 16.5px; padding-right: 0; line-height: 1.3; }
.pf-temoignage-texte { font-size: 15px; line-height: 1.55; }
.pf-temoignage-texte.pf-replie { -webkit-line-clamp: 4; }
.pf-temoignage .pf-post-stats { margin: 0 -16px; padding: 0 16px; min-height: 0; }
.pf-temoignage .pf-post-stats[hidden] { display: none; }
.pf-temoignage .pf-actions-barre { margin: 0 -16px; }
.pf-temoignage .pf-contact, .pf-btn-discret { width: 34px; height: 34px; min-height: 34px; flex-shrink: 0; }
.pf-btn-discret { color: var(--pf-gris-clair); background: none; }
.pf-btn-discret svg { width: 17px; height: 17px; }
.pf-badge-lien { text-decoration: none !important; }
/* Barre d'actions : libellés cachés quand la carte est étroite (on garde les icônes, comme Facebook mobile) */
.pf-temoignage .pf-action { min-width: 0; white-space: nowrap; }
@container (max-width: 470px) {
	.pf-temoignage .pf-actions-barre .pf-action { flex-direction: column; gap: 2px; font-size: 11.5px; min-height: 50px; padding: 4px 2px; }
	.pf-temoignage .pf-actions-barre .pf-action svg { width: 20px; height: 20px; }
}
@container (min-width: 471px) {
	.pf-temoignage .pf-actions-barre .pf-action { flex-direction: row; font-size: 13.5px; min-height: 42px; }
	.pf-temoignage .pf-actions-barre .pf-action-nb { position: static; }
}

/* Mes prières : une ligne de chiffres façon profil Instagram */
.pf-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 0 4px; padding: 12px 4px; background: var(--pf-carte); border-radius: var(--pf-r-carte); box-shadow: var(--pf-ombre-carte); }
.pf-chiffres > * { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; color: inherit; text-decoration: none !important; }
.pf-chiffres > * + * { border-left: 1px solid var(--pf-ligne-2); }
.pf-chiffres b { font-size: 17px; font-weight: 700; color: var(--pf-encre); white-space: nowrap; }
.pf-chiffres span { font-size: 12.5px; color: var(--pf-gris); }
.pf-chiffres a b { color: var(--pf-primaire); }

/* ═════ v1.9 : vocaux et fichiers joints (témoignages, louanges) + relances ═════ */
.pf-joindre-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-joindre-boutons[hidden] { display: none; }
.pf-joint-audio { background: var(--pf-primaire-doux, #FDEBDD); color: var(--pf-primaire); }
.pf-joint-audio svg { width: 18px; height: 18px; }
.pf-vocal-rec { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--pf-carte-2); font-variant-numeric: tabular-nums; }
.pf-vocal-rec[hidden] { display: none; }
.pf-vocal-point { width: 10px; height: 10px; border-radius: 50%; background: #EF4444; animation: pf-clignote 1s infinite; flex-shrink: 0; }
@keyframes pf-clignote { 50% { opacity: .25; } }
.pf-vocal-rec [data-rec-temps] { font-weight: 700; color: var(--pf-encre); }
.pf-vocal-libelle { flex: 1; color: var(--pf-gris); font-size: 13px; }
.pf-audios { display: flex; flex-direction: column; gap: 8px; }
.pf-audio-joint { max-width: 100%; min-width: 0; padding: 8px 12px 8px 8px; border-radius: 24px; background: var(--pf-carte-2); }
.pf-audio-joint .pf-audio-btn { background: var(--pf-primaire); }
.pf-audio-joint .pf-audio-barre span, .pf-audio-joint .pf-audio-barre span::after { background: var(--pf-primaire); }
.pf-louange .pf-audios, .pf-louange .pf-galerie, .pf-louange .pf-docs { margin: 8px 0 2px; }

/* Relances (« Où en est ton sujet ? », « Un fardeau pour toi ») */
.pf-relances .pf-section-titre h2 svg { color: var(--pf-primaire); }
.pf-relance { position: relative; display: flex; flex-direction: column; gap: 8px; padding-right: 44px; border-left: 4px solid var(--pf-primaire); }
.pf-relance + .pf-relance { margin-top: 10px; }
.pf-relance-titre { font-size: 16px; color: var(--pf-encre); }
.pf-relance-texte { margin: 0; color: var(--pf-texte); font-size: 14.5px; line-height: 1.5; }
.pf-relance-sujet { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--pf-carte-2); color: var(--pf-encre) !important; text-decoration: none !important; font-weight: 600; font-size: 14px; min-width: 0; }
.pf-relance-sujet span:not(.pf-badge) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-relance-sujet > svg { width: 16px; height: 16px; color: var(--pf-gris-clair); flex-shrink: 0; }
.pf-relance-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-doc .pf-joint-pdf { flex: 0 0 44px; width: 44px; height: 40px; font-size: 10.5px; letter-spacing: .02em; }

/* ═════ v1.10 : prêt pour les stores ═════ */
.pf-alerte-danger { background: var(--pf-t-rouge); color: var(--pf-t-rouge-txt); }
.pf-alerte-danger svg { color: var(--pf-rouge); }
.pf-mention-conditions { margin-top: 10px; text-align: center; font-size: 12.5px; line-height: 1.5; }
.pf-mention-conditions a { color: var(--pf-primaire); }
.pf-landing-legal { margin-top: 14px; font-size: 12.5px; opacity: .8; }
.pf-landing-legal a { color: inherit; }

/* ── v1.11 : choix de la langue ── */
.pf-landing-langues { margin-top: 18px; font-size: 13px; opacity: .85; }
.pf-landing-langues .pf-lien { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pf-landing-langues .pf-lien.pf-actif { font-weight: 700; text-decoration: none; }
.pf-reglage-langue .pf-reglage-txt small { white-space: normal; }
.pf-reglage-langue .pf-segments-mini { flex-shrink: 0; }
/* v1.12 : moments de prière (autant que voulu) — les heures côte à côte, l'aide et le bouton en dessous */
.pf-heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 12px; align-items: end; margin-top: 14px; }
.pf-heures > .pf-champ { margin: 0; }
.pf-heures > .pf-aide, .pf-heures > .pf-deux-moments { grid-column: 1 / -1; }
.pf-heure-saisie { display: flex; align-items: center; gap: 4px; }
.pf-heure-saisie .pf-input { flex: 1; min-width: 0; }
.pf-heure-saisie .pf-btn-icone { width: 34px; height: 34px; flex-shrink: 0; }
.pf-heure-saisie .pf-btn-icone svg { width: 16px; height: 16px; }
.pf-deux-moments { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-weight: 600; text-align: start; }
.pf-deux-moments svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── v1.12 : étiquette « Urgent » (À la une) ── */
.pf-ul-pastilles { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.pf-badge-urgent { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: var(--pf-r-pilule); background: #D92D20; color: #fff; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; box-shadow: 0 2px 8px rgba(217, 45, 32, .35); animation: pf-urgent-pouls 2s ease-in-out infinite; }
.pf-badge-urgent svg { width: 13px; height: 13px; }
.pf-ul-urgent-coin { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3; pointer-events: none; }
.pf-ul-est-urgent { border-color: #D92D20; box-shadow: 0 0 0 2px rgba(217, 45, 32, .25); }
@keyframes pf-urgent-pouls { 0%, 100% { box-shadow: 0 2px 8px rgba(217, 45, 32, .35); } 50% { box-shadow: 0 2px 14px rgba(217, 45, 32, .7); } }
@media (prefers-reduced-motion: reduce) { .pf-badge-urgent { animation: none; } }

/* ── v1.12 : logo = symbole + nom traduit, texte agrandi pour équilibrer avec le symbole ── */
.pf-marque { font-size: 26px; gap: 10px; line-height: 1; }
.pf-marque img { width: 48px; height: 48px; }
.pf-entete .pf-marque { font-size: 22px; gap: 8px; }
.pf-entete .pf-marque img { width: 42px; height: 42px; }
.pf-panneau-marque { justify-content: center; color: var(--pf-encre); font-size: 30px; margin: 4px auto 22px; }
.pf-panneau-marque img { width: 60px; height: 60px; }
[dir="rtl"] .pf-marque { letter-spacing: 0; }
.pf-marque.pf-nav-marque { font-size: 22px; }
.pf-marque.pf-nav-marque img { width: 44px; height: 44px; }

/* ── v1.12 : traduction automatique ── */
.pf-trad-lien { display: block; margin: 6px 0 2px; padding: 0; border: 0; background: none; color: var(--pf-gris); font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: start; }
.pf-trad-lien:hover { color: var(--pf-bleu, #2563EB); text-decoration: underline; }
.pf-msg .pf-trad-lien, .pf-bulle .pf-trad-lien { font-size: 11.5px; opacity: .85; color: inherit; }

/* ── v1.12 : textes des membres dans le bon sens (un texte français dans l'app en arabe, et inversement) ── */
[data-tr], .pf-extrait, .pf-sujet-contenu, .pf-temoignage-texte, .pf-louange-texte, .pf-msg-texte, .pf-fc-bulle p, .pf-com-bulle p, .pf-notif-extrait, .pf-input, .pf-textarea { unicode-bidi: plaintext; text-align: start; }
/* v1.12 : 5 langues → les boutons passent sous le titre */
.pf-reglage-langue { flex-wrap: wrap; row-gap: 10px; }
.pf-reglage-langue .pf-reglage-txt { flex: 1 1 60%; }
.pf-reglage-langue .pf-segments-mini { flex: 1 1 100%; justify-content: stretch; }
.pf-reglage-langue .pf-segments-mini button { flex: 1; }
.pf-reglage-langue .pf-segments-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); width: 100%; }
.pf-heure-saisie .pf-input[type="time"] { direction: ltr; unicode-bidi: normal; padding-inline: 10px; min-width: 0; }

/* ── v1.13 : « En prière » (personnes qui prient à l'instant) ── */
.pf-compteurs { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-en-priere { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #16A249; white-space: nowrap; }
.pf-en-priere b { font-weight: 800; }
.pf-pastille-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; flex-shrink: 0; animation: pf-live 1.4s ease-in-out infinite; }
.pf-pastille-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22C55E; opacity: 0; animation: pf-live-onde 1.4s ease-out infinite; }
@keyframes pf-live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes pf-live-onde { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.pf-section-titre .pf-en-priere { font-size: 13px; }
.pf-ep { display: contents; } /* v1.13.1 : boîte du compteur en direct */
.pf-ep:empty { display: none; }
.pf-section-titre .pf-ep { display: block; margin-inline-start: auto; }
.pf-section-titre .pf-ep:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .pf-pastille-live, .pf-pastille-live::after { animation: none; } }

/* ═════════════ v1.13 : PAGE DE BIENVENUE (nouveaux membres) ═════════════ */
html.pf-bv-ouverte, html.pf-bv-ouverte body { overflow: hidden; }
.pf-bienvenue { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; color: #fff;
	background: radial-gradient(120% 60% at 50% -10%, rgba(242, 107, 29, .45), transparent 60%), radial-gradient(80% 50% at 100% 100%, rgba(255, 194, 58, .12), transparent 70%), linear-gradient(180deg, #0B1630 0%, #111F42 55%, #0B1630 100%);
	animation: pf-bv-entree .6s ease both; }
.pf-bienvenue.pf-bv-sortie { animation: pf-bv-sortie .42s ease both; }
@keyframes pf-bv-entree { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes pf-bv-sortie { to { opacity: 0; transform: translateY(12px); } }
.pf-bv-progression { position: absolute; top: 0; inset-inline: 0; height: 4px; background: rgba(255, 255, 255, .08); z-index: 2; }
.pf-bv-progression i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FFC23A, #F26B1D, #E8401C); border-radius: 0 4px 4px 0; transition: width .15s linear; }
.pf-bv-defile { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: max(28px, env(safe-area-inset-top)) 18px 170px; }
.pf-bv-haut { max-width: 640px; margin: 0 auto; text-align: center; }
.pf-bv-halo { position: relative; width: 104px; height: 104px; margin: 14px auto 18px; border-radius: 50%; display: grid; place-items: center;
	background: radial-gradient(circle, rgba(255, 194, 58, .35), rgba(242, 107, 29, .08) 65%, transparent 72%); }
.pf-bv-halo::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 194, 58, .35); animation: pf-bv-halo 3s ease-in-out infinite; }
.pf-bv-halo img { width: 78px; height: 78px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(242, 107, 29, .55)); }
@keyframes pf-bv-halo { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: .35; } }
.pf-bv-surtitre { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #FFC23A; }
.pf-bv-titre { margin: 0; font-family: var(--pf-titre); font-size: clamp(26px, 7vw, 38px); line-height: 1.15; font-weight: 800; color: #fff; text-wrap: balance; }
.pf-bv-rang { display: grid; justify-items: center; gap: 4px; margin: 26px auto 18px; padding: 18px 20px 20px; max-width: 320px; border-radius: 24px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.pf-bv-rang-n { font-family: var(--pf-titre); font-size: 58px; line-height: 1; font-weight: 800; background: linear-gradient(180deg, #FFD25A, #F26B1D 70%, #E8401C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-bv-rang-sur { font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.pf-bv-jauge { width: 100%; height: 6px; margin-top: 10px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pf-bv-jauge i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #FFC23A, #F26B1D); }
.pf-bv-accroche { margin: 0 auto 26px; max-width: 520px; font-size: 17.5px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.pf-bv-carte { max-width: 640px; margin: 0 auto; padding: 30px 24px 34px; border-radius: 28px; background: #FFFBF4; color: #1D2B47; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.pf-bv-carte p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.8; }
.pf-bv-carte > p:first-child::first-letter { float: inline-start; font-family: var(--pf-titre); font-size: 54px; line-height: .9; font-weight: 800; margin: 6px 10px 0 0; color: #F26B1D; }
[dir="rtl"] .pf-bv-carte > p:first-child::first-letter, :lang(zh) .pf-bv-carte > p:first-child::first-letter, :lang(ar) .pf-bv-carte > p:first-child::first-letter { float: none; font-size: inherit; margin: 0; color: inherit; font-weight: inherit; }
.pf-bv-citation { margin: 28px 0; padding: 22px 18px; text-align: center; font-family: var(--pf-titre); font-size: 22px; line-height: 1.35; font-weight: 700; color: #152647;
	border-top: 2px solid #F26B1D; border-bottom: 2px solid #F26B1D; }
.pf-bv-citation::before { content: "“"; display: block; font-size: 52px; line-height: .6; color: #F26B1D; }
.pf-bv-verset { margin: 28px 0; padding: 22px 20px; border-radius: 20px; background: linear-gradient(160deg, #152647, #0B1630); color: #fff; }
.pf-bv-verset blockquote { margin: 0; font-size: 16.5px; line-height: 1.7; font-style: italic; color: #FFE3A8; }
.pf-bv-verset figcaption { margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #FFC23A; }
.pf-bv-fin { font-weight: 600; }
.pf-bv-shalom { margin: 26px 0 0 !important; text-align: center; font-family: var(--pf-titre); font-size: 44px !important; font-weight: 800; line-height: 1.1 !important;
	background: linear-gradient(180deg, #FFC23A, #F26B1D 60%, #E8401C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-bv-equipe { text-align: center; font-size: 14px !important; color: #6B7280; }
.pf-bv-pied { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 18px max(18px, env(safe-area-inset-bottom)); text-align: center;
	background: linear-gradient(180deg, rgba(11, 22, 48, 0), rgba(11, 22, 48, .92) 38%, #0B1630); }
.pf-bv-pied .pf-btn { max-width: 640px; margin: 0 auto; min-height: 54px; font-size: 17px; transition: opacity .3s, transform .3s; }
.pf-bv-pied .pf-btn:disabled { opacity: .35; filter: grayscale(.4); cursor: not-allowed; }
.pf-bv-lu .pf-bv-pied .pf-btn { animation: pf-bv-pret .6s ease; box-shadow: 0 10px 30px rgba(242, 107, 29, .5); }
@keyframes pf-bv-pret { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: none; } }
.pf-bv-consigne { margin: 0 0 10px; font-size: 13px; color: rgba(255, 255, 255, .7); }
@media (min-width: 720px) { .pf-bv-carte { padding: 42px 46px 46px; } .pf-bv-carte p { font-size: 17.5px; } }
@media (prefers-reduced-motion: reduce) { .pf-bienvenue, .pf-bv-halo::before { animation: none; } }

/* v1.13.1 : voile pendant le changement de langue */
.pf-voile-langue { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--pf-fond, #fff) 82%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.pf-voile-langue .pf-roue { width: 42px; height: 42px; }
