/* ============================================================
AMITI LONTANI — charte graphique (base Elegance360)
Version 1.0.0
============================================================ */
/* ---------- Variables : thème sombre « Bleu nuit » ----------
   Les noms --gold* sont conservés pour compatibilité : ils portent
   désormais l'accent bleu de la charte Amiti Lontani. */
:root {
--al-bleu:     #597EA3;   /* Bleu croix */
--al-nuit:     #1D2D3D;   /* Bleu nuit */
--al-encre:    #1D1F20;   /* Encre */
--al-papier:   #F2F2F3;   /* Papier */
--al-bleu-700: #416180;
--al-bleu-800: #2C455D;
--al-bleu-400: #8FAACA;
--btn-bg:      #597EA3;
--btn-bg-hover:#416180;
--on-accent:   #FFFFFF;
--gold:        #8FAACA;
--gold-dark:   #597EA3;
--gold-light:  #B4C8DD;
--gold-soft:   rgba(143,170,202,0.14);
--black:       #0F1820;
--black-soft:  #15212D;
--black-card:  #1D2D3D;
--black-border:#2C4055;
--white:       #FFFFFF;
--gray-100:    #F2F2F3;
--gray-200:    #E1E3E6;
--gray-400:    #A3B1BF;
--gray-600:    #6F8193;
--sidebar-w:   260px;
--topbar-h:    64px;
--radius:      10px;
--radius-sm:   6px;
--shadow:      0 4px 24px rgba(0,0,0,0.35);
--shadow-sm:   0 2px 12px rgba(0,0,0,0.25);
--transition:  all 0.2s ease;
--font-heading:'Barlow Condensed', 'Arial Narrow', sans-serif;
--font-body:   'Barlow', system-ui, sans-serif;
}
/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
font-family: var(--font-body);
font-size: 15px;
font-size: 14px;
background: var(--black);
color: var(--white);
min-height: 100vh;
line-height: 1.6;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-heading);
font-weight: 600;
letter-spacing: .01em;
color: var(--white);
}
.text-muted {
color: var(--gray-400) !important;
}
.fw-600 { font-weight: 600; }
.text-gold { color: var(--gold) !important; }
/* ---------- Auth Page ---------- */
.auth-body {
background: radial-gradient(ellipse at 30% 60%, #2C455D 0%, #1D2D3D 70%);
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
overflow: hidden;
}
.auth-container {
position: relative;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem 1rem;
}
.auth-card {
background: var(--black-card);
border: 1px solid var(--black-border);
border-radius: 20px;
padding: 3rem 2.5rem;
width: 100%;
max-width: 420px;
box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(89,126,163,0.1);
position: relative;
z-index: 2;
}
.auth-brand { text-align: center; margin-bottom: 2.5rem; }
.auth-logo {
font-size: 2.5rem;
color: var(--gold);
line-height: 1;
margin-bottom: 0.5rem;

}
@keyframes glow {
from { text-shadow: 0 0 10px rgba(89,126,163,0.3); }
to   { text-shadow: 0 0 30px rgba(89,126,163,0.8), 0 0 60px rgba(89,126,163,0.3); }
}
.auth-title {
font-size: 2rem;
margin: 0;
color: var(--white);
letter-spacing: 2px;
}
.auth-title span { color: var(--gold); }
.auth-subtitle { color: var(--gray-400); font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; margin-top: 0.3rem; }
.auth-form .form-label {
color: var(--gray-400);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 0.5rem;
}
.auth-bg-pattern {
position: fixed; inset: 0;
background-image: radial-gradient(circle at 80% 20%, rgba(89,126,163,0.05) 0%, transparent 50%),
radial-gradient(circle at 20% 80%, rgba(89,126,163,0.03) 0%, transparent 40%);
pointer-events: none;
z-index: 0;
}
.auth-demo { text-align: center; }
.auth-demo code { color: var(--gold); background: var(--gold-soft); padding: 2px 6px; border-radius: 4px; }
/* ---------- SIDEBAR ---------- */
.sidebar {
position: fixed;
top: 0; left: 0;
width: var(--sidebar-w);
height: 100vh;
background: var(--black-soft);
border-right: 1px solid var(--black-border);
display: flex;
flex-direction: column;
z-index: 1050;
transition: var(--transition);
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
scrollbar-color: var(--black-border) transparent;
}
.sidebar-brand {
padding: 1.5rem 1.25rem;
border-bottom: 1px solid var(--black-border);
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}
.brand-link {
display: flex;
align-items: center;
gap: 0.6rem;
text-decoration: none;
}
.brand-icon {
font-size: 1.4rem;
color: var(--gold);

}
.brand-name {
font-family: var(--font-heading);
font-size: 1.3rem;
color: var(--white);
letter-spacing: 1px;
}
.brand-name span { color: var(--gold); }
.sidebar-user {
padding: 1rem 1.25rem;
display: flex;
align-items: center;
gap: 0.75rem;
border-bottom: 1px solid var(--black-border);
flex-shrink: 0;
}
.user-avatar {
width: 36px; height: 36px;
border-radius: 50%;
background: var(--al-nuit);
color: #fff;
box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
font-weight: 700;
font-size: 0.9rem;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.user-name { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.user-role { font-size: 0.7rem; color: var(--gray-400); text-transform: capitalize; }
.sidebar-nav {
list-style: none;
padding: 0.75rem 0;
margin: 0;
flex: 1;
}
.nav-section {
font-size: 0.65rem;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--gray-600);
padding: 1rem 1.25rem 0.4rem;
font-weight: 600;
}
.sidebar-nav .nav-link {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.6rem 1.25rem;
color: var(--gray-400);
font-size: 0.875rem;
border-radius: 0;
transition: var(--transition);
position: relative;
white-space: nowrap;
}
.sidebar-nav .nav-link i {
font-size: 1rem;
width: 20px;
flex-shrink: 0;
}
.sidebar-nav .nav-link:hover {
color: var(--white);
background: rgba(255,255,255,0.04);
}
.sidebar-nav .nav-link.active {
color: var(--gold);
background: var(--gold-soft);
}
.sidebar-nav .nav-link.active::before {
content: '';
position: absolute;
left: 0; top: 0; bottom: 0;
width: 3px;
background: var(--gold);
border-radius: 0 2px 2px 0;
}
.badge-count {
margin-left: auto;
background: var(--btn-bg);
color: var(--on-accent);
font-size: 0.65rem;
font-weight: 700;
padding: 2px 7px;
border-radius: 20px;
}
.sidebar-footer {
padding: 1rem 0;
border-top: 1px solid var(--black-border);
flex-shrink: 0;
}
.logout-link { color: #EF4444 !important; }
.logout-link:hover { background: rgba(239,68,68,0.08) !important; }
/* ---------- MAIN WRAPPER ---------- */
.main-wrapper {
margin-left: var(--sidebar-w);
min-height: 100vh;
display: flex;
flex-direction: column;
transition: var(--transition);
}
/* ---------- TOPBAR ---------- */
.topbar {
height: var(--topbar-h);
background: var(--black-soft);
border-bottom: 1px solid var(--black-border);
display: flex;
align-items: center;
padding: 0 1.5rem;
gap: 1rem;
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(10px);
}
.topbar-title {
font-family: var(--font-heading);
font-size: 1.1rem;
color: var(--white);
}
.topbar-badge {
position: relative;
color: var(--gold);
font-size: 1.2rem;
padding: 0.25rem;
}
.badge-pulse {
position: absolute;
top: 0; right: 0;
background: #EF4444;
color: white;
font-size: 0.6rem;
font-weight: 700;
border-radius: 50%;
width: 16px; height: 16px;
display: flex; align-items: center; justify-content: center;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50%       { transform: scale(1.2); }
}
.topbar-date { color: var(--gray-400); font-size: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
/* ---------- PAGE CONTENT ---------- */
.page-content {
flex: 1;
padding: 1.75rem;
max-width: 1600px;
width: 100%;
}
.flash-container { padding: 1rem 1.75rem 0; }
.page-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 1.75rem;
gap: 1rem;
flex-wrap: wrap;
}
.page-title {
font-family: var(--font-heading);
font-size: 1.6rem;
margin-bottom: 0.25rem;
color: var(--white);
}
.breadcrumb { font-size: 0.8rem; }
.breadcrumb-item a { color: var(--gold); }
.breadcrumb-item.active { color: var(--gray-400); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-600); }
/* ---------- GLASS CARDS ---------- */
.card-glass {
background: var(--black-card);
border: 1px solid var(--black-border);
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow-sm);
}
.card-glass-header {
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--black-border);
background: rgba(255,255,255,0.02);
}
.card-glass-body { padding: 1.25rem; }
.card-glass-footer {
padding: 0.75rem 1.25rem;
border-top: 1px solid var(--black-border);
background: rgba(255,255,255,0.01);
}
/* ---------- KPI CARDS ---------- */
.kpi-card {
background: var(--black-card);
border: 1px solid var(--black-border);
border-radius: var(--radius);
padding: 1.25rem;
display: flex;
align-items: center;
gap: 1rem;
transition: var(--transition);
box-shadow: var(--shadow-sm);
}
.kpi-card:hover {
border-color: rgba(89,126,163,0.3);
transform: translateY(-2px);
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.kpi-icon {
width: 52px; height: 52px;
border-radius: var(--radius-sm);
display: flex; align-items: center; justify-content: center;
font-size: 1.4rem;
flex-shrink: 0;
}
.kpi-gold   { background: var(--gold-soft); color: var(--gold); }
.kpi-blue   { background: rgba(59,130,246,0.12); color: #3B82F6; }
.kpi-green  { background: rgba(16,185,129,0.12); color: #10B981; }
.kpi-purple { background: rgba(139,92,246,0.12); color: #8B5CF6; }
.kpi-value  { font-size: 1.75rem; font-weight: 700; line-height: 1; color: var(--white); }
.kpi-label  { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.2rem; }
.kpi-sub    { font-size: 0.75rem; color: var(--gray-600); margin-top: 0.15rem; }
/* ---------- TABLES ---------- */
.table-elg { color: var(--white); margin: 0; }
.table-elg thead th {
background: rgba(255,255,255,0.03);
color: var(--gray-400);
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 600;
border-color: var(--black-border);
padding: 0.75rem 1rem;
white-space: nowrap;
}
.table-elg tbody td {
border-color: var(--black-border);
padding: 0.85rem 1rem;
vertical-align: middle;
color: var(--white);
}
.table-elg tbody tr:hover { background: rgba(255,255,255,0.02); }
.table-elg tbody tr:last-child td { border-bottom: none; }
/* ---------- FORM CONTROLS ---------- */
.form-control, .form-select {
background: var(--black-soft);
border: 1px solid var(--black-border);
color: var(--white);
border-radius: var(--radius-sm);
padding: 0.55rem 0.85rem;
transition: var(--transition);
}
.form-control:focus, .form-select:focus {
background: var(--black-soft);
border-color: var(--gold);
color: var(--white);
box-shadow: 0 0 0 3px rgba(89,126,163,0.15);
}
.form-control::placeholder { color: var(--gray-600); }
.form-label {
font-size: 0.8rem;
color: var(--gray-400);
margin-bottom: 0.4rem;
font-weight: 500;
}
.form-label.required::after { content: ' *'; color: #EF4444; }
.form-select option { background: var(--black-card); color: var(--white); }
.input-icon { position: relative; }
.input-icon > i {
position: absolute;
left: 0.85rem;
top: 50%; transform: translateY(-50%);
color: var(--gray-400);
pointer-events: none;
z-index: 2;
}
.input-icon .form-control { padding-left: 2.4rem; }
.input-icon-btn {
position: absolute;
right: 0.6rem;
top: 50%; transform: translateY(-50%);
background: none;
border: none;
color: var(--gray-400);
cursor: pointer;
padding: 0.25rem;
}
.input-icon-btn:hover { color: var(--gold); }
textarea.form-control { min-height: 80px; resize: vertical; }
/* ---------- BUTTONS ---------- */
.btn { border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; transition: var(--transition); }
.btn-gold {
background: var(--btn-bg);
color: var(--on-accent);
border: none;
font-weight: 600;
}
.btn-gold:hover {
background: var(--btn-bg-hover);
color: var(--on-accent);
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(89,126,163,0.3);
}
.btn-outline-gold {
border: 1px solid var(--gold);
color: var(--gold);
background: transparent;
}
.btn-outline-gold:hover {
background: var(--gold-soft);
color: var(--gold);
border-color: var(--gold);
}
.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.75rem; border-radius: 4px; }
.btn-whatsapp { background: #25D366; color: white; border: none; }
.btn-whatsapp:hover { background: #128C7E; color: white; }
/* ---------- BADGES ---------- */
.badge-ref {
background: var(--gold-soft);
color: var(--gold);
font-size: 0.72rem;
padding: 3px 8px;
border-radius: 4px;
font-family: monospace;
font-weight: 600;
border: 1px solid rgba(89,126,163,0.2);
white-space: nowrap;
}
.bg-gold-soft { background: var(--gold-soft); color: var(--gold); }
.bg-pink-soft { background: rgba(236,72,153,0.12); color: #EC4899; }
.bg-blue-soft { background: rgba(59,130,246,0.12); color: #3B82F6; }
.badge-bday   { background: rgba(245,158,11,0.15); color: #F59E0B; font-size: 0.7rem; padding: 2px 7px; border-radius: 20px; }
/* Badge Bootstrap overrides */
.badge.bg-primary   { background: #3B82F6 !important; }
.badge.bg-secondary { background: #6B7280 !important; }
.badge.bg-info      { background: #0EA5E9 !important; }
.badge.bg-warning   { background: #F59E0B !important; color: #111 !important; }
.badge.bg-success   { background: #10B981 !important; }
.badge.bg-danger    { background: #EF4444 !important; }
.badge.bg-dark      { background: #374151 !important; }
/* ---------- PAGINATION ---------- */
.pagination { gap: 3px; }
.page-link {
background: var(--black-card);
border-color: var(--black-border);
color: var(--gray-400);
border-radius: 6px !important;
padding: 0.35rem 0.65rem;
font-size: 0.8rem;
}
.page-link:hover { background: var(--gold-soft); color: var(--gold); border-color: var(--gold); }
.page-item.active .page-link { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; font-weight: 700; }
/* ---------- MODALS ---------- */
.modal-glass {
background: var(--black-card);
border: 1px solid var(--black-border);
box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}
.modal-glass .modal-header {
border-color: var(--black-border);
padding: 1.25rem 1.5rem;
}
.modal-glass .modal-footer { border-color: var(--black-border); }
.modal-glass .modal-title { font-family: var(--font-heading); }
.modal-glass .btn-close { filter: invert(1); }
.modal-backdrop { background-color: rgba(0,0,0,0.8); }
/* ---------- CLIENT AVATAR ---------- */
.client-avatar-sm {
width: 32px; height: 32px;
border-radius: 50%;
background: var(--al-nuit);
color: #fff;
box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
font-weight: 700;
font-size: 0.75rem;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.bday-avatar {
width: 36px; height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, #F59E0B, #D97706);
color: white;
font-weight: 700;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
/* ---------- RANK BADGES ---------- */
.rank-badge {
width: 24px; height: 24px;
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-size: 0.7rem;
font-weight: 700;
flex-shrink: 0;
}
.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #111; }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #111; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #fff; }
.rank-4, .rank-5 { background: var(--black-border); color: var(--gray-400); }
/* ---------- INFO LIST ---------- */
.info-list { margin: 0; }
.info-list dt {
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--gray-400);
font-weight: 600;
margin-top: 0.75rem;
}
.info-list dd { margin: 0.2rem 0 0; color: var(--white); }
/* ---------- FINANCE ROWS ---------- */
.finance-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.6rem 0;
border-bottom: 1px solid var(--black-border);
font-size: 0.9rem;
}
.finance-row:last-child { border-bottom: none; }
/* ---------- TIMELINE ---------- */
.timeline { padding-left: 1.5rem; }
.timeline-item {
position: relative;
padding-left: 1.5rem;
padding-bottom: 1.25rem;
}
.timeline-item::before {
content: '';
position: absolute;
left: 0; top: 8px; bottom: 0;
width: 2px;
background: var(--black-border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
position: absolute;
left: -5px; top: 4px;
width: 12px; height: 12px;
border-radius: 50%;
background: var(--gold);
border: 2px solid var(--black-card);
}
.timeline-body {
background: rgba(255,255,255,0.02);
border: 1px solid var(--black-border);
border-radius: var(--radius-sm);
padding: 0.75rem;
}
/* ---------- EMPTY STATE ---------- */
.empty-state {
text-align: center;
padding: 3rem 1rem;
}
.empty-state i { font-size: 2.5rem; color: var(--gray-600); }
.empty-state p { color: var(--gray-600); margin-top: 0.75rem; }
/* ---------- BIRTHDAY LIST ---------- */
.bday-list .list-group-item {
background: transparent;
border-color: var(--black-border);
color: var(--white);
padding: 0.85rem 1rem;
}
.bday-list .list-group-item:hover { background: rgba(255,255,255,0.02); }
/* ---------- ALERTS ---------- */
.alert-success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #10B981; }
.alert-danger  { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #EF4444; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #F59E0B; }
.alert .btn-close { filter: invert(1); }
/* ---------- DROPDOWN ---------- */
.dropdown-menu {
background: var(--black-card);
border: 1px solid var(--black-border);
box-shadow: var(--shadow);
border-radius: var(--radius-sm);
padding: 0.4rem;
}
.dropdown-item {
color: var(--gray-400);
border-radius: 6px;
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
transition: var(--transition);
}
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--white); }
/* ---------- FORM ACTIONS ---------- */
.form-actions {
background: var(--black-card);
border: 1px solid var(--black-border);
border-radius: var(--radius);
padding: 1.25rem;
display: flex;
justify-content: flex-end;
gap: 0.75rem;
}
/* ---------- SIDEBAR OVERLAY (mobile) ---------- */
.sidebar-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.7);
z-index: 1040;
backdrop-filter: blur(3px);
}
/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--black-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-600); }
/* ---------- CHART CANVAS ---------- */
canvas { max-width: 100%; }
/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
.sidebar {
transform: translateX(-100%);
z-index: 1060;
}
.sidebar.open {
transform: translateX(0);
}
.sidebar-overlay.open { display: block; }
.main-wrapper { margin-left: 0; }
.page-content { padding: 1rem; }
}
@media (max-width: 575.98px) {
.page-header { flex-direction: column; align-items: stretch; }
.page-actions { display: flex; gap: 0.5rem; }
.kpi-value { font-size: 1.4rem; }
}
/* ---------- LIGHT THEME OVERRIDES ---------- */
html[data-theme="light"] {
--gold: #597EA3;
--gold-dark: #416180;
--gold-light: #2C455D;
--gold-soft: rgba(89,126,163,0.12);
--black: #FFFFFF;
--black-soft: #F2F2F3;
--black-card: #FFFFFF;
--black-border: #E1E3E6;
--white: #1D1F20;
--gray-100: #1D1F20;
--gray-200: #2A2D2F;
--gray-400: #5C6670;
--gray-600: #8A949E;
--shadow: 0 6px 24px rgba(29,45,61,0.10);
--shadow-sm: 0 2px 8px rgba(29,45,61,0.06);
background: #F2F2F3;
}
html[data-theme="light"] body {
background: #F2F2F3;
color: #1D1F20;
}
html[data-theme="light"] .card-glass,
html[data-theme="light"] .modal-glass {
background: #ffffff;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select {
background: #f9fafb;
color: #111827;
}
html[data-theme="light"] .form-control:focus,
html[data-theme="light"] .form-select:focus {
background: #ffffff;
}
html[data-theme="light"] .table-elg tbody td {
color: #111827;
}
html[data-theme="light"] .theme-text,
html[data-theme="light"] .text-white {
color: #111827 !important;
}
/* Ajustement des fonds transparents (qui étaient blancs) en noir transparent */
html[data-theme="light"] .table-elg tbody tr:hover,
html[data-theme="light"] .sidebar-nav .nav-link:hover,
html[data-theme="light"] .bday-list .list-group-item:hover {
background: rgba(0,0,0,0.04);
}
html[data-theme="light"] .table-elg thead th,
html[data-theme="light"] .card-glass-header,
html[data-theme="light"] .timeline-body {
background: rgba(0,0,0,0.02);
}
html[data-theme="light"] .card-glass-footer {
background: rgba(0,0,0,0.01);
}
/* Rétablir les croix de fermeture en noir */
html[data-theme="light"] .alert .btn-close,
html[data-theme="light"] .modal-glass .btn-close {
filter: none;
}

/* ============================================================
   MESSE360 — Extensions (espace public PWA, carte, pubs, impression)
   ============================================================ */
.table-elg { --bs-table-bg: transparent; --bs-table-color: var(--white); }
.table-elg tbody tr:hover { --bs-table-bg: rgba(255,255,255,0.02); }
.form-check-input { background-color: var(--black-soft); border-color: var(--gray-600); }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.nav-tabs { border-color: var(--black-border); }
.nav-tabs .nav-link { color: var(--gray-400); border: none; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link.active { color: var(--gold); background: transparent; border-bottom-color: var(--gold); }
.list-group-item { background: transparent; color: var(--white); border-color: var(--black-border); }
.text-gold-soft { color: var(--gold-light); }
.theme-toggle { background: none; border: 1px solid var(--black-border); color: var(--gray-400); border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); }
.sidebar-toggle { background: none; border: none; color: var(--white); font-size: 1.4rem; }

/* ---------- Public layout ---------- */
.pub-topbar {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(15,24,32,0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--black-border);
}
html[data-theme="light"] .pub-topbar { background: rgba(255,255,255,0.92); }
.pub-topbar .inner { max-width: 1200px; margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 1rem; padding: 0 1rem; }
.pub-nav { display: flex; gap: .25rem; margin-left: auto; }
.pub-nav a { color: var(--gray-400); padding: .45rem .8rem; border-radius: var(--radius-sm); font-size: .875rem; }
.pub-nav a:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.pub-nav a.active { color: var(--gold); background: var(--gold-soft); }
.pub-main { max-width: 1200px; margin: 0 auto; padding: 1.25rem 1rem 6rem; }
.pub-footer { margin-top: 2.5rem; background: var(--al-nuit); color: rgba(255,255,255,.72); font-size: .88rem; border-top: 3px solid var(--al-bleu); }
.pf-grille { max-width: 1200px; margin: 0 auto; padding: 2.25rem 1rem 1.5rem; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 1.75rem 2rem; }
.pf-col { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.pf-titre { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; font-weight: 700; margin: 0 0 .25rem; }
.pub-footer a, .pf-col span { color: rgba(255,255,255,.72); text-decoration: none; overflow-wrap: anywhere; }
.pub-footer a:hover { color: #fff; }
.pf-col i { color: var(--al-bleu-400); margin-right: .3rem; }
.pf-slogan { margin: .6rem 0 0; color: rgba(255,255,255,.6); max-width: 260px; }
.pf-discret { font-size: .8rem; opacity: .7; }
.pf-bouton { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #fff !important; border-radius: 999px; padding: .5rem 1rem; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: none; width: fit-content; }
.pf-bouton:hover { background: rgba(255,255,255,.14); }
.pf-bouton i { color: inherit; margin: 0; }
.pf-wa { background: #25D366; border-color: #25D366; }
.pf-wa:hover { background: #1EBE5A; }
.pub-footer [data-push-msg] { font-size: .8rem; }
.pub-footer [data-push-msg].text-success { color: #7EE2A8 !important; }
.pub-footer [data-push-msg].text-danger { color: #FFB4B4 !important; }
.pf-bas { border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .78rem; color: rgba(255,255,255,.5); padding: 1rem 1rem calc(5.5rem + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .pf-bas { padding-bottom: 1rem; } }
@media (max-width: 991.98px) { .pf-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .pf-grille { grid-template-columns: 1fr; text-align: center; } .pf-col { align-items: center; } .pf-slogan { margin-inline: auto; } }
.topbar-icone { border: 1px solid var(--black-border); color: var(--gray-400); border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; }
.topbar-icone:hover { color: var(--gold); border-color: var(--gold); }

.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
  background: var(--black-soft); border-top: 1px solid var(--black-border);
  padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom));
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: var(--gray-400); }
.bottom-nav a i { font-size: 1.25rem; }
.bottom-nav a.active { color: var(--gold); }
.bottom-nav .fab i { background: var(--btn-bg); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: -22px; box-shadow: 0 4px 16px rgba(89,126,163,0.35); }
@media (max-width: 767.98px) {
  .pub-nav { display: none; }
  .bottom-nav { display: flex; }
}

.hero {
  background: radial-gradient(ellipse at 15% 0%, rgba(89,126,163,0.20) 0%, transparent 60%), var(--black-card);
  border: 1px solid var(--black-border); border-radius: 20px; padding: 2rem 1.5rem; margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.3rem); margin-bottom: .4rem; }
.hero p { color: var(--gray-400); margin-bottom: 1.25rem; }
.filter-bar { display: grid; grid-template-columns: 1fr 200px auto; gap: .5rem; }
@media (max-width: 575.98px) { .filter-bar { grid-template-columns: 1fr 1fr; } .filter-bar .fb-search { grid-column: 1 / -1; } }

.church-card {
  background: var(--black-card); border: 1px solid var(--black-border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); height: 100%; display: flex; flex-direction: column;
}
.church-card:hover { border-color: rgba(89,126,163,0.35); transform: translateY(-2px); box-shadow: var(--shadow); }
.church-cover { height: 140px; background: linear-gradient(135deg, #2C455D, #1D2D3D) center/cover no-repeat; position: relative; display: flex; align-items: center; justify-content: center; }
.church-cover .bi { font-size: 2.6rem; color: rgba(255,255,255,0.35); }
.church-cover .dist { position: absolute; top: .6rem; right: .6rem; background: rgba(29,45,61,0.85); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 20px; }
.church-cover .zone { position: absolute; bottom: .6rem; left: .6rem; background: var(--al-bleu); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.church-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.church-body h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.church-meta { color: var(--gray-400); font-size: .8rem; }
.next-mass { font-size: .8rem; color: var(--gold-light); margin-top: .5rem; }
.church-actions { margin-top: auto; padding-top: .85rem; display: flex; gap: .5rem; }

#map, .map-box { height: 380px; border-radius: var(--radius); border: 1px solid var(--black-border); z-index: 1; }
.map-picker { height: 320px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--black-card); color: var(--white); }
.leaflet-popup-content a { color: var(--gold); }

.prog-day { border-bottom: 1px solid var(--black-border); padding: .75rem 0; display: flex; gap: 1rem; }
.prog-day:last-child { border-bottom: none; }
.prog-day .day { width: 90px; flex-shrink: 0; text-transform: capitalize; font-weight: 600; color: var(--gold); }
.prog-day.today .day::after { content: "Aujourd'hui"; display: block; font-size: .65rem; color: var(--gray-400); font-weight: 400; }
.mass-chip { display: inline-flex; flex-direction: column; background: rgba(255,255,255,0.03); border: 1px solid var(--black-border); border-radius: var(--radius-sm); padding: .35rem .65rem; margin: 0 .35rem .35rem 0; font-size: .78rem; }
.mass-chip b { color: var(--white); font-size: .9rem; }
.mass-chip small { color: var(--gray-400); }

.step-title { font-family: var(--font-heading); font-size: 1rem; color: var(--gold); display: flex; align-items: center; gap: .5rem; margin: 1.25rem 0 .75rem; }
.step-title .num { width: 24px; height: 24px; border-radius: 50%; background: var(--btn-bg); color: #fff; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); }
.type-option { display: block; cursor: pointer; }
.type-option input { display: none; }
.type-option .box { display: block; border: 1px solid var(--black-border); border-radius: var(--radius-sm); padding: .75rem; height: 100%; transition: var(--transition); }
.type-option input:checked + .box { border-color: var(--gold); background: var(--gold-soft); }
.type-option .box b { display: block; font-size: .88rem; }
.type-option .box small { color: var(--gray-400); }
.type-option .price { color: var(--gold); font-weight: 600; font-size: .8rem; }

.recap-code { font-family: ui-monospace, monospace; font-size: 1.6rem; letter-spacing: 3px; color: var(--gold); background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: var(--radius-sm); padding: .5rem 1rem; display: inline-block; }
.big-amount { font-size: 2rem; font-weight: 700; color: var(--gold); }

/* ---------- Pubs ---------- */
.encart { position: relative; margin: 1rem 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--black-border); background: var(--black-card); width: 100%; }
.encart a { display: block; height: 100%; }
.encart img { width: 100%; height: 100%; display: block; object-fit: cover; }
.encart-tag { position: absolute; top: 6px; left: 6px; z-index: 1; background: rgba(0,0,0,0.65); color: #fff; font-size: .6rem; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; }
.encart-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.75); display: none; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(3px); }
.encart-modal.show { display: flex; animation: fadeIn .3s ease; }
.encart-modal .encart-boite { position: relative; width: min(420px, 100%); aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.encart-modal .encart-boite a { display: block; height: 100%; }
.encart-modal img { width: 100%; height: 100%; display: block; object-fit: contain; }
.encart-modal .encart-fermer { position: absolute; top: 8px; right: 8px; z-index: 1; background: rgba(0,0,0,0.7); color: #fff; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 1.1rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Install PWA ---------- */
.install-bar { display: none; position: fixed; left: 1rem; right: 1rem; bottom: 80px; z-index: 1040; background: var(--black-card); border: 1px solid var(--gold); border-radius: var(--radius); padding: .75rem 1rem; align-items: center; gap: .75rem; box-shadow: var(--shadow); max-width: 480px; margin: 0 auto; }
.install-bar.show { display: flex; }
/* Guide d'installation iPhone / iPad */
.ios-guide { position: fixed; inset: 0; z-index: 2050; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; padding: 1rem 1rem calc(4.5rem + env(safe-area-inset-bottom)); backdrop-filter: blur(2px); }
.ios-guide[hidden] { display: none; }
.ios-guide.sans-fleche { align-items: center; padding-bottom: 1rem; }
.ios-guide-boite { position: relative; width: 100%; max-width: 420px; background: var(--black-card); color: var(--bs-body-color); border: 1px solid var(--gold); border-radius: 18px; padding: 1.1rem 1.1rem 1rem; box-shadow: var(--shadow); animation: iosMonte .25s ease-out; }
.ios-guide-fermer { position: absolute; top: .5rem; right: .5rem; border: 0; background: transparent; color: var(--bs-secondary-color); font-size: 1rem; padding: .35rem .5rem; }
.ios-etapes { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .65rem; }
.ios-etapes li { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; line-height: 1.35; }
.ios-num { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 700; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.ios-ico { width: 20px; height: 20px; vertical-align: -4px; color: #0A84FF; }
.ios-fleche { position: fixed; left: 50%; bottom: calc(.6rem + env(safe-area-inset-bottom)); transform: translateX(-50%); color: #fff; font-size: 2rem; animation: iosFleche 1s ease-in-out infinite; }
.ios-guide.sans-fleche .ios-fleche { display: none; }
body.ios-guide-ouvert { overflow: hidden; }
@keyframes iosMonte { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes iosFleche { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Impression ---------- */
.print-sheet { background: #fff; color: #111; font-family: var(--font-body); }
@media print {
  .no-print, .sidebar, .topbar, .bottom-nav, .pub-topbar { display: none !important; }
  .main-wrapper { margin: 0 !important; }
  body { background: #fff !important; color: #111 !important; }
}

/* ============================================================
   LOGO AMITI LONTANI — les deux T forment une seule croix
   Grille 7 colonnes × 2 lignes, la croix occupe la 4ᵉ colonne.
   Tout est en em : la taille se règle par font-size.
   ============================================================ */
.al-logo {
  display: inline-grid; grid-template-columns: repeat(7, .575em); grid-template-rows: .9em .9em;
  font-family: var(--font-logo); font-weight: 600; line-height: .9em; text-align: center;
  color: var(--al-ink, var(--white)); font-size: 80px; padding-top: .15em; user-select: none;
}
.al-logo .al-cross { grid-column: 4; grid-row: 1 / 3; position: relative; }
.al-logo .al-cross::before, .al-logo .al-cross::after { content: ""; position: absolute; background: var(--al-cross, var(--al-bleu)); }
.al-logo .al-cross::before { left: .2125em; width: .15em; top: -.15em; bottom: .0625em; }
.al-logo .al-cross::after  { left: .0375em; right: .0375em; top: .175em; height: .15em; }
html:not([data-theme="light"]) .al-logo { --al-cross: var(--al-bleu-400); }
html .al-logo.on-dark  { --al-ink: #fff; --al-cross: var(--al-bleu-400); }
html .al-logo.on-light { --al-ink: var(--al-encre); --al-cross: var(--al-bleu); }
html .al-logo.mono-white { --al-ink: #fff; --al-cross: #fff; }

/* Icône « AL » + croix sur carré bleu nuit */
.al-icon {
  --s: 40px; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .23);
  background: var(--al-nuit); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.al-icon .g {
  display: grid; grid-template-columns: .647em .647em; grid-template-rows: .882em .882em;
  font-family: var(--font-logo); font-weight: 600; line-height: .882em; text-align: center; color: #fff;
  font-size: calc(var(--s) * .386); padding-top: .1em;
}
.al-icon .x { grid-column: 2; grid-row: 1 / 3; position: relative; }
.al-icon .x::before, .al-icon .x::after { content: ""; position: absolute; background: var(--al-bleu-400); }
.al-icon .x::before { left: .235em; width: .147em; top: -.118em; bottom: .147em; }
.al-icon .x::after  { left: .029em; right: .029em; top: .176em; height: .147em; }

.brand-link .brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-tagline { display: block; font-family: var(--font-body); font-size: .68rem; color: var(--gray-400); letter-spacing: .04em; margin-top: -2px; }
.hero-logo { margin-bottom: 1rem; }
.auth-brand .al-logo { font-size: 48px; }
.btn { font-weight: 600; }
.btn-outline-gold { border-color: var(--gold-dark); color: var(--gold); }
html[data-theme="light"] .btn-outline-gold { border-color: var(--al-bleu); color: var(--al-bleu-700); }
html[data-theme="light"] .btn-outline-gold:hover { color: var(--al-bleu-800); }
html[data-theme="light"] .badge-ref { color: var(--al-bleu-700); }
.badge.bg-info { background: #3E89B5 !important; }
.badge.bg-primary { background: var(--al-bleu) !important; }

/* ============================================================
   DESIGN ASIN — Plus Jakarta Sans, bleu marine, émeraude et or
   en touches discrètes. Le logo garde sa police et ses couleurs.
   ============================================================ */
:root {
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-logo:    'Barlow Condensed', 'Arial Narrow', sans-serif;
  --asin-navy: #0F2E52; --asin-navy-700: #163E6C; --asin-emerald: #0E9F6E; --asin-gold: #C9A43A;
  /* thème sombre */
  --btn-bg: #2B5A94; --btn-bg-hover: #23497A;
  --gold: #8DB0DD; --gold-dark: #2B5A94; --gold-light: #B5CDEC; --gold-soft: rgba(141,176,221,0.12);
  --black: #0B1424; --black-soft: #0F1A2D; --black-card: #111D31; --black-border: #1F2C44;
  --white: #E8ECF2; --gray-400: #9AA6B5; --gray-600: #687588;
  --ok: #34D399; --ok-soft: rgba(52,211,153,0.12);
  --warn: #F2C55C; --warn-soft: rgba(242,197,92,0.12);
  --err: #F87171; --err-soft: rgba(248,113,113,0.12);
  --inf: #7DB4F0; --inf-soft: rgba(125,180,240,0.12);
  --neu: #9AA6B5; --neu-soft: rgba(154,166,181,0.14);
  --surface-muted: #16243B;
}
html[data-theme="light"] {
  --btn-bg: #163E6C; --btn-bg-hover: #0F2E52;
  --gold: #163E6C; --gold-dark: #0F2E52; --gold-light: #0A1F3A; --gold-soft: rgba(22,62,108,0.07);
  --black: #FFFFFF; --black-soft: #F6F7F9; --black-card: #FFFFFF; --black-border: #E5E8EC;
  --white: #111827; --gray-100: #111827; --gray-400: #5F6B7A; --gray-600: #9AA3AF;
  --ok: #047857; --ok-soft: #ECF8F3;
  --warn: #9A6B00; --warn-soft: #FBF5E4;
  --err: #B91C1C; --err-soft: #FDF0F0;
  --inf: #1D4E89; --inf-soft: #EEF3FA;
  --neu: #4B5563; --neu-soft: #F1F3F6;
  --surface-muted: #F1F3F6;
  --shadow: 0 8px 24px rgba(17,24,39,0.06); --shadow-sm: 0 1px 2px rgba(17,24,39,0.05);
  background: #F6F7F9;
}
html[data-theme="light"] body { background: #F6F7F9; color: #111827; }
body { font-family: var(--font-body); font-size: 15px; font-weight: 400; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .page-title, .topbar-title, .modal-title { font-family: var(--font-heading); font-weight: 700; letter-spacing: -.015em; }
.page-title { font-size: 1.55rem; }
.form-label, .nav-section, .table-elg thead th { font-weight: 600; }
.text-muted { color: var(--gray-400) !important; }

/* Barre fine dorée sous l'en-tête (touche ASIN) */
.pub-topbar, .topbar { border-bottom: 1px solid var(--black-border); box-shadow: inset 0 -2px 0 0 transparent; }
.pub-topbar::after { content: ""; display: block; height: 2px; background: linear-gradient(90deg, var(--asin-navy) 0 70%, var(--asin-emerald) 70% 85%, var(--asin-gold) 85% 100%); opacity: .9; }
html[data-theme="light"] .pub-topbar { background: rgba(255,255,255,0.96); }

/* Boutons */
.btn { font-weight: 600; border-radius: 8px; }
.btn-gold { background: var(--btn-bg); color: #fff; box-shadow: none; }
.btn-gold:hover { background: var(--btn-bg-hover); color: #fff; box-shadow: 0 4px 14px -6px rgba(15,46,82,0.55); transform: none; }
.btn-outline-gold, html[data-theme="light"] .btn-outline-gold { border: 1px solid var(--black-border); color: var(--white); background: var(--black-card); }
.btn-outline-gold:hover, html[data-theme="light"] .btn-outline-gold:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.btn-outline-gold.active, .btn-group .btn-outline-gold.active { background: var(--btn-bg); color: #fff; border-color: var(--btn-bg); }
.btn-success-asin { background: var(--asin-emerald); color: #fff; border: none; }
.btn-success-asin:hover { background: #0B855C; color: #fff; }

/* Surfaces */
.card-glass, .church-card, .kpi-card { border-radius: 12px; border: 1px solid var(--black-border); }
html[data-theme="light"] .card-glass, html[data-theme="light"] .church-card, html[data-theme="light"] .kpi-card { box-shadow: var(--shadow-sm); }
.church-card:hover, .kpi-card:hover { border-color: #C9D3E0; box-shadow: var(--shadow); transform: translateY(-1px); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.sidebar-nav .nav-link.active { color: var(--gold); background: var(--gold-soft); font-weight: 600; }
.sidebar-nav .nav-link.active::before { background: var(--asin-gold); }
.pub-nav a.active { color: var(--gold); background: var(--gold-soft); font-weight: 600; }

/* Accueil sobre : fond blanc, une seule couleur d'accent */
.hero { background: var(--black-card); border: 1px solid var(--black-border); color: var(--white); padding: 2rem 1.75rem; }
html[data-theme="light"] .hero { box-shadow: var(--shadow-sm); }
.hero h1 { color: var(--white); font-weight: 800; font-size: clamp(1.45rem, 3.6vw, 2.1rem); }
.hero h1 .text-gold { color: var(--gold) !important; }
.hero p { color: var(--gray-400); }
.hero .form-control, .hero .form-select { background: var(--black-soft); color: var(--white); border-color: var(--black-border); }
.church-cover { background: var(--surface-muted) center/cover no-repeat; }
.church-cover .bi { color: var(--gray-600); font-size: 2.2rem; }
.church-cover .zone { background: var(--black-card); color: var(--white); border: 1px solid var(--black-border); font-weight: 600; }
.church-cover .dist { background: var(--black-card); color: var(--white); border: 1px solid var(--black-border); }
.next-mass { color: var(--gray-400); }
.next-mass b { color: var(--white); }
.church-body h3 { font-size: 1rem; font-weight: 700; }
.mass-chip b { color: var(--white); }
.prog-day .day { color: var(--white); }
.step-title { color: var(--white); font-family: var(--font-heading); font-weight: 700; }
.step-title .num { background: var(--asin-navy); color: #fff; }
.type-option input:checked + .box { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold) inset; }
.type-option .price { color: var(--gray-400); font-weight: 600; }
.bottom-nav .fab i { background: var(--asin-navy); color: #fff; box-shadow: 0 4px 14px rgba(15,46,82,0.35); }
.recap-code { color: var(--white); background: var(--surface-muted); border: 1px solid var(--black-border); }
.big-amount { color: var(--white); }

/* Indicateurs, badges, alertes */
.kpi-gold   { background: var(--gold-soft); color: var(--gold); }
.kpi-blue   { background: var(--inf-soft);  color: var(--inf); }
.kpi-green  { background: var(--ok-soft);   color: var(--ok); }
.kpi-purple { background: var(--warn-soft); color: var(--warn); }
.badge { font-weight: 600; border-radius: 999px; padding: .35em .7em; }
.badge.bg-primary   { background: var(--gold-soft) !important; color: var(--gold) !important; }
.badge.bg-info      { background: var(--inf-soft) !important;  color: var(--inf) !important; }
.badge.bg-success   { background: var(--ok-soft) !important;   color: var(--ok) !important; }
.badge.bg-warning   { background: var(--warn-soft) !important; color: var(--warn) !important; }
.badge.bg-danger    { background: var(--err-soft) !important;  color: var(--err) !important; }
.badge.bg-secondary, .badge.bg-dark { background: var(--neu-soft) !important; color: var(--neu) !important; }
.bg-blue-soft { background: var(--inf-soft); color: var(--inf); }
.bg-pink-soft { background: var(--warn-soft); color: var(--warn); }
.bg-gold-soft { background: var(--gold-soft); color: var(--gold); }
.badge-count { background: var(--asin-gold); color: #1F1A08; }
.badge-ref, html[data-theme="light"] .badge-ref { color: var(--gold); background: var(--gold-soft); border-color: transparent; }
.alert-success { background: var(--ok-soft);   border-color: transparent; color: var(--ok); }
.alert-danger  { background: var(--err-soft);  border-color: transparent; color: var(--err); }
.alert-warning { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.alert-info    { background: var(--inf-soft);  border-color: transparent; color: var(--inf); }
.user-avatar, .client-avatar-sm { background: var(--asin-navy); }

/* Moyens de paiement */
.pay-option { display: flex; align-items: center; gap: .85rem; border: 1px solid var(--black-border); border-radius: 10px; padding: .85rem 1rem; background: var(--black-card); cursor: pointer; transition: var(--transition); }
.pay-option:hover { border-color: var(--gold); }
.pay-option input { accent-color: var(--asin-navy); }
.pay-option .pay-logo { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; color: #fff; flex-shrink: 0; }
.pay-option small { color: var(--gray-400); display: block; }
.pay-wait { text-align: center; padding: 2rem 1rem; }
.pay-wait .spinner-border { width: 3rem; height: 3rem; color: var(--gold); }
.secret-mask { font-family: ui-monospace, monospace; font-size: .8rem; color: var(--gray-400); }
.badge-pulse { width: auto; min-width: 16px; padding: 0 4px; border-radius: 999px; }

/* ===== v4 : demandes multiples (Quand, panier, totaux) ===== */
.quand-box { border: 1px solid var(--black-border); border-radius: var(--radius-sm); padding: 1rem; background: var(--black-card, transparent); transition: opacity .2s; }
.dates-grid { display: flex; flex-wrap: wrap; gap: .35rem; max-height: 260px; overflow-y: auto; padding: .25rem 0; }
.dates-mois { flex-basis: 100%; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-400); margin-top: .35rem; }
.date-chip { cursor: pointer; margin: 0; }
.date-chip input { display: none; }
.date-chip span { display: inline-block; min-width: 64px; text-align: center; padding: .3rem .55rem; border: 1px solid var(--black-border); border-radius: 999px; font-size: .85rem; transition: var(--transition); }
.date-chip input:checked + span { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.panier { border: 1px dashed var(--black-border); border-radius: var(--radius-sm); padding: .85rem 1rem; }
.panier-liste { max-height: 320px; overflow-y: auto; }
.panier-mois { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-400); padding: .5rem 0 .2rem; }
.panier-ligne { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--black-border); font-size: .9rem; }
.panier-ligne:last-child { border-bottom: 0; }
.totaux { border-radius: var(--radius-sm); padding: .85rem 1rem; background: rgba(22, 62, 108, .05); }
.totaux:empty { display: none; }
.totaux-ligne { display: flex; justify-content: space-between; padding: .2rem 0; font-size: .92rem; }
.totaux-total { border-top: 1px solid var(--black-border); margin-top: .3rem; padding-top: .5rem; font-size: 1.05rem; }
.totaux-total b { color: var(--gold); }
[data-theme="dark"] .totaux { background: rgba(255, 255, 255, .04); }
/* Back-office : horaires groupés par jour */
.prog-acc .accordion-button { font-weight: 600; padding: .7rem 1rem; }
.prog-acc .accordion-button .badge { margin-left: .5rem; }
.heure-row { display: grid; grid-template-columns: 110px 1fr 120px 36px; gap: .4rem; margin-bottom: .4rem; }
@media (max-width: 576px) { .heure-row { grid-template-columns: 1fr 1fr; } }

/* ===== v5 : demande en étapes (accordéon), type détaillé, calendrier ===== */
.etapes .accordion-item { background: var(--black-card); border: 1px solid var(--black-border); border-radius: 12px !important; margin-bottom: .6rem; overflow: hidden; }
.etapes .accordion-button { background: var(--black-card); color: var(--white); gap: .75rem; padding: .9rem 1.1rem; box-shadow: none; }
.etapes .accordion-button:not(.collapsed) { background: var(--gold-soft); color: var(--white); }
.etapes .accordion-button::after { filter: none; }
[data-theme="dark"] .etapes .accordion-button::after, [data-theme="dark"] .prog-acc .accordion-button::after { filter: invert(1) brightness(1.6); }
.etapes .accordion-body { padding: 1rem 1.1rem 1.2rem; }
.etape-num { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--btn-bg); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.etape-ok .etape-num { background: var(--asin-emerald); }
.etape-ok .etape-num { font-size: 0; }
.etape-ok .etape-num::before { content: "\F26E"; font-family: bootstrap-icons; font-size: 1rem; }
.etape-txt { display: flex; flex-direction: column; min-width: 0; }
.etape-titre { font-weight: 700; }
.etape-resume { font-size: .8rem; color: var(--gray-400); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etape-resume:empty { display: none; }
.type-details { border-radius: 10px; padding: .9rem 1rem; background: var(--surface-muted); font-size: .9rem; }
.type-details:empty { display: none; }
.type-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.type-chiffres > div { background: var(--black-card); border: 1px solid var(--black-border); border-radius: 8px; padding: .55rem .7rem; display: flex; flex-direction: column; }
.type-chiffres span { font-size: .75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .03em; }
.type-chiffres b { font-size: 1.05rem; color: var(--gold); }
.type-chiffres small { font-size: .75rem; color: var(--gray-400); }
.type-special { margin-top: .6rem; font-size: .85rem; color: var(--warn); }

.calendrier { border: 1px solid var(--black-border); border-radius: 12px; padding: .75rem; background: var(--black-card); max-width: 460px; }
.cal-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.cal-tete b { font-size: 1rem; }
.cal-nav { border: 1px solid var(--black-border); background: transparent; color: var(--white); width: 34px; height: 34px; border-radius: 8px; }
.cal-nav:disabled { opacity: .3; }
.cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-jsem { text-align: center; font-size: .72rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; padding-bottom: 2px; }
.cal-j { position: relative; aspect-ratio: 1 / 1; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--gray-600); font-size: .9rem; font-weight: 600; padding: 0; }
.cal-j:disabled { cursor: default; opacity: .45; }
.cal-j.cal-dispo { color: var(--white); background: var(--gold-soft); border-color: var(--black-border); cursor: pointer; }
.cal-j.cal-dispo:hover { border-color: var(--gold); }
.cal-j.cal-sel { background: var(--btn-bg); color: #fff; border-color: var(--btn-bg); }
.cal-j.cal-auj { outline: 2px solid var(--asin-gold); outline-offset: -2px; }
.cal-j.cal-panier::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--asin-emerald); }
.cal-j small { position: absolute; top: 1px; right: 4px; font-size: .6rem; opacity: .8; }
.cal-legende { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; font-size: .72rem; color: var(--gray-400); }
.cal-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 3px; vertical-align: -1px; }
.l-dispo { background: var(--gold-soft); border: 1px solid var(--black-border); }
.l-sel { background: var(--btn-bg); }
.l-panier { background: var(--asin-emerald); border-radius: 50% !important; }

.ajout-zone { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; padding: .75rem; border-radius: 10px; background: var(--surface-muted); }
.btn-ajouter { background: var(--asin-emerald); color: #fff; border: none; font-size: 1.05rem; font-weight: 700; padding: .7rem 1.4rem; border-radius: 10px; box-shadow: 0 6px 18px -8px rgba(14,159,110,.7); }
.btn-ajouter:hover { background: #0B855C; color: #fff; }
.btn-ajouter:disabled { background: var(--gray-600); color: #fff; box-shadow: none; opacity: .6; }
.btn-ajouter.pret { animation: pulseAjout 1.8s ease-in-out infinite; }
@keyframes pulseAjout { 0%, 100% { box-shadow: 0 0 0 0 rgba(14,159,110,.55); } 50% { box-shadow: 0 0 0 9px rgba(14,159,110,0); } }
@media (max-width: 576px) { .btn-ajouter { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .btn-ajouter.pret { animation: none; } }

/* ===== Hero : ciel animé sous un dégradé ===== */
.hero.hero-ciel { position: relative; overflow: hidden; isolation: isolate; border: none; color: #fff;
  background: #163E6C url("../img/ciel.jpg") 0 50% / 1800px 480px repeat-x; animation: cielDefile 140s linear infinite; }
.hero.hero-ciel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/ciel.jpg") 0 30% / 1300px 350px repeat-x; opacity: .28; transform: scaleX(-1); animation: cielDefile2 90s linear infinite; }
.hero.hero-ciel::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(11,34,62,.94) 0%, rgba(19,56,100,.80) 42%, rgba(22,62,108,.35) 75%, rgba(22,62,108,.10) 100%),
              linear-gradient(0deg, rgba(11,34,62,.35), transparent 45%); }
@keyframes cielDefile { from { background-position: 0 50%; } to { background-position: -1800px 50%; } }
@keyframes cielDefile2 { from { background-position: 0 30%; } to { background-position: -1300px 30%; } }
.hero.hero-ciel h1, html[data-theme="light"] .hero.hero-ciel h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.hero.hero-ciel h1 .text-gold { color: #BFD6F2 !important; }
.hero.hero-ciel p { color: rgba(255,255,255,.88); }
html[data-theme="light"] .hero.hero-ciel { box-shadow: 0 10px 30px -18px rgba(15,46,82,.6); }
.hero.hero-ciel .form-control, .hero.hero-ciel .form-select { background: rgba(255,255,255,.96); color: #111827; border-color: transparent; }
.hero.hero-ciel .input-icon > i { color: #5F6B7A; }
.hero.hero-ciel .btn-outline-gold { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.hero.hero-ciel .btn-outline-gold:hover { background: rgba(255,255,255,.25); color: #fff; }
@media (prefers-reduced-motion: reduce) { .hero.hero-ciel, .hero.hero-ciel::before { animation: none; } }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.25rem; margin: .6rem 0 .2rem; font-size: .85rem; }
.footer-contact a, .footer-contact span { color: var(--gray-400); text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact i { color: var(--gold); margin-right: .2rem; }
/* Mode sombre : composants Bootstrap alignés sur la charte */
html[data-theme="dark"] { --bs-body-color: var(--white); --bs-body-bg: var(--black); --bs-secondary-color: var(--gray-400); --bs-tertiary-color: var(--gray-400);
  --bs-emphasis-color: #fff; --bs-border-color: var(--black-border); --bs-code-color: #F49AC1; --bs-link-color: var(--gold); --bs-link-hover-color: var(--gold-light);
  --bs-heading-color: var(--white); --bs-secondary-bg: var(--black-soft); --bs-tertiary-bg: var(--black-soft); }
html[data-theme="dark"] .form-text, html[data-theme="dark"] .form-check-label { color: var(--gray-400); }
html[data-theme="dark"] .list-group-item, html[data-theme="dark"] .modal-content, html[data-theme="dark"] .dropdown-menu { background-color: var(--black-card); color: var(--white); border-color: var(--black-border); }
html[data-theme="dark"] .accordion-item, html[data-theme="dark"] .accordion-button { background-color: var(--black-card); color: var(--white); }
html[data-theme="dark"] .nav-tabs .nav-link { color: var(--gray-400); }
html[data-theme="dark"] .nav-tabs .nav-link.active { background: var(--black-card); color: var(--white); border-color: var(--black-border) var(--black-border) var(--black-card); }
html[data-theme="dark"] .input-group-text { background: var(--black-soft); color: var(--gray-400); border-color: var(--black-border); }
html[data-theme="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(2); }
html[data-theme="dark"] .text-body, html[data-theme="dark"] .text-dark { color: var(--white) !important; }
html[data-theme="dark"] .badge.bg-dark { background: #2A3A55 !important; color: #fff; }
html[data-theme="dark"] .table { --bs-table-color: var(--white); --bs-table-bg: transparent; color: var(--white); }

/* ===== v6 : reçus (espace mobile), envoi WhatsApp ===== */
.recus-liste { display: grid; gap: .75rem; padding-bottom: 5.5rem; }
.recu-carte { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center; background: var(--black-card); border: 1px solid var(--black-border); border-left: 4px solid var(--warn); border-radius: 12px; padding: .8rem .9rem; }
.recu-carte.a-recu { border-left-color: var(--asin-emerald); }
.recu-zone { display: flex; align-items: center; gap: .6rem; }
.recu-vignette img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--black-border); }
.btn-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; width: 120px; min-height: 84px; border: 2px dashed var(--black-border); border-radius: 10px; cursor: pointer; color: var(--gold); font-size: .78rem; font-weight: 600; text-align: center; padding: .4rem; margin: 0; }
.btn-photo i { font-size: 1.6rem; }
.btn-photo:hover { border-color: var(--gold); background: var(--gold-soft); }
.valider-barre { position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 1rem; margin-top: -4.5rem;
  background: var(--black-card); border: 1px solid var(--black-border); border-radius: 12px; box-shadow: 0 -8px 24px -12px rgba(15,46,82,.35); }
@media (max-width: 576px) {
  .recu-carte { grid-template-columns: 1fr; }
  .recu-zone { justify-content: flex-start; }
  .btn-photo { width: 100%; min-height: 64px; flex-direction: row; font-size: .95rem; }
  .valider-barre { border-radius: 0; margin-left: -1rem; margin-right: -1rem; }
  .valider-barre .btn { flex: 1; }
}
.recus-grille { display: flex; flex-wrap: wrap; gap: .75rem; }
.recus-item { width: 128px; }
.recus-item img { width: 128px; height: 128px; object-fit: cover; border-radius: 8px; border: 1px solid var(--black-border); margin-bottom: .3rem; }
.envoi-apercu { white-space: pre-wrap; text-align: left; font-family: inherit; font-size: .85rem; background: var(--surface-muted); border-radius: 10px; padding: .75rem; margin: .75rem 0 1rem; max-height: 220px; overflow: auto; }

/* ===== v7 : parcours simplifié ===== */
.cal-consigne { font-size: .92rem; color: var(--white); background: var(--gold-soft); border-radius: 8px; padding: .45rem .7rem; margin-bottom: .35rem; }
.cal-j.cal-sel { background: var(--asin-emerald); border-color: var(--asin-emerald); color: #fff; }
.cal-j.cal-sel::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; top: 1px; left: 4px; font-size: .65rem; }
.l-sel { background: var(--asin-emerald) !important; }
.l-panier { background: var(--gold) !important; }
.cal-j.cal-panier::after { background: var(--gold); }
.cal-j { min-height: 40px; font-size: .95rem; }
.demande-barre { position: sticky; bottom: 12px; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  margin-top: .75rem; padding: .6rem .6rem .6rem 1rem; border-radius: 12px; background: var(--asin-navy); color: #fff; box-shadow: 0 10px 28px -12px rgba(15,46,82,.7); }
.demande-barre .btn { font-weight: 700; }
@media (max-width: 991px) { .demande-barre { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* ===== v8 : photos d'église en 4:3, liste en ligne sur mobile ===== */
.church-cover { height: auto; aspect-ratio: 4 / 3; }
.eglise-photo { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto !important; border-radius: var(--radius) var(--radius) 0 0; }
@media (max-width: 575.98px) {
  #listWrap { --bs-gutter-y: .6rem; }
  #listWrap .church-card { flex-direction: row; align-items: stretch; }
  #listWrap .church-cover { flex: 0 0 38%; max-width: 150px; aspect-ratio: 4 / 3; align-self: flex-start; margin: .6rem 0 .6rem .6rem; border-radius: 10px; }
  #listWrap .church-cover .zone { bottom: .3rem; left: .3rem; font-size: .6rem; padding: 1px 6px; }
  #listWrap .church-cover .dist { top: .3rem; right: .3rem; font-size: .62rem; padding: 1px 6px; }
  #listWrap .church-cover .bi { font-size: 1.6rem; }
  #listWrap .church-body { padding: .6rem .75rem; min-width: 0; }
  #listWrap .church-body h3 { font-size: .95rem; margin-bottom: .1rem; }
  #listWrap .church-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #listWrap .next-mass { margin-top: .25rem; font-size: .75rem; }
  #listWrap .church-actions { padding-top: .5rem; gap: .35rem; }
  #listWrap .church-actions .btn { padding: .25rem .4rem; font-size: .75rem; }
}
.carte-pub { margin-top: .75rem; }
.pwd-wrap { position: relative; display: block; }
.pwd-wrap input { padding-right: 2.6rem; }
.pwd-eye { position: absolute; top: 50%; right: .45rem; transform: translateY(-50%); border: 0; background: transparent; color: var(--gray-400); padding: .25rem .4rem; line-height: 1; }
.pwd-eye:hover { color: var(--gold); }
.matrice-perms tr.groupe td { background: var(--surface-muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); }
.matrice-perms td:first-child, .matrice-perms th:first-child { position: sticky; left: 0; background: var(--black-card); z-index: 1; min-width: 260px; }
.matrice-perms .form-check-input { width: 1.2em; height: 1.2em; }
.type-select { font-size: .9rem; }
.type-details { font-size: .85rem; }
.type-chiffres b { font-size: .95rem; }
.type-chiffres span, .type-chiffres small { font-size: .7rem; }
/* Recherche : bouton d'envoi dans le champ, résultats visibles sous l'en-tête */
.recherche-champ .form-control { padding-right: 3rem; }
.recherche-go { position: absolute; top: 50%; right: .3rem; transform: translateY(-50%); width: 2.3rem; height: 2.3rem; border: 0; border-radius: 8px; background: var(--btn-bg); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.recherche-go:hover { background: var(--btn-bg-hover); }
.recherche-champ input[type=search]::-webkit-search-cancel-button { margin-right: .2rem; }
#resultats { scroll-margin-top: 80px; }
/* Calendrier : jamais plus large que l'écran */
.calendrier { width: 100%; max-width: 460px; box-sizing: border-box; overflow: hidden; }
.cal-grille { grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; }
.cal-j { min-width: 0; width: 100%; }
@media (max-width: 575.98px) {
  .etapes .accordion-body { padding: .75rem .6rem 1rem; }
  .etapes .accordion-button { padding: .75rem .7rem; }
  .quand-box { padding: .6rem; }
  .calendrier { padding: .5rem; max-width: none; }
  .cal-grille { gap: 3px; }
  .cal-j { min-height: 34px; font-size: .85rem; border-radius: 6px; }
  .cal-j small { font-size: .55rem; right: 2px; }
  .cal-jsem { font-size: .65rem; }
  .cal-legende { gap: .5rem; font-size: .68rem; }
  .cal-raccourcis .btn { font-size: .72rem; }
}
/* Barre latérale : hauteur réelle de l'écran mobile (le bas n'est plus caché par la barre du navigateur) */
.sidebar { height: 100vh; height: 100dvh; }
.sidebar-footer { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
.topbar-logout { color: #EF4444; font-size: 1.25rem; line-height: 1; display: inline-flex; padding: .2rem; }
.topbar-logout:hover { color: #B91C1C; }
/* Barre de fin d'étape : très visible, collée en bas de l'écran tant que l'étape est ouverte */
.etape-barre { position: sticky; bottom: 10px; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  margin-top: 1rem; padding: .6rem .6rem .6rem 1rem; border-radius: 12px; background: var(--asin-navy); color: #fff; box-shadow: 0 10px 28px -12px rgba(15,46,82,.7); }
.etape-barre-txt { display: flex; flex-direction: column; line-height: 1.25; font-size: .85rem; min-width: 0; }
.etape-barre-txt .etape-n { font-size: .72rem; opacity: .75; text-transform: uppercase; letter-spacing: .04em; }
.btn-etape { font-weight: 700; padding: .55rem 1.1rem; white-space: nowrap; color: var(--asin-navy); }
.btn-etape:hover { background: #fff; color: var(--asin-navy); }
.etape-barre-fin { background: var(--asin-emerald); }
.etape-barre-fin .btn-etape { color: #0B6B4A; }
@media (max-width: 991px) { .etape-barre { bottom: calc(72px + env(safe-area-inset-bottom)); } }
.sidebar-footer { position: sticky; bottom: 0; background: var(--black-soft); z-index: 2; }
/* Barre d'étape : à sa place, en fin d'étape (ne flotte plus au-dessus des champs) */
.etape-barre { position: static; bottom: auto; margin-top: 1.25rem; }
@media (max-width: 991px) { .etape-barre { bottom: auto; } }
@media (max-width: 575.98px) {
  .etape-barre { padding: .55rem .55rem .55rem .85rem; gap: .5rem; }
  .btn-etape { padding: .5rem .8rem; font-size: .9rem; }
  .etape-barre-txt { font-size: .8rem; }
}
/* Page confirmation : sections repliables (le paiement reste visible) */
.conf-acc .accordion-header { font-size: 1rem; }
.conf-acc .accordion-button { font-weight: 600; }
.barre-payer { margin-top: 1rem; }
.barre-payer .btn-etape { font-size: 1.05rem; padding: .7rem 1.4rem; }
@media (max-width: 575.98px) { .barre-payer { flex-wrap: wrap; } .barre-payer .btn-etape { width: 100%; padding: .75rem 1rem; } }
/* Notifications push */
.push-invite { bottom: 80px; }
@media (min-width: 992px) { .push-invite { bottom: 1.25rem; } }
.footer-push { color: inherit; text-decoration: none; font-size: .85rem; }
.footer-push:hover { color: var(--gold); }
.push-suivre { border: 1px dashed var(--gold); border-radius: 12px; padding: .7rem .9rem; }
/* Listes groupées (églises par pays / département, zones) */
.groupe-ligne td { background: var(--gold-soft); font-weight: 600; font-size: .82rem; padding-top: .35rem !important; padding-bottom: .35rem !important; }
.bulk-bar { position: sticky; top: 0; z-index: 5; }
.autres-eg { max-height: 220px; overflow: auto; border: 1px solid var(--black-border); border-radius: 8px; padding: .4rem .6rem; }


/* ===== En-tête public : pays, thème, espace gestion ===== */
.topbar-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-shrink: 0; }
.pub-nav + .topbar-actions { margin-left: .5rem; }
@media (max-width: 767.98px) { .pub-nav + .topbar-actions, .topbar-actions { margin-left: auto; } }
.pays-choix { position: relative; }
.pays-btn { height: 36px; display: inline-flex; align-items: center; gap: .4rem; padding: 0 .65rem 0 .55rem; border: 1px solid var(--black-border); border-radius: 999px;
  background: none; color: var(--white); font-size: .78rem; font-weight: 700; letter-spacing: .04em; transition: border-color .15s, color .15s; }
.pays-btn:hover, .pays-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.pays-btn .bi-chevron-down { font-size: .65rem; transition: transform .2s; }
.pays-btn[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.drapeau { display: inline-block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.14); object-fit: cover; flex-shrink: 0; vertical-align: middle; }
.drapeau-code { font-size: .62rem; font-weight: 800; padding: 0 .3rem; background: var(--gold-soft); color: var(--gold); }
.pays-menu { min-width: 230px; padding: .4rem; margin: 0; border-radius: 14px; border: 1px solid var(--black-border); background: var(--black-card);
  box-shadow: 0 20px 44px -14px rgba(0,0,0,.4); z-index: 1085; }
.pays-choix .pays-menu { position: absolute; right: 0; left: auto; top: calc(100% + 10px); }
.pays-menu-titre { list-style: none; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-400); padding: .35rem .65rem .45rem; }
.pays-menu .dropdown-item { display: flex; align-items: center; gap: .65rem; border-radius: 9px; padding: .6rem .65rem; color: var(--white); font-weight: 500; }
.pays-menu .dropdown-item:hover, .pays-menu .dropdown-item:focus { background: var(--gold-soft); color: var(--white); }
.pays-menu .dropdown-item.active { background: var(--gold-soft); color: var(--gold); font-weight: 700; }
@media (max-width: 1199.98px) and (min-width: 768px) { .pub-topbar .brand-tagline { display: none !important; } .pub-nav a { padding: .45rem .55rem; } }
@media (max-width: 991.98px) and (min-width: 768px) { .pub-nav a i { display: none; } }

/* ===== Hero : barre de recherche ===== */
.hero-recherche { display: grid; grid-template-columns: minmax(0, 1.6fr) auto minmax(215px, 1fr) auto; align-items: center; max-width: 1020px;
  background: var(--black-card); background: color-mix(in srgb, var(--black-card) 80%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  color: var(--white); border-radius: 18px; padding: 6px; box-shadow: 0 22px 44px -20px rgba(6, 20, 40, .6), inset 0 0 0 1px rgba(255,255,255,.18); }
.hero-recherche.un-pays { grid-template-columns: minmax(0, 1.6fr) minmax(215px, 1fr) auto; }
.hr-champ { display: flex; align-items: center; gap: .6rem; padding: 0 .9rem; min-height: 52px; position: relative; border-radius: 12px; transition: background .15s; }
.hr-champ:hover, .hr-champ:focus-within, .hr-champ.show { background: color-mix(in srgb, var(--black-soft) 70%, transparent); }
.hr-champ + .hr-champ::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--black-border); }
.hr-champ:hover::before, .hr-champ:focus-within::before, .hr-champ:hover + .hr-champ::before, .hr-champ:focus-within + .hr-champ::before { opacity: 0; }
.hr-champ > i, .hr-bouton > .bi-geo-alt { color: var(--gold); font-size: 1.05rem; flex-shrink: 0; }
.hr-champ input { border: 0; outline: 0; background: transparent; color: var(--white); width: 100%; min-width: 0; font-size: .95rem; height: 52px; padding: 0; box-shadow: none; }
.hr-champ input::placeholder { color: var(--gray-400); opacity: 1; }
.hr-texte input::-webkit-search-cancel-button { display: none; }
.hr-fleche { flex-shrink: 0; width: 40px; height: 40px; margin-right: -.45rem; border: 0; border-radius: 11px; background: var(--btn-bg); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: transform .15s, background .15s; }
.hr-fleche:hover { background: var(--btn-bg-hover); transform: translateX(2px); }
.hr-bouton { border: 0; background: none; color: var(--white); display: flex; align-items: center; gap: .55rem; height: 52px; font-weight: 600; font-size: .95rem; padding: 0; white-space: nowrap; width: 100%; text-align: left; }
.hr-bouton .hr-lib { overflow: hidden; text-overflow: ellipsis; }
.hr-dep .hr-bouton .hr-lib { flex: 1; }
.hr-chevron { font-size: .7rem; color: var(--gray-400); margin-left: auto; transition: transform .2s; }
.hr-pays .hr-chevron { margin-left: .15rem; }
.hr-bouton[aria-expanded="true"] .hr-chevron { transform: rotate(180deg); }
.hr-pays .pays-menu { position: absolute; left: 0; top: calc(100% + 10px); }
.hr-pres { justify-self: end; height: 44px; margin-left: 6px; border: 1px solid var(--black-border); border-radius: 13px; background: transparent; color: var(--white); padding: 0 1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; font-size: .9rem; white-space: nowrap; transition: all .15s; }
.hr-pres i { color: var(--gold); font-size: 1.05rem; }
.hr-pres:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
/* Liste des départements / régions */
.dep-menu { position: absolute; left: 0; top: calc(100% + 10px); width: max(100%, 300px); padding: .45rem; margin: 0; border: 1px solid var(--black-border); border-radius: 16px;
  background: var(--black-card); box-shadow: 0 24px 48px -16px rgba(0,0,0,.42); z-index: 1085; }
.dep-filtre { display: flex; align-items: center; gap: .5rem; margin: .1rem .1rem .45rem; padding: 0 .7rem; border-radius: 10px; background: var(--black-soft); }
.dep-filtre i { color: var(--gray-400); }
.dep-filtre input { border: 0; outline: 0; background: transparent; color: var(--white); height: 40px; width: 100%; font-size: .9rem; }
.dep-liste { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.dep-liste .dropdown-item { display: flex; align-items: center; gap: .6rem; border-radius: 9px; padding: .55rem .6rem; color: var(--white); font-size: .92rem; }
.dep-liste .dropdown-item > i { color: var(--gray-400); font-size: .95rem; }
.dep-liste .dropdown-item span:first-of-type { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-liste .dropdown-item:hover, .dep-liste .dropdown-item:focus { background: var(--gold-soft); color: var(--white); }
.dep-liste .dropdown-item.active { background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.dep-liste .dropdown-item.active > i { color: var(--gold); }
.dep-nb { min-width: 28px; padding: .1rem .45rem; border-radius: 999px; background: var(--black-soft); color: var(--gray-400); font-size: .72rem; font-weight: 700; text-align: center; }
.dep-liste .dropdown-item.active .dep-nb { background: var(--btn-bg); color: #fff; }
.dep-vide { display: none; padding: .8rem; text-align: center; color: var(--gray-400); font-size: .88rem; }
/* Tablette : recherche sur toute la largeur, filtres dessous */
@media (max-width: 1099.98px) {
  .hero-recherche, .hero-recherche.un-pays { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hero-recherche.un-pays .hr-dep { grid-column: 1 / 3; }
  .hr-texte { grid-column: 1 / -1; }
  .hr-texte::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -3px; height: 1px; background: var(--black-border); }
  .hr-pays::before { display: none; }
}
/* Mobile : recherche en haut ; drapeau, département et « près de moi » dessous, icônes alignées à droite */
@media (max-width: 575.98px) {
  .hero-recherche { border-radius: 16px; }
  .hr-champ { padding: 0 .75rem; min-height: 50px; }
  .hr-champ input, .hr-bouton { height: 50px; font-size: .92rem; }
  .hr-pays .hr-lib { display: none; }
  .hr-pays .hr-bouton { gap: .4rem; }
  .hr-pays .hr-chevron { display: none; }
  .hr-pres { width: 44px; padding: 0; margin-left: 4px; }
  .hr-pres span { display: none; }
  .hero-recherche { position: relative; }
  .hr-dep, .hr-pays { position: static; }
  .dep-menu, .hr-pays .pays-menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); width: auto; }
  .dep-liste { max-height: 50vh; }
}
/* Le menu des pays dépasse du hero : pas de rognage (les fonds animés gardent les coins arrondis) */
.hero.hero-ciel { overflow: visible; z-index: 20; }
.hero.hero-ciel::before, .hero.hero-ciel::after { border-radius: inherit; }

/* ---------- Double authentification ---------- */
.mfa-qr { display: flex; justify-content: center; }
.mfa-qr canvas, .mfa-qr img { background: #fff; padding: 10px; border-radius: 8px; max-width: 220px; height: auto; }
.mfa-cle code { font-size: 1rem; letter-spacing: .05em; word-break: break-all; }
.mfa-code { letter-spacing: .35em; font-variant-numeric: tabular-nums; font-weight: 600; }
.mfa-code::placeholder { letter-spacing: .35em; opacity: .35; }
.mfa-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.mfa-codes code { display: block; text-align: center; padding: .45rem; border: 1px dashed var(--bs-border-color, #ccc); border-radius: 6px; font-size: .95rem; letter-spacing: .05em; color: inherit; }
.mfa-etapes li::marker { font-weight: 600; }
@media print { .auth-bg-pattern { display: none; } .mfa-codes code { color: #000; } }

/* ---------- Itinéraire dans l'application (plein écran) ---------- */
body.itin-ouvert { overflow: hidden; }
.itin-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: var(--bs-body-bg, #fff); }
.itin-overlay[hidden] { display: none; }
.itin-zone { flex: 1 1 auto; min-height: 0; position: relative; }
.itin-carte { position: absolute; inset: 0; }
.itin-top { position: absolute; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem;
  padding-top: max(.7rem, env(safe-area-inset-top)); pointer-events: none; }
.itin-top > * { pointer-events: auto; }
.itin-titre { background: var(--bs-body-bg, #fff); border-radius: 12px; padding: .35rem .8rem; box-shadow: 0 2px 10px rgba(0,0,0,.15); min-width: 0; line-height: 1.2; }
.itin-titre small { display: block; color: var(--bs-secondary-color, #6b7280); font-size: .72rem; }
.itin-titre b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.itin-rond { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 0; background: var(--bs-body-bg, #fff); color: var(--bs-body-color, #111);
  box-shadow: 0 2px 10px rgba(0,0,0,.2); font-size: 1.15rem; display: inline-flex; align-items: center; justify-content: center; }
.itin-rond.active { background: #1A56DB; color: #fff; }
.itin-outils { position: absolute; right: .8rem; bottom: 1.8rem; z-index: 1000; display: flex; flex-direction: column; gap: .5rem; }
.itin-overlay .leaflet-top.leaflet-right { top: 64px; }
.itin-panneau { flex: 0 0 auto; max-height: 46vh; overflow-y: auto; padding: .8rem 1rem; padding-bottom: max(.8rem, env(safe-area-inset-bottom));
  background: var(--bs-body-bg, #fff); border-radius: 18px 18px 0 0; box-shadow: 0 -4px 18px rgba(0,0,0,.12); margin-top: -18px; position: relative; z-index: 1000; }
.itin-modes { display: flex; gap: .4rem; margin-bottom: .6rem; }
.itin-modes button { flex: 1; border: 1px solid var(--bs-border-color, #ddd); background: transparent; color: inherit; border-radius: 999px; padding: .45rem .6rem; font-size: .88rem; }
.itin-modes button.active { background: #1A56DB; border-color: #1A56DB; color: #fff; }
.itin-resume { font-size: 1.1rem; min-height: 1.6rem; }
.itin-msg { margin-top: .4rem; font-size: .85rem; padding: .45rem .6rem; border-radius: 8px; background: rgba(26,86,219,.08); }
.itin-msg.warn { background: rgba(217,119,6,.12); }
.itin-msg.ok { background: rgba(16,185,129,.14); }
.itin-etapes-btn { margin-top: .5rem; border: 0; background: transparent; color: #1A56DB; padding: .25rem 0; font-size: .9rem; }
.itin-etapes-btn .bi-chevron-up { transition: transform .2s; display: inline-block; transform: rotate(180deg); }
.etapes-ouvertes .itin-etapes-btn .bi-chevron-up { transform: none; }
.itin-etapes { display: none; list-style: none; padding: 0; margin: .3rem 0 .5rem; }
.etapes-ouvertes .itin-etapes { display: block; }
.itin-etapes li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--bs-border-color, #eee); font-size: .9rem; }
.itin-etapes li i { font-size: 1.1rem; color: #1A56DB; width: 1.3rem; text-align: center; }
.itin-etapes li span { flex: 1; }
.itin-etapes li small { color: var(--bs-secondary-color, #6b7280); white-space: nowrap; }
.itin-externe { display: inline-block; margin-top: .4rem; font-size: .85rem; }
.itin-moi { background: #1A56DB; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(26,86,219,.35), 0 1px 6px rgba(0,0,0,.35); }
.itin-dest { color: #DC2626; font-size: 30px; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,.35); margin-top: -18px !important; }

/* Guidage (bouton « Démarrer ») */
.itin-demarrer { display: block; width: 100%; margin-top: .6rem; border: 0; border-radius: 999px; padding: .75rem; font-size: 1.05rem; font-weight: 600; background: #1A56DB; color: #fff; }
.itin-demarrer[hidden] { display: none; }
.itin-guidage { display: none; align-items: center; gap: .6rem; }
.itin-reste { flex: 1; font-size: 1.05rem; }
.itin-arreter { border: 0; border-radius: 999px; padding: .6rem 1rem; background: #DC2626; color: #fff; font-weight: 600; }
.itin-bandeau { display: none; }
.itin-nav .itin-bandeau { display: flex; flex: 1; align-items: center; gap: .8rem; background: #0F5132; color: #fff; border-radius: 14px; padding: .7rem .9rem;
  box-shadow: 0 3px 14px rgba(0,0,0,.25); min-width: 0; }
.itin-nav .itin-bandeau > i { font-size: 2rem; line-height: 1; }
.itin-nav .itin-bandeau b { display: block; font-size: 1.35rem; line-height: 1.15; }
.itin-nav .itin-bandeau span { display: block; font-size: .95rem; opacity: .95; }
.itin-nav .itin-titre, .itin-nav .itin-modes, .itin-nav .itin-resume, .itin-nav .itin-demarrer, .itin-nav .itin-etapes-btn, .itin-nav .itin-etapes, .itin-nav .itin-externe, .itin-nav .itin-msg:not(.ok) { display: none !important; }
.itin-nav .itin-guidage { display: flex; }
@media (min-width: 768px) {
  .itin-panneau { position: absolute; left: 16px; bottom: 16px; width: 400px; max-height: calc(100vh - 110px); border-radius: 16px; margin: 0; box-shadow: 0 4px 24px rgba(0,0,0,.18); }
  .itin-outils { bottom: 1.2rem; }
}
@media (min-width: 768px) { .itin-nav .itin-bandeau { max-width: 460px; } }
.itin-nav .leaflet-top.leaflet-right { top: 104px; }

/* ===== v2.5 : demande de messe — calendrier vivant, choix des heures par date ===== */
.sous-titre { font-size: 1rem; font-weight: 700; }
.badge-dispo { font-size: .75rem; background: var(--gold-soft); color: var(--white); border-radius: 999px; padding: .2rem .6rem; }
.quand-box { padding: .8rem; }
.cal-grille { gap: 5px; }
.cal-j { border-radius: 50%; aspect-ratio: 1 / 1; min-height: 0; transition: transform .12s ease, background .15s; }
.cal-j.cal-dispo:active { transform: scale(.9); }
.cal-j.cal-sel { background: var(--asin-emerald); border-color: var(--asin-emerald); color: #fff; box-shadow: 0 2px 8px rgba(16,185,129,.35); }
.cal-j.cal-sel::before { content: none; }
.cal-j.cal-actif { outline: 2px solid var(--btn-bg); outline-offset: 2px; }
.cal-j.cal-spec::after { content: "★"; position: absolute; top: -3px; right: -1px; font-size: .62rem; color: var(--asin-gold, #C9A227); }
.cal-j small { top: auto; bottom: -2px; right: -2px; background: var(--btn-bg); color: #fff; border-radius: 999px; min-width: 16px; height: 16px; line-height: 16px; font-size: .6rem; opacity: 1; }
.jour-choix { margin-top: .8rem; min-height: 46px; }
.jour-vide { text-align: center; color: var(--gray-400); font-size: .9rem; padding: .6rem; border: 1px dashed var(--black-border); border-radius: 12px; }
.jour-titre { font-weight: 700; margin-bottom: .45rem; }
.jour-heures { display: flex; flex-wrap: wrap; gap: .5rem; }
.heure-chip { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; border: 1.5px solid var(--black-border); background: var(--black-card); color: var(--white);
  border-radius: 999px; padding: .5rem .9rem; font-weight: 700; font-size: .95rem; transition: all .15s; animation: pop .2s ease; }
.heure-chip small { font-weight: 500; font-size: .75rem; color: var(--gray-400); }
.heure-chip.spec { border-color: var(--asin-gold, #C9A227); }
.heure-chip.on { background: var(--asin-emerald); border-color: var(--asin-emerald); color: #fff; }
.heure-chip.on small { color: rgba(255,255,255,.85); }
.repeter { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .7rem; font-size: .85rem; animation: pop .2s ease; }
.repeter span { color: var(--gray-400); }
.repeter button, .intention-idees button { border: 1px solid var(--black-border); background: transparent; color: var(--white); border-radius: 999px; padding: .25rem .7rem; font-size: .82rem; }
.repeter button:active, .intention-idees button:active { background: var(--gold-soft); }
.panier { border-style: solid; background: var(--black-card); }
.panier-chips { display: flex; flex-wrap: wrap; gap: .35rem; max-height: 210px; overflow-y: auto; }
.panier-chips .panier-mois { flex-basis: 100%; padding: .3rem 0 0; }
.messe-chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--gold-soft); border-radius: 999px; padding: .2rem .2rem .2rem .65rem; font-size: .85rem; animation: pop .2s ease; }
.messe-chip.spec { box-shadow: inset 0 0 0 1px var(--asin-gold, #C9A227); }
.messe-chip button { border: 0; background: transparent; color: var(--gray-400); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.messe-chip button:hover { color: #DC2626; background: rgba(220,38,38,.1); }
.intention-idees { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .45rem; margin-bottom: .1rem; scrollbar-width: none; }
.intention-idees::-webkit-scrollbar { display: none; }
.intention-idees button { white-space: nowrap; flex: 0 0 auto; }
.total-grand { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin-bottom: .4rem; }
.total-grand b { font-size: 1.6rem; color: var(--gold); }
.totaux .totaux-ligne { font-size: .88rem; color: var(--gray-400); }
.astuce { margin-top: .5rem; font-size: .85rem; background: rgba(16,185,129,.1); color: var(--asin-emerald); border-radius: 8px; padding: .35rem .6rem; }
.toast-dem { position: fixed; left: 50%; top: 84px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; z-index: 1080;
  background: #111827; color: #fff; border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: all .2s ease; }
.toast-dem.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .heure-chip, .messe-chip, .repeter, .cal-j { animation: none; transition: none; } }

/* v2.5 : audience (admin) */
.aud-barre { margin-bottom: .65rem; }
.aud-piste { height: 8px; border-radius: 999px; background: rgba(127,140,160,.18); overflow: hidden; margin-top: 3px; }
.aud-rempli { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--bs-primary, #14304F), #C9A227); }
.aud-graph { position: relative; height: 300px; }
.aud-graph-sm { height: 200px; }

/* v2.5 : partage (WhatsApp, Facebook, feuille de partage) */
.partage { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--border, rgba(127,140,160,.3)); }
.partage-titre { display: block; font-size: .8rem; font-weight: 600; color: var(--text-muted, #6b7280); margin-bottom: .45rem; }
.partage-boutons { display: flex; flex-wrap: wrap; gap: .45rem; }
.partage-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid transparent; border-radius: 999px; padding: .42rem .85rem; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; transition: transform .15s ease, filter .15s ease; }
.partage-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.partage-btn .bi { font-size: 1rem; }
.partage-btn.wa { background: #25D366; color: #fff; }
.partage-btn.fb { background: #1877F2; color: #fff; }
.partage-btn.natif { background: var(--al-nuit, #14304F); color: #fff; }
.partage-btn.lien { background: transparent; border-color: rgba(127,140,160,.45); color: inherit; }
html[data-theme="dark"] .partage-btn.natif { background: #2C455D; }

/* v2.5 : pages « Horaires des messes à … » */
.ville-hero { padding: 1.1rem 1.2rem; border-radius: 18px; background: linear-gradient(135deg, var(--al-nuit, #14304F), #2C455D); color: #fff; margin-bottom: 1rem; }
.ville-hero h1 { font-size: clamp(1.35rem, 4.5vw, 2rem); margin: 0 0 .25rem; color: #fff; }
.ville-hero p { margin: 0; color: rgba(255,255,255,.8); }
.ville-hero .btn { margin-top: .8rem; }
.ville-eglise { display: block; text-decoration: none; color: inherit; }
.ville-eglise h2 { font-size: 1.05rem; margin: 0 0 .2rem; }
.ville-messes { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.ville-messes span { font-size: .78rem; padding: .18rem .55rem; border-radius: 999px; background: rgba(201,162,39,.14); }
.ville-messes span b { font-weight: 700; }
.villes-liste { columns: 2 220px; column-gap: 1.5rem; }
.villes-liste h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted, #6b7280); margin: .8rem 0 .3rem; break-after: avoid; }
.villes-liste a { display: flex; justify-content: space-between; padding: .3rem 0; text-decoration: none; color: inherit; border-bottom: 1px solid rgba(127,140,160,.15); break-inside: avoid; }
.villes-liste a small { color: var(--text-muted, #6b7280); }
.villes-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.villes-chips a { padding: .3rem .75rem; border-radius: 999px; border: 1px solid rgba(201,162,39,.45); text-decoration: none; color: inherit; font-size: .85rem; }
.villes-chips a:hover { background: rgba(201,162,39,.12); }

/* v2.6 : suggestions, inscription d'église */
.choix-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.choix-carte { position: relative; cursor: pointer; margin: 0; }
.choix-carte input { position: absolute; opacity: 0; pointer-events: none; }
.choix-carte span { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .7rem .4rem; border-radius: 14px; border: 1.5px solid rgba(127,140,160,.3); font-weight: 600; font-size: .88rem; text-align: center; transition: all .15s ease; }
.choix-carte span .bi { font-size: 1.35rem; color: var(--gold, #C9A227); }
.choix-carte input:checked + span { border-color: var(--gold, #C9A227); background: rgba(201,162,39,.12); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
.choix-carte input:focus-visible + span { outline: 2px solid var(--gold, #C9A227); outline-offset: 2px; }
.merci-ico { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; background: linear-gradient(135deg, #0E9F6E, #34C38F); animation: pop .4s ease; }
.form-section { display: flex; align-items: center; gap: .5rem; font-size: 1rem; margin: .4rem 0 .8rem; }
.form-section span { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; background: var(--al-nuit, #14304F); color: #fff; }
.avantages-liste { list-style: none; padding: 0; margin: .6rem 0 .8rem; display: grid; gap: .7rem; }
.avantages-liste li { display: flex; gap: .6rem; font-size: .9rem; line-height: 1.35; }
.avantages-liste .bi { flex: none; width: 2rem; height: 2rem; border-radius: 10px; display: grid; place-items: center; background: rgba(201,162,39,.14); color: var(--gold, #C9A227); }
@media (max-width: 420px) { .choix-carte span { font-size: .8rem; } }
.msg-type { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.msg-suggestion { background: rgba(201,162,39,.16); color: #9a7a12; }
.msg-reclamation { background: rgba(220,53,69,.14); color: #c0392b; }
.msg-question { background: rgba(13,110,253,.12); color: #2563eb; }
.msg-texte { white-space: normal; background: var(--surface-muted, rgba(127,140,160,.08)); border-radius: 10px; padding: .55rem .75rem; }

/* v2.6 : cadran de l'offrande (étape 1 de la demande) en couleur */
.type-details { background: transparent; padding: 0; }
.type-details > p { background: var(--surface-muted); border-radius: 12px; padding: .6rem .8rem; }
.type-chiffres { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .55rem; }
.type-chiffres > div { position: relative; overflow: hidden; border: 0; border-radius: 16px; padding: .75rem .85rem .7rem; color: #fff; box-shadow: 0 6px 18px rgba(20,48,79,.14); }
.type-chiffres > div > .bi { position: absolute; right: -.25rem; bottom: -.55rem; font-size: 3.2rem; opacity: .18; }
.type-chiffres > div span { color: rgba(255,255,255,.85); font-weight: 700; }
.type-chiffres > div b { color: #fff; font-size: 1.25rem; line-height: 1.2; }
.type-chiffres > div small { color: rgba(255,255,255,.82); }
.type-chiffres .tc-offrande { background: linear-gradient(135deg, #C9A227, #E3B93C 55%, #F0CD5B); }
.type-chiffres .tc-offrande span, .type-chiffres .tc-offrande small { color: rgba(40,30,0,.75); }
.type-chiffres .tc-offrande b { color: #2B2100; }
.type-chiffres .tc-service { background: linear-gradient(135deg, #14304F, #2C5A87); }
.type-chiffres .tc-remise { background: linear-gradient(135deg, #0E9F6E, #34C38F); }
.type-special { background: rgba(201,162,39,.12); border-radius: 10px; padding: .45rem .7rem; color: inherit; }
.type-special .bi { color: var(--gold, #C9A227); }
.etape { scroll-margin-top: 80px; }

/* v2.6 : fenêtre de partage */
.partage-dialog { max-width: 420px; }
.partage-modal { border: 0; border-radius: 22px; padding: 1.1rem; overflow: hidden; }
.partage-tete { display: flex; gap: .75rem; align-items: center; margin-bottom: .8rem; }
.partage-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; background: linear-gradient(135deg, #14304F, #2C5A87); }
.partage-sur { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted, #6b7280); font-weight: 700; }
.partage-nom { font-size: 1.05rem; margin: 0; line-height: 1.25; }
.partage-apercu { border-radius: 16px; padding: .8rem .9rem; margin-bottom: .9rem; background: #E7F8EE; color: #10301F; border-left: 4px solid #25D366; font-size: .9rem; }
.partage-apercu p { white-space: pre-line; margin: 0 0 .35rem; }
.partage-apercu span { font-size: .8rem; color: #128C7E; font-weight: 600; word-break: break-all; }
html[data-theme="dark"] .partage-apercu { background: rgba(37,211,102,.12); color: #DDF5E6; }
.partage-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.pg-btn { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .7rem .2rem; border-radius: 16px; border: 0; text-decoration: none; font-size: .74rem; font-weight: 600; color: #fff; cursor: pointer; transition: transform .15s ease; }
.pg-btn:hover { transform: translateY(-2px); color: #fff; }
.pg-btn .bi { font-size: 1.5rem; }
.pg-wa { background: #25D366; } .pg-fb { background: #1877F2; } .pg-tg { background: #229ED9; }
.pg-lien { background: #5B6472; }
.pg-natif { width: 100%; margin-top: .6rem; border: 1px dashed rgba(127,140,160,.5); background: transparent; border-radius: 12px; padding: .5rem; font-weight: 600; font-size: .85rem; color: inherit; }
@media (max-width: 575.98px) {
  #partageModal .modal-dialog { margin: 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; min-height: 0; align-items: flex-end; }
  #partageModal .partage-modal { border-radius: 22px 22px 0 0; padding-bottom: calc(1.1rem + env(safe-area-inset-bottom)); }
  #partageModal.fade .modal-dialog { transform: translateY(100%); transition: transform .25s ease-out; }
  #partageModal.show .modal-dialog { transform: none; }
}
.church-actions .btn-partage-carte { flex: none; width: 2.4rem; padding-left: 0; padding-right: 0; }

/* v2.6 : appel aux paroisses (accueil) */
.cta-paroisse { display: flex; gap: 1rem; align-items: center; border-radius: 18px; padding: 1rem 1.2rem; color: #fff; background: linear-gradient(135deg, #14304F, #2C455D 60%, #3d5f80); }
.cta-paroisse .bi-building-add { font-size: 2.2rem; color: #E6C65A; flex: none; }
.cta-paroisse b { font-size: 1.05rem; }
.cta-paroisse p { margin: .1rem 0 0; color: rgba(255,255,255,.8); font-size: .9rem; }
@media (max-width: 575.98px) { .cta-paroisse { flex-wrap: wrap; } .cta-paroisse .btn { width: 100%; } }

/* v2.8 : plusieurs demandes dans un envoi (confirmation) */
.conf-demande { border-left: 3px solid var(--gold-dark, #597EA3); padding-left: .65rem; margin: .4rem 0 .6rem; }
.conf-demande-n { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-dark, #597EA3); }

/* v2.8 : plusieurs demandes dans un même envoi (formulaire) */
.ajout-demande { width: 100%; display: flex; align-items: center; gap: .75rem; text-align: left; padding: .75rem .9rem; border-radius: 16px; border: 1.5px dashed var(--gold-dark, #597EA3); background: rgba(89,126,163,.07); color: inherit; transition: background .15s ease, transform .15s ease; }
.ajout-demande:hover { background: rgba(89,126,163,.13); transform: translateY(-1px); }
.ajout-demande b { display: block; font-size: .95rem; }
.ajout-demande small { display: block; color: var(--gray-600, #6F8193); font-size: .78rem; }
.ajout-ico { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold-dark, #597EA3); color: #fff; font-size: 1.1rem; }
.ajout-promo { flex: none; text-align: center; font-weight: 800; color: #0E9F6E; font-size: 1rem; line-height: 1.1; }
.ajout-promo small { display: block; font-weight: 600; font-size: .66rem; color: var(--gray-600, #6F8193); }
.ajout-promo:empty { display: none; }
.demandes-pretes { margin-bottom: 1rem; display: grid; gap: .45rem; }
.demande-prete { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 14px; background: var(--surface-muted, rgba(127,140,160,.08)); font-size: .9rem; }
.dp-num { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; background: #0E9F6E; }
.demande-courante-titre { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin-bottom: .6rem; }
.demande-courante-titre .dp-num { background: var(--gold-dark, #597EA3); }
.astuce-btn { width: 100%; border: 0; text-align: left; cursor: pointer; }

/* v2.9 : boutons des cartes d'église sur toute la largeur de la carte */
.church-card > .church-actions { padding: 0 1rem 1rem; margin-top: 0; }
@media (max-width: 575.98px) {
  #listWrap .church-card { flex-wrap: wrap; }
  #listWrap .church-card > .church-body { flex: 1 1 0; }
  #listWrap .church-card > .church-actions { flex: 0 0 100%; padding: 0 .6rem .6rem; gap: .45rem; }
  #listWrap .church-card > .church-actions .btn { padding: .5rem .5rem; font-size: .88rem; border-radius: 10px; }
  #listWrap .church-card > .church-actions .btn-partage-carte { width: 2.8rem; }
}
#pager[hidden] { display: none !important; }

/* v2.9 : demande plus simple (recherche de l'église, types en cartes) */
.recherche-eglise { position: relative; }
.recherche-eglise .bi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--gray-600, #6F8193); }
.recherche-eglise input { padding-left: 2.4rem; border-radius: 12px; }
.type-choix { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.type-chip { text-align: left; padding: .6rem .75rem; border-radius: 12px; border: 1.5px solid var(--black-border, rgba(127,140,160,.35)); background: var(--black-card, #fff); color: inherit; font-weight: 600; font-size: .88rem; line-height: 1.25; transition: border-color .15s ease, background .15s ease; }
.type-chip[aria-checked="true"] { border-color: var(--gold-dark, #597EA3); background: rgba(89,126,163,.12); box-shadow: inset 0 0 0 1px var(--gold-dark, #597EA3); }
.type-chip[aria-checked="true"]::before { content: "✓ "; color: var(--gold-dark, #597EA3); font-weight: 800; }
@media (min-width: 768px) { .type-choix { grid-template-columns: repeat(3, 1fr); } }
.eglise-fixee { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 14px; background: rgba(89,126,163,.1); border: 1px solid rgba(89,126,163,.3); margin-bottom: .9rem; }
.eglise-fixee > .bi { font-size: 1.4rem; color: var(--gold-dark, #597EA3); }
.eglise-fixee b { display: block; line-height: 1.25; }
.eglise-fixee small { display: block; color: var(--gray-600, #6F8193); font-size: .8rem; }
.eglise-fixee[hidden], #egChoix[hidden] { display: none; }
.eg-resultats { display: grid; gap: .35rem; margin-bottom: .9rem; }
.eg-resultats[hidden], #egMenus[hidden] { display: none; }
.eg-res { display: flex; align-items: center; gap: .65rem; text-align: left; padding: .6rem .75rem; border-radius: 12px; border: 1px solid var(--black-border, rgba(127,140,160,.3)); background: var(--black-card, #fff); color: inherit; }
.eg-res:hover, .eg-res:focus { border-color: var(--gold-dark, #597EA3); background: rgba(89,126,163,.08); }
.eg-res .bi { color: var(--gold-dark, #597EA3); font-size: 1.15rem; }
.eg-res b { display: block; font-size: .92rem; line-height: 1.25; }
.eg-res small { display: block; color: var(--gray-600, #6F8193); font-size: .78rem; }

/* v2.10 : zone d'intention bien visible, erreur mise en évidence */
.intention-zone { border: 2px solid var(--gold-dark, #597EA3); border-radius: 16px; padding: .9rem; background: rgba(89,126,163,.07); }
.intention-label { font-size: 1.05rem; font-weight: 800; margin-bottom: .1rem; }
.intention-label .bi { color: var(--gold-dark, #597EA3); }
.intention-texte { font-size: 1rem; min-height: 5.5rem; border-width: 1.5px; background: var(--black-card, #fff); }
.intention-texte:focus { border-color: var(--gold-dark, #597EA3); box-shadow: 0 0 0 .2rem rgba(89,126,163,.2); }
#egAide[hidden] { display: none; }
@keyframes secoue { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.etape-erreur.secoue { animation: secoue .45s ease; }
@media (prefers-reduced-motion: reduce) { .etape-erreur.secoue { animation: none; } }
.champ-erreur { outline: 2px solid #dc3545; outline-offset: 2px; border-radius: 12px; }

/* v2.11 : heures du jour et liste des messes en fenêtre, annuler une demande en cours */
.jour-info { margin-top: .8rem; min-height: 40px; }
.jour-info .repeter { margin-top: 0; padding: .5rem .65rem; border: 1px dashed var(--black-border); border-radius: 12px; }
.modal-feuille .feuille { background: var(--black-card); color: var(--white); border: 1px solid var(--black-border); border-radius: 20px; overflow: hidden; }
.feuille-tete { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem 1.1rem .5rem; }
.feuille-sur { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gold); font-weight: 700; }
.feuille-titre { font-size: 1.2rem; font-weight: 800; margin: .1rem 0 0; }
.feuille-corps { padding: .4rem 1.1rem 1rem; overflow-y: auto; }
.feuille-pied { padding: .75rem 1.1rem 1rem; border-top: 1px solid var(--black-border); }
.feuille .jour-heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.feuille .heure-chip { justify-content: center; border-radius: 14px; padding: .7rem .6rem; flex-direction: column; gap: .1rem; text-align: center; }
.feuille .heure-chip i { font-size: 1rem; }
.feuille .repeter { margin-top: .9rem; }
.panier-tout { max-height: none; overflow: visible; }
.messe-plus { border: 1px dashed var(--gold); background: transparent; color: var(--gold); border-radius: 999px; padding: .2rem .75rem; font-size: .85rem; font-weight: 700; }
.panier-resume { margin-top: .4rem; }
@media (max-width: 575.98px) {
  /* Sur téléphone : la fenêtre monte du bas de l'écran */
  .modal-feuille { margin: 0; min-height: 100%; display: flex; align-items: flex-end; max-width: none; }
  .modal-feuille .feuille { border-radius: 20px 20px 0 0; border-bottom: 0; max-height: 85vh; display: flex; flex-direction: column; }
  .modal.fade .modal-feuille { transform: translateY(40px); }
  .modal.show .modal-feuille { transform: none; }
  .feuille-pied { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
}
.btn-annuler-dem { margin-left: auto; border: 1px solid rgba(220,38,38,.45); background: transparent; color: #DC2626; border-radius: 999px; padding: .2rem .7rem; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.btn-annuler-dem:hover, .btn-annuler-dem:active { background: rgba(220,38,38,.1); }
#nouvelleInfo { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
#nouvelleInfo[hidden] { display: none; }

/* v2.12 : messes d'urgence */
.badge-urgent { background: #DC2626; color: #fff; }
.urg-etat { display: flex; gap: .75rem; align-items: center; border-radius: 14px; padding: .8rem 1rem; border: 1px solid var(--black-border); background: var(--black-card); }
.urg-etat > i { font-size: 1.5rem; }
.urg-etat.ouvert { border-color: rgba(16,185,129,.5); } .urg-etat.ouvert > i { color: var(--asin-emerald); }
.urg-etat.ferme > i { color: var(--gray-400); }
tr.urg-a-faire > td { background: rgba(220,38,38,.07); }
.pot-miel { position: absolute; left: -9999px; }
.urg-hero { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 18px; margin-bottom: 1rem; color: #fff;
  background: linear-gradient(135deg, #B91C1C 0%, #DC2626 55%, #F97316 100%); box-shadow: 0 10px 28px rgba(220,38,38,.25); }
.urg-hero h1 { font-size: 1.45rem; font-weight: 800; margin: 0; color: #fff; }
.urg-hero p { margin: .1rem 0 .35rem; opacity: .95; }
.urg-hero-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.urg-compte { display: inline-flex; flex-wrap: wrap; gap: .25rem; align-items: center; background: rgba(0,0,0,.18); border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; }
.urg-bloc { margin-bottom: .8rem; }
.urg-titre { font-size: 1.02rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.urg-titre span { width: 26px; height: 26px; border-radius: 50%; background: #DC2626; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.urg-heures .jour-heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.urg-heures .heure-chip { justify-content: center; flex-direction: column; border-radius: 14px; padding: .7rem .5rem; gap: .1rem; }
.urg-total { border: 2px solid rgba(220,38,38,.45); }
.btn-urgence { background: #DC2626; border-color: #DC2626; color: #fff; font-weight: 700; padding: .7rem 1rem; border-radius: 12px; }
.btn-urgence:hover, .btn-urgence:focus { background: #B91C1C; border-color: #B91C1C; color: #fff; }
.urg-callout { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 14px; border: 1.5px solid rgba(220,38,38,.4); background: rgba(220,38,38,.07); color: inherit; text-decoration: none; margin-bottom: .8rem; }
.urg-callout:hover { background: rgba(220,38,38,.12); color: inherit; }
.urg-callout > .bi { font-size: 1.35rem; color: #DC2626; }
.urg-callout b { display: block; line-height: 1.25; }
.urg-callout small { display: block; color: var(--gray-400); font-size: .8rem; }
.urg-callout[hidden] { display: none; }

/* v2.12.1 : pied de page en deux menus ; bouton rouge « + » de la messe d'urgence (téléphone) */
.pf-grille { grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; }
@media (max-width: 991.98px) { .pf-grille { grid-template-columns: 1fr 1fr; } .pf-marque { grid-column: 1 / -1; } }
@media (max-width: 575.98px) {
  .pf-grille { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .pf-grille > .pf-col:not(.pf-menu) { grid-column: 1 / -1; }
  .pf-menu { align-items: flex-start; text-align: left; font-size: .84rem; gap: .45rem; }
  .pf-menu .pf-titre { align-self: stretch; }
}
@keyframes urgPouls { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.6); } 70% { box-shadow: 0 0 0 14px rgba(220,38,38,0); } 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); } }
/* Barre du bas (téléphone) : « Urgence » à la place de « Thème » (le thème reste en haut) */
.bottom-nav a.nav-urgence { color: #DC2626; font-weight: 800; }
.bottom-nav a.nav-urgence i { width: 34px; height: 34px; margin-top: -6px; border-radius: 50%; background: #DC2626; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  box-shadow: 0 3px 10px rgba(220,38,38,.4); }
.bottom-nav a.nav-urgence.ouverte i { animation: urgPouls 1.8s ease-out infinite; }
.bottom-nav a.nav-urgence.active { color: #B91C1C; }
html[data-theme="dark"] .bottom-nav a.nav-urgence { color: #F87171; }
/* Ordinateur : bouton rouge dans le menu du haut + grand bouton flottant */
.pub-nav a.nav-urgence-pill { position: relative; display: inline-flex; align-items: center; gap: .3rem; margin-left: .35rem; background: #DC2626; color: #fff; font-weight: 700; border-radius: 999px; padding: .45rem 1rem; box-shadow: 0 4px 14px rgba(220,38,38,.35); }
.pub-nav a.nav-urgence-pill:hover, .pub-nav a.nav-urgence-pill.active { background: #B91C1C; color: #fff; }
.nav-urgence-pill .pouls { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: #FACC15; border: 2px solid #fff; animation: urgPoulsJaune 1.6s ease-out infinite; }
@keyframes urgPoulsJaune { 0% { box-shadow: 0 0 0 0 rgba(250,204,21,.8); } 70% { box-shadow: 0 0 0 10px rgba(250,204,21,0); } 100% { box-shadow: 0 0 0 0 rgba(250,204,21,0); } }
.urg-flottant { display: none; }
@media (min-width: 768px) {
  .urg-flottant { display: flex; align-items: center; gap: .8rem; position: fixed; right: 22px; bottom: 22px; z-index: 1031; max-width: 360px; padding: .75rem 1.1rem .75rem .75rem; border-radius: 18px;
    background: linear-gradient(135deg, #B91C1C, #DC2626 60%, #F97316); color: #fff; text-decoration: none; box-shadow: 0 12px 32px rgba(220,38,38,.4); transition: transform .15s ease; }
  .urg-flottant:hover { color: #fff; transform: translateY(-2px); }
  .urg-flottant b { display: block; font-size: .98rem; line-height: 1.2; }
  .urg-flottant small { display: block; opacity: .9; font-size: .8rem; }
  .urg-flottant > .bi { font-size: 1.2rem; }
  .urg-flottant-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; animation: urgPoulsBlanc 1.8s ease-out infinite; }
}
@keyframes urgPoulsBlanc { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .bottom-nav a.nav-urgence i, .nav-urgence-pill .pouls, .urg-flottant-ico { animation: none; } }

.pub-nav a { white-space: nowrap; }
.nu-court { display: none; }
@media (max-width: 1099.98px) { .pub-nav a { padding: .45rem .55rem; } .nu-long { display: none; } .nu-court { display: inline; } .pub-topbar .brand-tagline { display: none !important; } }
@media (max-width: 899.98px) { .pub-nav a:not(.nav-urgence-pill) .bi { display: none; } }
/* Bandeau d'urgence de l'accueil : plus marqué */
.urg-callout { border-width: 2px; border-color: #DC2626; background: rgba(220,38,38,.1); }
.urg-callout b { color: #B91C1C; }
html[data-theme="dark"] .urg-callout b { color: #FCA5A5; }
.pub-nav a.nav-urgence-pill .bi { display: inline-block !important; }
.pub-topbar .brand-name { white-space: nowrap; }

/* v2.12.3 : pied de page ordonné (liens icône + texte alignés, mêmes alignements partout sur téléphone) */
.pf-col:not(.pf-marque) > a:not(.pf-bouton), .pf-col:not(.pf-marque) > span:not(.pf-discret) { display: flex; align-items: flex-start; gap: .55rem; line-height: 1.35; }
.pf-col:not(.pf-marque) > a:not(.pf-bouton) > i, .pf-col:not(.pf-marque) > span > i { flex: none; width: 1.1rem; margin: .1rem 0 0; text-align: center; }
.pf-bouton { white-space: nowrap; }
@media (max-width: 575.98px) {
  .pf-grille { text-align: left; gap: 0 1rem; padding-top: 1.75rem; }
  .pf-grille > .pf-col { align-items: stretch; padding: 1.1rem 0; border-top: 1px solid rgba(255,255,255,.1); }
  .pf-grille > .pf-marque { align-items: center; text-align: center; border-top: 0; padding-top: 0; }
  .pf-grille > .pf-menu { border-top: 1px solid rgba(255,255,255,.1); }
  .pf-titre { text-align: left; }
  .pf-col .pf-bouton { width: 100%; }
  .pf-col:not(.pf-marque) > a:not(.pf-bouton), .pf-col:not(.pf-marque) > span { font-size: .9rem; }
}
