/* ═══════════════════════════════════════════════════════════════
   Pied de Page — Charly Medium Spirite v3.0
   Couleur de fond alignée sur le menu de navigation principal
   ═══════════════════════════════════════════════════════════════ */

/* Variables */
.cm-footer{
  --sep-gold:   #c9a227;
  --gold-hov:   #f0c040;
  --muted:      #a8c4b0;
  --text:       #e8f0e8;
  --border:     rgba(201,162,39,.22);
  --arrow-col:  #c9a227;
}

/* ── Footer — même gradient que la navbar ── */
.cm-footer{
  /* gradient identique à #cma-navbar du plugin cm-auth */
  background: linear-gradient(135deg, #091f1f 0%, #1F4E4E 55%, #122d2d 100%);
  border-top: 2px solid rgba(201,162,39,.35);
  padding: 64px 32px 0;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
}

/* ── Grille 5 colonnes ── */
.cm-footer-inner{
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1.25fr 1.1fr 1.65fr 1.1fr;
  gap: 44px;
}

/* ── Titres de colonnes ── */
.cm-footer h4{
  font-family: 'Cinzel', Arial, serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sep-gold);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── Listes ── */
.cm-footer ul{ list-style:none; margin:0; padding:0; }
.cm-footer ul li{ margin-bottom: 10px; }
.cm-footer ul li a{
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .22s, transform .22s;
}
.cm-footer ul li a::before{
  content: '›';
  color: var(--arrow-col);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .22s;
}
.cm-footer ul li a:hover{ color: var(--gold-hov); transform: translateX(5px); }
.cm-footer ul li a:hover::before{ transform: translateX(3px); }

/* ── Colonne Brand ── */
.cm-footer-brand{ display:flex; flex-direction:column; align-items:flex-start; }
.cm-foot-logo{ height:72px; width:auto; object-fit:contain; margin-bottom:10px; border:none; outline:none; background:transparent; }
.cm-footer-brand p{ font-size:14px; color:var(--muted); line-height:1.75; margin-top:6px; max-width:240px; }

/* Signature */
.cm-footer-signature{
  display:flex; align-items:center; gap:10px;
  margin-top:14px; padding-top:12px;
  border-top: 1px solid var(--border);
}
.cm-footer-signature-img{ height:54px; width:auto; object-fit:contain; filter:drop-shadow(0 0 6px rgba(201,162,39,.4)); }
.cm-footer-signature-text{ font-family:'Cinzel',Georgia,serif; font-size:13px; color:var(--sep-gold); letter-spacing:1px; line-height:1.4; }
.cm-footer-signature-text small{ display:block; font-size:10px; color:var(--muted); letter-spacing:1.5px; text-transform:uppercase; }

/* ── Colonne Informations légales ── */
.cm-footer-legal-col{ display:flex; flex-direction:column; }

/* Bouton "Consulter les informations légales" */
.cm-footer-legal-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s;
  line-height: 1.2;
  letter-spacing: .3px;
  margin-bottom: 14px;
  white-space: normal;
  text-align: left;
}
.cm-footer-legal-btn--unlocked{
  background: linear-gradient(135deg, rgba(201,162,39,.18), rgba(201,162,39,.06));
  color: #f0c040;
  border: 1.5px solid rgba(201,162,39,.45);
  box-shadow: 0 3px 14px rgba(201,162,39,.12);
}
.cm-footer-legal-btn--unlocked:hover{
  background: linear-gradient(135deg, rgba(201,162,39,.3), rgba(201,162,39,.12));
  color: #fff;
  border-color: #c9a227;
  box-shadow: 0 5px 20px rgba(201,162,39,.22);
  transform: translateY(-2px);
  text-decoration: none;
}
.cm-footer-legal-btn--locked{
  background: rgba(255,255,255,.04);
  color: rgba(168,196,176,.55);
  border: 1.5px solid rgba(168,196,176,.18);
  cursor: pointer;
}
.cm-footer-legal-btn--locked:hover{
  background: rgba(255,255,255,.07);
  color: #a8c4b0;
  border-color: rgba(201,162,39,.35);
  text-decoration: none;
}
.cm-footer-legal-note{
  font-size: 12px;
  color: rgba(168,196,176,.65);
  line-height: 1.65;
  margin: 0;
  font-style: italic;
  border-left: 2px solid rgba(201,162,39,.25);
  padding-left: 10px;
}

/* ── Réseaux sociaux ── */
.cm-foot-social{ display:flex; gap:8px; margin-top:14px; }
.cm-foot-social-link{
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  overflow:hidden; transition:all .2s; text-decoration:none;
}
.cm-foot-social-link:hover{ border-color:var(--sep-gold); transform:scale(1.12); }
.cm-foot-social-img{ width:36px; height:36px; object-fit:cover; }

/* ── Articles Grimoire ── */
.cm-footer-article{ display:flex; gap:10px; margin-bottom:14px; align-items:flex-start; }
.cm-footer-article-img{
  width:54px; height:54px; object-fit:cover; border-radius:8px;
  flex-shrink:0; border:1px solid var(--border);
  transition: transform .2s;
}
.cm-footer-article:hover .cm-footer-article-img{ transform:scale(1.04); }
.cm-footer-article-title{ font-size:13px; color:var(--text); margin:0 0 5px; line-height:1.4; }
.cm-footer-article-link{
  font-size:12px; color:var(--sep-gold); text-decoration:none;
  display:inline-flex; align-items:center; gap:4px;
  transition:color .2s, gap .2s;
}
.cm-footer-article-link:hover{ color:var(--gold-hov); gap:7px; }

/* ── Barre de bas de page — copyright centré ── */
.cm-footer-bottom{
  max-width: 1320px;
  margin: 52px auto 0;
  padding: 18px 0 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;   /* centré */
}
.cm-footer-bottom span{
  font-size: 13px;
  color: rgba(168,196,176,.6);
  text-align: center;
  letter-spacing: .4px;
}

/* ── Responsive ── */
@media(max-width:1200px){
  .cm-footer-inner{ grid-template-columns: 2fr 1.2fr 1fr 1.5fr; }
  .cm-footer-inner > div:last-child{ grid-column: 1 / -1; }
}
@media(max-width:900px){
  .cm-footer-inner{ grid-template-columns: 1fr 1fr 1fr; }
  .cm-footer-inner > div:nth-child(4),
  .cm-footer-inner > div:last-child{ grid-column: 1 / -1; }
}
@media(max-width:640px){
  .cm-footer-inner{ grid-template-columns: 1fr 1fr; }
  .cm-footer{ padding: 44px 16px 0; }
}
@media(max-width:480px){
  .cm-footer-inner{ grid-template-columns: 1fr; }
  .cm-footer-bottom{ flex-direction:column; text-align:center; }
}
