/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE. ***************/

/***---------------------- Design Tokens ----------------------***/

:root {
  --em-accent: #0047bb;
  --em-accent-2: #0b5ed7;
  --em-accent-soft: rgba(0, 71, 187, 0.12);

  --em-white: #ffffff;
  --em-black: #000000;

  --em-text-strong: rgba(255, 255, 255, 0.96);
  --em-text: rgba(255, 255, 255, 0.84);
  --em-text-soft: rgba(255, 255, 255, 0.70);
  --em-text-muted: rgba(255, 255, 255, 0.52);

  --em-surface-1: rgba(255, 255, 255, 0.028);
  --em-surface-2: rgba(255, 255, 255, 0.04);
  --em-surface-3: rgba(0, 0, 0, 0.34);
  --em-surface-4: rgba(0, 0, 0, 0.22);

  --em-border-soft: rgba(255, 255, 255, 0.08);
  --em-border: rgba(255, 255, 255, 0.11);
  --em-border-strong: rgba(255, 255, 255, 0.16);
  --em-border-accent: rgba(0, 71, 187, 0.55);

  --em-radius-xs: 10px;
  --em-radius-sm: 14px;
  --em-radius-md: 18px;
  --em-radius-lg: 20px;

  --em-shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.18);
  --em-shadow-md: 0 14px 34px rgba(0, 0, 0, 0.30);
  --em-shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.42);
  --em-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.55);

  --em-glass: rgba(255, 255, 255, 0.10);
  --em-glass-strong: rgba(255, 255, 255, 0.16);
  --em-glass-border: rgba(255, 255, 255, 0.18);

  --em-transition-fast: .22s ease;
  --em-transition: .32s ease;
  --em-transition-slow: .55s ease;
}

/***---------------------- Global ----------------------***/

/***- Equipements machine / Overlay blanc pleine largeur -***/

.machine-equipment-grid {
  position: relative;
}

/* Carte */
.machine-equipment-card {
  position: relative;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--em-radius-sm);

  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.055),
    0 2px 7px rgba(15, 23, 42, 0.03);

  transition:
    transform var(--em-transition-fast),
    border-color var(--em-transition-fast),
    box-shadow var(--em-transition-fast);
}

/* Structure générale */
.machine-equipment-card .box {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* Image : fond totalement blanc */
.machine-equipment-card .box-image {
  position: relative;
  z-index: 1;
  background: #ffffff;
}

.machine-equipment-card .box-image img {
  transition:
    transform var(--em-transition-slow),
    filter var(--em-transition-slow),
    opacity var(--em-transition-slow);
}

/* Texte en panneau blanc pleine largeur */
.machine-equipment-card .box-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;

  padding: 22px 18px 18px;

  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(15, 23, 42, 0.065);

  box-shadow:
    0 -12px 26px rgba(15, 23, 42, 0.075),
    0 -2px 8px rgba(15, 23, 42, 0.025);

  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);

  transform: translateY(calc(100% - 8px));
  opacity: 0.98;

  transition:
    transform var(--em-transition),
    opacity var(--em-transition),
    box-shadow var(--em-transition),
    background var(--em-transition);
}

/* Barre visible au repos */
.machine-equipment-card .box-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: var(--em-accent);
  transition:
    width var(--em-transition-fast),
    background var(--em-transition-fast);
}

/* Variante PIBOMULTI : accent rouge */
.machine-equipment-card-p .box-text::before,
.machine-equipment-card.machine-equipment-card-p .box-text::before,
.machine-equipment-grid .machine-equipment-card-p .box-text::before {
  background: #ce0e2d !important;
}

/* Titre */
.machine-equipment-card .box-text h3,
.machine-equipment-card .box-text h4,
.machine-equipment-card .box-text h5,
.machine-equipment-card .box-text h6 {
  margin: 0;
  color: rgba(15, 23, 42, 0.98);
  font-size: 19px;
  line-height: 1.23;
  font-weight: 700;

  opacity: 0;
  transform: translateY(6px);

  transition:
    opacity var(--em-transition-fast),
    transform var(--em-transition-fast);
}

/* Texte complémentaire */
.machine-equipment-card .box-text p {
  margin: 6px 0 0;
  color: rgba(15, 23, 42, 0.78);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.42;

  opacity: 0;
  transform: translateY(6px);

  transition:
    opacity var(--em-transition-fast),
    transform var(--em-transition-fast);
}

/* Hover carte */
.machine-equipment-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 71, 187, 0.20);
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.085),
    0 3px 10px rgba(15, 23, 42, 0.045);
}

/* Variante PIBOMULTI : bordure hover légèrement rouge */
.machine-equipment-card-p:hover,
.machine-equipment-card.machine-equipment-card-p:hover,
.machine-equipment-grid .machine-equipment-card-p:hover {
  border-color: rgba(206, 14, 45, 0.24);
}

.machine-equipment-card:hover .box-image img {
  transform: scale(1.018);
  filter: saturate(1.02) contrast(1.03);
}

/* Apparition du panneau */
.machine-equipment-card:hover .box-text {
  transform: translateY(0);
  opacity: 1;
  background: rgba(255, 255, 255, 0.84);

  box-shadow:
    0 -14px 30px rgba(15, 23, 42, 0.09),
    0 -3px 10px rgba(15, 23, 42, 0.035);
}

.machine-equipment-card:hover .box-text::before {
  width: 68px;
}

/* Hover PIBOMULTI : rouge conservé */
.machine-equipment-card-p:hover .box-text::before,
.machine-equipment-card.machine-equipment-card-p:hover .box-text::before,
.machine-equipment-grid .machine-equipment-card-p:hover .box-text::before {
  background: #ce0e2d !important;
}

.machine-equipment-card:hover .box-text h3,
.machine-equipment-card:hover .box-text h4,
.machine-equipment-card:hover .box-text h5,
.machine-equipment-card:hover .box-text h6,
.machine-equipment-card:hover .box-text p {
  opacity: 1;
  transform: translateY(0);
}

