body {
	font-family: "Open Sans", Arial, sans-serif;
	background-color: var(--bg-page);
	color: var(--text-primary);
}

.image-container {
    position: relative;
}


.image-container .heart {
	position: absolute;
	margin-left: -40px;
	margin-top: -40px;
    top: 50%;
    left: 50%;
    color: #FFF;
    display: block;
	opacity: 0.5;
}

#content .hidden{
    display: none;
}
#content #loader{
    display: none;
}

.round { 
    border-radius: 15px; 
}

.container {
	max-width: 960px !important;
}

/* Sur grand écran, le contenu de chaque page se recentre à la même largeur que le fil (Wall,
   via .container ci-dessus) au lieu de s'étirer sur toute la fenêtre — le header/nav fixes,
   eux, restent pleine largeur, exactement comme sur Wall. En dessous de 960px (mobile/tablette)
   cette règle ne change rien : .black-main (Wall, Search) garde son propre traitement plein
   écran déjà correct et n'est pas concerné. */
main:not(.black-main) {
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

@media screen and (min-width: 768px) {
	.modal-dialog.modal-lg {
	  max-width: 550px; /* New width for default modal */
	}
}

.text-orange, .text-orange:hover{
  color: #ffbb00;
}

/* Alertes Bootstrap — remplace le jaune/rouge pastel par défaut, illisible sur fond sombre */
.alert-warning {
	background-color: rgba(224,155,60,.14);
	border: none;
	color: #e0b25f;
	border-radius: 12px;
}

.nav-link-icon[data-count]:after{
  position:absolute;
  right:6px;
  top:2px;
  content: attr(data-count);
  font-size:.68rem;
  padding:1px 5px;
  border-radius:999px;
  line-height:16px;
  height:17px;
  color: white;
  background:var(--danger);
  box-shadow: 0 0 0 2px var(--bg-page);
  text-align:center;
  min-width:17px;
  font-weight:700;
}

.text-purple {
	color: var(--purple)!important;
}

.text-pink {
	color: var(--pink)!important;
}

.form-control:focus{
    border-color: var(--border-subtle-strong);
    -webkit-box-shadow: none;
    box-shadow: none;
}

.ui-menu-item {
	cursor: pointer;
}

.ui-menu-item:hover {
	background-color: none;
}

.ui-menu-item-wrapper {
	cursor: pointer;
	padding: 5px;
	margin: 0px;
}


.ui-menu-item-wrapper:hover {
	background-color: none;
	text-decoration: none;
}

/*
 * Sidebar
 */

.sidebar {
  position: fixed;
  top: 0px;
  max-width: 360px;
  z-index: 100; /* Behind the navbar */
  margin-top: 50px; /* Height of navbar */
}

.match-text {
  font-family: 'La Belle Aurore';
}

/* ==========================================================================
   Design system — carte profil / boutons pill / grille photo arrondie
   ========================================================================== */

:root {
	/* Palette : noir anthracite / gris très foncé (surfaces) + mauve / fuchsia (accents).
	   --purple/--dark-purple/--pink sont conservées (des dizaines de règles les référencent déjà
	   via var()) mais pointent maintenant vers le nouveau nom : mauve, anthracite, fuchsia. */
	--purple: #9b6b95;
	--purple-dark: #855a80;
	--purple-light: #c9a9c4;
	--dark-purple: #1b1a1f;
	--pink: #c13584;
	--pink-dark: #a02b6e;
	--danger: #e0304a;

	--bg-page: #1b1a1f;
	--bg-surface: #26242b;
	--bg-surface-raised: #322f38;
	--text-primary: #f2f0f3;
	--text-secondary: rgba(242,240,243,.62);
	--text-tertiary: rgba(242,240,243,.4);
	--border-subtle: rgba(242,240,243,.09);
	--border-subtle-strong: rgba(242,240,243,.16);
}

/* Hero photo card */
.hero-photo-card {
	position: relative;
	width: 100%;
	height: 50vw;
	max-height: 330px;
	min-height: 220px;
	overflow: hidden;
	background-color: var(--dark-purple);
	margin-top: -55px; /* annule le padding-top du <body> (gabarit.php) réservé au header fixe absent sur ces pages */
}

.hero-photo-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero-topbar {
	position: absolute;
	top: 0; left: 0; right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	z-index: 2;
}

.hero-topbar a,
.hero-topbar span,
.hero-topbar button {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

/* Icône plate sans fond, posée directement sur la photo (chevron retour, "..." options) */
.hero-icon-btn {
	background: transparent;
	border: none;
	padding: 0;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.15rem;
	text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Regroupe le bouton "Publier" et ses icônes compagnes (ex: photos à autoriser) en bas de la
   hero-photo-card, alignés horizontalement. */
.hero-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}
.hero-consent-btn {
	position: relative;
	background: rgba(0,0,0,.35);
	border-radius: 50%;
}
.hero-consent-btn[data-count]:after {
	position: absolute;
	right: -4px;
	top: -4px;
	content: attr(data-count);
	font-size: .68rem;
	padding: 1px 5px;
	border-radius: 999px;
	line-height: 16px;
	height: 17px;
	color: #fff;
	background: var(--danger);
	box-shadow: 0 0 0 2px var(--bg-page);
	text-align: center;
	min-width: 17px;
	font-weight: 700;
}

.hero-gradient {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 65%;
	background: linear-gradient(to top,
		rgba(27,26,31,.98) 0%,
		rgba(27,26,31,.92) 25%,
		rgba(27,26,31,.55) 55%,
		rgba(27,26,31,0) 100%);
	pointer-events: none;
}

.hero-info {
	position: absolute;
	left: 18px; right: 18px; bottom: 16px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	z-index: 2;
}

.hero-name {
	color: #fff;
	font-weight: 800;
	font-size: 1.4rem;
	margin: 0;
	line-height: 1.15;
	text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Rôle + icône sexe, sous le nom — couleur alignée sur le rôle (mauve photographe / fuchsia modèle). */
.hero-role {
	display: flex;
	align-items: center;
	gap: 5px;
	font-weight: 700;
	font-size: .8rem;
	text-transform: uppercase;
	margin: 3px 0 0;
	line-height: 1.3;
	text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.hero-role-photographer { color: var(--purple); }
.hero-role-model { color: var(--pink); }

.hero-location {
	color: var(--text-secondary);
	font-weight: 500;
	font-size: .78rem;
	margin: 0;
	line-height: 1.3;
	text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Badge "profil vérifié" à côté du nom — bleu du badge de certification Instagram */
.hero-badge-verified {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #3897f0;
	font-size: .85rem;
	margin-left: 4px;
}
.hero-badge-verified .fa-check {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: .34rem;
	color: #fff;
}

/* Pill buttons */
.btn-pill-primary {
	display: block;
	width: 100%;
	background-color: var(--purple);
	color: #fff !important;
	border: none;
	border-radius: 999px;
	padding: .7rem 1.25rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
}
/* Bouton "Envoyer" de la modale de proposition de séance : même gabarit que les champs du
   formulaire au-dessus (coins arrondis 12px, même hauteur), plutôt que la pilule habituelle.
   .modal-footer a par défaut moins de padding que .modal-body (Bootstrap : .75rem vs 1rem) et
   ajoute une marge de .25rem à ses enfants, donc le bouton n'avait ni la même largeur ni le
   même alignement horizontal que les champs juste au-dessus sans ces deux overrides. */
#propose-shoot-submit {
	border-radius: 12px;
	padding: .65rem .9rem;
}
#ProposeShootModal .modal-footer {
	display: block;
	/* 2rem = 1rem de .modal-body + 16px de .form-field (voir style.css) : les champs du
	   formulaire ci-dessus sont inset des deux, donc le bouton doit l'être tout autant pour
	   avoir exactement la même largeur, pas seulement le padding de .modal-body seul. */
	padding: 0 2rem 1rem;
}
#ProposeShootModal .modal-footer > * {
	margin: 0;
}
.btn-pill-primary:hover,
.btn-pill-primary:focus { background-color: var(--purple-dark); color: #fff; }
.btn-pill-primary.disabled { background-color: var(--bg-surface-raised); color: var(--text-tertiary) !important; pointer-events: none; }

.btn-pill-accent {
	display: inline-block;
	background-color: var(--pink);
	color: #fff !important;
	border: none;
	border-radius: 999px;
	padding: .4rem .9rem;
	font-weight: 600;
	font-size: .8rem;
	text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.btn-pill-accent:hover,
.btn-pill-accent:focus { background-color: var(--pink-dark); color: #fff; }
/* Variante icône seule (bouton Contact à côté de Suivre dans le hero du profil) */
.btn-pill-accent.btn-pill-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	font-size: .85rem;
}

/* Pill outline clair, pour CTA secondaire sur fond sombre (ex: modal de match) */
.btn-pill-outline-light {
	display: block;
	width: 100%;
	background: transparent;
	color: #fff !important;
	border: 1.5px solid rgba(255,255,255,.55);
	border-radius: 999px;
	padding: .65rem 1.25rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
}
.btn-pill-outline-light:hover,
.btn-pill-outline-light:focus {
	background: rgba(255,255,255,.12);
	color: #fff;
}

/* Bouton fermeture (X) en cercle clair, posé sur fond sombre (ex: modal de match) */
.modal-close-light {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,.14);
	border: none;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
}

/* Bouton Suivre / Suivi(e) façon Instagram */
.btn-pill-follow {
	display: inline-block;
	background-color: var(--purple);
	color: #fff !important;
	border: none;
	border-radius: 999px;
	padding: .4rem .9rem;
	font-weight: 600;
	font-size: .8rem;
	text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.btn-pill-follow:hover,
.btn-pill-follow:focus { background-color: var(--purple-dark); color: #fff; }
.btn-pill-follow.is-following {
	background-color: transparent;
	border: 1.5px solid rgba(255,255,255,.55);
	color: #fff !important;
	box-shadow: none;
}
.btn-pill-follow.is-following:hover,
.btn-pill-follow.is-following:focus {
	background-color: rgba(255,255,255,.12);
	color: #fff !important;
}

/* Stat row — reste dans le bandeau sombre du hero, pas de rupture vers du blanc */
.stat-row {
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 10px 8px;
	background-color: var(--dark-purple);
	text-align: center;
}
.stat-row .stat-value {
	display: block;
	font-size: 1.15rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.1;
}
.stat-row .stat-label {
	display: block;
	font-size: .68rem;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-top: 2px;
}
.stat-row .stat-tab {
	cursor: pointer;
	opacity: .62;
	transition: opacity .15s ease;
	flex: 1 1 0;
}
.stat-row .stat-tab.active {
	opacity: 1;
}
.stat-row .stat-tab .stat-value i {
	font-size: 1.05rem;
}

/* Profil — bascule "carousel" entre Détails / Photos / Collabs / Followers */
.profile-carousel {
	position: relative;
	overflow: hidden;
}
.profile-carousel-panel {
	display: none;
}
.profile-carousel-panel.active {
	display: block;
}
.profile-carousel-panel.slide-from-right {
	animation: profileSlideFromRight .25s ease;
}
.profile-carousel-panel.slide-from-left {
	animation: profileSlideFromLeft .25s ease;
}
@keyframes profileSlideFromRight {
	from { transform: translateX(28px); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}
@keyframes profileSlideFromLeft {
	from { transform: translateX(-28px); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}
.profile-list-panel {
	padding: 10px 0 0;
}
.profile-list-panel .list-row:last-child,
.profile-list-panel .request-card:last-child {
	margin-bottom: 2px;
}
.list-row-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
	margin-left: 8px;
}
.btn-pill-xs {
	display: inline-block;
	border: none;
	border-radius: 999px;
	padding: .38rem .85rem;
	font-size: .74rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}
.btn-pill-xs-accept {
	background-color: var(--purple);
	color: #fff;
}
.btn-pill-xs-accept:hover { background-color: var(--purple-dark); }
.btn-pill-xs-refuse {
	background-color: var(--bg-surface-raised);
	color: var(--text-secondary);
}
.btn-pill-xs-refuse:hover { background-color: var(--border-subtle-strong); }
.btn-pill-xs-cancel {
	background-color: rgba(224,155,60,.16);
	color: #e0b25f;
}
.btn-pill-xs-cancel:hover { background-color: rgba(224,155,60,.26); }

/* Etat "en cours" générique pour tout bouton/tuile déclenchant un appel AJAX :
   masque le contenu et affiche un spinner, sans changer la taille de l'élément */
.is-busy.is-busy {
	position: relative;
	color: transparent !important;
	pointer-events: none;
	opacity: .85;
}
.is-busy::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid rgba(255,255,255,.55);
	border-top-color: #fff;
	border-radius: 50%;
	animation: is-busy-spin .6s linear infinite;
}
/* Variante pour boutons à fond clair (texte sombre) */
.is-busy.is-busy-dark::after {
	border-color: rgba(53,38,65,.2);
	border-top-color: var(--dark-purple);
}
@keyframes is-busy-spin {
	to { transform: rotate(360deg); }
}

/* Onglets segmentés (page Collaborations : Demandes / Acceptées / Réalisées) */
.segmented-tabs {
	display: flex;
	gap: 4px;
	background: var(--bg-page);
	border-radius: 999px;
	padding: 4px;
	margin: 12px;
}
.segmented-tabs a {
	flex: 1;
	text-align: center;
	padding: .55rem .5rem;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 700;
	color: var(--text-secondary);
	text-decoration: none !important;
	white-space: nowrap;
}
.segmented-tabs a.active {
	background: var(--purple);
	color: #fff !important;
	box-shadow: 0 2px 6px rgba(155,107,149,.35);
}

/* Modal plein écran (ex: demandes de collaboration depuis le profil) */
.fullpage-modal {
	position: fixed;
	inset: 0;
	background: var(--bg-surface);
	z-index: 1090;
	display: none;
	flex-direction: column;
}
.fullpage-modal.show {
	display: flex;
}
/* Une modale Bootstrap (ex: "Ajouter une photo") ouverte par-dessus un fullpage-modal
   (ex: la modale Collaborations) doit rester au premier plan : Bootstrap les pose par
   défaut à 1050/1040, sous le fullpage-modal (1090). */
.modal {
	z-index: 1110;
}
.modal-backdrop {
	z-index: 1100;
}
.fullpage-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	flex-shrink: 0;
}
.fullpage-modal-header h1 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
}
.fullpage-modal-close {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--bg-page);
	border: none;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.fullpage-modal-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding-bottom: 24px;
}
/* La modale Collaborations liste des .list-row (fond blanc) : sur le fond blanc par défaut
   du fullpage-modal elles se fondaient dedans. On lui donne le même gris clair que le reste
   de l'appli pour que les cartes ressortent exactement comme sur Messages/Notifications. */
#RequestsModal .fullpage-modal-body {
	background-color: var(--bg-page);
}

/* Spinner affiché le temps que la visionneuse photo (ShowPicture) charge ses données */
.picture-viewer-spinner {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	border: 3px solid rgba(255,255,255,.25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: is-busy-spin .7s linear infinite;
	z-index: 3;
}
.fullpage-modal.loading .picture-viewer-spinner {
	display: block;
}
.fullpage-modal.loading .image-container img {
	opacity: 0;
}

/* Visionneuse photo (picture.php) : bandeau équipe + fermeture en haut, likes compacts
   (cœur + nombre) en bas — deux vrais bandeaux (pas des overlays), la photo respire en
   noir pur entre les deux, comme les cartes du Wall/Search. */
.picture-viewer-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	background: #000;
	flex-shrink: 0;
}
.picture-viewer-crew {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	flex: 1 1 auto;
	min-width: 0;
}
.picture-viewer-crew::-webkit-scrollbar { display: none; }
.picture-viewer-likes {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	background: #000;
	flex-shrink: 0;
}
.picture-viewer-likes .heart {
	font-size: 1.4rem;
	cursor: pointer;
	color: var(--text-secondary);
}
.picture-viewer-likes .fas.heart {
	color: var(--danger);
}
.picture-viewer-likes span {
	font-size: .85rem;
	color: var(--text-secondary);
}
.picture-viewer-likes strong {
	color: var(--text-primary);
}
/* Actions réservées à l'équipe de la photo (télécharger / publier), à l'opposé des likes */
.picture-viewer-crew-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}
.picture-viewer-action-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: var(--bg-page);
	color: var(--text-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .92rem;
	text-decoration: none !important;
	cursor: pointer;
	flex-shrink: 0;
}
.picture-viewer-action-btn.picture-viewer-action-btn-primary {
	background: var(--purple);
	color: #fff;
}
.picture-viewer-action-btn.disabled {
	opacity: .45;
	pointer-events: none;
	cursor: default;
}

