/* ====================== RESET & GLOBAUX ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}
body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  background-color: #001f3f; /* <- c'est TOUT ce qu'il faut changer ici */
  line-height: 1.6;
  padding-top: 68px;
  margin-top: 0 !important;
}

/* ====================== CONTAINERS ====================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ====================== HEADER ====================== */
header {
  background-color: #001f3f;
  width: 100%;
  left: 0;
  top: 0;
  position: fixed;
  z-index: 20000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 0 !important;
  border-bottom: none !important;
  z-index: 20000;
}
.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 5vw 12px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
}
header .logo {
  flex-shrink: 0;
}
header .logo img {
  max-height: 50px;
  width: auto;
  display: block;
  filter: grayscale(30%) brightness(1.2);
  transition: filter 0.3s, opacity 0.3s;
}
header .logo img:hover {
  filter: none;
  opacity: 1;
}
.site-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

/* ====================== NAVIGATION ====================== */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
nav ul li a:hover {
  color: #e67e22;
}

/* ====================== HERO ====================== */
.hero {
  background: url('images/banniere.png') center/cover no-repeat;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 31, 63, 0.3);
}
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 20px;
}
.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.btn, .cta-btn {
  background-color: #e67e22;
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}
.btn:hover, .cta-btn:hover {
  background-color: #cf711f;
}
.hero-diagnostics-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 0 18px 0;
  text-align: left;
}
.hero-dpe-img {
  width: 86px;
  max-width: 18vw;
  min-width: 54px;
  height: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 9px #11223333);
}
.hero-diagnostics-text {
  font-size: 1.36rem;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 4px #11223370;
  line-height: 1.25;
  font-family: 'Montserrat', sans-serif;
}
.hero-diagnostics-text strong {
  font-weight: 700;
  color: #fff;
}

/* Réduction du titre principal sur mobile */
@media (max-width: 700px) {
  .hero-content h1 {
    font-size: 2rem !important;
    margin-bottom: 10px;
    line-height: 1.2;
  }
  .hero-diagnostics-row {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .hero-dpe-img {
    width: 54px;
    max-width: 30vw;
    margin-bottom: 1px;
  }
  .hero-diagnostics-text {
    font-size: 1rem;
  }
}

/* ====================== À PROPOS & INTRO ====================== */
.about, .intro {
  background-color: #fff;
  padding: 60px 20px;
}
.intro { text-align: center; }
.about h2, .intro h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #001f3f;
  font-weight: 600;
}
.about p, .intro p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
  max-width: 800px;
}

/* ====================== EXPERTISE ====================== */
.expertise {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}
.expertise h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #001f3f;
  font-weight: 600;
}
.expertise-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.expertise-item {
  width: 270px;
  padding: 20px;
  text-align: center;
}
.expertise-item img {
  max-width: 80px;
  height: auto;
  margin-bottom: 15px;
}
.expertise-item h3 {
  font-size: 1.4rem;
  color: #001f3f;
  margin-bottom: 10px;
}
.expertise-item p {
  font-size: 1rem;
  color: #555;
}

/* ====================== PRESTATIONS & SERVICES ====================== */
.prestations, .services {
  padding: 60px 20px;
  text-align: center;
}
.prestations { background-color: #f9f9f9; }
.services { background-color: #fff; }
.prestations h2, .services h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #001f3f;
  font-weight: 600;
}
.prestations-grid, .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.prestation-item, .service-item {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  transition: transform 0.3s;
}
.service-item:hover { transform: translateY(-5px); }
.prestation-item h3, .service-item h3 {
  font-size: 1.4rem;
  color: #001f3f;
  margin-bottom: 10px;
}
.prestation-item p, .service-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* ====================== POURQUOI NOUS CHOISIR ====================== */
.why-choose {
  background-color: #f9f9f9;
  text-align: center;
  padding: 60px 20px;
}
.why-choose h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #001f3f;
  font-weight: 600;
}
.why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.why-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  transition: transform 0.3s;
}
.why-item:hover { transform: translateY(-5px); }
.why-item h3 {
  font-size: 1.2rem;
  color: #001f3f;
  margin-bottom: 10px;
}
.why-item p {
  font-size: 0.95rem;
  color: #555;
}

