/* Prime CEE page — components not covered by the shared stylesheet */

/* Hero */
.cee-hero { background: var(--bg-gray); padding: 28px 24px 64px; }

.cee-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--navy-muted);
  margin-bottom: 36px;
}
.cee-breadcrumb a { color: var(--navy-muted); text-decoration: underline; text-underline-offset: 3px; }
.cee-breadcrumb .current { color: var(--navy); font-weight: 600; }

.cee-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px;
  align-items: center;
}

.cee-hero-grid h1 {
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.cee-hero-grid > div:first-child p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy-light);
  max-width: 600px;
  margin: 0 0 30px;
  text-wrap: pretty;
}

.cee-hero-visual-col { display: flex; justify-content: center; align-items: center; }

.cee-hero-visual {
  position: relative;
  width: 100%;
  max-width: 466px;
  aspect-ratio: 1;
}

.cee-blob-bg {
  position: absolute;
  left: 10.7%;
  top: 13.3%;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #FFE1D3;
}

.cee-photo-circle {
  position: absolute;
  left: 4%;
  top: 4%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pastel-blue);
}
.cee-photo-circle img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; }

.cee-dot-green {
  position: absolute;
  left: -0.6%;
  top: -2.6%;
  width: 8%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pastel-green);
  opacity: .85;
}
.cee-dot-yellow {
  position: absolute;
  left: 83.3%;
  top: 6.7%;
  width: 13.3%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pastel-yellow);
  opacity: .9;
}
.cee-dot-blue {
  position: absolute;
  left: 13.3%;
  top: 0.9%;
  width: 16.3%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pastel-blue);
  opacity: .85;
}

/* Layout: sticky TOC + article */
.cee-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 56px;
  align-items: start;
}

.cee-toc-aside { position: sticky; top: 96px; max-width: 260px; }
@media (max-width: 900px) {
  .cee-toc-aside { position: static; max-width: none; }
}
.cee-toc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.cee-toc-nav { display: flex; flex-direction: column; border-left: 2px solid var(--border); }
.cee-toc-nav a { padding: 8px 0 8px 16px; font-size: 15px; line-height: 1.35; color: var(--navy-light); }
.cee-toc-nav a:hover { color: var(--navy); }

