/* ============================================
   FG Infographie — Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bleu-logo: #002D4D;
  --bleu-noir: #002336;
  --rose-logo: #E50059;
  --pepsy: #FECF33;
  --blanc: #FFFFFF;
  --gris-clair: #F0F2F4;
  --gris-perle: #B8C5D1;
  --gris-moyen: #8A96A2;
  --gris-fonce: #4A5561;
  --bleu-electrique: #2588C9;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1280px;
}

@font-face {
  font-family: 'Lufga';
  src: local('Lufga Regular'), local('Lufga-Regular'), url('../assets/fonts/Lufga-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lufga';
  src: local('Lufga Medium'), local('Lufga-Medium'), url('../assets/fonts/Lufga-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lufga';
  src: local('Lufga SemiBold'), local('Lufga-SemiBold'), url('../assets/fonts/Lufga-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lufga';
  src: local('Lufga Bold'), local('Lufga-Bold'), url('../assets/fonts/Lufga-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lufga';
  src: local('Lufga Black'), local('Lufga-Black'), url('../assets/fonts/Lufga-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lufga', 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--bleu-logo);
  background: var(--gris-clair);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* --- Top Navigation Bar --- */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  background: var(--bleu-logo);
  height: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 56px;
  overflow: visible;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.topnav__burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  padding: 4px 0;
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  z-index: 130;
}

.topnav__burger span {
  display: block;
  width: 30px;
  height: 4px;
  background: var(--pepsy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.topnav__burger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.topnav__burger.active span:nth-child(2) {
  opacity: 0;
}

.topnav__burger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.topnav__center {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
  height: 72px;
}

.topnav__name {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--pepsy);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  position: absolute;
  right: calc(50% + 79px);
  top: 50%;
  transform: translateY(-50%);
}

.topnav__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--pepsy);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  position: absolute;
  left: calc(50% + 79px);
  top: 50%;
  transform: translateY(-50%);
}

.topnav__logo {
  height: 116px;
  width: auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
}

.topnav__contact {
  background: var(--rose-logo);
  color: var(--blanc);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  height: 36px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  margin-top: auto;
  margin-bottom: auto;
}

.topnav__contact:hover {
  background-color: var(--pepsy);
  color: var(--bleu-logo);
}

/* --- Side Navigation --- */
.sidenav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 45, 77, 0.5);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.sidenav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sidenav {
  position: fixed;
  top: 55px;
  left: 0;
  bottom: 0;
  width: auto;
  z-index: 110;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.sidenav.active {
  transform: translateX(0);
}

.sidenav__inner {
  background: var(--bleu-logo);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 56px 32px 64px;
}

.sidenav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-family: 'Lufga', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  color: var(--blanc);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}

.sidenav__link:hover {
  background: var(--pepsy);
  color: var(--bleu-logo);
}

.sidenav__eclair {
  width: 16px;
  height: 8px;
  flex-shrink: 0;
  transition: filter 0.3s;
}

.sidenav__link:hover .sidenav__eclair {
  filter: brightness(0) saturate(100%) invert(13%) sepia(69%) saturate(1500%) hue-rotate(174deg) brightness(92%) contrast(102%);
}

/* --- Hero Section --- */
.hero {
  padding-top: 72px;
  background: radial-gradient(ellipse 100% 70% at 35% 20%, #ffffff 0%, var(--gris-clair) 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  text-align: center;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 56px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero__logo {
  display: flex;
  justify-content: center;
  padding-top: 120px;
}

.hero__logo-img {
  width: 320px;
  height: auto;
}

.hero__title {
  font-weight: 900;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.15;
  color: var(--bleu-logo);
}

.hero__cta {
  padding-top: 32px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 40px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: none;
  box-shadow: none;
}

.btn--yellow {
  background-color: var(--pepsy);
  color: var(--bleu-logo);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--yellow:hover {
  background-color: #2B92C4;
  color: var(--blanc);
}

/* --- Sticky Expertise Nav --- */
.expertise-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--bleu-logo);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.expertise-nav.visible {
  transform: translateY(0);
}

.expertise-nav__inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  max-width: var(--max-width);
}

