:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #edf2f8;
  --text: #1b2533;
  --muted: #5b6777;
  --primary: #1459a6;
  --primary-2: #0b3c74;
  --border: #d7e0ea;
  --shadow: 0 14px 30px rgba(20, 47, 78, 0.11);
}

html {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(37, 45, 56, 0.97);
  border-bottom: 1px solid #4e5b6d;
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: #f4f8ff;
}

.brand-name {
  font-family: "Agency FB", "Bahnschrift", "Segoe UI", "Inter", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.45px;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #d3d9e2;
  line-height: 1.2;
}

nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

nav a {
  font-weight: 500;
  color: #e7ebf1;
}

nav a:hover {
  color: #ffffff;
}

nav a.active {
  color: #2fbe5f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #8f9bac;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  color: #fff;
}

.hero {
  padding: 70px 0 50px;
}

.hero-home {
  background:
    linear-gradient(rgba(112, 72, 24, 1), rgba(112, 72, 24, 1)),
    url("image/003.jpg") center / cover no-repeat;
  background-blend-mode: multiply;
}

.hero-home .kicker,
.hero-home h1,
.hero-home .lead {
  color: #000;
}

.hero-home h1 {
  color: #f5f9ff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.92),
    0 4px 18px rgba(0, 0, 0, 0.78),
    0 8px 36px rgba(0, 0, 0, 0.58);
}

.hero-home .lead {
  color: #000;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.68), 0 6px 30px rgba(0, 0, 0, 0.58);
}

.hero-title {
  font-family: "Agency FB", "Bahnschrift", "Segoe UI", "Inter", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  letter-spacing: 2.2px;
  text-shadow: 0 0 44px rgba(173, 214, 255, 0.9), 0 0 78px rgba(90, 175, 255, 0.82), 0 0 120px rgba(36, 128, 255, 0.72);
}

.home-page main {
  position: relative;
  overflow: hidden;
  background: #1d1208;
}

.home-page main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("image/003.jpg") center / cover no-repeat;
  filter: sepia(0.32) saturate(1.05) brightness(0.88) contrast(0.96);
  z-index: 0;
}

.home-page main > * {
  position: relative;
  z-index: 1;
}

.home-page .hero-home {
  background: transparent;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.home-page .hero-grid {
  grid-template-columns: 1fr;
  justify-items: center;
}

.home-page .hero-content {
  max-width: 760px;
  text-align: center;
}

.home-page .hero-cta {
  justify-content: center;
  margin-top: 5cm;
}

.home-page .hero-cta .btn-primary {
  background: linear-gradient(
    135deg,
    rgba(31, 111, 209, 0.88),
    rgba(46, 139, 255, 0.88) 55%,
    rgba(106, 183, 255, 0.88)
  );
  border-color: rgba(78, 149, 224, 0.9);
}

.home-page .hero-cta .btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(31, 143, 72, 0.88),
    rgba(47, 190, 95, 0.88) 55%,
    rgba(123, 229, 156, 0.88)
  );
  color: #2f2f2f;
  border-color: transparent;
  box-shadow: 0 0 26px rgba(47, 190, 95, 0.72), 0 0 52px rgba(47, 190, 95, 0.45);
}

.home-page .hero-cta .btn-primary:focus-visible,
.home-page .hero-cta .btn-primary:active {
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.home-page .hero-cta .btn {
  border-radius: 16px;
}

.home-page .hero-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.78);
}

.contact-page main {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(13, 36, 61, 0.52), rgba(13, 36, 61, 0.52)),
    url("image/image 05.jpg") center / cover no-repeat;
}

.contact-page main::before,
.contact-page main::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 54px;
  height: 120px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.35);
  z-index: 0;
}

.contact-page main::before {
  left: 0;
  top: 0;
  transform: none;
  width: 140px;
  height: 100%;
  background: #252d38;
  clip-path: polygon(0 0, 100% 72%, 0 100%);
}

.contact-page main::after {
  right: 0;
  top: 0;
  transform: none;
  width: 140px;
  height: 100%;
  background: #252d38;
  clip-path: polygon(100% 0, 0 28%, 100% 100%);
}

.contact-page main > * {
  position: relative;
  z-index: 1;
}

.contact-page .page-hero h1 {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.88), 0 2px 10px rgba(0, 0, 0, 0.65), 0 4px 18px rgba(0, 0, 0, 0.45);
}

.contact-page .footer {
  font-family: "Agency FB", "Bahnschrift", "Segoe UI", Arial, sans-serif;
}

.services-page .footer {
  font-family: "Agency FB", "Bahnschrift", "Segoe UI", Arial, sans-serif;
  padding: 14px 0;
}

.projets-page .footer {
  font-family: "Agency FB", "Bahnschrift", "Segoe UI", Arial, sans-serif;
}

.projets-page main {
  background:
    linear-gradient(rgba(13, 36, 61, 0.42), rgba(13, 36, 61, 0.42)),
    url("image/001.jpg") center / cover no-repeat;
}

.projets-page .page-hero h1,
.projets-page .page-hero .lead {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.88), 0 2px 10px rgba(0, 0, 0, 0.65), 0 4px 18px rgba(0, 0, 0, 0.45);
}

.projets-page main > section.section h2 {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.88), 0 2px 10px rgba(0, 0, 0, 0.65), 0 4px 18px rgba(0, 0, 0, 0.45);
}

.projets-page .page-hero {
  position: relative;
  overflow: hidden;
}

.projets-page main > section.section {
  position: relative;
}

.projets-page main > section.section::before {
  content: "";
  position: fixed;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: min(320px, 28vw);
  height: min(320px, 28vw);
  background: url("image/g35.png") center / contain no-repeat;
  z-index: 0;
  pointer-events: none;
}

