/* Ivoire Providence — Design system */
:root {
  --navy: #0b1f3a;
  --navy-deep: #061426;
  --navy-mid: #143056;
  --blue: #1e5a9a;
  --blue-bright: #2a6fb5;
  --orange: #f15a22;
  --orange-hot: #ff6a33;
  --cream: #f7f4ef;
  --ink: #0b1f3a;
  --muted: #5a6b7d;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(6, 20, 38, 0.18);
  --header-h: 78px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--orange);
  color: white;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(30, 90, 154, 0.1);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow--light {
  background: rgba(255, 255, 255, 0.12);
  color: #cfe0f5;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 20, 38, 0.45), transparent);
  opacity: 1;
  transition: opacity 0.35s;
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(6, 20, 38, 0.08);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  padding: 0.35rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(6, 20, 38, 0.12);
  transition: box-shadow 0.3s;
}

.site-header.is-scrolled .brand {
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.brand-logo {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}

.site-header.is-scrolled .nav-menu a {
  color: var(--navy);
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .nav-menu a:hover {
  background: rgba(11, 31, 58, 0.06);
}

.nav-cta {
  background: var(--orange) !important;
  color: white !important;
  margin-left: 0.35rem;
}

.nav-cta:hover {
  background: var(--orange-hot) !important;
}

.site-header.is-scrolled .nav-cta {
  background: var(--navy) !important;
}

.site-header.is-scrolled .nav-cta:hover {
  background: var(--orange) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: white;
  transition: transform 0.3s var(--ease), opacity 0.3s, background 0.3s;
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--navy);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 12px 28px rgba(241, 90, 34, 0.35);
}

.btn-primary:hover {
  background: var(--orange-hot);
}

.btn-secondary {
  background: var(--navy);
  color: white;
}

.btn-secondary:hover {
  background: var(--navy-mid);
}

.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(6, 20, 38, 0.88) 0%, rgba(6, 20, 38, 0.55) 48%, rgba(241, 90, 34, 0.28) 100%),
    linear-gradient(to top, rgba(6, 20, 38, 0.75) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 4rem) 0 6.5rem;
  max-width: 760px;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: min(100% - 2.5rem, 760px);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.4rem);
  font-weight: 800;
  max-width: 14ch;
  margin-bottom: 1.15rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 38ch;
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.6s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  opacity: 0;
  animation: rise 0.9s var(--ease) 1s forwards, bounce 2s ease-in-out 1.8s infinite;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* À propos */
.apropos {
  padding: 6.5rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(241, 90, 34, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(30, 90, 154, 0.1), transparent),
    var(--cream);
}

.apropos-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
}

.apropos h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.85rem);
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.apropos-copy p:last-child {
  color: var(--muted);
  max-width: 48ch;
  font-size: 1.05rem;
}

.apropos-stats {
  display: grid;
  gap: 1rem;
}

.stat {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: white;
  border: 1px solid rgba(11, 31, 58, 0.06);
  box-shadow: 0 10px 30px rgba(6, 20, 38, 0.04);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.stat span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

/* Activités */
.activites {
  padding: 2rem 0 6.5rem;
  background: white;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--navy);
  margin-bottom: 0.9rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.service {
  position: relative;
  min-height: 210px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem 1.4rem;
  color: white;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.service--wide {
  grid-column: span 2;
}

.service img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.7s var(--ease);
}

.service-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: opacity 0.4s;
}

.service--navy .service-overlay {
  background: linear-gradient(160deg, rgba(11, 31, 58, 0.55), rgba(11, 31, 58, 0.92));
}

.service--blue .service-overlay {
  background: linear-gradient(160deg, rgba(30, 90, 154, 0.5), rgba(20, 70, 120, 0.92));
}

.service--orange .service-overlay {
  background: linear-gradient(160deg, rgba(241, 90, 34, 0.55), rgba(200, 60, 15, 0.92));
}

.service h3 {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
  position: relative;
}

.service p {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  max-width: 32ch;
  opacity: 0;
  max-height: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), max-height 0.35s;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service:hover img {
  transform: scale(1.08);
}

.service:hover p {
  opacity: 1;
  max-height: 6rem;
  transform: translateY(0);
}

.service:hover .service-overlay {
  opacity: 0.95;
}

/* Approche */
.approche {
  position: relative;
  padding: 6.5rem 0;
  color: white;
  overflow: hidden;
}

.approche-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #163a62 100%);
}

.approche-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(241, 90, 34, 0.28), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(42, 111, 181, 0.25), transparent 35%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(255, 255, 255, 0.015) 48px,
      rgba(255, 255, 255, 0.015) 49px
    );
}

.approche-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.approche h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  margin-bottom: 1.1rem;
  max-width: 16ch;
}

.approche-copy > p:last-child {
  color: rgba(255, 255, 255, 0.75);
  max-width: 42ch;
}

.approche-list {
  display: grid;
  gap: 1rem;
}

.approche-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: background 0.3s, transform 0.3s var(--ease);
}

.approche-list li:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(6px);
}

.step {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--orange);
  line-height: 1.2;
}

.approche-list h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.approche-list p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

/* Contact */
.contact {
  padding: 6.5rem 0;
  background:
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.85rem);
  margin-bottom: 1rem;
  max-width: 14ch;
}

.contact-copy > p:nth-of-type(2) {
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 40ch;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-card {
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem 2.1rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 90, 34, 0.45), transparent 70%);
  pointer-events: none;
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 1.4rem;
  position: relative;
}

.contact-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.contact-card dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.contact-card a:hover {
  color: var(--orange-hot);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: white;
  border-radius: 10px;
}

.footer-brand p,
.footer-meta p {
  margin: 0;
  font-size: 0.88rem;
}

.footer-meta {
  text-align: right;
}

.footer-meta p + p {
  margin-top: 0.25rem;
  opacity: 0.7;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.06s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .apropos-grid,
  .approche-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service--wide {
    grid-column: span 2;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }

  .brand-logo {
    height: 42px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 1rem auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }

  .nav-menu a,
  .site-header.is-scrolled .nav-menu a {
    color: var(--navy);
  }

  .nav-menu a:hover,
  .site-header.is-scrolled .nav-menu a:hover {
    background: rgba(11, 31, 58, 0.06);
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 0.9rem 1rem;
  }

  .nav-cta {
    margin-left: 0;
    justify-content: center;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
  }

  .site-header::before {
    opacity: 0;
  }

  .nav-toggle span,
  .site-header.is-scrolled .nav-toggle span {
    background: var(--navy);
  }

  .brand {
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .hero-content {
    padding-bottom: 5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service,
  .service--wide {
    grid-column: span 1;
    min-height: 190px;
  }

  .service p {
    opacity: 1;
    max-height: none;
    transform: none;
  }

  .hero-scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-img {
    transform: none;
  }
}
