/* ============================================================
   ttb-liste.css
   Styles extraits de ttb-liste.php
   ============================================================ */

/* ── Menu dropdown principal ── */
.dropdown-menu {
  border-radius: 0;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  margin-top: 0;
  background-color: #ffffff;
}

.dropdown-item {
  padding: 10px 25px;
  font-size: 14px;
  color: #333;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #05205e;
  /* Votre couleur bleue */
}

/* Affichage du dropdown principal au survol */
.nav-item.dropdown:hover > .dropdown-menu {
  display: block;
}

/* Gestion des sous-menus (SAACKE & TTB) */
.submenu-container {
  position: relative;
}

.dropdown-submenu {
  display: none;
  position: absolute;
  left: 100%;
  /* Place le sous-menu à droite du menu principal */
  top: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.12);
  border-left: 2px solid #05205e;
  z-index: 1000;
}

/* LA MAGIE : On affiche le sous-menu quand on survole le CONTENEUR */
.submenu-container:hover > .dropdown-submenu {
  display: block;
}

/* Ajustement pour les petits écrans (Mobile) */
@media (max-width: 991px) {
  .dropdown-submenu {
    position: static;
    display: none;
    box-shadow: none;
    border-left: none;
    padding-left: 20px;
    background: #fdfdfd;
  }

  .submenu-container:hover > .dropdown-submenu {
    display: block;
  }

  .dropdown-item i {
    transform: rotate(90deg);
    /* Flèche vers le bas sur mobile */
  }
}

.page-hero-blog {
  background: var(--blue);
  padding: 2rem 0 3rem;
  position: relative;
  overflow: hidden;
  text-align: left !important;
}

.page-hero-blog .container {
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 1.2);
  /* Conserve le même padding que le conteneur du menu Bootstrap */
}

.page-hero-blog::before,
.page-hero-blog::after {
  content: "";
  position: absolute;
  pointer-events: none;

  /* --- TECHNIQUE DU MASQUE (Remplace background-image) --- */
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;

  /* --- COULEUR DE L'ICÔNE --- */
  /* On utilise du blanc avec une très faible opacité pour qu'il se mélange au bleu du fond */
  /* Cela crée naturellement une nuance "cohérente" de bleu plus clair */
  background-color: rgba(255, 255, 255, 0.12);

  animation: gear-rotate 40s linear infinite;
}

/* Fraise 1 à GAUCHE */
.page-hero-blog::before {
  left: -100px;
  bottom: -100px;
  width: 450px;
  height: 450px;
  -webkit-mask-image: url("../../assets/svg/fraise2.svg");
  mask-image: url("../../assets/svg/fraise2.svg");
}

/* Fraise 2 à DROITE */
.page-hero-blog::after {
  right: -50px;
  top: -15%;
  width: 400px;
  height: 400px;
  -webkit-mask-image: url("../../assets/svg/fraise1.svg");
  mask-image: url("../../assets/svg/fraise1.svg");
  
  animation-duration: 60s;
}

/* On garde la même animation */
@keyframes gear-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.page-hero-blog h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.page-hero-blog p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.breadcrumb-blog {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.breadcrumb-blog a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.breadcrumb-blog a:hover {
  color: #fff;
}

.machine-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.machine-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: #111;
}

.machine-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.machine-card h5 {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.machine-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

.section-list {
  background-color: #fcfcfc;
}

.section-label {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  display: block;
  font-family: "Roboto";
  margin-top: 0 !important;
}

.footer-spacer {
  height: 7rem;
  background-color: #ffffff;
  width: 100%;
}

/* ── Liens footer ── */
.footer-phone-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

/* ── Animation reveal au scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