.requests-tab-panel {
	display: none;
}
.requests-tab-panel.active {
	display: block;
}

/* Page Recherche */
.app-header-search {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1030;
	height: 52px;
	background: var(--bg-page);
	border-bottom: 1px solid var(--border-subtle-strong);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 14px;
}
.app-header-search .search-input-wrap {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--bg-page);
	border-radius: 999px;
	padding: .5rem .9rem;
	color: var(--text-secondary);
}
.app-header-search .search-input-wrap i {
	font-size: .82rem;
}
.app-header-search input {
	border: none;
	background: transparent;
	outline: none;
	flex: 1;
	font-size: .9rem;
	color: var(--text-primary);
	min-width: 0;
}
.app-header-search input::placeholder { color: var(--text-secondary); }
.app-header-search-cancel {
	background: none;
	border: none;
	color: var(--purple);
	font-weight: 700;
	font-size: .88rem;
	padding: 4px 2px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Menu "..." (paramètres) */
.settings-sheet .modal-content {
	border-radius: 20px;
	border: none;
	overflow: hidden;
}
.settings-menu-item {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 14px 20px;
	background: none;
	border: none;
	color: var(--text-primary) !important;
	text-decoration: none !important;
	text-align: left;
	font-family: inherit;
	font-weight: 600;
	font-size: .92rem;
	cursor: pointer;
}
.settings-menu-item:hover {
	background: var(--bg-surface-raised);
}
.settings-menu-item i {
	width: 20px;
	text-align: center;
	color: var(--purple);
}
.settings-menu-item.danger {
	color: var(--danger) !important;
}
.settings-menu-item.danger i {
	color: var(--danger);
}
.settings-menu-cancel {
	display: block;
	width: calc(100% - 28px);
	margin: 8px 14px 14px;
}

/* Formulaires (édition profil, mot de passe, inscription...) */
.form-field {
	margin-bottom: 14px;
	padding: 0 16px;
}
.form-field label {
	display: block;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--text-tertiary);
	margin-bottom: 4px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="password"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
	width: 100%;
	border: none;
	background: var(--bg-surface-raised);
	border-radius: 12px;
	padding: .65rem .9rem;
	font-size: .9rem;
	color: var(--text-primary);
	font-family: inherit;
	resize: vertical;
}
/* <input type="date"> garde une partie de son chrome natif (icône calendrier) qui impose une
   hauteur de contenu minimale légèrement plus grande que les autres champs, même avec un padding,
   une font-size et un line-height strictement identiques (vérifié : ~2px d'écart malgré ça, sur
   Chromium comme WebKit) — d'où une hauteur visuelle différente malgré width:100% partagé.
   -webkit-appearance:none limite déjà l'écart de largeur ; on fixe aussi une hauteur explicite
   commune (au lieu de laisser le padding seul la déterminer) pour égaliser le reste au pixel près. */
