/* ==========================================================
   EBK GROUP INVEST — style.css
   Couleurs inspirées du logo : bleu marine profond + or
   ========================================================== */

:root {
  --navy: #0d2c5c;
  --navy-dark: #081c3d;
  --navy-light: #1a4a8f;
  --gold: #d4af37;
  --gold-light: #f2d675;
  --gold-dark: #a9812a;
  --white: #ffffff;
  --off-white: #f7f8fb;
  --gray: #6b7280;
  --shadow: 0 10px 30px rgba(13, 44, 92, 0.15);
  --transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Poppins', Arial, sans-serif;
  color: #1c2b47;
  background: var(--off-white);
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Curseur personnalisé ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  transition: transform 0.1s ease;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 2px solid var(--navy-light);
  opacity: 0.7;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.08s linear;
}
.cursor-ring.hovered {
  width: 55px; height: 55px;
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
}
@media (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ---------- Fond animé ---------- */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 45%, var(--navy-light) 100%);
  overflow: hidden;
}
.bg-animated::before,
.bg-animated::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: floatBlob 18s ease-in-out infinite;
}
.bg-animated::before {
  width: 500px; height: 500px;
  background: var(--gold);
  top: -100px; left: -100px;
}
.bg-animated::after {
  width: 400px; height: 400px;
  background: var(--navy-light);
  bottom: -100px; right: -50px;
  animation-delay: -9s;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.15); }
  66% { transform: translate(-40px, 60px) scale(0.9); }
}
.bg-skyline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background-repeat: repeat-x;
  background-size: 600px 220px;
  opacity: 0.12;
  animation: skylineDrift 40s linear infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='220' viewBox='0 0 600 220'%3E%3Cg fill='%23d4af37'%3E%3Crect x='10' y='80' width='40' height='140'/%3E%3Crect x='60' y='40' width='50' height='180'/%3E%3Crect x='120' y='100' width='35' height='120'/%3E%3Crect x='170' y='20' width='45' height='200'/%3E%3Crect x='230' y='70' width='40' height='150'/%3E%3Crect x='280' y='0' width='50' height='220'/%3E%3Crect x='340' y='90' width='35' height='130'/%3E%3Crect x='390' y='50' width='45' height='170'/%3E%3Crect x='450' y='110' width='40' height='110'/%3E%3Crect x='500' y='30' width='50' height='190'/%3E%3Crect x='560' y='85' width='35' height='135'/%3E%3C/g%3E%3C/svg%3E");
}
@keyframes skylineDrift {
  from { background-position-x: 0; }
  to { background-position-x: -600px; }
}

/* Particules dorées flottantes */
.particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.particle {
  position: absolute;
  bottom: -10px;
  width: 6px; height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  opacity: 0.6;
  animation: rise linear infinite;
}
@keyframes rise {
  to { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}

/* ---------- Header / Navigation ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  background: rgba(8, 28, 61, 0.55);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  border-bottom: 1px solid rgba(212,175,55,0.15);
}
header.scrolled {
  background: rgba(8, 28, 61, 0.92);
  box-shadow: var(--shadow);
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { height: 54px; transition: var(--transition); }
.logo-wrap:hover img { transform: rotate(-4deg) scale(1.05); }
.logo-wrap span {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

nav ul { display: flex; gap: 6px; }
nav a {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 30px;
  transition: var(--transition);
}
nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: var(--transition);
  transform: translateX(-50%);
}
nav a:hover, nav a.active {
  color: var(--gold-light);
}
nav a:hover::after, nav a.active::after { width: 60%; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1100; }
.burger span { width: 26px; height: 2px; background: var(--gold-light); transition: var(--transition); }

@media (max-width: 900px) {
  .burger { display: flex; }
  nav {
    position: fixed;
    top: 0; right: -100%;
    width: 70%; height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 100px 30px;
    transition: right 0.4s ease;
  }
  nav.open { right: 0; }
  nav ul { flex-direction: column; gap: 10px; }
}

/* ---------- Sections communes ---------- */
section { padding: 110px 8% 90px; position: relative; }
.section-white { background: var(--white); }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title .tag {
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.section-title h2 {
  font-size: 2.4rem;
  color: var(--navy);
  margin-top: 8px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 70px; height: 3px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 3px;
}
.section-title p { color: var(--gray); margin-top: 14px; max-width: 600px; margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.btn {
  display: inline-block;
  padding: 13px 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-dark);
  font-weight: 700;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 18px rgba(212,175,55,0.35);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(212,175,55,0.5); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-light);
  box-shadow: none;
}
.btn-outline:hover { background: var(--gold); color: var(--navy-dark); }

/* ---------- Hero / Accueil ---------- */
#accueil {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  color: var(--white);
  position: relative;
}
.hero-content { max-width: 700px; }
.hero-content .tag {
  color: var(--gold-light);
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.hero-content h1 {
  font-size: 3.4rem;
  margin: 18px 0 20px;
  line-height: 1.15;
}
.hero-content h1 span { color: var(--gold-light); }
.hero-content p { font-size: 1.1rem; color: #d9e2f2; margin-bottom: 34px; max-width: 560px; }
.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--gold-light); animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translate(-50%,0);} 50%{transform:translate(-50%,10px);} }

