﻿:root{
  --green: #41d034;
  --text:#111827;
  --body:#4b5563;
  --nav-h: 56px;
  --topbar-h: 0px;
  --muted:#6b7280;
  --dark: #0f172a;
  --light: #f5f5f5;
  --card-radius: 20px;
  --max: 1150px;
  --band-white: #ffffff;
  --band-light: #f9fafb;
  --band-dark:  #0f172a;
  --btn-lg-fs: 1.1rem;
  --btn-lg-py: .8rem;
  --btn-lg-px: 1.6rem;
}

*{
  box-sizing:border-box;
}

html, body {
  height: 100%;
}

body{
  margin:0;
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  background:#fff;
  color:var(--text);
  line-height:1.5;

  /* espace pour la navbar fixe */
  padding-top: calc(var(--nav-h) + var(--topbar-h));

  /* pour coller le footer en bas */
  display: flex;
  flex-direction: column;
}

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

/* ==========================================================================
   NAVBAR – fixe en haut, layout stable même si les textes changent
   ========================================================================== */

.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:999;
  background:transparent;
  transition:background-color .25s, box-shadow .25s;
  min-height:var(--nav-h);
}

.nav-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.0rem 1.25rem;

  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo / marque */

.brand-link{
  display: inline-flex;
  align-items: center;
  color: #fff;
}

.brand-title{
  font-weight:800;
  font-size:1.6rem;
  letter-spacing:-0.01em;
  line-height:1;
}

.brand-link:hover{ opacity:.9; }

/* Bloc des liens nav */

.nav-list{
  display:flex;
  gap:1.1rem;
  align-items:center;
  list-style:none;
  margin:0;
  padding:0;

  /* le bloc nav pousse le reste vers la droite */
  margin-right:auto;
}

.nav-list a{
  color:#fff;
  font-size:.9rem;
  font-weight:600;
  text-decoration:none;
}