.form-field input[type="date"] {
	-webkit-appearance: none;
	appearance: none;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="password"],
.form-field input[type="date"],
.form-field select {
	height: 44px;
}
/* Le <select> Bootstrap (.form-control) impose un fond blanc par défaut : on le remplace par
   un chevron SVG clair pour rester lisible sur le fond sombre de .form-field select ci-dessus. */
.form-field select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23f2f0f3' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .9rem center;
	padding-right: 2.2rem;
}
.form-field select:invalid {
	color: var(--text-tertiary);
}
.form-field select:focus {
	background-color: var(--bg-surface-raised);
	color: var(--text-primary);
	outline: none;
	box-shadow: none;
}
/* L'icône native du <input type="date"> est noire par défaut, invisible sur fond sombre. */
.form-field input[type="date"]::-webkit-calendar-picker-indicator {
	filter: invert(1);
}
/* La liste déroulante ouverte est rendue par l'OS dans la plupart des navigateurs (ignore le
   CSS) ; ceci ne s'applique que là où le moteur le permet (Firefox notamment). */
.form-field select option {
	background-color: var(--bg-surface-raised);
	color: var(--text-primary);
}
.form-field input:disabled {
	color: var(--text-tertiary);
}
.form-field input:focus,
.form-field textarea:focus {
	outline: 2px solid var(--purple);
	outline-offset: -1px;
}
/* Retour visuel de la validation JS (inscription notamment : disponibilité du nom d'utilisateur,
   checkRegistrationForm()) — sans ceci les champs .is-valid/.is-invalid de Bootstrap ne se
   distinguent pas du fond sombre de .form-field input. */
