/* ==========================================================================
   0. Utilities
   ========================================================================== */

/* --- Color Utilities --- */
.text-brand {
    color: var(--primary) !important;
}

.text-ink {
    color: var(--ink) !important;
}

.text-muted-crj {
    color: var(--muted-foreground) !important;
}

/* --- Base Pattern Heading --- */
#a-la-une .section-header .section-title,
#news-magazine .section-header .section-title{
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1.5rem;
    border:unset;
    width: fit-content;
}

/* ==========================================================================
   ÉDITEUR GUTENBERG
   ========================================================================== */

.editor-styles-wrapper .container-custom {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.editor-styles-wrapper .pattern-cta,
.editor-styles-wrapper .pattern-service-grid,
.editor-styles-wrapper .pattern-testimonials,
.editor-styles-wrapper .pattern-logos,
.editor-styles-wrapper .pattern-table,
.editor-styles-wrapper .pattern-features,
.editor-styles-wrapper .pattern-mission,
.editor-styles-wrapper .pattern-quote {
    margin-block: 2rem;
}

.service-card__img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Logo partenaire */
article .logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 1.5rem;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
}

article .logo-item img {
  display: block;
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}


/* Carte image + texte */
article .service-card__img-wrapper {
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
}

article .service-card__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* Témoignage */
article .testimonial-card {
  padding: 2rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  height: 100%;
}

article .testimonial-rating {
  margin-bottom: 1rem;
}

article .testimonial-avatar-wrap {
  margin-bottom: 1rem;
}

article .testimonial-avatar {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 999px;
}

article .testimonial-quote {
  margin-bottom: 1rem;
}

article .testimonial-author {
  font-weight: 600;
}

/* CTA simple */
article .pattern-cta {
  padding: 3rem 2rem;
  border-radius: 1.5rem;
}

