@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  color: #111;
  background: #fff;
}

a { color: inherit; }

/* ── Navigation fixe commune aux pages entités ── */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1001;
  background: white;
  display: flex;
  align-items: center;
  padding: 0.4rem 2rem 0.8rem;
  gap: 1.5rem;
  border-bottom: none;
}

.site-header .logo-link img {
  height: 100px;
  width: auto;
  display: block;
}

.site-header .header-right {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.2rem;
}

.site-header nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 2px solid #E8E32C;
  padding-bottom: 0.3rem;
}

.site-header .h1-sub {
  font-size: 1rem;
  font-weight: 400;
  color: #555;
  border: none !important;
  text-decoration: none !important;
  padding-bottom: 0.3rem;
}

.nav-btn {
  display: inline-block;
  padding: 4px 16px 6px;
  color: rgb(19, 19, 19);
  text-transform: uppercase;
  letter-spacing: .2rem;
  font-weight: bolder;
  font-size: 1.0rem;
  text-decoration: none;
  transition: background .3s, color .3s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-btn:hover { background: #458ED2; color: white; }

.balise {
  text-align: center;
  font-size: 0.8rem;
  padding: 2px 0 4px;
}

.header-balise {
  text-align: center;
  font-size: 0.85rem;
  padding: 3px 0 2px;
  border-top: 1px solid #eee;
  width: 100%;
}
.header-balise a {
  margin: 0 14px;
  text-decoration: none;
  color: #111;
  font-size: 0.85rem;
}
.header-balise a:hover { color: #458ED2; text-decoration: underline; }
.balise a {
  font-family: "Titillium Web", sans-serif;
  margin-right: 20px;
  text-decoration: none;
  color: #111;
}
.balise a:hover { text-decoration: underline; color: #458ED2; font-weight: 600; }

/* ── Main content ── */
main {
  width: 100%;
  padding-top: 3cm;
}

section {
  width: 90%;
  margin: auto;
}

/* ── Bloc texte + carousel ── */
.caroussel { padding: 2rem; }

.caroussel-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin: 2rem 0;
}

.text-block {
  width: 35%;
  max-height: 45vh;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: #E8E32C transparent;
  padding: 2rem;
  background-color: #458ED2;
  border-radius: 1rem;
  flex-shrink: 0;
}
.text-block::-webkit-scrollbar { width: 4px; }
.text-block::-webkit-scrollbar-track { background: transparent; }
.text-block::-webkit-scrollbar-thumb { background: #E8E32C; border-radius: 4px; }
.text-block p { color: white; margin: 0.2rem 0; }

/* ── Carousel ── */
.carousel {
  position: relative;
  width: 560px;
  flex-shrink: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  background: #1a1a1a;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 420px;
}
.carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.5s ease;
}
.carousel-img.active { opacity: 1; }
.carousel-track { overflow: hidden; }
.carousel-img.active:hover { transform: scale(1.12) !important; cursor: zoom-in; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: white;
  border: none;
  font-size: 2.2rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.carousel-btn:hover { background: rgba(69,142,210,0.85); }
.carousel-btn.prev { left: 0.6rem; }
.carousel-btn.next { right: 0.6rem; }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}
#lightbox-img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
}

.carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}
.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}
.carousel-dot.active { background: #E8E32C; transform: scale(1.35); }

.carousel-counter {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.45);
  color: white;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  z-index: 2;
}

/* ── Section Nos Moyens ── */
.moyens {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.moyens h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}
.flex-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-around;
  width: 100%;
}
.machine-card {
  width: 20vw;
  min-width: 240px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 5px 5px 20px 0 rgba(0,0,0,0.2);
  border-radius: 2rem;
  padding-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
}