.form-field input.is-valid {
	outline: 2px solid #4ade80;
	outline-offset: -1px;
}
.form-field input.is-invalid {
	outline: 2px solid var(--danger);
	outline-offset: -1px;
}
/* Plusieurs champs sur une même ligne (ex : jour/mois/année de naissance, prénom/nom à
   l'inscription) — un seul .form-field englobant (largeur totale alignée sur les autres
   champs), les enfants se partagent l'espace avec un gap réduit. */
.form-field-row {
	display: flex;
	gap: 8px;
}
.form-field-row select,
.form-field-row > div {
	flex: 1;
	min-width: 0;
}

.avatar-edit-wrap {
	position: relative;
	width: 84px;
	height: 84px;
	margin: 18px auto 8px;
}
.avatar-edit-wrap img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.avatar-edit-badge {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--purple);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .72rem;
	border: 2px solid #fff;
	cursor: pointer;
}

/* Zone de sélection de fichier (modal "Ajouter une photo" d'une collaboration) */
.add-photo-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 2px dashed var(--border-subtle-strong);
	border-radius: 16px;
	background: var(--bg-surface-raised);
	color: var(--text-tertiary);
	font-size: .82rem;
	cursor: pointer;
	overflow: hidden;
}
.add-photo-dropzone img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.add-photo-dropzone i {
	font-size: 1.8rem;
	margin-bottom: 6px;
	display: block;
}

/* Aperçu multi-photos (modal "Nouvelle collaboration") */
.add-collab-preview-list {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 6px;
	width: 100%;
	height: 100%;
	padding: 10px;
	overflow-y: auto;
}
.add-collab-preview-thumb {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 10px;
	flex-shrink: 0;
}
.add-photo-dropzone .add-collab-preview-thumb {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 10px;
	flex-shrink: 0;
}

/* Barre d'action fixe en bas du modal "Nouvelle collaboration" (fullpage-modal) : reste
   toujours visible pendant que .fullpage-modal-body défile, contrairement à un modal-footer
   Bootstrap classique qui aurait défilé avec le reste du formulaire. */
.add-collab-footer {
	flex-shrink: 0;
	padding: 14px 16px;
	background: var(--bg-surface);
	border-top: 1px solid var(--bg-page);
}

/* Champ de recherche générique dans une modale (ex: filtrer les collaborateurs à tagger) */
.modal-search-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--bg-page);
	border-radius: 999px;
	padding: .5rem .9rem;
	color: var(--text-secondary);
	margin-bottom: 8px;
}
.modal-search-wrap i {
	font-size: .82rem;
}
.modal-search-wrap input {
	border: none;
	background: transparent;
	outline: none;
	flex: 1;
	font-size: .9rem;
	color: var(--text-primary);
	min-width: 0;
}
.modal-search-wrap input::placeholder {
	color: var(--text-secondary);
}

/* Liste à cocher des collaborateurs à tagger (modal "Nouvelle collaboration") */
.collab-tag-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: 180px;
	overflow-y: auto;
	padding: 0 16px;
}
.collab-tag-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 12px;
	background: var(--bg-surface-raised);
	cursor: pointer;
	margin: 0;
}
.collab-tag-row input[type="checkbox"],
.collab-tag-row input[type="radio"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: var(--purple);
}
.collab-tag-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.collab-tag-name {
	font-weight: 600;
	font-size: .85rem;
	color: var(--text-primary);
}

.style-chip-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 16px;
}
.style-chip input[type="checkbox"],
.style-chip input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.style-chip label {
	display: inline-block;
	padding: .4rem .9rem;
	border-radius: 999px;
	background: var(--bg-surface-raised);
	color: var(--text-secondary);
	font-size: .8rem;
	font-weight: 600;
	cursor: pointer;
}
.style-chip input:checked + label {
	background: var(--purple);
	color: #fff;
}