.nav-list a.active{
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.nav-list a:hover,
.nav-list a.active{
  opacity:.9;
}

/* Dropdown More */

.dropdown{ position:relative; }

.dropdown-toggle{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  cursor:pointer;
}

.dropdown-menu{
  position:absolute;
  top:100%;
  left:0;
  min-width:110px;
  background:var(--green);
  color:#fff;
  border:2px solid #fff;
  border-radius:.5rem;
  display:none;
  flex-direction:column;
  padding:.35rem 0;
  z-index:200;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a{
  padding:.45rem .85rem;
  white-space:nowrap;
  font-size:.85rem;
  font-weight:600;
  color:#fff;
}

.dropdown-menu a:hover{ background:rgba(255,255,255,.12); }

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu{ display:flex; }

/* Bouton Contact (nav droite) */

.btn-contact{
  background:var(--green);
  color:#fff;
  border:2px solid #fff;
  border-radius:0;
  padding:.9rem 2rem;
  font-size:1rem;
  font-weight:800;
  letter-spacing:.02em;
  line-height:1;
  transition:background-color .2s,color .2s,box-shadow .2s,border-color .2s;
  margin-right:.75rem;
}

/* État nav transparente (haut de page) */
.nav:not(.is-solid) .btn-contact{
  background:transparent;
  color:#fff;
  border-color:#fff;
  box-shadow:none;
}
.nav:not(.is-solid) .btn-contact:hover{
  background:rgba(255,255,255,.12);
}

/* État nav solide (après scroll) */
.nav.is-solid{
  background:var(--green);
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}
.nav.is-solid .btn-contact{
  background:var(--green);
  color:#fff;
  border-color:#fff;
  box-shadow:0 0 0 4px rgba(255,255,255,.25);
}
.nav.is-solid .btn-contact:hover{
  filter:brightness(.95);
}

/* Sélecteur / boutons de langue */

.lang-switch{
  display:flex;
  align-items:center;
  gap:.25rem;
  margin-right:0;
}

/* Version boutons (🇬🇧 🇩🇪 🇫🇷 via JS/HTML) */
.lang-switch button{
  border:1px solid rgba(255,255,255,.7);
  background:transparent;
  color:#fff;
  font-size:.75rem;
  padding:.25rem .5rem;
  border-radius:999px;
  cursor:pointer;
  opacity:.8;
  line-height:1;
}

.lang-switch button:hover{
  opacity:1;
}

.lang-switch button.is-active{
  background:#fff;
  color:var(--green);
  opacity:1;
}

/* Version <select> si utilisée */
.lang-switch select{
  border-radius:999px;
  border:1px solid rgba(255,255,255,.7);
  background:transparent;
  color:#fff;
  font-size:.75rem;
  padding:.25rem .75rem;
}

/* Responsive nav */

@media (max-width:900px){
  .nav-inner{
    gap:.75rem;
  }

  .nav-list{
    display:none;
  }

  .btn-contact{
    padding:.75rem 1.3rem;
    font-size:1rem;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero{
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 6.5rem 5vw 4rem;
  color: #fff;
  overflow: hidden;
}

/* Vidéo plein écran */

.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Dégradé noir */

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,.3));
  z-index: -1;
}

/* Contenu */

.hero-inner{
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.hero.hero-under-nav{
  margin-top: calc(-1 * (var(--nav-h) + var(--topbar-h)));
  padding-top: calc(6.5rem + var(--nav-h) + var(--topbar-h));
}

@media (min-width: 900px) {
  #hero .hero-inner{
    max-width:var(--max);
    margin-left: 1.25rem;
    margin-right: auto;
  }
}

.hero-title{
  font-size:4rem;
  line-height:1.1;
  margin:0 0 .45rem;
  letter-spacing:-0.01em;
}

.hero .tagline{
  font-size:1.35rem;
  line-height:1.55;
  color:#fff;
  margin-bottom:1.5rem;
}

/* Bouton principal dans le hero */

.hero .btn-primary {
  border: none;
  box-shadow: none;
}

.hero .btn-primary:hover {
  border: none;
  box-shadow: none;
  filter: brightness(0.95);
}

/* Boutons génériques */

.btn-primary{
  background:var(--green);
  color:#fff;
  font-size:var(--btn-lg-fs);
  padding:var(--btn-lg-py) var(--btn-lg-px);
  border:2px solid #fff;
  border-radius:0;
  font-weight:800;
  letter-spacing:.02em;
}

.btn-primary:hover,
.btn-contact:hover{
  filter:brightness(.95);
  box-shadow:0 0 0 4px rgba(255,255,255,.25);
}

/* ==========================================================================
   BANDES SECTIONS
   ========================================================================== */

.section-band{
  padding: 4rem 0;
}

.section-band + .section-band{
  box-shadow:inset 0 1px 0 rgba(0,0,0,.06);
}

.section-band .container,
main {
  max-width:var(--max);
  margin:0 auto;
  padding:0 1.25rem;
}

.section-band.is-white{ background:var(--band-white); }
.section-band.is-light{ background:var(--band-light); }
.section-band.is-dark{  background:var(--band-dark); color:#fff; }

.section-band .section-title{
  font-size:1.6rem;
  font-weight:600;
  margin-bottom:.3rem;
  color:#111827;
}

.section-band .section-sub{
  color:#5a5a5a;
  font-size:.9rem;
  margin-bottom:1.6rem;
}

.section-band .section-title.is-accent{ color:var(--green); }

/* upper-green */

.upper-green{
  text-transform:uppercase;
  color:var(--green);
  font-size:1rem;
  font-weight:800;
  letter-spacing:.03em;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about{
  max-width:1020px;
  margin:2.5rem auto 0;
  padding:0 1.25rem 2.5rem;
  color:var(--text);
}

@media (min-width: 900px) {
  .about-grid{
    display:grid;
    grid-template-columns:minmax(0,520px) minmax(0,550px);
    gap:2rem;
    align-items:flex-start;
  }
  .about-text {
    margin-top: 6rem;
  }
}

.about .section-title{
  color:var(--green);
  font-size:clamp(1.6rem,2.4vw,1.9rem);
  line-height:1.2;
  font-weight:800;
  letter-spacing:-0.01em;
  margin:0 0 .5rem;
}

.about .section-sub{
  font-size:.88rem;
  color:var(--muted);
  line-height:1.55;
  margin:0 0 1rem;
}

.about-text p{
  font-size:1rem;
  line-height:1.7;
  margin:0 0 .8rem;
}

.about-media{
  justify-self:end;
  width:100%;
  max-width:380px;
}

.about-media img{
  width:100%;
  height:auto;
  display:block;
  border-radius:5px;
  border:1px solid rgba(0,0,0,.03);
  object-fit:cover;
}

@media (max-width:900px){
  .about-grid{
    grid-template-columns:1fr;
  }
  .about-media{
    justify-self:stretch;
    max-width:none;
  }
}

/* Bouton "Contact" dans la section ABOUT : style lien */

#about .btn-primary {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
}

#about .btn-primary:hover {
  text-decoration: underline;
  color: var(--green);
  filter: none;
  box-shadow: none;
}

/* ==========================================================================
   SERVICES (cartes)
   ========================================================================== */

.service{
  max-width:1100px;
  margin:1.6rem auto 0;
  padding:0 1.25rem 2.5rem;
  background:#fff;
}

.service-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.1rem;
}