.expertise-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 24px;
  border: 1px solid var(--pepsy);
  border-radius: var(--radius-md);
  color: var(--blanc);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.expertise-nav__btn:hover {
  background: var(--rose-logo);
  border-color: var(--rose-logo);
}

.expertise-nav__btn img {
  width: 16px;
  height: 8px;
}

.expertise-nav__btn img:last-child {
  transform: scaleX(-1);
}

/* --- About / Prez Section --- */
.about {
  background: var(--gris-clair);
  padding: 0 128px 147px;
  position: relative;
}

.about__inner {
  background: var(--rose-logo);
  border-radius: var(--radius-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 176px 96px 96px;
}

/* --- Section Badges (between sections) --- */
.section-badge {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.section-badge img {
  width: 295px;
  height: 184px;
}

/* Badge FG QUI : entre hero et about */
#about-badge {
  padding-top: 100px;
  margin-bottom: -126px;
}

/* Badge EXPERTISES : entre about et services */
#services-badge {
  margin-top: -58px;
  margin-bottom: -126px;
}

/* Badge CONTACT : inside contact section, absolutely positioned */
.contact__badge {
  position: absolute;
  top: -58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.contact__badge img {
  width: 295px;
  height: 184px;
}

.about__content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.about__photo {
  flex-shrink: 0;
  width: 160px;
  height: auto;
  margin-top: 12px;
}

.about__text {
  flex: 1;
}

.about__name {
  font-weight: 900;
  font-size: 24px;
  color: var(--blanc);
  line-height: 40px;
}

.about__location {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.about__location span {
  font-size: 16px;
  color: var(--pepsy);
  line-height: 40px;
  white-space: nowrap;
}

.about__location-line {
  flex: 1;
  height: 1px;
  background: var(--pepsy);
  opacity: 0.5;
}

.about__description {
  font-size: 20px;
  color: var(--blanc);
  line-height: 26px;
  letter-spacing: 0.5px;
}

.about__description p {
  margin-bottom: 8px;
}

.about__description strong {
  font-weight: 600;
}

/* --- Services Sections --- */
.services {
  background: var(--blanc);
  padding: 0 128px;
  padding-top: 150px;
  padding-bottom: 158px;
  position: relative;
}

.services__section {
  padding: 38px 0;
  position: relative;
}


.services__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services__header {
  text-align: center;
  padding: 0 56px;
  margin-bottom: 32px;
}

.services__title {
  font-weight: 700;
  font-size: 64px;
  line-height: 1.1;
  color: var(--bleu-logo);
  margin-bottom: 16px;
}

.services__description {
  font-size: 16px;
  color: var(--bleu-noir);
  line-height: 24px;
  letter-spacing: 0.5px;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Cards --- */
.cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.cards__featured {
  width: 100%;
}

.cards__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  align-items: stretch;
}

.cards__row .card {
  height: 100%;
}

.card {
  background-color: var(--gris-clair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: default;
  box-shadow: 1px 1px 24px rgba(0, 35, 54, 0.12);
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  background-color: var(--rose-logo);
  box-shadow: none;
}

.card.fade-in,
.card.fade-in.visible {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, background-color 0.3s ease, box-shadow 0.3s ease;
}

.card__image {
  background: var(--bleu-noir);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
  aspect-ratio: 750 / 422;
  position: relative;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 170px), -50%);
  background-color: var(--blanc);
  padding: 12px 30px 12px 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.1s ease;
  z-index: 2;
  cursor: pointer;
}

.card:hover .card__overlay {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.card__overlay:hover {
  background-color: var(--pepsy);
}

.card:hover .card__name {
  color: var(--blanc);
}


.card:hover .tag {
  background: var(--bleu-logo);
  color: var(--blanc);
}

.card__overlay-text {
  font-weight: 600;
  font-size: 16px;
  color: var(--bleu-logo);
}

.card__overlay-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: transform 0.1s ease;
}

.card__overlay-circle {
  transition: fill 0.1s ease;
}

.card__overlay:hover .card__overlay-icon {
  transform: translateX(6px);
}

.card__overlay:hover .card__overlay-circle {
  fill: var(--bleu-logo);
}

.card__info {
  padding: 0 8px;
}

.card__name {
  font-weight: 700;
  font-size: 24px;
  color: var(--rose-logo);
  line-height: 1.2;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  background: var(--gris-fonce);
  color: var(--blanc);
  transition: background 0.3s, color 0.3s;
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  height: 24px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 138px;
  white-space: nowrap;
}

.services__more {
  text-align: center;
  margin-top: 48px;
}

.services__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rose-logo);
  color: var(--blanc);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  height: 42px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  transition: background 0.2s ease, color 0.2s ease;
}