/* Tablette */
@media screen and (max-width: 849px) {
  .machine-equipment-card .box-text {
    padding: 20px 15px 16px;
    transform: translateY(calc(100% - 8px));
  }

  .machine-equipment-card .box-text::before {
    left: 15px;
    width: 36px;
  }

  .machine-equipment-card .box-text h3,
  .machine-equipment-card .box-text h4,
  .machine-equipment-card .box-text h5,
  .machine-equipment-card .box-text h6 {
    font-size: 15.5px;
    line-height: 1.22;
  }

  .machine-equipment-card .box-text p {
    font-size: 13px;
    line-height: 1.35;
  }
}

/* Mobile : panneau visible, mais compact */
@media screen and (max-width: 549px) {
  .machine-equipment-card {
    border-radius: var(--em-radius-xs);
  }

  .machine-equipment-card .box-text {
    padding: 15px 13px 12px;

    transform: translateY(0);
    opacity: 1;

    background: rgba(255, 255, 255, 0.86);
  }

  .machine-equipment-card .box-text::before {
    left: 13px;
    width: 30px;
  }

  .machine-equipment-card .box-text h3,
  .machine-equipment-card .box-text h4,
  .machine-equipment-card .box-text h5,
  .machine-equipment-card .box-text h6 {
    opacity: 1;
    transform: translateY(0);
    font-size: 14.5px;
    line-height: 1.18;
  }

  .machine-equipment-card .box-text p {
    display: none;
  }

  .machine-equipment-card:hover {
    transform: translateY(-2px);
  }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  .machine-equipment-card,
  .machine-equipment-card .box-image img,
  .machine-equipment-card .box-text,
  .machine-equipment-card .box-text h3,
  .machine-equipment-card .box-text h4,
  .machine-equipment-card .box-text h5,
  .machine-equipment-card .box-text h6,
  .machine-equipment-card .box-text p,
  .machine-equipment-card .box-text::before {
    transition-duration: 0.001ms !important;
  }
}


/***- Machine du moment -***/

.em-featured-machine-section {
  position: relative;
  overflow: visible;
}

/* Row générale */
.em-featured-machine-row {
  position: relative;
  align-items: center !important;
  overflow: visible;
}

/* Colonne texte */
.em-featured-machine-content {
  position: relative;
  z-index: 2;
}

/* Panneau texte */
.em-featured-machine-panel {
  position: relative;
  max-width: 620px;
  padding: 42px 44px 40px;

  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--em-radius-lg);

  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.04);

  overflow: hidden;
}

/* Accent supérieur */
.em-featured-machine-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 44px;
  width: 86px;
  height: 3px;
  border-radius: 999px;
  background: var(--em-accent);
}

/* Halo discret dans le panneau texte uniquement */
.em-featured-machine-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 71, 187, 0.08), transparent 68%);
  pointer-events: none;
}

/* Badge */
.em-featured-machine-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 18px;
  padding: 8px 12px;

  border-radius: 999px;
  background: rgba(0, 71, 187, 0.08);
  border: 1px solid rgba(0, 71, 187, 0.16);

  color: var(--em-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.em-featured-machine-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--em-accent);
  box-shadow: 0 0 0 4px rgba(0, 71, 187, 0.10);
}

/* Titre réduit */
.em-featured-machine-panel h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Texte principal */
.em-featured-machine-panel p {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: rgba(15, 23, 42, 0.70);
  font-size: 15px;
  line-height: 1.68;
}

.em-featured-machine-panel .em-featured-machine-lead {
  color: rgba(15, 23, 42, 0.82);
  font-size: 16px;
  line-height: 1.65;
}

/* Specs */
.em-featured-machine-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 28px;
}

.em-featured-machine-specs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 11px;
  border-radius: 999px;

  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.08);

  color: rgba(15, 23, 42, 0.76);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* Bouton / lien hybride */
.em-featured-machine-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--em-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none !important;

  transition:
    color var(--em-transition-fast),
    transform var(--em-transition-fast);
}

.em-featured-machine-link::after {
  content: "→";
  display: inline-block;
  transform: translateX(0);
  transition: transform var(--em-transition-fast);
}

.em-featured-machine-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;

  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: var(--em-accent);

  transition: width var(--em-transition-fast);
}

.em-featured-machine-link:hover {
  color: var(--em-accent-2);
  transform: translateX(2px);
}

.em-featured-machine-link:hover::after {
  transform: translateX(4px);
}

.em-featured-machine-link:hover::before {
  width: 100%;
}

/* Colonne image : libre, sans effet imposé */
.em-featured-machine-visual {
  position: relative;
  z-index: 3;
  overflow: visible;
}

.em-featured-machine-visual .col-inner {
  position: relative;
  overflow: visible !important;
}

/* Image : aucun effet forcé */
.em-featured-machine-img,
.em-featured-machine-img img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Responsive tablette */
@media screen and (max-width: 1024px) {
  .em-featured-machine-panel {
    padding: 36px 34px 34px;
  }

  .em-featured-machine-panel::before {
    left: 34px;
  }

  .em-featured-machine-panel h2 {
    font-size: clamp(23px, 2.4vw, 31px);
  }
}