.service-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.04);
  border-radius:.5rem;
  box-shadow:0 16px 35px rgba(0,0,0,.05);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  color:inherit;
  transition:transform .15s ease,box-shadow .15s ease;
}

.service-card:hover{
  transform:translateY(-3px);
  box-shadow:0 24px 55px rgba(0,0,0,.08);
}

.service-thumb{
  margin:0;
  width:100%;
  background:#e5e7eb;
  aspect-ratio:4/3;
  overflow:hidden;
}

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

.service-body{
  padding:.85rem .9rem 1rem;
  display:flex;
  flex-direction:column;
  gap:.35rem;
}

.service-body h3{
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  transition: color .15s ease;
}

.service-card:hover .service-body h3{
  color:var(--green);
}

.service-body p{
  font-size:1rem;
  color:#4b5563;
}

/* ==========================================================================
   PRODUITS (grille)
   ========================================================================== */

.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:1rem;
  margin-top:1.1rem;
}

.product{
  background:#fff;
  border:1px solid rgba(229,231,235,.9);
  border-radius:.7rem;
  min-height:240px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.product img{
  width:100%;
  height:280px;
  object-fit:contain;
  background:#fff;
}

.product-body{
  padding:.7rem .8rem 1rem;
  display:flex;
  flex-direction:column;
  gap:.4rem;
  flex:1;
}

.product-body h4{
  font-size:1.3rem;
}

.product-body p{
  font-size:1rem;
  color:#4b5563;
  flex:1;
}

.product-body a{
  font-size:.85rem;
  font-weight:600;
  color:#4b5563;
}

.product-detail{ display:none; }

/* Barre de raccourcis produits sous forme d’icônes */

.product-shortcuts{
  display:flex;
  justify-content:flex-start;
  gap:2rem;
  margin:2rem 0 2.8rem;
  flex-wrap:wrap;
}

.product-icon-btn{
  width:130px;
  height:120px;
  background:#ffffff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:6px;
  box-shadow:0 12px 25px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:0.6rem;
  transition:all .22s ease;
  text-align:center;
}

.product-icon-btn img{
  width:65px;
  height:65px;
  object-fit:contain;
  pointer-events:none;
}

.product-icon-btn span{
  margin-top:0.9rem;
  font-size:0.8rem;
  font-weight:600;
  color:#111827;
}

.product-icon-btn:hover{
  background:var(--green);
  transform:translateY(-6px);
  box-shadow:0 18px 35px rgba(0,0,0,.15);
}

.product-icon-btn:hover img{
  filter:brightness(0) invert(1);
}

.product-icon-btn:hover span{
  color:#fff;
}

@media (max-width:768px){
  .product-icon-btn{
    width:110px;
    height:110px;
  }
  .product-icon-btn img{
    width:48px;
    height:48px;
  }
}

/* ==========================================================================
   POPUP PRODUITS (pm-*)
   ========================================================================== */

.pm-overlay{
  position:fixed;
  inset:0;
  background:#fff;
  display:none;
  z-index:1000;
  padding:1.25rem;
  box-sizing:border-box;
  align-items:center;
  justify-content:center;
}

.pm-overlay.is-open{ display:flex; }

.pm-dialog{
  background:#fff;
  width:1120px;
  height:720px;
  max-width:96vw;
  max-height:94vh;
  border:1px solid #e5e7eb;
  border-radius:12px;
  box-shadow:0 22px 60px rgba(15,23,42,.12);
  display:grid;
  grid-template-columns:640px 1fr;
  overflow:hidden;
  position:relative;
}

/* bouton fermer */

.pm-close{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
  font-size:1.05rem;
  display:grid;
  place-items:center;
  color:#6b7280;
}

/* Colonne image */

.pm-media{
  position:relative;
  display:grid;
  place-items:center;
  background:#fff;
  border-right:1px solid #e5e7eb;
}

.pm-media img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
  image-rendering:auto;
}

