
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background-color: #0a5fb9;
  color: #fff;
}

.header1 {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #fff;
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease-in;
}

/* === NAVIGATION === */
.principal-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #196deb;
  border-bottom: 4px solid #3b9ef0;
  padding: 10px 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: 10px;
  position: relative;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .trigger,
.main-link {
  text-decoration: none;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown .trigger:hover,
.main-link:hover {
  background-color: #ffffff;
  color: #196deb;
}

.nav-sub-links {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #196deb;
  display: none;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 1001;
  overflow: hidden;
}

.nav-dropdown:hover .nav-sub-links {
  display: flex;
}

.nav-sub-links a {
  opacity: 0;
  transform: translateY(10px);
  text-decoration: none;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
  animation: fadeInUp 0.4s ease forwards;
  animation-fill-mode: forwards;
  pointer-events: auto;
}

.nav-sub-links a:hover {
  background-color: #fff;
  color: #196deb;
}

/* Animation delays */
.nav-sub-links a:nth-child(1) { animation-delay: 0.05s; }
.nav-sub-links a:nth-child(2) { animation-delay: 0.15s; }
.nav-sub-links a:nth-child(3) { animation-delay: 0.25s; }
.nav-sub-links a:nth-child(4) { animation-delay: 0.35s; }
.nav-sub-links a:nth-child(5) { animation-delay: 0.45s; }

.arrow {
  font-size: 0.8em;
}




@media screen and (min-width: 768px) {
  
}

/* === HEADINGS === */
h1, h2 {
  text-align: center;
  margin: 20px 0;
}

h1::after, h2::after {
  content: "";
  display: block;
  width: 0;
  height: 4px;
  margin: 10px auto 0;
  background: rgba(227, 236, 245, 0.6);
  border-radius: 2px;
  animation: growLine 1s ease forwards;
}

.couleur {
  color: #1b0ce7;
}

/* === CONTENT === */
.conteneur-texte-image {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 100px;
  max-width: 1200px;
  margin: 20px auto;
}

.contenu {
  flex: 1;
  max-width: 500px;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.siege {
  width: 500px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden; 
}

.siege img {
  width: 100%;
  height: auto;
  border: 5px solid white; 
  border-radius: 12px; 
  box-sizing: border-box; 
}

/* === OBJECTIFS === */
.objectifs {
  padding: 20px;
}

.objectifs h2 {
  text-decoration: underline;
}

.intro {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.axes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.axe {
  flex: 1 1 200px;
  background: #fff;
  color: #000;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.axe:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.axe img {
  max-width: 60px;
  margin-bottom: 10px;
}

.axe h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

.axe p {
  font-size: 0.95em;
  line-height: 1.4;
}

/* === SLIDER === */
.slider-css {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.slider-css::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: url("taille-fond.jpg") center/cover no-repeat;
  transform: translate(-50%, -50%) rotate(5deg);
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 300px;
  height: 300px;
  border-radius: 8px;
}

.slide p {
  font-size: 1.2rem;
  width: 50%;
  margin: 0;
  text-align: left;
}

.s1 { animation: slideAnimation 12s infinite 0s; }
.s2 { animation: slideAnimation 12s infinite 4s; }
.s3 { animation: slideAnimation 12s infinite 8s; }

/* === FLIP CARDS === */
.flip-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.flip-card {
  width: 300px;
  height: 200px;
  perspective: 1000px;
  animation: slideUp 0.8s ease-out both;
  min-width: 250px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  background: #fff;
  color: #333;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

/* === SECTEUR ACTIVITE === */
.secteur-activite {
  background: #196deb;
  text-align: center;
  padding: 45px 20px;
}

.secteurs-liste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
}

.secteur {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 150px;
  text-align: center;
}

.secteur:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.secteur .cercle {
  width: 90px;
  height: 90px;
  border: 4px solid #196deb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  margin: 0 auto 12px auto;
}

.secteur img {
  width: 45px;
  height: 45px;
}

.secteur p {
  margin: 0;
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

/* === BANNIÈRE === */
.baniere {
  position: relative;
  height: 200px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

.baniere-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.banniere-fond {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.baniere-fond h1 {
  font-size: 48px;
  margin: 0;
  color: #ffffff;
}

.slogan {
  font-size: 0.8rem;
  color: #b1adad;
  font-style: italic;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-60%);
}

.intro-text {
  text-align: center;
  margin: 40px auto;
  max-width: 800px;
  font-size: 1.2em;
  line-height: 1;
  font-weight: bold;
}

.pdf-bouton {
  display: inline-block;
  background-color: #004080;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.pdf-bouton:hover {
  background-color: #0066cc;
}

/* === FOOTER === */
.separator {
  width: 90%;
  height: 3px;
  background: #ffffff;
  opacity: 0.3;
  border-radius: 2px;
  margin: 60px auto 0 auto;
}

/* Footer principal */
footer {
  position: relative;
  background: linear-gradient(to right, #196deb, #144fcf);
  color: #f0f0f0;
  padding: 50px 30px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.15);
  font-family: 'Poppins', sans-serif;
  margin-top: 40px;
  text-align: center;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 3px;
  background: #ffffff;
  opacity: 0.3;
  border-radius: 2px;
   z-index: 1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.footer-left img {
  width: 200px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.footer-left img:hover {
  transform: scale(1.05);
}

.footer-text {
  font-size: 14px;
  opacity: 0.9;
}

.footer-text a {
  color: #f0f0f0;
  font-weight: 500;
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
  color: #fff;
}

.mentions-footer {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
  font-size: 13px;
}

.mentions-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(
  to right,
  blue 0%,
  blue 33.33%,
  white 33.33%,
  white 66.66%,
  red 66.66%,
  red 100%
);
 z-index: 1;
}


.services-section {
  padding: 40px 20px;
  
}

.services-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
  flex-wrap: wrap;
}

.services-left h2 {
  color: #ffffff; 
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  text-align: right;
}

.services-right p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  max-width: 500px;
  margin: 0;
}

.services-separator {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100px;
  justify-content: center;
  position: relative;
}

.services-separator .line {
  width: 1px;
  height: 40px;
  background-color: #ccc;
}

.services-separator img {
  width: 24px;
  height: 24px;
  margin: 8px 0;
}


.certification-iso {
  padding: 60px 20px;
  background-color: #196deb;
}

.certification-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.certification-text {
  flex: 1;
  padding-right: 30px;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.certification-text h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #ffffff;
}

.certification-text ul {
  list-style: none;
  padding: 0;
  color: #ffffff;
}

.certification-text li {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1rem;
  color: #ffffff;
}

.certification-image {
  flex: 1;
  text-align: center;
  min-width: 250px;
}

.certification-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.manuel {
  text-align: center;
  margin-top: 30px;
}

.pdf-bouton {
  display: inline-block;
  padding: 12px 25px;
  background-color: #003366;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.pdf-bouton:hover {
  background-color: #005599;
}


.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

.video-section {
  width: 80%;
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

.video-section iframe {
  width: 100%;
  height: 350px; 
  border: 5px solid white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* === ANIMATIONS === */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes growLine {
  to { width: 80px; }
}

@keyframes slideAnimation {
  0%, 30% { opacity: 1; }
  33%, 96% { opacity: 0; }
  100% { opacity: 1; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {

  *, *::before, *::after {
    box-sizing: border-box;
  }
  html {
    font-size: 14px;
  }

  body {
    padding: 0 10px;
  }

   .header1 a img {
    width: 100%;     
    height: auto;    
  }

  .nav-links {
    display: flex;
    position: static; 
    flex-direction: row;
    background: none;
    width: auto;
    height: auto;
    top: auto;
    right: auto;
    align-items: center;
  }

  .nav-links.show {
    display: flex;
  }

  .principal-nav {
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px;
}

  .mot-petit {
    font-size: 0.8em; /* ou par ex. 12px */
  }


  h1, h2 {
    font-size: 1.5rem;
    margin: 10px 0;
  }

  .conteneur-texte-image {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .contenu {
    padding: 15px;
    font-size: 0.9em;
  }

  .siege {
    width: 100%;
    height: auto;
  }

  .axe {
    padding: 10px;
    font-size: 0.85em;
  }

  .axe img {
    max-width: 40px;
  }

  .flip-card {
    width: 90%;
    height: 180px;
  }

   .flip-card-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .slide img {
    width: 200px;
    height: 200px;
  }

  .slide p {
    font-size: 1em;
    width: 80%;
  }

  .secteurs-liste {
    gap: 20px;
  }

  .secteur {
    width: 120px;
    padding: 15px 10px;
  }

  .secteur p {
    font-size: 14px;
  }

  .secteur .cercle {
    width: 70px;
    height: 70px;
  }

  .secteur img {
    width: 35px;
    height: 35px;
  }

  .baniere-fond h1 {
    font-size: 32px;
  }

  .intro-text {
    font-size: 1em;
  }

  .pdf-bouton {
    padding: 8px 16px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-text {
    font-size: 12px;
    padding-top: 10px;
  }
}