/* Responsive mobile */
@media screen and (max-width: 849px) {
  .em-featured-machine-row {
    display: flex;
    flex-direction: column-reverse;
  }

  .em-featured-machine-panel {
    max-width: none;
    padding: 30px 24px 30px;
    border-radius: var(--em-radius-md);
  }

  .em-featured-machine-panel::before {
    left: 24px;
    width: 70px;
  }

  .em-featured-machine-panel h2 {
    font-size: 26px;
    line-height: 1.16;
  }

  .em-featured-machine-panel p,
  .em-featured-machine-panel .em-featured-machine-lead {
    font-size: 14px;
    line-height: 1.58;
  }

  .em-featured-machine-specs {
    margin: 20px 0 24px;
  }

  .em-featured-machine-visual .col-inner {
    margin-left: 0;
    text-align: center;
  }

  .em-featured-machine-img,
  .em-featured-machine-img img {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Très petit mobile */
@media screen and (max-width: 549px) {
  .em-featured-machine-panel {
    padding: 28px 20px 28px;
  }

  .em-featured-machine-kicker {
    font-size: 10px;
    padding: 7px 10px;
  }

  .em-featured-machine-panel h2 {
    font-size: 24px;
  }

  .em-featured-machine-specs span {
    font-size: 11.5px;
    padding: 7px 9px;
  }
}

/***- Secteurs d'activité / Image Box carrées compactes -***/

.em-sector-grid {
  position: relative;
  overflow: visible;
}

/* Espace entre les deux lignes */
.em-sector-grid + .em-sector-grid {
  margin-top: 14px;
}

/* Carte Image Box */
.em-sector-card {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--em-radius-sm);

  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.065),
    0 2px 7px rgba(15, 23, 42, 0.035);

  transition:
    transform var(--em-transition),
    border-color var(--em-transition),
    box-shadow var(--em-transition),
    background var(--em-transition);
}

/* Structure Flatsome */
.em-sector-card .box {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Image : hauteur contrôlée pour laisser le texte visible */
.em-sector-card .box-image {
  position: relative;
  flex: 0 0 72%;
  height: 72%;
  min-height: 0;
  max-height: none;
  overflow: hidden;

  background:
    linear-gradient(135deg, rgba(0, 71, 187, 0.08), rgba(15, 23, 42, 0.02));
}

.em-sector-card .box-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter: saturate(0.92) contrast(1.03);

  transition:
    transform var(--em-transition-slow),
    filter var(--em-transition-slow),
    opacity var(--em-transition-slow);
}

/* Zone texte visible et compacte */
.em-sector-card .box-text {
  position: relative;
  flex: 0 0 28%;
  height: 28%;
  min-height: 0;
  padding: 9px 12px 8px;
  background: #ffffff;
  overflow: hidden;
}

/* Accent bleu */
.em-sector-card .box-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: var(--em-accent);
  transition: width var(--em-transition);
}

/* Titre */
.em-sector-card .box-text h3,
.em-sector-card .box-text h4,
.em-sector-card .box-text h5 {
  margin: 0 0 3px;
  color: #0f172a;
  font-size: 14.5px;
  line-height: 1.18;
  font-weight: 600;
}

/* Description */
.em-sector-card .box-text p {
  margin: 0;
  color: rgba(15, 23, 42, 0.64);
  font-size: 11.5px;
  line-height: 1.25;
}

/* Hover */
.em-sector-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 71, 187, 0.22);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.10),
    0 4px 12px rgba(15, 23, 42, 0.05);
}

.em-sector-card:hover .box-image img {
  transform: scale(1.04);
  filter: saturate(1.02) contrast(1.04);
}

.em-sector-card:hover .box-text::before {
  width: 54px;
}

/* Animation légère */
@keyframes emSectorFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -3px;
  }
}

/* Compatible avec deux rows de 4 cartes */
.em-sector-grid .em-sector-card:nth-child(1),
.em-sector-grid .em-sector-card:nth-child(3) {
  animation: emSectorFloat 6.4s ease-in-out infinite;
}

.em-sector-grid .em-sector-card:nth-child(2),
.em-sector-grid .em-sector-card:nth-child(4) {
  animation: emSectorFloat 6.9s ease-in-out infinite;
  animation-delay: .45s;
}

/* Responsive tablette */
@media screen and (max-width: 849px) {
  .em-sector-grid + .em-sector-grid {
    margin-top: 10px;
  }

  .em-sector-card .box-image {
    flex-basis: 72%;
    height: 72%;
  }

  .em-sector-card .box-text {
    flex-basis: 28%;
    height: 28%;
    padding: 8px 10px 7px;
  }

  .em-sector-card .box-text::before {
    left: 10px;
    width: 28px;
  }

  .em-sector-card .box-text h3,
  .em-sector-card .box-text h4,
  .em-sector-card .box-text h5 {
    font-size: 14px;
    line-height: 1.15;
  }

  .em-sector-card .box-text p {
    font-size: 11px;
    line-height: 1.22;
  }
}

/* Responsive mobile : grille 2 colonnes */
@media screen and (max-width: 549px) {
  .em-sector-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .em-sector-grid + .em-sector-grid {
    margin-top: 12px;
  }

  /* Neutralise les colonnes Flatsome pour cette grille */
  .em-sector-grid > .col {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }

  .em-sector-card {
    aspect-ratio: 1 / 1;
    min-height: auto;
    border-radius: var(--em-radius-xs);
  }

  .em-sector-card .box {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .em-sector-card .box-image {
    flex: 0 0 74%;
    height: 74%;
    min-height: 0;
    max-height: none;
  }

  .em-sector-card .box-image img {
    height: 100%;
    object-fit: cover;
  }

  .em-sector-card .box-text {
    flex: 0 0 26%;
    height: 26%;
    min-height: 0;
    padding: 8px 9px 7px;
    display: flex;
    align-items: center;
    background: #ffffff;
    overflow: hidden;
  }

  .em-sector-card .box-text::before {
    left: 9px;
    width: 24px;
    height: 2px;
  }

  .em-sector-card .box-text h3,
  .em-sector-card .box-text h4,
  .em-sector-card .box-text h5 {
    margin: 0;
    font-size: 13px;
    line-height: 1.15;
  }

  /* Sur mobile, on masque la description pour garder des cartes compactes */
  .em-sector-card .box-text p {
    display: none;
  }

  .em-sector-card:hover {
    transform: translateY(-3px);
  }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  .em-sector-card {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }

  .em-sector-card .box-image img,
  .em-sector-card .box-text::before {
    transition-duration: 0.001ms !important;
  }
}

/***- Process machine / cartes flottantes avancées -***/

.em-process-section {
  position: relative;
  overflow: visible;
}

/* Row qui porte le filament */
.em-process-row {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding-top: 28px;
  padding-bottom: 28px;
}

/* Filament pointillé bleu */
.em-process-row::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  z-index: 0;

  background: repeating-linear-gradient(
    to right,
    rgba(0, 71, 187, 0) 0px,
    rgba(0, 71, 187, 0) 8px,
    rgba(0, 71, 187, 0.78) 8px,
    rgba(0, 71, 187, 0.78) 16px
  );

  opacity: .72;
  box-shadow:
    0 0 10px rgba(0, 71, 187, 0.12),
    0 0 22px rgba(0, 71, 187, 0.08);
}

