/* ===== VARIABLES ===== */
:root {
  --navy: #0d2a52;
  --navy-light: #1b3f73;
  --navy-deep: #081d3a;
  --orange: #f7941d;
  --orange-light: #ffb15c;
  --teal: #13b89c;
  --blue-accent: #4aa3d8;
  --gray-bg: #f6f8fb;
  --text: #2f3947;
  --text-light: #546070;
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

section {
  padding: 80px 0;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== KEYFRAMES ===== */
@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%       { transform: translate(0, -22px) rotate(6deg); }
}

@keyframes floatSlower {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%       { transform: translate(14px, 16px) rotate(-5deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(13, 42, 82, 0.08);
  transition: box-shadow 0.3s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
}

.logo-img {
  height: 58px;
  width: auto;
  transition: transform 0.35s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s cubic-bezier(.22,.61,.36,1);
}

nav a:hover,
nav a.nav-active {
  color: var(--orange);
}

nav a:hover::after,
nav a.nav-active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s;
}

.nav-toggle:hover {
  color: var(--orange);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-light) 100%);
  background-size: 200% 200%;
  animation: gradientMove 16s ease infinite;
  color: #fff;
  padding: 120px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,148,29,0.25) 0%, transparent 70%);
  animation: floatSlow 13s ease-in-out infinite;
}

.hero::before {
  content: "";
  position: absolute;
  left: -90px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19,184,156,0.22) 0%, transparent 70%);
  animation: floatSlower 17s ease-in-out infinite;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 18px;
  line-height: 1.25;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.25s forwards;
}

.hero h1 span {
  color: var(--orange);
}

.hero p {
  font-size: 1.1rem;
  color: #cfdcef;
  margin-bottom: 32px;
  max-width: 560px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.55s forwards;
}

/* ===== HERO STATS ===== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  padding-top: 36px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.55s forwards;
}

.hero-stat {
  text-align: center;
  padding: 22px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-num .stat-suffix {
  color: var(--orange);
  font-size: 1.4rem;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(.22,.61,.36,1);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(247,148,29,0.0);
}

.btn-primary:hover {
  background: #e2840f;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(247,148,29,0.35);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

.btn-full {
  width: 100%;
  text-align: center;
}


/* ===== SECTION HEADERS ===== */
.section-eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.1rem;
  margin-bottom: 18px;
}

.section-intro {
  color: var(--text-light);
  max-width: 720px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===== SCROLL MARGIN (sticky header offset) ===== */
section[id] {
  scroll-margin-top: 80px;
}

/* ===== A PROPOS ===== */
.about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text-light);
}

.quote-box {
  background: var(--gray-bg);
  border-left: 4px solid var(--orange);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  font-style: italic;
  color: var(--navy);
  font-weight: 600;
  margin-top: 24px;
}

.mission-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.mission-box::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19,184,156,0.25) 0%, transparent 70%);
}

.mission-box h3 {
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.mission-box p {
  color: #dce6f4;
  position: relative;
  z-index: 1;
}

.engagement-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.engagement-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--gray-bg);
  padding: 16px 18px;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.engagement-item:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 16px rgba(13, 42, 82, 0.08);
}

.engagement-item i {
  color: var(--orange);
  font-size: 1.2rem;
  margin-top: 2px;
}

.engagement-item:nth-child(2) i { color: var(--teal); }
.engagement-item:nth-child(3) i { color: var(--blue-accent); }

.engagement-item span {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== EXPERTISES ===== */
.expertise {
  background: var(--gray-bg);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.expertise-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 4px 18px rgba(13, 42, 82, 0.06);
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1), box-shadow 0.3s ease;
  border-top: 4px solid var(--orange);
}

.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(13, 42, 82, 0.13);
}

.expertise-card:nth-child(2),
.expertise-card:nth-child(5) {
  border-top-color: var(--teal);
}

.expertise-card:nth-child(3),
.expertise-card:nth-child(6) {
  border-top-color: var(--blue-accent);
}