.services__more-btn img {
  transition: filter 0.2s ease;
}

.services__more-btn:hover {
  background: var(--pepsy);
  color: var(--bleu-logo);
}

.services__more-btn:hover img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(69%) saturate(1500%) hue-rotate(174deg) brightness(92%) contrast(102%);
}

.services__more-btn img {
  width: 16px;
  height: 8px;
}

/* Anti-bot honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.hp-field input {
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  margin: 0 !important;
}

/* --- Contact Section --- */
.contact {
  padding: 0 128px;
  position: relative;
  background: linear-gradient(to bottom, var(--blanc) 90px, var(--bleu-logo) 90px);
}

.contact__inner {
  background: var(--rose-logo);
  border-radius: var(--radius-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 180px 56px 96px;
  position: relative;
}

.contact__header {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 32px;
}

.contact__title {
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  color: var(--blanc);
  line-height: 66px;
  margin-bottom: 8px;
}

.contact__subtitle {
  font-size: 24px;
  color: var(--pepsy);
  line-height: 32px;
}

.contact__form {
  max-width: 848px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__label {
  font-size: 16px;
  color: var(--blanc);
  line-height: 1;
}

.contact__input,
.contact__textarea {
  background: var(--gris-clair);
  border: 1px solid var(--gris-moyen);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 16px;
  color: var(--bleu-logo);
  line-height: 1.4;
  min-width: 120px;
  transition: border-color 0.3s;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--gris-moyen);
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--pepsy);
}

.contact__textarea {
  min-height: 80px;
  resize: vertical;
}

.contact__submit {
  padding-top: 24px;
  text-align: center;
}

