/* Pour la vie — design system MVP.
   Direction : flat, épuré, premium discret, catholique contemporain.
   Ivoire, encre, bleu marial profond, or discret, sobriété. */

:root {
  --background: #FBFAF6;
  --foreground: #16202B;
  --muted: #F1EEE7;
  --muted-foreground: #6B7280;
  --primary: #223E63;         /* bleu marial du logo */
  --primary-deep: #1A2F4C;
  --primary-foreground: #FFFFFF;
  --secondary: #ECEEF3;
  --secondary-foreground: #1E1E1E;
  --accent: #B08A4F;          /* or discret */
  --rose: #E48BB2;            /* rose du logo, en touche */
  --rose-soft: #F6E4EC;
  --accent-foreground: #171717;
  --success: #3F6B4E;
  --danger: #B0453B;
  --border: #E7E3D9;
  --hairline: rgba(34, 62, 99, .1);
  --card: #FFFFFF;
  --card-foreground: #16202B;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(16,32,39,.05);
  --shadow-md: 0 10px 30px -12px rgba(16,32,39,.18);
  --shadow-lg: 0 24px 60px -18px rgba(16,32,39,.28);
  --glass-bg: rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.55);
  --glass-blur: saturate(180%) blur(20px);
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-brand: 'Cormorant Garamond', Georgia, serif;
  --font-round: 'Nunito', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Garde-fou anti-défilement horizontal — MOBILE UNIQUEMENT. En desktop, poser overflow-x sur
   html/body change la racine de défilement : `body.modal-open{overflow:hidden}` ne masque alors
   plus la scrollbar, et le backdrop d'une modale laisse une bande claire (la gouttière). En mobile,
   les scrollbars sont en overlay (0 px) → aucune bande, et le garde-fou protège du scroll latéral
   parasite sur les moteurs qui confinent mal le carrousel. */
@media (max-width: 899px) {
  html, body { overflow-x: hidden; overflow-x: clip; }
}