/* Éclat lumineux qui glisse sur le filament */
.em-process-row::after {
  content: "";
  position: absolute;
  left: 8%;
  top: 50%;
  width: 120px;
  height: 2px;
  transform: translateY(-50%);
  z-index: 1;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 71, 187, 0.15),
    rgba(0, 71, 187, 0.95),
    rgba(0, 71, 187, 0.15),
    transparent
  );

  filter: blur(.2px);
  opacity: .75;
  animation: emFilamentFlow 6.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes emFilamentFlow {
  0% {
    left: 8%;
    opacity: 0;
  }
  12% {
    opacity: .75;
  }
  50% {
    opacity: .9;
  }
  88% {
    opacity: .75;
  }
  100% {
    left: calc(92% - 120px);
    opacity: 0;
  }
}

/* Colonnes au-dessus du filament */
.em-process-col {
  position: relative;
  z-index: 2;
}

/* Décalage vertical des cartes */
.em-process-col:nth-child(1) {
  transform: translateY(-18px);
}

.em-process-col:nth-child(2) {
  transform: translateY(18px);
}

.em-process-col:nth-child(3) {
  transform: translateY(-12px);
}

.em-process-col:nth-child(4) {
  transform: translateY(14px);
}

/* Carte sobre fond blanc */
.em-process-card {
  position: relative;
  max-width: 285px;
  min-height: 225px;
  margin: 0 auto;
  padding: 30px 24px 24px;

  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--em-radius-md);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.08),
    0 3px 10px rgba(15, 23, 42, 0.04);

  text-align: left;
  overflow: visible;

  transition:
    transform var(--em-transition),
    border-color var(--em-transition),
    box-shadow var(--em-transition);
}

/* Accent supérieur */
.em-process-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--em-accent);
  transition: width var(--em-transition);
}

/* Point de connexion avec le filament */
.em-process-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;

  background: #ffffff;
  border: 2px solid var(--em-accent);
  box-shadow:
    0 0 0 4px rgba(0, 71, 187, 0.08),
    0 0 14px rgba(0, 71, 187, 0.16);
}

/* Numéro */
.em-process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;

  background: rgba(0, 71, 187, 0.08);
  border: 1px solid rgba(0, 71, 187, 0.16);
  color: var(--em-accent);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Titre */
.em-process-card h3 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

/* Texte */
.em-process-card p {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

/* Flottement très léger */
@keyframes emProcessFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.em-process-col:nth-child(1) .em-process-card {
  animation: emProcessFloat 5.8s ease-in-out infinite;
}

.em-process-col:nth-child(2) .em-process-card {
  animation: emProcessFloat 6.3s ease-in-out infinite;
  animation-delay: .45s;
}

.em-process-col:nth-child(3) .em-process-card {
  animation: emProcessFloat 5.6s ease-in-out infinite;
  animation-delay: .9s;
}

.em-process-col:nth-child(4) .em-process-card {
  animation: emProcessFloat 6.1s ease-in-out infinite;
  animation-delay: .25s;
}

/* Hover */
.em-process-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 71, 187, 0.22);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.11),
    0 5px 14px rgba(15, 23, 42, 0.06);
}

.em-process-card:hover::before {
  width: 86px;
}

/* Responsive tablette */
@media screen and (max-width: 1024px) {
  .em-process-row {
    padding-top: 0;
    padding-bottom: 0;
  }

  .em-process-row::before,
  .em-process-row::after {
    display: none;
  }

  .em-process-col,
  .em-process-col:nth-child(1),
  .em-process-col:nth-child(2),
  .em-process-col:nth-child(3),
  .em-process-col:nth-child(4) {
    transform: none;
  }

  .em-process-card {
    max-width: 320px;
    margin-bottom: 24px;
  }

  .em-process-card::after {
    display: none;
  }
}

/* Responsive mobile */
@media screen and (max-width: 549px) {
  .em-process-card {
    min-height: auto;
    padding: 26px 20px 22px;
    border-radius: var(--em-radius-sm);
  }

  .em-process-card h3 {
    font-size: 17px;
  }

  .em-process-card p {
    font-size: 13.5px;
    line-height: 1.55;
  }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  .em-process-card,
  .em-process-row::after {
    animation: none !important;
  }
}

/* Mega Menu */

.mega-menu-produits-column {
  background-color: #ffffff;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.872), rgba(255, 255, 255, 0.872)),
    url("https://new.emissa.com/wp-content/uploads/bg_ppemissa-scaled.png");

  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}


.em-radius-10 img {
	border-radius: 10px;
}

/* Badges */
.em-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 28px;
}

.em-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 11px;
  border-radius: 999px;

  background: #cbcbcb;
  border: 1px solid #767676;

  color: rgba(15, 23, 42, 0.76);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* Top bar */
#top-bar .container {
  max-width: 100% !important;
  padding-left: 20px;
  padding-right: 20px;
}

/* Menu principal */
.header-nav-main > li > a.nav-top-link {
  display: inline-block;
  transition: transform 0.22s ease, text-shadow 0.22s ease;
}

.header-nav-main > li:hover > a.nav-top-link,
.header-nav-main > li.current-menu-item > a.nav-top-link,
.header-nav-main > li.current_page_item > a.nav-top-link,
.header-nav-main > li.active > a.nav-top-link {
  transform: translateY(-3px);
}

/* Mega menu */
.mega-menu-produits-sec {
  position: relative;
  display: flex;
  align-items: flex-start !important;
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
}

.mega-menu-produits {
  margin-left: auto !important;
  margin-right: auto !important;
}