.contact__submit .btn {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact__submit .btn:hover {
  background-color: #2B92C4;
  color: var(--blanc);
}

.contact__direct {
  text-align: center;
  padding-top: 24px;
}

.contact__direct-text {
  font-size: 16px;
  color: var(--blanc);
  line-height: 20px;
  margin-bottom: 16px;
}

.contact__direct-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.contact__direct-tel,
.contact__direct-link {
  font-size: 16px;
  color: var(--pepsy);
  line-height: 20px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact__direct-tel:hover,
.contact__direct-link:hover {
  color: var(--blanc);
}

.contact__direct-separator {
  width: 1px;
  height: 14px;
  background: var(--pepsy);
  opacity: 0.5;
}

/* --- Footer --- */
.footer {
  background: var(--bleu-logo);
  padding: 80px 0 128px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer__logo-icon {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.footer__logo-icon img {
  height: 60px;
}

.footer__logo-eclairs {
  position: absolute;
  top: 50%;
  left: -24px;
  right: -24px;
  display: flex;
  justify-content: space-between;
  transform: translateY(-30%);
}

.footer__logo-eclairs img {
  width: 23px;
  height: 11px;
}

.footer__logo-baseline {
  width: 93px;
  margin-top: 4px;
}

.footer__tagline {
  font-size: 12px;
  color: var(--pepsy);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 18px;
  margin-top: 10px;
}

.footer__linkedin {
  display: inline-flex;
  color: var(--gris-moyen);
  margin-top: 20px;
  transition: color 0.2s ease;
}

.footer__linkedin:hover {
  color: var(--blanc);
}

.footer__copyright {
  font-size: 12px;
  color: var(--gris-moyen);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 18px;
  margin-top: 12px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .topnav {
    padding: 0 24px;
  }

  .topnav__name,
  .topnav__tagline {
    display: none;
  }

  .hero__inner {
    padding: 60px 32px 32px;
  }

  .expertise-nav {
    display: none;
  }

  .section-badge img {
    width: 295px;
    height: 184px;
  }

  #about-badge {
    padding-top: 70px;
    margin-bottom: -86px;
  }

  #services-badge {
    margin-top: -40px;
    margin-bottom: -86px;
  }

  .contact__badge img {
    width: 295px;
    height: 184px;
  }

  .about {
    padding: 0 32px 80px;
  }

  .about__inner {
    padding: 120px 40px 60px;
  }

  .about__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about__location {
    justify-content: center;
  }

  .about__location-line {
    display: none;
  }


  .services {
    padding: 0 32px;
    padding-top: 100px;
    padding-bottom: 120px;
  }

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

  .contact {
    padding: 0 32px;
  }

  .contact__inner {
    padding: 120px 32px 60px;
  }

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

  .contact__title {
    line-height: 1.2;
  }

  /* --- Réduction H2 tablet (-8px / -12px pour 64px) --- */
  .services__title { font-size: 52px; }
  .project-cta__title { font-size: 40px; }
  .project-text__title { font-size: 32px; }
  .project-result__title { font-size: 32px; }

  /* --- SINGLE PAGE tablet overrides --- */
  .project-header { padding: 72px 32px 140px; }
  .project-hero-visual { margin: -80px 0 0; padding: 0 32px; background: linear-gradient(to bottom, transparent 80px, var(--gris-clair) 80px); }
  .project-flow { padding: 60px 32px 0; }
  .project-result { padding: 40px 32px 0; }
  .other-projects { padding: 60px 0 80px; }
  .other-projects__column { padding: 48px 32px 48px; }
  .project-cta { padding: 0 32px 80px; }

}

@media (max-width: 640px) {
  .topnav {
    height: 56px;
    padding: 0 16px;
  }

  .topnav__logo {
    height: 100px;
  }

  .topnav__contact {
    font-size: 14px;
    padding: 8px 16px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero__inner {
    padding: 24px 20px 24px;
    gap: 24px;
  }

  .hero__logo {
    padding-top: 80px;
  }

  .hero__logo-img {
    width: 240px;
  }

  .hero__title {
    font-size: 56px;
  }

  .expertise-nav {
    display: none;
  }

  .section-badge img {
    width: 237px;
    height: 148px;
  }

  .section-badge img {
    transform: translateY(40px);
  }

  .contact__badge img {
    width: 237px;
    height: 148px;
    transform: translateY(40px);
  }

  #about-badge {
    padding-top: 50px;
    margin-bottom: -48px;
  }

  #services-badge {
    margin-top: -30px;
    margin-bottom: -48px;
  }

  .contact__badge {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center;
    margin-bottom: -48px;
  }

  .contact__badge img {
    transform: translateY(40px);
  }

  .about {
    padding: 0 16px 60px;
  }

  .about__inner {
    padding: 100px 24px 40px;
  }


  .services {
    padding: 0 16px;
    padding-top: 80px;
    padding-bottom: 0;
  }

  .services__header {
    padding: 0 16px;
  }

  .contact {
    padding: 0 16px;
    background: linear-gradient(to bottom, var(--blanc) 140px, var(--bleu-logo) 140px);
  }

  .contact__inner {
    padding: 90px 20px 40px;
  }

  .contact__direct-links {
    flex-direction: column;
    gap: 8px;
  }

  .contact__direct-separator {
    display: none;
  }

  .footer {
    padding: 60px 20px 80px;
  }

  /* Titres plus gros sur mobile */
  .contact__title {
    font-size: 40px;
  }

  /* Cards : overlay visible sur mobile (pas de hover), couleurs desktop normales */
  .card {
    background-color: var(--gris-clair);
    box-shadow: 1px 1px 24px rgba(0, 35, 54, 0.12);
  }

  .card__name {
    color: var(--rose-logo);
  }

  .card__subtitle {
    color: var(--bleu-logo);
  }

  .tag {
    background: var(--gris-fonce);
    color: var(--blanc);
    font-size: 12px;
  }

  .card__overlay {
    opacity: 1;
    transform: translate(-50%, -50%);
    background-color: var(--pepsy);
  }

  .card:hover {
    background-color: var(--gris-clair);
    box-shadow: var(--shadow-card);
  }

  .card:hover .card__name { color: var(--bleu-logo); }
  .card:hover .tag { background: var(--gris-fonce); color: var(--blanc); }

  .services__more-btn {
    background: var(--pepsy);
    color: var(--bleu-logo);
  }

  .services__more-btn img {
    filter: brightness(0) saturate(100%) invert(13%) sepia(69%) saturate(1500%) hue-rotate(174deg) brightness(92%) contrast(102%);
  }

  /* Réduction tailles de texte sur mobile (-2px) */
  .about__description { font-size: 18px; }

  /* Réduction H2 mobile */
  .services__title { font-size: 40px; }

}

/* --- Project Header (SINGLE page) --- */
.project-header {
  background: var(--rose-logo);
  padding: 72px 24px 140px;
}

.project-header__inner {
  max-width: 1184px;
  margin: 0 auto;
  padding: 48px 0 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-header__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-header__client-logo {
  padding-bottom: 8px;
}

.project-header__client-logo img {
  width: 128px;
  height: auto;
}

.project-header__title {
  font-family: 'Lufga', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.15;
  color: var(--blanc);
  margin: 0;
  padding-bottom: 8px;
}

.project-header__infos {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-header__info-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.project-header__info-label {
  font-family: 'Lufga', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--pepsy);
  letter-spacing: 0.5px;
}

.project-header__info-value {
  font-family: 'Lufga', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--pepsy);
  letter-spacing: 0.5px;
}

.project-header__role {
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-header__role-label {
  font-family: 'Lufga', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--blanc);
  letter-spacing: 0.5px;
  margin: 0;
}

.project-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
}

