/* ===================================================
   CECA — Cabinet d'Étude de Consultance et d'Audit
   Brand palette: Navy #0f2c4d · Gold #d4af37 · Light #f5f7fa
   =================================================== */

:root {
  --navy: #0f2c4d;
  --navy-800: #143a63;
  --navy-600: #1e4d80;
  --gold: #d4af37;
  --gold-dark: #b8941f;
  --ink: #1c2733;
  --muted: #5a6a7e;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(15,44,77,.06);
  --shadow: 0 12px 40px rgba(15,44,77,.10);
  --shadow-lg: 0 24px 60px rgba(15,44,77,.16);
  --maxw: 1200px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; font-weight: 700; }
a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Language visibility */
[data-lang-en] { display: none; }
body.lang-en [data-lang-fr] { display: none; }
body.lang-en [data-lang-en] { display: revert; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 40px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: all .25s ease;
  font-family: var(--sans);
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212,175,55,.35); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-logo img { height: 46px; }
.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-menu a { font-weight: 500; font-size: .95rem; color: var(--navy); position: relative; padding: 4px 0; }
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s;
}
.nav-menu a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; }
.lang-switch button {
  border: none; background: transparent; padding: 7px 14px; cursor: pointer;
  font-weight: 600; font-size: .82rem; color: var(--muted); font-family: var(--sans);
  transition: all .2s;
}
.lang-switch button.active { background: var(--navy); color: #fff; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 150px 0 96px;
  background: linear-gradient(135deg, #0c2440 0%, #0f2c4d 55%, #143a63 100%);
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(212,175,55,.18), transparent 42%);
}
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -120px;
  width: 420px; height: 420px; border: 2px solid rgba(212,175,55,.14); border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; max-width: 860px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,175,55,.14); border: 1px solid rgba(212,175,55,.4);
  color: var(--gold); padding: 7px 16px; border-radius: 30px; font-size: .82rem;
  font-weight: 600; letter-spacing: .5px; margin-bottom: 24px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 22px; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 1.18rem; color: #cdd7e3; max-width: 660px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; }
.hero-stats .stat b { font-family: var(--serif); font-size: 2rem; color: var(--gold); display: block; }
.hero-stats .stat span { font-size: .9rem; color: #b7c3d2; }

/* ---------- Section base ---------- */
.section { padding: 92px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; color: var(--gold-dark); font-weight: 700;
  letter-spacing: 2px; font-size: .8rem; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.divider { width: 64px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 3px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: 2.2rem; margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-features { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.about-features li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.about-features i { color: var(--gold); margin-top: 4px; }
.about-visual {
  position: relative; background: linear-gradient(135deg, var(--navy), var(--navy-600));
  border-radius: var(--radius); padding: 46px; color: #fff; box-shadow: var(--shadow);
}
.about-visual .quote-mark { font-family: var(--serif); font-size: 4rem; color: var(--gold); line-height: .6; }
.about-visual h3 { color: #fff; margin: 14px 0 10px; }
.about-visual p { color: #cdd7e3; }
.about-visual .ohada {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--gold);
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: all .28s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(15,44,77,.08), rgba(212,175,55,.14));
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-icon i { font-size: 1.5rem; color: var(--navy); }
.service-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Approach / Why ---------- */
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.approach-card { text-align: center; padding: 30px 20px; }
.approach-num {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--navy); display: flex; align-items: center;
  justify-content: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  background: #fff;
}
.approach-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.approach-card p { color: var(--muted); font-size: .92rem; }

/* ---------- Sectors ---------- */
.sectors { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.sector-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 40px;
  padding: 12px 22px; font-weight: 500; color: var(--navy); display: inline-flex;
  align-items: center; gap: 10px; transition: all .25s; box-shadow: var(--shadow-sm);
}
.sector-chip i { color: var(--gold); }
.sector-chip:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.sector-chip:hover i { color: var(--gold); }

/* ---------- CTA banner ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  color: #fff; text-align: center; padding: 72px 0; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; left: -100px; top: -100px; width: 300px; height: 300px;
  border: 2px solid rgba(212,175,55,.15); border-radius: 50%;
}
.cta-band h2 { color: #fff; font-size: 2.2rem; margin-bottom: 14px; position: relative; }
.cta-band p { color: #cdd7e3; max-width: 560px; margin: 0 auto 28px; position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-info h2 { font-size: 2rem; margin-bottom: 14px; }
.contact-info > p { color: var(--muted); margin-bottom: 30px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-item .ci-icon {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 1.1rem;
}
.contact-item h4 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 3px; }
.contact-item p { color: var(--ink); font-weight: 500; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: .95rem; color: var(--ink); background: var(--bg-alt);
  transition: all .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.form-success {
  display: none; background: #e8f6ee; border: 1px solid #b6e2c6; color: #1c7a45;
  padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: .92rem;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd7e3; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 1rem; margin-bottom: 18px; }
.footer-col img { height: 44px; margin-bottom: 16px; }
.footer-col p { font-size: .92rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .92rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: all .25s;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center;
  font-size: .85rem; color: #8fa0b3;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-menu {
    position: fixed; top: 74px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 24px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .35s ease; height: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .services-grid, .approach-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .section { padding: 66px 0; }
  .btn.hide-mobile { display: none; }
}