.pm-sidebtn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  color:#374151;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  font-weight:800;
  font-size:1rem;
}

.pm-sidebtn.left{ left:10px; }
.pm-sidebtn.right{ right:10px; }

.pm-sidebtn:hover{ filter:brightness(.98); }

/* Colonne texte */

.pm-info{
  display:grid;
  grid-template-rows:auto 1fr;
  min-width:0;
  background:#fff;
}

.pm-header{
  padding:1.2rem 1.4rem .8rem;
  border-bottom:1px solid #e5e7eb;
}

.pm-title{
  margin:0;
  font-size:1.35rem;
  font-weight:800;
  color:#0f172a;
  letter-spacing:-0.01em;
  line-height:1.25;
}

.pm-body{
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

.pm-content{
  padding:1.1rem 1.4rem 1.4rem;
  color:#4b5563;
  line-height:1.75;
  font-size:1rem;
  overflow-wrap:anywhere;
  hyphens:auto;
}

.pm-content h4,
.pm-content h5{
  margin:1rem 0 .4rem;
  color:#0f172a;
  font-weight:800;
  font-size:1.05rem;
}

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

/* barre du bas "< 1/7 >" */

.pm-bottom{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:none;
  align-items:center;
  gap:18px;
  color:#6b7280;
  font-weight:700;
  font-family:Poppins,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

.pm-bottom.is-open{ display:flex; }

.pm-index{
  font-size:.95rem;
  letter-spacing:.02em;
}

.pm-bottom .pm-btn{
  background:transparent;
  border:0;
  cursor:pointer;
  font-size:1.1rem;
  color:#6b7280;
  padding:.35rem .55rem;
  border-radius:8px;
}

.pm-bottom .pm-btn:hover{
  background:#f3f4f6;
  color:#111827;
}

/* Popup responsive */

@media (max-width:980px){
  .pm-dialog{
    width:96vw;
    height:92vh;
    grid-template-columns:minmax(0,1fr);
  }
  .pm-media{
    display:none;
  }
  .pm-sidebtn{ display:none; }
}

.pm-more-btn{
  display:inline-block;
  margin-top:1rem;
  padding:.6rem 1.2rem;
  background:var(--green);
  color:#ffffff;
  font-weight:600;
  text-decoration:none;
  border-radius:999px;
  font-size:.9rem;
}

.pm-more-btn:hover{
  filter:brightness(.95);
  text-decoration:none;
}

/* Style du bouton "Nos partenaires" */
.btn-partners {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--green);
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-partners:hover {
  filter:brightness(.95);
  text-decoration:none;
}

/* Bouton "Nos partenaires" — aligné à gauche comme les autres */
.product-more-link.btn-partners {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: transparent;
  color: #6b7280;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  text-align: left; /* ✅ aligne le texte à gauche */
  width: auto; /* ✅ pour éviter le centrage forcé */
  transition: background-color 0.2s ease;
}

/* Effet hover */
.product-more-link.btn-partners:hover {
  filter:brightness(.95);
  text-decoration:none;
}

/* Supprimer les styles hérités du bouton normal */
.product-more-link.btn-partners::after {
  display: none !important;
}
/* ==========================================================================
   CONTACT
   ========================================================================== */

#contact{
  background:#ffffff;
  padding:3rem 0;
}

#contact .container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 1.25rem;
}

