/* ====================================================================
   modules-catalogue.css
   CSS dédié à /idealys-one/modules/ - catalogue 6 modules SaaS
   ==================================================================== */

/* Section : Hero */
.section-hero-modules {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 40px;
}
.section-hero-modules h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  margin: 16px 0 24px;
  max-width: 900px;
}
.section-hero-modules h1 em {
  color: var(--green);
  font-style: italic;
}
.section-hero-modules .hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 720px;
  margin-bottom: 40px;
}
.section-hero-modules .hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Section : Bandeau pédagogique 2 volets (Process / Data) */
/* Section : Bandeau pédagogique 2 volets */
.section-catalogue {
  padding: 60px 0;
}
.banner-2volets {
  background: var(--bg-secondary);
  border: 1px solid var(--border-s);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
}
.banner-2volets h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 8px;
  font-weight: 700;
}
.banner-2volets h2 em {
  color: var(--green);
  font-style: italic;
}
.banner-2volets .banner-sub {
  color: var(--text-2);
  font-size: 15px;
  margin: 0 0 24px;
  line-height: 1.6;
}
.banner-2volets .text-process { color: var(--green); }
.banner-2volets .text-data { color: var(--blue); }

.swimlane {
  background: var(--bg-primary);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  position: relative;
}
.swimlane-process { border-left: 3px solid var(--green); }
.swimlane-data { border-left: 3px solid var(--blue); }
.swimlane-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 12px;
}
.swimlane-process .swimlane-label { color: var(--green); }
.swimlane-data .swimlane-label { color: var(--blue); }

