/* ===== Base améliorée ===== */

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
  color: #111;
  line-height: 1.7;
}
/* JS non visible avant scroll */
.no-js #backToTop {
  display: none;
}

/* ===== Back to Top ===== */

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background-image: url("../img/top.png");
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

#backToTop:hover {
  transform: translateY(6px);
}

#backToTop.show {
  opacity: 1;
  transform: translateY(0);
}

/* Container plus respirant */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-line {
		padding-top: 10px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;

}

.header-line img {
  height: 112px;
  width: auto;
}

.header-line h1 {
  margin: 0;
}
.header-line h2 {
  font-size: 14px;
  font-weight: normal;
  line-height: 0.3 !important;
}

/* ===== Navigation (sticky) ===== */
.top-nav {
	
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 7px solid #ff9e16;
      &:after {
        content: "";
        width: 50%;
        position: absolute;
        left: 0;
        height: 7px;
        bottom: -7px;
		overflow: hidden;
		display: block;
        background: #da2420;
        }
}
.nav-logo img {
  height: 100px; /* ajuste selon ton design */
  display: block;
}

.nav-container {
	width: 90%;
  max-width: 1200px;
  margin: 0 auto;
    padding: 12px 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* alignement bottom */
}

/* Navigation */
.nav-links {
  display: flex;
  align-items: flex-end;
  gap: 16px;
   flex-wrap: wrap;
}

/* Liens */
.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* Hover subtil premium */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: #000;
  transition: width 0.3s ease;
}

.nav-links a:hover {
background: rgba(0,0,0,0.04);
}

/* Titre principal */

.subtitle {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 50px;
}

/* Sections plus aérées */
.section {
	margin-top: 45px;
  margin-bottom: 45px;
  font-size: 16px;
  color: #333;
}

.highlight {
  font-weight: 700;
  color: #000;
}

/* ===== Contact Section ===== */

.contact-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.contact-section h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

/* ===== Form ===== */

form {
  max-width: 600px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

/* Deux colonnes */
.form-row {
  display: flex;
  gap: 20px;
}
.form-row input {
  flex: 1;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

/* Inputs premium */
input, textarea {
  padding: 14px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: all 0.25s ease;
  background-color: #fff;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Bouton plus premium */
button {
}

button:hover {
}

#validate {
  padding: 14px 40px;
  background: #ff9e16;
  border-radius: 14px;
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;   /* <-- centre le bouton */
}

#validate:hover {
  background: #222;
  transform: translateY(-2px);
}


/* ===== Hero ===== */

.hero {
  padding-top: 0px;
  	text-align: center;
}

.hero-title h1 {
  margin-bottom: 0px;
    font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.hero-title h2 {
  margin-bottom: 0px;
    font-size: 15px;
  font-weight: 100;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.hero-tagline {
  margin: 0;
  color: #444;
  font-size: 16px;
}

.hero-stats {
  margin: 28px auto 18px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  border: 1px solid #eee;
  padding: 14px 16px;
  border-radius: 14px;
  min-width: 160px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
}

.stat-number {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
  margin-top: 2px;
}

.hero-intro {
  max-width: 820px;
  margin: 0 auto;
  font-size: 17px;
}

/* ===== Blocks ===== */
.block {
  margin-top: 70px;
  text-align: left;
}

.block h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.block p {
  margin: 10px 0;
  color: #333;
}

/* Cards */
.cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: #444;
}

.note {
  margin-top: 18px;
  color: #444;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
/* Bullets */
.bullets {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #444;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  margin-top: 7px;
}

/* Anchor offset for sticky nav */
#about, #products, #customers, #contact {
  scroll-margin-top: 150px;
}

/* Honeypot invisible */
.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Footer */
footer {
  margin-top: 80px;
  font-size: 12px;
  color: #888;
  text-align: center;
  padding-bottom: 40px;
}
/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal__dialog {
  position: relative;
  max-width: 480px;
  width: calc(100% - 30px);
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.modal__actions {
  margin-top: 20px;
  text-align: right;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
}
.modal__logo {
  text-align: center;
  margin-bottom: 16px;
}

.modal__logo img {
  max-width: 160px;
  height: auto;
  opacity: 0.95;
}

.modal__dialog h3 {
  text-align: center;
  margin-bottom: 8px;
}

.modal__dialog p {
  text-align: center;
  color: #555;
}
/*images*/

.facility-item {
  margin: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}



.facility-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.15));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none; /* IMPORTANT */
    z-index: 1;
}

.facility-item:hover::after {
  opacity: 1;
}




.facility-item figcaption {
  font-size: 0.70rem;
  font-style: italic;
  color: #666;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.facility-item:hover figcaption {
  opacity: 1;
}

.facility-gallery {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}

.clickable-image {
	  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.clickable-image:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;              /* caché par défaut */
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: rgba(0,0,0,0.85);
  z-index: 99999;             /* très haut pour éviter conflits */
}

.lightbox.is-open {
  display: flex;              /* affiché quand ouvert */
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 42px;
  line-height: 1;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}