#contact .contact-wrap{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:1.5rem;
  align-items:stretch;
}

#contact .contact-card{
  background:#f3f4f6;
  padding:1.8rem 1.6rem;
  border-radius:16px;
  border:1px solid #e5e7eb;
  box-shadow:0 10px 25px rgba(15,23,42,.06);
  display:flex;
  flex-direction:column;
}

#contact form{
  background:#ffffff;
  padding:1.2rem 1rem;
  border-radius:12px;
  border:1px solid #e5e7eb;
}

#contact form label{
  display:block;
  font-size:.8rem;
  margin-bottom:.4rem;
}

#contact form input,
#contact form textarea{
  width:100%;
  padding:.55rem .6rem;
  border-radius:10px;
  border:1px solid #ddd;
  margin-bottom:1rem;
  font-family:inherit;
  font-size:.9rem;
}

#contact form input:focus,
#contact form textarea:focus{
  outline:none;
  border-color:#00a878;
  box-shadow:0 0 0 1px #00a87822;
}

#contact .contact-card h3{
  font-size:1rem;
  margin-bottom:.7rem;
}

#contact .contact-card h4{
  font-size:.9rem;
  margin:1rem 0 .3rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:600;
}

#contact iframe{
  border:0;
  width:100%;
  min-height:220px;
  border-radius:12px;
}

#contact .contact-card p{
  margin-top:.3rem;
  font-size:.85rem;
  line-height:1.4;
}

#contact .contact-card a{
  color:inherit;
}

#contact .contact-card a:hover{
  text-decoration:underline;
}

@media (max-width:768px){
  #contact .contact-wrap{
    grid-template-columns:1fr;
  }
}

/* ==========================================================================
   LAYOUT PAGES INTERNES (image gauche / texte droite)
   ========================================================================== */

/* Main sur les pages internes */
body.page-specialised main {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.2rem;
}

/* === Grille principale : image gauche / texte droite === */
.page-layout-solut {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr); /* image : texte */
  gap: 0.1rem;
  align-items: start; /* aligner en haut */
  max-width: 2000px;  
  margin: 40px auto;
  padding: 0 24px;
}

/* === Bloc image === */
.image-block-solut {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  margin-top: 70px;
}

.image-block-solut img {
  display: block;
  width: 100%;         /* remplissage du bloc */
  height: auto;
  object-fit: cover; /* ou cover si tu veux remplir plus */
  display: block;
}

/* === Bloc texte === */
.content-block-solut {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
  margin-left: 0;
  align-self: start;
}

.content-block-solut-inner {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  min-height: 0;
}

/* === Responsive tablette/mobile === */
@media (max-width: 900px) {
  .page-layout-solut {
    grid-template-columns: 1fr; /* image au-dessus, texte en dessous */
    gap: 1rem;
  }

  .image-block-solut,
  .content-block-solut {
    width: 100%;
    height: auto;
    margin: 0;
  }

  .image-block-solut img {
    object-fit: contain;
    width: 100%;
    height: auto;
  }

  .content-block-solut-inner {
    overflow: visible;
    padding-right: 0;
  }
}

/* Bloc texte à droite */
.text-block {
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1; /* pour être au-dessus du fond, mais sous la galerie */
}


/* VIDÉO : même hauteur que le bloc gauche, plus de superposition */
.video-solut {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover; /* ou "contain" si tu veux tout voir sans recadrage */
}

/* Bloc texte à droite : même hauteur, seulement le texte défile si long */
.content-block-solut {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 220px);
  min-height: 420px;
}

.content-block-inner {
  flex: 1 1 auto;
  overflow-y: auto;  /* défilement interne si le texte est long */
  padding-right: 4px;
}

