/* ===== Variables & base ===== */
:root {
  --primary: #0f62fe;
  --primary-dark: #0043ce;
  --navy: #0b1526;
  --navy-2: #101d33;
  --text: #1f2937;
  --text-light: #5b6b7f;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e3e9f1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 21, 38, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

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

.accent {
  background: linear-gradient(90deg, var(--primary), #3ddbd9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 10px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-small { padding: 9px 18px; font-size: 0.88rem; }
.btn-full { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(11,21,38,0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.logo-text { font-size: 1.15rem; font-weight: 500; color: var(--navy); }
.logo-text strong { font-weight: 800; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.nav a:not(.btn):hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 150px 0 90px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(15, 98, 254, 0.10), transparent),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(61, 219, 217, 0.10), transparent),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge, .section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(15, 98, 254, 0.08);
  border: 1px solid rgba(15, 98, 254, 0.2);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-sub {
  margin: 20px 0 28px;
  font-size: 1.08rem;
  color: var(--text-light);
  max-width: 540px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-points {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.hero-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 28px;
  color: #dbe4f0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.92rem;
}
.hero-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  background: var(--navy-2);
  padding: 12px 16px;
  border-radius: 10px;
}
.hero-card-row strong { color: #fff; font-weight: 600; font-size: 0.85rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: #42be65; box-shadow: 0 0 8px rgba(66, 190, 101, 0.8); }
.dot-blue { background: #4589ff; box-shadow: 0 0 8px rgba(69, 137, 255, 0.8); }

.progress { height: 7px; background: var(--navy-2); border-radius: 99px; overflow: hidden; }
.progress-bar {
  width: 78%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #3ddbd9);
  animation: fill 1.6s ease-out;
}
@keyframes fill { from { width: 0; } }

/* ===== Stats ===== */
.stats {
  background: linear-gradient(135deg, var(--navy), #14243f);
  padding: 55px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat p { color: #9fb1c9; font-size: 0.92rem; margin-top: 4px; }
.stat h4 { color: #fff; font-size: 1.1rem; margin-top: 10px; }
.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  font-size: 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 55px; }
.section-sub { color: var(--text-light); margin-top: 14px; }

/* ===== Cards services ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(15, 98, 254, 0.35);
}
.card-icon {
  font-size: 1.6rem;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: rgba(15, 98, 254, 0.08);
  border-radius: 12px;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.93rem; color: var(--text-light); }

/* ===== À propos ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p { color: var(--text-light); margin-bottom: 16px; }
.about-text h2 { margin-bottom: 20px; }
.about-list { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.about-list li { padding-left: 22px; position: relative; color: var(--text-light); }
.about-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.about-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.about-panel h4 { margin-bottom: 22px; font-size: 1.05rem; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; font-size: 0.92rem; color: var(--text-light); }
.steps li strong { color: var(--navy); }
.steps li span {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #3ddbd9);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===== Partenaires ===== */
.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.partners span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 14px 30px;
  border-radius: 12px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.partners span:hover {
  color: var(--primary);
  border-color: rgba(15, 98, 254, 0.35);
  transform: translateY(-3px);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 14px; }
.contact-info > p { color: var(--text-light); }
.contact-list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; color: var(--text); font-size: 0.97rem; }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.12);
}
.form-error {
  margin-top: 14px;
  color: #da1e28;
  font-weight: 600;
  font-size: 0.93rem;
  text-align: center;
}
.form-error a { text-decoration: underline; }
.form-success {
  margin-top: 14px;
  color: #198038;
  font-weight: 600;
  font-size: 0.93rem;
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: #9fb1c9;
  padding: 55px 0 0;
}
.footer .logo-text { color: #fff; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 35px;
}
.footer-desc { margin-top: 14px; font-size: 0.92rem; max-width: 340px; }
.footer-links { display: flex; gap: 26px; font-size: 0.93rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 0.85rem;
  text-align: center;
}

/* ===== Page Ecosystem Partners ===== */
.nav a.nav-active { color: var(--primary); font-weight: 600; }

.page-hero {
  padding: 140px 0 60px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(15, 98, 254, 0.10), transparent),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(61, 219, 217, 0.10), transparent),
    var(--bg);
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero-sub {
  margin: 18px auto 0;
  max-width: 640px;
  color: var(--text-light);
  font-size: 1.05rem;
}

.partner-card { display: flex; flex-direction: column; align-items: flex-start; }
.partner-card p { flex: 1; }
.partner-cards-4 { grid-template-columns: repeat(4, 1fr); }

.partner-badge {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #3ddbd9);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 18px;
}

.partner-link {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s;
}
.partner-link:hover { color: var(--primary-dark); text-decoration: underline; }

@media (max-width: 900px) {
  .partner-cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .partner-cards-4 { grid-template-columns: 1fr; }
}

/* ===== Animations reveal (uniquement si JS actif) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 130px; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
    gap: 16px;
    display: none;
    box-shadow: 0 12px 24px rgba(11, 21, 38, 0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 4px 0; }
  .nav .btn { text-align: center; }
}