.cee-article {
  grid-column: span 3;
  min-width: 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.cee-article section { padding: 0; scroll-margin-top: 96px; }

.cee-article h2 {
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.cee-article h3 {
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 14px;
}
.cee-article p { font-size: 17px; line-height: 1.7; color: var(--navy-light); margin: 0 0 16px; text-wrap: pretty; }

/* Callouts */
.cee-callout { margin: 0; padding: 18px 22px; border-radius: 14px; font-size: 17px; line-height: 1.7; color: var(--navy); text-wrap: pretty; }
.cee-callout-blue { background: var(--pastel-blue-light); }
.cee-callout-green { background: var(--pastel-green-light); font-size: 16px; line-height: 1.65; }

/* Circuit diagram */
.cee-diagram { margin: 0 0 28px; background: var(--bg-gray); border-radius: 20px; padding: 24px; }
.cee-diagram-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}
.cee-diagram-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: stretch; }
.cee-diagram-step { background: #FFFFFF; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.cee-diagram-step.is-blue { background: var(--pastel-blue); }
.cee-diagram-step.is-green { background: var(--pastel-green); }
.cee-diagram-step.is-yellow { background: var(--pastel-yellow); }
.cee-diagram-step .num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #FFFFFF;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.cee-diagram-step b { font-family: 'Schibsted Grotesk'; font-size: 16px; }
.cee-diagram-step .desc { font-size: 14px; line-height: 1.45; color: var(--navy-light); }
.cee-diagram-step.is-blue .desc,
.cee-diagram-step.is-green .desc,
.cee-diagram-step.is-yellow .desc { color: var(--navy); }

/* Three-factor cards */
.cee-factors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cee-factor-card { border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.cee-factor-card.is-blue { background: var(--pastel-blue-light); }
.cee-factor-card.is-green { background: var(--pastel-green-light); }
.cee-factor-card.is-yellow { background: var(--pastel-yellow-light); }
.cee-factor-tag { align-self: start; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
.cee-factor-tag.is-blue { background: var(--pastel-blue); }
.cee-factor-tag.is-green { background: var(--pastel-green); }
.cee-factor-tag.is-yellow { background: var(--pastel-yellow); }
.cee-factor-card p { font-size: 15px; line-height: 1.5; color: var(--navy-light); margin: 0; }

/* Vehicle comparison table */
.cee-table-wrap { overflow-x: auto; background: var(--bg-gray); border-radius: 20px; padding: 8px 20px; }
.cee-table { min-width: 640px; display: grid; }
.cee-table-head,
.cee-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.1fr) 150px;
  gap: 16px;
  align-items: center;
}
.cee-table-head {
  padding: 14px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
}
.cee-table-row { padding: 16px 0; border-bottom: 1px solid var(--border); }
.cee-table-row:last-child { border-bottom: none; }
.cee-vehicle-name { display: flex; align-items: center; gap: 12px; font-family: 'Schibsted Grotesk'; font-weight: 700; font-size: 16px; }
.cee-vehicle-name img { width: 58px; height: auto; flex: none; }
.cee-table-amount { font-family: 'Schibsted Grotesk'; font-weight: 800; font-size: 18px; }
.cee-table-amount.is-muted { color: #9AA3B5; }
.cee-table-link { justify-self: end; border: 1.5px solid var(--navy); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.cee-table-link:hover { background: var(--navy); color: #FFFFFF; }

/* Standard vs coup de pouce */
.cee-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 28px; }
.cee-plan-card { border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cee-plan-tag { align-self: start; background: #F0F2F7; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
.cee-plan-card h3 { margin: 0; }
.cee-plan-card p { font-size: 15px; line-height: 1.6; color: var(--navy-light); margin: 0; }
.cee-plan-card-dark { background: var(--navy); color: #FFFFFF; border: none; }
.cee-plan-card-dark .cee-plan-tag { background: var(--pastel-yellow); color: var(--navy); }
.cee-plan-card-dark p { color: var(--footer-text-dim); }

/* Coup de pouce condition rows */
.cee-icon-rows { display: grid; gap: 10px; margin-bottom: 24px; }
.cee-icon-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; border-radius: 16px; padding: 16px 20px; }
.cee-icon-row img { width: 72px; height: auto; }
.cee-icon-row.is-blue { background: var(--pastel-blue-light); }
.cee-icon-row.is-yellow { background: var(--pastel-yellow-light); }
.cee-icon-row.is-orange { background: var(--pastel-orange-light); }
.cee-icon-row b { font-family: 'Schibsted Grotesk'; font-size: 16px; }
.cee-icon-row .desc { font-size: 15px; line-height: 1.5; color: var(--navy-light); margin-top: 4px; }

/* Common rules */
.cee-rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cee-rule-card { background: var(--bg-gray); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.cee-rule-num { font-family: 'Schibsted Grotesk'; font-weight: 800; font-size: 28px; color: var(--blue); line-height: 1; }
.cee-rule-card h3 { margin: 0; }
.cee-rule-card p { font-size: 15px; line-height: 1.6; color: var(--navy-light); margin: 0; }

/* Stepper (obtenir une prime) */
.cee-stepper { list-style: none; margin: 0; padding: 0; display: grid; }
.cee-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; }
.cee-step-rail { display: flex; flex-direction: column; align-items: center; }
.cee-step-circle {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Schibsted Grotesk'; font-weight: 800; font-size: 18px;
}
.cee-step-circle.is-c1 { background: var(--pastel-blue); }
.cee-step-circle.is-c2 { background: var(--pastel-green); }
.cee-step-circle.is-c3 { background: var(--pastel-yellow); }
.cee-step-circle.is-c4 { background: #FFB8A0; }
.cee-step-circle.is-c5 { background: #D9CCFF; }
.cee-step-line { flex: 1; width: 2px; background: var(--border); min-height: 20px; }
.cee-step-line.is-hidden { opacity: 0; }
.cee-step-body { padding: 9px 0 28px; }
.cee-step-body p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--navy); text-wrap: pretty; }
.cee-step-cta { margin-top: 12px; }

@media (max-width: 640px) {
  .cee-article { gap: 40px; }
  .cee-hero-visual { max-width: 320px; }
}