article .cta-brand {
  background: var(--primary, #156C88);
  color: #fff;
}

article .cta-neutral {
  background: #f8fafc;
}

article .cta-light {
  background: #f0f7f9;
}

/* Stat */
article .crj-stat {
  padding: 2rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  height: 100%;
}

article .crj-stat__value {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  font-weight: 700;
  color: var(--primary, #156C88);
  margin-bottom: 1rem;
}

/*CRJ — Citation Gutenberg 2 style*/
article .pattern-quote {
  position: relative;
}

article .pattern-quote blockquote {
  margin: 0 0 1rem;
}

article .pattern-quote cite {
  display: block;
  font-style: normal;
}

/* Style 1 */
article .quote-v1 {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

article .quote-v1 blockquote {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.5;
  font-weight: 500;
  color: #0f172a;
}

article .quote-v1 cite {
  margin-top: 1rem;
  color: #475569;
  font-weight: 500;
}

/* Style 2 */
article .quote-v2 {
  padding: 2rem;
  border-radius: 1.25rem;
  background: #f8fafc;
}

article .quote-v2 .quote-icon {
  display: inline-block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--primary, #156C88);
}

article .quote-v2 blockquote {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.6;
  color: #0f172a;
}

article .quote-v2 cite {
  margin-top: 1rem;
  color: #475569;
  font-weight: 600;
}

/*CRJ — Bloc de citation Gutenberg 2 style*/
article .crj-blockquote-v1,
article .crj-blockquote-v2 {
  margin: 0;
}

article .crj-blockquote-v1 p,
article .crj-blockquote-v2 p {
  margin-bottom: 1rem;
}

article .crj-blockquote-v1 cite,
article .crj-blockquote-v2 cite {
  display: block;
  font-style: normal;
}

/* Style 1 : Accent bordure */
article .crj-blockquote-v1 {
  border-left: 4px solid var(--primary, #156C88);
  padding-left: 1.25rem;
}

article .crj-blockquote-v1 p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #0f172a;
}

article .crj-blockquote-v1 cite {
  margin-top: .5rem;
  color: var(--primary, #156C88);
  font-weight: 600;
}

/* Style 2 : Impact centré */
article .crj-blockquote-v2 {
  text-align: center;
  padding: 3rem 0;
}

article .crj-blockquote-v2 p {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.5;
  font-weight: 500;
  color: #0f172a;
  max-width: 900px;
  margin-inline: auto;
}

article .crj-blockquote-v2 cite {
  margin-top: 1rem;
  color: var(--primary, #156C88);
  font-weight: 700;
}
/* CRJ — Liste de caractéristiques Gutenberg 4 style  */

article .feature-list,
article .feature-list--boxed,
article .feature-list--v3,
article .feature-list--v4 {
  margin: 0;
  padding: 0;
  list-style: none;
}

article .feature-list li,
article .feature-list--boxed li,
article .feature-list--v3 li,
article .feature-list--v4 li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

article .feature-list li i,
article .feature-list--boxed li i,
article .feature-list--v3 li i {
  line-height: 1.2;
  color: var(--primary, #156C88);
}

article .feature-list--v3 li i {
    color: white;
}

article .feature-list--v3 li,
article .feature-list--v4 li {
    font-weight: 600!important;
}

/* Style 1 — Classique */
article .feature-list {
  display: grid;
  gap: 1rem;
}

article .feature-list li {
  font-size: 1rem;
  line-height: 1.6;
}

/* Style 2 — Grille encadrée */
article .feature-list--boxed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

article .feature-list--boxed li {
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
}

/* Style 3 — Pilules arrondies */
article .feature-list--v3 {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

article .feature-list--v3 li {
  align-items: center;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 0px solid #e2e8f0;
}

/* Style 4 — Ligne d’accent */
article .feature-list--v4 {
  display: grid;
  gap: 1rem;
}

article .feature-list--v4 li {
  padding-left: 1rem;
  border-left: 4px solid var(--primary, #156C88);
  line-height: 1.6;
}


/* CRJ — Tableau de données Gutenberg 2 styles  */

article .crj-table-v1,
article .crj-table-v2 {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

article .crj-table-v1 th,
article .crj-table-v1 td,
article .crj-table-v2 th,
article .crj-table-v2 td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: top;
}

/* Style 1 */
article .crj-table-v1 {
  border: 1px solid #e2e8f0;
  background: #fff;
}

article .crj-table-v1 thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

article .crj-table-v1 th,
article .crj-table-v1 td {
  border: 1px solid #e2e8f0;
}

/* Style 2 */
article .crj-table-v2-container {
  overflow-x: auto;
}

article .crj-table-v2 thead th {
  border-bottom: 2px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
}

article .crj-table-v2 tbody tr {
  border-bottom: 1px solid #e2e8f0;
}

article .crj-table-v2 tbody tr:last-child {
  border-bottom: 0;
}

/* CRJ — Accordéon / FAQ Gutenberg 2 styles  */

article .faq-accordion {
  display: grid;
  gap: 1rem;
}

article .faq-item {
  border-radius: 1rem;
  overflow: hidden;
}

article .faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 600;
}

article .faq-item summary::-webkit-details-marker {
  display: none;
}

article .faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  line-height: 1;
}

article .faq-item[open] summary::after {
  content: "−";
}

article .faq-item__content {
  padding: 0 1.25rem 1.25rem;
}

/* Style 1 — Cartouche */
article .accordion-v1 .faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
}

article .accordion-v1 .faq-item summary {
  color: #0f172a;
}

article .accordion-v1 .faq-item__content {
  color: #475569;
}

/* Style 2 — Minimaliste */
article .accordion-v2 {
  /*border-top: 1px solid #e2e8f0;*/
  border-bottom: 1px solid #e2e8f0;
}

article .accordion-v2 .faq-item {
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
}

article .accordion-v2 .faq-item:last-child {
  /*border-top: 0;*/
  border-bottom: 0px solid #e2e8f0;
  margin-bottom:12px;
}

article .accordion-v2 .faq-item summary {
  padding-left: 0;
  padding-right: 2.5rem;
  color: #0f172a;
}

article .accordion-v2 .faq-item summary::after {
  right: 0;
}

article .accordion-v2 .faq-item__content {
  padding-left: 0;
  padding-right: 0;
  color: #475569;
}

/* =========================================================
   CRJ — CTA image + texte
========================================================= */

article .crj-cta-split {
  margin: 3rem 0;
}

article .crj-cta-split__inner {
  display: grid;
  align-items: stretch;
  border-radius: 2rem;
  overflow: hidden;
}

/* Layouts */
article .crj-cta-split--image-left .crj-cta-split__inner {
  grid-template-columns: 1fr 1.05fr;
}

article .crj-cta-split--image-right .crj-cta-split__inner {
  grid-template-columns: 1.05fr 1fr;
}

/* Variante par défaut */
article .crj-cta-split--default .crj-cta-split__inner {
  border: 1px solid #d9e1e8;
  background: #fff;
}

/* Variante marque */
article .crj-cta-split--brand .crj-cta-split__inner {
  border: 0;
  background: #156c88;
}

article .crj-cta-split__content {
  padding: clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

article .crj-cta-split__eyebrow {
  margin: 0 0 1.5rem;
  font-size: .95rem;
  line-height: 1.4;
  font-weight: 700;
}

article .crj-cta-split__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

article .crj-cta-split__text {
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  max-width: 34rem;
}

article .crj-cta-split__text p:last-child {
  margin-bottom: 0;
}

article .crj-cta-split__button {
  align-self: flex-start;
}

/* Couleurs — default */
article .crj-cta-split--default .crj-cta-split__eyebrow {
  color: #94a3b8;
}

article .crj-cta-split--default .crj-cta-split__title {
  color: #0f172a;
}

article .crj-cta-split--default .crj-cta-split__text {
  color: #7c8da6;
}

/* Couleurs — brand */
article .crj-cta-split--brand .crj-cta-split__eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

article .crj-cta-split--brand .crj-cta-split__title {
  color: #fff;
}

article .crj-cta-split--brand .crj-cta-split__text {
  color: rgba(255, 255, 255, 0.92);
}

article .crj-cta-split--brand .crj-cta-split__button.btn-crj {
  background: #fff;
  color: #156c88;
  border-color: #fff;
}

/* zone image */
article .crj-cta-split__media {
  height: 100%;
}

article .crj-cta-split__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

/* Coins image selon position */
article .crj-cta-split--image-left .crj-cta-split__image {
  border-radius: 2rem 0 0 2rem;
}

article .crj-cta-split--image-right .crj-cta-split__image {
  border-radius: 0 2rem 2rem 0;
}

/* Ordre visuel */
article .crj-cta-split--image-left .crj-cta-split__media {
  order: 1;
}

article .crj-cta-split--image-left .crj-cta-split__content {
  order: 2;
}

article .crj-cta-split--image-right .crj-cta-split__content {
  order: 1;
}

article .crj-cta-split--image-right .crj-cta-split__media {
  order: 2;
}

/* sécurité bouton */
article .crj-cta-split__button.btn-crj {
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 991.98px) {
  article .crj-cta-split__inner,
  article .crj-cta-split--image-left .crj-cta-split__inner,
  article .crj-cta-split--image-right .crj-cta-split__inner {
    grid-template-columns: 1fr;
  }

  article .crj-cta-split__media,
  article .crj-cta-split__content {
    order: initial !important;
  }

  article .crj-cta-split__image,
  article .crj-cta-split--image-left .crj-cta-split__image,
  article .crj-cta-split--image-right .crj-cta-split__image {
    border-radius: 2rem 2rem 0 0;
    min-height: 280px;
    max-height: 420px;
  }

  article .crj-cta-split__content {
    padding: 2rem 1.5rem;
  }

  article .crj-cta-split__title {
    font-size: clamp(1.8rem, 6vw, 2rem);
  }

  article .crj-cta-split__text {
    max-width: none;
  }
}

/* =========================================================
   CRJ — Onglets
========================================================= */

article .crj-tabs {
  margin: 3rem 0;
}

article .crj-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

article .crj-tabs__button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: .85rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all .2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

article .crj-tabs__button.is-active {
  color: #0f172a;
  border-bottom-color: var(--primary, #156C88);
}

article .crj-tabs__panels {
  margin-top: 1.5rem;
}

article .crj-tabs__panel-inner {
  display: block;
}

article .crj-tabs__panel-inner.has-image {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}

article .crj-tabs__content-title {
  margin: 0 0 1rem;
  color: #0f172a;
}

article .crj-tabs__content-text {
  color: #475569;
}

article .crj-tabs__content-text p:last-child {
  margin-bottom: 0;
}

article .crj-tabs__media {
  overflow: hidden;
  border-radius: 1rem;
}

article .crj-tabs__image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767.98px) {
  article .crj-tabs__panel-inner.has-image {
    grid-template-columns: 1fr;
  }

  article .crj-tabs__nav {
    flex-direction: column;
    align-items: stretch;
  }

  article .crj-tabs__button {
    text-align: left;
  }
}



/* ==========================================================================
   1. Page Hero (Standard)
   ========================================================================== */
.page-hero {
    background-color: #f8fafc;
    padding: 100px 0 60px;
    border-bottom: 1px solid var(--muted);
    position: relative;
    overflow: hidden;
}

.page-hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.page-hero__breadcrumb {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-transform: unset;/* uppercase;*/
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    display: block;
}

/* ==========================================================================
   2. Quotes
   ========================================================================== */
.pattern-quote {
    padding: 100px 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Version 1: Centered --- */
.quote-v1 blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--ink);
    border: none;
    margin: 0;
    position: relative;
    padding: 40px 0;
}

.quote-v1 blockquote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* --- Version 2: Left Aligned --- */
.quote-v2 {
    text-align: left;
    background: #F8FAFC;
    padding: 60px;
    border-radius: 20px;
    position: relative;
}

.quote-v2 .quote-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 1rem;
}

.quote-v2 blockquote {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    border-left: 5px solid var(--primary);
    padding-left: 2rem;
    margin: 0;
}

.pattern-quote cite {
    display: block;
    margin-top: 2rem;
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--body-text);
}

/* --- 2b. Standard Blockquotes --- */
.crj-blockquote-v1 {
    border-left: 5px solid var(--primary);
    padding: 1.5rem 2.5rem;
    background-color: #f8fafc;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--body-text);
    line-height: 1.8;
}

.crj-blockquote-v1 p {
    margin-bottom: 0;
}

.crj-blockquote-v2 {
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--muted);
    border-bottom: 1px solid var(--muted);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.6;
    position: relative;
    font-family: 'Playfair Display', serif;
}

.crj-blockquote-v2::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    background: #fff;
    padding: 5px 15px;
}

/* ==========================================================================
   3. Info Boxes (Service Grid)
   ========================================================================== */
.pattern-service-grid {
    padding: 100px 0;
}

.service-card {
    background: #fff;
    border: 1px solid var(--muted);
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card__body {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.service-card__img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__img {
    transform: scale(1.05);
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ink);
}

.service-card__text {
    font-size: 0.95rem;
    color: var(--body-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

article .service-card__link,
.service-card__link a {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none!important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

article .service-card__link a::after {
    content: "\f138";
    font-family: "bootstrap-icons";
    margin-left: .35rem;
    transition: transform .2s ease;
    transform: translateX(4px);
}


.service-card__link:hover {
    color: var(--primary);
    text-decoration: underline;
}


.pattern-service-grid .service-card {
  height: 100%;
}

.pattern-service-grid .service-card__body {
  padding: 2rem;
  border-radius: 1.25rem;
  background: #fff;
  height: 100%;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.pattern-service-grid .service-card__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--primary, #156C88);
}

.pattern-service-grid .service-card__title {
  margin-bottom: 1rem;
}

.pattern-service-grid .service-card__text {
  margin-bottom: 1.25rem;
}

.pattern-service-grid .service-card__link a::after {
  font-family: "bootstrap-icons";
  content: "\f138";
  margin-left: .35rem;
  font-size: .9em;
  vertical-align: middle;
}




/* ==========================================================================
   4. Accordion
   ========================================================================== */
.pattern-faq {
    background-color: #f8fafc;
    padding: 100px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Version 1: Boxed --- */
.accordion-v1 .faq-item {
    background: #fff;
    border: 1px solid var(--muted);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-v1 summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ink);
}

.accordion-v1 summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}

.accordion-v1[open] summary::after {
    content: '−';
}

/* --- Version 2: Minimalist --- */
.accordion-v2 .faq-item {
    border: none;
    border-top: 1px solid #E2E8F0;
    border-radius: 0;
    margin-bottom: 0;
}

.accordion-v2 .faq-item:last-child {
    border-bottom: 1px solid #E2E8F0;
}

.accordion-v2 summary {
    padding: 1.5rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-v2 summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.accordion-v2[open] summary::after {
    transform: rotate(45deg);
}

.faq-item__content {
    padding: 0 1.5rem 1.5rem;
    color: var(--body-text);
    line-height: 1.7;
}

.accordion-v2 .faq-item__content {
    padding: 0 0 1.5rem 0;
}

/* ==========================================================================
   5. Testimonials
   ========================================================================== */
.pattern-testimonials {
    padding: 100px 0;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--muted);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
}

.testimonial-rating {
    color: var(--primary);
    margin-bottom: 1.25rem;
    letter-spacing: 0.35rem;
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.testimonial-author {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

/* --- Version 2: Large Avatar --- */
.testimonial-v2 {
    background: #F8FAFC;
    border-radius: 24px;
    padding: 4rem;
    text-align: left;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   6. Mission & Vision
   ========================================================================== */
.pattern-mission {
    padding: 100px 0;
}

.mission-item {
    text-align: center;
}

.mission-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* ==========================================================================
   7. Call to Action
   ========================================================================== */
.pattern-cta {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* --- Style: Brand --- */
.cta-brand {
    background: var(--primary);
    color: #fff;
}

.cta-brand h2 {
    color: #fff;
    font-size: 2.75rem;
    font-weight: 800;
}

/* --- Style: Neutral --- */
.cta-neutral {
    background-color: #F1F5F9;
    color: var(--ink);
}

.cta-neutral h2 {
    color: var(--ink);
    font-size: 2.75rem;
    font-weight: 800;
}

/* --- Style: Image --- */
.cta-with-image {
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.cta-with-image h2,
.cta-with-image .h1 {
    color: #fff !important;
}

/* --- Style: Split Card --- */
.cta-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--muted);
    margin-bottom: 4rem;
}

.cta-card--brand {
    background: var(--primary);
    color: #fff;
    border: none;
}

.cta-card--brand h2,
.cta-card--brand .h1,
.cta-card--brand p {
    color: #fff !important;
}

.cta-split__content {
    padding: 80px;
}

.cta-split__image-wrapper {
    height: 100%;
    min-height: 400px;
}

.cta-split__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Component: Buttons --- */
.btn-crj {
    background-color: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
}

.btn-crj:hover {
    background-color: var(--primary-700);
    border-color: var(--primary-700);
    color: #fff;
    transform: translateY(-2px);
}

.btn-crj--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-crj--lg {
    padding: 1rem 3rem;
    font-size: 1.15rem;
}

.btn-crj--pill {
    border-radius: 50px;
}

.btn-crj--outline {
    background-color: transparent;
    color: var(--primary);
}

.btn-crj--outline:hover {
    background-color: #f8fafc;
    color: var(--primary);
}

.btn-crj--light {
    background-color: #f1f5f9;
    border-color: #f1f5f9;
    color: var(--primary);
}

.btn-crj--light:hover {
    background-color: #e2e8f0;
    border-color: #e2e8f0;
    color: var(--primary);
}

/* ==========================================================================
   8. Feature Lists
   ========================================================================== */
.pattern-features {
    padding: 100px 0;
}

/* --- Style 1: Classic --- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: var(--body-text);
}

.feature-list i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

/* --- Style 2: Boxed Grid --- */
.feature-list--boxed {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-list--boxed li {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    color: var(--ink);
}

.feature-list--boxed li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-list--boxed i {
    color: var(--primary);
    background: #f1f5f9;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

/* --- Style 3: Rounded Pills --- */
.feature-list--v3 {
    list-style: none;
    padding: 0;
}

.feature-list--v3 li {
    background: #f1f5f9;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.feature-list--v3 i {
    background: var(--primary);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* --- Style 4: Accent Line --- */
.feature-list--v4 {
    list-style: none;
    padding: 0;
}

.feature-list--v4 li {
    border-left: 4px solid var(--primary);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
}

/* ==========================================================================
   9. Data Table
   ========================================================================== */
.pattern-table {
    padding: 100px 0;
}

/* --- Style 1: Boxed --- */
.crj-table-v1 {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--muted);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.crj-table-v1 th {
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 1.25rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.crj-table-v1 td {
    padding: 1rem;
    border: 1px solid var(--muted);
    color: var(--body-text);
}

.crj-table-v1 tr:hover {
    background-color: #f8fafc;
}

/* --- Style 2: Minimalist --- */
.crj-table-v2-container {
    border: 1px solid var(--muted);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.crj-table-v2 {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.crj-table-v2 th {
    background-color: #f8fafc;
    color: var(--ink);
    font-weight: 700;
    text-align: left;
    padding: 1.25rem 1rem;
    border-bottom: 2px solid var(--muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.crj-table-v2 td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--muted);
    color: var(--body-text);
}

.crj-table-v2 tr:last-child td {
    border-bottom: none;
}

.crj-table-v2 tr:hover {
    background-color: #fdfdfd;
}

/* ==========================================================================
   10. Typography Showcase
   ========================================================================== */
.pattern-typography {
    padding: 100px 0;
}

/* --- Header Variations --- */
.typo-h-side {
    border-left: 5px solid var(--primary);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.typo-h-under {
    display: inline-block;
    padding-bottom: 0.75rem;
    border-bottom: 4px solid var(--primary);
    margin-bottom: 2rem;
}

.typo-h-under-full {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--muted);
    position: relative;
    margin-bottom: 2rem;
}

.typo-h-under-full::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
}

.typo-h-box {
    background-color: var(--primary);
    color: #fff !important;
    padding: 1rem 2rem;
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.typo-h-pill {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.typo-h-pill::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

/* --- Paragraph Variations --- */
.para-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.6;
}

.para-boxed {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--muted);
}

.para-bordered {
    border: 2px dashed var(--muted);
    padding: 2rem;
    border-radius: 12px;
}

.para-accent-box {
    border-left: 4px solid var(--primary);
    background: rgba(21, 108, 136, 0.05);
    padding: 1.5rem 2rem;
}

/* ==========================================================================
   11. Tabbed Content
   ========================================================================== */
.pattern-tabs {
    padding: 100px 0;
}

/* --- Style 1: Modern Underline --- */
.tabs-v1 .nav-tabs {
    border-bottom: 2px solid #e2e8f0;
    gap: 2rem;
}

.tabs-v1 .nav-link {
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    font-weight: 600;
    padding: 1rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.tabs-v1 .nav-link:hover {
    color: var(--primary);
}

.tabs-v1 .nav-link.active {
    color: var(--primary);
    background: transparent;
}

.tabs-v1 .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

/* --- Style 2: Pill / Capsule --- */
.tabs-v2 .nav-pills {
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 50px;
    display: inline-flex;
    margin-bottom: 2rem;
}

.tabs-v2 .nav-link {
    border-radius: 50px;
    padding: 0.6rem 2rem;
    color: var(--muted-foreground);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tabs-v2 .nav-link:hover {
    color: var(--primary);
}

.tabs-v2 .nav-link.active {
    background-color: var(--primary);
    color: #fff;
}

.tab-content-wrapper {
    padding: 2.5rem 0;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Style 3: Card Tabs --- */
.tabs-v3 .nav-tabs {
    border: none;
    gap: 0.25rem;
}

.tabs-v3 .nav-link {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 1rem 2rem;
    color: var(--muted-foreground);
    font-weight: 700;
    transition: all 0.2s ease;
}

.tabs-v3 .nav-link:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.tabs-v3 .nav-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.tabs-v3 .tab-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    padding: 3rem;
    margin-top: -1px;
}

/* ==========================================================================
   12. Logo Showcase
   ========================================================================== */
.pattern-logos {
    padding: 80px 0;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 20px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Style 1: Ticker Carousel --- */
.logo-ticker {
    overflow: hidden;
    position: relative;
    padding: 30px 0;
    background: #f8fafc;
    border-radius: 16px;
}

.logo-ticker__track {
    display: flex;
    width: max-content;
    animation: scroll-logos 40s linear infinite;
    gap: 6rem;
}

.logo-ticker .logo-item {
    flex-shrink: 0;
    width: 180px;
}

.logo-ticker:hover .logo-ticker__track {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 3rem));
    }
}

/* --- Style 2: Partner Grid --- */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    align-items: center;
}

.logo-grid .logo-item {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
}

.logo-grid .logo-item:hover {
    border-color: var(--primary);
}

/* ==========================================================================
   13. Progress & Metrics
   ========================================================================== */
.pattern-metrics {
    padding: 100px 0;
}

/* --- Component: Progress Bars --- */
.progress-group {
    margin-bottom: 2rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
}

.crj-progress-bg {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.crj-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    width: 0;
}

.crj-progress-bar.animated {
    animation: progressFill 2s ease-out forwards;
}

@keyframes progressFill {
    from {
        width: 0;
    }

    to {
        width: var(--progress-width);
    }
}

/* --- Component: Circular Progress --- */
.circle-metric {
    text-align: center;
}

.circle-chart {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-chart svg {
    transform: rotate(-90deg);
}

.circle-chart__bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 2.8;
}

.circle-chart__circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-dasharray: 100, 100;
    stroke-dashoffset: 100;
}

.circle-chart__circle.animated {
    animation: circleFill 2s ease-out forwards;
}

.circle-chart__percent {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
}

@keyframes circleFill {
    to {
        stroke-dashoffset: var(--dash-offset);
    }
}

/* --- Component: Comparison --- */
.comparison-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 200px;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--muted);
}

.comparison-bar {
    flex: 1;
    background: #f1f5f9;
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 20px;
}

.comparison-bar--active {
    background: var(--primary);
}

.comparison-bar:hover {
    filter: brightness(0.9);
}

.comparison-label {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.comparison-value {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 800;
    color: var(--ink);
}

/* ==========================================================================
   14. Responsive Breakpoints
   ========================================================================== */

/* --- Tablet (<= 992px) --- */
@media (max-width: 992px) {

    .pattern-section,
    .pattern-service-grid,
    .pattern-faq,
    .pattern-testimonials,
    .pattern-mission,
    .pattern-features,
    .pattern-table,
    .pattern-typography,
    .pattern-tabs,
    .pattern-logos,
    .pattern-metrics {
        padding: 60px 0;
    }

    .cta-split__content {
        padding: 50px;
    }

    .page-hero {
        padding: 80px 0 50px;
    }

    .page-hero__title {
        font-size: 2.85rem;
    }

    .quote-v1 blockquote {
        font-size: 1.85rem;
    }

    .tabs-v3 .tab-content {
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Adjust mission items for tablet crunch */
    .mission-item .h5 {
        font-size: 1.1rem;
    }

    /* Ensure tables and tabs don't break containers on tablets */
    .crj-table-v1,
    .crj-table-v2,
    .crj-table-v2-container,
    .tabs-v1 .nav-tabs,
    .tabs-v2 .nav-pills,
    .tabs-v3 .nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .feature-list--boxed {
        grid-template-columns: 1fr;
    }
}

/* --- Phone (<= 768px) --- */
@media (max-width: 768px) {
    .page-hero__title {
        font-size: 2.5rem;
    }

    .pattern-quote {
        padding: 60px 20px;
    }

    .pattern-quote blockquote {
        font-size: 1.6rem;
    }

    .quote-v2 {
        padding: 40px 20px;
    }

    .quote-v2 blockquote {
        font-size: 1.4rem;
        padding-left: 1.5rem;
    }

    .feature-list--boxed {
        grid-template-columns: 1fr;
    }

    .cta-brand h2,
    .cta-neutral h2 {
        font-size: 1.85rem;
    }

    .pattern-cta {
        padding: 80px 0;
    }

    .cta-split__content {
        padding: 40px 20px;
    }

    .testimonial-v2 {
        padding: 30px 20px;
        text-align: center;
    }

    .testimonial-avatar {
        margin: 0 auto 1rem;
    }

    .testimonial-v2 .testimonial-rating {
        justify-content: center;
        display: flex;
    }

    .service-card__body {
        padding: 1.5rem;
    }

    .accordion-v1 summary {
        padding: 1rem;
    }

    .faq-item__content {
        padding: 0 1rem 1rem;
    }

    .crj-blockquote-v1 {
        padding: 1.25rem 1.5rem;
        font-size: 1.05rem;
    }

    .crj-blockquote-v2 {
        padding: 2rem 1rem;
        font-size: 1.15rem;
    }

    /* Tables responsiveness */
    .crj-table-v1,
    .crj-table-v2 {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Tabs horizontal scroll on mobile */
    .tabs-v1 .nav-tabs,
    .tabs-v2 .nav-pills,
    .tabs-v3 .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .tabs-v1 .nav-link,
    .tabs-v2 .nav-link,
    .tabs-v3 .nav-link {
        white-space: nowrap;
    }

    .tabs-v2 .nav-pills {
        display: inline-flex;
        width: auto;
        max-width: 100%;
        padding: 0.25rem;
    }

    .crj-table-v2-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-container {
        gap: 0.25rem;
        height: 180px;
    }

    .logo-ticker__track {
        gap: 3rem;
    }

    .logo-ticker .logo-item {
        width: 120px;
    }

    .comparison-label {
        font-size: 0.7rem;
    }
}

/* --- Small Phone (<= 576px) --- */
@media (max-width: 576px) {
    .page-hero__title {
        font-size: 2.15rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .lead,
    .para-lead {
        font-size: 1.1rem !important;
    }

    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .circle-chart {
        width: 100px;
        height: 100px;
    }

    .circle-chart__percent {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   11. Color System Showcase
   ========================================================================== */
.pattern-colors {
    padding: 100px 0;
}

.color-group-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--muted);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.color-card {
    background: #fff;
    border: 1px solid var(--muted);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.color-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.color-swatch {
    height: 120px;
    width: 100%;
}

.color-info {
    padding: 1.25rem;
}

.color-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0.25rem;
    display: block;
}

.color-hex {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--body-text);
    text-transform: uppercase;
}

/* Primary Scale Layout */
.primary-scale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.scale-card {
    text-align: center;
}

.scale-swatch {
    height: 80px;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.scale-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ink);
    margin-bottom: 0.15rem;
    display: block;
}

.scale-hex {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--body-text);
}


/* --- Volet Colors Utilities --- */
.bg-v1 {
    background-color: var(--v1) !important;
    color: var(--v1-dark) !important;
}

.bg-v2 {
    background-color: var(--v2) !important;
    color: var(--white) !important;
}

.bg-v3 {
    background-color: var(--v3) !important;
    color: var(--white) !important;
}

.bg-v4 {
    background-color: var(--v4) !important;
    color: var(--white) !important;
}

.bg-v5 {
    background-color: var(--v5) !important;
    color: var(--v5-dark) !important;
}

/* Volet Buttons */
.btn-v1 {
    background-color: var(--v1);
    color: var(--v1-dark);
    border-color: var(--v1);
}

.btn-v1:hover {
    background-color: #9ab42a;
    color: var(--v1-dark);
    border-color: #9ab42a;
}

.btn-v2 {
    background-color: var(--v2);
    color: var(--white);
    border-color: var(--v2);
}

.btn-v2:hover {
    background-color: #0096c7;
    color: var(--white);
    border-color: #0096c7;
}

.btn-v3 {
    background-color: var(--v3);
    color: var(--white);
    border-color: var(--v3);
}

.btn-v3:hover {
    background-color: #9e3688;
    color: var(--white);
    border-color: #9e3688;
}

.btn-v4 {
    background-color: var(--v4);
    color: var(--white);
    border-color: var(--v4);
}

.btn-v4:hover {
    background-color: #d1431d;
    color: var(--white);
    border-color: #d1431d;
}

.btn-v5 {
    background-color: var(--v5);
    color: var(--v5-dark);
    border-color: var(--v5);
}

.btn-v5:hover {
    background-color: #e6a83a;
    color: var(--v5-dark);
    border-color: #e6a83a;
}

/* =========================================================
   12. CRJ — Onglets (éditeur Gutenberg)
========================================================= */


article .crj-tabs {
  margin: 3rem 0;
}

/* =========================================================
   CRJ — Onglets navigation
========================================================= */

article .crj-tabs__nav {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

article .crj-tabs__button {
  appearance: none;
  border: none;
  background: none;
  padding: 0 0 1rem 0;
  font: inherit;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  position: relative;
  text-align: left;
}

/* hover */

article .crj-tabs__button:hover {
  color: #156C88;
}

/* actif */

article .crj-tabs__button.is-active {
  color: #156C88;
}

/* barre active */

article .crj-tabs__button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 100%;
  background: #156C88;
}

article .crj-tabs__button::after {
  transition: width .2s ease;
}

article .crj-tabs__panels {
  margin-top: 1.5rem;
}

article .crj-tabs__panel-inner {
  display: block;
}

article .crj-tabs__panel-inner.has-image {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
}

article .crj-tabs__content {
  text-align: left;
}

article .crj-tabs__content-title {
  margin: 0 0 1rem;
  color: #0f172a;
  text-align: left;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1.2;
}

article .crj-tabs__content-text {
  color: #475569;
  text-align: left;
  line-height: 1.75;
}

article .crj-tabs__content-text p:last-child {
  margin-bottom: 0;
}

article .crj-tabs__media {
  overflow: hidden;
  border-radius: 1rem;
}

article .crj-tabs__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  article .crj-tabs__panel-inner.has-image {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  article .crj-tabs__nav {
    flex-direction: column;
    align-items: stretch;
  }

  article .crj-tabs__button {
    text-align: left;
    width: 100%;
  }

  article .crj-tabs__image {
    max-height: 320px;
  }
}

/* =========================================================
   Gutenberg block styles — CRJ
========================================================= */

/* ---------------------------------
   BOUTONS
--------------------------------- */

.wp-block-button.is-style-crj-button-outline .wp-block-button__link {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.wp-block-button.is-style-crj-button-outline .wp-block-button__link:hover {
  background: var(--primary-10);
}

.wp-block-button.is-style-crj-button-light .wp-block-button__link {
  background: var(--bg-light-grey);
  color: var(--ink);
  border: 1px solid var(--card-border);
}

.wp-block-button.is-style-crj-button-light .wp-block-button__link:hover {
  background: var(--primary-10);
  color: var(--primary);
}

.wp-block-button.is-style-crj-button-pill .wp-block-button__link {
  border-radius: 999px;
}

/* ---------------------------------
   PARAGRAPHES / CONTENUS
--------------------------------- */

p.is-style-crj-para-lead {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.75;
  color: var(--body-text);
}

p.is-style-crj-para-boxed {
  background: var(--bg-light-grey);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

p.is-style-crj-para-bordered {
  border: 2px dashed var(--muted-2);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
}

p.is-style-crj-para-accent {
  background: var(--primary-10);
  border-left: 5px solid var(--primary);
  border-radius: 0 1rem 1rem 0;
  padding: 1.25rem 1.5rem;
}

/* ---------------------------------
   TITRES
--------------------------------- */

h1.is-style-crj-heading-side,
h2.is-style-crj-heading-side,
h3.is-style-crj-heading-side,
h4.is-style-crj-heading-side,
h5.is-style-crj-heading-side,
h6.is-style-crj-heading-side {
  border-left: 6px solid var(--primary);
  padding-left: 1rem;
}

h1.is-style-crj-heading-under,
h2.is-style-crj-heading-under,
h3.is-style-crj-heading-under,
h4.is-style-crj-heading-under,
h5.is-style-crj-heading-under,
h6.is-style-crj-heading-under {
  position: relative;
  padding-bottom: .5rem;
}

h1.is-style-crj-heading-under::after,
h2.is-style-crj-heading-under::after,
h3.is-style-crj-heading-under::after,
h4.is-style-crj-heading-under::after,
h5.is-style-crj-heading-under::after,
h6.is-style-crj-heading-under::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  background: var(--primary);
  margin-top: .6rem;
  border-radius: 999px;
}

h1.is-style-crj-heading-box,
h2.is-style-crj-heading-box,
h3.is-style-crj-heading-box,
h4.is-style-crj-heading-box,
h5.is-style-crj-heading-box,
h6.is-style-crj-heading-box {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: .5rem .9rem;
  border-radius: .75rem;
}

h1.is-style-crj-heading-pill,
h2.is-style-crj-heading-pill,
h3.is-style-crj-heading-pill,
h4.is-style-crj-heading-pill,
h5.is-style-crj-heading-pill,
h6.is-style-crj-heading-pill {
  position: relative;
  padding-left: 1.2rem;
}

h1.is-style-crj-heading-pill::before,
h2.is-style-crj-heading-pill::before,
h3.is-style-crj-heading-pill::before,
h4.is-style-crj-heading-pill::before,
h5.is-style-crj-heading-pill::before,
h6.is-style-crj-heading-pill::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: var(--primary);
}

/* ---------------------------------
   BOUTONS — variantes supplémentaires
--------------------------------- */

.wp-block-button.is-style-crj-button-rect .wp-block-button__link {
  border-radius: .75rem;
}

.wp-block-button.is-style-crj-button-rect-outline .wp-block-button__link {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: .75rem;
}

.wp-block-button.is-style-crj-button-rect-outline .wp-block-button__link:hover {
  background: var(--primary-10);
}

.wp-block-button.is-style-crj-button-with-icon .wp-block-button__link,
.wp-block-button.is-style-crj-button-light-icon .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.wp-block-button.is-style-crj-button-with-icon .wp-block-button__link::before {
  content: "↘";
  font-size: 1em;
  line-height: 1;
}

.wp-block-button.is-style-crj-button-light-icon .wp-block-button__link {
  background: var(--bg-light-grey);
  color: var(--ink);
  border: 1px solid var(--card-border);
}

.wp-block-button.is-style-crj-button-light-icon .wp-block-button__link:hover {
  background: var(--primary-10);
  color: var(--primary);
}

.wp-block-button.is-style-crj-button-light-icon .wp-block-button__link::before {
  content: "✉";
  font-size: 1em;
  line-height: 1;
}

/* ---------------------------------
   BOUTONS — tailles
--------------------------------- */

.wp-block-button.is-style-crj-button-small .wp-block-button__link {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  line-height: 1.2;
}

.wp-block-button.is-style-crj-button-large .wp-block-button__link {
  padding: 1rem 1.6rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

/* ---------------------------------
   TITRES — soulignement accent
--------------------------------- */

h1.is-style-crj-heading-accent,
h2.is-style-crj-heading-accent,
h3.is-style-crj-heading-accent,
h4.is-style-crj-heading-accent,
h5.is-style-crj-heading-accent,
h6.is-style-crj-heading-accent {
  position: relative;
  padding-bottom: .75rem;
}

h1.is-style-crj-heading-accent::after,
h2.is-style-crj-heading-accent::after,
h3.is-style-crj-heading-accent::after,
h4.is-style-crj-heading-accent::after,
h5.is-style-crj-heading-accent::after,
h6.is-style-crj-heading-accent::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 420px;
  height: 5px;
  background: var(--primary);
  margin-top: .7rem;
}

/* =========================================================
   GROUPES / CONTENEURS CRJ
========================================================= */

/* Boîte contenu */

.wp-block-group.is-style-crj-group-box {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 2rem;
}

/* Encadré accent */

.wp-block-group.is-style-crj-group-accent {
  background: var(--primary-10);
  border-left: 6px solid var(--primary);
  border-radius: 0 1rem 1rem 0;
  padding: 2rem;
}

/* Fond gris clair */

.wp-block-group.is-style-crj-group-light {
  background: var(--bg-light-grey);
  padding: 2rem;
  border-radius: 1rem;
}

/* Carte simple */

.wp-block-group.is-style-crj-group-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* Bloc avec bordure */

.wp-block-group.is-style-crj-group-bordered {
  border: 2px dashed var(--muted-2);
  border-radius: 1rem;
  padding: 2rem;
  background: var(--white);
}

/* =========================================================
   LISTES CRJ
========================================================= */

/* Base */
ul.is-style-crj-list-check,
ul.is-style-crj-list-accent,
ol.is-style-crj-list-numbered,
ul.is-style-crj-list-boxed {
  margin: 0;
  padding-left: 0;
}

/* ---------------------------------
   Liste avec coche
--------------------------------- */

ul.is-style-crj-list-check {
  list-style: none;
}

ul.is-style-crj-list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .85rem;
}

ul.is-style-crj-list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---------------------------------
   Liste accentuée
--------------------------------- */

ul.is-style-crj-list-accent {
  list-style: none;
}

ul.is-style-crj-list-accent li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: .85rem;
  border-left: 4px solid var(--primary);
  line-height: 1.6;
}

/* ---------------------------------
   Liste numérotée stylée
--------------------------------- */

ol.is-style-crj-list-numbered {
  list-style: none;
  counter-reset: crj-counter;
}

ol.is-style-crj-list-numbered li {
  counter-increment: crj-counter;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

ol.is-style-crj-list-numbered li::before {
  content: counter(crj-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------
   Liste encadrée
--------------------------------- */

ul.is-style-crj-list-boxed {
  list-style: none;
  display: grid;
  gap: .75rem;
}

ul.is-style-crj-list-boxed li {
  padding: .9rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: .85rem;
  background: var(--white);
}

/* =========================================================
   TABLEAUX CRJ
========================================================= */

.wp-block-table.is-style-crj-table-lines table,
.wp-block-table.is-style-crj-table-dark-head table,
.wp-block-table.is-style-crj-table-soft-box table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
}

.wp-block-table.is-style-crj-table-lines th,
.wp-block-table.is-style-crj-table-lines td,
.wp-block-table.is-style-crj-table-dark-head th,
.wp-block-table.is-style-crj-table-dark-head td,
.wp-block-table.is-style-crj-table-soft-box th,
.wp-block-table.is-style-crj-table-soft-box td {
  padding: 1.15rem 1.25rem;
  text-align: left;
  vertical-align: top;
}

/* =========================================================
   1. CRJ — Tableau lignes sobres
========================================================= */

.wp-block-table.is-style-crj-table-lines table {
  border: 0;
}

.wp-block-table.is-style-crj-table-lines thead th {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 3px solid var(--primary);
}

.wp-block-table.is-style-crj-table-lines tbody td {
  border-bottom: 1px solid var(--card-border);
}

.wp-block-table.is-style-crj-table-lines tbody tr:last-child td {
  /*border-bottom: 0;*/
  border-bottom: 1px solid var(--card-border);
}

.wp-block-table.is-style-crj-table-lines th + th,
.wp-block-table.is-style-crj-table-lines td + td {
  border-left: 1px solid var(--card-border);
}

/* =========================================================
   2. CRJ — Tableau entête foncée
========================================================= */

.wp-block-table.is-style-crj-table-dark-head table {
  border: 0;
}

.wp-block-table.is-style-crj-table-dark-head thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  border-bottom: 1px solid var(--card-border);
}

.wp-block-table.is-style-crj-table-dark-head thead th:first-child {
  border-top-left-radius: 12px;
}

.wp-block-table.is-style-crj-table-dark-head thead th:last-child {
  border-top-right-radius: 12px;
}

.wp-block-table.is-style-crj-table-dark-head tbody td {
  /*border-bottom: 1px solid var(--card-border);*/
  border-bottom: 1px solid var(--ink);
}

.wp-block-table.is-style-crj-table-dark-head tbody tr:last-child td {
  border-bottom: 0;
}

.wp-block-table.is-style-crj-table-dark-head th + th,
.wp-block-table.is-style-crj-table-dark-head td + td {
  border-left: 1px solid var(--card-border);
}

/* aucune bordure externe */
.wp-block-table.is-style-crj-table-dark-head th,
.wp-block-table.is-style-crj-table-dark-head td {
  border-right: 0;
}

.wp-block-table.is-style-crj-table-dark-head th:first-child,
.wp-block-table.is-style-crj-table-dark-head td:first-child {
  border-left: 0;
}

/* =========================================================
   3. CRJ — Tableau encadré doux
========================================================= */

.wp-block-table.is-style-crj-table-soft-box {
  padding: 0;
  background: var(--bg-light-grey);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}

.wp-block-table.is-style-crj-table-soft-box table {
  background: transparent;
  border: 0;
}

.wp-block-table.is-style-crj-table-soft-box thead th {
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--card-border);
}

.wp-block-table.is-style-crj-table-soft-box tbody td {
  /*border-bottom: 1px solid var(--card-border);*/
  border-bottom: 1px solid var(--ink);
}

.wp-block-table.is-style-crj-table-soft-box tbody tr:last-child td {
  border-bottom: 0;
}

/* pas de lignes verticales */
.wp-block-table.is-style-crj-table-soft-box th,
.wp-block-table.is-style-crj-table-soft-box td {
  border-left: 0 !important;
  border-right: 0 !important;
}
/* Ajustements finaux tableaux CRJ */

.wp-block-table.is-style-crj-table-soft-box tbody td {
  border-bottom: 1px solid var(--card-border);
}

.wp-block-table.is-style-crj-table-dark-head tbody td {
  border-bottom: 1px solid var(--card-border);
}

.wp-block-table.is-style-crj-table-lines tbody tr:last-child td {
  border-bottom: 1px solid var(--card-border);
}