/* Admin */
.admin-stat-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 14px 14px 0;
}
.admin-stat-card {
	background: var(--bg-surface);
	border-radius: 14px;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
	padding: 12px 4px;
	text-decoration: none !important;
	display: block;
	text-align: center;
}
.admin-stat-card .stat-value {
	display: block;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--text-primary);
}
.admin-stat-card .stat-label {
	display: block;
	font-size: .66rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--text-tertiary);
	margin-top: 2px;
}
.admin-chart-card {
	background: var(--bg-surface);
	border-radius: 14px;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
	padding: 14px;
	margin: 14px;
}
.admin-chart-card p {
	text-align: center;
	color: var(--text-secondary);
	font-size: .82rem;
	margin: 0 0 8px;
}
.status-badge {
	display: inline-block;
	padding: .3rem .75rem;
	border-radius: 999px;
	font-size: .64rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	white-space: nowrap;
}
.status-badge-online, .status-badge-confirmed { background: rgba(46,158,91,.18); color: #4ade80; }
.status-badge-new { background: rgba(224,155,60,.18); color: #e0b25f; }
.status-badge-genuine { background: rgba(155,107,149,.22); color: var(--purple-light); }
.status-badge-blacklisted { background: var(--bg-surface-raised); color: var(--text-primary); }
.status-badge-deleted { background: rgba(192,41,63,.22); color: #f06b7f; }

/* Pages légales */
.legal-content {
	padding: 18px 20px 40px;
}
.legal-content h2 {
	font-size: .92rem;
	font-weight: 700;
	color: var(--purple);
	margin: 22px 0 8px;
}
.legal-content h2:first-child {
	margin-top: 0;
}
.legal-content p {
	font-size: .88rem;
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 10px;
	word-wrap: break-word;
}

/* Grille des collaborateurs réalisés (onglet Collabs du profil) */
.collab-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 10px 14px;
}
.collab-card {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: var(--bg-surface);
	box-shadow: 0 2px 8px rgba(0,0,0,.1);
	text-decoration: none !important;
	color: inherit;
}
.collab-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}
.collab-card p {
	margin: 0;
	padding: 6px 4px;
	text-align: center;
	font-size: .78rem;
	font-weight: 600;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Dossiers de shootings (page collaboration/<username>/) : un dossier cliquable par séance,
   plutôt que toutes les photos de toutes les séances affichées d'un coup sur une seule page. */
.collab-folder-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	padding: 14px 16px;
}
.collab-folder-card {
	display: block;
	text-decoration: none !important;
	color: inherit;
}
.collab-folder-cover {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: var(--bg-surface);
	box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.collab-folder-cover img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	filter: brightness(.82);
}
.collab-folder-icon {
	position: absolute;
	top: 8px;
	left: 10px;
	color: #fff;
	font-size: 1.1rem;
	text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.collab-folder-title {
	margin: 8px 0 0;
	font-size: .84rem;
	font-weight: 700;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.collab-folder-meta {
	margin: 2px 0 0;
	font-size: .74rem;
	color: var(--text-tertiary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* Dossier de shooting confirmé mais pas encore photographié : même langage visuel que
   .photo-row .photo-tile-empty, décliné au format carré de .collab-folder-cover. */
.collab-folder-cover-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background-color: var(--bg-page);
	color: var(--text-tertiary);
	font-size: 1.8rem;
}
.collab-folder-pending {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--text-tertiary);
}

/* Onglet Followers du profil — recherche, tri, style Instagram */
.follower-sort-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px 2px;
	font-size: .84rem;
	color: var(--text-secondary);
}
.follower-sort-bar strong {
	color: var(--text-primary);
}
.follower-sort-bar i {
	cursor: pointer;
	padding: 6px;
	color: var(--text-secondary);
}
.list-row-avatar-wrap.follower-ring {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	padding: 2px;
	background: var(--purple);
	display: flex;
	align-items: center;
	justify-content: center;
}
.list-row-avatar-wrap.follower-ring.follower-ring-model {
	background: var(--pink);
}
.list-row-avatar-wrap.follower-ring .list-row-avatar {
	width: 100%;
	height: 100%;
	border: 2px solid var(--bg-surface);
}
/* Rangée "à la une" — 3 photos fixes, pas de défilement (hero de profil) */
.photo-row {
	display: flex;
	gap: 10px;
	padding: 14px 16px;
	background-color: var(--bg-surface);
}

/* Bascule de gris pile au milieu vertical du bouton (clair au-dessus, gris standard en dessous) */
.cta-bg-split {
	background: linear-gradient(to bottom, var(--bg-surface) 0%, var(--bg-surface) 50%, var(--bg-page) 50%, var(--bg-page) 100%);
}
.photo-row .photo-tile {
	position: relative;
	flex: 1 1 0;
	aspect-ratio: 3 / 4;
	border-radius: 20px;
	overflow: hidden;
	background-color: var(--bg-surface-raised);
	cursor: pointer;
}
.photo-row .photo-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.photo-row .photo-tile-empty {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--bg-page);
	color: var(--text-tertiary);
	font-size: 1.6rem;
}
.photo-tile-edit {
	position: absolute;
	bottom: 6px;
	right: 6px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(27,26,31,.78);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .74rem;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
	cursor: pointer;
}

/* Filtres par rôle au-dessus de la grille "explorer" (page Recherche) */
.explore-filters {
	display: flex;
	gap: 8px;
	padding: 10px 16px;
	overflow-x: auto;
}
.explore-filters::-webkit-scrollbar { display: none; }
.explore-filter-pill {
	flex-shrink: 0;
	border: none;
	background: var(--bg-page);
	color: var(--text-primary);
	font-weight: 600;
	font-size: .82rem;
	padding: .5rem 1rem;
	border-radius: 999px;
	white-space: nowrap;
}
.explore-filter-pill.active {
	background: var(--purple);
	color: #fff;
}

/* Rounded photo grid */
.photo-grid-rounded {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 4px 16px 0;
}
.photo-grid-rounded .photo-tile {
	position: relative;
	width: 100%;
	padding-top: 100%;
	border-radius: 18px;
	overflow: hidden;
	background-color: var(--bg-surface-raised);
	cursor: pointer;
}
.photo-grid-rounded .photo-tile img {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}

/* Une collaboration = une séance de shooting (photos groupées par date de prise de vue) ;
   chaque séance a sa propre grille, séparée visuellement des autres par un liseré. */
.collab-session {
	padding-top: 14px;
	border-top: 1px solid var(--bg-page);
}
.collab-session:first-child {
	padding-top: 0;
	border-top: none;
}
.collab-session-header {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 0 16px 8px;
	font-weight: 700;
	font-size: .9rem;
	color: var(--text-primary);
}
/* Tuile "Ajouter des photos" en premier dans la grille du dossier (session.php) — la taille
   carrée vient déjà de .profile-feed-grid .photo-tile (padding-top:100%) ; comme il n'y a pas
   d'image ici, l'icône est centrée en absolu de la même façon qu'une .photo-tile img le serait. */
.photo-tile-add {
	border: 2px dashed var(--border-subtle-strong);
	color: var(--text-tertiary);
	text-decoration: none !important;
}
.photo-tile-add i {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 1.8rem;
}
.photo-tile-add:hover {
	color: var(--text-secondary);
	border-color: var(--purple);
}
/* Grille "masonry" (photos d'une collaboration) : chaque photo garde son ratio naturel
   au lieu d'être recadrée en carré. La répartition dans les colonnes (toujours la plus
   courte en premier, comme Pinterest) est calculée en JS — voir layoutMasonry() ;
   ces règles ne font que mettre en page les colonnes une fois qu'il les a créées. */
.photo-grid-masonry {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 4px 16px 0;
}
.photo-grid-masonry-col {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 0;
	min-width: 0;
}
.photo-grid-masonry .photo-tile {
	position: relative;
	width: 100%;
	border-radius: 18px;
	overflow: hidden;
	background-color: var(--bg-surface-raised);
	cursor: pointer;
}
.photo-grid-masonry .photo-tile img {
	display: block;
	width: 100%;
	height: auto;
}

/* Variante "explorer" (page Recherche) : traits fins entre les photos au lieu d'un
   grand espace blanc, colonnes plus resserrées */
#explorer.photo-grid-masonry {
	gap: 2px;
	padding: 2px 2px 0;
}
#explorer.photo-grid-masonry .photo-grid-masonry-col {
	gap: 2px;
}
#explorer.photo-grid-masonry .photo-tile {
	border-radius: 0;
	border: 1px solid #000;
}

/* Petit badge de statut (photo en attente/refusée) posé dans un coin de la tuile,
   au lieu de couvrir la moitié de la photo avec un bandeau de texte */