.tag--dark {
  background: var(--bleu-noir);
}

.project-header__right {
  display: flex;
  align-items: center;
}

.project-header__description {
  font-family: 'Lufga', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--blanc);
  letter-spacing: 0.5px;
  margin: 0;
}

/* --- Project Hero Visual --- */
.project-hero-visual {
  margin: -80px 0 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 80px, var(--gris-clair) 80px);
}

.project-hero-visual__inner {
  max-width: 1184px;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 1184 / 666;
  border-radius: 32px;
  overflow: hidden;
}

.project-hero-visual__inner img,
.project-hero-visual__inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Project Flow (text + visuals) --- */
.project-flow {
  background: var(--gris-clair);
  padding: 48px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Espaces entre éléments du flow */
.project-flow__text-1,
.project-flow__text-2 {
  padding-top: 48px;
  padding-bottom: 0;
}

.project-flow__visual-1 {
  padding-top: 40px;
}

.project-flow__visual-2 {
  padding-top: 40px;
}

.project-flow__visual-3 {
  padding-top: 40px;
}

.project-flow__item:first-child {
  padding-top: 0;
}

.project-flow__item {
  max-width: 1184px;
  margin: 0 auto;
  width: 100%;
}


.project-text__title {
  font-family: 'Lufga', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: var(--rose-logo);
  margin: 0 0 24px 0;
}

.project-text__body {
  font-family: 'Lufga', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  color: var(--bleu-logo);
  letter-spacing: 0.5px;
}

.project-text__body p {
  margin: 0 0 8px 0;
}

.project-text__body p:last-child {
  margin-bottom: 0;
}

.project-text__body ul {
  list-style: disc;
  padding-left: 30px;
  margin: 0;
}

.project-text__body ul li {
  line-height: 26px;
}

/* --- Project Visual (inside flow) --- */
.project-visual__inner {
  max-width: 1184px;
  margin: 0 auto;
  aspect-ratio: 1184 / 666;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bleu-noir);
}

.project-visual__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Project Result Section --- */
.project-result {
  background: var(--gris-clair);
  padding: 40px 24px 0;
}

.project-result__inner {
  max-width: 1184px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: stretch;
}

