/*
Theme Name: Arsoptec
Theme URI: https://arsoptec.be
Author: Arsoptec
Description: Thème WordPress pour Arsoptec – Expert en Toiture. Design industriel prestige.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: arsoptec
*/

html { scroll-behavior: smooth; background-color: #0a0a0a; }

.torn-edge-top {
  clip-path: polygon(0% 10px, 5% 0px, 10% 12px, 15% 2px, 20% 15px, 25% 5px, 30% 18px, 35% 8px, 40% 12px, 45% 4px, 50% 16px, 55% 6px, 60% 14px, 65% 2px, 70% 18px, 75% 8px, 80% 15px, 85% 5px, 90% 12px, 95% 2px, 100% 10px, 100% 100%, 0% 100%);
}
.torn-edge-bottom {
  clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 10px), 95% 100%, 90% calc(100% - 12px), 85% calc(100% - 2px), 80% calc(100% - 15px), 75% calc(100% - 5px), 70% calc(100% - 18px), 65% calc(100% - 8px), 60% calc(100% - 12px), 55% calc(100% - 4px), 50% calc(100% - 16px), 45% calc(100% - 6px), 40% calc(100% - 14px), 35% calc(100% - 2px), 30% calc(100% - 18px), 25% calc(100% - 8px), 20% calc(100% - 15px), 15% calc(100% - 5px), 10% calc(100% - 12px), 5% calc(100% - 2px), 0% calc(100% - 10px));
}
.torn-edge-left {
  clip-path: polygon(2% 0, 100% 0, 100% 100%, 3% 100%, 1% 95%, 4% 92%, 0% 88%, 3% 85%, 1% 80%, 5% 75%, 0% 70%, 4% 65%, 2% 60%, 6% 55%, 1% 50%, 5% 45%, 0% 40%, 3% 35%, 1% 30%, 4% 25%, 0% 20%, 5% 15%, 2% 10%, 4% 5%);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-inner { animation: marquee 28s linear infinite; }


/* Section engagement — fond noir sur mobile, pas de clip-path */
@media (max-width: 767px) {
  #engagement {
    background-color: #000 !important;
  }
  #engagement .torn-edge-left {
    clip-path: none;
  }
}

/* Burger mobile — noir au sommet, blanc après scroll */
@media (max-width: 767px) {
  .burger-line {
    background-color: #1a1a1a;
  }
  #main-nav.scrolled .burger-line {
    background-color: #ffffff;
  }
}

/* Navbar scroll transition */
#main-nav {
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
#main-nav a.nav-link {
  color: #1a1a1a;
  transition: color 0.3s ease;
}
#main-nav.scrolled a.nav-link {
  color: rgba(255,255,255,0.85);
}
#main-nav.scrolled a.nav-link:hover {
  color: #ffffff;
}
#main-nav.scrolled {
  background: rgba(14, 14, 14, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
#main-nav a.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #ffc23d;
  transition: width 0.25s ease;
  margin-top: 2px;
}
#main-nav a.nav-link:hover::after {
  width: 100%;
}