.swimlane-flow {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: nowrap;
}
.flow-step {
  flex: 1;
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.flow-step .step-label {
  color: var(--text-2);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.flow-step .step-value {
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
}
.flow-step .step-note {
  color: var(--text-2);
  font-size: 10px;
  font-weight: 400;
  display: block;
  margin-top: 2px;
}
.flow-step.highlight-process {
  background: rgba(0,204,102,0.08);
  border: 1px solid rgba(0,204,102,0.3);
}
.flow-step.highlight-data {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.3);
}
.flow-arrow {
  color: var(--text-2);
  font-size: 18px;
  align-self: center;
}

.swimlane-cta {
  display: inline-block;
  margin-top: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.swimlane-cta:hover { text-decoration: underline; }
.swimlane-data .swimlane-cta { color: var(--blue); }

.center-connector {
  text-align: center;
  padding: 12px 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.center-connector .arrow-up,
.center-connector .arrow-down {
  display: block;
  font-size: 18px;
}
.center-connector .arrow-up { color: var(--green); }
.center-connector .arrow-down { color: var(--blue); }

/* Section : Overview grid 2×3 + jauges Process/Data */
.overview-grid .overview-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}
.overview-grid .overview-sub {
  color: var(--text-2);
  font-size: 14px;
  margin: 0 0 20px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.module-card-overview {
  background: var(--bg-secondary);
  border: 1px solid var(--border-s);
  border-radius: 12px;
  padding: 18px;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.module-card-overview:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,204,102,0.08);
}

.stars-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
}
.stars-hi { color: var(--green); font-weight: 600; }
.stars-med { color: #FACC15; font-weight: 600; }
.stars-lo { color: var(--text-2); font-weight: 500; }
.anchor-tag { color: var(--text-2); font-size: 10px; }

.module-card-overview .module-name {
  color: var(--text-1);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}
.module-card-overview .module-tag {
  color: var(--text-2);
  font-size: 13px;
  margin-bottom: 10px;
}
.reg-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.reg {
  background: rgba(0,204,102,0.18);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.anchors-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-s);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.anchor-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.anchor-label {
  width: 60px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 9px;
}
.anchor-line.anchor-process .anchor-label { color: var(--green); }
.anchor-line.anchor-data .anchor-label { color: var(--blue); }
.anchor-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}
.anchor-fill {
  height: 100%;
  border-radius: 2px;
}
.anchor-line.anchor-process .anchor-fill { background: var(--green); }
.anchor-line.anchor-data .anchor-fill { background: var(--blue); }
.anchor-pct {
  color: var(--text-2);
  font-size: 9px;
  width: 42px;
  text-align: right;
}
/* Jauge widths — 6 modules × 2 flux */
.anchor-fill.w-40 { width: 40%; }
.anchor-fill.w-45 { width: 45%; }
.anchor-fill.w-50 { width: 50%; }
.anchor-fill.w-55 { width: 55%; }
.anchor-fill.w-60 { width: 60%; }
.anchor-fill.w-65 { width: 65%; }
.anchor-fill.w-80 { width: 80%; }
.anchor-fill.w-85 { width: 85%; }
.anchor-fill.w-95 { width: 95%; }

/* Section : Module detail (eyebrow, lead, badges, features, capture, CTAs) */
/* Section : Module detail */
.section-module {
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.module-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.module-eyebrow {
  display: inline-block;
  background: rgba(0,204,102,0.12);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.module-eyebrow .stars { font-size: 12px; margin-left: 6px; }

.module-h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
}
.module-h2 em {
  color: var(--green);
  font-style: italic;
}
.module-lead {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.module-regs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.module-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.module-features li {
  padding: 6px 0;
  color: var(--text-1);
  font-size: 15px;
  position: relative;
  padding-left: 24px;
}
.module-features li::before {
  content: "→";
  color: var(--green);
  position: absolute;
  left: 0;
  font-weight: 700;
}
.module-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.module-detail-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.module-capture-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-primary) 100%);
  border: 1px dashed var(--border-s);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

/* Capture module réelle (image optimisée jpg/webp, même boîte 4:3) */
.module-capture {
  width: 100%;
  aspect-ratio: 4/3;
  margin: 0;
  border: 1px solid var(--border-s);
  border-radius: 12px;
  overflow: hidden;
}
.module-capture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section : CTA final */
.section-cta-final {
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.section-cta-final h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.section-cta-final h2 em {
  color: var(--green);
  font-style: italic;
}
.section-cta-final .cta-final-lead {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 40px;
}
.cta-final-block {
  background: rgba(0,204,102,0.08);
  border: 1px solid rgba(0,204,102,0.3);
  border-radius: 16px;
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
}
.cta-final-title {
  display: block;
  color: var(--text-1);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-final-sub {
  color: var(--text-2);
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.5;
}
.cta-final-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1280px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .swimlane-flow { flex-wrap: wrap; }
  .swimlane-flow .flow-arrow { display: none; }
  .swimlane-flow .flow-step { flex: 0 0 calc(50% - 4px); }
}
@media (max-width: 1024px) {
  .module-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .module-detail-right { order: -1; max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 768px) {
  .banner-2volets { padding: 20px; }
  .banner-2volets h2 { font-size: 22px; }
  .swimlane { padding: 14px; }
  .swimlane-flow .flow-step { flex: 0 0 100%; }
  .modules-grid { grid-template-columns: 1fr; }
  .section-hero-modules h1 { font-size: 32px; }
  .section-cta-final h2 { font-size: 30px; }
  .cta-final-block { padding: 20px; }
  .module-features li { font-size: 14px; }
}

/* Teaser catalogue (utilisé sur /idealys-one/ section #catalogue) */
.catalogue-teaser-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-s);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: block;
}
.catalogue-teaser-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}
.catalogue-teaser-card .ct-stars {
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}
.catalogue-teaser-card .ct-stars-med { color: #FACC15; }
.catalogue-teaser-card .ct-stars-lo { color: var(--text-2); }
.catalogue-teaser-card .ct-name {
  color: var(--text-1);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.catalogue-teaser-card .ct-tag {
  color: var(--text-2);
  font-size: 13px;
}
@media (max-width: 1024px) {
  .catalogue-teaser-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  .catalogue-teaser-grid { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   Eyebrow pill badge (brand v2) - chapeau hero "Idealys One . Catalogue"
   Aligné sur le pattern .hero-signature des autres pages (retour Eva 06/2026).
   ========================================================================== */
.hero-signature {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(0, 204, 102, 0.12);
  border-radius: var(--r-full);
}
[data-theme="dark"] .hero-signature {
  background: rgba(0, 204, 102, 0.18);
}
