/* ===== Footer commun ÔZAnnonces (fond bleu nuit) ===== */
.modern-footer {
    background: linear-gradient(180deg, #151d3b 0%, #0f1530 100%) !important;
    color: #cbd5e1 !important;
    margin: 50px 0 0 !important;
    border: 0 !important;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px;
    line-height: 1.5;
}
.modern-footer *, .modern-footer *::before, .modern-footer *::after { box-sizing: border-box; }

.modern-footer .footer-container {
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 56px 24px 12px !important;
}
.modern-footer .footer-top {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) 2.6fr !important;
    gap: 48px !important;
    margin: 0 !important;
}
.modern-footer .footer-links {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px !important;
}

/* Logo */
.modern-footer .footer-brand { max-width: 320px !important; }
.modern-footer .footer-brand .footer-logo {
    display: inline-flex !important;
    align-items: baseline !important;
    margin: 0 0 18px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    line-height: 1 !important;
    color: #fff !important;
    white-space: nowrap !important;
}
.modern-footer .footer-logo span {
    font: inherit !important; letter-spacing: inherit !important;
    text-decoration: none !important; text-shadow: none !important;
}
.modern-footer .footer-logo .logo-o { color: #1a73e8 !important; }
.modern-footer .footer-logo .logo-z { color: #fff !important; position: relative; }
.modern-footer .footer-logo .logo-z::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 4px; background: #fbbf24; border-radius: 1px;
}
.modern-footer .footer-logo .logo-a { color: #e63946 !important; }
.modern-footer .footer-logo .logo-rest { color: #fff !important; }

.modern-footer .footer-description {
    margin: 0 0 16px !important;
    color: #94a3b8 !important;
    font-size: 15.5px !important;
    line-height: 1.75 !important;
}

/* Colonnes */
.modern-footer .footer-column { padding: 0 !important; background: none !important; border-radius: 0 !important; }
.modern-footer .footer-column:hover { background: none !important; }
.modern-footer .footer-column h4 {
    position: relative;
    margin: 0 0 22px !important;
    padding-bottom: 10px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}
.modern-footer .footer-column h4::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 28px; height: 2px; background: #f59e0b; border-radius: 2px;
}
.lang-ar .modern-footer .footer-column h4::after { left: auto; right: 0; }

.modern-footer .footer-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.modern-footer .footer-list li { margin: 0 !important; }
.modern-footer .footer-list a {
    display: block !important;
    padding: 8px 0 !important;
    color: #94a3b8 !important;
    font-size: 15.5px !important;
    text-decoration: none !important;
    transition: color .2s, transform .2s !important;
}
.modern-footer .footer-list a:hover { color: #fff !important; transform: translateX(3px) !important; }
.lang-ar .modern-footer .footer-list a:hover { transform: translateX(-3px) !important; }

/* Contact */
.modern-footer .footer-contact-info {
    display: flex !important; align-items: flex-start !important; gap: 10px;
    margin: 0 0 10px !important; color: #e2e8f0 !important; font-size: 15px !important;
}
.modern-footer .footer-contact-info i {
    flex: 0 0 18px; width: 18px !important; margin: 3px 0 0 !important;
    color: #f59e0b !important; font-size: 15px !important; text-align: center;
}
.modern-footer .footer-contact-info:hover { color: #e2e8f0 !important; }

/* Bouton Soutenir : une seule ligne */
.modern-footer .btn-soutenir-header {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
    width: 100% !important; max-width: 260px !important;
    margin: 8px 0 0 !important; padding: 12px 20px !important;
    border: 0 !important; border-radius: 999px !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #111827 !important;
    font: 700 14px/1 'Inter', system-ui, sans-serif !important;
    white-space: nowrap !important;
    cursor: pointer; box-shadow: 0 4px 12px rgba(245,158,11,.3) !important;
    transition: transform .15s, box-shadow .15s;
}
.modern-footer .btn-soutenir-header span { white-space: nowrap !important; }
.modern-footer .btn-soutenir-header:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(245,158,11,.45) !important; }

/* Bouton Nous contacter */
.modern-footer .footer-contact-button { margin: 14px 0 0 !important; }
.modern-footer .contact-btn {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
    width: 100%; max-width: 260px; height: auto !important;
    padding: 11px 20px !important; border-radius: 999px !important;
    background: linear-gradient(135deg, #135292, #1d74c4) !important;
    color: #fff !important; font-size: 14.5px !important; font-weight: 600 !important;
    text-decoration: none !important; border: 2px solid transparent !important;
    transition: all .25s;
}
.modern-footer .contact-btn:hover { background: #fff !important; color: #135292 !important; transform: translateY(-2px); }
.modern-footer .contact-btn span { display: inline !important; }

/* Réseaux sociaux : 4 icônes sur une ligne */
.modern-footer .social-links { display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; margin: 16px 0 0 !important; }
.modern-footer .social-link {
    flex: 0 0 auto !important;
    width: 40px !important; height: 40px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    border: 0 !important; border-radius: 50% !important;
    background: rgba(255,255,255,.08) !important;
    color: #cbd5e1 !important; font-size: 17px !important; text-decoration: none !important;
    transition: background .2s, color .2s, transform .2s !important;
}
.modern-footer .social-link:hover {
    background: #f59e0b !important; color: #111827 !important;
    transform: translateY(-3px) !important; box-shadow: none !important;
}

/* Barre du bas */
.modern-footer .footer-bottom {
    display: block !important;
    margin: 32px 0 0 !important;
    padding: 18px 24px !important;
    background: #0a0d1f !important;
    border: 0 !important;
    border-top: 1px solid rgba(255,255,255,.06) !important;
    text-align: center !important;
}
.modern-footer .footer-bottom p { margin: 0 !important; color: #cbd5e1 !important; font-size: 13.5px !important; text-align: center !important; }
.modern-footer .footer-bottom a { color: #4ade80 !important; text-decoration: none !important; }
.modern-footer .footer-bottom strong { font-weight: 700; }

/* Responsive */
@media (max-width: 960px) {
    .modern-footer .footer-top { grid-template-columns: 1fr !important; gap: 28px !important; }
    .modern-footer .footer-brand { max-width: none !important; }
    .modern-footer .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
    .modern-footer .footer-links { grid-template-columns: 1fr !important; }
    .modern-footer .footer-container { padding: 36px 16px 8px !important; }
}
/* Alignement identique sur toutes les pages */
.modern-footer,
.modern-footer .footer-container,
.modern-footer .footer-brand,
.modern-footer .footer-column,
.modern-footer .footer-list,
.modern-footer .footer-list li,
.modern-footer .footer-list a,
.modern-footer .footer-column h4,
.modern-footer .footer-description {
    text-align: left !important;
}
.lang-ar .modern-footer,
.lang-ar .modern-footer .footer-container,
.lang-ar .modern-footer .footer-brand,
.lang-ar .modern-footer .footer-column,
.lang-ar .modern-footer .footer-list,
.lang-ar .modern-footer .footer-list li,
.lang-ar .modern-footer .footer-list a,
.lang-ar .modern-footer .footer-column h4,
.lang-ar .modern-footer .footer-description {
    text-align: right !important;
}

/* Le logo et le bloc de gauche ne sont plus centrés non plus */
.modern-footer .footer-brand { align-items: flex-start !important; }
.modern-footer .footer-brand .footer-logo { margin-left: 0 !important; }
.modern-footer .footer-links { justify-items: stretch !important; }

/* La barre du bas reste centrée */
.modern-footer .footer-bottom,
.modern-footer .footer-bottom p { text-align: center !important; }
/* ===== Fenêtre « Soutenir ÔZAnnonces » ===== */
.ozs[hidden] { display: none !important; }
.ozs { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Inter', system-ui, sans-serif; }
.ozs *, .ozs *::before, .ozs *::after { box-sizing: border-box; }
.ozs-backdrop { position: absolute; inset: 0; background: rgba(10,16,40,.62); backdrop-filter: blur(4px); animation: ozsFade .2s ease; }
.ozs-dialog {
    position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35);
    animation: ozsUp .28s cubic-bezier(.2,.8,.2,1); color: #1f2937; text-align: left;
}
@keyframes ozsFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes ozsUp { from { opacity: 0; transform: translateY(18px) scale(.97) } to { opacity: 1; transform: none } }

.ozs-x {
    position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.18); color: #fff; font-size: 15px; cursor: pointer; transition: background .15s;
}
.ozs-x:hover { background: rgba(255,255,255,.32); }

.ozs-head { padding: 32px 28px 26px; text-align: center; color: #fff; background: linear-gradient(135deg, #0d3c6f, #135292 55%, #1d74c4); border-radius: 20px 20px 0 0; }
.ozs-heart { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; font-size: 24px; box-shadow: 0 8px 20px rgba(245,158,11,.45); }
.ozs-head h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: #fff; }
.ozs-head p { margin: 0 auto; max-width: 400px; font-size: 14.5px; line-height: 1.55; color: #dbe9f8; }

.ozs-body { padding: 20px 22px 24px; display: grid; gap: 14px; }
.ozs-card { padding: 18px; border: 1px solid #e5e7eb; border-radius: 14px; background: #f8fafc; }
.ozs-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 15.5px; font-weight: 700; color: #111827; }
.ozs-n { flex: 0 0 24px; height: 24px; border-radius: 50%; background: #135292; color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.ozs-card p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #6b7280; }

.ozs-share { display: flex; flex-wrap: wrap; gap: 8px; }
.ozs-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1.5px solid #e5e7eb; border-radius: 999px;
    background: #fff; color: #1f2937; font: 600 13.5px/1 'Inter', sans-serif; text-decoration: none; cursor: pointer;
    transition: border-color .15s, color .15s, transform .1s;
}
.ozs-chip:hover { border-color: #135292; color: #135292; }
.ozs-chip:active { transform: scale(.97); }
.ozs-chip.is-ok { border-color: #16a34a; color: #16a34a; }

.ozs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ozs-input {
    width: 100%; margin: 0 0 10px; padding: 11px 13px; border: 1.5px solid #e5e7eb; border-radius: 10px;
    background: #fff; color: #111827; font: 400 14px/1.4 'Inter', sans-serif; resize: vertical;
}
.ozs-input:focus { outline: none; border-color: #135292; box-shadow: 0 0 0 3px rgba(19,82,146,.15); }
.ozs-input.is-bad { border-color: #dc2626; }
.ozs-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.ozs-send {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px;
    border: 0; border-radius: 999px; background: linear-gradient(135deg, #135292, #1d74c4); color: #fff;
    font: 700 15px/1 'Inter', sans-serif; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.ozs-send:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(19,82,146,.35); }
.ozs-send:disabled { opacity: .6; cursor: wait; transform: none; }
.ozs-msg { margin: 10px 0 0 !important; min-height: 18px; font-size: 13.5px !important; font-weight: 600; }
.ozs-msg.ok { color: #16a34a !important; }
.ozs-msg.err { color: #dc2626 !important; }

.ozs-soon { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; }
.ozs-soon i { font-size: 26px; color: #f59e0b; }
.ozs-soon strong { display: block; font-size: 14.5px; color: #9a3412; margin-bottom: 2px; }
.ozs-soon span { font-size: 13px; line-height: 1.5; color: #9a6b3f; }

body.ozs-open { overflow: hidden; }
@media (max-width: 520px) {
    .ozs { align-items: flex-end; padding: 0; }
    .ozs-dialog { max-width: none; border-radius: 20px 20px 0 0; max-height: 92vh; }
    .ozs-row { grid-template-columns: 1fr; }
}