.project-result__left {
  border-radius: 32px;
  overflow: hidden;
  background: var(--bleu-noir);
  aspect-ratio: 548 / 618;
}

.project-result__left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-result__right {
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
}

.project-result__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-result__title {
  font-family: 'Lufga', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: var(--rose-logo);
  margin: 0 0 24px 0;
  text-align: left;
}

.project-result__body {
  font-family: 'Lufga', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--bleu-logo);
}

.project-result__body p {
  margin: 0 0 8px 0;
}

.project-result__body p:last-child {
  margin-bottom: 0;
}

.project-result__device {
  background: var(--bleu-noir);
  border-radius: 32px;
  padding: 32px;
}

.project-result__device-inner {
  aspect-ratio: 444 / 250;
  border-radius: 16px;
  border: 8px solid var(--bleu-noir);
  overflow: hidden;
  background: var(--gris-clair);
}

.project-result__device-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Online Project Button --- */
.project-online {
  background: var(--gris-clair);
  padding: 48px 24px 64px;
  text-align: center;
}

/* --- Other Projects Section --- */
.other-projects {
  background: var(--gris-clair);
  padding: 84px 0 80px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
}

.other-projects__column {
  flex: 1;
  width: 0;
  background: var(--blanc);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.other-projects__column .card {
  display: none;
}

.other-projects__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Lufga', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--bleu-logo);
  transition: transform 0.2s ease;
}

.other-projects__nav-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.other-projects__nav-circle {
  transition: fill 0.2s ease;
}

.other-projects__nav:hover .other-projects__nav-circle {
  fill: var(--bleu-logo);
}

.other-projects__nav--prev:hover .other-projects__nav-icon {
  transform: translateX(-4px);
}

.other-projects__nav--next:hover .other-projects__nav-icon {
  transform: translateX(4px);
}

/* --- Project CTA Contact --- */
.project-cta {
  background: var(--gris-clair);
  padding: 0 24px 80px;
}

