:root {
  --navy: #071f2e;
  --navy-2: #0c3042;
  --teal: #09a79b;
  --teal-light: #dff8f4;
  --orange: #ff9f1c;
  --ink: #132832;
  --muted: #61717a;
  --line: #dce6e9;
  --paper: #f4f8f8;
  --white: #fff;
  --radius: 1.25rem;
  --shadow: 0 24px 70px rgba(7, 31, 46, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Cairo", sans-serif; font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.concept-bar { background: var(--orange); color: #1d1b16; padding: .45rem 1rem; text-align: center; font-size: .78rem; font-weight: 800; }
.site-header { height: 80px; padding: 0 clamp(1rem, 4vw, 4rem); display: flex; align-items: center; gap: 2rem; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(7,31,46,.08); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.brand-mark { width: 50px; height: 50px; display: grid; place-items: center; background: var(--navy); color: var(--white); border-radius: 15px 4px 15px 4px; font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: -.05em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: .92rem; }
.brand-copy small { color: var(--muted); font-size: .72rem; }
nav { display: flex; gap: 1.6rem; font-weight: 700; font-size: .9rem; }
nav a:hover { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: .65rem; }
.lang-toggle { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .45rem .75rem; cursor: pointer; font-weight: 800; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.35rem; border-radius: .9rem; background: var(--orange); color: #17130c; font-weight: 800; border: 1px solid var(--orange); transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,159,28,.25); }
.button-small { min-height: 42px; padding: .5rem 1rem; font-size: .86rem; }
.button-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: var(--white); }
.button-outline { background: transparent; border-color: var(--navy); color: var(--navy); }

.hero { min-height: 710px; position: relative; display: flex; align-items: center; overflow: hidden; background: var(--navy); color: var(--white); }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; }
.hero-overlay { background: linear-gradient(90deg, rgba(7,31,46,.98) 0%, rgba(7,31,46,.9) 39%, rgba(7,31,46,.3) 70%, rgba(7,31,46,.06) 100%); }
[dir="rtl"] .hero-overlay { background: linear-gradient(270deg, rgba(7,31,46,.98) 0%, rgba(7,31,46,.9) 39%, rgba(7,31,46,.3) 70%, rgba(7,31,46,.06) 100%); }
.hero-content { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; position: relative; z-index: 2; }
.hero-content > * { max-width: 620px; }
.eyebrow { display: inline-flex; width: fit-content; padding: .35rem .75rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #a8fff4; font-size: .79rem; font-weight: 800; letter-spacing: .02em; }
.eyebrow.dark { color: var(--teal); border-color: rgba(9,167,155,.25); background: var(--teal-light); }
.hero h1 { margin: 1rem 0 .75rem; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.06; letter-spacing: -.045em; }
.hero p { font-size: clamp(1rem, 2vw, 1.22rem); color: #d4e3e8; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.hero-proof { display: flex; gap: 2.2rem; margin-top: 3.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.18); }
.hero-proof div { display: flex; flex-direction: column; }
.hero-proof strong { color: var(--orange); font-size: 1.05rem; }
.hero-proof span { color: #c3d1d6; font-size: .8rem; }

.section { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 7rem 0; }
.section-heading { max-width: 720px; margin-bottom: 2.5rem; }
.section h2, .why h2 { margin: .8rem 0; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.2; letter-spacing: -.035em; }
.section-heading p, .why-copy p { color: var(--muted); max-width: 630px; }
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.course-card { min-height: 335px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; box-shadow: 0 10px 32px rgba(7,31,46,.04); transition: transform .2s ease, border-color .2s ease; }
.course-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.course-card.featured { background: var(--navy); color: var(--white); border-color: var(--navy); }
.course-top { display: flex; justify-content: space-between; align-items: center; }
.course-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-light); color: var(--teal); font-family: "Manrope", sans-serif; font-weight: 800; }
.featured .course-icon { background: var(--orange); color: var(--navy); }
.pill { padding: .25rem .6rem; border-radius: 999px; background: #eff5f6; color: var(--muted); font-size: .72rem; font-weight: 800; }
.featured .pill { background: rgba(255,255,255,.1); color: #b8f6ee; }
.course-card h3 { margin: 1.4rem 0 .55rem; font-size: 1.4rem; }
.course-card p { color: var(--muted); margin: 0 0 1.25rem; }
.featured p { color: #c8d8dc; }
.course-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .84rem; }
.featured .course-meta { border-color: rgba(255,255,255,.14); }
.course-card > a { margin-top: 1.15rem; color: var(--teal); font-weight: 800; }
.featured > a { color: var(--orange); }

.why { background: var(--navy); color: var(--white); padding: 6rem max(1rem, calc((100vw - 1180px)/2)); display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-copy p { color: #bfced3; }
.why-list { display: grid; gap: .8rem; }
.why-list > div { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: rgba(255,255,255,.045); }
.why-list > div > span { color: var(--orange); font-family: "Manrope", sans-serif; font-weight: 800; }
.why-list p { margin: 0; display: flex; flex-direction: column; }
.why-list small { color: #b9c9ce; }

.contact { padding-block: 6rem; }
.contact-card { background: var(--white); border-radius: calc(var(--radius) + .5rem); padding: clamp(1.5rem, 5vw, 4rem); box-shadow: var(--shadow); border-top: 5px solid var(--teal); }
.contact-card > div:first-child { max-width: 760px; }
.contact-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.5rem 0; }
.address { padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; gap: .6rem; color: var(--muted); }
footer { background: #04151e; color: #d6e1e5; padding: 2rem max(1rem, calc((100vw - 1180px)/2)); display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; }
footer > div:first-child { display: flex; flex-direction: column; }
.yenfa strong { color: var(--orange); }

[lang="fr"] body { font-family: "Manrope", sans-serif; }
[lang="fr"] .hero h1, [lang="fr"] .section h2, [lang="fr"] .why h2 { letter-spacing: -.055em; }

@media (max-width: 850px) {
  nav { display: none; }
  .site-header { height: 70px; gap: .7rem; }
  .brand-copy strong { font-size: .74rem; }
  .brand-copy small { display: none; }
  .button-small { display: none; }
  .hero { min-height: 680px; align-items: flex-end; padding-bottom: 3rem; }
  .hero-image { object-position: 63% center; }
  .hero-overlay, [dir="rtl"] .hero-overlay { background: linear-gradient(0deg, rgba(7,31,46,.99) 0%, rgba(7,31,46,.88) 52%, rgba(7,31,46,.28) 100%); }
  .hero-proof { gap: .8rem; justify-content: space-between; margin-top: 2.4rem; }
  .hero-proof div { flex: 1; }
  .course-grid, .why { grid-template-columns: 1fr; }
  .why { gap: 2.5rem; }
  .section { padding-block: 5rem; }
  footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .brand-mark { width: 44px; height: 44px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-actions .button { width: 100%; }
  .hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-proof span { font-size: .68rem; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { min-height: 315px; }
  .contact-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