/* ---------- À propos ---------- */
.apropos-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.apropos-logo-box {
  background: var(--navy);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.apropos-logo-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(212,175,55,0.25), transparent 60%);
}
.apropos-logo-box img { position: relative; z-index: 1; max-width: 260px; margin: 0 auto; }
.apropos-text h3 { color: var(--navy); font-size: 1.6rem; margin-bottom: 16px; }
.apropos-text p { color: var(--gray); line-height: 1.8; margin-bottom: 20px; }
.apropos-stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.apropos-stats div { text-align: center; }
.apropos-stats strong { display: block; font-size: 2rem; color: var(--gold-dark); }
.apropos-stats span { color: var(--gray); font-size: 0.9rem; }

@media (max-width: 900px) { .apropos-grid { grid-template-columns: 1fr; } }

/* ---------- Nos groupes ---------- */
.groupes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.groupe-card {
  background: var(--white);
  border-radius: 18px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #eef0f5;
}
.groupe-card:hover { transform: translateY(-10px); border-color: var(--gold); }
.groupe-card .logo-circle {
  width: 90px; height: 90px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 3px solid var(--gold-light);
}
.groupe-card .logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.groupe-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.2rem; }
.groupe-card p { color: var(--gray); font-size: 0.92rem; margin-bottom: 18px; min-height: 44px; }
.groupe-card .links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.groupe-card .links a { font-size: 0.85rem; padding: 8px 16px; border-radius: 20px; }
.link-site { background: var(--navy); color: var(--white); }
.link-site:hover { background: var(--navy-light); }
.link-article { border: 1.5px solid var(--gold-dark); color: var(--gold-dark); }
.link-article:hover { background: var(--gold-dark); color: var(--white); }

/* ---------- Engagements ---------- */
.engagements-wrap {
  background: var(--navy);
  border-radius: 24px;
  padding: 60px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.engagements-wrap::after {
  content: ''; position: absolute; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,175,55,0.25), transparent 70%);
  top: -80px; right: -80px;
}
.engagements-wrap p { color: #d9e2f2; line-height: 1.9; font-size: 1.05rem; position: relative; z-index: 1; }
.engagements-list { display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.engagement-item { display: flex; gap: 16px; align-items: flex-start; }
.engagement-item .num {
  min-width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); color: var(--navy-dark); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 900px) { .engagements-wrap { grid-template-columns: 1fr; padding: 36px 24px; } }

/* ---------- Projets / Actualités (cards) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #eef0f5;
}
.card:hover { transform: translateY(-8px); }
.card .img-wrap { height: 220px; overflow: hidden; position: relative; }
.card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .img-wrap img { transform: scale(1.12); }
.card .badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--navy-dark);
  padding: 5px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}
.card-body { padding: 24px; }
.card-body .date { color: var(--gold-dark); font-size: 0.8rem; font-weight: 600; }
.card-body h3 { color: var(--navy); margin: 10px 0; font-size: 1.2rem; }
.card-body p { color: var(--gray); font-size: 0.92rem; margin-bottom: 18px; }
.card-body a.lire { color: var(--navy); font-weight: 700; font-size: 0.9rem; }
.card-body a.lire span { color: var(--gold-dark); margin-left: 4px; transition: var(--transition); display: inline-block; }
.card-body a.lire:hover span { transform: translateX(6px); }

/* ---------- Galerie ---------- */
.galerie-grid {
  columns: 4 260px;
  column-gap: 18px;
}
.galerie-grid figure {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.galerie-grid img { width: 100%; display: block; transition: var(--transition); }
.galerie-grid figure:hover img { transform: scale(1.08); }
.galerie-grid figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(8,28,61,0.85));
  color: var(--white); padding: 30px 14px 12px;
  font-size: 0.85rem; font-weight: 600;
  opacity: 0; transition: var(--transition);
}
.galerie-grid figure:hover figcaption { opacity: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info .item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info h4 { color: var(--navy); margin-bottom: 4px; }
.contact-info p, .contact-info a { color: var(--gray); }
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: white; padding: 14px 26px;
  border-radius: 30px; font-weight: 700; margin-top: 10px;
  width: fit-content; transition: var(--transition);
}
.whatsapp-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(37,211,102,0.4); }

.contact-form { background: var(--white); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid #e2e6ee; border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,0.15); }
.form-msg { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; }
.form-msg.success { background: #e5f9ee; color: #1a7f4b; }
.form-msg.error { background: #fdeaea; color: #c0392b; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: #b9c4dc;
  padding: 60px 8% 24px;
  text-align: center;
}
footer .logo-wrap { justify-content: center; margin-bottom: 20px; }
footer .fsocial { display: flex; justify-content: center; gap: 14px; margin: 20px 0; }
footer .fsocial a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
footer .fsocial a:hover { background: var(--gold); color: var(--navy-dark); }
footer .fbottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }

/* ---------- Page article (détail projet/actualité) ---------- */
.article-hero {
  height: 55vh; min-height: 380px; position: relative;
  display: flex; align-items: flex-end;
  color: white; padding: 60px 8%;
}
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.article-hero::before { content:''; position:absolute; inset:0; background: linear-gradient(transparent, rgba(8,28,61,0.9)); z-index: -1; }
.article-hero h1 { font-size: 2.4rem; max-width: 800px; }
.article-body { max-width: 800px; margin: 0 auto; padding: 70px 6%; line-height: 1.9; color: #33415e; }
.article-body p { margin-bottom: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; margin-bottom: 30px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
