/* Variables PR Construction */
:root {
  --bg: #55636F;
  --txt: #E9EEF2;
  --muted: #B8C2C9;
  --white: #fff;
  --shadow: 0 10px 25px rgba(0,0,0,.12);
  --radius: 18px;
  --container: 1200px;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Poppins', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

/* Animations d'apparition fluides */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Animations au scroll - plus subtiles et discrets */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation pour les sections au chargement initial - plus subtiles */
section:not(.fade-on-scroll) {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

section:nth-child(1):not(.fade-on-scroll) { animation-delay: 0.05s; }
section:nth-child(2):not(.fade-on-scroll) { animation-delay: 0.1s; }
section:nth-child(3):not(.fade-on-scroll) { animation-delay: 0.15s; }
section:nth-child(4):not(.fade-on-scroll) { animation-delay: 0.2s; }
section:nth-child(5):not(.fade-on-scroll) { animation-delay: 0.25s; }
section:nth-child(6):not(.fade-on-scroll) { animation-delay: 0.3s; }
section:nth-child(7):not(.fade-on-scroll) { animation-delay: 0.35s; }

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

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

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
  padding: 0 20px;
}

/* Header - Liquid design style */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(85, 99, 111, 0.4);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  transition: background 0.3s ease;
  display: block !important;
  visibility: visible !important;
}

.site-header.scrolled {
  position: fixed;
  background: rgba(85, 99, 111, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  gap: 24px;
  min-height: 80px; /* Hauteur minimale pour aligner avec le logo */
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  letter-spacing: .5px;
  height: 80px; /* Hauteur fixe pour alignement */
}

.brand .logo {
  display: flex;
  align-items: center;
  height: 80px;
  line-height: 0;
  padding: 20px 15px;
  border: none;
  background: transparent;
  gap: 0;
}

.brand .logo img,
.brand .logo .logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  transition: opacity 0.3s ease;
}

.brand .logo:hover img,
.brand .logo:hover .logo-img {
  opacity: 0.9;
}

.logo-text {
  display: none !important;
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.2;
}

.logo-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  margin: 4px 0;
}

.logo-tagline {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.2;
}


.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px; /* Alignement avec le logo */
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
  height: 100%;
}

.main-nav li {
  display: flex;
  align-items: center;
  height: 100%;
}

.main-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  opacity: .9;
  transition: opacity 0.3s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  opacity: 0.95;
  font-weight: 600;
}

.header-contacts {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  height: 80px; /* Alignement avec le logo */
}

.header-contacts .pill {
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, .05);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-contacts .pill:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
}

/* Hero */
.section-hero {
  position: relative;
  min-height: 75vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Fond bleu-vert fixe - en premier */
.hero-bg-color {
  position: absolute;
  inset: 0;
  background: var(--bg); /* #55636F - bleu-vert */
  z-index: 0;
}

/* Galerie d'images en overlay sur le fond vert-bleu */
.hero-gallery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-gallery .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Plus de hauteur pour la parallaxe */
  object-fit: cover;
  object-position: center;
  opacity: 0; /* Par défaut, toutes les images sont invisibles */
  transition: opacity 0.8s ease-in-out;
  will-change: transform;
  z-index: 1;
}

/* Image active visible à 20% */
.hero-gallery .hero-image[style*="opacity: 0.2"],
.hero-gallery .hero-image.active {
  opacity: 0.2 !important; /* 20% d'opacité - overlay sur le fond vert-bleu */
  z-index: 2;
}

.hero-bg-pattern {
  position: absolute;
  right: 6%;
  top: 0;
  width: 62vw;
  height: 100%;
  background: url('../images/Filigrane.svg') no-repeat right top;
  background-size: contain;
  opacity: .33;
  z-index: 2; /* Au-dessus des images mais fixe */
  pointer-events: none;
}

/* Particles removed - no longer used */
#hero-particles {
  display: none !important;
}

.hero-inner {
  position: relative;
  z-index: 4;
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: center;
}

.hero-content {
  color: var(--txt);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .9rem;
  margin-bottom: 10px;
}

.hero-inner h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  margin: 10px 0 12px;
  font-weight: 800;
}

.hero-inner .sub {
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 22px;
}

