/* =============================================
   DJIBRIL & PARTNERS — Feuille de style principale
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
img { max-width:100%; display:block; }
a { text-decoration:none; }
ul { list-style:none; }
button { cursor:pointer; font-family:inherit; }
input, textarea, select { font-family:inherit; }

/* ---- Theme Variables ---- */
:root {
  --navy:#0D1B3E;
  --navy-light:#1a2d5a;
  --gold:#C9A84C;
  --gold-light:#e6c97a;
  --gold-dim:rgba(201,168,76,0.2);
  --cream:#F7F4EE;
  --white:#ffffff;

  /* Light mode (default) */
  --bg-primary:#F7F4EE;
  --bg-secondary:#ffffff;
  --bg-card:#ffffff;
  --bg-dark:var(--navy);
  --bg-dark-lighter:var(--navy-light);
  --text-primary:#0D1B3E;
  --text-secondary:#4a5568;
  --text-muted:#8a9ab0;
  --border-color:#e2ddd4;
  --border-subtle:rgba(201,168,76,0.15);
  --nav-bg:rgba(13,27,62,0.97);
  --grid-bg:var(--border-color);
  --sector-bg:rgba(255,255,255,0.02);
  --input-bg:#F7F4EE;
  --shadow:0 4px 24px rgba(13,27,62,0.08);
  --shadow-card:0 2px 12px rgba(13,27,62,0.06);
  --hero-sub:rgba(255,255,255,0.55);
  --nav-link:rgba(255,255,255,0.75);
  --hero-stat:rgba(255,255,255,0.4);
  --transition:0.3s ease;
}

/* Dark mode */
[data-theme="dark"] {
  --bg-primary:#0a1020;
  --bg-secondary:#111827;
  --bg-card:#1a2235;
  --bg-dark:#0a1020;
  --bg-dark-lighter:#111827;
  --text-primary:#e8e4d9;
  --text-secondary:#9aabbf;
  --text-muted:#566475;
  --border-color:#1e2a3d;
  --border-subtle:rgba(201,168,76,0.12);
  --nav-bg:rgba(5,10,22,0.98);
  --grid-bg:#0f1929;
  --sector-bg:rgba(255,255,255,0.03);
  --input-bg:#111827;
  --shadow:0 4px 24px rgba(0,0,0,0.4);
  --shadow-card:0 2px 12px rgba(0,0,0,0.3);
  --cream:#F7F4EE;
}

/* ---- Typography ---- */
body {
  font-family:'DM Sans', 'Segoe UI', sans-serif;
  background:var(--bg-primary);
  color:var(--text-primary);
  overflow-x:hidden;
  transition:background var(--transition), color var(--transition);
}

h1, h2, h3, h4 { font-family:'Cormorant Garamond', Georgia, serif; }
h1 { font-size:clamp(2.8rem,6vw,5.5rem); font-weight:300; line-height:1.05; letter-spacing:-1px; }
h2 { font-size:clamp(2rem,4vw,3.2rem); font-weight:400; line-height:1.1; color:var(--text-primary); }
h3 { font-size:1.6rem; font-weight:400; }
h4 { font-size:0.95rem; font-weight:500; font-family:'DM Sans', sans-serif; }

/* ---- Navigation ---- */
nav {
  position:fixed; top:0; width:100%; z-index:1000;
  background:var(--nav-bg);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  padding:0 4rem;
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
  border-bottom:1px solid var(--border-subtle);
  transition:background var(--transition);
}
.nav-brand { display:flex; align-items:center; gap:12px; }
.nav-emblem {
  width:42px; height:42px; border-radius:50%;
  border:1.5px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-family:'Cormorant Garamond', serif;
  font-size:17px; font-weight:700; color:var(--gold);
}
.nav-logo-img { width:38px; height:38px; border-radius:50%; object-fit:cover; }
.nav-name {
  font-family:'Cormorant Garamond', serif;
  font-size:17px; font-weight:600; color:var(--white); letter-spacing:0.5px;
}
.nav-links { display:flex; gap:2rem; }
.nav-links a {
  color:var(--nav-link); font-size:12px;
  letter-spacing:0.8px; text-transform:uppercase; font-weight:400;
  transition:color var(--transition);
}
.nav-links a:hover { color:var(--gold); }
.nav-right { display:flex; align-items:center; gap:1rem; }