/* ====================== TÉMOIGNAGES ====================== */
.testimonials {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #001f3f;
  font-weight: 600;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.testimonial-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  text-align: left;
}
.testimonial-item p {
  font-style: italic;
  margin-bottom: 10px;
}
.testimonial-item h4 {
  text-align: right;
  color: #001f3f;
}

/* ====================== FAQ ====================== */
.faq {
  background-color: #f9f9f9;
  padding: 60px 20px;
}
.faq .container {
  max-width: 800px;
  margin: 0 auto;
}
.faq h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #001f3f;
  font-weight: 600;
}
.faq-item { margin-bottom: 20px; }
.faq-item h3 {
  font-size: 1.1rem;
  color: #001f3f;
  margin-bottom: 5px;
}
.faq-item p {
  color: #555;
  font-size: 0.95rem;
}

/* ====================== CONTACT / DEVIS ====================== */
.contact {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #001f3f;
  font-weight: 600;
}
.contact p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}
.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact input, .contact select, .contact textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contact button {
  background-color: #e67e22;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  transition: background-color 0.3s;
}
.contact button:hover {
  background-color: #cf711f;
  cursor: pointer;
}

/* ====================== ZONE D'INTERVENTION ====================== */
.intervention {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.intervention h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #001f3f;
  font-weight: 600;
}
.intervention p {
  font-size: 1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 30px;
}
.intervention .map {
  max-width: 600px;
  margin: 0 auto;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
.intervention .map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ====================== CTA BAND ====================== */
.cta-band {
  background-color: #001f3f;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}
.cta-band h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.cta-band p {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* ====================== ENGAGEMENTS ====================== */
.engagements {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.engagements h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #001f3f;
  font-weight: 600;
}
.engagements ul {
  list-style: disc outside;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  color: #555;
}
.engagements ul li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* ====================== CERTIFICATIONS ====================== */
.certifications {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}
.certifications h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #001f3f;
  font-weight: 600;
}
.certifications ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.certifications li {
  max-width: 200px;
  text-align: left;
  color: #555;
}
.certifications li h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #001f3f;
}
.certif-item {
  max-width: 220px;
  color: #555;
  text-align: left;
}
.certif-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}
.certif-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.certif-item h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #001f3f;
  font-weight: 700;
}
.certif-item p {
  margin: 0;
  font-size: 0.99rem;
  color: #555;
  margin-left: 4px;
}

/* ====================== MENTIONS LÉGALES ====================== */
.legal {
  background-color: #fff;
  padding: 40px 20px;
  font-size: 0.8rem;
  color: #555;
  text-align: center;
}
.legal a {
  color: #001f3f;
  text-decoration: underline;
}

/* ====================== FOOTER ====================== */
footer {
  background-color: #001f3f;
  color: #fff;
  padding: 40px 20px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}
.footer-section {
  flex: 1;
  min-width: 220px;
}
.footer-section h4 {
  margin-bottom: 12px;
  text-decoration: underline;
  font-size: 1.2rem;
  font-weight: 600;
}
.footer-section p,
.footer-section ul,
.footer-section a {
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-logo {
  width: 130px;
  margin-bottom: 15px;
}
.navigation ul,
.contact-info ul {
  list-style: none;
}
.navigation ul li,
.contact-info ul li {
  margin-bottom: 10px;
}
.navigation ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.navigation ul li a:hover {
  color: #e67e22;
}
.contact-info ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.contact-info ul li a:hover {
  color: #2ecc71;
}
.social-links a {
  font-size: 1.2rem;
  margin-right: 15px;
  color: #fff;
  transition: color 0.3s;
}
.social-links a:hover {
  color: #e67e22;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 0.9rem;
  background-color: #001f3f;
  color: #fff;
}
.footer-bottom .footer-legal-links {
  margin-bottom: 8px;
}
.footer-bottom .footer-legal-links a {
  color: #fff;
  text-decoration: underline;
  margin: 0 5px;
  transition: color 0.3s;
}
.footer-bottom .footer-legal-links a:hover {
  color: #e67e22;
}
.footer-bottom .copyright { margin: 0; }
footer .footer-logo-section {
  background: none;
  padding: 0;
}
footer .footer-logo-section .footer-logo img {
  max-height: 60px;
  width: auto;
  display: block;
  margin-bottom: 15px;
}

/* ====================== PRESTATIONS (GRID & MODALES) ====================== */
.prestations {
  background-color: #fff;
  padding: 80px 20px;
}
.prestations h2 {
  font-size: 2.4rem;
  color: #001f3f;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 600;
}
.prestations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-items: center;
}
.prestation-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.prestation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.prestation-card .prestation-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-right: 12px;
  flex-shrink: 0;
  display: block;
  max-width: 100%;
  max-height: 54px;
}
.prestation-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background-color: #001f3f;
  color: #fff;
  min-height: 80px;
}
.prestation-card .card-header i {
  font-size: 1.5rem;
  width: 1.5rem;
  text-align: center;
}
.prestation-card .card-header h3 {
  flex: 1;
  text-align: left;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}