.cta {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #ffffff10;
  color: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  display: inline-block;
  transition: transform .2s, background .2s;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .15);
}

.btn.primary {
  background: var(--white);
  color: #22313a;
  font-weight: 700;
}

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

/* Sections */
section {
  padding: 56px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 18px;
  color: var(--txt);
}

/* Services Grid */
.section-services {
  padding: 72px 0;
  background: #f5f5f5;
}

.section-services h2 {
  color: #2d3748;
  margin-bottom: 32px;
  font-weight: 700;
}

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

.service-card {
  background: #495057;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform .2s, box-shadow .2s;
}

.service-card:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.service-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.icon-emoji {
  font-size: 24px;
  line-height: 1;
}

.service-content {
  flex: 1;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
  line-height: 1.3;
}

.service-description {
  font-size: 0.95rem;
  color: var(--white);
  margin: 0;
  line-height: 1.5;
  opacity: 0.95;
}

/* Grid utilities */
.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 18px;
  transition: transform .2s ease, background .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .06);
}

.card .ph {
  aspect-ratio: 16/9;
  background: linear-gradient(180deg, #6f7c87, #46545e);
  border-radius: 12px;
  margin-bottom: 12px;
}

.card .title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--txt);
}

/* À propos */
.section-about {
  padding: 72px 0;
  background: var(--bg);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  width: 100%;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 1;
}

.placeholder-image {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #6f7c87, #46545e);
  border-radius: 16px;
}

.about-content h2 {
  margin-bottom: 24px;
  color: var(--txt);
}

.about-text {
  color: var(--txt);
  line-height: 1.7;
  font-size: 1.05rem;
}

.about-text p {
  margin: 0 0 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Testimonials */
.section-testimonials {
  padding: 72px 0;
}

.testimonial {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 24px;
}

.testimonial .text {
  font-style: italic;
  margin-bottom: 16px;
  color: var(--txt);
}

.testimonial footer {
  color: var(--muted);
  font-size: .9rem;
}

/* Atouts */
.section-atouts {
  padding: 72px 0;
  background: #2C3136;
}

.section-atouts h2 {
  color: var(--white);
  margin-bottom: 24px;
  text-align: center;
}

.atouts-intro {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--txt);
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.9;
}

.atouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.atout-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.atout-card:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.atout-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
}

.atout-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  /* Couleur du background de la section contact (#55636F -> #E9EEF2) */
  filter: brightness(0) saturate(100%) invert(89%) sepia(5%) saturate(430%) hue-rotate(180deg) brightness(96%) contrast(89%);
}

.atout-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--white);
  fill: none;
}

.atout-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 16px;
}

.atout-description {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}

/* Services - Icônes SVG */
.service-icon-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  /* Couleur du background de la section contact (#55636F -> #E9EEF2) */
  filter: brightness(0) saturate(100%) invert(89%) sepia(5%) saturate(430%) hue-rotate(180deg) brightness(96%) contrast(89%);
}

/* Réalisations */
.section-realisations {
  padding: 72px 0;
  background: #343A40;
}

.section-realisations h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.realisations-subtitle {
  color: #B8C2C9;
  font-size: 0.95rem;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* Réalisations - Galerie */
.realisations-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.realisations-gallery .thumb {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 360px;
  background: #495057;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease;
  display: block;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.realisations-gallery .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.95);
  transition: transform .3s ease;
}

.realisations-gallery .thumb .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .65) 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.realisations-gallery .caption-count {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: .75;
}

.realisations-gallery .thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

.realisations-gallery .thumb:hover img {
  transform: scale(1.02);
}

.realisations-gallery .thumb:focus-visible {
  outline: 2px solid #6aa7ff;
  outline-offset: 3px;
}

/* Lightbox / Modale Réalisations */
.realisation-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1200;
}

.realisation-lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  place-self: center;
  width: min(92vw, 1100px);
  max-height: 88vh;
  background: #101316;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  transform: translateY(12px);
  transition: transform .25s ease;
}

.realisation-lightbox[aria-hidden="false"] .lightbox-frame {
  transform: translateY(0);
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
}