/* Theme toggle */
.theme-toggle {
  display:flex; align-items:center; gap:6px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:20px;
  padding:4px 6px;
}
.theme-btn {
  background:none; border:none;
  width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; color:rgba(255,255,255,0.5);
  transition:all var(--transition);
}
.theme-btn.active {
  background:var(--gold); color:var(--navy);
}
.theme-btn:hover:not(.active) { color:var(--white); }

.nav-cta {
  background:var(--gold); color:var(--navy);
  padding:9px 20px; border-radius:2px;
  font-size:11px; letter-spacing:1px; text-transform:uppercase;
  font-weight:500; border:none;
  transition:background var(--transition);
}
.nav-cta:hover { background:var(--gold-light); }

/* Hamburger */
.hamburger { display:none; flex-direction:column; gap:5px; background:none; border:none; padding:4px; }
.hamburger span { display:block; width:22px; height:2px; background:var(--white); border-radius:2px; transition:all var(--transition); }
.hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display:none; flex-direction:column;
  position:fixed; top:72px; left:0; right:0; z-index:999;
  background:rgba(10,16,32,0.98);
  backdrop-filter:blur(12px);
  padding:1.5rem 2rem;
  border-bottom:1px solid var(--border-subtle);
  gap:1rem;
}
.mobile-menu.open { display:flex; }
.mobile-menu a {
  color:rgba(255,255,255,0.7); font-size:14px;
  letter-spacing:0.8px; text-transform:uppercase;
  padding:0.5rem 0; border-bottom:1px solid rgba(255,255,255,0.05);
  transition:color var(--transition);
}
.mobile-menu a:last-child { border-bottom:none; }
.mobile-menu a:hover { color:var(--gold); }

/* ---- Hero ---- */
.hero {
  min-height:100vh; background:var(--navy);
  position:relative; display:flex; flex-direction:column;
  justify-content:center; overflow:hidden;
  padding-top:72px;
}
[data-theme="dark"] .hero { background:#080e1e; }

.hero-bg {
  position:absolute; inset:0; opacity:0.04;
  background-image:
    repeating-linear-gradient(0deg,transparent,transparent 79px,rgba(201,168,76,0.5) 79px,rgba(201,168,76,0.5) 80px),
    repeating-linear-gradient(90deg,transparent,transparent 79px,rgba(201,168,76,0.5) 79px,rgba(201,168,76,0.5) 80px);
}
.hero-circle {
  position:absolute; right:-100px; top:50%; transform:translateY(-50%);
  width:480px; height:480px; border-radius:50%;
  border:1px solid rgba(201,168,76,0.1);
  box-shadow:0 0 0 80px rgba(201,168,76,0.03),0 0 0 160px rgba(201,168,76,0.015);
  pointer-events:none;
}
.hero-content { position:relative; z-index:2; padding:4rem; max-width:900px; }
.hero-tag {
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid rgba(201,168,76,0.35);
  padding:7px 18px; border-radius:2px; margin-bottom:2rem;
}
.hero-tag .dot { width:6px; height:6px; border-radius:50%; background:var(--gold); animation:blink 2s infinite; }
.hero-tag span { font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--gold); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

h1.hero-title { color:var(--white); margin-bottom:1.5rem; }
h1.hero-title em { font-style:normal; color:var(--gold); }

.hero-sub {
  font-size:15px; color:var(--hero-sub);
  line-height:1.85; max-width:520px; font-weight:300; margin-bottom:3rem;
}
.hero-actions { display:flex; gap:1rem; align-items:center; flex-wrap:wrap; }
.btn-primary {
  background:var(--gold); color:var(--navy);
  padding:14px 32px; font-size:12px;
  letter-spacing:1px; text-transform:uppercase;
  font-weight:500; border:none; border-radius:2px;
  transition:background var(--transition);
}
.btn-primary:hover { background:var(--gold-light); }
.btn-ghost {
  color:rgba(255,255,255,0.55); font-size:13px;
  background:none; border:none; letter-spacing:0.3px;
  display:flex; align-items:center; gap:6px;
  transition:color var(--transition);
}
.btn-ghost:hover { color:var(--white); }

.hero-stats {
  position:absolute; bottom:3rem; right:4rem; z-index:2;
  display:flex; gap:3rem;
}
.stat { text-align:right; }
.stat-num {
  font-family:'Cormorant Garamond', serif;
  font-size:2.4rem; font-weight:600; color:var(--gold); line-height:1;
}
.stat-label {
  font-size:11px; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--hero-stat); margin-top:4px;
}