.project-cta__inner {
  max-width: 1328px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.project-cta__title {
  font-family: 'Lufga', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: var(--bleu-electrique);
  text-align: center;
  margin: 0;
  padding: 0;
}

.project-cta__button {
  display: flex;
  justify-content: center;
}

.project-cta__direct {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.project-cta__direct-text {
  font-family: 'Lufga', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: var(--bleu-logo);
  text-align: center;
  margin: 0;
}

.project-cta__direct-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.project-cta__direct-tel,
.project-cta__direct-link {
  font-family: 'Lufga', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: var(--bleu-electrique);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.project-cta__direct-tel:hover,
.project-cta__direct-link:hover {
  opacity: 0.7;
}

.project-cta__direct-separator {
  display: none;
}

/* --- SINGLE Desktop overrides --- */
@media (min-width: 1025px) {
  .project-header {
    padding: 72px 128px 227px;
  }

  .project-header__inner {
    padding: 96px 0 0;
    flex-direction: row;
    gap: 56px;
    align-items: center;
  }

  .project-header__left,
  .project-header__right {
    flex: 1;
  }

  .project-hero-visual {
    margin: -167px 0 0;
    padding: 0 128px;
    background: linear-gradient(to bottom, transparent 167px, var(--gris-clair) 167px);
  }

  .project-flow {
    padding: 64px 128px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1440px;
    margin: 0 auto;
  }

  .project-flow__item {
    max-width: none;
    margin: 0;
  }

  /* Texte 1 et Texte 2 côte à côte en row 1 */
  .project-flow__text-1 { grid-column: 1; grid-row: 1; padding-top: 0; }
  .project-flow__text-2 { grid-column: 2; grid-row: 1; padding-top: 0; }

  /* Visuels : reset padding mobile */
  .project-flow__visual-1 { padding-top: 0; margin-top: -24px; }
  .project-flow__visual-2 { padding-top: 0; }

  /* Visuels pleine largeur en row 2, 3 et 4 */
  .project-flow__visual-1 { grid-column: 1 / -1; grid-row: 2; }
  .project-flow__visual-2 { grid-column: 1 / -1; grid-row: 3; }
  .project-flow__visual-3 { grid-column: 1 / -1; grid-row: 4; padding-top: 0; }

  .project-result {
    padding: 80px 128px 0;
  }

  .project-result__inner {
    flex-direction: row;
    gap: 88px;
  }

  .project-result__left {
    flex: 1;
    min-height: 618px;
    aspect-ratio: auto;
  }

  .project-result__right {
    flex: 1;
    gap: 88px;
  }

  .project-result__device {
    padding: 32px;
  }

  .other-projects {
    padding: 118px 0 120px;
    flex-direction: row;
    gap: 24px;
  }

  .other-projects__column {
    flex: 1;
    padding: 80px 80px 88px;
  }

  .other-projects__column .card {
    display: flex;
    max-width: 576px;
    width: 100%;
    margin: 0 auto;
  }

  .project-cta {
    padding: 0 56px 120px;
  }

  .project-cta__title {
    padding: 0 56px;
  }

  .project-cta__direct-links {
    flex-direction: row;
    gap: 16px;
  }

  .project-cta__direct-separator {
    display: block;
    width: 1px;
    height: 14px;
    background: var(--bleu-electrique);
    opacity: 0.5;
  }
}

/* --- Single Page Responsive (mobile) --- */
@media (max-width: 640px) {
  .project-header__description { font-size: 20px; }
  .project-text__body { font-size: 16px; }
  .project-result__body { font-size: 16px; }
  .project-cta__title { font-size: 32px; }
  .project-text__title { font-size: 24px; }
  .project-result__title { font-size: 24px; }
  .project-result__device { padding: 0; border-radius: 16px; background: transparent; }
  .project-result__device-inner { border: none; border-radius: 16px; }
}

/* --- Expertise Page Header --- */
.expertise-header {
  background: var(--bleu-logo);
  padding: 72px 56px 0;
}

.expertise-header__inner {
  background: var(--rose-logo);
  border-radius: 0 0 32px 32px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 136px 128px 132px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.expertise-header__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.expertise-header__title {
  font-family: 'Lufga', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.15;
  color: var(--blanc);
  margin: 0 0 16px;
}

.expertise-header__eclair {
  width: 47px;
  height: 24px;
  flex-shrink: 0;
}

.expertise-header__eclair--flip {
  transform: scaleX(-1);
}

.expertise-header__subtitle {
  font-family: 'Lufga', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
  color: var(--pepsy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: -24px 0 0;
}

.expertise-header__intro {
  font-family: 'Lufga', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--blanc);
  letter-spacing: 0.5px;
  margin: 0;
  max-width: 900px;
}

/* --- Expertise Page Cards --- */
.expertise-cards {
  background: var(--bleu-logo);
  padding: 0 128px 28px;
  display: flow-root;
}

.expertise-cards__inner {
  max-width: 1184px;
  margin: 0 auto;
  margin-top: -86px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.expertise-cards__featured {
  width: 100%;
}

.expertise-cards__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  align-items: stretch;
}

.expertise-cards__row .card {
  height: 100%;
}

/* --- Expertise SEO Text --- */
.expertise-seo {
  background: var(--bleu-logo);
  padding: 72px 128px 0;
}

.expertise-seo:last-of-type {
  padding-bottom: 128px;
}

.expertise-seo + .expertise-seo {
  padding-top: 128px;
}

.expertise-seo__inner {
  max-width: 1184px;
  margin: 0 auto;
}

.expertise-seo__eyebrow {
  display: inline-block;
  font-family: 'Lufga', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
}

.expertise-seo__h2 {
  font-family: 'Lufga', sans-serif;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--pepsy);
  margin: 0 0 56px;
  letter-spacing: -0.02em;
}

.expertise-seo__sub {
  display: block;
  color: var(--gris-perle);
  font-size: 18px;
  font-weight: 500;
  margin-top: 12px;
  letter-spacing: 0;
}

/* Timeline (first SEO block) */
.expertise-seo__timeline {
  position: relative;
  padding-left: 132px;
}

.expertise-seo__timeline::before {
  content: "";
  position: absolute;
  left: 51.5px;
  top: 52px;
  bottom: 52px;
  width: 1px;
  background: var(--pepsy);
}

.expertise-seo__step {
  position: relative;
  padding-bottom: 56px;
  min-height: 115px;
}

.expertise-seo__step:last-child {
  padding-bottom: 0;
}

.expertise-seo__num {
  position: absolute;
  left: -132px;
  top: 0;
  width: 104px;
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-seo__num svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.expertise-seo__num span {
  position: relative;
  font-family: 'Lufga', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--bleu-logo);
  letter-spacing: -0.02em;
  line-height: 1;
}

.expertise-seo__step-title {
  font-family: 'Lufga', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--pepsy);
  margin: 0 0 12px;
  padding-top: 28px;
  letter-spacing: -0.01em;
}

.expertise-seo__step-text {
  font-family: 'Lufga', sans-serif;
  font-size: 18px;
  color: var(--gris-perle);
  line-height: 1.65;
  max-width: 720px;
  margin: 0;
}

/* Q2 (subsequent SEO blocks) */
.expertise-seo__q2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.expertise-seo__q2-grid p {
  font-family: 'Lufga', sans-serif;
  font-size: 18px;
  color: var(--gris-perle);
  line-height: 1.7;
  margin: 0;
}

.expertise-seo__q2-grid p strong {
  color: var(--blanc);
  font-weight: 600;
}

/* --- Expertise Page Responsive (tablet) --- */
@media (max-width: 1024px) {
  .expertise-header { padding: 72px 32px 64px; }
  .expertise-cards { padding: 0 32px 64px; }
  .expertise-cards__row { grid-template-columns: 1fr; }
  .expertise-seo { padding: 40px 32px 0; }
  .expertise-seo:last-of-type { padding-bottom: 80px; }
  .expertise-seo + .expertise-seo { padding-top: 80px; }
  .expertise-seo__h2 { font-size: 40px; margin-bottom: 40px; }
  .expertise-seo__timeline { padding-left: 120px; }
  .expertise-seo__timeline::before { left: 46px; top: 120px; }
  .expertise-seo__num { left: -120px; width: 92px; height: 102px; }
  .expertise-seo__num span { font-size: 32px; }
  .expertise-seo__q2-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Expertise Page Responsive (mobile) --- */
@media (max-width: 640px) {
  .expertise-header { background: var(--rose-logo); padding: 72px 0 140px; }
  .expertise-header__inner { background: transparent; border-radius: 0; padding: 48px 24px 0; }
  .expertise-header__subtitle { font-size: 18px; }
  .expertise-header__eclair { display: none; }
  .expertise-cards { margin-top: -80px; padding: 0 24px 48px; background: linear-gradient(to bottom, transparent 80px, var(--bleu-logo) 80px); }
  .expertise-cards__inner { margin-top: 0; }
  .expertise-seo { padding: 24px 24px 0; }
  .expertise-seo:last-of-type { padding-bottom: 64px; }
  .expertise-seo + .expertise-seo { padding-top: 64px; }
  .expertise-seo__h2 { font-size: 32px; margin-bottom: 32px; }
  .expertise-seo__timeline { padding-left: 0; }
  .expertise-seo__timeline::before { display: none; }
  .expertise-seo__step { padding-bottom: 32px; min-height: 0; }
  .expertise-seo__num { position: relative; left: 0; width: 84px; height: 93px; margin: 0 auto 12px; }
  .expertise-seo__num span { font-size: 28px; }
  .expertise-seo__step-title { padding-top: 0; font-size: 20px; text-align: center; }

  /* Réduction tailles de texte sur mobile (-2px) */
  .expertise-seo__sub { font-size: 16px; }
  .expertise-seo__step-text { font-size: 16px; }
  .expertise-seo__q2-grid p { font-size: 16px; }
}

/* --- Parallax Window --- */
.parallax-window {
  overflow: hidden;
}

.parallax-window img {
  will-change: transform;
  height: 120%;
  object-fit: cover;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: var(--rose-logo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--pepsy);
}

.back-to-top:hover svg path {
  stroke: var(--bleu-logo);
  transition: stroke 0.2s ease;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