.projets-page main > section.section .container {
  position: relative;
  z-index: 1;
}

.projets-page .page-hero .container {
  position: relative;
  z-index: 1;
}

.projets-page .page-hero .project-card {
  max-width: min(1040px, 100%);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Encadré sous le titre de page (h1) : bleu */
.projets-page .page-hero .hero-card {
  background: linear-gradient(145deg, rgba(22, 64, 112, 0.74), rgba(28, 92, 158, 0.68));
  color: #fff;
}

/* Cartes sous « Une expertise opérationnelle » : gris clair */
.projets-page .card-overlay {
  background: linear-gradient(155deg, rgba(198, 192, 186, 0.55), rgba(212, 206, 200, 0.48));
  backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.42);
  color: #3a3632;
}

.projets-page .card-overlay h3 {
  color: #2a2622;
}

.projets-page .card-overlay .card-lead,
.projets-page .card-overlay li {
  color: #3a3632;
}

.projets-page .card-overlay strong {
  color: #2c2825;
}

.projets-page main > section.section .cards {
  grid-template-columns: 1fr;
  max-width: min(1040px, 100%);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.projets-page main > section.section .card {
  width: 100%;
  max-width: 100%;
}

.projets-page .card-list {
  margin: 0.4rem 0 0;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.projets-page .card-list li {
  margin: 0.35rem 0;
}

.projets-page .hero-card .card-list {
  margin-top: 0;
}

.projets-page .card-lead {
  margin: 0 0 0.35rem;
}

.projets-page .card-overlay .card-list + .card-lead {
  margin-top: 0.85rem;
}

.services-page {
  overflow-y: hidden;
}

.services-page main {
  background:
    linear-gradient(rgba(13, 36, 61, 0.42), rgba(13, 36, 61, 0.42)),
    url("image/004.jpg") center / cover no-repeat;
}

.services-page main > section.section:nth-of-type(2) {
  position: relative;
  overflow: hidden;
  padding: 18px 0 22px;
}

.services-page main > section.section:nth-of-type(2)::before {
  content: none;
}

.services-page .page-hero {
  padding: 10px 0 0;
}

.services-page .page-hero h1,
.services-page .page-hero .lead {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.88), 0 2px 10px rgba(0, 0, 0, 0.65), 0 4px 18px rgba(0, 0, 0, 0.45);
}

.services-page main > section.section:nth-of-type(2) .cards {
  width: min(680px, 60%);
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  margin-left: auto;
  transform: translate(3cm, 8px);
}

.services-page main > section.section:nth-of-type(2) .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.services-page main > section.section:nth-of-type(2) .card {
  background: rgba(255, 255, 255, 0.8);
  padding: 0.55rem 0.75rem;
}

.services-page main > section.section:nth-of-type(2) .card h3 {
  color: #000000;
}

.services-page main > section.section:nth-of-type(2) .card p {
  color: #000000;
}

@media (max-width: 900px) {
  .services-page main > section.section:nth-of-type(2)::before {
    display: none;
  }

  .services-page main > section.section:nth-of-type(2) .container {
    display: block;
  }

  .services-page main > section.section:nth-of-type(2) .cards {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

.page-hero {
  padding: 54px 0 20px;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
}

.kicker {
  display: inline-block;
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.3px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.lead {
  color: var(--muted);
  max-width: 62ch;
}

.hero-card {
  background: linear-gradient(145deg, #10355f, #1459a6);
  color: #fff;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin-top: 0.2rem;
  font-size: 1.3rem;
}

.hero-card ul {
  padding-left: 1rem;
  margin-bottom: 0;
}

.project-card {
  margin-top: 1.2rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.68rem 1.1rem;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-2);
}

.contact-page .contact-form .btn-primary:hover {
  background: linear-gradient(135deg, #1f8f48, #2fbe5f 55%, #7be59c);
}

.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
}

.section {
  padding: 56px 0;
}

.section.alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.cards,
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.card,
.projects article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.card-overlay {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(2px);
}

.card h3,
.projects h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.intro {
  color: var(--muted);
}

.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.clients-list span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 0.38rem 0.85rem;
  font-size: 0.92rem;
}

.footer {
  position: relative;
  z-index: 5;
  width: 100%;
  background: #252d38;
  color: #f3f7fd;
  padding: 14px 0;
}

.home-page .footer {
  padding: 22px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  text-align: center;
  font-size: 0.98rem;
}

.footer-copy p {
  margin: 0.35rem 0;
}

.footer-copy p:first-child {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

input:not([type="checkbox"]),
textarea {
  border-radius: 8px;
  border: 1px solid #36506e;
  background: #142c47;
  color: #fff;
  padding: 0.6rem 0.7rem;
  font: inherit;
}

input:not([type="checkbox"])::placeholder,
textarea::placeholder {
  color: #a6b8ce;
}

.contact-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.light-form input:not([type="checkbox"]),
.light-form textarea {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.light-form input:not([type="checkbox"])::placeholder,
.light-form textarea::placeholder {
  color: #8190a4;
}

.checkbox-field {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-field input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  min-height: 1.2em;
}

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .menu-btn {
    display: inline-flex;
  }

  nav {
    position: absolute;
    right: 4%;
    top: 64px;
    flex-direction: column;
    background: #2b3340;
    border: 1px solid #4e5b6d;
    border-radius: 10px;
    padding: 0.8rem;
    width: min(260px, 90vw);
    box-shadow: var(--shadow);
    display: none;
  }

  nav.open {
    display: flex;
  }
}