.prestation-card .card-body {
  padding: 20px;
  flex: 1;
}
.prestation-card .card-body p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}
.prestations-grid > .prestation-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}

/* ----- MODALES PRESTATIONS ----- */
body.modal-open {
  overflow: hidden !important;
  /* PLUS DE position: fixed ni width forcé ici */
}

.prestation-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16,24,32,0.87);
  overflow-y: auto;  /* <-- Permet le scroll dans la modale si contenu long */
  -webkit-overflow-scrolling: touch;
  padding: 0; /* pas de padding extérieur */
  justify-content: center;
  align-items: flex-start; /* Important : commence en haut ! */
}

.prestation-modal.active { display: flex; }
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.prestation-modal .modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,31,63,0.15);
  max-width: 520px;
  width: 94vw;
  min-width: 280px;
  padding: 46px 34px 36px 34px;
  color: #16243a;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.08rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideInModal 0.32s cubic-bezier(.6,0,.5,1.25);
}
@keyframes slideInModal {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
/* Scrollbar custom */
.prestation-modal .modal-content::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}
.prestation-modal .modal-content::-webkit-scrollbar-thumb {
  background: #e4e9ef;
  border-radius: 10px;
  min-height: 40px;
  border: 2px solid #fff;
}
.prestation-modal .modal-content::-webkit-scrollbar-track {
  background: #f4f6fa;
  border-radius: 10px;
}
.prestation-modal .modal-content {
  scrollbar-color: #e4e9ef #f4f6fa;
  scrollbar-width: thin;
}
/* Close bouton */
.prestation-modal .close-modal {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 2.1rem;
  color: #001f3f;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.16s;
  z-index: 10;
  line-height: 1;
}
.prestation-modal .close-modal:hover {
  color: #143465;
}
/* Titres et sous-titres */
.prestation-modal .modal-content h2 {
  font-family: 'Playfair Display', serif;
  color: #001f3f;
  font-size: 2.1rem;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
  font-weight: 700;
  display: block;
}
.prestation-modal .modal-content h3 {
  color: #001f3f;
  font-size: 1.12rem;
  margin-top: 28px;
  margin-bottom: 7px;
  font-weight: 700;
  letter-spacing: 0.1px;
}
/* Paragraphes et listes */
.prestation-modal .modal-content p,
.prestation-modal .modal-content ul,
.prestation-modal .modal-content ol {
  font-size: 1.05rem;
  color: #273d59;
  margin-bottom: 9px;
}
.prestation-modal .modal-content ul,
.prestation-modal .modal-content ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
.prestation-modal .modal-content ul li,
.prestation-modal .modal-content ol li {
  margin-bottom: 7px;
  line-height: 1.5;
  position: relative;
}
.prestation-modal .modal-content ul li::before {
  content: "•";
  color: #001f3f;
  margin-right: 7px;
  font-size: 1em;
  position: relative;
  top: -1px;
}
.prestation-modal .modal-content ol li {
  counter-increment: step;
}
.prestation-modal .modal-content ol {
  counter-reset: step;
}
.prestation-modal .modal-content ol li::before {
  content: counter(step) ".";
  color: #001f3f;
  font-weight: bold;
  margin-right: 7px;
}
.prestation-modal.active {
  display: flex;
  /* Flexbox pour centrer horizontalement mais coller en haut */
}

.prestation-modal .modal-content {
  background: #fff;
  max-width: 96vw;
  width: 440px;
  margin: 32px auto 32px auto;  /* espace en haut/bas */
  border-radius: 12px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.12);
  padding: 32px 20px;
  overflow-y: auto; /* Permet aussi le scroll interne si besoin */
  max-height: calc(100vh - 64px);
}