/*.mega-menu-produits-column {
  border-radius: 0 0 10px 10px !important;
  overflow: visible !important;
  pointer-events: auto;
}

.mega-menu-produits-column > .col-inner {
  border-radius: 0 0 10px 10px !important;
  overflow: hidden !important;
}*/

#menu-item-1970 > .nav-dropdown {
  pointer-events: none;
}

#menu-item-1970 > .nav-dropdown .mega-menu-produits-column,
#menu-item-1970 > .nav-dropdown .mega-menu-produits-column * {
  pointer-events: auto;
}

#menu-item-1970:hover > .nav-dropdown .mega-menu-produits,
#menu-item-1970 > .nav-dropdown .mega-menu-produits-column:hover {
  opacity: 1;
  pointer-events: auto;
}

#masthead.header-main {
  transition: background-color 0.25s ease;
}

#masthead.header-main:has(#menu-item-1970:hover),
#masthead.header-main:has(#menu-item-1970 .mega-menu-produits-column:hover) {
  background-color: #ffffff !important;
}

/* ----> Background <---- */

/* blog */
.blog-wrapper {
  background-image: url("/wp-content/uploads/2025/04/BG_EMISSA_UHD_CR5.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* page entreprise */
.entreprise-notre-histoire {
  background-image: url("/wp-content/uploads/1971-2-1070x800.jpg");
  background-size: cover;
  background-attachment: fixed;
}

/* page savoir-faire */
.savoir-faire {
  background-image: url("/wp-content/uploads/Savoir-faire_i2.png");
  background-size: cover;
  background-attachment: fixed;
}
.savoir-faire-process {
  background-image: url("/wp-content/uploads/WP-Savoir-faire-01.jpg");
  background-size: cover;
  background-attachment: fixed;
}

/* section dernier produit sur page d'accueil */
.sec-last-product {
  position: relative;
  overflow: hidden;
  background: transparent;
  padding: 0 !important;
}

.sec-last-product .section-bg.fill {
  background: #0047ba !important;
  inset: 0;
  border-radius: 0;
}

.sec-last-product > .section-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  margin: 20px;
  overflow: hidden;
}

/* Utilitaires */
.no-margin-bottom {
  margin-bottom: 0 !important;
}

.no-padding-bottom {
  padding-bottom: 0 !important;
}

@media screen and (max-width: 849px) {
  .min-no-padding-bottom {
    padding-bottom: 0 !important;
  }
}

/* Cohérence visuelle globale */
body,
p,
span,
li,
label {
  color: inherit;
}

a {
  transition:
    color var(--em-transition-fast),
    opacity var(--em-transition-fast),
    transform var(--em-transition-fast);
}

img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/***---------------------- Header ----------------------***/

@media screen and (max-width: 1080px) {
  .header-nav-main > .menu-item > a {
    font-size: .7em;
  }
}

@media screen and (max-width: 930px) {
  .header-nav-main > .menu-item > a {
    font-size: .55em;
  }
}

/***---------------------- Page ----------------------***/

/* page accueil */
.full-height-section {
  min-height: calc(100vh - 120px);
}

.full-height-section > .row {
  display: flex;
  align-items: center;
}

/* flèche machine sur mesure */
.arrow-basic-pro {
  display: block;
  margin: 0 auto;
  overflow: visible;
  animation: arrowPulsePro 2.4s ease-in-out infinite;
}

@keyframes arrowPulsePro {
  0%, 100% {
    opacity: 0.55;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(3px);
  }
}

/* Page d'intro */
.intro-hero {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.intro-hero.is-hidden {
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}

/* flèche auto-scroll */
.full-height-section .icon-angle-down {
  font-size: 30px;
  color: var(--em-accent);
  position: relative;
  animation: arrow-pulse 2s ease-in-out infinite;
}

.full-height-section .icon-angle-down::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 22px;
  background: var(--em-accent);
  transform: translateX(-50%);
  opacity: 0.6;
}

@keyframes arrow-pulse {
  0% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(12px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
}

/* column transparente */
.ui-panel > .col-inner {
  backdrop-filter: blur(8px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(130%) !important;
}

/* Bannière savoir-faire robot */
.banner-robot {
  border-radius: var(--em-radius-lg);
  overflow: hidden;
  box-shadow:
    var(--em-shadow-xl),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(0);
  transition: transform var(--em-transition), box-shadow var(--em-transition);
}

/* Bannière vidéo savoir-faire */
.banner-robot-vid {
  position: relative;
  border-radius: var(--em-radius-lg);
  overflow: hidden;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.12),
    0 5px 15px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(0);
  transition: transform var(--em-transition), box-shadow var(--em-transition);
}

/* Masque la section suivante pendant l’intro */
.intro-hero + .section {
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.intro-done .intro-hero + .section {
  opacity: 1;
}

/* Dots page héritage */
.scroll-to-bullets {
  --accent: var(--em-accent);
  --accent-dark: #0f172a;
  --text-soft: rgba(15, 23, 42, 0.88);
  --line-soft: rgba(0, 71, 187, 0.28);
  --glass: rgba(255, 255, 255, 0.56);
  --glass-border: rgba(255, 255, 255, 0.34);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --top-safe: 110px;
  --bottom-safe: 24px;

  position: fixed;
  right: 28px;
  top: calc(var(--top-safe) + (100vh - var(--top-safe) - var(--bottom-safe)) / 2);
  transform: translateY(-50%);
  z-index: 50;

  display: flex;
  flex-direction: column;
  gap: 6px;

  padding: 14px 12px;
  border-radius: var(--em-radius-md);

  max-height: calc(100vh - var(--top-safe) - var(--bottom-safe));
  overflow-y: auto;
  overflow-x: hidden;

  background: var(--glass);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.scroll-to-bullets a {
  all: unset;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 18px;
  cursor: pointer;
  opacity: 0.44;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.scroll-to-bullets a strong {
  display: none !important;
}

.scroll-to-bullets a::before {
  content: "";
  display: block;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--line-soft);
  transition:
    width var(--em-transition),
    height var(--em-transition),
    background var(--em-transition),
    opacity var(--em-transition);
}

.scroll-to-bullets a::after {
  content: attr(data-title);
  margin-left: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-soft);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.28s ease, transform 0.28s ease, color 0.28s ease;
}

.scroll-to-bullets a:hover,
.scroll-to-bullets a.active {
  opacity: 1;
  transform: translateX(-2px);
}

.scroll-to-bullets a:hover::before,
.scroll-to-bullets a.active::before {
  width: 34px;
  height: 3px;
  background: var(--accent);
}

.scroll-to-bullets a:hover::after,
.scroll-to-bullets a.active::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-dark);
}

.scroll-to-bullets a:nth-child(5n + 1)::after {
  opacity: 0.82;
  transform: translateX(0);
}

.scroll-to-bullets a:nth-child(5n + 1):not(.active):not(:hover)::before {
  width: 18px;
  background: rgba(0, 71, 187, 0.46);
}

.scroll-to-bullets a.active::after {
  font-weight: 700;
  color: var(--accent);
}

.scroll-to-bullets a:hover + a,
.scroll-to-bullets a.active + a {
  transform: translateX(-1px);
}

.scroll-to-bullets a:has(+ .active),
.scroll-to-bullets a:has(+ :hover) {
  transform: translateX(-1px);
}

.scroll-to-bullets:empty {
  display: none !important;
}

.tooltipster-base {
  display: none !important;
}

.scroll-to-bullets::-webkit-scrollbar {
  width: 4px;
}

.scroll-to-bullets::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
}

