/* ════════════════════════════════════════════════════════════════════════
   Magouilles & Compagnie — Styles auth + commentaires
   ════════════════════════════════════════════════════════════════════════ */

/* ─── MODALE AUTH ─── */
.mc-modal-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.75);
  align-items: center; justify-content: center;
  padding: 20px;
  font-family: 'Inter', -apple-system, sans-serif;
}
.mc-modal-backdrop.open { display: flex; }
.mc-modal-content {
  background: white; border-radius: 8px;
  width: 100%; max-width: 540px; max-height: 92vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.mc-modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  font-size: 32px; line-height: 1; color: #6B7280;
  cursor: pointer; z-index: 2;
}
.mc-modal-close:hover { color: #B91C1C; }

.mc-modal-tabs {
  display: flex; border-bottom: 2px solid #E5E7EB;
}
.mc-modal-tabs button {
  flex: 1; background: none; border: none;
  padding: 16px 12px;
  font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: .04em;
  color: #6B7280; cursor: pointer;
  border-bottom: 4px solid transparent; margin-bottom: -2px;
  transition: all .15s;
}
.mc-modal-tabs button:hover { color: #0F172A; }
.mc-modal-tabs button.active {
  color: #B91C1C; border-bottom-color: #B91C1C;
}

.mc-modal-panel { padding: 28px 32px 32px; }
.mc-modal-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; line-height: 1.15; font-weight: 900;
  margin-bottom: 18px; color: #0F172A;
}
.mc-modal-panel form label {
  display: block; margin-bottom: 12px;
  font-size: 13px; font-weight: 600; color: #1F2937;
}
.mc-modal-panel form input {
  display: block; width: 100%; margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #D1D5DB; border-radius: 4px;
  font-family: inherit; font-size: 14px;
}
.mc-modal-panel form input:focus { outline: 2px solid #B91C1C; border-color: #B91C1C; }
.mc-form-error { color: #B91C1C; font-size: 13px; min-height: 16px; margin: 8px 0; font-weight: 600; }
.mc-btn-primary {
  width: 100%; background: #B91C1C; color: white;
  border: none; padding: 13px;
  font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: .08em;
  cursor: pointer; border-radius: 4px;
  margin-top: 6px;
}
.mc-btn-primary:hover { background: #7F1D1D; }
.mc-form-alt {
  text-align: center; font-size: 13px; color: #6B7280;
  margin-top: 14px;
}
.mc-form-alt a { color: #B91C1C; font-weight: 700; text-decoration: none; }
.mc-form-alt a:hover { text-decoration: underline; }
.mc-legal-mini {
  font-size: 11px; color: #6B7280; text-align: center;
  margin-top: 16px; font-style: italic;
}

/* ─── PANNEAU PLANS ─── */
.mc-plans-intro {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 14px; color: #4B5563;
  margin-bottom: 18px; text-align: center;
}
.mc-plans-grid { display: grid; gap: 12px; margin-bottom: 12px; }
@media (min-width: 600px) { .mc-plans-grid { grid-template-columns: repeat(3, 1fr); } }
.mc-plan {
  border: 2px solid #E5E7EB; border-radius: 6px;
  padding: 18px 14px; text-align: center;
  transition: all .15s; position: relative;
}
.mc-plan:hover { border-color: #B91C1C; transform: translateY(-3px); }
.mc-plan.featured { border-color: #B91C1C; background: #FEF7E6; }
.mc-plan-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #B91C1C; color: white; padding: 3px 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; border-radius: 3px;
}
.mc-plan h3 {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px;
  letter-spacing: .04em; margin-bottom: 6px;
}
.mc-plan-price {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 900; color: #B91C1C;
  margin: 10px 0 6px;
}
.mc-plan-price small { font-size: 11px; color: #6B7280; font-weight: 400; }
.mc-plan ul {
  list-style: none; padding: 0; margin: 14px 0;
  font-size: 12px; text-align: left;
}
.mc-plan ul li { padding: 4px 0; border-bottom: 1px dotted #E5E7EB; line-height: 1.4; }
.mc-plan ul li:last-child { border: none; }
.mc-plan button {
  width: 100%; background: #0F172A; color: white;
  border: none; padding: 10px;
  font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: .06em;
  cursor: pointer; border-radius: 3px;
  transition: background .15s;
}
.mc-plan.featured button { background: #B91C1C; }
.mc-plan button:hover { background: #F59E0B; color: #0F172A; }

/* ─── TOAST ─── */
.mc-toast {
  position: fixed; bottom: 22px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0F172A; color: white;
  padding: 14px 22px; border-radius: 4px;
  border-left: 4px solid #F59E0B;
  font-family: 'Inter', sans-serif; font-size: 14px;
  z-index: 1100; transition: transform .35s;
  max-width: 90vw;
}
.mc-toast.show { transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════════════════════════════════════════
   COMMENTAIRES
   ════════════════════════════════════════════════════════════════════════ */
.mc-comments-block {
  background: white; padding: 28px;
  border: 1px solid #E5E7EB;
  margin: 32px 0 0; border-radius: 4px;
  font-family: 'Inter', -apple-system, sans-serif;
}
.mc-comments-header h2 {
  font-family: 'Bebas Neue', sans-serif; font-size: 26px;
  letter-spacing: .04em; margin: 0 0 6px;
  border-bottom: 3px solid #0F172A; padding-bottom: 6px;
  color: #0F172A;
}
.mc-comments-header .mc-count {
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: #6B7280; font-weight: 400; letter-spacing: 0;
}
.mc-moderation-info {
  font-size: 12px; color: #6B7280;
  font-style: italic; margin: 8px 0 18px;
  background: #FEF7E6; padding: 8px 12px; border-radius: 4px;
  border-left: 3px solid #F59E0B;
}

/* Login prompt */
.mc-login-prompt {
  background: linear-gradient(135deg, #FAF6EC, #FEF3C7);
  border: 2px dashed #D97706;
  border-radius: 6px; padding: 22px;
  text-align: center; margin-bottom: 18px;
}
.mc-login-prompt p { margin: 0 0 6px; font-size: 15px; color: #0F172A; }
.mc-login-prompt .mc-sub { font-size: 13px; color: #6B7280; font-style: italic; margin-bottom: 14px; }
.mc-login-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.mc-login-actions button {
  background: #B91C1C; color: white; border: none;
  padding: 10px 20px; border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: .05em;
  cursor: pointer;
}
.mc-login-actions button:hover { background: #7F1D1D; }
.mc-login-actions button.ghost {
  background: white; color: #B91C1C; border: 2px solid #B91C1C;
  padding: 8px 18px;
}
.mc-login-actions button.ghost:hover { background: #B91C1C; color: white; }

/* Form (utilisateur connecté) */
.mc-comment-form {
  background: #FAFAFA; border: 1px solid #E5E7EB;
  border-radius: 6px; padding: 16px; margin-bottom: 18px;
}
.mc-user-strip {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; margin-bottom: 10px;
}
.mc-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #B91C1C, #F59E0B);
  color: white; display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.mc-avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.mc-plan-badge {
  background: #B91C1C; color: white;
  padding: 2px 8px; border-radius: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase;
}
.mc-plan-badge-sm {
  font-size: 11px;
}
.mc-logout-link {
  margin-left: auto; font-size: 11px; color: #6B7280;
  text-decoration: none; text-transform: uppercase; letter-spacing: .05em;
}
.mc-logout-link:hover { color: #B91C1C; }
.mc-comment-form textarea {
  width: 100%; min-height: 80px;
  border: 1px solid #D1D5DB; border-radius: 4px;
  padding: 10px 12px;
  font-family: inherit; font-size: 14px; resize: vertical;
  box-sizing: border-box;
}
.mc-comment-form textarea:focus { outline: 2px solid #B91C1C; border-color: #B91C1C; }
.mc-form-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; gap: 12px; flex-wrap: wrap;
}
.mc-moderation-hint {
  font-size: 12px; color: #6B7280; font-style: italic;
  flex: 1; min-width: 220px;
}
.mc-moderation-hint a { color: #B91C1C; font-weight: 700; }
.mc-comment-form button[type="submit"] {
  background: #B91C1C; color: white; border: none;
  padding: 10px 22px; border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: .05em;
  cursor: pointer; white-space: nowrap;
}
.mc-comment-form button[type="submit"]:hover { background: #7F1D1D; }

.mc-flash {
  background: #D1FAE5; color: #047857;
  border: 1px solid #34D399; border-radius: 4px;
  padding: 14px 18px; font-size: 14px;
  text-align: center; margin: 8px 0 18px;
}

/* Liste de commentaires */
.mc-comments-list { margin-top: 14px; }
.mc-no-comments {
  padding: 24px; text-align: center;
  color: #6B7280; font-style: italic;
  background: #FAFAFA; border-radius: 6px;
}
.mc-comment {
  padding: 14px 0;
  border-bottom: 1px solid #E5E7EB;
}
.mc-comment:last-child { border-bottom: none; }
.mc-comment-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; margin-bottom: 8px;
  flex-wrap: wrap;
}
.mc-comment-pseudo { font-weight: 700; color: #0F172A; }
.mc-comment-time { color: #6B7280; font-size: 12px; margin-left: auto; }
.mc-comment-text {
  font-size: 14.5px; line-height: 1.55; color: #1F2937;
  padding-left: 38px;
}

/* ─── BADGE USER DANS TOPBAR ─── */
[data-mc-user-slot] a { color: inherit; text-decoration: none; }
[data-mc-user-slot] a:hover { color: #F59E0B; }


/* ===== Footer canonique (identique à la homepage) — ajouté 2026-06-04 ===== */
footer { background:#0F172A; color:#94a3b8; padding:50px 0 20px; font-size:13px; }
footer .container { max-width:1280px; margin:0 auto; padding:0 24px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr 1fr; gap:30px; margin-bottom:40px; }
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-brand h3 { font-family:'Bebas Neue',sans-serif; font-size:24px; color:#F59E0B; letter-spacing:.04em; margin-bottom:8px; }
.footer-brand p { font-size:12px; line-height:1.5; margin-bottom:12px; }
.footer-grid h4 { color:#fff; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin-bottom:12px; padding-bottom:6px; border-bottom:1px solid #1e293b; }
.footer-grid ul { list-style:none; padding:0; margin:0; }
.footer-grid ul li { padding:4px 0; }
.footer-grid ul li a { color:#94a3b8; font-size:12px; text-decoration:none; }
.footer-grid ul li a:hover { color:#F59E0B; }
.footer-bottom { border-top:1px solid #1e293b; padding-top:20px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; font-size:11px; }
.socials { display:flex; gap:10px; }
.socials a { width:32px; height:32px; border:1px solid #334155; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; color:#94a3b8; text-decoration:none; transition:all .15s; }
.socials a:hover { background:#F59E0B; color:#0F172A; border-color:#F59E0B; }


/* ===== Nav desktop : tenir sur une ligne (8 rubriques + Caricatures) — 2026-06-04 ===== */
@media (min-width:701px){
  .nav .nav-links{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
  .nav .nav-links::-webkit-scrollbar{ display:none; }
  .nav .nav-links li a{ padding:14px 8px; font-size:12px; letter-spacing:.01em; }
  .nav .nav-actions{ gap:6px; }
  .nav .nav-actions .sub-btn{ padding:8px 12px; font-size:11px; }
  .nav .mc-link-ic{ font-size:14px !important; min-width:0 !important; margin-right:3px; }
}

/* ─── Filtre par période (home + rubriques) ─────────────────────── */
.date-filter-bar { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:14px 0 4px; font-size:12px; }
.date-filter-bar .df-label { text-transform:uppercase; letter-spacing:.05em; font-weight:700; color:var(--gris,#6b7280); margin-right:4px; }
.date-btn { background:#fff; border:1px solid var(--gris-clair,#e5e7eb); color:var(--gris,#6b7280); padding:6px 13px; font-family:inherit; font-size:12px; font-weight:700; cursor:pointer; border-radius:4px; text-transform:uppercase; letter-spacing:.04em; transition:all .15s; }
.date-btn:hover { border-color:var(--rouge,#b91c1c); color:var(--rouge,#b91c1c); }
.date-btn.active { background:var(--rouge,#b91c1c); border-color:var(--rouge,#b91c1c); color:#fff; }
.cards-grid > a.date-hidden { display:none !important; }
.df-empty { font-family:'Playfair Display',serif; font-style:italic; color:var(--gris,#6b7280); padding:18px 0; margin:0; }

/* ─── Filtre période — menu déroulant discret (rubriques) ──────── */
.date-filter-wrap { margin:16px 0 2px; }
.date-select-wrap { display:inline-flex; align-items:center; gap:6px; font-size:10px; text-transform:uppercase; letter-spacing:.06em; font-weight:700; color:#9ca3af; }
.date-select-wrap select {
  font-family:inherit; font-size:12px; font-weight:600; color:var(--noir,#171717); line-height:1.2;
  background-color:#fff; border:1px solid var(--gris-clair,#e5e7eb); border-radius:4px;
  padding:5px 26px 5px 10px; cursor:pointer; text-transform:none; letter-spacing:0;
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2010%206'%3E%3Cpath%20fill='none'%20stroke='%23999'%20stroke-width='1.5'%20d='M1%201l4%204%204-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 9px center; background-size:9px; transition:border-color .15s;
}
.date-select-wrap select:hover, .date-select-wrap select:focus { border-color:var(--rouge,#b91c1c); outline:none; }

/* ─── Compteur de la honte (widget montants, header) — partagé ─── */
.mcc-square{ background:#F7B500; color:#0F172A; border:3px solid #B91C1C; border-radius:10px; padding:12px 14px 11px; width:230px; box-shadow:0 6px 18px rgba(0,0,0,.28); text-align:center; font-family:'Inter',sans-serif; align-self:center; }
.mcc-square .mcc-eyebrow{ display:block; font-family:'Bebas Neue',sans-serif; letter-spacing:.07em; font-size:14px; background:#B91C1C; color:#fff; border-radius:4px; padding:2px 6px; margin:0 0 6px; }
.mcc-square #mcc-amount{ font-family:'Bebas Neue',sans-serif; font-size:30px; line-height:1; color:#0F172A; margin:2px 0 2px; }
.mcc-square .mcc-cap{ font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#7c2d12; margin:0 0 7px; }
.mcc-square .mcc-cur{ display:flex; gap:4px; justify-content:center; margin-bottom:7px; }
.mcc-square .mcc-btn{ background:rgba(255,255,255,.55); border:1px solid #92400e; color:#7c2d12; font-family:inherit; font-size:11px; font-weight:700; padding:3px 7px; border-radius:4px; cursor:pointer; }
.mcc-square .mcc-btn.active{ background:#0F172A; border-color:#0F172A; color:#F7B500; }
.mcc-square .mcc-share{ display:flex; gap:5px; justify-content:center; align-items:center; border-top:1px dashed rgba(124,45,18,.4); padding-top:7px; }
.mcc-square .mcc-share .lbl{ font-size:10px; font-weight:700; color:#7c2d12; margin-right:2px; }
.mcc-square .mcc-sh{ width:24px; height:24px; border:none; border-radius:50%; background:#0F172A; color:#F7B500; font-size:12px; line-height:24px; cursor:pointer; padding:0; }
.mcc-square .mcc-sh:hover{ background:#B91C1C; color:#fff; }
@media(max-width:760px){ .mcc-square{ width:100%; max-width:320px; margin:10px auto 0; } }

/* ─── Compteur : bouton d'aide "?" → page méthodologie ─── */
.mcc-square { position: relative; }
.mcc-help { position: absolute; top: 7px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(15,23,42,.85); color: #F7B500; font-family: 'Inter', sans-serif; font-size: 12px;
  font-weight: 700; line-height: 18px; text-align: center; text-decoration: none; z-index: 3; }
.mcc-help:hover { background: #0F172A; color: #fff; }
