/* ==========================================================================
   Centre Deyloul — feuille de style du site public
   ========================================================================== */
:root {
  --navy: #0f2a4a;
  --navy-deep: #081a30;
  --navy-soft: #1d3d63;
  --gold: #c8a24a;
  --gold-soft: #e7d3a0;
  --sand: #f7f4ee;
  --ink: #1b2533;
  --muted: #5f6b7a;
  --line: #e4e0d6;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8, 26, 48, .08);
  --shadow-lg: 0 20px 50px rgba(8, 26, 48, .16);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Playfair Display", Georgia, serif;
}
html[lang="ar"] {
  --font-body: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-head: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, .font-head { font-family: var(--font-head); color: var(--navy); font-weight: 700; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 800; }
a { color: var(--navy-soft); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; }
.text-gold { color: var(--gold) !important; }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy); }

/* ---------- Boutons ---------- */
.btn-gold {
  background: var(--gold); color: var(--navy-deep); border: 0; font-weight: 700;
  padding: .75rem 1.6rem; border-radius: 50px; box-shadow: 0 8px 20px rgba(200, 162, 74, .35);
}
.btn-gold:hover { background: #d8b45e; color: var(--navy-deep); transform: translateY(-2px); }
.btn-outline-light-soft {
  border: 1.5px solid rgba(255,255,255,.55); color: #fff; border-radius: 50px; padding: .72rem 1.6rem; font-weight: 600;
}
.btn-outline-light-soft:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; border-radius: 50px; padding: .65rem 1.5rem; font-weight: 600; border: 0; }
.btn-navy:hover { background: var(--navy-soft); color: #fff; }
.btn { transition: all .25s ease; }

/* ---------- Barre supérieure & navigation ---------- */
.topbar { background: var(--navy-deep); color: rgba(255,255,255,.75); font-size: .85rem; }
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: var(--gold); }
.lang-switch a {
  padding: .15rem .6rem; border-radius: 30px; font-weight: 600; font-size: .8rem;
}
.lang-switch a.active { background: var(--gold); color: var(--navy-deep); }

.site-nav {
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(8,26,48,.06); transition: all .3s;
}
.site-nav .navbar-brand img { height: 54px; width: 54px; object-fit: contain; background: #fff; padding: 3px; border-radius: 50%; border: 2px solid var(--gold-soft); }
.site-nav .brand-text { line-height: 1.2; }
.site-nav .brand-text strong { display: block; color: var(--navy); font-size: 1.05rem; font-family: var(--font-head); }
.site-nav .brand-text small { color: var(--muted); font-size: .75rem; }
.site-nav .nav-link { color: var(--ink); font-weight: 600; padding: .5rem 1rem !important; position: relative; }
.site-nav .nav-link::after {
  content: ""; position: absolute; bottom: 2px; inset-inline-start: 1rem; inset-inline-end: 1rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link.active { color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; min-height: min(88vh, 760px); padding: 110px 0 140px; display: flex; align-items: center;
  background:
    linear-gradient(120deg, rgba(8,26,48,.96) 0%, rgba(15,42,74,.88) 55%, rgba(29,61,99,.75) 100%),
    var(--hero-img, none) center/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 28px 28px;
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  inset-inline-end: -180px; bottom: -220px; border: 70px solid rgba(200,162,74,.12);
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem; border-radius: 50px;
  background: rgba(200,162,74,.15); color: var(--gold-soft); font-weight: 600; font-size: .9rem; border: 1px solid rgba(200,162,74,.35);
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.25; margin: 1.2rem 0; }
.hero h1 span { color: var(--gold); }
.hero p.lead { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 640px; }
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px;
  padding: 2rem; backdrop-filter: blur(6px);
}
.hero-card img.logo { width: 170px; height: 170px; border-radius: 50%; object-fit: contain; background: #fff; padding: 10px; border: 4px solid var(--gold); box-shadow: var(--shadow-lg); }
.hero-card .quote { font-style: italic; color: var(--gold-soft); }

/* ---------- Statistiques ---------- */
.stats-band { margin-top: -60px; position: relative; z-index: 5; }
.stat-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.6rem; text-align: center; height: 100%;
  border-bottom: 4px solid var(--gold);
}
.stat-box .num { font-size: 2.3rem; font-weight: 800; color: var(--navy); font-family: var(--font-head); line-height: 1; }
.stat-box .lbl { color: var(--muted); font-weight: 600; margin-top: .5rem; }
.stat-box i { font-size: 1.8rem; color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-title { margin-bottom: 3rem; }
.section-title .kicker {
  color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem;
}
html[lang="ar"] .section-title .kicker { letter-spacing: 0; font-size: .95rem; }
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-top: .4rem; }
.section-title .bar { width: 70px; height: 4px; background: var(--gold); border-radius: 4px; margin-top: 1rem; }
.section-title.text-center .bar { margin-inline: auto; }

.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: 22px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-img-wrap .badge-year {
  position: absolute; bottom: -24px; inset-inline-end: -10px; background: var(--gold); color: var(--navy-deep);
  padding: 1.1rem 1.4rem; border-radius: 16px; font-weight: 800; box-shadow: var(--shadow); text-align: center;
}
.about-img-wrap .badge-year span { display: block; font-size: 1.8rem; line-height: 1; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .45rem 0; display: flex; gap: .7rem; align-items: flex-start; }
.check-list i { color: var(--gold); font-size: 1.2rem; margin-top: .15rem; }

/* Objectifs */
.objective-card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.7rem; height: 100%; border: 1px solid var(--line);
  transition: all .3s; position: relative; overflow: hidden;
}
.objective-card::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 4px; background: var(--gold);
  transform: scaleX(0); transform-origin: inline-start; transition: transform .35s;
}
.objective-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.objective-card:hover::before { transform: scaleX(1); }
.objective-card .icon {
  width: 62px; height: 62px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.2rem;
}
.objective-card h3 { font-size: 1.2rem; }
.objective-card p { color: var(--muted); margin: 0; }