.scroll-to-bullets::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 900px) {
  .scroll-to-bullets {
    display: none;
  }
}

/* Arrondi banner accueil */
.banner-accueil-en {
  border-radius: var(--em-radius-xs);
  overflow: hidden;
}

/***---------------------- Cartes / Produits ----------------------***/

/* Base commune pour cartes */
.category-card,
.category-card-a,
.machine-card,
.machine-card-mm,
.p-catalogue,
.accordion-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--em-border-soft);
  box-shadow: var(--em-shadow-sm);
  transition:
    transform var(--em-transition-fast),
    border-color var(--em-transition-fast),
    box-shadow var(--em-transition-fast),
    background var(--em-transition-fast);
}

.category-card,
.category-card-a,
.machine-card {
  height: 100%;
  border-radius: var(--em-radius-sm);
}

.category-card,
.machine-card {
  background: var(--em-surface-1);
}

.category-card-a {
  background: var(--em-surface-1);
}

.category-card .box-image,
.category-card-a .box-image,
.machine-card .box-image {
  overflow: hidden;
}

.category-card img,
.category-card-a img,
.machine-card img,
.machine-card-mm img {
  transition: transform var(--em-transition-slow), filter var(--em-transition-slow);
}

.category-card img,
.category-card-a img {
  filter: brightness(.86) contrast(1.05);
}

.machine-card img {
  filter: saturate(1.02) contrast(1.02);
}

/* Badges catégories machines page produit */
.category-card {
  background: rgba(0, 0, 0, .35);
}

.category-card .box-text {
  position: relative;
  margin-top: -2px;
  padding: 24px 22px 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.015), rgba(255,255,255,0.00)),
    rgba(0, 0, 0, 0.18);
}

.category-card .box-text::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 0;
  background: var(--em-accent);
  transition: width var(--em-transition);
}

.category-card .box-text h4,
.category-card .box-text h5 {
  color: var(--em-text-strong);
  margin: 0;
  letter-spacing: .02em;
  font-weight: 600;
}

.category-card:hover,
.category-card.is-active {
  transform: translateY(-4px);
  border-color: var(--em-border-strong);
  box-shadow: var(--em-shadow-lg);
}

.category-card:hover img,
.category-card.is-active img {
  transform: scale(1.05);
  filter: brightness(.94);
}

.category-card:hover .box-text::before,
.category-card.is-active .box-text::before {
  width: 100%;
}

/* badges équipements machine */
.category-card-a .box-image {
  background: var(--em-surface-3);
}

.category-card-a .box-text {
  position: relative;
  padding: 24px 22px 22px 28px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.015), rgba(255,255,255,0.00)),
    rgba(0,0,0,.28);
}

.category-card-a .box-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--em-accent);
  transition: height var(--em-transition);
}

.category-card-a .box-text h4,
.category-card-a .box-text h5 {
  color: var(--em-text-strong);
  margin: 0;
  letter-spacing: .02em;
  font-weight: 600;
}

.category-card-a .box-text p {
  color: var(--em-text-soft);
  margin-top: 8px;
  margin-bottom: 0;
}

.category-card-a:hover,
.category-card-a.is-active {
  transform: translateY(-4px);
  border-color: var(--em-border-strong);
  box-shadow: var(--em-shadow-lg);
}

.category-card-a:hover img,
.category-card-a.is-active img {
  transform: scale(1.05);
  filter: brightness(.94);
}

.category-card-a:hover .box-text::before,
.category-card-a.is-active .box-text::before {
  height: calc(100% - 44px);
}

/* Badges présentation machines page produit */
.machine-card {
  background: var(--em-surface-1);
}

.machine-card .box-image {
  background: var(--em-surface-4);
}

.machine-card .box-text {
  padding: 18px 16px 18px;
  position: relative;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.012), rgba(255,255,255,0));
}

.machine-card .box-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 0;
  background: var(--em-accent);
  transition: width var(--em-transition);
}

.machine-card .box-text h5,
.machine-card .box-text h4 {
  color: var(--em-text-strong);
  font-weight: 600;
  letter-spacing: .01em;
  margin: 8px 0 6px 0;
  transition: color var(--em-transition-fast);
}

.machine-card .box-text p {
  color: var(--em-text-soft);
}

.machine-card:hover {
  transform: translateY(-3px);
  border-color: var(--em-border-accent);
  box-shadow: var(--em-shadow-lg);
}

.machine-card:hover img {
  transform: scale(1.04);
}

.machine-card:hover .box-text::before {
  width: 100%;
}