/* ---- Sections générales ---- */
section { padding:6rem 4rem; }
.section-inner { max-width:1200px; margin:0 auto; }
.section-label {
  display:flex; align-items:center; gap:12px; margin-bottom:0.75rem;
}
.section-label::before { content:''; display:block; width:30px; height:1px; background:var(--gold); }
.section-label span { font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--gold); }
.section-intro { font-size:15px; color:var(--text-secondary); line-height:1.8; max-width:560px; font-weight:300; }

/* ---- Services ---- */
#services { background:var(--bg-secondary); }
.services-grid {
  margin-top:3.5rem;
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1px; background:var(--border-color);
  border:1px solid var(--border-color);
}
.service-card {
  background:var(--bg-card);
  padding:2.5rem; position:relative; overflow:hidden;
  transition:background var(--transition);
}
.service-card:hover { background:var(--bg-primary); }
.service-card::after {
  content:''; position:absolute; bottom:0; left:0; right:0;
  height:2px; background:var(--gold);
  transform:scaleX(0); transition:transform 0.35s;
  transform-origin:left;
}
.service-card:hover::after { transform:scaleX(1); }
.service-num {
  font-family:'Cormorant Garamond', serif;
  font-size:2.8rem; font-weight:300;
  color:var(--gold-dim); line-height:1; margin-bottom:1rem;
}
.service-title {
  font-family:'Cormorant Garamond', serif;
  font-size:1.35rem; font-weight:600;
  color:var(--text-primary); margin-bottom:0.75rem;
}
.service-desc { font-size:13px; color:var(--text-secondary); line-height:1.8; font-weight:300; }
.service-tags { margin-top:1.5rem; display:flex; flex-wrap:wrap; gap:6px; }
.tag {
  font-size:10px; letter-spacing:1px; text-transform:uppercase;
  padding:4px 10px; border:1px solid var(--border-color);
  color:var(--text-muted); border-radius:1px;
}

/* ---- Approche ---- */
#approche { background:var(--bg-primary); }
.approach-layout {
  display:grid; grid-template-columns:1fr 1fr;
  gap:5rem; align-items:start; margin-top:3.5rem;
}
.steps { display:flex; flex-direction:column; }
.step {
  display:flex; gap:1.5rem;
  padding:1.5rem 0; border-bottom:1px solid var(--border-color);
}
.step:last-child { border-bottom:none; }
.step-num {
  font-family:'Cormorant Garamond', serif;
  font-size:2rem; font-weight:300; color:var(--gold); line-height:1; min-width:1.8rem;
}
.step-content h4 { color:var(--text-primary); margin-bottom:5px; letter-spacing:0.2px; }
.step-content p { font-size:13px; color:var(--text-secondary); line-height:1.75; font-weight:300; }