.expertise-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
}

.expertise-card:nth-child(2) .expertise-icon,
.expertise-card:nth-child(5) .expertise-icon {
  color: var(--teal);
}

.expertise-card:nth-child(3) .expertise-icon,
.expertise-card:nth-child(6) .expertise-icon {
  color: var(--blue-accent);
}

.expertise-card:hover .expertise-icon {
  transform: rotate(-8deg) scale(1.08);
}

.expertise-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.expertise-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.expertise-card ul {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-light);
}

.expertise-card ul li {
  padding: 4px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.expertise-card ul li i {
  color: var(--blue-accent);
  margin-top: 4px;
  font-size: 0.7rem;
}

/* ===== METHODOLOGIE ===== */
.method {
  background: #fff;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.method-step {
  text-align: center;
  padding: 28px 16px;
  border-radius: 14px;
  background: var(--gray-bg);
  position: relative;
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1), box-shadow 0.3s ease, background 0.3s ease;
}

.method-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(13, 42, 82, 0.1);
  background: #fff;
}

.method-step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.1rem;
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
}

.method-step:nth-child(2) .num { background: var(--teal); }
.method-step:nth-child(3) .num { background: var(--blue-accent); }
.method-step:nth-child(4) .num { background: var(--navy-light); }

.method-step:hover .num {
  transform: scale(1.12) rotate(-6deg);
}

.method-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.method-step p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== REFERENCES ===== */
.references {
  background: var(--gray-bg);
}

.ref-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.ref-tab {
  padding: 10px 20px;
  border-radius: 30px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid #dde6f0;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  line-height: 1;
}

.ref-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.ref-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.ref-tab.active:hover {
  color: #fff;
  transform: none;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ref-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 4px 18px rgba(13, 42, 82, 0.06);
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1), box-shadow 0.35s ease;
}

.ref-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(13, 42, 82, 0.12);
}

.ref-card.hidden {
  display: none;
}

.ref-card .ref-domain {
  display: inline-block;
  background: rgba(247, 148, 29, 0.12);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.ref-card h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.ref-card .ref-location {
  color: var(--blue-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ref-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--navy);
  color: #fff;
}

.contact .section-title {
  color: #fff;
}

.contact .section-eyebrow {
  color: var(--orange);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-intro {
  color: #bfd0e8;
  margin-bottom: 8px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: #bfd0e8;
  font-size: 0.92rem;
}

.contact-form {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  color: var(--text);
}

.contact-form h3 {
  margin-bottom: 18px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dde6f0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--gray-bg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.12);
  background: #fff;
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 10px;
  text-align: center;
}

.form-success,
.form-error {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.form-success {
  background: rgba(19, 184, 156, 0.12);
  color: #0d8c77;
}

.form-error {
  background: rgba(220, 53, 69, 0.1);
  color: #c0392b;
}

.form-success.show,
.form-error.show {
  display: block;
}

.botcheck-hidden {
  display: none;
}

/* ===== FOOTER ===== */
footer {
  background: #08213f;
  color: #9fb3cc;
  padding: 40px 0;
  text-align: center;
  font-size: 0.85rem;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: #cfdcef;
  font-weight: 600;
  transition: color 0.2s;
}

footer .footer-links a:hover {
  color: var(--orange);
}

footer .social {
  margin-bottom: 16px;
}

footer .social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 4px;
  font-size: 1rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

footer .social a:hover {
  background: var(--orange);
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1050px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat:nth-child(2) {
    border-right: none;
  }

  .hero-stat:nth-child(1),
  .hero-stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

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

  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ref-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 680px) {
  .nav-toggle {
    display: block;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 0 24px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: max-height 0.35s cubic-bezier(.22,.61,.36,1), opacity 0.25s ease, padding 0.35s ease;
  }

  nav ul.open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    padding: 16px 24px;
  }

  nav ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f3f8;
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 56px 0;
  }
}