.machine-card:hover .box-text h5,
.machine-card:hover .box-text h4 {
  color: var(--em-white);
}

.machine-card::before {
  content: "EMISSA";
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.46);
  z-index: 2;
}

/* afficher - masquer section catégorie produits */
.machine-category-section {
  display: none;
}

/* application-label */
.application-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1;
  transition:
    transform var(--em-transition-fast),
    border-color var(--em-transition-fast),
    color var(--em-transition-fast),
    background var(--em-transition-fast),
    box-shadow var(--em-transition-fast);
}

.application-label .box-text-inner {
  text-align: center;
}

.application-label:hover,
.application-label.is-active {
  transform: translateY(-1px);
  border-color: rgba(0,71,187,.65);
  background: rgba(0,71,187,.12);
  color: var(--em-white);
  box-shadow: 0 8px 20px rgba(0,71,187,.14);
}

/* afficher - masquer section application produits */
.application-section {
  display: none;
}

/* flèche pour lecture section déroulante */
.machine-category-section,
.application-section {
  position: relative;
  padding-top: 36px;
}

.machine-category-section::before,
.application-section::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255,255,255,.65);
  border-bottom: 2px solid rgba(255,255,255,.65);
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}

/***---------------------- Image Map ---------------------***/
.imp-object-menu.imp-object-menu-right {
  border-radius: 0px;
  overflow: hidden;
  height: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.emi-img-map .imp-ui-dark .imp-object-menu {
	background: none;
}

.emi-img-map .imp-ui-dark .imp-object-list-item {
	background: none;
	margin-bottom: 5px;
	border-radius: 10px;
}

.imp-object-list-item p {
	margin-bottom: 0;
}

/*#imgmap-fanuc {
	text-align: center;
}

#imgmap-fanuc img {
	width: 50%;
}*/

/***---------------------- Tableaux ----------------------***/

/* Tableaux machine */
.machine-spec-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  font-family: inherit !important;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--em-radius-sm);
  overflow: hidden;
  box-shadow: var(--em-shadow-md);
}

.machine-spec-table th {
  padding: 10px 16px !important;
  text-align: left;
  background: rgba(0,71,187,.18) !important;
  color: var(--em-white);
  font-weight: 600;
  letter-spacing: .02em;
  font-size: 14px;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

.machine-spec-table td {
  padding: 10px 16px !important;
  color: rgba(255,255,255,.88);
  font-size: 13.5px;
  line-height: 1.35;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  background: transparent !important;
}

.machine-spec-table tr:last-child td {
  border-bottom: 0 !important;
}

.machine-spec-table td:nth-child(1) {
  width: 46%;
  font-weight: 500;
  color: rgba(255,255,255,.94);
}

.machine-spec-table td:nth-child(2) {
  width: 14%;
  color: rgba(255,255,255,.50);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11.5px;
}

.machine-spec-table td:nth-child(3) {
  width: 40%;
  color: var(--em-white);
  font-weight: 600;
  font-size: 14px;
}

.machine-spec-table tr:hover td {
  background: rgba(255,255,255,.03) !important;
}

.machine-spec-table th span {
  color: var(--em-white) !important;
}

.machine-spec-table td,
.machine-spec-table th {
  vertical-align: middle;
}

/***---------------------- Catalogue / Mega menu ----------------------***/

/* catalogue page produit */
.p-catalogue {
  border-radius: var(--em-radius-sm);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--em-shadow-sm);
}

.p-catalogue img {
  display: block;
  width: 100%;
}

.p-catalogue:hover {
  border-color: rgba(255,255,255,.14);
  box-shadow: var(--em-shadow-md);
}

/* cartes machines mega menu */
.machine-card-mm {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.025);
  border-radius: var(--em-radius-xs);
  height: 100%;
}

.machine-card-mm .box-image {
  overflow: hidden;
  background: transparent;
}

.machine-card-mm .box-image,
.machine-card-mm .image-cover {
  position: relative;
}

.machine-card-mm .box-image::before,
.machine-card-mm .box-image::after,
.machine-card-mm .image-cover::before,
.machine-card-mm .image-cover::after,
.machine-card-mm .overlay,
.machine-card-mm .shade,
.machine-card-mm .box-overlay {
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

.machine-card-mm img {
  display: block;
  width: 100%;
  filter: saturate(1.01) contrast(1.01) brightness(.98);
}

.machine-card-mm .box-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-height: 78px;
  padding: 10px 10px 11px;
}

.machine-card-mm .box-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--em-accent);
  transition: width var(--em-transition);
}

.machine-card-mm .box-text h4,
.machine-card-mm .box-text h5,
.machine-card-mm .box-text h6 {
  margin: 4px 0 0;
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .01em;
  transition: color var(--em-transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

.machine-card-mm .box-text p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.65);
  font-size: 11.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.4em * 2);
}

.machine-card-mm:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.04);
  border-color: rgba(0,71,187,.45);
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}

.machine-card-mm:hover img {
  transform: scale(1.03);
  filter: saturate(1.03) contrast(1.02) brightness(1);
}

.machine-card-mm:hover .box-text::before {
  width: 100%;
}

.machine-card-mm:hover .box-text h4,
.machine-card-mm:hover .box-text h5,
.machine-card-mm:hover .box-text h6 {
  color: var(--em-white);
}

.machine-card-mm::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--em-radius-xs);
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  transition: opacity var(--em-transition-fast);
}

.machine-card-mm:hover::after {
  opacity: 1;
}

/* Mega-menu */
.header-nav .menu-item-design-full-width {
  position: relative;
}