main { flex: 1; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.9rem; font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
.muted { color: var(--muted-foreground); font-size: .95rem; }
.center-text { text-align: center; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 460px; }

/* ---- Header (glass) ---- */

.site-header {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 50;
}
.page-landing .site-header { background: transparent; border-bottom-color: transparent; transition: background .3s ease, border-color .3s ease; }
.page-landing .site-header.scrolled { background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-bottom-color: var(--hairline); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  padding-bottom: 13px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo { display: block; height: 30px; width: auto; }
.brand-name {
  font-family: var(--font-brand);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .01em;
}
.header-nav { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ---- Boutons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 6px 18px -6px rgba(34,62,99,.55); }
.btn-primary:hover { background: var(--primary-deep); box-shadow: 0 10px 24px -8px rgba(34,62,99,.6); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--hairline); }
.btn-outline:hover { background: var(--muted); }
.btn-approve { background: var(--success); color: #fff; box-shadow: 0 6px 18px -6px rgba(63,107,78,.5); }
.btn-approve:hover { background: #355C43; }
.btn-reject { background: #C9772B; color: #fff; box-shadow: 0 6px 18px -6px rgba(201,119,43,.5); }
.btn-reject:hover { background: #B0691F; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--muted); }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }

/* Header transparent sur la landing (au-dessus du hero sombre) */
.page-landing .site-header:not(.scrolled) .brand-name { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.page-landing .site-header:not(.scrolled) .brand-logo { filter: drop-shadow(0 1px 6px rgba(0,0,0,.4)); }
.page-landing .site-header:not(.scrolled) .btn-ghost { color: rgba(255,255,255,.92); }
.page-landing .site-header:not(.scrolled) .btn-ghost:hover { background: rgba(255,255,255,.14); }
.page-landing .site-header:not(.scrolled) .btn-primary {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: none; color: #fff;
}
.page-landing .site-header:not(.scrolled) .btn-primary:hover { background: rgba(255,255,255,.26); }
/* Icône Instagram du header (même effet « glass » sur le hero que les boutons) */
.nav-ig { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; color: var(--primary); background: transparent; cursor: pointer; transition: opacity .15s ease; }
.nav-ig:hover { opacity: .65; }
.page-landing .site-header:not(.scrolled) .nav-ig { color: #fff; }

/* ---- Hero plein écran ---- */

.hero {
  position: relative;
  min-height: 100svh;
  margin-top: calc(-1 * (26px + 30px + 13px));  /* remonte sous le header transparent */
  padding: 0 0 44px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #2c3a4a;
  background-image:
    linear-gradient(160deg, #34506e 0%, #223e63 55%, #4a3a52 100%);
  background-size: cover;
  background-position: center 30%;
}
.hero-media.has-img {
  /* Cadrage sur le couple (à droite de la photo), pour rester visible même en portrait */
  /* le ?v force le rafraîchissement quand on remplace la photo (cache image = 7 j) — incrémenter à chaque swap */
  background-image: url('/assets/img/hero.jpg?v=2');
  /* Mobile/portrait : cadrage sur le couple, appuyé vers la femme (partie droite de la photo). */
  background-position: 91% center;
}
@media (min-width: 900px) {
  .hero-media.has-img { background-position: center 42%; }
}
.hero::after {  /* voile pour lisibilité du texte */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12,20,30,.82) 0%, rgba(12,20,30,.35) 42%, rgba(12,20,30,.15) 70%, rgba(12,20,30,.35) 100%);
}
.hero .container { width: 100%; }
.hero-inner { max-width: 640px; }
.hero-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero h1 {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0 0 .3em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero h1 em { font-style: italic; color: #fff; }
.hero-sub {
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  line-height: 1.45;
  color: rgba(255,255,255,.9);
  max-width: 520px;
  margin: 0 0 26px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions.center { margin-top: 30px; justify-content: center; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .btn-outline:hover { background: rgba(255,255,255,.2); }
.hero-note { margin-top: 22px; font-size: .9rem; color: rgba(255,255,255,.78); }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 1; color: rgba(255,255,255,.75); display: flex; animation: floaty 2s ease-in-out infinite; }
.hero-scroll svg { width: 30px; height: 30px; }
@keyframes floaty { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ---- Sections ---- */

.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, var(--muted), var(--background)); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head--wide { max-width: 900px; }
.section h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.02em; margin-bottom: 12px; }
/* Sur très petit écran, on laisse le navigateur gérer le retour à la ligne du titre */
@media (max-width: 480px) { .section-head--wide h2 br { display: none; } }
.section-head p { color: var(--muted-foreground); font-size: 1.05rem; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; }

.cards-3, .cards-2 { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 720px; margin: 0 auto; }

.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--primary); font-size: 1.2rem; }
.card p:last-child { margin-bottom: 0; }

/* Cartes « glass » de la landing */
.card.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card.glass:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  font-size: 1.3rem;
  color: var(--primary);
  background: linear-gradient(150deg, var(--secondary), var(--rose-soft));
  border: 1px solid var(--glass-border);
}

.price-card { text-align: center; }
.price {
  font-family: var(--font-brand);
  font-size: 2.4rem;
  color: var(--primary);
  margin: 0 0 .3em;
}

.steps {
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.steps li strong { color: var(--foreground); }
.step-n {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  font-family: var(--font-brand);
  font-size: 1.2rem; font-weight: 600;
  color: #fff;
  background: var(--primary);
}

.checklist {
  list-style: none;
  padding: 0;
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.checklist li {
  padding: 16px 20px 16px 52px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  font-weight: 500;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-60%) rotate(45deg);
  width: 7px;
  height: 13px;
  border-right: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success);
}

/* Bande CTA finale */
.cta-band {
  padding: 88px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 60%, #3a2f47 100%);
  color: #fff;
  text-align: center;
}
.cta-band h2 { font-family: var(--font-brand); font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 2.8rem); max-width: 640px; margin: 0 auto .4em; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 480px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-band .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); }
.cta-band .btn-primary:hover { background: rgba(255,255,255,.9); }

/* ---- FAQ (accordéon natif, SEO) ---- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 2px 22px; box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--primary); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--muted-foreground); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 0 0 18px; color: var(--foreground); line-height: 1.6; }

/* ---- Formulaires / auth ---- */

.auth-section { padding: 48px 0 64px; }
.auth-card { padding: 30px 26px; }
/* Mobile : réduit le titre des cartes auth pour qu'il tienne sur une ligne (ex. « Merci, c'est noté ! »). */
@media (max-width: 480px) { .auth-card h1 { font-size: 1.6rem; } }
.auth-intro { color: var(--muted-foreground); margin-bottom: 4px; }
.auth-alt { margin-top: 18px; font-size: .95rem; text-align: center; }
/* Deux lignes d'alternatives à la suite (ex. « Se connecter » puis « Mot de passe oublié ? ») : la 1re annule
   son margin-bottom (sinon le `p { margin: 0 0 1em }` global fusionne avec le margin-top et impose ~1em). */
.auth-alt-tight { margin-bottom: 0; }
.auth-alt + .auth-alt { margin-top: 6px; }
.auth-cgu { margin: 10px 0 0; font-size: .78rem; color: var(--muted-foreground); text-align: center; line-height: 1.4; }
.auth-cgu a { color: inherit; text-decoration: underline; }
.auth-alt-form { margin: 0; }
.otp-input { text-align: center; font-size: 1.6rem; letter-spacing: .5em; font-weight: 700; padding-left: .5em !important; }
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--primary); font-weight: 600; text-decoration: underline; cursor: pointer; }

.form { display: grid; gap: 16px; margin-top: 8px; }
.form label { font-weight: 600; font-size: .92rem; display: block; }
.form input[type="email"],
.form input[type="password"],
.form input[type="date"],
.form input[type="number"],
.form input[type="tel"],
.form input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 400;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 8px);
}
/* Champ date : même allure que les autres, indicateur calendrier aux couleurs de la marque */
.form input[type="date"] { min-height: 46px; accent-color: var(--primary); }
.form input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
.form input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.form input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
/* Curseur de distance : pas de contour à la souris (on garde le focus clavier pour l'accessibilité). */
.form input[type="range"] { outline: none; }
.form input[type="range"]:focus:not(:focus-visible) { outline: none; }
.form .checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.form .checkbox input { margin-top: 3px; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-errors {
  background: #FBEDEB;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: calc(var(--radius) - 8px);
  padding: 12px 16px;
  font-size: .92rem;
}
.form-errors ul { margin: 0; padding-left: 1.2em; }
.page-onboarding .form-errors { margin-bottom: 14px; }

/* ---- Flashes ---- */

.flash {
  max-width: 1080px;
  margin: 16px auto 0;
  padding: 12px 18px;
  border-radius: calc(var(--radius) - 8px);
  font-size: .95rem;
}
.flash-success { background: #EBF2EC; border: 1px solid var(--success); color: var(--success); }
.flash-error   { background: #FBEDEB; border: 1px solid var(--danger); color: var(--danger); }
.flash-info    { background: var(--secondary); border: 1px solid var(--border); color: var(--secondary-foreground); }
/* Pages app en desktop : la notif ne doit pas passer sous la barre latérale (260px). */
@media (min-width: 900px) {
  .has-appnav main > .flash { margin: 16px 48px 0 308px; max-width: 760px; }
}

/* ---- Metrics admin ---- */

.metric-card { text-align: center; }
.metric-value {
  font-family: var(--font-brand);
  font-size: 2.6rem;
  color: var(--primary);
  margin: 0;
}
.metric-label { color: var(--muted-foreground); font-size: .9rem; margin: 0; }

/* ---- Tableau de bord : cartes stats ---- */
.dash-h2 { font-family: var(--font-round); font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; color: var(--primary); margin: 26px 0 12px; }
.dash-h2:first-of-type { margin-top: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.stat { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--foreground); }
a.stat { transition: border-color .15s ease, box-shadow .15s ease; }
a.stat:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.stat-ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--secondary); color: var(--primary); flex-shrink: 0; }
.stat-ic svg { width: 22px; height: 22px; }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-value { font-family: var(--font-round); font-size: 1.85rem; font-weight: 800; letter-spacing: -.01em; color: var(--primary); line-height: 1.05; }
.stat-label { font-size: .82rem; color: var(--muted-foreground); margin-top: 3px; }
.stat-alert { background: #FBF3E8; border-color: #E7C9A0; }
.stat-alert .stat-ic { background: #F1DCBB; color: #9A6A1F; }
.stat-alert .stat-value, .stat-alert .stat-label { color: #9A6A1F; }
.stat-cta { margin-left: auto; align-self: center; color: var(--primary); font-weight: 700; font-size: 1.2rem; }
.stat-alert .stat-cta { color: #9A6A1F; }
/* Camemberts & courbe du tableau de bord */
.dash-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; }
.pie-card { padding: 20px 24px; }
.pie-title { font-family: var(--font-round); font-size: 1.05rem; font-weight: 800; color: var(--primary); margin: 0 0 16px; }
.pie-wrap { display: flex; align-items: center; gap: 24px; }
.pie { width: 128px; height: 128px; flex-shrink: 0; }
.pie-num { fill: var(--primary); font-family: var(--font-round); font-weight: 800; font-size: 28px; }
.pie-sub { fill: var(--muted-foreground); font-size: 11px; letter-spacing: .02em; }
.pie-legend { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.pie-leg { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.pie-dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.pie-leg-lbl { color: var(--muted-foreground); }
.pie-leg-val { margin-left: auto; font-weight: 800; color: var(--primary); font-family: var(--font-round); }
@media (max-width: 480px) { .pie-wrap { flex-direction: column; align-items: flex-start; } .pie-legend { width: 100%; } }
/* KPI cards (À traiter, Activité & revenus) — 4 colonnes pour une largeur identique entre sections */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi-card { position: relative; display: block; background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-link { text-decoration: none; color: inherit; }
.kpi-cta { position: absolute; bottom: 16px; right: 18px; color: var(--kpi-c); font-weight: 700; font-size: 1.3rem; line-height: 1; opacity: .8; }
.kpi-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--kpi-c); }
.kpi-ic { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--kpi-bg); color: var(--kpi-c); }
.kpi-ic svg { width: 22px; height: 22px; }
.kpi-val { display: block; margin-top: 6px; font-family: var(--font-round); font-size: 2rem; font-weight: 800; letter-spacing: -.01em; color: var(--primary); line-height: 1; }
.kpi-lbl { display: block; font-size: .85rem; color: var(--muted-foreground); margin-top: 6px; }
.dash-curves { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; margin-top: 16px; }
.curve-card { padding: 20px 24px; }
.curve-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.curve-head .pie-title { margin: 0; }
.curve-max { font-size: .82rem; font-weight: 700; color: var(--muted-foreground); white-space: nowrap; }
.curve-plot { position: relative; }
.curve { display: block; width: 100%; height: auto; cursor: crosshair; }
.curve-x { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted-foreground); margin-top: 6px; }
.curve-guide { stroke: currentColor; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.curve-guide.on { opacity: .4; }
.curve-hoverdot { fill: currentColor; opacity: 0; }
.curve-hoverdot.on { opacity: 1; }
.curve-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .08s ease; z-index: 5; box-shadow: var(--shadow-sm); }
.curve-tip.on { opacity: 1; }

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
  text-align: center;
  background: var(--background);
}
.footer-brand {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0 0 4px;
}
.footer-tagline { color: var(--muted-foreground); font-size: .92rem; font-style: italic; margin: 0 0 14px; }
.footer-links { font-size: .88rem; margin: 0; }
.footer-links a { color: var(--muted-foreground); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

/* ---- Mobile ---- */

@media (max-width: 560px) {
  /* padding-top ≥ 69px (= le margin-top négatif du hero) pour que, quand le contenu est haut,
     le kicker passe SOUS le header sticky au lieu d'être rogné derrière lui. */
  .hero { padding: 88px 0 40px; }
  .section { padding: 40px 0; }
  .header-inner { gap: 8px; }
  .brand-logo { height: 26px; }
  .brand-name { font-size: 1.25rem; }
  .header-nav { gap: 6px; }
  .header-nav .btn { padding: 8px 12px; font-size: .85rem; }
  /* Mobile : on masque le bouton fantôme du header (le bottom-nav / les liens en carte suffisent) */
  .header-nav .btn-ghost { display: none; }
}

/* ===================================================================
   Composants applicatifs (onboarding, app, messages, admin)
   =================================================================== */

.btn-sm { padding: 7px 13px; font-size: .85rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f342c; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.hint { font-size: .82rem; color: var(--muted-foreground); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Autocomplétage des communes (API adresse) */
.geo-autocomplete { position: relative; }
.ob-cancel { text-align: center; margin: 14px 0 0; }
.ob-cancel-link { background: none; border: 0; padding: 4px 6px; font: inherit; font-size: .9rem; color: var(--muted-foreground); text-decoration: underline; cursor: pointer; }
.ob-cancel-link:hover { color: var(--foreground); }
.geo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.geo-head .admin-h1 { margin: 0; }
.geo-flags { max-width: 340px; }
.geo-flag { display: inline-block; font-size: .78rem; line-height: 1.3; padding: 3px 9px; border-radius: 999px; margin: 0 4px 4px 0; }
.geo-sev2 { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6c2; }
.geo-sev1 { background: #fff4e0; color: #9a6100; border: 1px solid #f3dcae; }
.geo-actions { white-space: nowrap; }
.geo-actions .btn { margin-right: 6px; }
.geo-verdict { display: block; margin-top: 6px; font-size: .82rem; line-height: 1.35; }
.geo-verdict.ok { color: #1b7f4b; }
.geo-verdict.bad { color: #b71c1c; font-weight: 600; }
.geo-check { font: inherit; font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid #f5c6c2; background: #fdecea; color: #b71c1c; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s, border-color .12s; }
.geo-check:hover { filter: brightness(.98); }
.geo-check.is-checked { border-color: #b6e0c8; background: #e7f6ee; color: #1b7f4b; }
.geo-allsum { font-size: .88rem; margin-left: 8px; }
.geo-allsum.ok { color: #1b7f4b; font-weight: 600; }
.geo-allsum.bad { color: #b71c1c; font-weight: 600; }
.geo-suggest {
  list-style: none; margin: 6px 0 0; padding: 6px;
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(16,32,43,.14); max-height: 264px; overflow-y: auto;
}
.geo-suggest li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border-radius: 9px; cursor: pointer; font-size: .96rem;
}
.geo-suggest li:hover, .geo-suggest li[aria-selected="true"] { background: var(--secondary); }
.geo-suggest .geo-cp { color: var(--muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.origin-autocomplete { position: relative; }
.origin-suggest {
  list-style: none; margin: 4px 0 0; padding: 6px;
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(16,32,43,.14); max-height: 264px; overflow-y: auto;
}
.origin-suggest li { padding: 11px 13px; border-radius: 9px; cursor: pointer; font-size: .96rem; }
.origin-suggest li:hover, .origin-suggest li[aria-selected="true"] { background: var(--secondary); }
.view-title { margin-bottom: 14px; }
.form textarea, .form select {
  width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400;
  color: var(--foreground); background: var(--background);
  border: 1px solid var(--border); border-radius: calc(var(--radius) - 8px);
}
.form textarea:focus, .form select:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.field-group { border: none; padding: 0; margin: 0; }
.field-group legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }

/* --- Réglages admin --- */
.settings-form { column-count: 2; column-gap: 20px; margin-top: 4px; }
.settings-form > .settings-card { break-inside: avoid; margin: 0 0 20px; }
.settings-card { display: grid; gap: 16px; padding: 24px 26px; }
.settings-head { display: grid; gap: 3px; }
.settings-head h3 { margin: 0; color: var(--primary); font-size: 1.15rem; }
.settings-head p { margin: 0; font-size: .88rem; color: var(--muted-foreground); }
.settings-form .field { display: grid; gap: 6px; }
.settings-form .field > label { font-weight: 600; font-size: .9rem; color: var(--foreground); }
.settings-form input[type="text"],
.settings-form input[type="password"],
.settings-form input[type="email"],
.settings-form input[type="tel"],
.settings-form input[type="number"],
.settings-form input[type="date"] {
  width: 100%; padding: 11px 14px; font: inherit; font-weight: 400;
  color: var(--foreground); background: var(--background);
  border: 1px solid var(--border); border-radius: 10px;
}
.settings-form input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.settings-form .field-sm input { max-width: 220px; }
.settings-form .field-xs input { max-width: 150px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-readout { display: flex; align-items: center; min-height: 46px; padding: 11px 14px; font-weight: 700; font-size: 1.15rem; color: var(--primary); background: var(--muted); border: 1px solid var(--border); border-radius: 10px; box-sizing: border-box; }
.settings-readout-btn { width: 100%; font-family: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.settings-readout-btn:hover { border-color: var(--primary); background: var(--card); }
.pack-elig-body { max-height: 60vh; overflow-y: auto; margin-top: 6px; }
.pack-elig-list { display: flex; flex-direction: column; }
.pack-elig-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--hairline); }
.pack-elig-row:last-child { border-bottom: 0; }
.pack-elig-row:hover { background: var(--muted); }
.pack-elig-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.pack-elig-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack-elig-loc { color: var(--muted-foreground); font-size: .86rem; text-align: right; flex-shrink: 1; min-width: 0; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Pastille « +X au-dessus du seuil » : nb de profils pertinents au-delà du minimum requis. */
.pack-elig-above { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 3px 9px; border-radius: 999px; background: #E6F3EC; color: #2E8F6B; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pack-elig-row .icon-rank { flex-shrink: 0; }
/* Symbole de genre à côté d'un prénom (fiche profil) : ♂ bleu / ♀ rose */
.gender-mark { font-weight: 700; margin-left: 8px; }
.gender-m { color: #2f7ed8; }
.gender-f { color: #e0559b; }
.settings-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--muted); border: 1px solid var(--hairline); border-radius: 12px; font-size: .92rem; cursor: pointer; }
.settings-toggle > input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.settings-toggle > span { display: grid; gap: 2px; }
.settings-toggle-sub { color: var(--muted-foreground); font-size: .84rem; font-weight: 400; }
.settings-form .hint { margin: 0; }
.settings-actions { column-span: all; margin: 2px 0 0; }
.settings-actions .btn { padding: 13px 40px; }
@media (max-width: 900px) {
  .settings-form { column-count: 1; }
}
@media (max-width: 560px) {
  .settings-grid { grid-template-columns: 1fr; }
  .settings-actions .btn { width: 100%; }
}

/* ---- Onboarding ---- */
.ob-section { padding: 28px 0 60px; }
.ob-intro-head { text-align: center; margin-bottom: 22px; }
.ob-intro-head .ob-lead { margin-bottom: 0; }
.ob-progress { height: 6px; background: var(--muted); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.ob-progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s ease; }
.ob-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ob-step { font-size: .8rem; color: var(--muted-foreground); }
.ob-back { font-size: .9rem; font-weight: 600; color: var(--muted-foreground); text-decoration: none; padding: 4px 2px; }
.ob-back:hover { color: var(--primary); }
.ob-section h1 { font-size: 1.6rem; }
.ob-lead { color: var(--muted-foreground); margin-bottom: 20px; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid var(--border); border-radius: calc(var(--radius) - 6px); cursor: pointer; background: var(--background); }
.radio-card input { accent-color: var(--primary); }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--secondary); }
.upload-btn { display: block; text-align: center; padding: 14px; border: 1.5px dashed var(--border); border-radius: calc(var(--radius) - 6px); cursor: pointer; font-weight: 600; color: var(--primary); }
.upload-btn input { display: none; }
.photo-grid, .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.photo-thumb, .gal-item { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--muted); }
.photo-thumb img, .gal-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: none; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: 1.1rem; cursor: pointer; }
.photo-del { position: absolute; top: 0; right: 0; }
.photo-thumb.is-main { outline: 2px solid var(--primary); outline-offset: -2px; }
.photo-main-badge { position: absolute; left: 5px; bottom: 5px; background: var(--primary); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; }
.photo-main-set { position: absolute; left: 5px; bottom: 5px; margin: 0; }
.btn-set-main { border: 0; cursor: pointer; background: rgba(16,32,43,.72); color: #fff; font-size: .66rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.btn-set-main:hover { background: rgba(16,32,43,.92); }
.review-card { text-align: left; }
.review-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }

/* ---- Espace membre : nav (bottom bar mobile / sidebar droite desktop) ---- */
.has-appnav .site-header, .has-appnav .site-footer,
.page-conv .site-header, .page-conv .site-footer { display: none; }
.page-app { background:
  radial-gradient(1100px 520px at 100% -60px, var(--secondary), transparent 60%),
  radial-gradient(900px 500px at -10% 10%, var(--rose-soft), transparent 55%),
  var(--background); }
.app-view { padding: 26px 0 16px; }

.app-nav {
  position: fixed; z-index: 60;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.nav-item { display: flex; align-items: center; text-decoration: none; color: var(--muted-foreground); transition: background .15s ease, color .15s ease; }
.nav-item.active { color: var(--primary); }
.nav-icon { position: relative; display: inline-flex; }
.nav-icon svg { width: 24px; height: 24px; }
.nav-badge { position: absolute; top: -5px; right: -8px; background: var(--danger); color: #fff; font-size: .6rem; font-weight: 700; min-width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 99px; padding: 0 3px; }

/* Mobile : barre du bas */
@media (max-width: 899px) {
  .app-nav { bottom: 0; left: 0; right: 0; display: flex; border-top: 1px solid var(--hairline); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .app-nav-brand, .app-nav-logout { display: none; }
  .app-nav-items { display: flex; flex: 1; align-items: flex-start; }
  /* Icônes toutes alignées en haut (labels de longueur variable dessous, centrés) */
  .nav-item { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; padding: 5px 2px 0; font-size: .62rem; font-weight: 600; text-align: center; line-height: 1.12; }
  .nav-item .nav-label { flex: none; width: 100%; }
  .nav-item .nav-icon svg { width: 22px; height: 22px; }
  .has-appnav { padding-bottom: 78px; }
}

/* Desktop : barre latérale fixe à gauche */
@media (min-width: 900px) {
  .app-nav { top: 0; left: 0; height: 100vh; width: 260px; display: flex; flex-direction: column; border-right: 1px solid var(--hairline); padding: 26px 16px; }
  .has-appnav .app-shell { padding-left: 260px; }
  /* Contenu aligné juste après le menu, largeur adaptée à chaque page */
  .has-appnav .app-view { padding: 46px 48px 40px; }
  .has-appnav .app-view > .container { max-width: 720px; margin: 0; padding: 0; }
  .has-appnav .profil-view > .container,
  .has-appnav .reglages-view > .container { max-width: none; }
  .has-appnav .messages-view > .container { max-width: 660px; }
  .has-appnav .today-view > .container,
  .has-appnav .match-view > .container { max-width: 460px; margin: 0 auto; }
  .has-appnav .today-view .profile-card { max-width: 100%; margin: 0; }
  .has-appnav .conv-list, .has-appnav .settings-card, .has-appnav .profil-view .card { max-width: none; }
  /* Écrans « état » (relecture, vide…) centrés */
  .has-appnav .app-view:has(.state-card) { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 86px); padding-top: 0; padding-bottom: 0; }
  .has-appnav .app-view:has(.state-card) > .container { max-width: 500px; margin: 0 auto; }
  .app-nav-brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 26px; text-decoration: none; white-space: nowrap; }
  .app-nav-brand img { height: 30px; width: auto; }
  .app-nav-brand span { font-family: var(--font-brand); font-size: 1.4rem; font-weight: 600; color: var(--primary); }
  .app-nav-items { display: flex; flex-direction: column; gap: 4px; flex: 1; }
  .nav-item { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 16px; border-radius: 14px; font-size: 1rem; font-weight: 600; }
  .nav-item .nav-label { line-height: 1; }
  .nav-item:hover { background: rgba(34,62,99,.06); color: var(--primary); }
  .nav-item.active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }
  .app-nav-logout { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; color: var(--muted-foreground); text-decoration: none; font-weight: 600; font-size: .98rem; margin-top: 6px; }
  .app-nav-logout svg { width: 22px; height: 22px; }
  .app-nav-logout:hover { background: rgba(176,69,59,.08); color: var(--danger); }
}

/* Bandeau « profil en pause » — barre latérale desktop uniquement (mobile = barre d'icônes en bas, sans « Se déconnecter ») */
.nav-paused { display: none; }
@media (min-width: 900px) {
  .nav-paused { display: block; margin: 0 4px 8px; padding: 12px; border-radius: 14px; background: var(--muted); border: 1px solid var(--hairline); }
  .nav-paused-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--primary); }
  .nav-paused-head svg { width: 18px; height: 18px; flex-shrink: 0; }
}

/* ---- Carte profil (Aujourd'hui) ---- */
.today-view { padding-top: 14px; }
.today-head { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.today-count { font-size: .82rem; color: var(--muted-foreground); background: var(--muted); padding: 5px 14px; border-radius: 99px; }
.today-back-form { display: inline-flex; margin: 0; }
.today-back { border: 0; background: none; cursor: pointer; font: inherit; font-size: .82rem; color: var(--muted-foreground); padding: 5px 4px; transition: color .15s ease; }
.today-back:hover { color: var(--primary); }
.today-sep { color: var(--muted-foreground); opacity: .45; font-size: .82rem; }
.today-more-wrap { text-align: center; margin-top: 16px; }
.today-more { border: 0; cursor: pointer; transition: background .15s ease, color .15s ease; }
.today-more:hover { background: var(--secondary); color: var(--primary); }
.profile-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 30px rgba(16,32,39,.06); }
.card-photo { position: relative; }
.card-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.card-slides::-webkit-scrollbar { display: none; }
.card-slide { flex: 0 0 100%; height: clamp(400px, 56vh, 560px); background-size: cover; background-position: center 20%; scroll-snap-align: center; }
.card-photo-empty { height: clamp(400px, 56vh, 560px); background: linear-gradient(160deg, var(--secondary), var(--muted)); }
.card-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.card-dots span { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(16,32,39,.35); transition: width .2s ease, background .2s ease; }
.card-dots span.active { background: #fff; width: 18px; }
.card-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: rgba(255,255,255,.15); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; cursor: pointer; opacity: .8; transition: opacity .18s ease, background .18s ease; }
.card-arrow:hover { opacity: 1; background: rgba(255,255,255,.28); }
.card-arrow svg { width: 18px; height: 18px; }
.card-arrow-prev { left: 10px; }
.card-arrow-next { right: 10px; }
.card-arrow[hidden] { display: none; }
.card-why { margin: 12px; background: rgba(16,32,39,.62); color: #fff; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; backdrop-filter: blur(4px); }
.card-compat { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; align-items: center; line-height: 1; background: rgba(255,255,255,.92); color: var(--primary); padding: 8px 12px; border-radius: 14px; box-shadow: 0 4px 14px rgba(16,32,39,.18); backdrop-filter: blur(4px); }
.card-compat strong { font-size: 1.15rem; font-weight: 700; }
.card-compat span { font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-foreground); margin-top: 2px; }
.card-body { padding: 20px; }
.card-name { font-size: 1.5rem; margin: 0 0 2px; }
.card-loc { color: var(--muted-foreground); margin: 0 0 12px; }
.card-origin { color: var(--muted-foreground); font-size: .92rem; margin: -6px 0 12px; }
.field-help.origin-consent { font-size: .8rem; margin-top: 12px; }
.origin-consent input[type="checkbox"] { vertical-align: -2px; margin: 0 7px; width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.card-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: var(--muted); color: var(--secondary-foreground); }
.badge-faith { background: var(--secondary); color: var(--primary); }
.badge-practice { background: #E7EEF4; color: var(--primary); }
.card-bio { margin-bottom: 16px; }
.answer-block { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.answer-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); font-weight: 700; margin: 0 0 3px; }
.answer-text { margin: 0; }
.card-actions { display: flex; gap: 9px; padding: 14px 20px 20px; align-items: stretch; }
.card-actions > form { display: flex; }
.btn-action { padding: 11px 12px; border-radius: 99px; font-weight: 700; font-size: .95rem; cursor: pointer; border: 1px solid var(--border); background: var(--card); position: relative; }
/* Non (croix) + Passer (flèche) = boutons FINS, icône seule ; Oui = bouton principal texte qui remplit. */
.btn-no, .btn-pass { width: 54px; padding: 11px 0; color: var(--muted-foreground); display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.btn-no:hover { background: #fbebeb; border-color: #e3b7b7; color: #b23a3a; }
.btn-pass:hover { background: var(--muted); color: var(--foreground); }
.btn-yes { flex: 1; background: var(--primary); color: #fff; border-color: var(--primary); padding: 15px 12px; font-size: 1.08rem; font-weight: 800; }
.btn-yes:hover { background: #16304F; }
.btn-like { background: var(--primary); color: #fff; border-color: var(--primary); flex: 1.6; }
.btn-like:hover { background: #16304F; }
/* Infobulle explicative au survol (desktop) ; sur mobile → aria-label + icônes (pas de survol tactile). */
.btn-action[data-tip]:hover::after, .btn-action[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  background: var(--foreground); color: #fff; padding: 8px 11px; border-radius: 9px; font-size: .77rem; font-weight: 500;
  line-height: 1.35; width: max-content; max-width: 200px; text-align: center; z-index: 30; pointer-events: none;
  box-shadow: 0 8px 22px rgba(16, 32, 43, .22);
}

/* ---- State cards / empty states ---- */
.state-card { padding: 34px 26px; }
.state-emoji { font-size: 2.6rem; margin-bottom: 8px; }
.buy-card { margin-top: 16px; background: var(--secondary); border-color: var(--accent); }
.buy-detail { text-align: center; }

/* ---- Modales ---- */
.modal-open { overflow: hidden; }
.like-modal { position: fixed; inset: 0; z-index: 100; background: rgba(16,32,39,.5); display: flex; align-items: flex-end; justify-content: center; }
.like-modal-inner { background: var(--card); width: 100%; max-width: 460px; border-radius: var(--radius) var(--radius) 0 0; padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); position: relative; animation: slideUp .22s ease; }
@keyframes slideUp { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted-foreground); cursor: pointer; }
.like-modal h2 { font-size: 1.2rem; padding-right: 20px; }
.touch-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.touch-opt { border: 1px solid var(--border); border-radius: 99px; padding: 8px 14px; cursor: pointer; font-size: .88rem; }
.touch-opt input { display: none; }
.touch-opt:has(input:checked) { background: var(--primary); color: #fff; border-color: var(--primary); }
.like-modal textarea { width: 100%; padding: 12px 14px; font: inherit; border: 1px solid var(--border); border-radius: 12px; }
.modal-hint { font-size: .8rem; color: var(--muted-foreground); margin: 8px 0 14px; }
/* Desktop : popups centrés dans la colonne de contenu, à droite de la nav (260px). Mobile garde le bottom-sheet. */
@media (min-width: 900px) {
  .like-modal { align-items: center; left: 260px; } /* décalé de la barre latérale MEMBRE (.app-nav = 260px) */
  /* Back-office : la barre latérale admin fait 232px (pas 260) → on aligne le grisé sur SON bord,
     sinon une bande de contenu reste non grisée juste à droite du menu. */
  body.admin-shell .like-modal { left: 232px; }
  .like-modal-inner { border-radius: var(--radius); padding-bottom: 24px; }
}
/* Modale de signalement : champs empilés + menu déroulant stylé (chevron custom) */
.report-modal .report-label { display: block; font-weight: 600; font-size: .9rem; color: var(--foreground); margin: 16px 0 6px; }
.report-modal .report-opt { color: var(--muted-foreground); font-weight: 400; font-size: .85rem; }
.report-modal .select-wrap { position: relative; }
.report-modal .select-wrap::after { content: ''; position: absolute; right: 16px; top: calc(50% - 5px); width: 8px; height: 8px; border-right: 2px solid var(--muted-foreground); border-bottom: 2px solid var(--muted-foreground); transform: rotate(45deg); pointer-events: none; }
.report-modal select { -webkit-appearance: none; appearance: none; width: 100%; padding: 12px 40px 12px 14px; font: inherit; color: var(--foreground); background: var(--card); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.report-modal select:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.report-modal .btn-block { margin-top: 20px; }

/* ---- Modale de suppression de compte ---- */
.del-modal { max-width: 480px; }
.del-step h2 { font-size: 1.35rem; margin: 0 0 6px; padding-right: 24px; }
.del-step p { font-size: .96rem; line-height: 1.5; margin: 0 0 12px; }
.del-reasons { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.del-reason { display: flex; align-items: center; gap: 10px; text-align: left; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font: inherit; font-weight: 600; color: var(--foreground); cursor: pointer; line-height: 1.3; }
.del-reason:hover { border-color: var(--primary); background: var(--muted); }
.del-reason span { font-size: 1.15rem; }
.del-reason-happy { border-color: var(--primary); background: #E7EEFB; }
.del-reason-happy:hover { border-color: var(--primary); background: #DCE7F8; }
.del-emoji { font-size: 2.4rem; text-align: center; margin-bottom: 4px; }
.del-step[data-del-step="donation"] > h2 { text-align: center; padding-right: 0; }
.del-rib { background: var(--muted); border-radius: 12px; padding: 4px 16px; margin: 14px 0; }
.del-rib > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: .92rem; }
.del-rib > div:last-child { border-bottom: none; }
.del-rib span { color: var(--muted-foreground); }
.del-rib strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.del-step .btn { width: 100%; margin-top: 10px; }

/* ---- Match ---- */
.match-view { padding-top: 40px; }
.match-rings img { width: 84px; height: auto; }
.match-celebration h1 { font-family: var(--font-brand); font-size: 2rem; color: var(--primary); margin-top: 14px; }
.match-photo { width: 120px; height: 120px; border-radius: 99px; object-fit: cover; margin: 14px auto; display: block; border: 3px solid var(--accent); }
.match-name { font-weight: 700; font-size: 1.2rem; }
.match-actions { display: grid; gap: 10px; margin-top: 22px; }

/* ---- Messages ---- */
.conv-list { display: flex; flex-direction: column; }
.conv-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--foreground); }
.conv-avatar { width: 54px; height: 54px; border-radius: 99px; background: var(--muted); background-size: cover; background-position: center; flex-shrink: 0; }
.conv-avatar.sm { width: 38px; height: 38px; }
.conv-avatar-empty { background: linear-gradient(150deg, var(--secondary), var(--muted)); }
.conv-meta { flex: 1; min-width: 0; }
.conv-name { display: block; font-weight: 700; }
.conv-preview { display: block; color: var(--muted-foreground); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-unread { background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 99px; padding: 0 5px; }
/* Fiches « Mes coups de cœur » — cartes verticales en grille */
.fav-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 18px; }
.fav-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--foreground); }
.fav-card { cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.fav-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.fav-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.fav-photo { width: 100%; aspect-ratio: 4 / 5; background: var(--muted); background-size: cover; background-position: center; }
.fav-photo-empty { background: linear-gradient(150deg, var(--secondary), var(--muted)); }
.fav-body { padding: 14px 16px 16px; flex: 1; min-width: 0; }
.fav-name { font-size: 1.15rem; margin: 0 0 2px; }
.fav-loc { color: var(--muted-foreground); margin: 0 0 6px; font-size: .92rem; }
.fav-sub { color: var(--muted-foreground); margin: 0; font-size: .82rem; }
.fav-foot { padding: 4px 14px 14px; }
.fav-status { display: block; text-align: center; font-size: .84rem; font-weight: 700; padding: 9px 12px; border-radius: 12px; white-space: nowrap; }
.fav-match { background: #E6F3EC; color: #2E7D53; }
.fav-pending { background: var(--muted); color: var(--muted-foreground); }
@media (max-width: 560px) { .fav-list { grid-template-columns: 1fr 1fr; gap: 12px; } .fav-name { font-size: 1.04rem; } .fav-body { padding: 12px 13px 6px; } .fav-foot { padding: 2px 13px 12px; } }
/* Coups de cœur : conteneur pleine largeur, calé à gauche comme les autres pages (padding 48px),
   d'où une marge gauche = celle du site et une marge droite identique (symétrique) */
@media (min-width: 900px) { .has-appnav .app-view.favoris-view > .container { max-width: none; margin: 0; } }
/* Popup d'achat de pack : paiement Stripe embarqué (Embedded Checkout) dans la modale */
.buy-modal-inner { max-height: 92vh; overflow-y: auto; }
.buy-checkout-wrap { margin-top: 6px; min-height: 320px; }
#plv-embedded-checkout { min-height: 320px; }
.buy-error { color: #c0392b; }

/* Badge « clé enregistrée » dans les Réglages Stripe */
.key-set { display: inline-block; font-size: .72rem; font-weight: 700; color: #1c7c46; background: #e6f6ec; padding: 1px 8px; border-radius: 99px; vertical-align: middle; margin-left: 2px; }

/* Popup « revoir le profil » depuis une fiche coup de cœur */
.fav-modal .like-modal-inner { max-width: 440px; max-height: 92vh; overflow-y: auto; }
.fav-modal .modal-close { z-index: 4; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 99px; background: rgba(16,32,39,.5); color: #fff; }
.fav-modal .profile-card-view { box-shadow: none; margin-top: 6px; }
/* Popup profil : même recadrage plein cadre (cover) que la fiche du jour */
.fav-modal .profile-card-view .card-slide, .fav-modal .profile-card-view .card-photo-empty { height: clamp(300px, 44vh, 430px); }
.fav-modal-foot { margin-top: 16px; }

/* ---- Conversation ---- */
.page-conv main { display: flex; flex-direction: column; }
.conv-view { display: flex; flex-direction: column; height: 100dvh; padding: 0; background: #ECE5DD; }
.conv-header { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--card); z-index: 5; box-shadow: 0 1px 3px rgba(16,32,39,.05); }
.conv-back { font-size: 1.9rem; line-height: 1; text-decoration: none; color: var(--primary); margin-right: -4px; }
.conv-title { font-weight: 700; flex: 1; font-size: 1.05rem; }
.conv-menu-btn { border: none; background: none; font-size: 1.5rem; cursor: pointer; color: var(--muted-foreground); }
.conv-menu { position: absolute; top: 54px; right: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 30px rgba(16,32,39,.12); z-index: 20; overflow: hidden; }
.conv-menu button { display: block; width: 100%; text-align: left; padding: 12px 20px; border: none; background: none; cursor: pointer; font: inherit; }
.conv-menu button:hover { background: var(--muted); }
.conv-menu .danger { color: var(--danger); }
/* Blocage : badge (liste + en-tête), ligne grisée, bandeau « supprimée sous 48 h » à la place du composeur */
.conv-blocked-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); font-size: .68rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; border: 1px solid var(--hairline); }
.conv-blocked-tag.sm { margin-left: 6px; font-size: .6rem; padding: 0 6px; }
/* Avertissement d'expiration (conversation muette depuis ≥ 12 j, disparaît à 15 j) : pastille ambre discrète. */
.conv-expiry-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #FBF3E1; color: #9A6A00; font-size: .6rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; border: 1px solid rgba(154,106,0,.22); white-space: nowrap; }
.conv-row.is-blocked .conv-avatar { filter: grayscale(1); opacity: .65; }
.conv-row.is-blocked .conv-name { color: var(--muted-foreground); }
.conv-row.is-blocked .conv-preview { font-style: italic; }
.conv-blocked-note { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--muted); }
.conv-blocked-note p { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; color: var(--foreground); }
.conv-blocked-note .btn { margin: 0; }
/* Fil de discussion type messagerie (fond chaud, bulles avec heure, séparateurs de date) */
.conv-thread { flex: 1; overflow-y: auto; padding: 14px 12px 20px; display: flex; flex-direction: column; gap: 9px; }
.conv-empty { text-align: center; color: var(--muted-foreground); margin: auto; max-width: 260px; background: rgba(255,255,255,.7); padding: 14px 18px; border-radius: 14px; }
.msg-daysep { align-self: center; margin: 12px 0 8px; }
.msg-daysep span { background: rgba(255,255,255,.9); color: var(--muted-foreground); font-size: .72rem; font-weight: 700; letter-spacing: .01em; padding: 4px 12px; border-radius: 10px; box-shadow: 0 1px 1px rgba(16,32,39,.08); }
.msg-wrap { display: flex; flex-direction: column; max-width: 78%; position: relative; }
.msg-out-wrap { align-self: flex-end; align-items: flex-end; }
.msg-in-wrap { align-self: flex-start; align-items: flex-start; }
.msg { display: flow-root; position: relative; max-width: 100%; padding: 6px 10px 6px; border-radius: 12px; font-size: .95rem; line-height: 1.38; word-wrap: break-word; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(16,32,39,.12); }
.msg-body { white-space: pre-wrap; }
.msg-time { float: right; font-size: .62rem; color: rgba(16,32,39,.42); margin: 8px 0 -1px 10px; line-height: 1; }
.msg-in { background: #fff; border-top-left-radius: 4px; }
.msg-out { background: #DCE9FB; border-top-right-radius: 4px; }
/* Petit déclencheur de réaction (icône emoji en bout de message, révélé au survol) */
.msg-react-trigger { position: absolute; top: 50%; margin-top: -14px; display: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 99px; border: 1px solid var(--hairline); background: var(--card); color: var(--muted-foreground); cursor: pointer; box-shadow: 0 2px 8px rgba(16,32,39,.18); z-index: 7; padding: 0; }
.msg-react-trigger svg { width: 17px; height: 17px; }
/* Collé à la bulle (léger chevauchement) → pas d'écart, le survol reste continu jusqu'au clic */
.msg-out-wrap .msg-react-trigger { right: calc(100% - 4px); }
.msg-in-wrap .msg-react-trigger { left: calc(100% - 4px); }
.msg-wrap:hover .msg-react-trigger, .msg-wrap.react-open .msg-react-trigger { display: flex; }
.msg-react-trigger:hover { background: var(--muted); color: var(--primary); }
@media (hover: none) { .msg-react-trigger { display: flex; opacity: .6; } }
/* Panneau d'emojis de réaction (flottant, même jeu que le composeur) */
.msg-react-picker { position: fixed; z-index: 120; max-width: 300px; max-height: 220px; overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 34px rgba(16,32,39,.22); padding: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 2px; }
.msg-react-picker[hidden] { display: none; }
.msg-react-picker button { border: none; background: none; font-size: 1.4rem; padding: 4px; cursor: pointer; border-radius: 8px; line-height: 1.2; }
.msg-react-picker button:hover { background: var(--muted); }
/* Réactions posées (pastilles sous la bulle) */
.msg-reactions { display: flex; gap: 3px; margin-top: 3px; }
.msg-reactions:empty { display: none; }
.msg-reaction { background: var(--card); border: 1px solid var(--hairline); border-radius: 99px; padding: 0 7px; font-size: .8rem; line-height: 1.6; box-shadow: 0 1px 1px rgba(16,32,39,.1); cursor: default; }
.msg-reaction.mine { border-color: var(--primary); background: #EEF3FB; cursor: pointer; }
.msg-reaction.mine:hover { border-color: var(--danger); background: #FBEDEB; }
/* Indicateur « en train d'écrire » (façon WhatsApp) : bulle blanche alignée à gauche, trois points qui rebondissent. */
.msg-typing { align-self: flex-start; max-width: 78%; }
.msg-typing[hidden] { display: none; }
.msg-typing-bubble { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; background: #fff; border-radius: 12px; border-top-left-radius: 4px; box-shadow: 0 1px 1px rgba(16,32,39,.12); }
.msg-typing-bubble span { width: 7px; height: 7px; border-radius: 50%; background: rgba(16,32,39,.32); animation: msgTyping 1.2s infinite ease-in-out both; }
.msg-typing-bubble span:nth-child(2) { animation-delay: .18s; }
.msg-typing-bubble span:nth-child(3) { animation-delay: .36s; }
@keyframes msgTyping { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .msg-typing-bubble span { animation: none; opacity: .6; } }
/* Note d'échec d'envoi (hors-ligne, compte en pause…) : discrète, au-dessus du composeur, disparaît seule. */
.conv-send-note { margin: 0; padding: 8px 14px; font-size: .85rem; color: #B3261E; background: #FDECEA; border-top: 1px solid rgba(179,38,30,.18); text-align: center; }
.conv-send-note[hidden] { display: none; }
.conv-composer { position: relative; display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--card); }
.conv-emoji-btn { flex-shrink: 0; width: 42px; height: 42px; border: none; background: none; font-size: 1.4rem; cursor: pointer; border-radius: 99px; line-height: 1; }
.conv-emoji-btn:hover { background: var(--muted); }
.conv-composer textarea { flex: 1; resize: none; padding: 10px 16px; font: inherit; border: 1px solid var(--border); border-radius: 22px; max-height: 120px; background: var(--card); }
.conv-send { flex-shrink: 0; width: 46px; height: 46px; border: none; border-radius: 99px; background: var(--primary); color: #fff; font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.conv-send:hover { background: #1a3050; }
.emoji-panel { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); max-height: 244px; overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 -6px 24px rgba(16,32,39,.16); padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; z-index: 20; }
.emoji-panel[hidden] { display: none; }
.emoji-panel button { border: none; background: none; font-size: 1.5rem; padding: 5px; cursor: pointer; border-radius: 8px; line-height: 1.2; }
.emoji-panel button:hover { background: var(--muted); }
/* Conversation dans la coquille membre : menu latéral conservé sur desktop, plein écran sur mobile */
@media (min-width: 900px) { .has-appnav .app-view.conv-view { padding: 0; } }
@media (max-width: 899px) { .page-conv .app-nav { display: none; } .page-conv.has-appnav { padding-bottom: 0; } }
.page-conv main > .flash, .page-msg2 main > .flash { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); margin: 0; z-index: 80; box-shadow: var(--shadow-md); }
/* Messagerie 2 volets : liste à gauche, conversation à droite */
.conv-row.active { background: var(--muted); border-radius: 10px; }
.msg-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--muted-foreground); height: 100%; padding: 24px; }
.msg-empty .state-emoji { font-size: 2.4rem; }
/* Encadré de prudence en bas de la colonne des conversations */
.msg-safety { margin-top: 14px; flex-shrink: 0; padding: 12px 14px; border-radius: 12px; background: var(--muted); border: 1px solid var(--hairline); font-size: .8rem; line-height: 1.45; color: var(--muted-foreground); }
.msg-safety-title { font-weight: 700; color: var(--primary); margin: 0 0 5px; font-size: .82rem; }
.msg-safety p { margin: 0 0 6px; }
.msg-safety p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .page-msg2 .app-view.msg-2pane { padding: 0; height: 100dvh; display: flex; }
  .msg-pane-list { width: 340px; flex-shrink: 0; border-right: 1px solid var(--hairline); overflow: hidden; padding: 30px 20px 20px; display: flex; flex-direction: column; }
  .msg-pane-list .view-title { margin-bottom: 14px; }
  .msg-pane-list .conv-list { flex: 1; min-height: 0; overflow-y: auto; }
  .msg-pane-chat { flex: 1; min-width: 0; }
  .page-msg2 .msg-pane-chat .conv-view { height: 100%; }
  .page-msg2 .msg-pane-chat .conv-back { display: none; }
  .msg-empty { background: #ECE5DD; }
}
@media (max-width: 899px) {
  .msg-2pane { display: block; }
  /* Colonne pleine hauteur + marges latérales : titre « Messages » et encadré « conseil » calés comme les autres pages (20px), encadré collé en bas au-dessus de la barre.
     padding-haut 0 : le titre s'aligne sur les 26px de .app-view (comme « Mes coups de cœur »), sans cumul de padding */
  .msg-2pane .msg-pane-list { padding: 0 20px 16px; display: flex; flex-direction: column; min-height: calc(100dvh - 104px); }
  /* Fils de conversation en pleine largeur : on annule la marge du volet, le contenu reste aligné sur le titre */
  .msg-2pane .conv-list { margin: 0 -20px; }
  .msg-2pane .conv-row { padding: 12px 20px; }
  .msg-2pane .msg-safety { margin-top: auto; }
  .msg-2pane .msg-pane-chat { display: none; }
  .msg-2pane.has-active .msg-pane-list { display: none; }
  .msg-2pane.has-active .msg-pane-chat { display: block; }
  .page-msg2-active .app-nav { display: none; }
  .page-msg2-active.has-appnav { padding-bottom: 0; }
  .page-msg2-active .app-view.msg-2pane { padding: 0; }
  .page-msg2-active .msg-pane-chat .conv-view { height: 100dvh; }
}

/* ---- Profil / réglages ---- */
.profil-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ph-tag { position: absolute; top: 6px; left: 6px; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; color: #fff; }
.ph-tag.pending { background: var(--accent); }
.ph-tag.rejected { background: var(--danger); }
.ph-tag.approved, .ph-tag.ok { background: var(--success); }
.settings-card { margin-bottom: 14px; }
.settings-card h2 { font-size: 1.1rem; margin: 0 0 2px; color: var(--primary); }
/* Interrupteur segmenté coulissant Test / Production (réglages Stripe) */
.seg-toggle { position: relative; display: inline-flex; width: 260px; max-width: 100%; background: var(--muted); border: 1px solid var(--hairline); border-radius: 999px; padding: 3px; touch-action: manipulation; }
.seg-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg-opt { position: relative; z-index: 1; flex: 1 1 0; display: flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--muted-foreground); cursor: pointer; user-select: none; transition: color .25s ease; }
.seg-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--card); box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.34, 1.4, .5, 1); }
#sm-test:checked ~ .seg-thumb { transform: translateX(0); }
#sm-live:checked ~ .seg-thumb { transform: translateX(100%); }
#sm-test:checked ~ label[for="sm-test"] { color: var(--primary); }
#sm-live:checked ~ label[for="sm-live"] { color: var(--danger); }
.seg-radio:focus-visible + .seg-opt { outline: 2px solid var(--primary); outline-offset: 2px; }
.danger-zone h2 { color: var(--danger); }
.logout-link { text-align: center; margin-top: 20px; }

/* ---- Réglages membre : cartes en maçonnerie ---- */
.member-settings-grid { column-count: 1; column-gap: 16px; }
.member-settings-grid .settings-card { margin: 0 0 16px; break-inside: avoid; }
@media (min-width: 900px) {
  .member-settings-grid { column-count: 2; }
}

/* ---- Profil membre — mise en page « canon » ---- */
.pf-banner { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-radius: 16px; font-size: .95rem; line-height: 1.45; margin-bottom: 24px; }
.pf-banner a { color: inherit; font-weight: 700; }
.pf-banner.info { background: var(--rose-soft); color: var(--primary); }
.pf-banner.reject { background: #FBEDEB; color: var(--danger); }
.pf-banner-ic { font-size: 1.15rem; line-height: 1.3; }
.pf-validated { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; background: #E6F3EC; color: #2E8F6B; font-size: .82rem; font-weight: 700; margin-bottom: 22px; }
.pf-validated span { font-size: .95rem; }

.pf-layout { display: grid; gap: 22px; }
.pf-hero-photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--secondary), var(--muted)); box-shadow: var(--shadow-md); }
.pf-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-photo-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted-foreground); font-size: .9rem; }
.pf-photo-tag { position: absolute; top: 12px; left: 12px; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; color: #fff; }
.pf-photo-tag.pending { background: var(--accent); }
.pf-photo-tag.rejected { background: var(--danger); }
.pf-info { display: flex; flex-direction: column; padding-top: 2px; min-width: 0; }
.pf-info > .pf-section:first-of-type { margin-top: 26px; }
.pf-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pf-name { font-family: var(--font-brand); font-weight: 600; font-size: clamp(2rem, 6vw, 2.5rem); line-height: 1.02; color: var(--foreground); margin: 0; }
.pf-loc { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-foreground); margin: 10px 0 0; font-size: 1rem; }
.pf-loc svg { width: 16px; height: 16px; flex-shrink: 0; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.pf-badges .badge { font-size: .82rem; padding: 7px 14px; }
.pf-bio { font-size: 1.12rem; line-height: 1.6; color: var(--foreground); padding-left: 16px; border-left: 3px solid var(--accent); margin: 20px 0 0; }
.pf-edit { flex-shrink: 0; }

.pf-section { margin-top: 30px; }
.pf-section-title { font-family: var(--font-brand); font-size: 1.5rem; font-weight: 600; color: var(--primary); margin: 0 0 14px; }
.pf-card { background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; padding: 6px 24px; box-shadow: var(--shadow-sm); }
.pf-faith-row { display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.pf-faith-row:last-child { border-bottom: none; }
.pf-faith-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
.pf-faith-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.pf-prompts { display: grid; gap: 14px; }
.pf-prompt { background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.pf-prompt-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; margin: 0 0 6px; }
.pf-prompt-text { font-size: 1.1rem; line-height: 1.5; color: var(--foreground); margin: 0; }

.pf-photo-cta { margin: 12px 2px 0; font-size: .9rem; color: var(--danger); line-height: 1.45; }
.pf-photo-cta a { color: var(--primary); font-weight: 700; }
.pf-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pf-gallery .gal-item { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--muted); }
.pf-gallery .gal-item img { width: 100%; height: 100%; object-fit: cover; }
.pf-del { position: absolute; top: 6px; right: 6px; margin: 0; }
.pf-del button { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: none; border-radius: 999px; background: rgba(16,32,39,.6); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.pf-del button:hover { background: var(--danger); }
.pf-add-form { margin: 0; }
.pf-add-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; aspect-ratio: 3/4; border: 1.5px dashed var(--border); border-radius: 14px; cursor: pointer; color: var(--primary); font-weight: 600; font-size: .86rem; text-align: center; padding: 8px; background: var(--card); }
.pf-add-tile:hover { border-color: var(--primary); background: var(--muted); }
.pf-add-tile .plus { font-size: 1.8rem; line-height: 1; }
.pf-add-tile input { display: none; }
/* Photo hero cliquable → popup « Mes photos » */
.pf-hero-clickable { border: 0; padding: 0; font: inherit; width: 100%; cursor: pointer; display: block; }
.pf-hero-edit { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 16px 12px 12px; font-size: .85rem; font-weight: 600; color: #fff; background: linear-gradient(to top, rgba(16,32,39,.78), rgba(16,32,39,0)); }
/* Popup galerie + drag & drop */
.pf-photos-modal { max-width: 520px; width: 92vw; }
.pf-photos-modal h2 { margin: 0 0 4px; }
.pf-photos-modal .pf-gallery { margin-top: 14px; max-height: 62vh; overflow-y: auto; padding: 2px; }
.pf-gallery .gal-item[draggable] { cursor: grab; }
.pf-gallery .gal-item.dragging { opacity: .4; cursor: grabbing; }
.pf-gallery .gal-item.drag-over { outline: 2px dashed var(--primary); outline-offset: 2px; }
.gal-drag { position: absolute; bottom: 6px; left: 6px; color: #fff; background: rgba(16,32,39,.5); border-radius: 7px; padding: 0 7px; font-size: .82rem; line-height: 1.5; pointer-events: none; }

@media (min-width: 900px) {
  .pf-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
  .pf-media { position: sticky; top: 46px; }
  .pf-prompts { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .pf-gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ---- Admin ---- */
.admin-shell { background: var(--muted); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-side { width: 232px; flex-shrink: 0; background: var(--primary); color: #fff; display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-brand); font-size: 1.2rem; padding: 0 8px 20px; }
.admin-brand img { width: 42px; height: auto; }
.admin-side nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 10px; color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600; font-size: .92rem; }
.side-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.side-link.active { background: rgba(255,255,255,.16); color: #fff; }
.side-ic { width: 18px; height: 18px; flex-shrink: 0; opacity: .9; }
.side-label { flex: 1; min-width: 0; }
.side-badge { background: var(--accent); color: var(--primary); font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 99px; padding: 0 5px; }
.side-logout { color: rgba(255,255,255,.7); text-decoration: none; padding: 12px 14px; font-size: .88rem; }
.side-logout:hover { color: #fff; }
.admin-main { flex: 1; min-width: 0; padding: 32px 40px; }
.admin-h1 { font-family: var(--font-round); font-weight: 800; letter-spacing: -.01em; color: var(--primary); font-size: 1.75rem; margin-bottom: 22px; }
/* Grille KPI qui se remplit pour les pages à 2-3 cartes (dashboard = 4 col fixe). */
.kpi-grid.auto { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
/* Barre d'actions au-dessus d'un tableau (export, filtres…). */
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.admin-toolbar .dash-h2 { margin: 0; margin-right: auto; }
.admin-back { margin-bottom: 8px; }
.admin-back a { color: var(--muted-foreground); text-decoration: none; }
/* Fiche modération : titre + bouton « rendu final » à droite, et son pop-up */
.mod-titlerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mod-titlerow .admin-h1 { margin-bottom: 22px; }
.mod-preview-btn { flex-shrink: 0; width: 42px; height: 42px; margin-bottom: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--primary); cursor: pointer; box-shadow: 0 1px 2px rgba(16,32,39,.06); }
.mod-preview-btn:hover { background: #F4F1EA; }
.mod-preview-modal { position: fixed; inset: 0; z-index: 200; background: rgba(16,32,39,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.mod-preview-inner { background: var(--card); border-radius: 20px; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; padding: 16px; position: relative; }
.mod-preview-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 34px; height: 34px; border-radius: 99px; border: 0; background: rgba(16,32,39,.5); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.mod-preview-label { font-size: .8rem; color: var(--muted-foreground); text-align: center; margin: 2px 0 12px; }
.admin-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.admin-metrics .metric-value a { text-decoration: none; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--muted-foreground); font-weight: 600; }
.admin-table .ph-tag { position: static; display: inline-block; }
.admin-td-action { text-align: right; width: 1%; white-space: nowrap; }
.admin-td-action form { margin: 0; }
.icon-del { background: none; border: 0; cursor: pointer; color: var(--muted-foreground); padding: 6px; border-radius: 8px; line-height: 0; }
.icon-del:hover { color: var(--danger); background: rgba(176, 69, 59, .1); }
.icon-resend { background: none; border: 0; cursor: pointer; color: var(--muted-foreground); padding: 6px; border-radius: 8px; line-height: 0; }
.icon-resend:hover { color: var(--primary); background: rgba(34, 62, 99, .08); }
/* Menu déroulant « Envoyer un e-mail » (liste de relances). Le menu est déplacé sous <body> et positionné en fixed par JS. */
.acct-send { position: relative; display: inline-flex; }
.acct-send-menu { position: fixed; z-index: 1300; min-width: 210px; background: #fff; border: 1px solid var(--hairline); border-radius: 12px; box-shadow: 0 14px 34px rgba(16, 32, 43, .16); padding: 6px; display: grid; gap: 2px; }
.acct-send-menu[hidden] { display: none; }
.acct-send-menu form { margin: 0; }
.acct-send-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 8px; padding: 9px 12px; font-size: .9rem; line-height: 1.3; color: var(--foreground); cursor: pointer; font-family: inherit; }
.acct-send-item:hover { background: var(--muted); }
/* Pop-up d'aperçu d'e-mail (voir le mail réel avant envoi) */
.mail-preview { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(16, 24, 32, .55); }
.mail-preview[hidden] { display: none !important; }
.mail-preview-box { background: #fff; border-radius: 16px; width: min(680px, 100%); max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 22px 60px rgba(0, 0, 0, .38); }
.mail-preview-head { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--hairline); }
.mail-preview-meta { flex: 1; min-width: 0; }
.mp-choices { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.mp-choice { font: inherit; font-size: .82rem; font-weight: 600; line-height: 1.2; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--hairline); background: #fff; color: var(--foreground); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.mp-choice:hover { border-color: var(--primary); }
.mp-choice.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.bulk-open { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--foreground); background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; cursor: pointer; }
.bulk-open:hover { border-color: var(--primary); color: var(--primary); }
.bulk-open svg { flex: 0 0 auto; color: var(--primary); }
.bulk-select { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.bulk-select select { flex: 1 1 auto; min-width: 0; font: inherit; font-size: .92rem; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--hairline); background: #fff; color: var(--foreground); }
.mail-preview-meta .mp-title { font-size: 1.02rem; margin-bottom: 8px; white-space: normal; }
.mail-preview-meta .mp-seg, .mail-preview-meta .mp-seg .muted { white-space: normal; }
.bulk-custom { margin: 2px 0 10px; }
.bulk-field { display: block; margin: 0 0 9px; }
.bulk-field .mp-k { display: block; margin-bottom: 4px; }
.bulk-field input, .bulk-field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: .92rem; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--hairline); background: #fff; color: var(--foreground); }
.bulk-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.mail-preview-meta .mp-line { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-preview-meta .mp-line + .mp-line { margin-top: 2px; }
.mail-preview-meta .mp-k { display: inline-block; min-width: 44px; color: var(--muted-foreground); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mail-preview .modal-close { position: static; flex: 0 0 auto; }
.mail-preview-body { flex: 1 1 auto; min-height: 200px; background: #f4efe6; }
.mail-preview-body iframe { width: 100%; height: 100%; border: 0; display: block; background: #f4efe6; }
.mail-preview-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--hairline); background: #fff; flex: 0 0 auto; }
.mail-preview-actions-right { display: flex; align-items: center; gap: 10px; }
.mail-preview-actions .btn { padding: 9px 18px; }
.mail-preview-actions .btn-test { font-size: .88rem; }
.mail-preview-actions .btn-test:disabled, .mail-preview-actions [data-bulk-send]:disabled { opacity: .5; cursor: not-allowed; }
.icon-hist { background: none; border: 0; cursor: pointer; color: var(--muted-foreground); padding: 6px; border-radius: 8px; line-height: 0; }
.icon-hist:hover { color: var(--primary); background: rgba(34, 62, 99, .08); }
.icon-rank { background: none; border: 0; cursor: pointer; color: var(--muted-foreground); padding: 6px; border-radius: 8px; line-height: 0; }
.icon-rank:hover { color: var(--primary); background: rgba(34, 62, 99, .08); }
/* Popup « Classement de compatibilité » : profils dans l'ordre de proposition. */
/* Popup « Classement » : fiche du membre à GAUCHE, classement à DROITE. */
.rank-modal-inner { max-width: 820px; max-height: 88vh; overflow-y: auto; }
.rank-split { display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: start; margin-top: 6px; }
.rank-profile { min-width: 0; }
.rank-profile .profile-card { margin: 0; box-shadow: none; max-width: 100%; }
.rank-right { min-width: 0; }
.rank-list { margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rank-item { display: grid; grid-template-columns: 26px 40px 1fr auto; gap: 11px; align-items: center; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--foreground); background: var(--card); }
.rank-item:hover { border-color: var(--primary); }
/* Pastille de rang colorée par pertinence (vert/orange/rouge). */
.rank-num { width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; justify-self: center; color: #fff; font-family: var(--font-round); font-weight: 800; font-size: .76rem; }
.rank-av { width: 40px; height: 40px; border-radius: 10px; background: var(--muted); background-size: cover; background-position: center; }
.rank-av-empty { background: linear-gradient(150deg, var(--secondary), var(--muted)); }
.rank-pct { font-family: var(--font-round); font-weight: 800; color: var(--primary); font-size: 1rem; text-align: right; white-space: nowrap; }
.rank-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rank-info strong { font-weight: 700; }
.rank-loc, .rank-why { font-size: .82rem; line-height: 1.32; }
.rank-why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-rep { font-size: .7rem; color: var(--accent); font-weight: 700; }
/* Pastilles de séquence : profil du jour (en cours) / profil passé (J-X). */
.rank-badge { display: inline-block; margin-left: 7px; padding: 1px 8px; border-radius: 999px; font-size: .67rem; font-weight: 700; letter-spacing: .01em; background: var(--muted); color: var(--muted-foreground); vertical-align: middle; white-space: nowrap; }
.rank-badge-today { background: rgba(176, 138, 79, .16); color: #8a6d3b; }
.rank-dot { display: block; width: 13px; height: 13px; border-radius: 999px; justify-self: center; }
/* Codes couleur de pertinence, appliqués à la pastille-numéro (à venir/jour) ou au point (jour/passé). */
.rank-rel-green { background: #3F6B4E; }
.rank-rel-orange { background: #C6852B; }
.rank-rel-red { background: #C0392B; }
/* Pastille de rang cliquable → petit menu de couleur (pertinence) */
.rank-num-btn { cursor: pointer; transition: box-shadow .12s, transform .06s; }
.rank-num-btn:hover { box-shadow: 0 0 0 3px rgba(16, 32, 39, .16); }
.rank-num-btn:active { transform: scale(.93); }
.rank-relmenu { position: absolute; z-index: 130; min-width: 210px; padding: 5px; background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: 0 12px 34px rgba(16, 24, 40, .2); }
.rank-relmenu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; font: inherit; font-size: .88rem; color: var(--foreground); background: none; border: 0; border-radius: 8px; cursor: pointer; text-align: left; }
.rank-relmenu button:hover { background: var(--muted); }
.rank-reldot { width: 13px; height: 13px; border-radius: 999px; flex-shrink: 0; }
.rank-reldot.d-green { background: #3F6B4E; }
.rank-reldot.d-orange { background: #C6852B; }
.rank-reldot.d-red { background: #C0392B; }
.rank-reldot.d-auto { background: conic-gradient(#3F6B4E 0 120deg, #C6852B 120deg 240deg, #C0392B 240deg 360deg); }
.rank-item.rank-today { border-color: rgba(176, 138, 79, .5); background: rgba(176, 138, 79, .06); }
.rank-item.rank-past { opacity: .68; }
@media (max-width: 640px) { .rank-split { grid-template-columns: 1fr; gap: 16px; } }
.icon-edit { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: var(--muted-foreground); padding: 6px; border-radius: 8px; line-height: 0; }
.icon-edit:hover { color: var(--primary); background: rgba(34, 62, 99, .08); }
.acct-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
/* Historique d'un compte (modale AJAX) : timeline des mouvements */
.history-modal-inner { max-width: 520px; max-height: 88vh; overflow-y: auto; }
.hist-list { list-style: none; margin: 10px 0 0; padding: 0; }
.hist-item { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--hairline); text-align: left; }
.hist-item:first-child { border-top: 0; }
.hist-date { flex: 0 0 108px; font-size: .8rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; padding-top: 1px; }
.hist-body { display: flex; flex-direction: column; gap: 2px; }
.hist-detail { font-size: .85rem; color: var(--muted-foreground); }
.hist-email-line { display: flex; align-items: center; gap: 8px; }
.hist-info-link { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); padding: 4px; margin: -4px 0; border-radius: 7px; line-height: 0; }
.hist-info-link:hover { background: rgba(34, 62, 99, .1); }
@media (max-width: 560px) { .hist-item { flex-direction: column; gap: 2px; } .hist-date { flex-basis: auto; } }
/* Entête Comptes + bouton corbeille (restauration des suppressions) */
.accounts-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.accounts-trash-btn { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--hairline); background: var(--card); color: var(--muted-foreground); border-radius: 12px; cursor: pointer; transition: background .15s, color .15s; }
.accounts-trash-btn:hover { color: var(--primary); background: var(--muted); }
.accounts-head-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.accounts-filter { position: relative; display: inline-block; }
.accounts-filter::after { content: ''; position: absolute; right: 13px; top: calc(50% - 4px); width: 7px; height: 7px; border-right: 2px solid var(--muted-foreground); border-bottom: 2px solid var(--muted-foreground); transform: rotate(45deg); pointer-events: none; }
.accounts-filter select { -webkit-appearance: none; appearance: none; height: 40px; padding: 0 34px 0 13px; font: inherit; font-size: .9rem; color: var(--foreground); background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; cursor: pointer; }
.accounts-filter select:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
/* Menu « Filtrer » multi-sections (remplace le select de statut) */
.accounts-filter2 { position: relative; display: inline-block; }
.accounts-filter2-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; font: inherit; font-size: .9rem; color: var(--foreground); background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; cursor: pointer; }
.accounts-filter2-btn:hover { background: var(--muted); }
.accounts-filter2-btn.is-active { border-color: var(--primary); color: var(--primary); }
.accounts-filter2-btn svg { opacity: .8; }
.filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; font-size: .72rem; font-weight: 700; color: #fff; background: var(--primary); border-radius: 999px; }
.filter-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 300px; max-width: calc(100vw - 40px); max-height: min(70vh, 560px); overflow-y: auto; padding: 4px 6px; background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: 0 12px 34px rgba(16, 24, 40, .16); }
.filter-section { padding: 9px 8px 11px; border-bottom: 1px solid var(--hairline); }
.filter-section:last-of-type { border-bottom: 0; }
.filter-section-title { margin: 0 0 7px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-foreground); }
.filter-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-opt { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-size: .85rem; border: 1px solid var(--hairline); border-radius: 999px; cursor: pointer; user-select: none; }
.filter-opt input { margin: 0; accent-color: var(--primary); }
.filter-opt:has(input:checked) { border-color: var(--primary); background: var(--muted); color: var(--primary); font-weight: 600; }
.filter-range { display: flex; align-items: flex-end; gap: 8px; }
.filter-range-field { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--muted-foreground); }
.filter-range-field input { width: 72px; padding: 7px 9px; font: inherit; color: var(--foreground); background: var(--card); border: 1px solid var(--hairline); border-radius: 9px; }
.filter-range-sep { padding-bottom: 8px; color: var(--muted-foreground); }
.filter-select { width: 100%; padding: 8px 10px; font: inherit; font-size: .85rem; color: var(--foreground); background: var(--card); border: 1px solid var(--hairline); border-radius: 9px; }
.filter-multi { display: flex; flex-direction: column; gap: 7px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips:empty { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 5px 4px 11px; font-size: .84rem; font-weight: 600; color: var(--primary); background: var(--muted); border: 1px solid var(--primary); border-radius: 999px; }
.filter-chip button { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; font-size: 15px; line-height: 1; color: var(--primary); background: rgba(0, 0, 0, .07); border: 0; border-radius: 999px; cursor: pointer; }
.filter-chip button:hover { background: rgba(0, 0, 0, .16); }
.filter-actions { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; padding: 10px 8px 8px; background: var(--card); border-top: 1px solid var(--hairline); }
.accounts-search { position: relative; display: inline-flex; align-items: center; }
.accounts-search svg { position: absolute; left: 11px; color: var(--muted-foreground); pointer-events: none; }
.accounts-search input { height: 40px; width: 210px; max-width: 46vw; padding: 0 12px 0 34px; font: inherit; font-size: .9rem; color: var(--foreground); background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; }
.accounts-search input:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.accounts-search-form { display: inline-flex; align-items: center; gap: 10px; }
.accounts-date { height: 40px; padding: 0 11px; font: inherit; font-size: .9rem; color: var(--foreground); background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; cursor: pointer; }
.accounts-date:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.accounts-more { display: flex; justify-content: center; padding: 18px 6px 4px; }
.accounts-more .btn:disabled { opacity: .6; cursor: default; }
/* Contrôleur de matchs (page Algorithme) */
.ctrl-list { display: flex; flex-direction: column; gap: 8px; }
.ctrl-match { display: flex; flex-direction: column; gap: 8px; padding: 9px 12px; border: 1px solid var(--hairline); border-radius: 12px; }
.ctrl-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.ctrl-count { text-align: center; font-size: .95rem; color: var(--foreground); margin: 0 0 4px; }
.ctrl-stats { text-align: center; font-size: .9rem; color: var(--muted-foreground); margin: 0 0 14px; }
.ctrl-rate { display: flex; justify-content: center; gap: 8px; }
.ctrl-thumb { border: 1px solid var(--hairline); background: var(--card); border-radius: 999px; padding: 2px 15px; font-size: 1rem; line-height: 1.5; cursor: pointer; opacity: .5; filter: grayscale(1); }
.ctrl-thumb:hover, .ctrl-thumb.on { opacity: 1; filter: none; }
.ctrl-thumb.up.on { background: #E6F3EC; border-color: #b6ddc4; }
.ctrl-thumb.down.on { background: #FBEDEB; border-color: #f0c3bd; }
.ctrl-thumb.meh.on { background: #F1EFE9; border-color: #d9d3c5; }
.ctrl-person { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--foreground); min-width: 0; }
.ctrl-person.right { flex-direction: row-reverse; text-align: right; }
.ctrl-av { width: 40px; height: 40px; border-radius: 10px; background: var(--muted); background-size: cover; background-position: center; flex-shrink: 0; }
.ctrl-av-empty { background: linear-gradient(150deg, var(--secondary), var(--muted)); }
.ctrl-txt { display: flex; flex-direction: column; min-width: 0; }
.ctrl-name { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctrl-loc { font-size: .8rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctrl-person:hover .ctrl-name { text-decoration: underline; }
.ctrl-pct { flex-shrink: 0; font-weight: 800; color: var(--primary); background: var(--rose-soft); padding: 4px 11px; border-radius: 999px; font-size: .88rem; white-space: nowrap; }
.ctrl-center { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ctrl-rep { font-size: .72rem; font-weight: 700; color: #8a5a12; background: #FBF0DA; border: 1px solid #ecd6a8; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ctrl-match.is-rep { border-style: dashed; border-color: #e6cfa0; background: #fefbf4; }
.ctrl-rep-inline { font-weight: 700; color: #8a5a12; background: #FBF0DA; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
@media (max-width: 560px) { .ctrl-loc { display: none; } }
/* --- Statistiques --- */
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.stat-head .admin-h1 { margin: 0; }
/* Sélecteur de période : un seul contrôle (bouton + calendrier de plage) */
.stat-range { position: relative; display: inline-block; }
.stat-range-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--muted); border: 1px solid var(--hairline); border-radius: 10px; padding: 8px 13px; font-family: inherit; font-size: .84rem; font-weight: 700; color: var(--primary); cursor: pointer; }
.stat-range-btn:hover { background: var(--card); border-color: var(--primary); }
.stat-range-caret { font-size: .66rem; color: var(--muted-foreground); }
.rp { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: 0 14px 36px rgba(16,42,67,.2); padding: 12px; width: 272px; }
.rp[hidden] { display: none !important; }
.rp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rp-month { font-weight: 700; font-size: .86rem; color: var(--primary); text-transform: capitalize; }
.rp-nav { border: 0; background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--muted-foreground); padding: 0 9px; border-radius: 6px; }
.rp-nav:hover { background: var(--muted); color: var(--primary); }
.rp-dow, .rp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.rp-dow span { text-align: center; font-size: .67rem; font-weight: 700; color: var(--muted-foreground); padding: 3px 0; }
.rp-day { border: 0; background: none; font-family: inherit; font-size: .78rem; padding: 6px 0; border-radius: 7px; cursor: pointer; color: var(--foreground); }
.rp-day:hover:not(:disabled) { background: var(--muted); }
.rp-day:disabled, .rp-day.rp-off { color: #c9ced4; cursor: default; }
.rp-day.rp-in { background: var(--rose-soft); border-radius: 0; }
.rp-day.rp-start, .rp-day.rp-end { background: var(--primary); color: #fff; font-weight: 700; }
.rp-hint { font-size: .72rem; color: var(--muted-foreground); text-align: center; margin: 9px 0 0; }
.stat-list { display: flex; flex-direction: column; gap: 13px; }
.stat-row + .stat-row { margin-top: 11px; }
.stat-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.stat-row-lbl { font-weight: 600; font-size: .9rem; color: var(--foreground); display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-row-val { font-weight: 800; font-size: .92rem; color: var(--foreground); white-space: nowrap; flex-shrink: 0; }
.stat-row-extra { font-weight: 500; font-size: .78rem; color: var(--muted-foreground); }
.stat-track { height: 8px; background: var(--muted); border-radius: 999px; overflow: hidden; }
.stat-fill { height: 100%; border-radius: 999px; min-width: 3px; transition: width .3s ease; }
.src-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
/* Écart uniforme au-dessus de chaque bloc : neutralise .dash-h2:first-of-type (qui vaut par parent,
   et donnait donc 4px au 1er titre de la page comme au 1er titre de chaque colonne). */
.stats-page .dash-h2:first-of-type { margin-top: 26px; }
/* Deux colonnes continues : les blocs s'empilent dans leur colonne sans se caler sur la hauteur du voisin. */
.stat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
.stat-cols > div, .stat-col { min-width: 0; }
@media (max-width: 760px) { .stat-cols { grid-template-columns: 1fr; } }
/* Revue des matchs : pop-up plein écran, une fiche de chaque côté, % + boutons au centre */
.ctrl-actions { text-align: center; margin: 8px 0 4px; }
.ctrl-alldone { text-align: center; font-weight: 700; color: #2E8F6B; margin: 8px 0; }
.rv-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(16,32,43,.55); display: flex; align-items: center; justify-content: center; padding: 18px; }
.rv-modal[hidden] { display: none !important; }
.rv-inner { background: var(--card); border-radius: 18px; width: min(1180px, 100%); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(16,32,43,.32); }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--hairline); flex-shrink: 0; }
.rv-pos { font-weight: 800; color: var(--primary); font-size: .9rem; }
.rv-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted-foreground); padding: 0 4px; }
.rv-close:hover { color: var(--foreground); }
.rv-body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; padding: 14px; overflow: hidden; align-items: start; }
.rv-body[hidden] { display: none !important; }
.rv-card { overflow-y: auto; max-height: calc(92vh - 110px); min-width: 0; }
.rv-center { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 4px; align-self: center; }
.rv-rate { flex-wrap: wrap; justify-content: center; }
.rv-hint { font-size: .74rem; color: var(--muted-foreground); text-align: center; max-width: 150px; margin: 2px 0 0; line-height: 1.4; }
.rv-err { font-size: .76rem; color: #b71c1c; font-weight: 600; text-align: center; max-width: 170px; margin: 6px 0 0; line-height: 1.35; }
.rv-done { padding: 56px 20px; text-align: center; }
.rv-done[hidden] { display: none !important; }
.rv-done-txt { font-size: 1.15rem; font-weight: 800; color: #2E8F6B; margin: 0 0 8px; }
/* Historique dépliable des matchs contrôlés */
.ctrl-hist { margin-top: 18px; border-top: 1px solid var(--hairline); padding-top: 12px; }
.ctrl-hist > summary { cursor: pointer; font-weight: 700; color: var(--primary); font-size: .95rem; padding: 6px 0; list-style: none; }
.ctrl-hist > summary::-webkit-details-marker { display: none; }
.ctrl-hist > summary::before { content: "▸ "; color: var(--muted-foreground); }
.ctrl-hist[open] > summary::before { content: "▾ "; }
.ctrl-hist .ctrl-list { margin-top: 12px; }
@media (max-width: 900px) { .rv-body { grid-template-columns: 1fr; } .rv-card { max-height: 38vh; } }
/* Motifs de refus pré-rédigés */
.reject-presets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 12px; }
.reject-preset { font-size: .8rem; font-weight: 600; color: var(--primary); background: var(--muted); border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: background .12s, border-color .12s; }
.reject-preset:hover { background: var(--card); border-color: var(--primary); }
.reject-final { display: flex; align-items: center; gap: 8px; text-align: left; font-size: .88rem; margin: 4px 0 12px; color: var(--foreground); cursor: pointer; }
.reject-final input { width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; margin: 0; }
.accounts-trash-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 999px; }
.trash-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; }
.trash-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--muted); }
.trash-meta { display: flex; flex-direction: column; min-width: 0; }
.trash-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.trash-email { font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.trash-sub { font-size: .76rem; color: var(--muted-foreground); }
.role-badge { display: inline-block; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.role-badge-wait { background: var(--accent); }
.role-badge-ok { background: #2E8F6B; }        /* validé → vert */
.role-badge-draft { background: #C0873A; }     /* brouillon / en attente → orange */
.role-badge-rejected { background: #8F2F28; }  /* refusé → rouge foncé */
.mod-list { display: flex; flex-direction: column; gap: 8px; }
.mod-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--foreground); }
.mod-av { width: 52px; height: 52px; border-radius: 12px; background: var(--muted); background-size: cover; background-position: center; flex-shrink: 0; }
.mod-av-empty { background: linear-gradient(150deg, var(--secondary), var(--muted)); }
/* Vignette photo en tête de ligne du tableau Comptes */
.admin-table th.acct-thumb, .admin-table td.acct-thumb { width: 46px; padding-right: 4px; }
.admin-table th.col-prenom { width: 100px; }
.admin-table td.acct-prenom { font-weight: 600; color: var(--foreground); white-space: nowrap; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.acct-av { display: block; width: 34px; height: 34px; border-radius: 9px; background: var(--muted); background-size: cover; background-position: center; }
.acct-av-empty { background: linear-gradient(150deg, var(--secondary), var(--muted)); }
.mod-info { flex: 1; }
.mod-cta { color: var(--primary); font-weight: 600; font-size: .9rem; }
/* Ligne de modération : zone cliquable (avatar+infos) + actions (historique · examiner) à droite. */
.mod-row-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.mod-row-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mod-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.mod-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mod-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.mod-photo { position: relative; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: var(--muted); cursor: grab; user-select: none; }
.mod-photo:active { cursor: grabbing; }
.mod-photo.dragging { opacity: .4; outline: 2px dashed var(--primary); outline-offset: -2px; }
.mod-photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ph-reject { position: absolute; bottom: 6px; right: 6px; border: none; background: rgba(166,64,55,.9); color: #fff; font-size: .72rem; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
/* Contrôle anti-catfishing (recherche inversée + réutilisation de photos) */
.cf-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cf-card h3 svg { flex-shrink: 0; }
.cf-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.cf-row:last-child { border-bottom: 0; }
.cf-thumb { width: 44px; height: 56px; border-radius: 8px; background: var(--muted); background-size: cover; background-position: center; flex-shrink: 0; }
.cf-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .85rem; min-width: 0; }
.cf-links a { color: var(--primary); font-weight: 600; text-decoration: none; }
.cf-links a:hover { text-decoration: underline; }
.cf-dup { flex-basis: 100%; color: var(--danger); font-weight: 700; font-size: .8rem; }
/* Lightbox d'agrandissement d'une photo en modération (clic sur la vignette) */
.mod-photo { cursor: zoom-in; }
.img-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(16,32,39,.82); backdrop-filter: blur(2px); }
.img-lightbox[hidden] { display: none; }
.img-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.55); cursor: default; }
.img-lightbox-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 999px; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.img-lightbox-close:hover { background: rgba(255,255,255,.3); }
.img-lightbox-tools { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 2; }
.lb-rotate { width: 48px; height: 48px; border-radius: 999px; border: none; background: rgba(255,255,255,.92); color: #16202B; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.lb-rotate:hover { background: #fff; }
.lb-rotate:disabled { opacity: .5; cursor: default; }
.lb-restore { background: #FBEAD2; color: #8A5A12; } /* « rétablir l'original » : ambre, pour se distinguer des rotations/recadrage */
.lb-restore:hover { background: #F7DFBE; }
/* Recadrage : la scène épouse l'image, le calque de crop se superpose, la sélection masque l'extérieur. */
.lb-stage { position: relative; display: inline-block; line-height: 0; }
.lb-crop { position: absolute; inset: 0; }
.lb-crop-box { position: absolute; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 9999px rgba(16, 32, 39, .62); cursor: move; touch-action: none; }
.lb-crop-h { position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 999px; box-shadow: 0 1px 5px rgba(0, 0, 0, .45); touch-action: none; }
.lb-crop-h.tl { top: -9px; left: -9px; cursor: nwse-resize; }
.lb-crop-h.tr { top: -9px; right: -9px; cursor: nesw-resize; }
.lb-crop-h.bl { bottom: -9px; left: -9px; cursor: nesw-resize; }
.lb-crop-h.br { bottom: -9px; right: -9px; cursor: nwse-resize; }
.img-lightbox-crop-actions { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 3; }
.lb-act { border: none; border-radius: 999px; padding: 11px 22px; font-size: .92rem; font-weight: 700; cursor: pointer; background: var(--primary); color: #fff; font-family: inherit; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.lb-act:hover { background: var(--primary-deep); }
.lb-act:disabled { opacity: .6; cursor: default; }
.lb-act.ghost { background: rgba(255, 255, 255, .92); color: #16202B; }
.lb-act.ghost:hover { background: #fff; }
.mod-detail-card { display: flex; flex-direction: column; }
.mod-detail-card h3 { margin-bottom: 6px; }
.kv { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.kv:first-of-type { padding-top: 4px; }
.kv:last-child { border-bottom: none; padding-bottom: 2px; }
.kv > span { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-foreground); font-weight: 600; }
.kv > strong { font-weight: 500; font-size: .95rem; line-height: 1.5; color: var(--card-foreground); overflow-wrap: anywhere; }
.mod-actions-card { display: flex; flex-direction: column; gap: 10px; }
.mod-act { display: flex; gap: 8px; margin: 0; }
.mod-decision { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.report-card { margin-bottom: 12px; }
.report-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.report-details { background: var(--muted); padding: 10px 14px; border-radius: 10px; font-size: .9rem; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.admin-shell code { background: var(--muted); padding: 2px 6px; border-radius: 5px; font-size: .82rem; }

@media (max-width: 820px) {
  .mod-detail { grid-template-columns: 1fr; }
  .admin-side { width: 64px; padding: 16px 8px; }
  .admin-brand span, .side-link .side-label { display: none; }
  .side-link { justify-content: center; gap: 0; position: relative; }
  .side-badge { position: absolute; top: 4px; right: 6px; margin: 0; }
  .admin-main { padding: 20px 16px; }
}


/* ===================================================================
   Pré-inscription + questionnaire catholique
   =================================================================== */

/* Formulaire de pré-inscription (hero + bande CTA) */
.waitlist-form { display: flex; gap: 10px; max-width: 460px; margin-top: 6px; flex-wrap: wrap; }
.waitlist-form input[type="email"] {
  flex: 1; min-width: 200px; padding: 14px 18px; font: inherit; color: var(--foreground);
  background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.waitlist-form input[type="email"]:focus { outline: 2px solid #fff; }
.waitlist-form .btn { white-space: nowrap; }
.waitlist-form-dark { margin: 0 auto; justify-content: center; }
.waitlist-form-dark input[type="email"] { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.waitlist-form-dark input::placeholder { color: rgba(255,255,255,.7); }

.hero-badge {
  display: inline-block; margin-bottom: 18px; padding: 8px 16px;
  background: rgba(180,138,79,.28); border: 1px solid rgba(228,139,178,.5);
  border-radius: 999px; font-size: .86rem; font-weight: 600; color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* Questionnaire foi : aide de champ + listes de chips */
.field-help { font-size: .88rem; color: var(--muted-foreground); margin: 0 0 12px; }
.field-opt { font-weight: 400; font-size: .82em; color: var(--muted-foreground); }
.photo-warn {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 18px 0; padding: 10px 13px;
  background: rgba(176, 69, 59, .08); border: 1px solid rgba(176, 69, 59, .28);
  border-radius: 12px; font-size: .86rem; line-height: 1.45; color: #8F3A31;
}
.scroll-list { max-height: 320px; overflow-y: auto; padding: 4px; margin: -4px; -webkit-overflow-scrolling: touch; }
.scroll-list .radio-card { padding: 11px 14px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-check span {
  display: inline-block; padding: 9px 15px; border: 1px solid var(--border);
  border-radius: 999px; font-size: .9rem; background: var(--card); transition: all .15s ease;
}
.chip-check input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip-check input:checked + span::before { content: '\2713'; margin-right: 6px; font-weight: 700; }
.chip-check input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.chip-check.chip-disabled span { opacity: .4; cursor: not-allowed; }

/* Tags sur la fiche profil (sensibilité / communautés) */
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 4px; }
.tag-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--accent); margin-right: 2px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .84rem; background: var(--secondary); color: var(--primary); }

@media (max-width: 560px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn, .waitlist-form input[type="email"] { width: 100%; }
}

/* ---- Onboarding foi : sur-titre d'étape + cartes d'importance ---- */
.ob-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.ob-section h1 { margin-bottom: .2em; }

.imp-cards { display: grid; gap: 12px; margin-top: 6px; }
.imp-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.imp-card:active { transform: scale(.99); }
.imp-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.imp-sym { font-size: 1.5rem; line-height: 1; color: var(--accent); width: 28px; text-align: center; flex-shrink: 0; }
.imp-body { display: flex; flex-direction: column; }
.imp-label { font-weight: 700; font-size: 1.05rem; }
.imp-desc { color: var(--muted-foreground); font-size: .9rem; }
.imp-card:has(input:checked) { border-color: var(--primary); background: var(--secondary); box-shadow: 0 0 0 2px var(--primary) inset; }
.imp-card:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Bloc consentements sur l'étape identité */
.consent-block { padding-top: 10px; margin-top: 4px; margin-bottom: 12px; display: grid; gap: 12px; }

/* Carte d'intro de l'onboarding */
.intro-card { text-align: left; border-left: 4px solid var(--accent); margin: 4px 0 4px; }
.intro-card + .form { margin-top: 30px; }
.intro-card p { color: var(--foreground); }
.intro-card p:last-of-type { margin-bottom: 0; }
.intro-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--hairline); padding-top: 16px; }
.intro-points li { position: relative; padding-left: 26px; font-size: .95rem; }
.intro-points li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 700; }

/* ---- Pages légales (CGU / Confidentialité) ---- */
/* ---- Pages de contenu (SEO) ---- */
.page-article .article { padding: 40px 0 20px; }
.container-article { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.article-crumb { font-size: .85rem; color: var(--muted-foreground); margin: 0 0 14px; }
.article-crumb a { color: var(--muted-foreground); text-decoration: none; }
.article-crumb span { margin: 0 4px; }
.container-article h1 { font-family: var(--font-brand); font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.1; color: var(--foreground); margin: 0 0 .35em; }
.article-lead { font-size: 1.18rem; line-height: 1.6; color: var(--muted-foreground); margin: 0 0 1.6em; }
/* Contrôleur de matchs : lien « Voir la fiche du compte » sous chaque carte de la modale de revue. */
.ctrl-card-account { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 9px 12px; border: 1px solid var(--border, rgba(34,62,99,.16)); border-radius: 10px; color: #223E63; font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .12s, border-color .12s; }
.ctrl-card-account:hover { background: #F1F4F9; border-color: rgba(34,62,99,.32); }
/* En-têtes de colonnes triables (admin Comptes) : lien discret, flèche sur la colonne active. */
.admin-table th a.th-sort { color: inherit; text-decoration: none; white-space: nowrap; cursor: pointer; }
.admin-table th a.th-sort:hover { text-decoration: underline; }
.admin-table th a.th-sort.is-active { color: #223E63; font-weight: 700; }
.th-sort-arrow { font-size: .72em; vertical-align: 1px; }
/* Vidéo intégrée dans un article (YouTube nocookie) : player 16/9 arrondi + légende discrète. */
.article-video { margin: 1.4em 0 1.8em; }
.article-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; box-shadow: 0 10px 30px rgba(34, 62, 99, .12); background: #000; }
.article-video-caption { margin: 10px 2px 0; font-size: .88rem; color: var(--muted-foreground); }
.container-article h2 { font-family: var(--font-brand); font-size: 1.5rem; color: var(--primary); margin: 1.6em 0 .4em; }
.container-article p { font-size: 1.05rem; line-height: 1.7; color: var(--foreground); margin: 0 0 1.1em; }
/* :not(.btn) — sinon cette règle (0,1,1) bat .btn-primary (0,1,0) et le CTA devient navy sur navy. */
.container-article a:not(.btn) { color: var(--primary); font-weight: 600; }
.article-cta { margin: 2.4em 0 1.6em; padding: 28px; background: var(--secondary); border: 1px solid var(--hairline); border-radius: 18px; text-align: center; }
.article-cta h2 { margin: 0 0 16px; }
.article-cta .waitlist-form { justify-content: center; margin: 0 auto; }
.article-cta .hero-note { margin: 16px 0 0; color: rgba(22,32,43,.6); font-size: .9rem; }
.article-related { margin-top: 2em; border-top: 1px solid var(--hairline); padding-top: 1.2em; }
.article-related h2 { font-size: 1.15rem; margin: 0 0 .4em; }
.article-related ul { margin: 0; padding-left: 1.1em; }
.article-related li { margin: .3em 0; }

.legal-body { max-width: 720px; margin: 0 auto; }
.legal-body h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.legal-date { color: var(--muted-foreground); font-size: .9rem; margin: -.4em 0 2em; }
.legal-body h2 { font-size: 1.25rem; margin: 1.8em 0 .5em; color: var(--primary); }
.legal-body p, .legal-body li { color: var(--foreground); line-height: 1.65; }
.legal-body ul { padding-left: 1.3em; display: grid; gap: 6px; margin: 0 0 1em; }
.legal-body a { color: var(--primary); }
.legal-body .note {
  background: var(--secondary); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 2em; color: var(--foreground);
}
.legal-back { margin-top: 2.5em; border-top: 1px solid var(--hairline); padding-top: 1.5em; }
.legal-back a { color: var(--muted-foreground); text-decoration: none; font-weight: 600; }
.legal-back a:hover { color: var(--primary); }

/* Landing : deux sections côte à côte (Comment ça marche / Un espace de confiance) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.col-block .eyebrow { text-align: left; }
.col-block h2 { text-align: left; font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 22px; }
.two-col .steps, .two-col .checklist { max-width: none; margin: 0; }
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Onboarding : note 1-3 par case cochée ---- */
.rate-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--muted-foreground); margin-bottom: 14px; }
.rate-legend strong { color: var(--primary); }
.rate-list { display: grid; gap: 10px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.rate-label { flex: 1; font-size: .95rem; }
.rate-opts { display: flex; gap: 6px; flex-shrink: 0; }
.rate-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.rate-opt span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); font-weight: 700; cursor: pointer; color: var(--muted-foreground); background: var(--background); transition: all .12s ease; }
.rate-v1 input:checked + span { background: #9aa0ab; border-color: #9aa0ab; color: #fff; }
.rate-v2 input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.rate-v3 input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.rate-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Message « Pas forcément » (préférence mariage) */
.marriage-note { display: none; font-size: .9rem; color: var(--danger); background: #FBEDEB; border: 1px solid var(--danger); border-radius: 12px; padding: 11px 15px; margin-top: 12px; }
.form:has(input[name="marriage_pref"][value="non"]:checked) .marriage-note { display: block; }
/* « Pas forcément » choisi : on empêche de continuer (l'appli est en vue du mariage). */
.form:has(input[name="marriage_pref"][value="non"]:checked) .btn-block { opacity: .45; pointer-events: none; filter: grayscale(.35); }

/* --- Gestionnaire des domaines jetables (modale Réglages) --- */
.disp-inner { width: min(560px, 100%); }
.disp-body { padding: 16px; overflow-y: auto; }
.disp-lead { color: var(--muted-foreground); font-size: .88rem; margin: 0 0 14px; line-height: 1.5; }
.disp-add { display: flex; gap: 8px; }
.disp-add input { flex: 1; min-width: 0; }
.disp-err { color: #C0392B; font-size: .82rem; margin: 8px 0 0; }
.disp-err[hidden] { display: none !important; }
.disp-h { margin: 18px 0 8px; font-size: .9rem; color: var(--foreground); }
.disp-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; max-height: 300px; overflow-y: auto; align-content: flex-start; padding: 2px; }
.disp-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--muted); border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .85rem; color: var(--foreground); }
.disp-chip-x { background: none; border: 0; cursor: pointer; font-size: 1.15rem; line-height: 1; color: var(--muted-foreground); padding: 0 3px; }
.disp-chip-x:hover { color: #C0392B; }
.disp-empty { color: var(--muted-foreground); font-size: .85rem; font-style: italic; }
.disp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--hairline); flex-shrink: 0; }
.disp-note { font-size: .78rem; color: var(--muted-foreground); }
@media (max-width: 560px) { .disp-foot { flex-direction: column; align-items: stretch; } }

/* --- Carte « Envoi d'e-mails » : sélecteur 3 voies + config conditionnelle --- */
.seg-toggle.seg-3 { width: 440px; }
.seg-toggle.seg-3 .seg-thumb { width: calc(33.333% - 2px); }
/* Trois libellés : ils doivent tenir sur une seule ligne, sinon le curseur se décale. */
.seg-toggle.seg-3 .seg-opt { white-space: nowrap; padding: 8px 6px; }
#mt-api:checked ~ .seg-thumb { transform: translateX(0); }
#mt-smtp:checked ~ .seg-thumb { transform: translateX(100%); }
#mt-mail:checked ~ .seg-thumb { transform: translateX(200%); }
#mt-api:checked ~ label[for="mt-api"],
#mt-smtp:checked ~ label[for="mt-smtp"],
#mt-mail:checked ~ label[for="mt-mail"] { color: var(--primary); }
/* Seule la config de la voie choisie est affichée ; les champs masqués restent soumis
   (display:none n'empêche pas l'envoi), donc les réglages des autres voies sont conservés. */
.mail-card .mt-cfg, .mail-card .mt-why { display: none; }
.mail-card:has(#mt-api:checked) .mt-cfg-api,
.mail-card:has(#mt-smtp:checked) .mt-cfg-smtp,
.mail-card:has(#mt-mail:checked) .mt-cfg-mail { display: block; }
.mail-card:has(#mt-api:checked) .mt-why-api,
.mail-card:has(#mt-smtp:checked) .mt-why-smtp,
.mail-card:has(#mt-mail:checked) .mt-why-mail { display: block; }
.mt-tests { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .seg-toggle.seg-3 { width: 100%; } .mt-tests .btn { flex: 1 1 auto; } }

/* --- Accueil : composition asymétrique de la section « Pourquoi » ---------------------------
   Remplace la grille de 3 cartes identiques : l'argument différenciant (« un profil par jour »)
   occupe un grand bloc, les deux autres sont secondaires. La symétrie parfaite des 3 colonnes
   était le principal marqueur de mise en page générique. */
.feat-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; align-items: stretch; }
.feat-side-col { display: flex; flex-direction: column; gap: 18px; }
.feat-side-col > .feat-side { flex: 1; }
.feat-lead { display: flex; flex-direction: column; justify-content: center; padding: 44px 40px; }
.feat-lead .feat-ic { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 22px; }
.feat-lead h3 { font-size: 1.85rem; line-height: 1.2; margin-bottom: 12px; }
.feat-lead p { font-size: 1rem; line-height: 1.62; }
.feat-side h3 { margin-bottom: 8px; }
.feat-side p { font-size: 1rem; line-height: 1.62; margin-bottom: 0; }
/* Icônes au trait : la taille du SVG suit la pastille qui le contient. */
.feat-svg { width: 55%; height: 55%; }
@media (max-width: 860px) {
  /* minmax(0,1fr) (et non 1fr) : le minimum d'une piste `1fr` est `auto` = min-content, or
     .feat-lead contient le carrousel en largeur fixe (288px) + padding → min-content ~340px, ce qui
     gonflait la colonne au-delà du conteneur (cases 342px, 2px hors écran, pas de marge à droite).
     minmax(0,1fr) borne la colonne à la largeur de la grille ; le carrousel rétrécit via max-width:100%. */
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .feat-lead { grid-row: auto; padding: 30px 26px; }
  .feat-lead h3 { font-size: 1.5rem; }
  /* En pleine largeur mobile, la bande réservée par l'icône crée un grand vide
     au-dessus du titre. On repasse en ligne : titre à gauche, icône à droite,
     texte pleine largeur en dessous — plus de trou. */
  .feat-side { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title icon" "text text"; align-items: center; column-gap: 14px; }
  /* Spécificité +1 (.feat-side-col) pour battre la règle de base `margin-bottom:-34px`
     (qui, restée active sur mobile, écrasait la ligne à 48px et faisait déborder
     l'icône 82px sur le paragraphe). Ici la ligne 1 fait toute la hauteur de l'icône
     → le paragraphe passe bien en dessous, sans chevauchement. */
  .feat-side-col .feat-side .feat-ic { grid-area: icon; margin: 0; align-self: center; }
  /* Chaque illustration est centrée dans un PNG carré 260×260 avec une marge transparente
     de largeur DIFFÉRENTE selon l'icône (croix étroite, carte large) → leur bord VISIBLE
     ne s'alignait pas (36–51px selon l'icône). `object-fit`/`object-position` sont inopérants
     ici (image carrée dans cadre carré, pas de letterbox). On décale donc chaque icône de la
     quantité exacte pour que son bord visible tombe à 23px = la marge du texte des cases de la
     section du dessous. Mobile uniquement ; le bureau garde son décalage vers le coin. */
  .feat-side-col .feat-side .feat-ic .feat-img[src*="feat-croix"]   { transform: translateX(28px); }
  .feat-side-col .feat-side .feat-ic .feat-img[src*="feat-anneaux"] { transform: translateX(22px); }
  .feat-side-col .feat-side .feat-ic .feat-img[src*="feat-lieu"]    { transform: translateX(13px); }
  .feat-side h3 { grid-area: title; margin: 0; }
  .feat-side p { grid-area: text; margin-top: 12px; }
}

/* --- Accueil : prévisualisation de profils au-dessus de « Un profil par jour » --- */
.pp-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-bottom: 26px; }
.pp-card { width: 300px; max-width: 100%; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); text-align: left; }
.pp-photo-wrap { position: relative; }
.pp-photo { aspect-ratio: 4 / 5; background-size: cover; background-position: center 22%; }
.pp-photo-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--secondary), var(--muted)); }
.pp-photo-empty span { font-family: "Cormorant Garamond", Georgia, serif; font-size: 4rem; font-weight: 600; color: var(--primary); opacity: .5; }
.pp-tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--primary); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 5px 11px; border-radius: 99px; box-shadow: 0 3px 10px rgba(16,32,39,.14); }
.pp-body { padding: 16px 18px 18px; }
.pp-name { font-size: 1.28rem; margin: 0 0 1px; color: var(--card-foreground); }
.pp-loc { color: var(--muted-foreground); margin: 0 0 12px; font-size: .92rem; }
.pp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pp-badges .badge { font-size: .72rem; padding: 4px 10px; }
.pp-mot { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--card-foreground); }

/* Icônes en image (illustrations à fond transparent) : posées directement, sans tuile.
   Alignées à droite sur leur propre ligne ; le texte reste en dessous, pleine largeur (pas de contournement).
   ⚠️ On cible `.feat-side .feat-ic` en DUR (pas `.feat-ic:has(.feat-img)`) : `:has()` n'existe qu'à partir
   de Chromium 105, et certains navigateurs de téléphones (ex. navigateur Honor) sont plus anciens → les règles
   :has() y étaient ignorées (pastille dégradée réapparue + icône non alignée). `.feat-ic` n'est utilisé QUE dans
   les cartes `.feat-side`, donc le ciblage direct est équivalent et fonctionne partout. */
.feat-side .feat-ic { display: flex; align-items: center; justify-content: flex-end; width: auto; height: auto; padding: 0; background: transparent; border: 0; border-radius: 0; margin-left: auto; margin-right: 0; }
.feat-img { display: block; width: 82px; height: 82px; object-fit: contain; }
/* L'icône est en haut à droite : on remonte le titre à côté d'elle pour resserrer la carte. */
.feat-side .feat-ic { margin-bottom: -34px; }
/* Image collée dans le coin haut-droit via transform (hors flux visuel seulement :
   le texte, lui, garde exactement sa position). */
.feat-side .feat-ic .feat-img { transform: translate(13px, -14px); }

/* --- Accueil : « Un profil par jour » en bloc large, avec les 2 aperçus de profils à côté --- */
.feat-wrap { display: flex; flex-direction: column; gap: 18px; }
.feat-lead--wide { display: grid; grid-template-columns: minmax(220px, .82fr) auto; gap: 34px; align-items: center; padding: 38px 40px; }
.feat-lead-copy .feat-ic { margin-bottom: 20px; }
.feat-lead-copy h3 { font-size: 1.85rem; line-height: 1.2; margin-bottom: 10px; }
.feat-lead-copy p { font-size: 1.04rem; line-height: 1.6; margin: 0; }
.pp-row--in { margin: 0; gap: 16px; flex-wrap: nowrap; }
.pp-row--in .pp-card { width: 234px; box-shadow: var(--shadow-sm); }
.feat-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 980px) {
  .feat-lead--wide { grid-template-columns: 1fr; gap: 24px; }
  .pp-row--in { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 600px) {
  .feat-sides { grid-template-columns: 1fr; }
  .pp-row--in .pp-card { width: 100%; max-width: 300px; }
}

/* --- Accueil : carrousel d'aperçu (une fiche visible, swipe) --- */
/* `overflow-x: clip` sur le carrousel : si le `.pp-track` (scroll interne) déborde sur un moteur qui
   ne le confine pas, le débordement est coupé ici et n'atteint pas la page. `clip` ne crée pas de
   conteneur de défilement → le swipe du `.pp-track` (overflow-x:auto) reste intact. */
.pp-carousel { position: relative; width: 288px; max-width: 100%; margin: 0 auto; overflow-x: clip; }
.pp-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: var(--radius); }
.pp-track::-webkit-scrollbar { display: none; }
.pp-track > .pp-card { flex: 0 0 100%; scroll-snap-align: center; width: auto; }
.pp-dots { display: flex; justify-content: center; gap: 7px; margin-top: 13px; }
.pp-dots span { width: 7px; height: 7px; border-radius: 99px; background: var(--hairline); cursor: pointer; transition: width .2s ease, background .2s ease; }
.pp-dots span.active { width: 20px; background: var(--primary); }
.pp-arrow { position: absolute; top: 36%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(16,32,43,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.pp-arrow-prev { left: 8px; }
.pp-arrow-next { right: 8px; }
.pp-arrow[hidden] { display: none; }
/* Prénoms plus petits — .pp-card .pp-name (0,2,0) pour battre « .feat-lead h3 » (0,1,1). */
.pp-card .pp-name { font-size: 1.05rem; line-height: 1.25; }

/* --- Accueil : carte profil compacte (photo + prénom + ville) au-dessus du titre du bloc lead --- */
/* Centrage du carrousel dans le bloc lead (flex colonne). On centre via `align-self: center`
   (flex natif, supporté partout) et NON via `margin: 0 auto` : certains moteurs de téléphones
   (ex. navigateur Honor) gèrent mal les marges auto dans un conteneur flex → carte décentrée. */
.feat-lead .pp-carousel { margin: 0 0 24px; align-self: center; }
.pp-card--compact .pp-photo { aspect-ratio: 1 / 1; }
.pp-card--compact .pp-photo-empty span { font-size: 3rem; }
.pp-card--compact .pp-body { padding: 13px 18px 15px; text-align: center; }
.pp-card--compact .pp-loc { margin: 0; }

/* --- Fiche admin : crayon « éditer » (à gauche de l'œil) + modale de correction manuelle --- */
.mod-titlerow-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.edit-modal .like-modal-inner { max-width: 540px; max-height: 90vh; overflow-y: auto; text-align: left; }
.edit-form { text-align: left; }
.edit-field { display: block; margin: 14px 0 0; text-align: left; }
.edit-field > span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 5px; }
.edit-field input, .edit-field select, .edit-field textarea { width: 100%; padding: 10px 12px; font: inherit; color: inherit; border: 1px solid var(--border); border-radius: 10px; background: var(--card); box-sizing: border-box; }
.edit-field textarea { resize: vertical; }
/* Attache non reconnue (saisie libre) : champ surligné ambre + note explicative. */
.edit-field.is-manual input { border-color: #d98a1f; background: #fff8ec; box-shadow: 0 0 0 3px rgba(217, 138, 31, .14); }
.origin-manual-note { display: block; margin-top: 7px; font-size: .8rem; line-height: 1.45; color: #a56511; }
.origin-manual-note[hidden] { display: none; }
.edit-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edit-subhead { margin: 22px 0 2px; font-weight: 700; color: var(--primary); border-top: 1px solid var(--border); padding-top: 16px; }
.edit-form .btn-block { margin-top: 22px; }
@media (max-width: 560px) { .edit-grid2 { grid-template-columns: 1fr; } }
/* Date de naissance en 3 menus Jour / Mois / Année (inscription + fiche admin) */
.birth-selects { display: flex; gap: 8px; }
.birth-selects select { flex: 1 1 0; min-width: 0; width: auto; margin-top: 0; }
.birth-caption { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }

/* --- Accueil (refonte « Comment ça marche / Un espace de confiance ») : parcours + carte de confiance --- */
.how-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: start; }
.how-journey .eyebrow, .trust-card .eyebrow { text-align: left; }
.how-journey h2 { text-align: left; font-size: clamp(1.6rem, 3vw, 2.05rem); margin-bottom: 4px; }
/* Parcours en timeline connectée */
.journey { list-style: none; margin: 28px 0 0; padding: 0; }
.journey-step { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 22px; padding-bottom: 34px; }
.journey-step:last-child { padding-bottom: 0; }
.journey-step::before { content: ''; position: absolute; left: 22px; top: 54px; bottom: -2px; width: 2px; background: linear-gradient(rgba(176,138,79,.55), rgba(176,138,79,.12)); }
.journey-step:last-child::before { display: none; }
/* Pastille « médaillon » : dégradé marial + fin liseré doré + chiffre serif crème. */
.journey-badge { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--font-round); font-size: 1.2rem; font-weight: 800; line-height: 1; text-align: center; letter-spacing: 0; color: #f4e9d2; background: linear-gradient(155deg, #33578c, #1a2f4c); box-shadow: 0 0 0 1.5px rgba(176,138,79,.5), inset 0 1px 1px rgba(255,255,255,.18), 0 7px 18px rgba(34,62,99,.28); }
.journey-body { padding-top: 3px; }
.journey-body strong { display: block; color: var(--foreground); font-size: 1.08rem; margin-bottom: 3px; }
.journey-body span { display: block; color: var(--muted-foreground); line-height: 1.6; }
/* Carte de confiance distincte, image de sécurité en haut à droite (sans contour) */
.trust-card { position: sticky; top: 100px; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 32px 30px; box-shadow: 0 20px 46px rgba(34,62,99,.10); }
.trust-badge-img { position: absolute; top: 22px; right: 22px; width: 72px; height: 72px; object-fit: contain; pointer-events: none; }
@media (max-width: 600px) { .trust-badge-img { width: 54px; height: 54px; top: 18px; right: 18px; } }
/* On aère l'eyebrow de la carte (gap au-dessus + en-dessous) : ça descend le titre juste ce qu'il faut pour dégager le bouclier. */
.trust-card .eyebrow { margin-top: 26px; margin-bottom: 34px; color: #243e62; }
.trust-title { text-align: left; font-size: 1.5rem; margin-bottom: 22px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.trust-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 500; line-height: 1.45; color: var(--foreground); }
.trust-check { display: inline-flex; color: var(--success); margin-top: 1px; }
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-card { position: relative; top: auto; } /* relative (pas static) : garde le contexte pour l'image en absolu */
}

/* Section « réseau de prière » (accueil) : texte + visuel du réseau d'avatars reliés par la prière. */
/* Fonds de la zone claire de l'accueil : progression monotone (clair → crème chaud vers la FAQ) avec un fondu
   TRÈS RESSERRÉ aux jointures (~8 px en haut/bas de chaque section, en px → indépendant de la hauteur) → joint
   doux mais visible, sans rupture franche. Le bas de chacune = le haut de la suivante (moyenne) → raccord
   invisible. Le hero et le cta-band restent des blocs contrastés voulus. */
#pourquoi { background: linear-gradient(180deg, #FBFAF6 0%, #FBFAF6 calc(100% - 8px), #F9F6F0 100%); }
#comment { background: linear-gradient(180deg, #F9F6F0 0, #F7F2E9 8px, #F7F2E9 calc(100% - 8px), #F5EFE4 100%); }
#reseau-priere { background: linear-gradient(180deg, #F5EFE4 0, #F2ECDF 8px, #F2ECDF calc(100% - 8px), #F0EADB 100%); }
#faq { background: linear-gradient(180deg, #F0EADB 0, #EEE7D6 8px, #EEE7D6 100%); }
.pray-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.pray-copy .eyebrow { margin-bottom: 12px; }
.pray-copy h2 { margin-bottom: 16px; }
.pray-copy p:not(.eyebrow) { font-size: 1.05rem; line-height: 1.66; margin: 0 0 14px; }
.pray-copy p:last-child { margin-bottom: 0; }
.pray-visual { display: flex; justify-content: center; }
.pray-visual img { width: 100%; max-width: 540px; height: auto; }
@media (max-width: 860px) {
  .pray-grid { grid-template-columns: 1fr; gap: 26px; }
  .pray-visual { order: 1; } /* mobile : l'image passe SOUS le texte (desktop inchangé) */
  .pray-visual img { max-width: 430px; }
}

/* Comptes : repère « recréé » sur un compte actif dont l'adresse avait été supprimée puis ré-inscrite. */
.acct-recreated {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #8a6d3b;
  background: rgba(176, 138, 79, .14);
  border: 1px solid rgba(176, 138, 79, .30);
  vertical-align: middle;
  white-space: nowrap;
}

/* Modération : deux files distinctes — « Profils à valider » (relecture complète) vs « Photos à valider » (photo seule). */
.mod-section { margin-bottom: 30px; }
.mod-section:last-child { margin-bottom: 0; }
.mod-section-head { display: flex; align-items: center; gap: 10px; margin: 0 0 3px; }
.mod-section-title { font-size: 1.12rem; margin: 0; }
.mod-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px; padding: 0 8px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700;
}
.mod-section-hint { color: var(--muted-foreground); font-size: .88rem; margin: 0 0 12px; max-width: 640px; }
/* Fiche de modération : rappel « seule la photo est à vérifier » sur un profil déjà publié. */
.mod-photo-only {
  background: rgba(176, 138, 79, .12); border: 1px solid rgba(176, 138, 79, .30);
  color: #6b4f22; border-radius: 12px; padding: 10px 13px; margin: 0 0 14px;
  font-size: .9rem; line-height: 1.45;
}
.mod-photo-only strong { color: #5a4118; }
