
:root {
  --brand:#2c7da0;
  --dark:#222;
  --light:#f7f7f8;
  --accent:#0ea5e9;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;
  background: var(--light);
  color: #333;
  line-height: 1.6;
}

.container{max-width:1100px;margin:0 auto;padding:0 16px}
header{background:linear-gradient(90deg,var(--brand),#0e7490);color:#fff;position:sticky;top:0;z-index:10}
.topbar{display:flex;align-items:center;gap:16px;padding:10px 0}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 🔥 IMPORTANT */
  gap: 10px;
}
.topbar img{height:70px;width:auto;border-radius:8px;background:#fff;padding:6px}
.topbar img {
  height: 90px; /* légèrement réduit */
  width: auto;
  flex-shrink: 0; /* NE RÉTRÉCIT JAMAIS */
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}
.brand{font-weight:700;font-size:1.3rem;letter-spacing:.5px}
.brand {
  white-space: nowrap; /* Empêche le nom de passer à la ligne */
}
.brand {
  font-weight: 700;
  font-size: 1.2rem; /* Légèrement réduit */
  white-space: nowrap;
  flex-shrink: 1; /* accepte de rétrécir AVANT que le menu ne disparaisse */
}
nav a{color:#fff;text-decoration:none;margin:0 10px;font-weight:600;opacity:.9}
/* MENU */
.topbar nav {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

/* 🔥 PERMET AU MENU DE RÉTRÉCIR */
.topbar nav {
  flex: 1;
  justify-content: center;
  overflow: hidden;
}
.topbar nav {
  flex: 1;
  justify-content: center;
}
.topbar nav a {
  white-space: nowrap; /* 🔥 empêche "Notre / Compagnie" */
}
.topbar nav a {
  font-size: 0.9rem;
}

/* LANGUE */
.lang-switch {
  display: flex;
  gap: 6px;
  flex-shrink: 0; /* ne sort jamais */
}

/* BOUTONS */
.lang-switch button {
  padding: 4px 8px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}
nav a:hover{opacity:1;text-decoration:underline}
.hero{background:#fff;padding:60px 0;margin:16px;border-radius:16px;box-shadow:0 8px 30px rgba(0,0,0,.06)}
.hero h1{margin:0 0 10px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.card{background:#fff;border-radius:16px;padding:18px;box-shadow:0 6px 20px rgba(0,0,0,.06)}
.card h3{margin-top:0}
.btn{display:inline-block;padding:10px 16px;border-radius:10px;background:var(--accent);color:#fff;text-decoration:none;font-weight:700}
.btn:hover{filter:brightness(.95)}
footer{margin-top:40px;background:#cccccc;color:#e5e7eb;padding:24px 0}
.footer-grid{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center}
.social a{display:inline-block;margin-right:10px}
.social img{height:24px;width:24px;filter:invert(1)}
.badge{display:inline-flex;align-items:center;gap:8px;background:#fff;color:#0f172a;padding:6px 10px;border-radius:999px;font-weight:700}
.section{padding:24px 0}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:10px;border-bottom:1px solid #e5e7eb;text-align:left}
.map{border:0;width:100%;height:360px;border-radius:16px}
form input, form textarea{width:100%;padding:20px;border:1px solid #e5e7eb;border-radius:10px;background:#fff}
form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
form button{margin-top:10px}
.small{font-size:.9rem;color:#555}

/* FORMULAIRE CONTACT  */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* moitié formulaire / moitié image */
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}

.contact-grid form {
  background: linear-gradient(90deg,var(--brand),#0e7490);
  padding: 20px;
  border-radius: 12px;
}

.contact-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Responsive : pile sur mobile */
 @media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-links .btn {
  display: inline-block; /* 🔥 important */
}
.social-links {
  justify-content: flex-start;
  align-items: center;
}
  .clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ✅ 4 logos par ligne */
    gap: 32px;
    margin-top: 30px;
  }
  }
  

.client-name {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* 2astechnics.html */
/* Slider horizontal - À propos */
.about-sections {
  display: flex;
  flex-direction: column;   /* IMPORTANT */
  gap: 60px;
  margin-top: 40px;
}

.about-block {
  width: 100%;
}

/* Titres */
.about-block h3 {
  color: var(--brand);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* Texte */
.about-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  max-width: 100%;          /* pleine largeur */
}


/* Slider horizontal - À propos */
/*.about-slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 20px;
}

.about-slider-track {
  display: flex;
  gap: 20px;
  animation: aboutScroll 35s linear infinite;
  padding-bottom: 10px;
}

/*.about-card {
  flex: 0 0 350px; /* largeur de chaque carte */
 /* background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  height: auto;
}*/

/*.about-card h3 {
  margin-top: 0;
  color: var(--brand);
}

.about-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}*/

/* Animation continue */
/*@keyframes aboutScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause quand la souris est dessus */
/*.about-slider-container:hover .about-slider-track {
  animation-play-state: paused;
}*/


.pdf-frame {
  width: 100%;
  height: 160px;   /* hauteur fixe et maîtrisée */
  border: none;
}

.hero-img {
  width: 100%;
  height: auto;           /* 🔥 garde proportions */
  object-fit: contain;    /* 🔥 ne coupe plus */
  border-radius: 12px;
  margin-bottom: 12px;
}



/* TITRE */
/* PDF */
/*.pdf-frame {
  width: 100%;
  height: 160px;
  border: 1px solid #ccc;
}*/

/* Agréments et certifications */
/* CONTENEUR DES AGRÉMENTS */
/*.agrements {
  outline: 3px solid red;
}*/
section .agrements {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 24px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
}

section .agrements > .agrement {
  width: 220px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

section .agrements > .agrement .btn {
  margin-top: 12px;
}




/* ============================= */
/* NOS CLIENTS – LOGOS           */
/* ============================= */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ✅ 4 par ligne */
  gap: 32px;
  align-items: center;
  justify-items: center;
  margin-top: 30px;
}

.clients-grid img {
  width: 100%;
  max-width: 180px;   /* garde l’horizontal */
  height: 70px;       /* même hauteur visuelle */
  object-fit: contain;
  display: block;

  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  transition: all 0.3s ease;
}

.clients-grid img:hover {
  transform: scale(1.05);
}
@media (max-width: 992px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}
/* JOB-EMPLOI  */
/* ===== CONTENEUR DES OFFRES ===== */
.job-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* ===== CARTE OFFRE ===== */
.job-offer {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.job-offer h3 {
  margin-top: 0;
  color: #0b3c5d;
}

.job-offer p {
  margin: 6px 0;
}

.job-offer .btn {
  margin-top: 15px;
  padding: 12px;
  text-align: center;
  background: #1e88e5;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.job-offer .btn:hover {
  background: #1565c0;
}

/* ===== FILTRE ===== */
.filter {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.filter input {
  padding: 10px;
  width: 100%;
}

/* ===== FORMULAIRE ===== */
.candidature {
  margin-top: 60px;
  padding: 30px;
  background: #f7f9fc;
  border-radius: 10px;
}

.candidature form {
  display: grid;
  gap: 15px;
  max-width: 500px;
}

.candidature input,
.candidature textarea,
.candidature button {
  padding: 10px;
  width: 100%;
}

.candidature button {
  background: #0b3c5d;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* ===== NOS ATOUTS ===== */  
  h1 {
  color: var(--brand);
  margin-bottom: 40px;
  }
  
  
  .atout {
  margin-bottom: 50px;
  }
  
  
  .atout h3 {
  color: var(--brand);
  margin-bottom: 12px;
  font-size: 1.3rem;
  }
  
  
  .atout p {
  margin: 0;
  font-size: 1rem;
  }
  
  
  @media (max-width: 768px) {
  .container {
  padding: 40px 16px;
  }
  }

  /* ============================= */
/* FORMULAIRE EMPLOI + IMAGE    */
/* ============================= */

.job-apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 20px;
}

.job-apply-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .job-apply-grid {
    grid-template-columns: 1fr;
  }

  .job-apply-image {
    order: -1; /* image au-dessus sur mobile */
  }
}

 /* CENTRER SANS TOUCHER AU STYLE */
.page-title {
  text-align: center;
}

/* GALLERIE */
.gallery-grid {
  display: grid;
  /*grid-template-columns: repeat(4, 1fr);*/
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* ↓ plus petit */
  gap: 15px;
  max-width: 1000px;   /* limite la largeur */
  margin: auto;        /* centre la galerie */
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.3s;
  max-height: 180px; /* limite la hauteur */
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* LIGHTBOX PRO */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* Boutons */
.close, .prev, .next {
  position: absolute;
  color: white;
  font-size: 30px;
  cursor: pointer;
  user-select: none;
}

.close {
  top: 20px;
  right: 30px;
}

.prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

p {
  white-space: pre-line;
}


/*News*/

