/* =========================================================
   XtraBooth Blog
   Generic article styles
   ========================================================= */

.blog-xtrabooth {
  --xb-text: #202124;
  --xb-muted: #686868;
  --xb-border: #e5e5e5;
  --xb-bg-light: #f7f7f8;
  --xb-bg-dark: #18181b;
  --xb-accent: #635bff;
  --xb-accent-light: #f0efff;

  color: var(--xb-text);
  font-size: 18px;
  line-height: 1.7;
}

/*
 * Reading-width container (max-width/centering/padding) for the actual
 * article display (show page). Kept separate from .blog-xtrabooth itself
 * so that the CKEditor editable area (which also gets the .blog-xtrabooth
 * class, for WYSIWYG typography parity) fills its normal width instead of
 * shrinking to a narrower column than the editor's own toolbar above it.
 */
.blog-xtrabooth-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

/*
 * Taller CKEditor editable area for blog blocks (opted in via the
 * `blog-xtrabooth` extraClass on the editing view root, see
 * ckeditor_controller.js) — the default auto-height editable is too
 * short to comfortably write an article block.
 */
.ck-editor__editable.blog-xtrabooth {
  min-height: 400px;
}

/* =========================================================
   Typography
   ========================================================= */

.blog-xtrabooth h1,
.blog-xtrabooth h2,
.blog-xtrabooth h3,
.blog-xtrabooth h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.blog-xtrabooth h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
}

.blog-xtrabooth h2 {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 750;
}

.blog-xtrabooth h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
}

.blog-xtrabooth h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.blog-xtrabooth p {
  margin: 0 0 20px;
}

.blog-xtrabooth strong {
  font-weight: 700;
}

/* =========================================================
   Hero
   ========================================================= */

.blog-xtrabooth .blog-hero {
  padding: 70px 0 60px;
  text-align: center;
}

.blog-xtrabooth .blog-lead {
  max-width: 700px;
  margin: 0 auto;
  color: var(--xb-muted);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}

/* =========================================================
   Featured article (public index, "à la une")
   ========================================================= */

.blog-xtrabooth .blog-featured {
  overflow: hidden;
  background: var(--xb-accent-light);
  border: 1px solid var(--xb-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.blog-xtrabooth .blog-featured-image-link {
  display: block;
  height: 100%;
}

.blog-xtrabooth .blog-featured-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.blog-xtrabooth .blog-featured .card-body {
  padding: 28px;
}

.blog-xtrabooth .blog-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--xb-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-xtrabooth .blog-featured-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 750;
}

@media (min-width: 768px) {
  .blog-xtrabooth .blog-featured .card-body {
    padding: 40px;
  }
}

/* =========================================================
   Sections
   ========================================================= */

.blog-xtrabooth .blog-section {
  margin: 0 0 90px;
}

.blog-xtrabooth .blog-section > h2 {
  padding-top: 10px;
}

/* =========================================================
   Highlight
   ========================================================= */

.blog-xtrabooth .blog-highlight {
  margin: 32px 0;
  font-size: 1.2em;
  font-weight: 700;
}

/* =========================================================
   Cards
   ========================================================= */

.blog-xtrabooth .blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 35px 0;
}

.blog-xtrabooth .blog-card {
  padding: 25px;
  border: 1px solid var(--xb-border);
  border-radius: 14px;
  background: var(--xb-bg-light);
}

.blog-xtrabooth .blog-card p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Blockquotes
   ========================================================= */

.blog-xtrabooth blockquote {
  margin: 30px 0;
  padding: 24px 30px;
  border-left: 4px solid var(--xb-accent);
  background: var(--xb-bg-light);
  font-size: 1.2em;
  font-weight: 600;
}

/* =========================================================
   Callout
   ========================================================= */

.blog-xtrabooth .blog-callout {
  margin: 35px 0;
  padding: 35px;
  border-radius: 18px;
  background: var(--xb-accent-light);
}

.blog-xtrabooth .blog-callout h3 {
  margin-bottom: 15px;
}

