/*
Theme Name:   ALMOQAYADA — Adforest Child
Theme URI:    https://almoqayada.com
Description:  Child theme Adforest enrichi avec le système ALMOQAYADA : IA matching, transactions négociées par IA, confirmation admin, paiements MAD.
Author:       ALMOQAYADA Team
Template:     adforest
Version:      1.0.0
Text Domain:  adforest
*/

:root {
  --amq-orange: #F47B20; --amq-yellow: #F5C518; --amq-green: #3DAA5C;
  --amq-blue: #2563EB; --amq-purple: #7c3aed; --amq-dark: #111827;
  --amq-mid: #374151; --amq-light: #F9FAFB; --amq-radius: 14px;
  --amq-shadow: 0 8px 40px rgba(0,0,0,0.10);
}
.amq-btn-primary { display:inline-block; background:var(--amq-orange)!important; color:white!important; padding:12px 28px; border-radius:40px; font-weight:700; border:none; cursor:pointer; transition:all .25s; text-decoration:none; }
.amq-btn-primary:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(244,123,32,0.4); color:white!important; }
.amq-btn-ai { display:inline-block; background:linear-gradient(135deg,var(--amq-blue),var(--amq-purple))!important; color:white!important; padding:12px 28px; border-radius:40px; font-weight:700; border:none; cursor:pointer; transition:all .25s; text-decoration:none; }
.amq-btn-ai:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(37,99,235,0.4); color:white!important; }
.amq-btn-green { display:inline-block; background:var(--amq-green)!important; color:white!important; padding:12px 28px; border-radius:40px; font-weight:700; border:none; cursor:pointer; transition:all .25s; text-decoration:none; }
.amq-card { background:white; border-radius:var(--amq-radius); padding:28px; box-shadow:var(--amq-shadow); border:1px solid #f3f4f6; transition:transform .25s,box-shadow .25s; }
.amq-card:hover { transform:translateY(-3px); box-shadow:0 16px 48px rgba(0,0,0,0.12); }
.amq-match-section { background:linear-gradient(135deg,#0a0f1e,#111827); border-radius:var(--amq-radius); padding:28px; margin:24px 0; border:1px solid rgba(255,255,255,0.08); }
.amq-match-section h3 { color:white; font-size:1.1rem; margin-bottom:14px; }
.amq-match-section p  { color:rgba(255,255,255,0.6); font-size:0.9rem; margin-bottom:18px; }
.amq-sidebar-widget { background:linear-gradient(135deg,#fff7ed,#fef9e7); border:1px solid rgba(244,123,32,0.2); border-radius:var(--amq-radius); padding:24px; margin-bottom:24px; }
.amq-sidebar-widget h4 { font-size:1rem; font-weight:700; margin-bottom:10px; }
.amq-sidebar-widget p  { font-size:0.85rem; color:var(--amq-mid); margin-bottom:14px; line-height:1.6; }
.amq-hero-banner { background:linear-gradient(135deg,var(--amq-orange),#e8650a); padding:18px 24px; border-radius:var(--amq-radius); display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; flex-wrap:wrap; }
.amq-hero-banner-text { color:white; font-weight:600; font-size:0.95rem; }
.amq-hero-banner-text span { opacity:0.8; font-size:0.82rem; display:block; margin-top:2px; }
.amq-badge { display:inline-block; font-size:11px; font-weight:700; padding:4px 12px; border-radius:20px; }
.amq-badge-orange { background:rgba(244,123,32,0.12); color:var(--amq-orange); }
.amq-badge-green  { background:rgba(61,170,92,0.12);  color:var(--amq-green); }
.amq-badge-blue   { background:rgba(37,99,235,0.10);  color:var(--amq-blue); }
.amq-badge-purple { background:rgba(124,58,237,0.10); color:var(--amq-purple); }
.amq-badge-red    { background:rgba(239,68,68,0.10);  color:#ef4444; }
.amq-badge-gray   { background:#f3f4f6;               color:#6b7280; }
.amq-modal-overlay { position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,0.75); display:flex; align-items:center; justify-content:center; padding:20px; backdrop-filter:blur(4px); }
.amq-modal-box { background:#111827; border-radius:20px; padding:36px; max-width:640px; width:100%; max-height:85vh; overflow-y:auto; border:1px solid rgba(255,255,255,0.1); box-shadow:0 24px 80px rgba(0,0,0,0.5); }
.amq-modal-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.amq-modal-title  { font-size:1.1rem; font-weight:800; color:white; }
.amq-modal-close  { background:rgba(255,255,255,0.1); border:none; color:white; width:32px; height:32px; border-radius:50%; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; }
.amq-modal-close:hover { background:rgba(255,255,255,0.2); }
.amq-ai-output { color:rgba(255,255,255,0.8); font-size:0.9rem; line-height:1.8; }
.amq-ai-output strong { color:var(--amq-orange); }
.amq-ai-output h3 { color:white; font-size:0.95rem; margin:16px 0 8px; }
.amq-floating-btn { position:fixed; bottom:28px; right:28px; z-index:500; background:linear-gradient(135deg,var(--amq-blue),var(--amq-purple)); color:white; border:none; border-radius:50px; padding:14px 22px; font-weight:700; font-size:14px; cursor:pointer; box-shadow:0 8px 32px rgba(37,99,235,0.45); transition:all .25s; display:flex; align-items:center; gap:8px; }
.amq-floating-btn:hover { transform:translateY(-3px); box-shadow:0 14px 40px rgba(37,99,235,0.55); }
.amq-floating-pulse { width:8px; height:8px; border-radius:50%; background:#4ade80; box-shadow:0 0 8px #4ade80; animation:amq-pulse 2s infinite; }
@keyframes amq-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.85)} }
.amq-tx-table { width:100%; border-collapse:collapse; font-size:0.88rem; }
.amq-tx-table th { text-align:left; padding:10px 14px; background:var(--amq-light); font-weight:700; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.5px; color:var(--amq-mid); border-bottom:2px solid #e5e7eb; }
.amq-tx-table td { padding:12px 14px; border-bottom:1px solid #f3f4f6; vertical-align:middle; }
@media(max-width:768px) { .amq-floating-btn{bottom:16px;right:16px;} .amq-modal-box{padding:24px;} .amq-hero-banner{flex-direction:column;text-align:center;} }