@media (max-width: 600px) {
  .prestation-modal .modal-content {
    width: 96vw;
    min-width: 0;
    max-width: 98vw;
    margin: 16px auto;
    padding: 18px 4vw 20px 4vw;
    max-height: calc(100vh - 18px);
  }
}
/* ====================== MENU BURGER + NAVIGATION MOBILE ====================== */
.burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 20200;
  transition: filter 0.2s;
  padding: 0;
  position: relative;
}
.burger span {
  display: block;
  height: 4px;
  width: 32px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: all 0.32s cubic-bezier(.65,0,.35,1);
  position: relative;
}
  .burger.burger-open span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);

  }
  .burger.burger-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.15);
  }
  .burger.burger-open span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
  }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 17, 34, 0.42);
  z-index: 20100;    /* <--- Overlay doit être EN DESSOUS du menu */
  transition: opacity 0.22s;
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}
.prestation-plus {
  display: block;
  margin: 24px auto 0 auto; /* Espace au dessus + centrage horizontal */
  width: 48px;              /* ou ajuste la taille */
  height: 48px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s;
}
.prestation-plus:hover {
  transform: scale(1.1) rotate(5deg);
}

/* ====================== RESPONSIVE NAVBAR & MODAL ====================== */
@media (max-width: 950px) {
  .burger {
    display: flex;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 20210;
    transition: filter 0.2s;
    padding: 0;
    position: relative;
    margin-left: 15px;
  }
  .burger span {
    display: block;
    height: 4px;
    width: 32px;
    margin: 4px 0;
    background: #fff;
    border-radius: 2px;
    transition: all 0.32s cubic-bezier(.65,0,.35,1);
    position: relative;
  }
  .burger.burger-open span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);

  }
  .burger.burger-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.15);
  }
  .burger.burger-open span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
  }

  /* --- Overlay (effet fondu sur le fond) --- */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 17, 34, 0.42); /* fondu sombre semi-transparent */
    z-index: 20100;
    transition: opacity 0.22s;
  }
  .nav-overlay.active {
    display: block;
    opacity: 1;
  }

  /* --- Menu burger qui slide de la droite --- */
  .nav-links {
    position: fixed;
    top: 0; 
    right: 0;
    width: 50vw;             /* prend la moitié droite */
    max-width: 340px;        /* optionnel : limite la largeur max sur tablette */
    min-width: 210px;        /* optionnel : minimum pour la lisibilité */
    height: 100vh;
    background: #00294d;
    box-shadow: -4px 0 28px rgba(0,0,0,0.13);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 68px; /* la hauteur de ton header */
    transform: translateX(100%);
    transition: transform 0.33s cubic-bezier(.7,0,.3,1);
  z-index: 20200 !important; /* <--- Menu DOIT être AU-DESSUS de l'overlay */
    overflow-y: auto;
    overflow-x: hidden;
  }
  .nav-links.nav-open {
    transform: translateX(0%);
  }
  .nav-links ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: stretch;
    margin-top: 16px;
    padding: 0 0;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links li a {
    display: block;
    font-size: 1.18rem;
    font-weight: 600;
    width: 100%;
    padding: 18px 28px 16px 28px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    letter-spacing: 0.1px;
    word-break: break-word;
    overflow-wrap: break-word;
    transition: background 0.16s, color 0.2s;
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .nav-links li a:hover {
    color: #e67e22;
    background: rgba(255,255,255,0.03);
  }

  /* --- Empêche le scroll du fond quand le menu est ouvert --- */
  body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
    width: 100vw;
    position: fixed;
    touch-action: none;
  }

  /* --- Containers, header compacts sur mobile --- */
  .container {
    width: 100%;
    max-width: 100vw;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .header-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* ----- Pour modales PRESTATIONS sur mobile ----- */
@media (max-width: 700px) {
  .prestation-modal .modal-content {
    max-width: 98vw;
    width: 98vw;
    min-width: 0;
    padding: 14px 3vw 16px 3vw;
    font-size: 0.98rem;
    border-radius: 12px;
  }
  .prestation-modal .close-modal {
    top: 8px;
    right: 10px;
    font-size: 1.6rem;
  }
  .prestation-modal .modal-content h2 {
    font-size: 1.16rem;
  }
}
/* ----- MODALE PRESTATION OPTIMISÉE MOBILE ----- */
@media (max-width: 700px) {
  .prestation-modal {
    /* reste inchangé, SAUF display ! */
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    /* display: none par défaut, donc pas de display ici ! */
  }
  .prestation-modal.active {
    display: flex !important;      /* <-- Visible QUE si .active */
  }
  .prestation-modal .modal-content {
    width: 50vw !important;
    max-width: 340px !important;
    min-width: 0 !important;
    height: 55vh !important;
    max-height: 66vh !important;
    min-height: 180px !important;
    margin: 0 auto !important;
    padding: 16px 3vw 18px 3vw !important;
    font-size: 0.97rem !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
    display: block !important;
  }
  .prestation-modal .close-modal {
    top: 10px;
    right: 14px;
    font-size: 1.7rem;
  }
  .prestation-modal .modal-content h2 {
    font-size: 1.08rem;
  }
}
@media (max-width: 400px) {
  .prestation-modal .modal-content {
    width: 80vw !important;
    max-width: 92vw !important;
    min-width: 0 !important;
    height: 65vh !important;
    max-height: 76vh !important;
    font-size: 0.92rem !important;
    padding: 8px 2vw 10px 2vw !important;
  }
}
/* =================== MODALES PRESTATIONS (CROSSPLATFORM) =================== */

.prestation-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16,24,32,0.87);
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: auto; /* Permet le scroll SI modale trop haute */
  -webkit-overflow-scrolling: touch;
}
.prestation-modal.active {
  display: flex !important;
}