/* Nav produit / CTA éventuellement en bas du bloc texte */
.page-product-nav {
  margin-top: 16px;
}

/* --- RESPONSIVE TABLETTE + MOBILE --- */
@media (max-width: 900px) {
  .page-layout-solut {
    grid-template-columns: 1fr; /* vidéo ou PDF au-dessus, texte en dessous */
    gap: 1.75rem;
  }

  .content-block-solut {
    height: auto;
    min-height: 0;
  }

  .content-block-inner {
    max-height: none;
    overflow: visible;
  }
}


/* Nav produit collée en bas du bloc texte */
.page-product-nav {
  margin-top: 16px;
}

/* --- RESPONSIVE TABLETTE / MOBILE --- */
@media (max-width: 900px) {
  .page-layout,
  .page-layout-solut {
    grid-template-columns: 1fr;   /* PDF/vidéo au-dessus, texte en dessous */
    gap: 1.75rem;
  }

  .image-block,
  .image-block-solut,
  .content-block,
  .content-block-solut {
    height: auto;
    min-height: 0;
  }

  .content-block-inner {
    max-height: none;
    overflow: visible;
  }
}
/* bouton navigation produit aligné en bas de la colonne */
.page-product-nav {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

/* style des boutons (déjà présent mais au cas où) */
.page-prod-btn {
  font-size: 22px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.page-prod-index {
  font-weight: 700;
  font-size: 16px;
}


@media (min-width: 1000px) {
  .video-solut {
    width: 155%;
    max-width: none;
    transform: translate(-180px, 0);   /* plus de décalage vertical */
    border-radius: .6rem;
  }
}

/* PDF viewer (mise en avant large) */

.pdf-viewer {
  width: 155%;
  height: 75vh;
  border: none;
  border-radius: 8px;
  margin-left: -300px;
}

/* Bloc texte des pages solutions */

.content-block-solut{
  max-width:520px;
}

@media (min-width: 1000px) {
  .content-block-solut {
    margin-left: 100px;
  }
}

/* Bloc texte classique sur autres pages internes */

.content-block{
  max-width:720px;
}

/* Titres + texte */

.page-title{
  font-size:1.5rem;
  font-weight:700;
  color:#111827;
  margin-bottom:1rem;
}

.lead{
  color:var(--muted);
  margin-bottom:1.4rem;
  font-size:1rem;
}

.subsection{
  margin-top:1.2rem;
}

.subsection-title{
  font-size:1.15rem;
  font-weight:600;
  margin-bottom:.35rem;
  color:#111827;
}

.subsection p{
  font-size:.95rem;
  color:var(--muted);
  margin-bottom:.4rem;
}

/* Petit bloc CTA */

.cta-panel{
  margin-top:1.8rem;
  max-width:320px;
  background:#f9fafb;
  border:1px solid rgba(229,231,235,.9);
  border-radius:.8rem;
  padding:1.1rem 1.25rem 1.25rem;
  box-shadow:0 15px 35px rgba(15,23,42,.03);
}

.cta-title{
  font-size:1.05rem;
  font-weight:600;
  color:#111827;
  margin-bottom:.35rem;
}

.cta-panel p{
  font-size:.85rem;
  color:var(--muted);
  margin-bottom:.8rem;
}

.cta-panel a{
  display:inline-block;
  background:var(--green);
  color:#fff;
  border:2px solid #fff;
  border-radius:0;
  padding:.8rem 1.4rem;
  font-size:.95rem;
  font-weight:800;
  letter-spacing:.02em;
  text-decoration:none;
}

@media (max-width:900px){
  .page-layout,
  .page-layout-solut{
    grid-template-columns:1fr;
    gap:2rem;
  }
  .image-block{
    max-width:520px;
    margin:0 auto;
  }
  .image-block-solut img,
  .pdf-viewer{
    width:100%;
    margin-left:0;
    transform:none;
  }
  .content-block-solut{
    margin-left:0;
    max-width:100%;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer{
  width:100%;
  text-align:center;
  padding:6rem 1.25rem;
  font-size:.75rem;
  color:#fff;
  background:#41d034;
  border-top:1px solid #e5e7eb;
}

.footer-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:0 1.25rem;
}

/* ==========================================================================
   PAGE SPÉCIFIQUE : Specialised construction solutions
   ========================================================================== */

.page-specialised .page-layout{
  align-items:flex-start;  /* aligne les deux colonnes en haut */
}

@media (min-width:1200px){
  .page-specialised .page-layout{
    grid-template-columns:minmax(0, 1.3fr) minmax(0, 1.1fr);
  }

  .page-specialised .image-block{
    overflow:visible;
  }

  .page-specialised .image-block img{
    width:150%;
    max-width:none;
    border-radius:.5rem;
    margin-left:-20%;
    transform:translateY(20px);
  }
}

.page-product-nav{
  display:flex;
  align-items:center;
  gap:.75rem;
  justify-content:center;
  margin-top:2rem;
  padding-top:1.5rem;
  border-top:1px solid #cfcfcf;
}

.page-prod-btn{
  background:#41d034;
  color:#fff;
  border:none;
  padding:.4rem .9rem;
  font-size:1.4rem;
  font-weight:600;
  cursor:pointer;
  border-radius:6px;
  transition:.2s;
}

.page-prod-btn:hover{
  background:#095a31;
}

.page-prod-index{
  font-weight:600;
  font-size:1rem;
  color:#333;
}

@media (max-width:900px){
  .page-specialised .image-block img{
    width:100%;
    margin-left:0;
    transform:none;
  }
}

/* Ajustement global mobile */

@media (max-width:850px){
  .hero{ padding-top:7rem; }
}
/* ==== TABLETTES & TÉLÉPHONES (≤ 1024px) ==== */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;  /* PDF au-dessus, texte en-dessous */
    height: auto;                /* plus de hauteur forcée */
  }

  .image-block {
    height: auto;
  }

  /* PDF : hauteur raisonnable, largeur 100% */
  .pdf-viewer {
    height: 60vh;      /* 60% de la hauteur de l’écran */
  }

  .content-block {
    height: auto;
    overflow: visible; /* le texte suit naturellement */
  }

  .content-block-inner {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  /* Navigation produit centrée sous le texte */
  .page-product-nav {
    justify-content: center;
    margin-top: 1.5rem;
  }
}

/* ==== PETITS TÉLÉPHONES (≤ 600px) ==== */
@media (max-width: 600px) {
  .page-title {
    font-size: 1.8rem;
  }
  .lead {
    font-size: 0.95rem;
  }
  .subsection p {
    font-size: 0.9rem;
  }

  .page-prod-btn {
    font-size: 1.2rem;
    padding: 4px 10px;
  }
}



/* --- GALERIE SLIDER --- */
.gallery-slider {
  position: relative;
  width: 100%;
  height: 550px; /* plus grande hauteur */
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Superposition interne */
.gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Images de la galerie */
.gallery-track img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;  /* garde l’image entière */
  object-position: center;
  background: #fff;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.gallery-track img.is-visible {
  opacity: 1;
}

/* --- Flèches navigation --- */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.slide-btn.prev { left: 12px; }
.slide-btn.next { right: 12px; }
.slide-btn:hover { background: rgba(0, 0, 0, 0.6); }

/* --- Responsive --- */
@media (max-width: 1000px) {
  .page-layout {
    grid-template-columns: 1fr; /* image au-dessus, texte dessous */
  }
  .gallery-slider {
    height: 400px;
  }
}

.lang-switch { position: relative; display: inline-block; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 6px;
  cursor: pointer;
}
.lang-toggle img {
  width: 20px;
  height: auto;
  object-fit: contain;
}
.lang-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 6px;
  list-style: none;
  padding: 4px 0;
  margin: 0;
  display: none;
  z-index: 1000;
}
.lang-switch.open .lang-options {
  display: block;
}
.lang-options li {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.lang-options li:hover {
  background: #f3f3f3;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 2px solid white;
  border-radius: 20px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.lang-btn img {
  width: 20px;
  height: 14px;
  object-fit: contain;
}

.lang-menu {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 6px;
  list-style: none;
  padding: 6px 0;
}
/* ==========================================================
   INDUSTRIES SECTION
   ========================================================== */

.industries-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* === INDUSTRIES SECTION — version alignée sur une ligne === */

.industries-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap; /* ⬅️ garde tout sur une seule ligne */
  gap: 3rem;         /* espace entre chaque bloc */
  margin-top: 2.5rem;
  overflow-x: auto;  /* au cas où sur petit écran */
}

.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  min-width: 100px; /* garantit un espacement égal */
}

.industry-item img {
  width: 130px;  /* ⬅️ icônes plus grandes */
  height: 80px;
  margin-bottom: 0.1rem; /* ⬅️ texte plus proche du symbole */
  filter: invert(47%) sepia(99%) saturate(310%) hue-rotate(81deg)
          brightness(96%) contrast(90%);
}

.industry-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.industry-item:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .industries-grid {
    flex-wrap: wrap;      /* passe sur plusieurs lignes sur mobile */
    gap: 2rem 2.5rem;
  }

  .industry-item img {
    width: 60px;
    height: 60px;
  }
}