.photo-tile-status {
	position: absolute;
	bottom: 6px;
	left: 6px;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 4px 6px;
	border-radius: 999px;
	font-size: .62rem;
	font-weight: 700;
	color: #fff;
	background: rgba(27,26,31,.75);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.photo-tile-status-refused {
	background: rgba(224,48,74,.85);
}

/* Étiquette posée sur une photo à la une provisoire (téléchargée en l'absence
   de photo de collaboration), pour la distinguer d'une vraie photo lindividu.net */
.photo-tile-badge {
	position: absolute;
	top: 6px;
	left: 6px;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: .62rem;
	font-weight: 700;
	color: #fff;
	background: var(--purple);
}

/* Bio */
.section-bio {
	padding: 16px 24px 4px;
	text-align: center;
	color: var(--text-secondary);
	font-size: .9rem;
	line-height: 1.5;
}

.section-bio-empty {
	color: var(--text-tertiary);
	font-style: italic;
}

/* Fil du profil — grille façon Instagram (photos carrées, jointives) */
.profile-feed-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	margin-top: 2px;
}
.profile-feed-grid .photo-tile {
	position: relative;
	width: 100%;
	padding-top: 100%;
	background-color: var(--bg-surface-raised);
	cursor: pointer;
}
.profile-feed-grid .photo-tile img {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.profile-feed-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 48px 24px;
	color: var(--text-tertiary);
	margin-top: 18px;
	border-top: 1px solid var(--border-subtle-strong);
}
/* Quand rien ne précède le bloc vide dans son propre conteneur, ce trait n'a rien à séparer —
   il ne fait alors que dédoubler la bordure déjà posée par .app-header juste au-dessus. */
.profile-feed-empty:first-child {
	border-top: none;
}
.profile-feed-empty i {
	font-size: 2.2rem;
	margin-bottom: 10px;
}
.profile-feed-empty p {
	font-size: .82rem;
	margin: 0;
}

/* Sélecteur de photo à la une (modal) */
.featured-picker-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	max-height: 60vh;
	overflow-y: auto;
}
.featured-picker-grid .photo-tile {
	position: relative;
	width: 100%;
	padding-top: 100%;
	border-radius: 10px;
	overflow: hidden;
	background-color: var(--bg-surface-raised);
	cursor: pointer;
}
.featured-picker-grid .photo-tile img {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.featured-picker-grid .photo-tile.is-taken {
	opacity: .35;
	cursor: not-allowed;
	pointer-events: none;
}
.featured-picker-grid .photo-tile.is-taken::after {
	content: "Déjà utilisée";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4px;
	font-size: .68rem;
	font-weight: 700;
	color: #fff;
	background: rgba(27,26,31,.55);
}

/* Bottom nav polish */
nav.navbar.fixed-bottom {
	box-shadow: 0 -2px 10px rgba(0,0,0,.08);
	border-top: 1px solid var(--bg-page);
	overflow: visible;
}
/* Barre de nav flottante façon Instagram : décollée du bord, arrondie, translucide/floutée
   plutôt qu'un bandeau plein bord à bord. Centrée et plafonnée en largeur pour rester une
   pilule raisonnable même sur un écran large (le contenu, lui, est déjà plafonné à 960px). */
.app-bottom-nav {
	position: fixed;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	width: calc(100% - 32px);
	max-width: 420px;
	height: 58px;
	border-radius: 999px;
	background: rgba(38, 36, 43, .78);
	backdrop-filter: blur(18px) saturate(150%);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	box-shadow: 0 8px 28px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
	z-index: 1030;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
}
/* Icône de nav — ancre pleine hauteur, contenu parfaitement centré */
.nav-link-icon {
	position: relative;
	height: 100%;
	min-width: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary) !important;
	font-size: 1.85rem;
	text-decoration: none !important;
}
.nav-avatar-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--border-subtle-strong);
}

/* Bulles de chat (Messages) */
.chat-bubble {
	border-radius: 18px !important;
}
/* Message système du fil de discussion (séance confirmée/terminée/annulée, collaboration
   acceptée) : centré et discret, façon "X a fait Y" d'Instagram/WhatsApp, plutôt qu'une bulle
   envoyée/reçue — ce ne sont pas des messages d'une des deux personnes, mais un fait objectif. */
.chat-system-message {
	text-align: center;
	font-size: .74rem;
	color: var(--text-tertiary);
	margin: 4px auto 14px;
	padding: 0 24px;
	max-width: 90%;
}
.chat-system-message .chat-time {
	display: block;
	margin-top: 2px;
	opacity: .8;
}

/* ==========================================================================
   Header d'appli — clair, style Instagram (remplace les barres violettes pleines)
   ========================================================================== */

.app-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1030;
	height: 52px;
	background: var(--bg-page);
	border-bottom: 1px solid var(--border-subtle-strong);
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	align-items: center;
	padding: 0 4px;
	transition: transform .25s ease;
}
.app-header.app-header-hidden {
	transform: translateY(-100%);
}
.app-header.app-header-with-count {
	grid-template-columns: 44px 1fr auto;
}
.app-header-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-primary);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* Titre aligné à gauche façon en-tête de modale (ex: "Collaborations"), pour les pages
   qui n'ont pas besoin d'un titre centré entre deux icônes (Messages, Notifications) */
/* En-tête sans icônes (Messages, Notifications) : le titre démarre au vrai bord gauche,
   exactement comme "Collaborations" dans la modale (padding 16px), au lieu d'être aligné
   à gauche à l'intérieur d'une colonne de grille qui réserve encore 44px pour une icône. */