/* MODAL CENTRÉE : contenu toujours au centre sauf sur mobile */
.prestation-modal .modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,31,63,0.15);
  width: 440px;
  max-width: 96vw;
  min-width: 280px;
  max-height: 90vh;
  margin: 0 auto;
  padding: 46px 34px 36px 34px;
  color: #16243a;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.08rem;
  position: relative;
  overflow-y: auto;
  animation: slideInModal 0.32s cubic-bezier(.6,0,.5,1.25);
  display: block;
}
@media (max-width: 700px) {
  .prestation-modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  .prestation-modal .modal-content {
    width: 92vw !important;
    max-width: 98vw !important;
    min-width: 0 !important;
    height: 60vh !important;
    max-height: 82vh !important;
    min-height: 180px !important;
    margin: 0 auto !important;
    padding: 16px 3vw 18px 3vw !important;
    font-size: 0.97rem !important;
    border-radius: 16px !important;
  }
  .prestation-modal .close-modal {
    top: 10px;
    right: 14px;
    font-size: 1.7rem;
  }
  .prestation-modal .modal-content h2 {
    font-size: 1.12rem;
  }
}
@media (max-width: 400px) {
  .prestation-modal .modal-content {
    width: 92vw !important;
    max-width: 99vw !important;
    height: 70vh !important;
    max-height: 90vh !important;
    font-size: 0.92rem !important;
    padding: 8px 2vw 10px 2vw !important;
  }
}