/* ==========================================================
   SKILLS CYCLE – Version identique au rendu professionnel
   ========================================================== */

.skills-cycle {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.skills-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #374151;
}

.skills-label {
  background: #e5f4eb;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.skills-path {
  font-size: 0.85rem;
  color: #4b5563;
}

/* Zone du diagramme */
.skills-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 650px;
  margin: 0 auto;
  border-radius: 20px;
  background: 
    radial-gradient(circle at 15% 15%, rgba(34,197,94,0.15), transparent 60%),
    radial-gradient(circle at 90% 85%, rgba(56,189,248,0.15), transparent 70%),
    repeating-linear-gradient(0deg, #f3f4f6, #f3f4f6 1px, #ffffff 1px, #ffffff 30px),
    repeating-linear-gradient(90deg, #f3f4f6, #f3f4f6 1px, #ffffff 1px, #ffffff 30px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* Cercles */
.skills-circle {
  position: absolute;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.skills-circle.outer {
  width: 500px;
  height: 500px;
}

.skills-circle.inner {
  width: 350px;
  height: 350px;
}

/* Centre vert */
.skills-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 115px;
  height: 115px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.skills-center h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.skills-center p {
  margin: 0;
  font-size: 0.7rem;
  opacity: 0.9;
}

/* Points verts */
.dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.service-dot {
  top: calc(50% - 90px);
  left: 50%;
  transform: translateX(-50%);
}

.engineering-dot {
  top: 64%;
  right: calc(50% - 200px);
  transform: translateY(-50%);
}

.development-dot {
  bottom: calc(50% - 265px);
  left: 50%;
  transform: translateX(-50%);
}

.production-dot {
  top: 64%;
  left: calc(50% - 200px);
  transform: translateY(-50%);
}

/* Cartes */
.skills-card {
  position: absolute;
  width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 25px rgba(15,23,42,0.08);
  padding: 1rem;
  font-size: 0.7rem;
  color: #374151;
  text-align: center;
}

.skills-card h4 {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

/* Positions exactes */
.skills-card.service {
  top: 10%;
  left: 50%;
  transform: translate(-50%, -0);
}

.skills-card.engineering {
  right: 20%;
  top: 50%;
  transform: translate(0, -50%);
}

.skills-card.development {
  bottom: 12%;
  left: 50%;
  transform: translate(-50%, 0);
}

.skills-card.production {
  left: 20%;
  top: 50%;
  transform: translate(0, -50%);
}

/* Responsive */
@media (max-width: 900px) {
  .skills-wrapper {
    height: auto;
    padding: 2rem 1rem;
  }

  .skills-card {
    position: static;
    width: 90%;
    margin: 1.2rem auto;
  }

  .skills-circle,
  .dot,
  .skills-center {
    display: none;
  }
}