.machine-card.visible {
  animation: cardAppear 0.5s ease forwards;
}
.machine-card .img-wrap {
  width: 80%;
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  margin: 1.5rem 0 1rem;
}
.machine-card .img-wrap::after {
  content: '';
  width: 110%; height: 110%;
  position: absolute;
  transform: translate(-95%, -5%);
  background: #E8E32C;
  z-index: -1;
  border-radius: 1rem;
}
.machine-card .img-wrap img {
  width: 100%; height: 100%;
  border-radius: 1rem;
  object-fit: cover;
  transition: transform .5s ease;
}
.machine-card .img-wrap img:hover {
  transform: scale(1.12);
}
.machine-card .desc {
  text-align: center;
  padding: 0 1.5rem;
}
.machine-card .desc h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.machine-card .desc p { font-size: 0.85rem; margin: .1rem 0; }

/* ── Page d'accueil ── */
.home-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  background-image: linear-gradient(95deg, rgba(11,24,35,0.4) 10%, rgba(69,142,210,1) 150%),
                    url('images/bg-header.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.home-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.home-logo { width: 100%; text-align: center; margin-bottom: 1.5rem; }
.home-logo img { width: 600px; max-width: 90vw; height: auto; display: inline-block; }

.home-content h1 {
  font-size: 3.2rem;
  font-weight: 400;
  text-align: center;
  color: white;
  width: 70%;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
}

.home-content > p {
  color: white;
  text-align: center;
  width: 60%;
  margin-bottom: 2rem;
}

/* Entity cards on home */
.entity-cards {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
  width: 65vw;
  margin-bottom: 2rem;
}

.entity-card {
  background: white;
  width: 13rem;
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: .7rem;
  text-decoration: none;
  transition: background-color .4s ease-in;
}
.entity-card:hover { background-color: #458ED2; }
.entity-card:hover h5, .entity-card:hover span { color: white; }
.entity-card h5 {
  font-size: 1.1rem;
  text-align: center;
  text-transform: uppercase;
  color: black;
  transition: color .4s;
  font-weight: 600;
}
.entity-card span {
  font-size: 0.8rem;
  color: black;
  transition: color .4s;
  text-align: center;
  display: block;
  line-height: 1.6;
}

/* Nav buttons on home */
.home-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 80%;
  margin: 0 auto;
}
.home-nav-btn {
  display: inline-block;
  background: #E8E32C;
  border-radius: 2rem;
  padding: 5px 20px 8px;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15rem;
  color: #111;
  box-shadow: 5px 5px 20px 0 rgba(0,0,0,0.4);
  transition: background .4s, color .4s;
  margin: 0.5rem;
}
.home-nav-btn:hover { background: #458ED2; color: white; }

/* ── Formulaire contact ── */
.contact-page {
  max-width: 700px;
  margin: 4rem auto;
  padding: 0 1rem;
}
.contact-page h2 { font-size: 1.8rem; font-weight: 900; text-transform: uppercase; margin-bottom: 2rem; }
.contact-page h4 { font-size: 1.4rem; font-weight: 400; margin: 3rem 0 1rem; }

.form-row { display: flex; gap: 2rem; flex-wrap: wrap; }
.form-group {
  position: relative;
  padding-top: 15px;
  margin: 1rem 0;
  flex: 1;
  min-width: 200px;
}
.form-group::before {
  content: '';
  width: .2rem; height: 100%;
  background: #E8E32C;
  position: absolute;
  left: -1rem; top: 0;
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid #333;
  outline: 0;
  padding: 7px 0;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group label {
  position: absolute;
  top: 18px;
  left: 0;
  font-size: 1rem;
  transition: .2s;
  pointer-events: none;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: 0; font-weight: 700; color: #E8E32C; font-size: .85rem;
}
.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #E8E32C;
}

.checkbox-row { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.checkbox-row input[type="checkbox"] { display: none; }
.checkbox-row label.toggle {
  box-sizing: border-box;
  display: inline-block;
  width: 3rem; height: 1.5rem;
  border-radius: 1.5rem;
  padding: 2px;
  background: #c0ceda;
  transition: background .5s;
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-row label.toggle::before {
  box-sizing: border-box;
  display: block; content: '';
  height: calc(1.5rem - 4px); width: calc(1.5rem - 4px);
  border-radius: 50%;
  background: #fff;
  transition: margin .5s;
}
.checkbox-row input[type="checkbox"]:checked + label.toggle { background: #E8E32C; }
.checkbox-row input[type="checkbox"]:checked + label.toggle::before { margin-left: 1.5rem; }
.checkbox-row p { font-size: .9rem; }
.checkbox-row a { border-bottom: 2px solid #E8E32C; cursor: pointer; font-weight: 600; text-decoration: none; }

.submit-btn {
  display: block;
  width: 200px;
  margin: 2rem auto;
  padding: 1rem;
  background: #E8E32C;
  color: #111;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .3s;
}
.submit-btn:hover { background: #458ED2; color: white; }
.submit-btn:disabled { background: gray; cursor: not-allowed; }

.form-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 4px;
  font-weight: 600;
}
.form-feedback.ok { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-feedback.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.form-feedback button { background: none; border: none; cursor: pointer; font-size: 1rem; color: inherit; }
.form-error { color: #c0392b; font-size: .85rem; margin-top: .2rem; }

/* ── Coordonnées ── */
.coordonnees-page { max-width: 1000px; margin: 4rem auto; padding: 0 1rem; }
.coordonnees-page h3 { font-size: 1.8rem; font-weight: 400; text-align: center; margin-bottom: 2rem; }
.entreprise-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.entreprise-card {
  width: 22vw; min-width: 220px;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 1rem;
  border-left: 4px solid #E8E32C;
}
.entreprise-card img { width: 80%; height: auto; margin-bottom: 1rem; }
.entreprise-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.entreprise-card p { font-size: .9rem; margin: .1rem 0; }

/* ── Réalisations ── */
.realisations-page { max-width: 1100px; margin: 4rem auto; padding: 0 1rem; }
.realisations-page h1 { font-size: 2rem; font-weight: 400; text-align: center; margin-bottom: 2rem; }
.posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
@keyframes cardAppear {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.post-card {
  width: 220px;
  box-shadow: 3px 3px 12px rgba(0,0,0,0.12);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: none;
}

.post-card.visible {
  animation: cardAppear 0.5s ease forwards;
}
.post-card { overflow: hidden; }
.post-card img { width: 100%; height: 170px; object-fit: cover; cursor: pointer; transition: transform 0.45s ease; }
.post-card:hover img { transform: scale(1.06); }
.post-card .caption { padding: .75rem .75rem .4rem; font-size: .8rem; color: #333; line-height: 1.5; }
.caption-text { display: block; }
.caption-collapsed {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.caption-toggle {
  display: inline-block;
  margin-top: .25rem;
  background: none;
  border: none;
  padding: 0;
  font-size: .75rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  text-decoration: underline;
}
.caption-toggle:hover { opacity: .7; }
.post-card .ig-link { display: block; text-align: center; font-size: .75rem; color: #458ED2; padding-bottom: .5rem; text-decoration: none; }
.post-card .ig-link:hover { text-decoration: underline; }
.ig-subtitle { text-align: center; color: #555; font-size: .95rem; margin-bottom: 3.5rem; }
.ig-link-title { color: #458ED2; text-decoration: none; font-weight: 600; }
.ig-link-title:hover { text-decoration: underline; }
.post-card { position: relative; }
.carousel-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: .7rem; padding: 3px 8px; border-radius: 12px;
  pointer-events: none;
}

/* ── Footer ── */
footer {
  background: #fff;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}
footer .footer-inner {
  display: flex;
  justify-content: space-around;
  width: 70%;
  margin: auto;
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
  padding: 2rem 0;
}
footer .footer-col { display: flex; flex-direction: column; align-items: center; color: #111; }
footer .footer-col span { font-size: 1.1rem; font-weight: 700; font-style: italic; margin-bottom: 1rem; }
footer .footer-col p { font-size: .9rem; color: #111; }
footer .footer-legal {
  display: block; text-align: center;
  margin: 1.5rem auto;
  color: #555; font-size: .8rem; text-transform: uppercase;
  text-decoration: none;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── Tablette (≤ 960px) ──────────────────────────────────────── */
@media (max-width: 960px) {

  /* Header */
  .site-header {
    padding: 0.4rem 1rem 0.6rem;
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  .site-header .logo-link img { height: 70px; }
  .site-header nav { gap: 0.2rem; }
  .nav-btn { font-size: 0.85rem; padding: 4px 10px 6px; letter-spacing: .05rem; }

  /* Home */
  .home-content h1 { font-size: 2rem; width: 90%; }
  .home-logo img { width: 40%; }
  .entity-cards { width: 95vw; flex-wrap: wrap; }
  .entity-card { width: 45%; min-height: 10rem; }
  .home-content > p { width: 85%; }
  .home-nav { width: 95%; }

  /* Caroussel section */
  .caroussel-content { flex-direction: column; align-items: center; gap: 1.5rem; }
  .text-block { width: 90%; max-height: 30vh; }
  .carousel { width: 90%; }
  .carousel-track { height: 280px; }

  /* Machines */
  .flex-card { gap: 1.5rem; }
  .machine-card { width: 44%; min-width: 200px; }

  /* Réalisations */
  .post-card { width: 200px; }

  /* Coordonnées */
  .entreprise-grid { gap: 1.2rem; }
  .entreprise-card { width: 44%; min-width: 200px; }

  /* Footer */
  footer .footer-inner {
    flex-direction: column;
    align-items: center;
    width: 90%;
    gap: 2rem;
  }
}

/* ── Mobile (≤ 600px) ───────────────────────────────────────── */
@media (max-width: 600px) {

  /* Header — navigation scrollable horizontalement */
  .site-header {
    padding: 0.4rem 0.8rem 0.5rem;
    gap: 0.5rem;
  }
  .site-header .logo-link img { height: 55px; }
  .site-header .h1-sub { display: none; }
  .site-header .header-right { gap: 0.1rem; }
  .site-header nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .nav-btn { font-size: 0.78rem; padding: 3px 8px 5px; white-space: nowrap; letter-spacing: 0; }
  .header-balise { font-size: 0.75rem; }
  .header-balise a { margin: 0 8px; }

  /* Home */
  .home-content h1 { font-size: 1.4rem; }
  .home-logo img { width: 70%; }
  .entity-cards { flex-direction: column; align-items: center; width: 90vw; }
  .entity-card { width: 80%; min-height: 9rem; }
  .home-content > p { width: 90%; font-size: 0.9rem; }
  .home-nav-btn { font-size: 0.85rem; padding: 5px 14px 7px; min-width: 100px; }

  /* main padding-top réduit (header plus petit) */
  main { padding-top: 2cm; }

  /* Caroussel */
  .caroussel { padding: 1rem; }
  .text-block { width: 95%; padding: 1rem; }
  .carousel { width: 95%; }
  .carousel-track { height: 220px; }
  .carousel-btn { font-size: 1.6rem; width: 2.2rem; height: 2.2rem; }

  /* Machines */
  .machine-card { width: 90vw; }
  .moyens { padding: 2rem 1rem; }

  /* Réalisations — 2 colonnes */
  .posts-grid { gap: 0.8rem; }
  .post-card {
    width: calc(50% - 0.4rem);
    min-width: 140px;
    border-radius: 0.6rem;
  }
  .post-card img { height: 130px; }
}

/* ════════════════════════════════════════════════════════════
   REFONTE ACCUEIL — nouveau style "moderne / industriel"
   ════════════════════════════════════════════════════════════ */
:root{
  --lpi-bleu:       #2f6fb0;
  --lpi-bleu-vif:   #458ED2;
  --lpi-bleu-clair: #7db4e8;
  --lpi-jaune:      #E8E32C;
  --lpi-noir:       #0b1623;
  --lpi-deep:       #101c2c;
  --lpi-brume:      #9fb3c8;
  --lpi-argent:     #e6edf5;
}

/* ── NAV ── */
.lpi-nav{position:fixed;top:0;left:0;right:0;z-index:500;display:flex;align-items:center;justify-content:space-between;padding:1rem 3rem;transition:background .35s,padding .35s,box-shadow .35s}
.lpi-nav.scrolled{background:rgba(11,22,35,0.92);backdrop-filter:blur(16px);padding:.7rem 3rem;box-shadow:0 4px 24px rgba(0,0,0,0.15)}
.lpi-nav-logo img{height:48px;width:auto;display:block;filter:drop-shadow(0 0 8px rgba(0,0,0,0.25))}
.lpi-nav-links{display:flex;gap:2rem;list-style:none;position:absolute;left:50%;transform:translateX(-50%)}
.lpi-nav-links a{text-decoration:none;color:#fff;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;font-weight:600;position:relative;padding-bottom:3px;transition:color .2s}
.lpi-nav-links a::after{content:'';position:absolute;bottom:-2px;left:0;width:0;height:2px;background:var(--lpi-jaune);transition:width .3s ease}
.lpi-nav-links a:hover::after{width:100%}
.lpi-nav-cta{background:var(--lpi-bleu-vif);color:#fff;padding:.6rem 1.5rem;font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;text-decoration:none;border-radius:2rem;transition:background .25s,transform .2s;box-shadow:0 4px 18px rgba(69,142,210,0.4)}
.lpi-nav-cta:hover{background:var(--lpi-bleu);transform:translateY(-1px)}

/* ── HAMBURGER + MENU MOBILE ── */
.lpi-hamburger{display:none;flex-direction:column;justify-content:center;align-items:center;width:42px;height:42px;gap:5px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.2);border-radius:6px;cursor:pointer;padding:0}
.lpi-hamburger span{display:block;width:20px;height:2px;background:#fff;transition:transform .3s,opacity .3s}
.lpi-hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.lpi-hamburger.open span:nth-child(2){opacity:0}
.lpi-hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.lpi-mobile-menu{position:fixed;inset:0;z-index:490;background:rgba(11,22,35,0.97);backdrop-filter:blur(18px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.6rem;opacity:0;pointer-events:none;transition:opacity .3s ease}
.lpi-mobile-menu.open{opacity:1;pointer-events:all}
.lpi-mobile-menu a{font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:1.8rem;letter-spacing:.1em;text-transform:uppercase;color:#fff;text-decoration:none}
.lpi-mobile-menu a:hover{color:var(--lpi-jaune)}

/* ── HERO ── */
.lpi-hero{min-height:100vh;position:relative;display:flex;flex-direction:column;overflow:hidden;background:var(--lpi-noir)}
.lpi-hero-bg{position:absolute;inset:0;background-image:linear-gradient(125deg,rgba(11,22,35,0.88) 10%,rgba(47,111,176,0.55) 100%),url('images/bg-header.jpg');background-size:cover;background-position:center}
.lpi-hero-inner{position:relative;z-index:2;flex:1;display:flex;align-items:center;justify-content:space-between;gap:3rem;padding:9rem 3.5rem 3rem;max-width:1300px;margin:0 auto;width:100%}
.lpi-hero-text{max-width:560px}
.lpi-hero-side{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;width:480px;flex-shrink:0;align-content:start}
.lpi-hero-side .lpi-entity-card{background:rgba(255,255,255,0.06);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.12)}
.lpi-hero-side .lpi-entity-card .lpi-entity-name{color:#fff}
.lpi-hero-side .lpi-entity-card .lpi-entity-loc{color:var(--lpi-brume)}
.lpi-hero-side .lpi-entity-photo{aspect-ratio:16/9;max-height:70px;display:flex;align-items:center;justify-content:center;background:#fff}
.lpi-hero-side .lpi-entity-photo img{object-fit:contain}
.lpi-hero-side .lpi-entity-body{padding:.9rem 1rem}
.lpi-hero-side .lpi-entity-name{font-size:1.05rem}
.lpi-hero-side .lpi-entity-loc{font-size:.72rem;margin-bottom:.4rem}
.lpi-hero-side .lpi-entity-arrow{font-size:.7rem}
.lpi-eyebrow{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}
.lpi-eyebrow-line{width:40px;height:2px;background:var(--lpi-jaune)}
.lpi-eyebrow-text{font-size:.75rem;letter-spacing:.22em;text-transform:uppercase;color:var(--lpi-bleu-clair);font-weight:700}
.lpi-hero-title{font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:clamp(2rem,4vw,3.2rem);line-height:1.1;letter-spacing:.01em;text-transform:uppercase;color:#fff;text-shadow:2px 2px 12px rgba(0,0,0,0.3)}
.lpi-hero-title em{font-style:normal;background:linear-gradient(135deg,var(--lpi-bleu-clair),var(--lpi-jaune));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.lpi-hero-body{margin-top:1.6rem;font-size:1.05rem;color:var(--lpi-argent);line-height:1.8;max-width:560px}
.lpi-hero-actions{margin-top:2.5rem;display:flex;gap:1.2rem;flex-wrap:wrap}
.lpi-btn-primary{background:linear-gradient(135deg,var(--lpi-bleu),var(--lpi-bleu-vif));color:#fff;padding:.95rem 2.4rem;font-size:.85rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;text-decoration:none;border-radius:2.5rem;display:inline-flex;align-items:center;gap:.6rem;transition:transform .2s,box-shadow .2s;box-shadow:0 6px 24px rgba(69,142,210,0.4)}
.lpi-btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 32px rgba(69,142,210,0.5)}
.lpi-btn-outline{color:#fff;font-size:.85rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;text-decoration:none;border:1px solid rgba(255,255,255,0.3);padding:.9rem 2.2rem;border-radius:2.5rem;transition:border-color .2s,background .2s}
.lpi-btn-outline:hover{border-color:var(--lpi-bleu-clair);background:rgba(69,142,210,0.12)}

/* HERO STATS */
.lpi-hero-stats{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid rgba(255,255,255,0.08)}
.lpi-stat{padding:1.8rem 2.5rem;border-right:1px solid rgba(255,255,255,0.08);background:rgba(255,255,255,0.03);text-align:center}
.lpi-stat:last-child{border-right:none}
.lpi-stat-num{font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:2.2rem;background:linear-gradient(135deg,var(--lpi-bleu-clair),var(--lpi-jaune));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.lpi-stat-lbl{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--lpi-brume);margin-top:.3rem}

/* ── SECTION ENTITES ── */
.lpi-section{padding:5rem 3.5rem}
.lpi-section.bg-light{background:#f4f7fb}
.lpi-section-head{text-align:center;max-width:700px;margin:0 auto 3rem}
.lpi-eyebrow-dark{display:inline-flex;align-items:center;gap:.6rem;font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;color:var(--lpi-bleu);font-weight:700;margin-bottom:.8rem}
.lpi-eyebrow-dark::before{content:'//';opacity:.5}
.lpi-section-title{font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:clamp(2.2rem,4.5vw,3.2rem);text-transform:uppercase;letter-spacing:.02em;line-height:1.05;color:var(--lpi-noir)}
.lpi-section-title em{font-style:normal;color:var(--lpi-bleu-vif)}
.lpi-section-sub{margin-top:1rem;font-size:.95rem;color:#5a6b80;line-height:1.7}

.lpi-entity-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;max-width:1200px;margin:0 auto}
.lpi-entity-card{background:#fff;border-radius:1rem;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 6px 24px rgba(11,22,35,0.06);transition:transform .3s,box-shadow .3s;display:flex;flex-direction:column}
.lpi-entity-card:hover{transform:translateY(-6px);box-shadow:0 16px 40px rgba(11,22,35,0.14)}
.lpi-entity-photo{aspect-ratio:16/9;max-height:110px;overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center}
.lpi-entity-photo img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .5s ease}
.lpi-entity-card:hover .lpi-entity-photo img{transform:scale(1.06)}
.lpi-entity-body{padding:1.4rem 1.3rem;flex:1;display:flex;flex-direction:column}
.lpi-entity-name{font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:1.3rem;letter-spacing:.06em;text-transform:uppercase;color:var(--lpi-noir);margin-bottom:.5rem}
.lpi-entity-loc{font-size:.8rem;color:#7c8a9c;line-height:1.5;margin-bottom:.8rem}
.lpi-entity-arrow{margin-top:auto;font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--lpi-bleu-vif);display:flex;align-items:center;gap:.4rem}
.lpi-entity-card:hover .lpi-entity-arrow{color:var(--lpi-bleu)}

/* ── CTA BAND ── */
.lpi-cta-band{background:linear-gradient(125deg,var(--lpi-noir) 0%,var(--lpi-deep) 60%,var(--lpi-bleu) 140%);padding:4rem 3.5rem;text-align:center}
.lpi-cta-band h2{font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:clamp(2rem,4vw,2.8rem);text-transform:uppercase;color:#fff;margin-bottom:.6rem}
.lpi-cta-band p{color:var(--lpi-brume);font-size:.95rem;margin-bottom:2rem}
.lpi-cta-actions{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap}

/* ── REVEAL ── */
.lpi-reveal{opacity:0;transform:translateY(36px);transition:opacity .7s cubic-bezier(.22,1,.36,1),transform .7s cubic-bezier(.22,1,.36,1)}
.lpi-reveal.visible{opacity:1;transform:translateY(0)}

/* ── RESPONSIVE ── */
@media(max-width:960px){
  .lpi-nav-links{display:none}
  .lpi-hamburger{display:flex}
  .lpi-hero-inner{padding:8rem 1.5rem 2rem;flex-direction:column;align-items:flex-start}
  .lpi-hero-side{width:100%;grid-template-columns:repeat(2,1fr);gap:.8rem}
  .lpi-hero-stats{grid-template-columns:1fr 1fr 1fr}
  .lpi-stat{padding:1.2rem 1rem}
  .lpi-section{padding:3.5rem 1.5rem}
  .lpi-entity-grid{grid-template-columns:1fr 1fr;gap:1rem}
}
@media(max-width:560px){
  .lpi-nav{padding:.9rem 1.2rem}
  .lpi-nav.scrolled{padding:.6rem 1.2rem}
  .lpi-hero-stats{grid-template-columns:1fr}
  .lpi-stat{border-right:none;border-bottom:1px solid rgba(255,255,255,0.08)}
  .lpi-stat:last-child{border-bottom:none}
  .lpi-entity-grid{grid-template-columns:1fr}
  .lpi-cta-band{padding:3rem 1.2rem}

  /* Coordonnées */
  .entreprise-card { width: 90%; min-width: unset; }
  .coordonnees-page { margin: 2rem auto; }

  /* Contact */
  .contact-page { margin: 2rem auto; padding: 0 0.8rem; }
  .form-row { flex-direction: column; gap: 0; }

  /* Footer */
  footer { padding: 2rem 0 1rem; margin-top: 2rem; }
  footer .footer-inner { width: 95%; padding: 1.5rem 0; }
  footer .footer-col span { font-size: 1rem; }
  footer .footer-col p { font-size: 0.82rem; }
}

/* ── PAGE HERO (inner pages, v2) ── */
.lpi-page-hero{
  background:linear-gradient(135deg,var(--lpi-deep) 0%,var(--lpi-bleu) 60%,var(--lpi-bleu-vif) 130%);
  color:#fff;padding:4.2rem 2rem .6rem;text-align:center;position:relative;overflow:hidden;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.lpi-page-hero h1{font-size:clamp(1.6rem,3vw,2.4rem);margin:0 0 .3rem;font-weight:700}
.lpi-page-hero p{font-size:.95rem;color:var(--lpi-argent);max-width:700px;margin:0 auto}
.lpi-quicklinks{position:sticky;top:64px;z-index:400;display:flex;justify-content:center;align-items:center;text-align:center;gap:2rem;flex-wrap:wrap;width:100%;padding:.7rem 1rem;background:#f4f7fb;border-bottom:1px solid #e2e8f0}
.lpi-quicklinks a{font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--lpi-bleu-vif);text-decoration:none}
.lpi-quicklinks a:hover{color:var(--lpi-bleu);text-decoration:underline}
.lpi-content{max-width:1200px;margin:0 auto;padding:1.5rem 1.5rem 3rem}
.lpi-content.coordonnees-page{margin:1rem auto 0 !important;}
main:has(.lpi-content){padding-top:0 !important;}
.lpi-content .caroussel{padding-top:.5rem}
@media(max-width:560px){
  .lpi-page-hero{padding:3.6rem 1.2rem .5rem}
  .lpi-quicklinks{top:60px;gap:1rem}
  .lpi-nav-links{display:none}
}
