/* secteurs.css - Specific stylesheet for NØDE Secteurs page */

/* ==========================================
   1. HERO SECTION (50VH SOBRE)
   ========================================== */
.secteurs-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.secteurs-hero .hero-glow {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 35vw;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(168,184,232,0.06) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

.secteurs-hero .hero-content {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4%;
  width: 100%;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.breadcrumb .separator {
  margin: 0 8px;
}

.breadcrumb .current {
  color: var(--accent-iris-1);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  color: var(--text-primary);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.secteurs-hero .hero-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 0;
}


/* ==========================================
   2. 2X3 DYNAMIC SECTORS GRID
   ========================================== */
.secteurs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sector-card {
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 48px 40px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth);
}

/* Iridescent rotating border via Webkit Mask Composite (Exclusive premium layout) */
.sector-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px; /* border thickness */
  border-radius: 6px;
  background: conic-gradient(
    from var(--angle, 0deg),
    #bb4430, #7ebdc2, #f3dfa2, #efe6dd, #bb4430
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: 2;
}

.sector-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 10px 40px rgba(168, 184, 232, 0.05);
}

.sector-card:hover::before {
  opacity: 1;
  animation: rotate-border 4s linear infinite;
}

@keyframes rotate-border {
  to {
    --angle: 360deg;
  }
}

/* Fallback for Safari/Firefox where @property --angle might fail */
@supports not (background: conic-gradient(from var(--angle), red, blue)) {
  .sector-card:hover {
    border-color: var(--border-active);
  }
}

.sector-header {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.sector-icon {
  width: 44px;
  height: 44px;
  stroke: var(--accent-iris-1);
  flex-shrink: 0;
}

.sector-title-card {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 24px);
  color: var(--text-primary);
  line-height: 1.2;
}

.sector-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.sector-bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
}

.sector-bullet-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-iris-2);
}

.sector-link {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-iris-1);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
  align-self: flex-start;
}

.sector-link:hover {
  color: var(--text-primary);
  padding-left: 4px;
}


/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1024px) {
  .secteurs-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .secteurs-hero {
    height: auto;
    padding: 100px 0 60px 0;
  }

  .sector-card {
    padding: 36px 30px;
    min-height: auto;
  }

  .sector-header {
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .sector-bullet-list {
    margin-bottom: 2.25rem;
  }
}