.blog-xtrabooth .blog-callout > :last-child {
  margin-bottom: 0;
}

/* =========================================================
   Steps
   ========================================================= */

.blog-xtrabooth .blog-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 35px;
}

.blog-xtrabooth .blog-step {
  display: flex;
  gap: 22px;
  padding: 25px;
  border: 1px solid var(--xb-border);
  border-radius: 15px;
}

.blog-xtrabooth .blog-step-number {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: var(--xb-accent);
  color: white;

  font-weight: 700;
}

.blog-xtrabooth .blog-step h3 {
  margin-bottom: 5px;
}

.blog-xtrabooth .blog-step p {
  margin: 0;
  color: var(--xb-muted);
}

/* =========================================================
   Lists
   ========================================================= */

.blog-xtrabooth ul,
.blog-xtrabooth ol {
  margin: 25px 0 30px;
  padding-left: 1.4em;
}

.blog-xtrabooth li {
  margin-bottom: 8px;
}

/* =========================================================
   Generic grid
   ========================================================= */

.blog-xtrabooth .blog-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 35px 0;
}

.blog-xtrabooth .blog-grid-item {
  padding: 25px;
  border: 1px solid var(--xb-border);
  border-radius: 15px;
}

.blog-xtrabooth .blog-grid-item p {
  margin-bottom: 0;
  color: var(--xb-muted);
}

/* =========================================================
   Large numbers / statistics
   ========================================================= */

.blog-xtrabooth .blog-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
  text-align: center;
}

.blog-xtrabooth .blog-stat {
  padding: 30px 15px;
  border-radius: 16px;
  background: var(--xb-bg-light);
}

.blog-xtrabooth .blog-stat strong,
.blog-xtrabooth .blog-stat span {
  display: block;
}

.blog-xtrabooth .blog-stat strong {
  font-size: 3rem;
  line-height: 1;
}

.blog-xtrabooth .blog-stat span {
  margin-top: 10px;
  color: var(--xb-muted);
}

/* =========================================================
   Dark section
   ========================================================= */

.blog-xtrabooth .blog-dark {
  padding: 55px 45px;
  border-radius: 24px;
  background: var(--xb-bg-dark);
  color: white;
}

.blog-xtrabooth .blog-dark p {
  color: #d1d1d5;
}

.blog-xtrabooth .blog-dark .blog-callout {
  background: rgba(255, 255, 255, .08);
}

/* =========================================================
   Option / Price box
   ========================================================= */

.blog-xtrabooth .blog-price {
  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: 420px;
  margin: 40px auto;
  padding: 30px;

  border-radius: 18px;
  background: white;

  color: var(--xb-text);
  text-align: center;
}

.blog-xtrabooth .blog-price-label {
  font-size: .8em;
  letter-spacing: .15em;
  font-weight: 700;
}

.blog-xtrabooth .blog-price-title {
  margin: 5px 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
}

.blog-xtrabooth .blog-price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--xb-accent);
}

/* =========================================================
   Check list
   ========================================================= */

.blog-xtrabooth .blog-check-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.blog-xtrabooth .blog-check-list li {
  position: relative;
  padding-left: 30px;
}

.blog-xtrabooth .blog-check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* =========================================================
   CTA
   ========================================================= */

.blog-xtrabooth .blog-cta {
  margin-top: 100px;
  padding: 70px 35px;
  border-radius: 24px;
  background: var(--xb-accent-light);
  text-align: center;
}

.blog-xtrabooth .blog-cta h2 {
  margin-bottom: 10px;
}

.blog-xtrabooth .blog-cta-title {
  margin-bottom: 25px;
  font-size: 2rem;
  font-weight: 800;
}

.blog-xtrabooth .blog-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 35px;
}

.blog-xtrabooth .blog-button {
  display: inline-block;
  padding: 14px 25px;
  border-radius: 10px;

  background: var(--xb-accent);
  color: white;

  text-decoration: none;
  font-weight: 700;

  transition: transform .15s ease, opacity .15s ease;
}