.mission-box {
  background:var(--navy); border-radius:3px;
  padding:2.5rem; position:relative; overflow:hidden;
}
[data-theme="dark"] .mission-box { background:#111827; border:1px solid var(--border-color); }
.mission-box::before {
  content:''; position:absolute; top:-50px; right:-50px;
  width:200px; height:200px; border-radius:50%;
  border:1px solid rgba(201,168,76,0.12); pointer-events:none;
}
.mission-sub {
  font-size:11px; letter-spacing:2px; text-transform:uppercase;
  color:rgba(201,168,76,0.7); margin-bottom:1.5rem;
}
.mission-quote {
  font-family:'Cormorant Garamond', serif;
  font-size:1.55rem; font-weight:300;
  color:var(--white); line-height:1.55; margin-bottom:2rem;
}
.mission-quote em { font-style:normal; color:var(--gold); }
.pillars { display:flex; flex-direction:column; gap:11px; }
.pillar {
  display:flex; align-items:center; gap:12px;
  font-size:12px; color:rgba(255,255,255,0.45); letter-spacing:0.4px;
}
.pillar::before { content:''; width:18px; height:1px; background:var(--gold); flex-shrink:0; }
.mission-contact {
  margin-top:2rem; padding-top:1.5rem;
  border-top:1px solid rgba(255,255,255,0.07);
}
.mission-contact p { font-size:12px; color:rgba(255,255,255,0.3); letter-spacing:0.4px; }
.mission-contact p + p { margin-top:3px; font-size:11px; color:rgba(201,168,76,0.45); }

/* ---- Secteurs ---- */
#secteurs { background:var(--navy); }
[data-theme="dark"] #secteurs { background:#080e1e; }
#secteurs h2 { color:var(--white); }
#secteurs .section-intro { color:rgba(255,255,255,0.45); }
.sectors-grid {
  margin-top:3rem;
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:1px; background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.06);
}
.sector-item {
  background:var(--sector-bg); padding:2rem 1.5rem;
  text-align:center; transition:background var(--transition);
  cursor:default;
}
.sector-item:hover { background:rgba(201,168,76,0.07); }
.sector-icon { font-size:1.6rem; margin-bottom:0.75rem; opacity:0.65; }
.sector-name {
  font-size:11px; letter-spacing:1.5px; text-transform:uppercase;
  color:rgba(255,255,255,0.4);
  transition:color var(--transition);
}
.sector-item:hover .sector-name { color:var(--gold); }

/* ---- Contact ---- */
#contact { background:var(--bg-primary); }
.contact-layout {
  display:grid; grid-template-columns:1fr 1.1fr;
  gap:5rem; align-items:start; margin-top:3.5rem;
}
.contact-info h3 { color:var(--text-primary); margin-bottom:1rem; }
.contact-info p { font-size:14px; color:var(--text-secondary); line-height:1.8; font-weight:300; margin-bottom:2rem; }
.contact-details { display:flex; flex-direction:column; gap:1rem; }
.contact-row { display:flex; align-items:center; gap:12px; }
.contact-dot { width:6px; height:6px; border-radius:50%; background:var(--gold); flex-shrink:0; }
.contact-row span { font-size:13px; color:var(--text-secondary); }
.contact-banner {
  margin-top:2.5rem; padding:1.5rem;
  background:var(--navy); border-radius:2px;
}
[data-theme="dark"] .contact-banner { background:#111827; border:1px solid var(--border-color); }
.contact-banner-label {
  font-size:11px; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--gold); margin-bottom:0.75rem;
}
.contact-banner p { font-size:13px; color:rgba(255,255,255,0.45); line-height:1.75; font-weight:300; }

.contact-form {
  background:var(--bg-card); padding:2.5rem;
  border-radius:2px; border:1px solid var(--border-color);
  box-shadow:var(--shadow-card);
}
.form-label-top {
  font-size:11px; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--text-muted); margin-bottom:1.5rem; display:block;
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1rem; }
.form-group { display:flex; flex-direction:column; gap:6px; margin-bottom:1rem; }
.form-group label {
  font-size:11px; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--text-muted); font-weight:400;
}
.form-group input,
.form-group textarea,
.form-group select {
  border:1px solid var(--border-color);
  padding:10px 14px; font-size:13px;
  color:var(--text-primary); background:var(--input-bg);
  border-radius:2px; outline:none;
  transition:border-color var(--transition), background var(--transition);
  resize:none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color:var(--gold); }
