/* ============================================================
   ONMRIM.ORG — CSS Front-office v2.0
   Icône Communication — iconecommunication.com
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:  #0d4a28;
  --green-main:  #166534;
  --green-mid:   #15803d;
  --green-light: #16a34a;
  --green-pale:  #dcfce7;
  --green-faint: #f0fdf4;
  --gold:        #c4942a;
  --gold-light:  #f0c050;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-400:  #9ca3af;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --gray-800:  #1f2937;
  --white:     #ffffff;
}

html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; color: var(--gray-800); background: #fff; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── TOPBAR ─────────────────────────────────── */
.topbar { background: var(--green-dark); color: #b6d9c3; font-size: 12px; padding: 7px 0; }
.tb-wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 16px; justify-content: space-between; }

/* Compteur visiteurs */
.visitor-counter { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.vc-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #b6d9c3; }
.vc-item span:first-child:not(.vc-dot):not(.vc-lbl) { font-weight: 700; color: #fff; }
.vc-lbl { color: #7aac8a; font-size: 11px; }
.vc-sep { width: 1px; height: 14px; background: rgba(255,255,255,.15); }
.vc-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; animation: vcpulse 2s infinite; }
@keyframes vcpulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.tb-info { display: flex; gap: 16px; flex: 1; justify-content: center; }
.tb-info span { display: flex; align-items: center; gap: 4px; }

.tb-socials { display: flex; gap: 6px; flex-shrink: 0; }
.tb-social { width: 24px; height: 24px; background: rgba(255,255,255,.12); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; transition: background .2s; }
.tb-social:hover { background: var(--green-light); }

/* ── HEADER ─────────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.hd-wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 20px; height: 76px; }
.logo-wrap { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.logo-img { width: 56px; height: 56px; object-fit: contain; }
.logo-sep { width: 1px; height: 42px; background: var(--gray-200); margin: 0 2px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-ar { font-family: 'Noto Naskh Arabic', serif; font-size: 13.5px; font-weight: 700; color: var(--green-dark); direction: rtl; }
.logo-fr { font-size: 10.5px; color: var(--green-light); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.main-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 2px; }
.nav-link { padding: 8px 14px; font-size: 13.5px; font-weight: 500; color: var(--gray-600); border-radius: 7px; transition: all .2s; white-space: nowrap; position: relative; }
.nav-link:hover { color: var(--green-main); background: var(--green-pale); }
.nav-link.active { color: var(--green-main); font-weight: 700; }
.nav-link.active::after { content: ''; position: absolute; bottom: -3px; left: 14px; right: 14px; height: 2.5px; background: var(--green-main); border-radius: 2px 2px 0 0; }
.hd-cta { background: var(--green-main); color: #fff; padding: 10px 22px; border-radius: 8px; font-size: 13.5px; font-weight: 700; border: none; cursor: pointer; white-space: nowrap; transition: background .2s; font-family: inherit; }
.hd-cta:hover { background: var(--green-dark); }
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gray-700); }

/* ── PUB BANNERS ─────────────────────────────── */
.pub-banner { text-align: center; padding: 8px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.pub-banner img { max-height: 90px; margin: 0 auto; }
.pub-sidebar { margin-bottom: 16px; text-align: center; }
.pub-sidebar img { max-width: 100%; border-radius: 8px; }

/* ── SECTIONS ─────────────────────────────────── */
.section { padding: 72px 28px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--green-dark); padding: 64px 28px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-label { display: inline-block; background: var(--green-pale); color: var(--green-main); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 12px; }
.section-label-w { display: inline-block; background: rgba(255,255,255,.15); color: #a7f3c0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700; color: var(--gray-800); margin-bottom: 12px; }
.section-title-w { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.section-sub { color: var(--gray-600); font-size: 15px; max-width: 580px; margin: 0 auto; line-height: 1.7; }
.section-sub-w { color: #9ec9ae; font-size: 15px; max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* ── BREADCRUMB ───────────────────────────────── */
.breadcrumb { background: var(--green-faint); border-bottom: 1px solid var(--green-pale); padding: 11px 0; }
.bc-inner { max-width: 1280px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-600); }
.bc-inner a { color: var(--green-main); font-weight: 500; }
.bc-inner span { color: var(--gray-400); }

/* ── PAGE HERO ────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--green-dark) 0%, #1a7a3e 55%, #0f5c30 100%); padding: 56px 28px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,.04)'/%3E%3C/svg%3E"); }
.ph-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.ph-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #a7f3c0; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; letter-spacing: .06em; text-transform: uppercase; }
.ph-title { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 12px; }
.ph-title span { color: var(--gold-light); }
.ph-sub { color: #c1dac9; font-size: 16px; font-weight: 300; max-width: 540px; line-height: 1.7; }
.ph-ar { font-family: 'Noto Naskh Arabic', serif; font-size: 20px; color: rgba(255,255,255,.5); direction: rtl; margin-top: 10px; }
.ph-logo { width: 100px; height: 100px; object-fit: contain; opacity: .85; }

/* ── CARDS & GRIDS ────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }

/* Card générique */
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; overflow: hidden; }
.card-hover { transition: all .25s; }
.card-hover:hover { border-color: var(--green-light); box-shadow: 0 8px 32px rgba(22,101,52,.1); transform: translateY(-2px); }

/* ── BOUTONS ──────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 12px 24px; border-radius: 9px; font-size: 14px; font-weight: 700; border: none; cursor: pointer; transition: all .2s; font-family: inherit; text-decoration: none; }
.btn-primary { background: var(--green-main); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(22,101,52,.25); }
.btn-secondary { background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.3); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,.2); }
.btn-outline { background: transparent; border: 1.5px solid var(--green-main); color: var(--green-main); }
.btn-outline:hover { background: var(--green-pale); }
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: var(--gold-light); }

/* ── FORMS ────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12.5px; font-weight: 700; color: var(--gray-700); text-transform: uppercase; letter-spacing: .04em; }
.form-input, .form-select, .form-textarea { padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; transition: border .2s; color: var(--gray-800); width: 100%; background: #fff; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--green-main); box-shadow: 0 0 0 3px rgba(22,101,52,.06); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-submit { margin-top: 8px; }

/* ── PAGINATION ───────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 36px; }
.page-btn { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--gray-700); background: #fff; cursor: pointer; transition: all .2s; text-decoration: none; }
.page-btn:hover { border-color: var(--green-main); color: var(--green-main); }
.page-btn.active { background: var(--green-main); border-color: var(--green-main); color: #fff; font-weight: 700; }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ── LIGHTBOX ────────────────────────────────── */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: 0 0 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 28px; cursor: pointer; background: rgba(255,255,255,.1); width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.lightbox-caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 13px; text-align: center; max-width: 600px; }
img.lightbox-trigger { cursor: zoom-in; transition: opacity .2s; }
img.lightbox-trigger:hover { opacity: .9; }

/* ── MÉDECIN CARDS ────────────────────────────── */
.doc-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; padding: 20px; transition: all .25s; position: relative; overflow: hidden; cursor: pointer; }
.doc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green-main); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.doc-card:hover { border-color: var(--green-light); box-shadow: 0 6px 24px rgba(22,101,52,.1); transform: translateY(-2px); }
.doc-card:hover::before { transform: scaleX(1); }
.doc-avatar { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.doc-titre-badge { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--green-main); background: var(--green-pale); padding: 2px 7px; border-radius: 4px; margin-bottom: 4px; }
.doc-name { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; line-height: 1.3; }
.doc-spec { font-size: 13px; color: var(--gray-600); margin-bottom: 8px; }
.doc-meta-item { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.doc-verified { position: absolute; top: 14px; right: 14px; background: var(--green-pale); color: var(--green-main); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }

/* ── ANNUAIRE MODAL ───────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 20px; width: 100%; max-width: 660px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,.2); }
.modal-header { background: linear-gradient(135deg, var(--green-dark), #1a7a3e); padding: 28px; border-radius: 20px 20px 0 0; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; background: rgba(255,255,255,.15); border: none; border-radius: 8px; color: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-body { padding: 28px; }
.modal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mf-item { background: var(--gray-50); border-radius: 8px; padding: 12px 14px; }
.mf-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); font-weight: 700; margin-bottom: 3px; }
.mf-value { font-size: 14px; font-weight: 600; color: var(--gray-800); }

/* ── PREMIUM CTA ──────────────────────────────── */
.premium-cta { background: linear-gradient(135deg, var(--gold) 0%, #e8a820 100%); border-radius: 14px; padding: 24px; text-align: center; }
.premium-cta h3 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.premium-cta p { font-size: 13.5px; color: var(--green-dark); opacity: .85; margin-bottom: 16px; line-height: 1.55; }
.premium-price { font-size: 24px; font-weight: 700; color: var(--green-dark); margin-bottom: 4px; }
.premium-price-sub { font-size: 12px; color: var(--green-dark); opacity: .7; margin-bottom: 16px; }
.premium-btn { background: var(--green-dark); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13.5px; font-weight: 700; border: none; cursor: pointer; font-family: inherit; width: 100%; transition: background .2s; }
.premium-btn:hover { background: #0a3a20; }

/* ── SPONSORS STRIP ───────────────────────────── */
.sponsors-strip { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); padding: 20px 28px; }
.sponsors-wrap { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.sponsors-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); white-space: nowrap; flex-shrink: 0; }
.sponsors-logos { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.sponsor-item { display: flex; align-items: center; opacity: .7; transition: opacity .2s; }
.sponsor-item:hover { opacity: 1; }
.sponsor-item img { height: 32px; object-fit: contain; }
.sponsor-name-text { font-size: 13px; font-weight: 600; color: var(--gray-600); }

/* ── FOOTER ───────────────────────────────────── */
.site-footer { background: var(--gray-800); color: #9ca3af; padding: 56px 28px 24px; }
.ft-wrap { max-width: 1280px; margin: 0 auto; }
.ft-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ft-brand { }
.ft-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ft-logo { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 5px; padding: 2px; }
.ft-logo-ar { font-family: 'Noto Naskh Arabic', serif; font-size: 13px; color: #a7f3c0; }
.ft-logo-fr { font-size: 10px; color: #6b9e84; text-transform: uppercase; letter-spacing: .04em; }
.ft-desc { font-size: 13.5px; line-height: 1.75; color: #9ca3af; }
.ft-socials { display: flex; gap: 8px; margin-top: 18px; }
.ft-social { width: 34px; height: 34px; background: rgba(255,255,255,.06); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #9ca3af; transition: all .2s; }
.ft-social:hover { background: var(--green-main); color: #fff; }
.ft-col-title { color: #fff; font-size: 12px; font-weight: 700; margin-bottom: 16px; letter-spacing: .05em; text-transform: uppercase; }
.ft-links-list, .ft-contact-list { list-style: none; }
.ft-links-list li { margin-bottom: 10px; }
.ft-links-list a { font-size: 13.5px; color: #9ca3af; transition: color .2s; }
.ft-links-list a:hover { color: #a7f3c0; }
.ft-contact-list li { display: flex; gap: 9px; font-size: 13px; color: #9ca3af; margin-bottom: 11px; align-items: flex-start; }
.ft-bottom { padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; flex-wrap: wrap; gap: 12px; }
.ft-copy { color: #9ca3af; }
.ft-legal-links { display: flex; gap: 20px; }
.ft-legal-links a { color: #9ca3af; transition: color .2s; }
.ft-legal-links a:hover { color: #a7f3c0; }
.ft-icone { display: flex; align-items: center; gap: 7px; color: #6b9e84; font-size: 12px; font-weight: 600; transition: color .2s; }
.ft-icone:hover { color: #a7f3c0; }
.ft-icone-logo { height: 18px; object-fit: contain; }

/* ── ANIMATIONS ───────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade { opacity: 0; animation: fadeUp .7s ease forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tb-info { display: none; }
  .grid-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ph-inner { grid-template-columns: 1fr; }
  .ph-logo { display: none; }
  .ph-title { font-size: 30px; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.1); gap: 4px; z-index: 100; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hd-cta { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .ft-top { grid-template-columns: 1fr; gap: 24px; }
  .modal-fields { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .visitor-counter { display: none; }
}
