:root{
  --bg:#07121f;
  --bg2:#0b1c2f;
  --card:#0f253d;
  --line:rgba(255,255,255,.10);
  --txt:#ffffff;
  --muted:#b9c4d0;
  --green:#20b26b;
  --red:#e53935;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --radius:18px;
  --max:1180px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
*{box-sizing:border-box}
body{
  margin:0; font-family:var(--font); color:var(--txt);
  background: radial-gradient(1200px 700px at 20% 0%, #0f2a4a 0%, var(--bg) 55%, #050a11 100%);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  background: url('https://upload.wikimedia.org/wikipedia/commons/8/86/Africa_blank_map.svg') no-repeat 110% 55%;
  background-size: 880px auto;
  opacity:0.05;
  pointer-events:none;
  z-index:-1;
  filter: blur(.2px);
}
a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 18px}
.card{
  background: linear-gradient(180deg, rgba(15,37,61,.92), rgba(10,24,40,.92));
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,18,31,.78);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0; gap:14px; flex-wrap:wrap;
}
.brand{display:flex; align-items:center; gap:12px; min-width:400px}
.brand img{height:90px; width:auto; display:block; margin-left:15px;}

nav{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
nav a{
  font-size:14px; color:var(--muted);
  padding:8px 10px; border-radius:12px;
  border:1px solid transparent;
}
nav a:hover{background:rgba(255,255,255,.06); color:var(--txt); border-color:rgba(255,255,255,.08)}
nav a.active{background:rgba(255,255,255,.08); color:var(--txt); border-color:rgba(255,255,255,.12)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--txt); font-weight:850; font-size:14px;
  gap:10px; cursor:pointer; white-space:nowrap;
  transition: transform .15s ease;
}
.btn:hover{transform: translateY(-1px)}
.btn.primary{
  border:none;
  background: linear-gradient(135deg, var(--green), var(--red));
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}
.btn.small{padding:8px 12px; border-radius:12px; font-weight:800; font-size:13px}

.lang{
  display:flex; gap:8px; align-items:center;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding:6px; border-radius:14px;
}
.lang button{
  all:unset;
  padding:8px 10px; border-radius:10px;
  font-size:13px; font-weight:900;
  color:var(--muted);
  cursor:pointer;
}
.lang button.active{
  color:var(--txt);
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}

/* Common layout */
main{padding-bottom:18px}
section{padding:34px 0}
h1{margin:0; font-size: clamp(28px, 3.2vw, 44px); line-height:1.08}
h2{margin:0; font-size:28px; line-height:1.15}
.accent{
  background: linear-gradient(135deg, var(--green), var(--red));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-weight:950;
}
.lead{margin:14px 0 0; color:var(--muted); font-size:16px; line-height:1.65; max-width:78ch}
.mini{color:var(--muted); font-size:13px; line-height:1.55}
.badges{margin-top:16px; display:flex; gap:10px; flex-wrap:wrap}
.badge{
  font-size:12px; color:var(--muted);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding:8px 10px; border-radius:999px;
}
.section-title{display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:14px}
.section-title p{margin:0; color:var(--muted); font-size:14px}

.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.tile{padding:16px}
.tile h3{margin:0 0 8px; font-size:16px}
.tile p{margin:0; color:var(--muted); font-size:14px; line-height:1.55}
.icon{
  width:40px; height:40px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  margin-bottom:10px;
}

/* Tags */
.tag{
  font-size:12px; color:var(--txt);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  padding:7px 10px;
  border-radius:999px;
}
.tag strong{font-weight:900}

/* Media */
.media-grid{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
.gallery{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px}
.ph{
  aspect-ratio: 4/3; width:100%;
  border-radius:16px; overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.ph img{width:100%; height:100%; object-fit:cover; display:block}
.video{
  border-radius:16px; overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.video iframe, .video video{width:100%; aspect-ratio:16/9; border:0; display:block}

/* Algeria watermark inside section */
.algeria-watermark{
  position:absolute; inset:0;
  pointer-events:none;
  opacity:.06;
  background: url("https://upload.wikimedia.org/wikipedia/commons/8/86/Africa_blank_map.svg") no-repeat 112% 55%;
  background-size: 780px auto;
  filter: blur(.2px);
}
.algeria-watermark::after{
  content:"";
  position:absolute;
  right:110px; top:80px;
  width:280px; height:280px;
  border-radius:999px;
  background:
    radial-gradient(circle at 40% 40%, rgba(32,178,107,.25), transparent 62%),
    radial-gradient(circle at 70% 70%, rgba(229,57,53,.20), transparent 65%);
  filter: blur(6px);
  opacity:.9;
}

/* Timeline / corridor strip */
.timeline{
  margin-top:18px;
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.timeline-track{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  align-items:stretch;
}
.step{
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  position:relative;
  overflow:hidden;
}
.step:before{
  content:"";
  position:absolute;
  inset:-60px -60px auto auto;
  width:200px; height:200px;
  background: radial-gradient(circle, rgba(255,255,255,.09), transparent 60%);
  filter: blur(8px);
}
.step .top{display:flex; gap:10px; align-items:center; margin-bottom:8px}
.step .dot{
  width:34px; height:34px;
  border-radius:14px;
  display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-weight:900;
}
.step h4{margin:0; font-size:14px}
.step p{margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.55}
.timeline-arrows{
  display:flex; align-items:center; justify-content:center;
  gap:12px; margin:12px 0 2px;
  color: rgba(255,255,255,.35); font-size:18px;
}
.timeline-caption{margin:10px 0 0; color: var(--muted); font-size:13px; line-height:1.55}

/* Contact */
.contact{
  display:grid; grid-template-columns: 1fr 1fr;
  gap:14px; align-items:start;
}
form{display:grid; gap:10px}
label{font-size:13px; color:var(--muted)}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  outline:none;
}
textarea{min-height:110px; resize:vertical}
.small{font-size:12px; color:var(--muted); line-height:1.5}

footer{padding:22px 0 32px; border-top:1px solid var(--line); color:var(--muted); font-size:13px}

/* Language switching */
[data-lang]{display:none}
.show-fr [data-lang="fr"]{display:block}
.show-en [data-lang="en"]{display:block}

@media (max-width: 980px){
  .grid3{grid-template-columns:1fr}
  .media-grid{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  nav{display:none}
  .gallery{grid-template-columns: repeat(2, 1fr)}
  .timeline-track{grid-template-columns:1fr}
  body::before{background-position: 120% 40%; background-size: 680px auto;}
  .algeria-watermark{background-position: 120% 40%; background-size: 620px auto;}
}