/* ===========================================================
   ASMAS — Feuille de style principale
   Palette : bleu profond, vert, blanc, touche dorée
   =========================================================== */
:root {
  --asmas-blue: #0b2e59;
  --asmas-blue-dark: #071f3d;
  --asmas-green: #1e8a4c;
  --asmas-gold: #d4a428;
  --asmas-bg: #f7f8fa;
  --asmas-text: #1c2530;
  --asmas-muted: #5c6773;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--asmas-text);
  background: var(--asmas-bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e7e9ec;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--asmas-blue);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}
.logo span { color: var(--asmas-green); }
nav.main-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--asmas-text);
  transition: color .15s;
}
nav.main-nav a:hover { color: var(--asmas-green); }
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--asmas-green); color: #fff; }
.btn-primary:hover { background: #167039; }
.btn-outline { background: transparent; border: 2px solid var(--asmas-blue); color: var(--asmas-blue); }
.btn-gold { background: var(--asmas-gold); color: #1c2530; }
.member-btn {
  background: var(--asmas-blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
}
.burger { display: none; background: none; border: none; font-size: 26px; color: var(--asmas-blue); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--asmas-blue) 0%, var(--asmas-blue-dark) 100%);
  color: #fff;
  padding: 90px 0 70px;
  text-align: center;
}
.hero h1 { font-size: 40px; margin: 0 0 14px; font-weight: 800; }
.hero .tagline { font-size: 17px; color: #cdd8e8; margin-bottom: 30px; letter-spacing: 1px; text-transform: uppercase; }
.hero .cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 8px; font-size: 30px; font-weight: 800; color: var(--asmas-blue); }
.section-subtitle { text-align: center; color: var(--asmas-muted); margin-bottom: 40px; font-size: 15.5px; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(11,46,89,0.06);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(11,46,89,0.12); }
.card .card-img { height: 170px; background: #dfe6ee; object-fit: cover; width: 100%; }
.card .card-body { padding: 18px; }
.card .cat-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--asmas-green);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.card p { color: var(--asmas-muted); font-size: 14px; margin: 0 0 10px; }
.card .meta { font-size: 12.5px; color: #96a0ab; }

.domain-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(11,46,89,0.06);
}
.domain-card .icon { font-size: 30px; margin-bottom: 10px; }
.domain-card h4 { margin: 0; color: var(--asmas-blue); font-size: 15.5px; }

/* ---------- Featured / main article ---------- */
.featured-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; }
.featured-main { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; background: #223; color: #fff; }
.featured-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.featured-main .overlay {
  position: relative; z-index: 1; height: 100%;
  background: linear-gradient(0deg, rgba(7,31,61,.92) 0%, rgba(7,31,61,.15) 65%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
}
.featured-main h2 { font-size: 24px; margin: 8px 0; }
.side-list { display: flex; flex-direction: column; gap: 14px; }
.side-list h4 { margin: 0 0 12px; color: var(--asmas-blue); text-transform: uppercase; font-size: 13px; letter-spacing: .5px;}
.side-item { display: flex; gap: 12px; background: #fff; border-radius: 10px; padding: 10px; box-shadow: 0 1px 6px rgba(11,46,89,.06); }
.side-item img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background:#dfe6ee;}
.side-item .t { font-size: 13.5px; font-weight: 600; line-height: 1.3; }

/* ---------- CTA join ---------- */
.cta-join {
  background: var(--asmas-green);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  border-radius: var(--radius);
}
.cta-join h2 { margin: 0 0 10px; font-size: 26px; }
.cta-join p { margin: 0 0 22px; color: #e5f3ea; }
.cta-join .btn { background: #fff; color: var(--asmas-green); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--asmas-blue-dark); color: #cfd9e6; padding: 50px 0 20px; margin-top: 60px; }
footer.site-footer .grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
footer.site-footer h5 { color: #fff; margin: 0 0 14px; font-size: 15px; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; font-size: 14px; }
footer.site-footer a:hover { color: var(--asmas-gold); }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #92a0b0; }

/* ---------- Inner pages ---------- */
.page-header { background: var(--asmas-blue); color: #fff; padding: 50px 0; text-align: center; }
.page-header h1 { margin: 0; font-size: 30px; }
.breadcrumb { font-size: 13px; color: #b9c6d9; margin-top: 8px; }

.article-content { max-width: 780px; margin: 40px auto; background: #fff; padding: 34px; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(11,46,89,.06); }
.article-content h1 { color: var(--asmas-blue); font-size: 28px; }
.article-content .meta { color: var(--asmas-muted); font-size: 13.5px; margin-bottom: 20px; }
.article-content img { border-radius: 10px; margin: 20px 0; }

.event-item { display: flex; gap: 20px; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 10px rgba(11,46,89,.06); margin-bottom: 18px; align-items: center; }
.event-date-badge { background: var(--asmas-blue); color: #fff; border-radius: 10px; padding: 12px 16px; text-align: center; min-width: 78px; }
.event-date-badge .d { font-size: 22px; font-weight: 800; }
.event-date-badge .m { font-size: 11px; text-transform: uppercase; }

.member-card { text-align: center; padding: 24px 16px; }
.member-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; background: #dfe6ee; }
.member-card h4 { margin: 0 0 4px; color: var(--asmas-blue); }
.member-card .role { color: var(--asmas-green); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.member-card .specialties { font-size: 13px; color: var(--asmas-muted); }

.search-bar { display: flex; gap: 10px; max-width: 620px; margin: 0 auto 40px; flex-wrap: wrap; }
.search-bar input, .search-bar select { padding: 10px 14px; border-radius: 8px; border: 1px solid #d6dce3; font-size: 14px; flex: 1; min-width: 140px; }

.contact-form { max-width: 620px; margin: 0 auto; background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(11,46,89,.06); }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 14px; border: 1px solid #d6dce3; border-radius: 8px; margin-bottom: 18px; font-family: inherit; font-size: 14px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #e4f6ea; color: #1e6b3c; }
.alert-error { background: #fbe6e6; color: #9c2c2c; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-4[style*="repeat(5"] { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .featured-wrap { grid-template-columns: 1fr; }
  footer.site-footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  nav.main-nav { display: none; }
  .burger { display: block; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  footer.site-footer .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}