.lightbox-counter {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.lightbox-spacer {
  flex: 1;
}

.lightbox-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.lightbox-icon-btn:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

.lightbox-icon-btn:focus-visible {
  outline: 2px solid #6aa7ff;
  outline-offset: 2px;
}

.lightbox-viewport {
  position: relative;
  background: #000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.lightbox-viewport img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 14px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, .6);
}

.lightbox-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.lightbox-edge {
  width: min(18vw, 180px);
  height: 100%;
  display: grid;
  place-items: center;
  pointer-events: auto;
}

.lightbox-bottombar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  overflow-x: auto;
  background: rgba(255, 255, 255, .03);
}

.lightbox-bottombar::-webkit-scrollbar {
  height: 6px;
}

.lightbox-bottombar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .25);
  border-radius: 999px;
}

.lightbox-bottombar .mini {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  opacity: .6;
  transition: opacity .2s ease, transform .2s ease;
}

.lightbox-bottombar .mini[aria-current="true"] {
  outline: 2px solid #ffffff;
  opacity: 1;
  transform: translateY(-2px);
}

.lightbox-bottombar .mini img {
  height: 64px;
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  .realisations-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .realisations-gallery .thumb img {
    height: 100%;
  }

  .lightbox-frame {
    width: min(95vw, 840px);
  }
}

@media (max-width: 640px) {
  .realisations-gallery {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .realisations-gallery .thumb img {
    height: 100%;
  }

  .lightbox-icon-btn {
    width: 40px;
    height: 40px;
  }

  .lightbox-viewport {
    padding: 12px;
  }

  .lightbox-viewport img {
    max-height: 62vh;
  }

  .lightbox-bottombar .mini img {
    height: 54px;
  }
}

/* Contact */
.section-contact {
  padding: 72px 0;
}

form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.grid-2 {
  display: grid;
  gap: 12px;
}

@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  margin-bottom: 4px;
  font-size: .92rem;
  color: var(--muted);
}

/* CTA */
.section-cta {
  padding: 72px 0;
  text-align: center;
}

.section-cta .btn {
  display: inline-block;
  width: auto;
  margin: 0 auto 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin-bottom: 24px;
}

.contact-grid__item input {
  width: 100%;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-top: 32px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--txt);
}

.contact-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  /* Couleur du background de la section contact (#55636F -> #E9EEF2) */
  filter: brightness(0) saturate(100%) invert(89%) sepia(5%) saturate(430%) hue-rotate(180deg) brightness(96%) contrast(89%);
}

.contact-line a {
  color: var(--txt);
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-line a:hover {
  opacity: 0.8;
}

.contact-type {
  border: 1px solid rgba(233, 238, 242, 0.25);
  border-radius: 14px;
  padding: 18px 20px 14px;
  background: rgba(233, 238, 242, 0.03);
  margin-bottom: 24px;
}

.contact-type legend {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  padding: 0 6px;
}

.contact-type__options {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-type__option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E9EEF2;
  font-size: 0.95rem;
}

.contact-type__option input[type="radio"] {
  accent-color: #4A90E2;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.contact-upload {
  margin-top: 20px;
  border: 1px dashed rgba(233, 238, 242, 0.25);
  border-radius: 14px;
  padding: 16px 20px;
  background: rgba(233, 238, 242, 0.05);
  display: grid;
  gap: 10px;
}

.contact-upload__hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(233, 238, 242, 0.75);
}

.contact-upload input[type="file"] {
  color: #E9EEF2;
  font-size: 0.95rem;
}

.contact-upload input[type="file"]::-webkit-file-upload-button {
  background: rgba(233, 238, 242, 0.1);
  border: 1px solid rgba(233, 238, 242, 0.3);
  border-radius: 8px;
  padding: 8px 14px;
  color: #E9EEF2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-upload input[type="file"]::-webkit-file-upload-button:hover {
  background: rgba(233, 238, 242, 0.2);
  border-color: rgba(233, 238, 242, 0.5);
}

.contact-upload input[type="file"]::file-selector-button {
  background: rgba(233, 238, 242, 0.1);
  border: 1px solid rgba(233, 238, 242, 0.3);
  border-radius: 8px;
  padding: 8px 14px;
  color: #E9EEF2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-upload input[type="file"]::file-selector-button:hover {
  background: rgba(233, 238, 242, 0.2);
  border-color: rgba(233, 238, 242, 0.5);
}