/* Cartes d'événements */
.event-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%;
  display: flex; flex-direction: column; transition: all .3s;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.event-card .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--navy); }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.event-card:hover .thumb img { transform: scale(1.07); }
.event-card .date-badge {
  position: absolute; top: 14px; inset-inline-start: 14px; background: #fff; border-radius: 12px; padding: .4rem .7rem;
  text-align: center; box-shadow: var(--shadow); line-height: 1.1;
}
.event-card .date-badge .d { font-size: 1.35rem; font-weight: 800; color: var(--navy); display: block; }
.event-card .date-badge .m { font-size: .72rem; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.event-card .cat {
  position: absolute; bottom: 14px; inset-inline-start: 14px; background: var(--gold); color: var(--navy-deep);
  font-size: .75rem; font-weight: 700; padding: .25rem .75rem; border-radius: 30px;
}
.event-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.event-card h3 { font-size: 1.15rem; line-height: 1.5; }
.event-card h3 a { color: var(--navy); }
.event-card h3 a:hover { color: var(--gold); }
.event-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.event-card .meta { font-size: .85rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.read-more { font-weight: 700; color: var(--navy); display: inline-flex; gap: .4rem; align-items: center; }
.read-more:hover { color: var(--gold); gap: .7rem; }
html[dir="rtl"] .read-more i, html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.placeholder-thumb {
  width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.4); font-size: 3rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
}

/* Vidéos */
.video-section { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.video-section .section-title h2 { color: #fff; }
.video-card { border-radius: var(--radius); overflow: hidden; background: var(--navy); height: 100%; transition: all .3s; display: block; color: #fff; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,.35); color: #fff; }
.video-card .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: all .5s; }
.video-card:hover .thumb img { opacity: 1; transform: scale(1.05); }
.video-card .play {
  position: absolute; inset: 0; margin: auto; width: 70px; height: 70px; border-radius: 50%; background: var(--gold);
  color: var(--navy-deep); display: grid; place-items: center; font-size: 2rem; box-shadow: 0 0 0 12px rgba(200,162,74,.25);
  transition: all .3s;
}
.video-card:hover .play { box-shadow: 0 0 0 18px rgba(200,162,74,.2); }
.video-card .body { padding: 1.2rem 1.4rem; }
.video-card h3 { color: #fff; font-size: 1.08rem; margin: 0 0 .4rem; line-height: 1.5; }
.video-card small { color: rgba(255,255,255,.6); }
.bg-light-cards .video-card { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.bg-light-cards .video-card h3 { color: var(--navy); }
.bg-light-cards .video-card small { color: var(--muted); }

/* Galerie */
.album-card { position: relative; border-radius: var(--radius); overflow: hidden; display: block; aspect-ratio: 4/3; background: var(--navy); }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.album-card:hover img { transform: scale(1.08); }
.album-card .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem;
  background: linear-gradient(to top, rgba(8,26,48,.92) 0%, rgba(8,26,48,.1) 65%); color: #fff;
}
.album-card .overlay h3 { color: #fff; font-size: 1.15rem; margin: 0; }
.album-card .overlay small { color: var(--gold-soft); }
.photo-grid { columns: 3 260px; column-gap: 1rem; }
.photo-grid a { display: block; margin-bottom: 1rem; border-radius: 12px; overflow: hidden; break-inside: avoid; position: relative; }
.photo-grid img { width: 100%; display: block; transition: transform .5s; }
.photo-grid a:hover img { transform: scale(1.05); }

/* Experts */
.member-card { text-align: center; background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--shadow); height: 100%; }
.member-card img, .member-card .avatar {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold-soft); margin-bottom: 1rem;
}
.member-card .avatar { display: inline-grid; place-items: center; background: var(--navy); color: var(--gold); font-size: 2.5rem; font-weight: 800; }
.member-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.member-card .role { color: var(--gold); font-weight: 600; font-size: .9rem; }
.member-card p { color: var(--muted); font-size: .9rem; margin: .8rem 0 0; }

/* CTA */
.cta-band {
  background: linear-gradient(120deg, var(--gold) 0%, #d9b968 100%); border-radius: 24px; padding: 3rem; color: var(--navy-deep);
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--navy-deep); }
.cta-band::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 40px solid rgba(255,255,255,.18); inset-inline-end: -80px; top: -120px; }

/* En-tête de page interne */
.page-header {
  background: linear-gradient(120deg, rgba(8,26,48,.97), rgba(29,61,99,.9)); color: #fff; padding: 80px 0 70px; position: relative; overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 26px 26px;
}
.page-header h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); position: relative; }
.page-header .breadcrumb { position: relative; margin: 0; }
.page-header .breadcrumb a { color: var(--gold-soft); }
.page-header .breadcrumb-item.active, .page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.65); }
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before { float: right; padding-left: .5rem; padding-right: 0; }

