*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #3779B3;
  --blue-light: #449DD4;
  --blue-dark : #23437E;
  --dark: #070814;
  --text: #101010;
  --text-light: #202020;
  --clear: #f2f2f2;
  --accent : #FBBC09;
  --accent2 : #F7EA01;
}

body {
  font-family: 'Rethink Sans', sans-serif;
  color: var(--text);
  background: var(--clear);
}

h2.clear {
  color: var(--clear);
}

h2.dark {
  color: var(--dark);
}

/* HEADER */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

header.scrolled {
  background-color: var(--clear);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

header.scrolled nav a {
  color: var(--text);
}

header.scrolled nav a:hover {
  color: var(--blue);
}

header.scrolled nav a.cta {
  color: #fff;
}

header.scrolled .nav-toggle span {
  background: var(--text);
}

/* Burger button — caché par défaut sur desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clear);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  text-decoration: none;
  color: var(--clear);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 6px;
}

nav a:hover {
  color: var(--accent); 
}

nav a.cta {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

nav a.cta:hover { 
  background: var(--blue-dark); 
}

/* HERO */
#accueil {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1b35, #1a3a6b);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-pattern {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
}

h1 {
  font-size: 50px;
  margin-bottom: 20px;
}

.strong-text {
  font-family: 'Poppins', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: italic;
  font-size: 70px;
  color: var(--blue-light);
}

p {
  font-size: 18px;
  opacity: 0.9;
}

/* BOUTONS */
.buttons {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
}

.primary {
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  border: none;
  color: var(--clear);
}

.primary:hover {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--clear);
}

.outline {
  border: 1px solid var(--clear);
  color: var(--clear);
}

.outline:hover {
  border: 1px solid var(--blue);
  color: var(--clear);
}

/* CARROUSEL */
.carousel {
  margin-top: 50px;
  overflow: hidden;
   -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

.carousel-track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.carousel-track img {
  height: 30px;
  opacity: 0.7;
}

/* Animation */
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* À PROPOS */
#apropos {
  background: linear-gradient(135deg, #0d1b35 0%, #1a3a6b 100%);
  padding: 80px 24px;
}

#apropos > *:not(.apropos-grid) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.apropos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}


.section-label-clear {
  color: var(--blue-light);
}

.section-label-dark {
  color: var(--blue-dark);
}

.section-label-black {
  color: var(--dark);
}

/* Flip card */
.flip-card {
  background-color: transparent;
  perspective: 1000px;
  min-height: 280px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.apropos-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px;
  border-radius: 12px;
  background: var(--clear);
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.flip-card-front {
  border: 1.5px solid var(--text-light);
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  border: none;
  justify-content: center;
}

.btn-card {
  margin-top: auto;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1.5px solid var(--clear);
  color: var(--clear);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.btn-card:hover {
  background-color: var(--clear);
  color: var(--blue);
}

.apropos-card svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.apropos-card .material-icons {
  font-size: 36px;
  color: var(--blue);
}

.apropos-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  height: 3rem;
  display: flex;
  align-items: flex-start;
}

.apropos-card p {
  font-size: 0.87rem;
  color: var(--text-light);
}

@media (max-width: 900px) {
  .flip-card,
  .flip-card-inner {
    min-height: 280px;
  }

  .apropos-card {
    padding: 22px 18px;
    gap: 10px;
  }

  .apropos-card h3 {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .flip-card,
  .flip-card-inner {
    min-height: 260px;
  }

  .apropos-card {
    padding: 18px 14px;
    gap: 8px;
  }

  .apropos-card h3 {
    font-size: 0.95rem;
  }

  .apropos-card p {
    font-size: 0.875rem;
  }
}

/* ZONE D'INTERVENTION */
.zone-section {
  padding: 80px 24px;
  background: var(--clear)
}

.zone-section::before {
  display: none;
}

.zone-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.zone-inner img {
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  width: 100%;
  max-width: 420px;
  justify-self: center;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.zone-content .section-title {
  color: var(--dark);
}

.zone-content .section-label {
  color: var(--blue);
}

.zone-content p {
  color: var(--text-light);
  margin: 16px 0 28px;
  font-size: 1rem;
}

/* POURQUOI */
.pourquoi-section {
  padding: 80px 24px;
  background: var(--blue)
}

.pourquoi-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pourquoi-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 500px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* ENGAGEMENTS */
.engagements-section {
  padding: 80px 24px;
}

.engagements-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.engagement-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 420px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* LISTES */
.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
  padding: 0;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text);
}

/* SERVICES */
#services {
  padding: 80px 24px;
  background: radial-gradient(ellipse at center, #0d1b35 0%, #070814 100%);
}

.services-header {
  max-width: 1200px;
  margin: 0 auto 48px;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 12px rgba(0, 0, 0, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.service-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clear);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--clear);
  margin-bottom: 14px;
}

.service-card ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card ul li {
  font-size: 0.875rem;
  color: var(--clear);
  padding-left: 16px;
  position: relative;
}

.service-card ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--blue-light);
}

.logo-services {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* FOOTER */
footer {
  background: linear-gradient(135deg, #0d1b35 0%, #1a3a6b 100%);
  padding: 48px 24px 28px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

footer .logo img {
  height: 60px;
  width: auto;
  margin-bottom: 24px;
  display: block;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-inner p a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-inner p a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-linkedin svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.55);
  transition: fill 0.2s;
  display: block;
}

.footer-linkedin:hover svg {
  fill: #fff;
}

/* ============================================
   RESPONSIVE — TABLETTE (≤ 900px)
   ============================================ */
@media (max-width: 900px) {

  /* Typographie hero */
  h1 { font-size: 2.25rem; }
  .strong-text { font-size: 3.125rem; }

  /* Grilles → colonne unique */
  .zone-inner,
  .pourquoi-inner,
  .engagements-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* L'image remonte au-dessus du texte */
  .zone-inner img,
  .engagement-img {
    order: -1;
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .apropos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sections : réduire le padding vertical */
  #apropos,
  .zone-section,
  .pourquoi-section,
  .engagements-section,
  #services {
    padding: 3.75rem 1.25rem;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================ */
@media (max-width: 600px) {

  /* Typographie hero encore plus petite */
  h1 { font-size: 1.75rem; }
  .strong-text { font-size: 2.375rem; }
  p { font-size: 1rem; }

  /* Navigation : masquer les liens, afficher le burger */
  nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 4.375rem;
    left: 0; right: 0;
    background: #0d1b35;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,0.3);
    gap: 0.25rem;
    z-index: 99;
  }

  nav.open {
    display: flex;
  }

  nav a {
    color: var(--clear);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
  }

  nav a.cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  /* Afficher le bouton burger */
  .nav-toggle {
    display: flex;
  }

  /* Hero : réduire le padding top */
  #accueil {
    padding: 6.25rem 1rem 3.75rem;
  }

  /* Boutons hero empilés */
  .buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
    max-width: 17.5rem;
  }

  /* Grille à propos : 1 colonne */
  .apropos-grid {
    grid-template-columns: 1fr;
  }

  /* Footer : centrer sur mobile */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  /* Sections : padding réduit */
  #apropos,
  .zone-section,
  .pourquoi-section,
  .engagements-section,
  #services {
    padding: 3rem 1rem;
  }
}

/* ============================================
   BURGER ANIMATION — quand le menu est ouvert
   ============================================ */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}