.app-header.app-header-title-only {
	display: flex;
	align-items: center;
	padding: 0 16px;
}
.app-header-title-only .app-header-title {
	text-align: left;
	font-size: 1.1rem;
}
.app-header-user {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.app-header-user img {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 10px;
	flex-shrink: 0;
	border: 2px solid var(--purple);
}
.app-header-user span {
	font-weight: 700;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.app-header-user-count {
	flex-shrink: 0;
	font-size: .72rem;
	font-weight: 600;
	color: var(--text-tertiary);
	white-space: nowrap;
	padding-right: 10px;
}
.app-header-btn {
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	color: var(--text-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.05rem;
	text-decoration: none !important;
	border-radius: 50%;
	padding: 0;
	margin: 0 2px;
	justify-self: center;
}
.app-header-btn:hover,
.app-header-btn:focus,
.app-header-btn:active {
	background: var(--bg-surface-raised);
	color: var(--text-primary);
}
.app-header-btn:disabled {
	color: var(--text-tertiary);
	pointer-events: none;
}
/* Modales — coins arrondis cohérents avec le reste de l'appli.
   Bootstrap pose un fond blanc par défaut sur .modal-content : jamais recouvert lors du
   passage au thème sombre, contrairement à .fullpage-modal (qui a son propre fond dès le
   départ) — laissant plusieurs modales (Réglages, sélecteur de photo à la une, publier une
   photo, proposer un shooting...) blanches avec du texte clair conçu pour un fond sombre,
   donc illisible. */
.modal-content {
	border-radius: 18px;
	border: none;
	overflow: hidden;
	background: var(--bg-surface);
	color: var(--text-primary);
}
.modal-header {
	border-bottom: none;
}
.modal-footer {
	border-top: none;
}
.close {
	color: var(--text-primary);
	text-shadow: none;
	opacity: .6;
}
.close:hover,
.close:focus {
	color: var(--text-primary);
	opacity: .9;
}

/* ==========================================================================
   Rangées de liste réutilisables — Messages, Notifications
   ========================================================================== */

.list-row {
	display: flex;
	align-items: center;
	width: calc(100% - 24px);
	margin: 0 12px 10px;
	padding: 10px 14px;
	background-color: var(--bg-surface);
	border: none;
	border-radius: 16px;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
	text-align: left;
	text-decoration: none !important;
	color: inherit;
	font-family: inherit;
	cursor: pointer;
}
/* Une .request-card peut contenir 1 à 3 blocs (list-row, puis éventuellement attachments
   et/ou shoot-status) : l'espacement entre deux cartes doit être uniforme (10px, comme un
   .list-row isolé dans Notifications/Messages) quel que soit le nombre de blocs qu'elle
   contient — c'est la carte elle-même qui porte cette marge, jamais ses enfants. */
.request-card {
	margin-bottom: 10px;
}
/* Photos de référence jointes à une demande de collaboration en attente : présentées comme
   une extension de la carte .list-row (même fond, coins raccordés, pas d'espace entre
   les deux) plutôt qu'une rangée de miniatures flottant seule sous la carte. */
.request-card .list-row {
	margin-bottom: 0;
	border-radius: 16px;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.request-card .list-row:not(:last-child) {
	border-radius: 16px 16px 0 0;
	box-shadow: none;
}
.request-attachments {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	margin: 0 12px;
	padding: 10px 14px;
	background-color: var(--bg-surface);
	border-radius: 0 0 16px 16px;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.request-attachments:not(:last-child) {
	border-radius: 0;
	box-shadow: none;
}
.request-attachment-thumb {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}
/* Statut de shooting sous une collaboration acceptée : toujours le dernier bloc de la
   carte .request-card, donc toujours le "capuchon" arrondi/ombré du bas. */
.shoot-status {
	margin: 0 12px;
	padding: 10px 14px;
	background-color: var(--bg-surface);
	border-radius: 0 0 16px 16px;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.shoot-status-line {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .78rem;
	margin: 0;
}
.shoot-status-confirmed {
	color: #4ade80;
	font-weight: 600;
}
.shoot-status-waiting {
	color: var(--text-tertiary);
}
.shoot-status-pending {
	justify-content: space-between;
	color: var(--text-primary);
	font-weight: 600;
}
.shoot-status-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}
.list-row-avatar-wrap {
	position: relative;
	flex-shrink: 0;
	margin-right: 12px;
}
.list-row-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.list-row-avatar-badge {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--purple);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .55rem;
	box-shadow: 0 0 0 2px var(--bg-surface);
}
.list-row-avatar-badge.badge-heart { background: var(--danger); }
.list-row-avatar-badge.badge-danger { background: var(--danger); }
/* Sens d'une demande de collaboration en attente (onglet Demandes) : flèche haut = envoyée
   par moi (fond mauve par défaut de .list-row-avatar-badge), flèche bas = reçue (fuchsia). */
.list-row-avatar-badge.badge-incoming { background: var(--pink); }
.list-row-body {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.35;
}
.list-row-body h6,
.list-row-body p {
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.list-row-body h6 {
	font-weight: 700;
	color: var(--text-primary);
	font-size: .95rem;
}
.list-row-body p {
	font-size: .82rem;
	color: var(--text-secondary);
	white-space: normal;
}
.list-row-body p a {
	color: var(--text-primary);
	font-weight: 700;
	text-decoration: none;
}
.list-row-time {
	display: block;
	font-size: .72rem;
	color: var(--text-tertiary);
	margin-top: 2px;
}
.list-row-meta {
	flex-shrink: 0;
	margin-left: 10px;
	text-align: right;
}
.list-row-thumb {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	object-fit: cover;
	display: block;
}
/* Colonne de droite d'une séance à venir (boutons annuler/reprogrammer) — .list-row-actions
   garde son margin-left pensé pour un voisin de gauche, qu'on annule ici puisqu'elle est
   seule dans cette colonne déjà alignée à droite. */
.shoot-upcoming-meta {
	display: flex;
	align-items: flex-end;
}
.shoot-upcoming-meta .list-row-actions {
	margin-left: 0;
}
/* Lieu + date d'une séance à venir, en vert sous le sexe/âge — .list-row-body p impose déjà
   une couleur par défaut de même spécificité (0,0,2,0) qu'un simple .shoot-status-confirmed
   (0,0,1,0), donc sans le doublement de classe ici le vert perdrait la cascade. */
.list-row-body p.shoot-status-confirmed {
	color: #4ade80;
	font-weight: 600;
}
.list-row-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--purple);
}
.list-row.is-unread {
	box-shadow: 0 1px 4px rgba(0,0,0,.08), inset 3px 0 0 var(--purple);
}
.list-row.is-unread .list-row-body h6 {
	color: var(--purple);
}

/* Avatar des bulles de chat (Messages) */
.chat-avatar {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	display: block;
}

/* Mini-carte "moi" en haut de la sidebar desktop (Wall) */
.sidebar-user-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

/* Bulles de chat — expéditeur violet plein, destinataire clair */
.chat-bubble-sent {
	background: var(--purple) !important;
	color: #fff !important;
	border: none !important;
}
.chat-bubble-received {
	background: var(--bg-surface) !important;
	color: var(--text-primary) !important;
	border: none !important;
	box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.chat-time {
	display: block;
	font-size: .68rem;
	margin-top: 3px;
	opacity: .75;
}

/* Rapproche les bulles consécutives du même expéditeur (façon WhatsApp) */
.msg-row-sent + .msg-row-sent,
.msg-row-received + .msg-row-received {
	margin-top: -14px;
}

/* Accusés de lecture (icône dans .chat-time des messages envoyés) */
.chat-checkmark {
	font-size: .62rem;
	margin-left: 3px;
	opacity: .8;
}
.chat-checkmark.seen {
	color: #7dd3fc;
	opacity: 1;
}

/* Séparateur de date flottant entre deux jours de conversation */
.chat-date-sep {
	display: flex;
	justify-content: center;
	margin: 14px 0 10px;
}
.chat-date-sep span {
	background: rgba(255,255,255,.08);
	color: var(--text-secondary);
	font-size: .72rem;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
}

/* Indicateur "en train d'écrire..." */
.chat-typing-row {
	display: none;
}
.chat-typing-row.active {
	display: flex;
}
.chat-typing-bubble {
	display: flex;
	align-items: center;
	gap: 4px;
	padding-top: .6rem !important;
	padding-bottom: .6rem !important;
}
.chat-typing-bubble span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--text-secondary);
	display: inline-block;
	animation: chat-typing-bounce 1.2s infinite ease-in-out;
}
.chat-typing-bubble span:nth-child(2) { animation-delay: .15s; }
.chat-typing-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-typing-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: .5; }
	30% { transform: translateY(-4px); opacity: 1; }
}