.blog-xtrabooth .blog-button:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.blog-xtrabooth .blog-button-secondary {
  background: white;
  color: var(--xb-text);
}

/* =========================================================
   Footer
   ========================================================= */

.blog-xtrabooth .blog-footer {
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid var(--xb-border);
  text-align: center;
}

.blog-xtrabooth .blog-footer p {
  color: var(--xb-muted);
}

.blog-xtrabooth .blog-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.blog-xtrabooth .blog-meta-row .blog-meta {
  margin-top: 0;
}

.blog-xtrabooth .blog-share {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.blog-xtrabooth .blog-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;
  border-radius: 50%;

  background: var(--xb-bg-light);
  color: var(--xb-text);

  transition: transform .15s ease, opacity .15s ease;
}

.blog-xtrabooth .blog-share-link:hover {
  transform: translateY(-2px);
  opacity: .85;
}

/* =========================================================
   Images
   ========================================================= */

.blog-xtrabooth img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 14px;
}

.blog-xtrabooth figure {
  margin: 35px 0;
}

.blog-xtrabooth figcaption {
  margin-top: 10px;
  color: var(--xb-muted);
  font-size: .9em;
  text-align: center;
}

/* =========================================================
   Links
   ========================================================= */

.blog-xtrabooth a:not(.btn) {
  color: var(--xb-accent);
}

.blog-xtrabooth .blog-button {
  color: white;
}

.blog-xtrabooth .blog-button-secondary {
  color: var(--xb-text);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 700px) {

  .blog-xtrabooth {
    padding: 10px 18px 50px;
    font-size: 17px;
  }

  .blog-xtrabooth .blog-hero {
    padding: 45px 0 40px;
  }

  .blog-xtrabooth .blog-section {
    margin-bottom: 65px;
  }

  .blog-xtrabooth .blog-card-grid,
  .blog-xtrabooth .blog-grid-2 {
    grid-template-columns: 1fr;
  }

  .blog-xtrabooth .blog-stats {
    gap: 10px;
  }

  .blog-xtrabooth .blog-stat strong {
    font-size: 2.3rem;
  }

  .blog-xtrabooth .blog-dark {
    padding: 35px 22px;
  }

  .blog-xtrabooth .blog-step {
    padding: 20px;
  }

  .blog-xtrabooth .blog-cta {
    padding: 45px 20px;
  }

}

/* =========================================================
   Blocks chrome — sober presentation
   Overrides styles/content-blocks.css's alternating white/gray
   background, hero band and "final CTA" dark treatment (relevant
   for the homepage's landing rhythm, not for articles).
   Scoped under .blog-xtrabooth so the homepage itself is untouched.
   ========================================================= */

.blog-xtrabooth .cb-block:nth-child(even) .cb-preview,
.blog-xtrabooth .cb-block:last-child .cb-preview,
.blog-xtrabooth .cb-block:nth-child(-n + 3) .cb-preview {
  background: transparent;
}

.blog-xtrabooth .cb-block:last-child .cb-text {
  color: inherit;
  text-align: left;
}

.blog-xtrabooth .cb-block:last-child .cb-text .cb-button {
  background: var(--xb-accent);
  color: #fff;
}

.blog-xtrabooth .cb-block:nth-child(-n + 3) .cb-text {
  max-width: none;
  text-align: left;
}

.blog-xtrabooth .cb-block:nth-child(-n + 3) .cb-text h1 {
  text-align: left;
}

/* =========================================================
   Public article list (index page)
   ========================================================= */

.blog-xtrabooth .blog-meta {
  margin-top: 10px;
  color: var(--xb-muted);
  font-size: .95em;
}

.blog-xtrabooth .blog-cover {
  width: 100%;
  max-height: 260px;
  margin: 0;
  object-fit: cover;
}

.blog-xtrabooth .card-img-top {
  height: 160px;
  margin: 0;
  object-fit: cover;
}

.blog-xtrabooth .card-title a:hover {
  color: var(--xb-accent);
}

.blog-xtrabooth .card-link {
  color: var(--xb-accent);
  font-weight: 700;
}

