/* offres.css - Specific stylesheet for NØDE Offres page */

/* ==========================================
   1. HERO SECTION (50VH SOBRE)
   ========================================== */
.offres-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);
}

.offres-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;
}

.offres-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;
}

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


/* ==========================================
   2. EXPANDABLE ACCORDIONS
   ========================================== */
.accordions-section {
  padding-top: 60px;
}

.accordion-group {
  max-width: 1200px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-smooth);
}

.accordion-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.accordion-item:hover {
  border-color: rgba(168, 184, 232, 0.3);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion-header .header-left {
  display: flex;
  gap: 3.5rem;
  align-items: center;
}

.accordion-header .num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.accordion-header .title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 36px);
  color: var(--text-primary);
  line-height: 1.2;
  transition: color var(--transition-fast);
}

.accordion-header .short-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.chevron-box {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), background-color var(--transition-smooth);
}

.chevron-box .chevron {
  stroke: var(--text-secondary);
  transition: stroke var(--transition-fast), transform var(--transition-smooth);
}

/* Accordion hover dynamics */
.accordion-item:hover .chevron-box {
  border-color: var(--border-active);
  background-color: rgba(168, 184, 232, 0.03);
}

.accordion-item:hover .chevron-box .chevron {
  stroke: var(--text-primary);
}

.accordion-item:hover .num {
  color: var(--accent-iris-1);
}

/* Panel Expansion grid transition */
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Native until-found display logic: standard browsers hide via CSS grid, until-found is overridden */
.accordion-panel[hidden] {
  display: grid; /* Overwrite display:none of hidden attribute to keep grid animation */
  grid-template-rows: 0fr;
}

.accordion-item.active .accordion-panel {
  grid-template-rows: 1fr;
}

/* Panel open styles */
.accordion-item.active .chevron-box {
  border-color: var(--accent-iris-1);
  background-color: var(--accent-iris-1);
}

.accordion-item.active .chevron-box .chevron {
  stroke: #080808;
  transform: rotate(180deg);
}

.panel-inner {
  min-height: 0; /* Critical for CSS grid 0fr -> 1fr animation */
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  padding-bottom: 56px;
  padding-left: 6.5rem; /* Indent under header texts */
}

/* Panel Left (Checklist) */
.panel-left h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.panel-intro {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.checklist li {
  display: flex;
  gap: 1.25rem;
  font-size: 15px;
  color: var(--text-secondary);
}

.checklist li strong {
  color: var(--text-primary);
  font-size: 16px;
}

.check-tagline {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: var(--accent-iris-1);
  margin: 0.25rem 0 0.5rem 0;
}

.check-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.check-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-iris);
  margin-top: 9px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(168, 184, 232, 0.7);
}

/* Panel Right (Meta Columns) */
.panel-right {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  border-left: 1px solid var(--border-subtle);
  padding-left: 3rem;
}

.meta-section h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-iris-1);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 6px 14px;
  background-color: rgba(168, 184, 232, 0.02);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.pill:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

.meta-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ==========================================
   3. COMPARATIVE TABLE
   ========================================== */
.comparison-section {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.table-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background-color: var(--bg-secondary);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th, td {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

th {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  background-color: rgba(255, 255, 255, 0.01);
}

tbody tr {
  transition: background-color var(--transition-fast);
}

tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.005);
}

tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

tbody tr:last-child td {
  border-bottom: none;
}

.feature-name {
  font-weight: 400;
  color: var(--text-primary);
}

/* Table icons */
.check-icon, .times-icon {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
}

.check-icon {
  stroke: var(--accent-iris-1);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(168,184,232,0.4));
}

.times-icon {
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1024px) {
  .panel-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-left: 0;
  }

  .panel-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
  }

  .accordion-header .header-left {
    gap: 2rem;
  }
}

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

  .accordion-header {
    padding: 36px 0;
  }

  .accordion-header .header-left {
    gap: 1.25rem;
  }

  .accordion-header .num {
    display: none;
  }

  .chevron-box {
    width: 38px;
    height: 38px;
  }

  th, td {
    padding: 18px 20px;
    font-size: 13px;
  }
}