/* Article */
.article-cover { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 2rem; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-body { font-size: 1.1rem; line-height: 2; }
.article-body p { margin-bottom: 1.3rem; }
.article-body img { border-radius: 12px; height: auto; }
.article-body blockquote { border-inline-start: 4px solid var(--gold); padding: .5rem 1.2rem; background: var(--sand); border-radius: 8px; font-style: italic; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-size: .92rem; margin-bottom: 1.5rem; }
.article-meta i { color: var(--gold); }
.share-box a {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--sand); color: var(--navy);
  margin-inline-end: .4rem;
}
.share-box a:hover { background: var(--gold); color: var(--navy-deep); }
.sidebar-box { background: var(--sand); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.5rem; }
.sidebar-box h4 { font-size: 1.1rem; border-bottom: 2px solid var(--gold); padding-bottom: .6rem; margin-bottom: 1rem; display: inline-block; }
.mini-post { display: flex; gap: .9rem; margin-bottom: 1rem; align-items: center; }
.mini-post img, .mini-post .ph { width: 72px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--navy); }
.mini-post a { color: var(--navy); font-weight: 600; font-size: .92rem; line-height: 1.45; }
.mini-post small { color: var(--muted); }
.ratio-video { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }

/* Filtres */
.filter-bar { background: #fff; border-radius: 50px; box-shadow: var(--shadow); padding: .5rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-bar .form-control { border: 0; box-shadow: none; border-radius: 50px; padding-inline: 1.2rem; }
.chip { display: inline-block; padding: .4rem 1rem; border-radius: 30px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; margin: .2rem; }
.chip.active, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Pagination */
.pagination .page-link { border: 0; margin: 0 .2rem; border-radius: 10px !important; color: var(--navy); font-weight: 600; min-width: 42px; text-align: center; }
.pagination .page-item.active .page-link { background: var(--navy); color: #fff; }

/* Contact */
.contact-info-card { background: var(--navy); color: #fff; border-radius: 20px; padding: 2.4rem; height: 100%; }
.contact-info-card h3 { color: #fff; }
.contact-info-card .item { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.contact-info-card .item i { width: 46px; height: 46px; border-radius: 12px; background: rgba(200,162,74,.18); color: var(--gold); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-info-card a { color: #fff; }
.form-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 2.4rem; }
.form-control, .form-select { border-radius: 12px; padding: .75rem 1rem; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(200,162,74,.2); }

/* Pied de page */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding-top: 70px; }
.site-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer .logo { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; background: #fff; padding: 3px; border: 2px solid var(--gold); }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.08);
  color: #fff; margin-inline-end: .4rem;
}
.social a:hover { background: var(--gold); color: var(--navy-deep); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; margin-top: 3rem; font-size: .88rem; }

.back-to-top {
  position: fixed; bottom: 24px; inset-inline-end: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--gold);
  color: var(--navy-deep); display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .3s; z-index: 50;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { color: var(--navy-deep); transform: translateY(-3px); }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--gold); }

/* Animation d'apparition */
.js .reveal { opacity: 0; transform: translateY(28px); transition: all .8s cubic-bezier(.2,.7,.3,1); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 991.98px) {
  .hero { min-height: auto; padding: 90px 0 120px; }
  .section { padding: 64px 0; }
  .site-nav .nav-link::after { display: none; }
  .cta-band { padding: 2rem 1.5rem; }
}
