:root {
  --accent: #0066FF;
  --accent-dark: #0044cc;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #555;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 12px;
  --transition: 0.3s ease;
  --error: #e53e3e;
}
[data-theme="dark"] {
  --bg: #121212;
  --surface: #1e1e1e;
  --text: #f0f0f0;
  --text-secondary: #aaaaaa;
  --border: #333;
  --shadow: 0 2px 12px rgba(0,0,0,0.4);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
a { color: var(--accent); text-decoration: none; }

/* ===== PAGE LOGIN ===== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.login-logo .logo-img {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.4rem;
}
.login-logo .logo-text { font-weight: 700; font-size: 1.6rem; color: var(--accent); }
.login-logo .logo-text span { color: var(--text); }

.login-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}
.login-tabs { display: flex; border-bottom: 1px solid var(--border); }
.login-tab {
  flex: 1; text-align: center; padding: 16px;
  font-weight: 500; color: var(--text-secondary);
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.login-tab.active { color: var(--accent); border-color: var(--accent); }

.login-form { padding: 24px; display: none; }
.login-form.active { display: block; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--accent); }

.form-error {
  background: rgba(229,62,62,0.1); color: var(--error);
  padding: 10px 12px; border-radius: 8px;
  font-size: 0.85rem; margin-bottom: 16px; display: none;
}
.form-error.show { display: block; }

.form-success {
  background: rgba(0,102,255,0.1); color: var(--accent);
  padding: 10px 12px; border-radius: 8px;
  font-size: 0.85rem; margin-bottom: 16px; display: none;
}
.form-success.show { display: block; }

.btn-primary {
  width: 100%; padding: 13px;
  background: var(--accent); color: white;
  border: none; border-radius: 30px;
  font-weight: 500; font-size: 0.95rem;
  cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.forgot-link { display: block; text-align: center; margin-top: 14px; font-size: 0.85rem; }

/* ===== MODAL RESET ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1000;
  align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--surface); border-radius: var(--radius);
  padding: 24px; width: 100%; max-width: 380px;
}
.modal-box h3 { margin-bottom: 6px; }
.modal-box p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 16px; }
.modal-close-link { display: block; text-align: center; margin-top: 12px; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; }
.show-block { display: block !important; }
/* ===== APP : HEADER ===== */
.app-header {
  background: var(--surface);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.app-header .logo-wrapper { display: flex; align-items: center; gap: 10px; }
.app-header .logo-img {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}
.app-header .logo { font-weight: 700; font-size: 1.4rem; color: var(--accent); }
.app-header .logo span { color: var(--text); }
.header-actions { display: flex; gap: 16px; align-items: center; }
.header-actions i { font-size: 1.2rem; cursor: pointer; color: var(--text-secondary); }

.container { max-width: 600px; margin: 0 auto; padding: 0 16px; }
body.app-body { padding-bottom: 70px; }

/* ===== APP : MENU BAS ===== */
.bottom-menu {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around;
  padding: 6px 0 8px; z-index: 200;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.bottom-menu .menu-item {
  display: flex; flex-direction: column; align-items: center;
  font-size: 0.6rem; color: var(--text-secondary);
  cursor: pointer; padding: 2px 6px; border-radius: 8px; min-width: 50px;
  transition: color var(--transition);
}
.bottom-menu .menu-item i { font-size: 1.2rem; margin-bottom: 1px; }
.bottom-menu .menu-item .menu-icon { width: 22px; height: 22px; margin-bottom: 1px; }
.bottom-menu .menu-item.active { color: var(--accent); font-weight: 500; }

/* ===== APP : PAGES ===== */
.page { display: none; padding: 12px 0; }
.page.active { display: block; }
.page h2 { margin-bottom: 12px; }
.page-filter-date {
  padding: 8px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  width: 100%; margin-bottom: 12px;
}

/* ===== PUBLICATIONS ===== */
.publication {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; position: relative;
}
.pin-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== FILTRE DE PÉRIODE (réutilisé app + admin) ===== */
.analytics-filter { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; align-items:center; }
.analytics-filter select, .analytics-filter input[type="date"] {
  padding:8px 10px; border-radius:8px; border:1px solid var(--border); background:var(--surface); color:var(--text); font-size:0.85rem;
}
.analytics-custom-range { display:none; gap:8px; }
.analytics-custom-range.show { display:flex; }

/* ===== STATISTIQUES BOOKMAKERS ===== */
.stats-highlight-card {
  background: linear-gradient(115deg, #0044cc, #0066FF, #2e8fff, #0066FF, #0044cc);
  background-size: 300% 300%;
  animation: gradientMove 6s ease infinite;
  color: white;
  border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow);
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.stats-big-number { font-size: 2.4rem; font-weight: 700; }
.stats-big-label { font-size: 0.85rem; opacity: 0.9; margin-top: 4px; }
.stats-subcounters {
  display: flex; justify-content: center; gap: 20px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.25);
}
.stats-subcounter { font-size: 0.9rem; font-weight: 600; }

.stats-highlight-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.stats-mini-card {
  border-radius: var(--radius); padding: 18px 12px; text-align: center; box-shadow: var(--shadow);
  color: white; position: relative; overflow: hidden;
}
.stats-mini-card.taux { background: linear-gradient(135deg, #0066FF, #0044cc); }
.stats-mini-card.streak-win { background: linear-gradient(135deg, #28a745, #1e7e34); }
.stats-mini-card.streak-lose { background: linear-gradient(135deg, #dc3545, #a71d2a); }
.stats-mini-card.streak-none { background: linear-gradient(135deg, #6c757d, #495057); }
.stats-mini-card i { font-size: 1.3rem; margin-bottom: 6px; opacity: 0.9; }
.stats-mini-number { font-size: 1.7rem; font-weight: 700; }
.stats-mini-label { font-size: 0.72rem; opacity: 0.9; margin-top: 2px; }

.stats-cotes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats-cote-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; text-align: center;
}
.stats-cote-title { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; }
.stats-cote-stats { font-size: 1.3rem; font-weight: 700; }
.stats-cote-legend { font-size: 0.7rem; color: var(--text-secondary); margin-top: 2px; }
.stats-best-badge {
  display: inline-block; background: #ffc107; color: #333; font-size: 0.65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; margin-left: 6px;
}
.stats-bookmaker-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; margin-bottom: 12px;
}
.stats-bar-track { width: 100%; height: 8px; background: var(--bg); border-radius: 10px; overflow: hidden; }
.stats-bar-fill { height: 100%; border-radius: 10px; transition: width 0.3s; }

/* ===== SCROLL VERS PUBLICATION PARTAGÉE ===== */
.pub-highlight { animation: pubPulse 2.2s ease; }
@keyframes pubPulse {
  0% { box-shadow: 0 0 0 0 rgba(0,102,255,0.5); }
  30% { box-shadow: 0 0 0 8px rgba(0,102,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,102,255,0); }
}

/* ===== POP-UP LANDING PAGE ===== */
.landing-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.landing-popup-overlay.show { display: flex; }
.landing-popup-box {
  background: var(--surface); border-radius: 18px; max-width: 380px; width: 100%;
  overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.3); position: relative;
}
.landing-popup-box img { width: 100%; height: auto; display: block; max-height: 220px; object-fit: cover; }
.landing-popup-box .popup-body { padding: 20px; text-align: center; }
.landing-popup-box h3 { font-size: 1.2rem; margin-bottom: 8px; }
.landing-popup-box p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 18px; line-height: 1.5; }
.landing-popup-close {
  position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.5); color: white;
  border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; z-index: 5;
}

/* Bouton "Installer l'app" : toujours visible. Si le navigateur ne propose pas
   l'installation native au moment du clic, un message de repli s'affiche. */

/* ===== MODAL COMMENTAIRES ===== */
.modal-overlay.bottom-sheet { align-items: flex-end; }
.comments-modal-box {
  background: var(--surface); width: 100%; max-width: 500px; height: 82vh;
  border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  margin: 0 auto; padding: 0;
}
.comments-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.comments-modal-header h3 { font-size: 1.05rem; }
.comments-modal-header button {
  background: none; border: none; font-size: 1.2rem; color: var(--text-secondary); cursor: pointer;
}
#commentsModal .comments-list, #pubPickerBox .comments-list { flex: 1; overflow-y: auto; padding: 12px 16px; }
#commentsModal .comment-image-preview,
#commentsModal .comment-error,
#commentsModal .comment-input-area { padding-left: 16px; padding-right: 16px; flex-shrink: 0; }
#commentsModal .comment-input-area { padding-bottom: 16px; padding-top: 8px; margin-top: 0; }

/* ===== TIRER POUR ACTUALISER ===== */
.pull-refresh-indicator {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%) translateY(-40px);
  width: 36px; height: 36px; background: var(--surface); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  color: var(--accent); z-index: 500; opacity: 0; transition: opacity 0.2s, transform 0.2s;
}
.pull-refresh-indicator.spinning i { animation: spin 0.8s linear infinite; }

/* Badge vérifié des utilisateurs (pas admin) : blanc en mode sombre pour rester visible */
[data-theme="dark"] .comment .comment-body .comment-author .verified-badge-icon {
  filter: brightness(0) invert(1);
}
.publication-header {
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
}
.publication-header .type-badge {
  background: var(--accent); color: white; font-size: 0.6rem; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; text-transform: uppercase;
}
.publication-header .date { font-size: 0.7rem; color: var(--text-secondary); }
.publication-media {
  width: 100%; background: #ddd; display: flex; align-items: center; justify-content: center;
  color: #777; font-size: 0.9rem; overflow: hidden; position: relative;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.publication-media img, .publication-media video {
  width: 100%; height: auto; display: block; object-fit: contain; max-height: 400px;
  -webkit-user-drag: none; user-drag: none;
}
.publication-body { padding: 14px 16px 16px; }
.publication-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.publication-description { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
.publication-description strong, .publication-description em { color: var(--text); }
.pinned-badge {
  background: #ffc107; color: #333; font-size: 0.6rem; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; margin-left: 8px;
}

.coupon-code-btn {
  background: var(--accent); color: white; border: none; padding: 8px 16px;
  border-radius: 30px; font-weight: 500; font-size: 0.85rem;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  transition: background 0.2s; margin-bottom: 10px;
}
.coupon-code-btn:hover { background: var(--accent-dark); }

.reactions { display: flex; gap: 12px; margin: 8px 0 10px; flex-wrap: wrap; }
.reactions .reaction {
  background: var(--bg); padding: 4px 12px 4px 8px; border-radius: 30px;
  display: flex; align-items: center; gap: 4px; font-size: 0.9rem;
  cursor: pointer; transition: background 0.2s; border: 1px solid transparent;
}
.reactions .reaction:hover { background: var(--border); }
.reactions .reaction .count { font-weight: 500; color: var(--text-secondary); }

.comments-section { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.comment { display: flex; gap: 10px; margin-bottom: 10px; }
.comment .avatar {
  width: 32px; height: 32px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.comment .comment-body { background: var(--bg); padding: 8px 12px; border-radius: 12px; flex: 1; }
.comment .comment-body .comment-author { font-weight: 500; font-size: 0.8rem; display: flex; align-items: center; gap: 6px; }
.comment .comment-body .comment-author .verified-badge-icon {
  width: 14px; height: 14px; display: inline-block; vertical-align: middle;
}
.comment .avatar-img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.comment .comment-body .comment-author .admin-badge-icon {
  width: 15px; height: 15px; display: inline-block; vertical-align: middle;
}
.comment .comment-body .comment-text { font-size: 0.85rem; margin-top: 2px; }
.comment .comment-body .comment-image {
  max-width: 100%; max-height: 150px; border-radius: 8px; margin-top: 6px;
  cursor: pointer; transition: transform 0.2s;
}
.comment .comment-body .comment-image:hover { transform: scale(1.02); }
.comment-input-area { display: flex; gap: 8px; margin-top: 8px; }
.comment-input-area input {
  flex: 1; padding: 8px 14px; border-radius: 30px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); outline: none;
}
.comment-input-area button {
  background: var(--accent); color: white; border: none; border-radius: 30px;
  padding: 8px 16px; font-weight: 500; cursor: pointer;
}
.comment-attach-btn {
  background: var(--bg) !important; color: var(--text-secondary) !important;
  padding: 8px 10px !important; flex-shrink: 0;
}
.comment-image-preview {
  display: none; align-items: center; gap: 8px; margin-top: 8px;
  background: var(--bg); padding: 6px; border-radius: 10px; width: fit-content;
}
.comment-image-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.comment-image-preview button {
  background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 0.9rem;
}
.share-btn {
  background: none; border: none; color: var(--text-secondary); cursor: pointer;
  font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
}
.share-btn:hover { color: var(--accent); }
.comments-toggle { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.8rem; margin-top: 4px; font-weight: 500; }
.comments-toggle:hover { text-decoration: underline; }

/* ===== MODAL IMAGE / VÉRIFICATION ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 999;
}
.modal-overlay.show { display: flex; }
.modal-image-container { max-width: 90%; max-height: 90%; position: relative; }
.modal-image-container img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.modal-close {
  position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: white;
  border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.5rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-verify-content {
  background: var(--surface); border-radius: var(--radius); max-width: 400px; width: 90%;
  padding: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); text-align: center;
}
.modal-verify-content h3 { margin-bottom: 12px; }
.modal-verify-content p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; }
.modal-verify-content .btn-secondary {
  background: transparent; border: 1px solid var(--border); padding: 10px 20px;
  border-radius: 30px; color: var(--text); cursor: pointer; width: 100%; margin-top: 8px;
}

/* ===== BOOKMAKERS ===== */
.bookmaker-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.bookmaker-card .bm-image { width: 100%; background: #ddd; min-height: 120px; display: flex; align-items: center; justify-content: center; color: #777; }
.bookmaker-card .bm-image img { width: 100%; height: auto; display: block; }
.bookmaker-card .bm-body { padding: 14px 16px; }
.bookmaker-card .bm-title { font-size: 1.1rem; font-weight: 700; }
.bookmaker-card .bm-desc { font-size: 0.9rem; color: var(--text-secondary); margin: 4px 0 10px; }
.bookmaker-card .bm-code { display: flex; align-items: center; justify-content: space-between; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
.bookmaker-card .bm-code span { font-weight: 500; }
.bookmaker-card .bm-code button { background: var(--accent); color: white; border: none; padding: 4px 12px; border-radius: 20px; cursor: pointer; font-size: 0.8rem; }

/* ===== PARAMÈTRES ===== */
.settings-item {
  background: var(--surface); padding: 14px 16px; border-radius: var(--radius);
  margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
  box-shadow: var(--shadow); cursor: pointer;
}
.settings-item .label { font-weight: 500; }
.settings-item .value { color: var(--text-secondary); font-size: 0.85rem; }
.toggle-switch {
  width: 48px; height: 24px; background: var(--border); border-radius: 30px;
  position: relative; cursor: pointer; transition: background 0.2s;
}
.toggle-switch.active { background: var(--accent); }
.toggle-switch::after {
  content: ''; width: 20px; height: 20px; background: white; border-radius: 50%;
  position: absolute; top: 2px; left: 2px; transition: transform 0.2s;
}
.toggle-switch.active::after { transform: translateX(24px); }

/* ===== VÉRIFICATION COMPTE ===== */
.verify-steps { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-top: 12px; }
.verify-steps .step { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.verify-steps .step .num {
  background: var(--accent); color: white; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.verify-steps .step .content { flex: 1; }
.verify-steps .step .content h4 { font-size: 1rem; margin-bottom: 2px; }
.verify-steps .step .content p { font-size: 0.9rem; color: var(--text-secondary); }

/* ===== LOADER ===== */
.loader { text-align: center; padding: 16px; color: var(--text-secondary); }
.loader i { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 40px 16px; color: var(--text-secondary); }
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; display: block; }

.reactions .reaction.active-reaction {
  background: rgba(0,102,255,0.15);
  border-color: var(--accent);
}

.logo-horizontal-img { height: 30px; width: auto; display: block; }

/* ===== LANDING PAGE ===== */
.landing { overflow-x: hidden; }
.landing-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; box-shadow: var(--shadow);
}
.landing-header .logo-wrapper { display: flex; align-items: center; gap: 10px; }
.landing-header .logo-img {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
}
.landing-header .logo { font-weight: 700; font-size: 1.3rem; color: var(--accent); }
.landing-header .logo span { color: var(--text); }
.landing-header .btn-primary { padding: 9px 20px; font-size: 0.85rem; width: auto; }

.hero {
  background: linear-gradient(160deg, #0066FF 0%, #0044cc 100%);
  color: white; text-align: center; padding: 56px 20px 64px;
}
.hero h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 14px; font-weight: 700; }
.hero h1 .highlight { color: #ffd166; }
.hero p { font-size: 1rem; opacity: 0.92; max-width: 480px; margin: 0 auto 24px; line-height: 1.6; }
.hero .hero-buttons {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px;
}
.hero .btn-large {
  display: inline-block; background: white; color: var(--accent);
  padding: 14px 32px; border-radius: 30px; font-weight: 700; font-size: 1rem;
  text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.hero .trust-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px;
}
.hero .trust-badges span {
  background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 20px;
  font-size: 0.78rem; display: flex; align-items: center; gap: 6px;
}

.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  max-width: 600px; margin: -32px auto 0; padding: 0 16px; position: relative; z-index: 5;
}
.stats-bar .stat {
  background: var(--surface); border-radius: 14px; padding: 16px 8px; text-align: center;
  box-shadow: var(--shadow);
}
.stats-bar .stat .num { font-size: 1.3rem; font-weight: 700; color: var(--accent); display: block; }
.stats-bar .stat .lbl { font-size: 0.68rem; color: var(--text-secondary); margin-top: 2px; display: block; }

.landing-section { max-width: 600px; margin: 0 auto; padding: 48px 20px; }
.landing-section h2 { font-size: 1.4rem; text-align: center; margin-bottom: 8px; }
.landing-section .subtitle { text-align: center; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 28px; }

.steps { display: flex; flex-direction: column; gap: 18px; }
.step-item { display: flex; gap: 16px; align-items: flex-start; }
.step-item .step-num {
  background: var(--accent); color: white; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.step-item h4 { font-size: 1rem; margin-bottom: 2px; }
.step-item p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 16px; text-align: center;
}
.feature i { font-size: 1.6rem; color: var(--accent); margin-bottom: 10px; display: block; }
.feature h3 { font-size: 0.92rem; margin-bottom: 4px; }
.feature p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }

.trust-section {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 20px; display: flex; gap: 16px; align-items: flex-start;
}
.trust-section i { font-size: 1.8rem; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.trust-section p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.trust-section strong { color: var(--text); }

.faq-item {
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  padding: 14px 16px; font-weight: 500; font-size: 0.9rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer { padding: 0 16px 16px; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.final-cta {
  background: linear-gradient(160deg, #0066FF 0%, #0044cc 100%);
  color: white; text-align: center; padding: 48px 20px;
}
.final-cta h2 { font-size: 1.5rem; margin-bottom: 10px; }
.final-cta p { opacity: 0.9; margin-bottom: 22px; font-size: 0.92rem; }
.final-cta .btn-large {
  display: inline-block; background: white; color: var(--accent);
  padding: 14px 32px; border-radius: 30px; font-weight: 700; font-size: 1rem; text-decoration: none;
}

.landing footer {
  text-align: center; padding: 24px 20px; color: var(--text-secondary); font-size: 0.78rem;
}
.publicite-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0;
  box-shadow: var(--shadow);
}
.publicite-banner img, .publicite-banner video {
  width: 100%; height: auto; display: block;
}
/* ===== MODAL NOTIFICATIONS PUSH ===== */
.notif-modal-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #0066FF, #0044cc); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  margin: 0 auto 16px;
}
.settings-item#notif-permission-btn .value.granted { color: #28a745; font-size: 0.8rem; font-weight: 600; }
.settings-item#notif-permission-btn .value.denied { color: #e53e3e; font-size: 0.8rem; font-weight: 600; }

/* ===== ÉDITEUR DE TEXTE ENRICHI (admin) ===== */
.rte-toolbar {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  padding: 6px; border: 1px solid var(--border); border-bottom: none;
  border-radius: 8px 8px 0 0; background: var(--bg);
}
.rte-toolbar select {
  padding: 5px 6px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 0.8rem;
}
.rte-toolbar button {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer; font-size: 0.8rem;
}
.rte-toolbar button:hover { background: var(--border); }
.rte-color-btn {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer; font-size: 0.8rem;
}
.rte-color-btn input[type="color"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.rte-editor {
  min-height: 90px; padding: 10px; border: 1px solid var(--border); border-radius: 0 0 8px 8px;
  background: var(--bg); color: var(--text); font-size: 0.9rem; line-height: 1.5; outline: none;
}
.rte-editor blockquote {
  border-left: 3px solid var(--accent); padding-left: 10px; margin: 6px 0; color: var(--text-secondary);
}

/* ===== BOUTONS BOOKMAKER (APK / Inscription) ===== */
.bm-actions-row { display: flex; gap: 8px; margin-top: 12px; }
.bm-action-btn {
  flex: 1; padding: 9px 8px; border-radius: 30px; border: none; cursor: pointer;
  font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.bm-action-apk { background: var(--bg); color: var(--text); border: 1px solid var(--border) !important; }
.bm-action-signup { background: var(--accent); color: white; }

/* ===== BOUTON WHATSAPP (vérification) ===== */
.whatsapp-send-btn {
  background: #25D366; color: white; border: none; padding: 10px 18px;
  border-radius: 30px; font-weight: 600; font-size: 0.85rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
}
.whatsapp-send-btn:hover { background: #1ebe57; }

/* ===== BOUTONS PARAMÈTRES BRANDÉS ===== */
.settings-item-brand { color: white; border: none; }
.settings-item-brand .label i { margin-right: 8px; }
.settings-item-brand .value i { color: rgba(255,255,255,0.9); }
.settings-item-verify {
  background: linear-gradient(115deg, #0044cc, #0066FF, #2e8fff);
  background-size: 200% 200%;
  animation: gradientMove 6s ease infinite;
}
.settings-item-whatsapp { background: #25D366; }
.settings-item-telegram { background: #229ED9; }
.settings-item-install { background: var(--accent); }

/* ===== PROTECTION GLOBALE DES MÉDIAS (aucun téléchargement/copie) ===== */
img, video {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  pointer-events: auto;
}

/* ===== BOUTON ACTUALISER (erreur de chargement) ===== */
.empty-state .retry-btn {
  margin-top: 10px; background: none; color: var(--accent); border: 1px solid var(--accent);
  padding: 5px 14px; border-radius: 20px; font-weight: 500; font-size: 0.75rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.empty-state .retry-btn i { font-size: 0.7rem; }
.empty-state .retry-btn:hover { background: rgba(0,102,255,0.08); }

/* ===== VIGNETTE MÉDIA (admin publications) ===== */
.admin-pub-thumb {
  width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  background-size: cover; background-position: center; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center; background-color: #ddd;
}
.admin-pub-thumb i { color: white; text-shadow: 0 0 4px rgba(0,0,0,0.6); font-size: 1rem; }
.admin-pub-thumb-empty { background: var(--bg); color: var(--text-secondary); cursor: default; }
.admin-pub-thumb-empty i { color: var(--text-secondary); text-shadow: none; }

/* ===== SÉLECTEUR DE PUBLICATION (modal commentaires admin) ===== */
.pub-picker-trigger {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); cursor: pointer; font-size: 0.9rem;
}
.pub-picker-trigger i { color: var(--text-secondary); }
.pub-picker-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.pub-picker-row:last-child { border-bottom: none; }
.pub-picker-row:hover { background: var(--bg); }