/* Barre de saisie du chat */
.chat-input-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: var(--bg-surface);
	border-top: 1px solid var(--bg-page);
}
.chat-input-bar input {
	flex: 1 1 auto;
	border: 1px solid var(--border-subtle-strong);
	border-radius: 999px;
	padding: .55rem 1rem;
	background: var(--bg-surface-raised);
	color: var(--text-primary);
}
.chat-input-bar input::placeholder {
	color: var(--text-tertiary);
}
.chat-input-bar input:focus {
	outline: none;
	border-color: var(--purple);
	background: var(--bg-surface);
}
.chat-send-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--purple);
	color: #fff;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	flex-shrink: 0;
}
.chat-input-locked {
	width: 100%;
	margin: 0;
	padding: .55rem 1rem;
	text-align: center;
	font-size: .82rem;
	color: var(--text-tertiary);
}

/* ==========================================================================
   Fil d'actualité (Wall/Home) — carte façon Instagram
   ========================================================================== */

/* Fond noir pur pour toute la page (pas juste les cartes/tuiles), pour que les espaces
   entre les photos se fondent avec elles au lieu de laisser voir le gris anthracite du
   reste de l'app. Utilisé sur Wall et Search. */
.black-main {
	background: #000;
	/* Le body réserve 55px (header) + 60px (nav) en padding fixe (voir gabarit.php) ;
	   sans ce plancher, une page dont le contenu est plus court que l'écran (premier
	   chargement, peu de résultats) laisse voir l'anthracite du body sous les cartes. */
	min-height: calc(100vh - 115px);
}
/* Le padding fixe du body déborde toujours de quelques pixels sous main (l'espace
   réservé au nav ne correspond jamais exactement à sa hauteur réelle) : plutôt que de
   chercher une valeur pixel-perfect, on rend le body lui-même noir sur ces pages, pour
   qu'aucun reliquat d'anthracite ne puisse plus apparaître entre le contenu et le nav. */
body:has(.black-main) {
	background: #000;
}
/* Sur Search, la recherche textuelle affiche une liste de profils (même composant
   que Messages/Notifications) et non une grille de photos : elle doit rester sur
   l'anthracite standard, le noir pur étant réservé aux photos de la grille "explorer".
   Règle autonome sur #search-results (aucune dépendance à du JS ni à un rechargement
   de page) : elle s'applique dès que ce CSS est chargé, quel que soit l'état du reste
   de la page. */
#search-results {
	background: var(--bg-page);
	min-height: calc(100vh - 115px);
}
/* .profile-feed-empty a son propre trait de séparation (utile ailleurs, sous une liste
   sans bordure), mais juste sous .app-header-search qui a déjà la sienne, ça affichait
   deux barres l'une sous l'autre pour "Aucun résultat trouvé". */
#search-results > .profile-feed-empty {
	border-top: none;
}
/* Complément : quand le JS a bien basculé cette classe (page rechargée après la mise
   à jour), on recolore aussi le body entier pour supprimer le liseré noir résiduel de
   quelques pixels en haut/bas du panneau (même mécanisme que body:has(.black-main)
   ci-dessus). Doit rester déclarée après body:has(.black-main) pour la surclasser. */
body.search-active {
	background: var(--bg-page);
}

.feed-card {
	position: relative;
	background: #000;
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(0,0,0,.1);
	margin-bottom: 16px;
}
/* Bandeau du haut (photographe à gauche, modèle à droite) et du bas (likes à gauche,
   date à droite) sur fond noir, avec la photo qui respire entre les deux (marges noires
   au-dessus et en-dessous plutôt que collée aux bandeaux). */
.feed-card-top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
}
.feed-card-person {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	max-width: 46%;
	text-decoration: none !important;
}
.feed-card-person-right {
	flex-direction: row-reverse;
	text-align: right;
}
.feed-card-person-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.feed-card-person-text {
	min-width: 0;
	line-height: 1.2;
}
.feed-card-person-name {
	margin: 0;
	font-weight: 700;
	font-size: .84rem;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.feed-card-person-role {
	margin: 0;
	font-size: .62rem;
	font-weight: 700;
	color: rgba(255,255,255,.65);
	text-transform: uppercase;
	letter-spacing: .04em;
}
.feed-card-photo {
	position: relative;
	padding: 8px 0;
}
/* Grand cœur animé au double-clic sur la photo (voir heartbeat() dans le <script> du Wall) */
.feed-card-photo .heart {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-left: -40px;
	margin-top: -40px;
	color: #fff;
	display: block;
	opacity: .85;
	pointer-events: none;
	text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.feed-card-img {
	width: 100%;
	display: block;
	cursor: pointer;
}
/* Likes (cœur + nombre) à gauche, date à droite, en blanc sur fond noir */
.feed-card-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 14px 14px;
}
.feed-card-actions-left {
	display: flex;
	align-items: center;
	gap: 8px;
}
.feed-card-actions .heart {
	font-size: 1.4rem;
	cursor: pointer;
	color: rgba(255,255,255,.55);
}
.feed-card-actions .fas.heart {
	color: var(--danger);
}
.feed-card-likes {
	font-size: .85rem;
	color: #fff;
}
.feed-card-likes strong {
	color: #fff;
}
.feed-card-date {
	font-size: .78rem;
	font-weight: 600;
	color: rgba(255,255,255,.65);
}
.feed-card-crew-item {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle-strong);
	box-shadow: 0 2px 6px rgba(0,0,0,.07);
	border-radius: 999px;
	padding: 3px 16px 3px 3px;
	text-decoration: none !important;
	color: inherit;
	transition: box-shadow .15s ease;
}
.feed-card-crew-item img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 3px var(--border-subtle-strong);
}
.feed-card-crew-item.crew-role-photographer img {
	box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 3px var(--purple);
}
.feed-card-crew-item.crew-role-model img {
	box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 3px var(--pink);
}
.feed-card-crew-item .crew-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.feed-card-crew-item .crew-name {
	font-weight: 700;
	font-size: .78rem;
	color: var(--text-primary);
	white-space: nowrap;
}
.feed-card-crew-item .crew-role {
	font-size: .64rem;
	color: var(--text-tertiary);
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.picture-viewer-crew .feed-card-crew-item .crew-role {
	font-size: .54rem;
}