.header-nav .menu-item-design-full-width > .sub-menu.nav-dropdown {
  padding: 0 !important;
  background: transparent;
  border: none;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

.header-nav .menu-item-design-full-width > .sub-menu.nav-dropdown::before,
.header-nav .menu-item-design-full-width > .sub-menu.nav-dropdown::after {
  display: none;
  content: none;
}

.header-nav .menu-item-design-full-width > .sub-menu.nav-dropdown > .section {
  margin: 0;
  border: none;
  box-shadow: none;
  -webkit-box-shadow: none;
}

.header-nav .menu-item-design-full-width > .sub-menu.nav-dropdown > .section > .section-content {
  width: 100%;
}

.header-nav .menu-item-design-full-width > .sub-menu.nav-dropdown > .section > .section-content > .row {
  margin-left: auto;
  margin-right: auto;
}

.header-nav .menu-item-design-full-width > .sub-menu.nav-dropdown {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

/* Menu de gauche dans le mega menu */
.mini-menu_mega .ux-menu-link__link {
  position: relative;
  padding: 8px 0;
}

.mini-menu_mega .ux-menu-link__text {
  position: relative;
  display: inline-block;
  color: rgba(255,255,255,.72);
  transition: color var(--em-transition-fast), transform var(--em-transition-fast);
}

.mini-menu_mega .ux-menu-link__text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--em-accent);
  transition: width var(--em-transition-fast);
}

.mini-menu_mega .ux-menu-link__link:hover .ux-menu-link__text {
  color: var(--em-white);
  transform: translateX(3px);
}

.mini-menu_mega .ux-menu-link__link:hover .ux-menu-link__text::after {
  width: 100%;
}

/* Menu de droite dans mega menu */
.accordion {
  border: none;
}

.accordion-item {
  background: rgba(255,255,255,.035);
  border-radius: var(--em-radius-sm);
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.accordion-title {
  padding: 18px 22px;
  padding-right: 54px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,.92);
  position: relative;
  transition: color var(--em-transition-fast);
  cursor: pointer;
}

.accordion-title::before {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--em-accent);
  transition: width var(--em-transition);
}

.accordion-inner {
  padding: 4px 22px 22px 22px;
  color: rgba(255,255,255,.74);
  line-height: 1.7;
  animation: fadeSlide .35s ease;
}

.accordion-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0,71,187,.5);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
}

.accordion-item.active {
  transform: translateY(-2px);
  border-color: rgba(0,71,187,.8);
  background: rgba(0,71,187,.06);
  box-shadow: 0 14px 34px rgba(0,0,0,.55);
}

.accordion-item.active .accordion-title::before {
  width: calc(100% - 44px);
}

.accordion-item:hover .accordion-title,
.accordion-item.active .accordion-title {
  color: var(--em-white);
}

.accordion .accordion-title .toggle,
.accordion .accordion-title i,
.accordion .accordion-title .icon-angle-down {
  display: none !important;
}

.accordion-title::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: rgba(255,255,255,.58);
  transition: transform var(--em-transition), color var(--em-transition-fast);
}

.accordion-item.active .accordion-title::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--em-white);
}

.accordion-item:hover .accordion-title::after {
  color: var(--em-white);
}

.accordion-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--em-radius-sm);
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  transition: opacity var(--em-transition);
}

.accordion-item:hover::after,
.accordion-item.active::after {
  opacity: 1;
}

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

@media screen and (max-width: 849px) {
  .accordion-title {
    padding: 16px 18px;
    padding-right: 46px;
    font-size: 15px;
  }

  .accordion-inner {
    padding: 2px 18px 18px 18px;
    font-size: 14px;
    line-height: 1.65;
  }

  .accordion-title::before {
    left: 18px;
  }

  .accordion-title::after {
    right: 18px;
    font-size: 20px;
  }

  .accordion-item.active .accordion-title::before {
    width: calc(100% - 36px);
  }
}

/***---------------------- Blog ----------------------***/

/* Blog Accueil */
.row .blog-accueil {
  margin-right: auto !important;
  margin-left: auto !important;
}

.blog-accueil .box-text .is-divider {
  background-color: var(--fs-color-secondary);
}

.blog-accueil .box-image img {
  background-color: #fff;
  object-fit: contain;
}

.footer-primary.pull-left {
  text-align: center !important;
  float: none !important;
  margin: 0 auto !important;
  display: block !important;
  width: 100% !important;
}

/* Blog */
.post .article-inner {
  border-radius: var(--em-radius-xs);
  overflow: hidden;
  box-shadow: var(--em-shadow-sm);
}

.post .article-inner footer.entry-meta,
.post .article-inner .bb {
  border: none;
}

/***---------------------- Barre progression ----------------------***/

#progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  z-index: 9999;
}

#progress-bar {
  height: 100%;
  width: 0;
  background:
    linear-gradient(90deg, var(--em-accent), var(--em-accent-2));
  transition: width 0.2s ease;
  box-shadow: 0 0 12px rgba(0, 71, 187, 0.35);
}

/***---------------------- Footer ----------------------***/
.absolute-footer {
  display: none;
}

.footer-row {
  /*background:
    linear-gradient(to bottom, rgba(44,49,54), rgba(88,88,88));*/
  padding-top: 30px !important;
  padding-bottom: 0 !important;
  /*border-top: 1px solid rgba(255,255,255,.06);*/
}

.footer-row .col {
  padding-bottom: 0;
}

.footer-link .ux-menu-link__link {
  min-height: 0;
  padding-top: 0;
}

.footer-link .ux-menu-link__text {
  position: relative;
  transition: transform 0.3s ease-out, color 0.3s ease-out, opacity 0.3s ease-out;
}

.footer-link .ux-menu-link__text:hover {
  transform: translateX(5px);
  color: var(--em-white);
}

.footer-link .ux-menu-link__icon {
  transition: color 0.3s ease-out;
}

.footer-link .ux-menu-link__link:hover .ux-menu-link__icon {
  color: #0047bb;
}

.back-to-top.button.is-outline:not(:hover) {
  color: var(--em-accent) !important;
  border-color: rgba(0,71,187,.35) !important;
}

@media only screen and (max-width: 48em) {
  /*************** ADD MOBILE ONLY CSS HERE ***************/
	
@media screen and (max-width: 849px) {
  .blog-wrapper,
  .entreprise-notre-histoire,
  .savoir-faire,
  .savoir-faire-process {
    background-attachment: scroll;
  }
}
}