/* Animations */
@keyframes slideInModal {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
/* -------- MODALE : image à gauche du titre (PC seulement) -------- */
@media (min-width: 700px) {
  .modal-header-flex {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
  }
  .modal-header-flex .prestation-icon {
    width: 66px;
    height: 66px;
    min-width: 54px;
    max-width: 80px;
    object-fit: contain;
    margin: 0;
    flex-shrink: 0;
  }
  .modal-header-flex h2 {
    margin: 0;
    font-size: 2.2rem;
    color: #001f3f;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.2px;
    /* Le reste est hérité */
  }
}

/* -------- MODALE : largeur agrandie sur desktop -------- */
@media (min-width: 700px) {
  .prestation-modal .modal-content {
    max-width: 650px !important;   /* ou + large à ta convenance */
    width: 100%;
    min-width: 340px;
    height : 75%;
  }
    .modal-header-flex .prestation-icon {
    width: 66px;
    height: 66px;
    max-width: 80px;
  }
  .modal-header-flex h2 {
    font-size: 2rem;
  }
}
/* MODAL: Image à gauche et titre à droite, toujours (mobile + PC) */
.modal-header-flex {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.modal-header-flex .prestation-icon {
  width: 54px;
  height: 54px;
  min-width: 44px;
  max-width: 64px;
  object-fit: contain;
  margin: 0;
  flex-shrink: 0;
}

.modal-header-flex h2 {
  margin: 0;
  font-size: 1.22rem;
  color: #001f3f;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
  word-break: break-word;
}

/* Sur desktop, agrandit un peu la taille */
@media (min-width: 700px) {
  .prestation-modal .modal-content {
    max-width: 620px !important;
    width: 100%;
    min-width: 340px;
  }
  .modal-header-flex .prestation-icon {
    width: 66px;
    height: 66px;
    max-width: 80px;
  }
  .modal-header-flex h2 {
    font-size: 2rem;
  }
}
.diagnostic-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5em 1.3em;
  margin: 0.6em 0 1em 0;
  padding: 1em;
  border: 1px solid #d0d4dc;
  border-radius: 10px;
  background: #fff;
  max-width: 600px;
  /* pour centrer dans le formulaire */
  margin-left: auto;
  margin-right: auto;
}

.diagnostic-checkbox-grid label {
  display: flex;
  align-items: center;
  font-size: 0.8em;
  cursor: pointer;
  /* wrap automatique du texte */
  white-space: normal;
  word-break: break-word;
  max-width: 92%;      /* Limite la largeur du label dans la colonne */
}

.diagnostic-checkbox-grid input[type="checkbox"] {
  margin-right: 0.5em;
  accent-color: #18335c;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.diagnostic-label {
  display: block;
  text-align: center;
  margin-bottom: 0.2em;
  font-size: 1.12em;
}

/* Toujours 3 colonnes, même sur mobile */
.diagnostic-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.5em 1.3em;
  margin: 0.6em 0 1em 0;
  padding: 1em;
  border: 1px solid #d0d4dc;
  border-radius: 10px;
  background: #fff;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 650px) {
  .diagnostic-checkbox-grid {
    max-width: 99vw;
    padding: 0.5em;
    font-size: 0.97em;
  }
}
@media (max-width: 430px) {
  .diagnostic-checkbox-grid {
    max-width: 100vw;
    padding: 0.35em;
    font-size: 0.95em;
  }
}

@media (max-width: 650px) {
  .diagnostic-checkbox-grid {
    grid-template-columns: 1fr 1fr !important;
    max-width: 98vw;
    row-gap: 0.7em;
    column-gap: 1.2em;
    justify-items: flex-start;
    align-items: center;
  }
  .diagnostic-checkbox-grid label {
    white-space: normal;
    word-break: normal;
    font-size: 0.7em;
    max-width: 95%;
  }
}
/* ===== Centrage uniquement pour les nouveaux champs du formulaire ===== */
.contact .form-group.form-center {
  text-align: center;
  margin-bottom: 18px;
}

.contact .form-group.form-center label,
.contact .form-group.form-center .diagnostic-label {
  display: block;
  text-align: center;
  font-weight: 600;
  font-size: 1.13em;
  margin-bottom: 7px;
  letter-spacing: 0.03em;
}

.contact .form-group.form-center select,
.contact .form-group.form-center input[type="text"],
.contact .form-group.form-center input[type="tel"],
.contact .form-group.form-center input[type="email"],
.contact .form-group.form-center textarea {
  margin: 0 auto 0 auto;
  display: block;
  width: 100%;
  max-width: 330px;
  background: #f7f9fc;
  border: 1px solid #d1d7e0;
  color: #001f3f;
  font-size: 1em;
  border-radius: 6px;
  padding: 11px 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact .form-group.form-center select:focus,
.contact .form-group.form-center input:focus,
.contact .form-group.form-center textarea:focus {
  border-color: #e67e22;
  outline: none;
  box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.12);
}

.contact .form-group.form-center > div {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 4px;
}

.contact .form-group.form-center input[type="radio"] {
  accent-color: #e67e22;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

@media (max-width: 500px) {
  .contact .form-group.form-center select,
  .contact .form-group.form-center input[type="text"],
  .contact .form-group.form-center input[type="tel"],
  .contact .form-group.form-center input[type="email"],
  .contact .form-group.form-center textarea {
    max-width: 99vw;
    font-size: 1em;
  }
}