.contact-services {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(233, 238, 242, 0.25);
  border-radius: 14px;
  background: rgba(233, 238, 242, 0.03);
  display: grid;
  gap: 20px;
}

.contact-services legend {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  padding: 0 6px;
}

.contact-services__hint {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(233, 238, 242, 0.75);
}

.contact-services__group {
  border-top: 1px solid rgba(233, 238, 242, 0.12);
  padding-top: 16px;
  display: grid;
  gap: 12px;
}

.contact-services__group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.contact-services__group-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.contact-services__options {
  display: grid;
  gap: 8px;
}

.contact-services__option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #E9EEF2;
}

.contact-services__option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4A90E2;
  cursor: pointer;
}

/* About CTA */
.about-cta {
  margin-top: 32px;
}

/* Social Facebook */
.social-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--txt);
  transition: background 0.3s ease, border-color 0.3s ease;
  margin-left: 12px;
  flex-shrink: 0;
}

.social-facebook:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
}

.social-facebook svg {
  width: 18px;
  height: 18px;
}

/* Footer */
.site-footer {
  padding: 36px 0;
  color: #cfd7dc;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.site-footer .small {
  font-size: .92rem;
  color: #cfd7dc;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  opacity: .8;
  transition: opacity .2s;
}

.site-footer a:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 0;
  }
  
  .header-inner {
    flex-wrap: wrap;
  }
  
  .main-nav {
    order: 3;
    width: 100%;
    margin-top: 8px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Menu Burger */
.menu-toggle {
  display: none !important;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile - Navigation cachée, logo avec texte */
@media (max-width: 768px) {
  .menu-toggle {
    display: none !important;
  }
  
  .main-nav {
    display: none !important;
  }
  
  .header-contacts {
    display: none !important;
  }
  
  .site-header {
    max-height: 140px;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    display: block !important;
    visibility: visible !important;
  }
  
  .header-inner {
    justify-content: space-between !important;
    align-items: center !important;
    min-height: auto;
    max-height: 140px;
    padding: 10px 20px !important;
    display: flex !important;
  }
  
  .brand {
    height: auto;
    max-height: 140px;
    width: auto;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    visibility: visible !important;
    flex: 1;
  }
  
  .brand .logo {
    height: auto;
    max-height: 140px;
    padding: 15px 0;
    margin: 0;
    display: flex !important;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    visibility: visible !important;
    gap: 0;
  }
  
  .brand .logo img,
  .brand .logo .logo-img {
    height: 80px;
    width: auto;
    max-width: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0;
  }
  
  .logo-text {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .contact-type__options {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .modal-content {
    padding: 20px;
    width: min(1400px, 95vw);
    max-height: 95vh;
    margin: auto;
  }
  
  .project-modal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px;
    margin: 0 !important;
    position: fixed !important;
    inset: 0 !important;
  }
  
  .project-modal[hidden] {
    display: none !important;
  }
  
  .modal-content {
    margin: auto !important;
    align-self: center !important;
    justify-self: center !important;
    width: min(1400px, 95vw) !important;
    max-height: 95vh !important;
  }
  
  /* Galerie mobile : EXACTEMENT les mêmes styles que desktop */
  .gallery-prev,
  .gallery-next {
    width: 56px !important;
    height: 56px !important;
    font-size: 24px !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 20px !important;
    right: auto !important;
    z-index: 10 !important;
    border: none !important;
    background: rgba(255, 255, 255, .2) !important;
    color: var(--white) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: background .2s, transform .2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  }
  
  .gallery-next {
    left: auto !important;
    right: 20px !important;
  }
  
  .gallery-prev:hover,
  .gallery-next:hover {
    background: rgba(255, 255, 255, .3) !important;
    transform: translateY(-50%) scale(1.1) !important;
  }
  
  .gallery-image {
    max-width: 90% !important;
    max-height: 85vh !important;
    width: auto !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
  }
  
  .gallery-viewport {
    max-height: 85vh !important;
    position: relative !important;
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    width: 100% !important;
    min-height: 200px !important;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