.form-group textarea { min-height:100px; }
.btn-submit {
  width:100%; background:var(--navy); color:var(--white);
  padding:13px; font-size:12px; letter-spacing:1.5px;
  text-transform:uppercase; font-weight:400;
  border:none; border-radius:2px;
  transition:background var(--transition);
  margin-top:0.5rem;
}
[data-theme="dark"] .btn-submit { background:var(--gold); color:var(--navy); }
.btn-submit:hover { background:var(--navy-light); }
[data-theme="dark"] .btn-submit:hover { background:var(--gold-light); }
.form-success {
  display:none; text-align:center; padding:2rem;
  color:var(--text-secondary); font-size:14px;
}
.form-success .check { font-size:2rem; color:var(--gold); display:block; margin-bottom:0.5rem; }

/* ---- Signature ---- */
.signature-section { background:var(--bg-secondary); padding:3rem 4rem; border-top:1px solid var(--border-color); }
.signature-inner { max-width:1200px; margin:0 auto; display:flex; justify-content:center; }
.signature-img { max-width:560px; opacity:0.85; border-radius:3px; }
[data-theme="dark"] .signature-img { opacity:0.6; filter:brightness(1.2); }

/* ---- Footer ---- */
footer {
  background:var(--navy); padding:3rem 4rem;
  border-top:1px solid var(--border-subtle);
}
[data-theme="dark"] footer { background:#060c18; }
.footer-inner {
  max-width:1200px; margin:0 auto;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:1.5rem;
}
.footer-brand-name {
  font-family:'Cormorant Garamond', serif;
  font-size:1.1rem; font-weight:600; color:var(--white);
}
.footer-brand-name span { color:var(--gold); }
.footer-tagline {
  font-size:11px; letter-spacing:1px; text-transform:uppercase;
  color:rgba(255,255,255,0.25); margin-top:5px;
}
.footer-links { display:flex; gap:1.5rem; flex-wrap:wrap; }
.footer-links a { font-size:12px; color:rgba(255,255,255,0.3); transition:color var(--transition); }
.footer-links a:hover { color:var(--gold); }
.footer-copy { font-size:11px; color:rgba(255,255,255,0.2); text-align:right; }
.footer-copy div + div { margin-top:3px; font-size:10px; color:rgba(255,255,255,0.12); }

/* ---- Scroll reveal ---- */
.reveal { opacity:0; transform:translateY(28px); transition:opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity:1; transform:none; }
.reveal-delay-1 { transition-delay:0.1s; }
.reveal-delay-2 { transition-delay:0.2s; }
.reveal-delay-3 { transition-delay:0.3s; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--gold-dim); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:var(--gold); }

/* ============================================
   RESPONSIVE — TABLETTE (≤ 900px)
   ============================================ */
@media (max-width:900px) {
  nav { padding:0 1.5rem; }
  .nav-links { display:none; }
  .nav-cta { display:none; }
  .hamburger { display:flex; }

  section { padding:4rem 1.5rem; }
  .hero-content { padding:3rem 1.5rem; }
  .hero-stats { position:static; flex-direction:row; justify-content:flex-start; gap:2rem; padding:0 1.5rem 2.5rem; }
  .stat { text-align:left; }

  .services-grid { grid-template-columns:repeat(2,1fr); }
  .approach-layout { grid-template-columns:1fr; gap:2.5rem; }
  .sectors-grid { grid-template-columns:repeat(2,1fr); }
  .contact-layout { grid-template-columns:1fr; gap:2.5rem; }
  .footer-inner { flex-direction:column; align-items:flex-start; gap:1.5rem; }
  .footer-copy { text-align:left; }
  .signature-img { max-width:100%; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================ */
@media (max-width:600px) {
  h1 { font-size:2.4rem; }
  h2 { font-size:1.8rem; }
  .hero-circle { display:none; }
  .services-grid { grid-template-columns:1fr; }
  .sectors-grid { grid-template-columns:repeat(2,1fr); }
  .form-row { grid-template-columns:1fr; }
  .hero-stats { gap:1.5rem; }
  .stat-num { font-size:1.8rem; }
  .hero-actions { flex-direction:column; align-items:flex-start; }
  .mission-quote { font-size:1.3rem; }
  section { padding:3.5rem 1.25rem; }
  .hero-content { padding:2rem 1.25rem; }
  footer { padding:2rem 1.25rem; }
  .signature-section { padding:2.5rem 1.25rem; }
}
