/* Static-render + React-carousel support for the real Telio theme (app.css).
   We do NOT load the theme JS (it fights React hydration). Instead: reveal the
   theme's opacity:0 scroll-animation elements, render the review swiper track as
   a native horizontal-scroll row, and style the React card-stack carousel used
   by the "3 bonnes raisons" block. Loaded after app.css, public (site) only. */

/* 1) Carousel tracks + hero visual stay visible (React carousels manage them). */
.swiper,
.swiper-slide,
.hero-visual,
.office {
  opacity: 1 !important;
}

/* Above-fold hero content: render IMMEDIATELY (fast LCP) instead of the theme's
   JS fade-in reveal (which set opacity:0 and relied on scroll JS). Below-fold
   sections still fade in via ScrollReveal. The .hero-cta arrow-icon hover
   animation (.hero-cta .button img/svg) is a separate, more-specific rule and
   is NOT affected. */
.hero-title,
.hero-description,
.hero-cta,
.hero-advantages-brokers,
.hero-jobs-title,
.hero-jobs-infos {
  opacity: 1 !important;
  transform: none !important;
}

/* Scroll-reveal animation (React ScrollReveal adds reveal-init on mount, then
   reveal-in when the element enters the viewport) — fade + slide up, like the
   real theme's scroll animation. */
.reveal-init {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal-init.reveal-in {
  opacity: 1 !important;
  transform: none !important;
}

/* 2) Review carousel (block-swiper-cards): native horizontal-scroll row. */
.block-swiper-cards .swiper {
  overflow: visible !important;
  height: auto !important;
}
.block-swiper-cards .swiper-wrapper {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  height: auto !important;
  /* Center when the cards don't fill the row; start-align (scrollable) when they overflow. */
  justify-content: safe center;
}
.block-swiper-cards .swiper-slide,
.card-review {
  flex: 0 0 auto !important;
  width: 320px;
  max-width: 90vw;
  scroll-snap-align: start;
}
.block-swiper-cards-pagination {
  display: none !important;
}
.block-swiper-cards .swiper-arrows {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.block-swiper-cards .swiper-button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 99px;
  background: #fff;
  color: #281928;
  box-shadow: 0 2px 14px rgba(40, 25, 40, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.block-swiper-cards .swiper-button:hover {
  background: #ff5f00;
  color: #fff;
}

/* 3) "3 bonnes raisons" — React card-stack carousel (auto + arrows + dots). */
.block-swiper .grid-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}
.block-swiper .grid-content,
.block-swiper .grid-swiper {
  grid-column: auto !important;
  width: auto !important;
  max-width: none !important;
}
.block-swiper .block-title {
  max-width: none !important;
}
@media (max-width: 63.99em) {
  .block-swiper .grid-container {
    grid-template-columns: 1fr;
  }
}
.reasons3d-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 440px;
  padding-bottom: 40px;
}
.reasons3d-stack {
  position: relative;
  width: 260px;
  height: 360px;
  flex: 0 0 auto;
}
.reasons3d-card {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 44px rgba(40, 25, 40, 0.12);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.reasons3d-card img {
  width: 100%;
  max-width: 170px;
  height: auto;
}
.reasons3d-card p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: #281928;
}
.reasons3d-arrow {
  position: relative;
  z-index: 20;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: none;
  border-radius: 99px;
  background: #fff;
  color: #281928;
  box-shadow: 0 2px 14px rgba(40, 25, 40, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.reasons3d-arrow:hover {
  background: #ff5f00;
  color: #fff;
}
.reasons3d-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.reasons3d-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: #e0e9fd;
  cursor: pointer;
}
.reasons3d-dots button.is-active {
  background: #ff5f00;
}

/* React cookie consent banner (replaces WP Complianz popup). */
.cookie-consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 340px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(40, 25, 40, 0.22);
  padding: 24px;
}
.cookie-consent-text {
  margin: 0 0 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #46555a;
}
.cookie-consent-text a {
  color: #ff5f00;
  font-weight: 600;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-btn {
  width: 100%;
  padding: 12px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #281928;
}
.cookie-btn-accept {
  background: #281928;
  color: #fff;
  border-color: #281928;
}
.cookie-btn-reject,
.cookie-btn-prefs {
  background: #fff;
  color: #281928;
}
.cookie-btn:hover {
  opacity: 0.9;
}

/* Hide the review-carousel scrollbar (we navigate with arrows + auto-advance). */
.block-swiper-cards .swiper-wrapper {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.block-swiper-cards .swiper-wrapper::-webkit-scrollbar {
  display: none;
}

/* Partners = continuous auto-scroll marquee (logos duplicated for seamless loop). */
.partners-marquee {
  overflow: hidden !important;
}
.partners-marquee-track {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center;
  gap: 48px;
  width: max-content !important;
  animation: partners-marquee 90s linear infinite;
}
.partners-marquee-track .swiper-slide {
  flex: 0 0 auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes partners-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.block-partners .swiper-arrows { display: none !important; }

/* Header: sticky (fixed) and docked flush at the top — removes the theme's
   floating gap (top:60px) + side margins so it's a full-width sticky bar. */
.header {
  position: fixed !important;
  top: 0 !important;
}
.header .grid-container {
  margin: 0 !important;
  max-width: none !important;
}

/* ===================================================================
   Modern contact form (Nous joindre) — restyle of the CF7 block.
   Scoped to .block-contact-form so the real theme app.css is untouched
   elsewhere. Brand tokens: orange #ff5f00, ink #281928, radius 12/24px.
   =================================================================== */
/* The whole block (title + form) is ONE white card on the grey section, so the
   title no longer floats on grey with an awkward gap above it. Card = the
   grid-container; the CF7 form inside is transparent. */
.block-contact-form .grid-container {
  max-width: 940px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 24px;
  padding: 44px 48px;
  box-shadow: 0 24px 60px -30px rgba(40, 25, 40, 0.22);
}
@media (max-width: 640px) {
  .block-contact-form .grid-container { padding: 28px 24px; border-radius: 20px; }
}
.block-contact-form .block-title {
  font-size: 2rem;
  font-weight: 500;
  color: #281928;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
/* CF7 form itself carries no card chrome (the grid-container is the card). */
.block-contact-form .wpcf7 {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
/* Replace Foundation's negative-margin grid with a clean CSS grid so every
   field + the notice align to the SAME left/right edge inside the card padding
   (Foundation's grid-margin-x negative margins broke the gutters/alignment). */
.block-contact-form .grid-x.grid-margin-x {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 0;
}
.block-contact-form .grid-x.grid-margin-x > * {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}
/* Half-width: Prénom / Nom (small-12 medium-6). Everything else spans full. */
.block-contact-form .grid-x.grid-margin-x > .cell.medium-6 {
  grid-column: auto;
}
.block-contact-form .grid-x.grid-margin-x > .cell.small-12:not(.medium-6),
.block-contact-form .grid-x.grid-margin-x > .contact-notice,
.block-contact-form .grid-x.grid-margin-x > .grecaptcha-notice {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .block-contact-form .grid-x.grid-margin-x {
    grid-template-columns: 1fr;
  }
  .block-contact-form .grid-x.grid-margin-x > .cell.medium-6 {
    grid-column: 1 / -1;
  }
}
/* Field label = flex column holding label text + input */
.block-contact-form label.cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #281928;
  letter-spacing: 0.01em;
  margin: 0;
}
.block-contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
/* Inputs + textarea + select */
.block-contact-form input.wpcf7-form-control,
.block-contact-form textarea.wpcf7-form-control,
.block-contact-form select.wpcf7-form-control {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: #281928;
  background: #f6f7f9;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 52px;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
/* Select: explicit height so the selected option text is vertically centered
   (not clipped) + custom chevron + room for it */
.block-contact-form select.wpcf7-form-control {
  cursor: pointer;
  height: 52px;
  line-height: 1.5;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23281928' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
/* Leading icon (e.g. phone on Cellulaire) */
.block-contact-form .wpcf7-form-control-wrap.has-icon {
  position: relative;
  display: block;
}
.block-contact-form .wpcf7-form-control-wrap.has-icon .field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0ac;
  pointer-events: none;
}
.block-contact-form .wpcf7-form-control-wrap.has-icon input.wpcf7-form-control {
  padding-left: 46px;
}
.block-contact-form textarea.wpcf7-form-control {
  min-height: 160px;
  line-height: 1.5;
  resize: vertical;
}
.block-contact-form input.wpcf7-form-control::placeholder,
.block-contact-form textarea.wpcf7-form-control::placeholder {
  color: #9aa0ac;
}
.block-contact-form input.wpcf7-form-control:focus,
.block-contact-form textarea.wpcf7-form-control:focus,
.block-contact-form select.wpcf7-form-control:focus {
  outline: none;
  background: #fff;
  border-color: #ff5f00;
  box-shadow: 0 0 0 4px rgba(255, 95, 0, 0.13);
}
/* "At least one contact method" callout */
.block-contact-form .contact-notice {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff5f0;
  border: 1px solid #ffe0cf;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 2px 0;
}
.block-contact-form .contact-notice .icon-infos {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #ff5f00;
}
.block-contact-form .contact-notice p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #8a4b28;
}
/* reCAPTCHA fine print */
.block-contact-form .grecaptcha-notice {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #8a90a0;
  margin-top: 6px;
}
.block-contact-form .grecaptcha-notice a {
  color: #ff5f00;
  text-decoration: underline;
}
/* Submit button = orange pill with lift + arrow slide */
.block-contact-form .btn-submit-contact {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ff5f00;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: 15px 32px;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(255, 95, 0, 0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.block-contact-form .btn-submit-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(255, 95, 0, 0.72);
}
.block-contact-form .btn-submit-contact .icon-arrow-right {
  transition: transform 0.18s ease;
}
.block-contact-form .btn-submit-contact:hover .icon-arrow-right {
  transform: translateX(4px);
}

/* ===================================================================
   Steps keynote ("Comment fonctionne l'assurance auto avec Telio?").
   The theme drives this with Swiper JS + a scroll-reveal animation we
   don't run, so: (1) force the reveal initial state visible, (2) show
   only the active phone mockup, (3) show the active step's content.
   React (steps-keynote/index.tsx) sets the .active / .is-active classes.
   =================================================================== */
/* Reveal-animation initial state (opacity:0; translateY) → force visible. */
.block-swiper-keynote .block-infos-slide,
.block-swiper-keynote .title.animated,
.block-swiper-keynote .description.animated,
.block-swiper-keynote .animated,
.block-swiper-keynote .animated-media {
  opacity: 1 !important;
  transform: none !important;
}
/* Media column: stack slides, reveal only the active phone mockup. */
.block-swiper-keynote .block-swiper-keynote-medias {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.block-swiper-keynote .swiper-wrapper {
  display: block;
  width: 100%;
  transform: none !important;
}
.block-swiper-keynote .swiper-slide {
  display: none;
}
/* Fixed-height stage so every slide (portrait 2:3 phone mockups AND the wider
   activation mockup) fits identically — object-fit:contain prevents zoom/crop. */
.block-swiper-keynote .swiper-slide.is-active {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: clamp(360px, 52vh, 520px);
}
.block-swiper-keynote .swiper-slide img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
/* Controls: vertical column to the LEFT of the image (up · dots · down). */
.block-swiper-keynote .swiper-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  order: 0;
}
/* arrow-left/right svgs rotated to point up/down for the vertical nav */
.block-swiper-keynote .swiper-controls .icon-arrow-left,
.block-swiper-keynote .swiper-controls .icon-arrow-right {
  transform: rotate(90deg);
}
.block-swiper-keynote .swiper-button {
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #281928;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.block-swiper-keynote .swiper-button:hover {
  background: #281928;
  border-color: #281928;
  color: #fff;
}
.block-swiper-keynote .swiper-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.block-swiper-keynote .kdot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ced4e2;
  cursor: pointer;
  transition: background 0.2s ease, height 0.2s ease;
}
.block-swiper-keynote .kdot.active {
  height: 26px;
  background: #ff5f00;
}
/* Active step: reveal its content (the theme's .active rule sets margin only). */
.block-swiper-keynote .block-infos-slide .block-infos-slide-content {
  display: none;
}
.block-swiper-keynote .block-infos-slide.active .block-infos-slide-content {
  display: block;
}
.block-swiper-keynote .block-infos-slide-btn {
  width: 100%;
  cursor: pointer;
  background: transparent;
  border: 0;
}

/* ===================================================================
   Vehicle-types carousel (.block-simple-card) — no Swiper JS, so give
   the cards breathing room (they touched at 0px) + a scrollable track
   the real arrows drive (vehicle-types/index.tsx scrollBy).
   =================================================================== */
.block-simple-card .block-cards-list {
  overflow: hidden;
}
/* The .swiper-wrapper is the scroll container (ref'd by the arrows). */
.block-simple-card .block-cards-list .swiper-wrapper {
  display: flex;
  gap: 24px;
  transform: none !important;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  scroll-snap-type: x mandatory;
  padding-bottom: 4px; /* room for card shadows while scrolling */
  /* Center the cards when they don't fill the row; fall back to start (scrollable)
     when they overflow, so the first cards never get clipped. */
  justify-content: safe center;
}
.block-simple-card .block-cards-list .swiper-wrapper::-webkit-scrollbar {
  display: none; /* WebKit */
}
.block-simple-card .block-cards-list .simple-card {
  flex: 0 0 auto;
  width: clamp(260px, 24vw, 320px);
  scroll-snap-align: start;
}

/* ===================================================================
   Footer social icons — the theme reveals them with JS (base opacity:0).
   No theme JS → force visible so Facebook/Instagram/LinkedIn show.
   =================================================================== */
.footer-logo-socials .socials a {
  opacity: 1 !important;
}

/* ===================================================================
   Hero CTAs — the primary & hollow variants ship different padding/height
   (18/32 vs 16/16), so stacked on mobile they read as a mismatched pair.
   Normalize both to one size so they align as a matched set.
   =================================================================== */
.hero-cta .button {
  padding: 16px 32px !important;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===================================================================
   Soumission popup (entreprise line of business — quote form embed).
   =================================================================== */
.soumission-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(40, 25, 40, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.soumission-modal {
  position: relative;
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5);
  /* Fit within the viewport; the form scrolls INSIDE (not the whole overlay),
     so a long form never runs off the bottom and the close button stays put. */
  max-height: 90vh;
  overflow: hidden;
}
.soumission-scroll {
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.soumission-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f8;
  color: #281928;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.soumission-close:hover {
  background: #281928;
  color: #fff;
}
/* the CF7 form inside = no card-in-card, tighter padding */
.soumission-modal .block-contact-form {
  margin: 0;
}
.soumission-modal .block-contact-form .grid-container {
  max-width: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 36px 32px;
}
@media (max-width: 640px) {
  .soumission-modal .block-contact-form .grid-container { padding: 28px 20px; }
}

/* ===================================================================
   mosaic (Carrières "Culture Telio + stats" grid, .block-mosaic).
   The theme hides every tile with `.mosaic-item { opacity:0 }` and
   reveals it with its own scroll JS, which we do NOT load — so force
   the tiles visible (the revealed end-state). The flip cards already
   default to showing the recto (front) via app.css; React toggles the
   `.flipped` class for the back face, so no face override is needed.
   Scoped under .block-mosaic so the real app.css is untouched elsewhere.
   =================================================================== */
.block-mosaic .mosaic-item {
  opacity: 1 !important;
  transform: none !important;
}

/* ===================================================================
   values — Carrières "Nos valeurs" flip-card CAROUSEL (.block-values).
   React (src/blocks/values) drives the flip (.value-card.flipped), the
   scroll track and auto-advance. Layout: 4 square flip-cards visible,
   horizontal scroll, prev/next arrows below (left/right).
   =================================================================== */
.block-values .block-values-list {
  position: relative;
}
.block-values .block-values-list > ul {
  list-style: none;
  margin: 0;
  padding: 6px 4px 10px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.block-values .block-values-list > ul::-webkit-scrollbar {
  display: none;
}
.block-values .value-card {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 4);
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  perspective: 1200px;
}
@media (max-width: 1024px) {
  .block-values .value-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 640px) {
  .block-values .value-card { flex-basis: 80%; }
}
/* first card carries the subtle orange "active" border like the live */
.block-values .value-card:first-child .card-recto {
  border: 1.5px solid #ff5f00;
}
/* arrows below: prev left, next right */
.block-values .values-arrows {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.block-values .values-arrow {
  width: 52px;
  height: 52px;
  border: 1px solid #e5e8ef;
  border-radius: 14px;
  background: #fff;
  color: #281928;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.block-values .values-arrow:hover {
  background: #281928;
  color: #fff;
}
.block-values .value-card .card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.55s ease;
}
.block-values .card-recto {
  background: #fff;
  box-shadow: 0 10px 34px rgba(40, 25, 40, 0.07);
  transform: rotateY(0deg);
}
.block-values .card-verso {
  background: #281928;
  color: #fff;
  transform: rotateY(180deg);
}
.block-values .value-card.flipped .card-recto { transform: rotateY(-180deg); }
.block-values .value-card.flipped .card-verso { transform: rotateY(0deg); }
/* Recto: icon top, name centered, "+" bottom-right */
.block-values .card-recto .value-icon { color: #ff5f00; }
.block-values .card-recto .value-name {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: #281928;
}
.block-values .action-btn {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f4f8;
  color: #281928;
  transition: background 0.2s ease;
}
.block-values .action-btn:hover { background: #e6e9f0; }
/* Verso: dark card, header (icon + "−"), bullet description */
.block-values .card-verso .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.block-values .card-verso .value-icon svg { color: rgba(255, 255, 255, 0.45); }
.block-values .card-verso .action-btn { background: #fff; color: #281928; }
.block-values .card-description {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
  line-height: 1.4;
  overflow: auto;
}
.block-values .card-description li { position: relative; padding-left: 14px; }
.block-values .card-description li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ff5f00;
}

/* ---------------------------------------------------------------------------
   hero-jobs — Carrières hero + employee card-flip carousel
   The theme's Swiper JS is not loaded, so the React block (src/blocks/hero-jobs)
   owns the active slide (adds .swiper-slide-active) and flip state (.flipped).
   Swiper's default .swiper-wrapper transform/scroll layout would stack all four
   cards; these overrides neutralize it and show one centered card at a time,
   then lay the arrows + pagination out as a simple row under the card. Scoped
   under .hero-jobs so nothing else on the site is affected.
--------------------------------------------------------------------------- */
/* Let arrows/dots sit below the fixed-height card without being clipped */
.hero-jobs .swiper-card-flip {
  overflow: visible !important;
  height: auto !important;
}
/* Neutralize Swiper's transform/scroll track; center the single active card */
/* Coverflow stage: a relative track; each card is absolutely centered and the
   React block offsets neighbours via inline transforms (active centered + prev/
   next peeking behind). */
.hero-jobs .swiper-card-flip .swiper-wrapper {
  position: relative;
  display: block !important;
  transform: none !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  height: clamp(440px, 58vh, 520px);
  perspective: 1200px;
}
.hero-jobs .swiper-card-flip .swiper-slide {
  position: absolute !important;
  top: 0;
  left: 50%;
  width: clamp(270px, 23vw, 330px) !important;
  height: 100%;
  display: flex !important;
  transition: transform 0.45s ease, opacity 0.45s ease;
  cursor: pointer;
}
.hero-jobs .swiper-card-flip .swiper-slide.swiper-slide-active {
  cursor: default;
}
/* The active slide reveals its front infos + flip button (app.css uses
   .swiper-slide-active for this; force it in case specificity shifts) */
.hero-jobs .swiper-card-flip .swiper-slide.swiper-slide-active .card-infos { opacity: 1 !important; }
.hero-jobs .swiper-card-flip .swiper-slide.swiper-slide-active .btn-flip-card { opacity: 1 !important; }
/* Arrows on the SIDES of the card (coverflow), pagination dots below. */
.hero-jobs .swiper-card-flip {
  position: relative;
}
.hero-jobs .swiper-card-flip .swiper-arrows {
  position: static !important;
  transform: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}
.hero-jobs .swiper-card-flip .swiper-button {
  position: absolute !important;
  top: clamp(210px, 27vh, 250px) !important;
  transform: none !important;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-jobs .swiper-card-flip .swiper-button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}
.hero-jobs .swiper-card-flip .swiper-button-prev { left: 0 !important; right: auto !important; }
.hero-jobs .swiper-card-flip .swiper-button-next { right: 0 !important; left: auto !important; }
.hero-jobs .swiper-card-flip .swiper-pagination {
  position: static !important;
  width: auto !important;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.hero-jobs .swiper-card-flip .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: 0;
  padding: 0;
}
.hero-jobs .swiper-card-flip .swiper-pagination-bullet-active {
  background: #fff;
  width: 22px;
}

/* quiz */
/* The theme's Swiper JS is NOT loaded; the React <Quiz> block drives the steps
   and tags the current card with `swiper-slide-active`. These rules replace what
   Swiper would normally do: show ONLY the active question card, force the theme's
   reveal states visible, and re-enable interaction (the theme sets the wrapper to
   pointer-events:none !important and the card content to opacity:0). Everything
   is scoped under .block-quiz. Brand: orange #ff5f00, ink #281928, pills #f6f7f9. */

/* let the single visible card size itself; drop the swiper viewport clipping */
.block-quiz .block-quiz-swiper {
  overflow: visible;
  max-height: none;
  margin-left: auto;
  margin-right: auto;
}
/* stack, don't lay the slides out horizontally, and re-enable clicks */
.block-quiz .swiper-wrapper {
  display: block !important;
  transform: none !important;
  pointer-events: auto !important;
}
/* show only the active question/result card */
.block-quiz .swiper-slide {
  display: none;
}
.block-quiz .swiper-slide.swiper-slide-active {
  display: block;
  background-color: #fff;
  pointer-events: auto;
}
/* force every reveal state visible (theme animates from opacity:0 via JS) */
.block-quiz .swiper-slide .swiper-slide-wrapper,
.block-quiz .swiper-slide.swiper-slide-active .swiper-slide-wrapper,
.block-quiz .swiper-slide.final-slide .swiper-slide-wrapper.quiz-message {
  opacity: 1 !important;
}
/* the final result card fills the frame; skip the JS-only loading spinner */
.block-quiz .swiper-slide.final-slide.swiper-slide-active {
  width: 100%;
  height: 100%;
  background: none;
}
.block-quiz .swiper-slide.final-slide .swiper-slide-wrapper.quiz-message {
  display: flex !important;
  background-color: #281928;
}
/* keep controls interactive inside the (otherwise inert) wrapper */
.block-quiz .slide-content button,
.block-quiz .slide-content a,
.block-quiz .slide-content select,
.block-quiz .slide-content input,
.block-quiz .swiper-button {
  pointer-events: auto;
}
.block-quiz .slide-content button:not(:disabled),
.block-quiz .slide-content a,
.block-quiz .slide-content select,
.block-quiz .swiper-button:not(:disabled) {
  cursor: pointer;
}
/* option pills: light card, ink text, orange active/hover (brand tokens) */
.block-quiz .slide-content .custom-radio .pill-button {
  background-color: #fff5f0;
  color: #281928;
  border: 2px solid transparent;
}
.block-quiz .slide-content .custom-radio .pill-button:hover,
.block-quiz .slide-content .custom-radio .pill-button:focus {
  background-color: #ffe1d6;
  border-color: #ff5f00;
}
.block-quiz .slide-content .custom-radio input:checked + .pill-button {
  background-color: #ff5f00;
  border-color: #ff5f00;
  color: #fff;
}
.block-quiz .slide-content .custom-radio input:checked + .pill-button .icon svg {
  fill: #fff;
}
/* the optional pet-name field is shown/hidden from React state, not inline JS */
.block-quiz .slide-content .slide-ctas.pets-name {
  gap: 8px;
}
.block-quiz .slide-content select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #f6f7f9;
  border-radius: 12px;
  background-color: #f6f7f9;
  color: #281928;
}
.block-quiz .slide-content input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #f6f7f9;
  border-radius: 12px;
  background-color: #f6f7f9;
  color: #281928;
}

/* Jobs cards: keep the "Postuler" button right-aligned even when the card has
   no "En savoir plus" link (e.g. Candidature spontanée), so all cards match. */
.block-jobs .card-footer > div:last-child {
  margin-left: auto;
}

/* Delineate the related-posts section from the FAQ above: distinct tinted band
   (white cards pop on it) + a clear top divider + generous breathing room. */
.block-related {
  background: #f6f7f9;
  border-top: 1px solid #e6e8ec;
  margin-top: 64px;
  padding: 56px 0 64px;
}

/* Blog: "De la même catégorie" related header (title left, "Voir tout" right). */
.block-related .block-related-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
/* The header title is a <p> (kept out of the heading outline) — restore its size. */
.block-related .block-related-header .block-title {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: #281928;
  margin: 0;
}
.block-related .block-related-all {
  flex: 0 0 auto;
  color: #281928;
  font-weight: 500;
  text-decoration: underline;
}
.block-related .block-related-all:hover {
  color: #ff5f00;
}
/* blog category filter buttons (React) match the theme's <a> pills */
.block-blog .blog-filter {
  cursor: pointer;
  font: inherit;
}

/* Blog POST breadcrumb: WP adds .single-post to <body> which sets the crumb
   background to none; we don't have that class, so the base dark pill
   (rgba(40,25,40,.7)) showed as a grey box. Kill it here. */
.hero-blog-post .breadcrumbs ul {
  background: none;
  padding-left: 0;
  padding-right: 0;
}

/* Blog POST article body — the shared `.content-wrapper` class carries a
   450px max-width (from imgTextHighlight) that squished the article, and the
   theme's headings have line-height:1 with no top margin (cramped). Give the
   article real, breathing typography. Scoped to .block-text so nothing else
   is affected. */
/* article/legal body = white page, centered ~820px column (matches live). */
.block-text {
  background: #fff;
}
.block-text .content-wrapper {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #281928;
}
.block-text .content-wrapper p {
  margin: 0 0 1.15em;
}
.block-text .content-wrapper h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.25;
  margin: 2em 0 0.6em;
}
.block-text .content-wrapper h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  margin: 1.6em 0 0.5em;
}
.block-text .content-wrapper h2:first-child,
.block-text .content-wrapper h3:first-child {
  margin-top: 0;
}
.block-text .content-wrapper ul,
.block-text .content-wrapper ol {
  margin: 0 0 1.15em;
  padding-left: 1.4em;
}
.block-text .content-wrapper li {
  margin-bottom: 0.5em;
}
.block-text .content-wrapper a {
  color: #ff5f00;
  text-decoration: underline;
}
/* a touch more room around the whole article block on mobile */
@media (max-width: 640px) {
  .block-text {
    padding: 40px 0;
  }
}

/* ── Global fixed side buttons (jobs + quiz) ─────────────────────────────────
   The live theme sets `.side-btn { position:absolute }` and a script rewrites
   each button's inline `top` on scroll so they stay pinned to the viewport.
   That JS is not loaded here, so promote them to `position:fixed` — app.css
   already provides the pinned offsets (top:40vh for jobs, top:calc(40vh+…) for
   quiz, right:8px), so this alone reproduces the pinned-on-scroll behaviour.
   The live container also starts `opacity:0` (JS fades it in); force it visible
   so it renders immediately for real users. */
.follow-buttons {
  opacity: 1 !important;
}
.follow-buttons .side-btn {
  position: fixed;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ deliverable — Scoop-style hub (hero + search, tabs, TOC, accordions),
   Telio branding. Scoped under .faq so it never leaks to other pages.
   Brand tokens: orange #ff5f00 · ink #281928 · peach #fff5f0 · border #e0e9fd.
   ═════════════════════════════════════════════════════════════════════════ */
.faq { color: #281928; padding-bottom: 80px; }
/* Only the BODY grid-container is constrained (direct child of .faq); the hero
   keeps the theme's full-width .grid-container.full so its layout + orange
   accent line match every other interior page. */
.faq > .grid-container { max-width: 1160px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Hero = real theme .hero (white bg, breadcrumb chip, serif hero-title, orange
   accent line). Only the search bar is bespoke, sitting inside the hero. */
.faq-search { position: relative; max-width: 560px; margin-top: 28px; }
.faq-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #ff5f00; }
.faq-search input { width: 100%; box-sizing: border-box; padding: 16px 18px 16px 50px; font-size: 1rem; font-family: inherit; color: #281928; background: #fff; border: 1px solid #e0e9fd; border-radius: 999px; box-shadow: 0 2px 20px rgba(40,25,40,.06); transition: border-color .2s, box-shadow .2s; }
.faq-search input:focus { outline: none; border-color: #ff5f00; box-shadow: 0 2px 24px rgba(255,95,0,.14); }

/* Hero eyebrow badge (Scoop-style pill above the title) */
.faq-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #ff5f00; background: #fff5f0; border: 1px solid #ffd8c4; border-radius: 999px; padding: 5px 12px; margin: 0 0 16px; }
.faq-eyebrow::before { content: "★"; font-size: .7rem; }
/* Hero action buttons + summary microcopy */
.faq-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
/* Normalise both CTAs to the same height/padding so they align cleanly. */
.faq-hero-actions .button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; font-size: .9375rem; line-height: 1.2; }
/* Outline secondary CTA (theme .button.hollow is white-on-white → invisible here). */
.faq-hero-actions .button.faq-btn-outline { background: transparent; border: 1px solid #281928; color: #281928; }
.faq-hero-actions .button.faq-btn-outline:hover { background: #281928; color: #fff; }
.faq-summary { font-size: .8125rem; color: #9a8f92; margin: 16px 0 0; }

/* Category tabs */
.faq-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; margin-bottom: 32px; }
.faq-tab { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 500; text-decoration: none; color: #281928; background: #fff; border: 1px solid #e0e9fd; border-radius: 999px; padding: 9px 16px; transition: all .18s; }
.faq-tab:hover { border-color: #ff5f00; color: #ff5f00; }
.faq-tab.is-active { background: #281928; color: #fff; border-color: #281928; }
.faq-tab-count { font-size: .75rem; font-weight: 600; color: #46555a; background: #f2f4f8; border-radius: 999px; padding: 1px 8px; min-width: 18px; text-align: center; }
.faq-tab:hover .faq-tab-count { background: #fff5f0; color: #ff5f00; }
.faq-tab.is-active .faq-tab-count { background: rgba(255,255,255,.18); color: #fff; }

/* Body layout: TOC aside + main */
.faq-body.has-toc { display: grid; grid-template-columns: 232px 1fr; gap: 48px; align-items: start; }
.faq-toc { position: sticky; top: 24px; }
.faq-toc-title { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #9a8f92; margin-bottom: 12px; }
.faq-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.faq-toc a { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none; color: #46555a; font-size: .9375rem; padding: 8px 12px; border-radius: 8px; border-left: 2px solid transparent; transition: all .15s; }
.faq-toc a:hover { background: #fff5f0; color: #281928; border-left-color: #ff5f00; }
.faq-toc-count { font-size: .75rem; color: #9a8f92; background: #f3eef0; border-radius: 999px; padding: 1px 8px; }

/* Sections + accordions */
.faq-results { font-size: .9375rem; color: #46555a; margin: 0 0 20px; }
.faq-empty { font-size: 1rem; color: #46555a; padding: 32px 0; }
.faq-section { margin-bottom: 44px; scroll-margin-top: 24px; }
.faq-section-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-crimson), Georgia, serif; font-size: 1.5rem; margin: 0 0 18px; color: #281928; }
.faq-section-title a { color: inherit; text-decoration: none; }
.faq-section-title a:hover { color: #ff5f00; }
.faq-section-count { font-size: .8125rem; font-family: var(--font-figtree), sans-serif; font-weight: 500; color: #ff5f00; background: #fff5f0; border-radius: 999px; padding: 2px 10px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid #e0e9fd; border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.faq-item[open] { border-color: #ffd2bd; box-shadow: 0 2px 24px rgba(40,25,40,.06); }
.faq-question { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 500; font-size: 1.0625rem; color: #281928; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: #ff5f00; }
.faq-q-text { flex: 1; }
/* Scoop-style "+" toggle on the left; the vertical bar hides when open → "−". */
.faq-plus { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: #fff5f0; color: #ff5f00; transition: background .18s, color .18s; }
.faq-item[open] .faq-plus { background: #ff5f00; color: #fff; }
.faq-plus-v { transform-origin: center; transition: opacity .2s ease, transform .2s ease; }
.faq-item[open] .faq-plus-v { opacity: 0; transform: rotate(90deg); }
.faq-answer { padding: 0 22px 22px 66px; color: #46555a; font-size: 1rem; line-height: 1.6; }
.faq-answer p { margin: 0 0 14px; }
.faq-learn { display: inline-flex; align-items: center; gap: 6px; color: #ff5f00; font-weight: 500; text-decoration: none; }
.faq-learn:hover { text-decoration: underline; }
.faq-learn svg { fill: currentColor; }

@media (max-width: 860px) {
  .faq-body.has-toc { grid-template-columns: 1fr; gap: 8px; }
  .faq-toc { position: static; margin-bottom: 24px; }
  .faq-toc ul { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .faq-toc a { border: 1px solid #e0e9fd; border-left: 1px solid #e0e9fd; border-radius: 999px; padding: 6px 12px; }
  .faq-toc a:hover { border-color: #ff5f00; }
}

/* Off-canvas nav-meta (assurance auto électrique / Programme): breathing room
   between the label and its eco icon (theme sets none). */
.menu-offcanvas .nav-meta a svg { margin-left: 8px; }

/* Footer: tighten vertical rhythm a touch (shorter footer, closer to live). */
@media (min-width: 1024px) {
  footer .footer-infos { padding-top: 56px; }
}
footer .footer-group-wrapper .footer-group { margin-bottom: 20px; }
footer .footer-logo-socials .socials { padding-bottom: 24px; }
footer .footer-group-wrapper .footer-menu { margin-bottom: 16px; }

/* Form confirmation ("merci") — branded card with success checkmark. */
.block-form-confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 44px 28px;
  background: #fff5f0;
  border: 1px solid #ffe3d3;
  border-radius: 16px;
}
.block-form-confirmation .form-confirmation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ff5f00;
  color: #fff;
  margin-bottom: 4px;
}
.block-form-confirmation .form-confirmation-title {
  font-family: "Crimson Text", Arial, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #281928;
  margin: 0;
}
.block-form-confirmation .form-confirmation-text,
.block-form-confirmation .form-confirmation-body {
  color: #46555a;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 40ch;
  margin: 0;
}
.block-form-confirmation .form-confirmation-body p:last-child { margin-bottom: 0; }

/* ============================================================
   Form-builder forms (FormRenderer) — Telio branding + padding.
   Targets the new `.block-form-form` markup (inline blocks + popup).
   Mirrors the approved contact-form field styling.
   ============================================================ */
.block-form-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.block-form-form .form-fields {
  gap: 18px 16px !important;
}
.block-form-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.block-form-form .form-field > label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #281928;
  letter-spacing: 0.01em;
  margin: 0;
}
.block-form-form .form-field input,
.block-form-form .form-field textarea,
.block-form-form .form-field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: #281928;
  background: #f6f7f9;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 52px;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.block-form-form .form-field select {
  height: 52px;
  cursor: pointer;
  line-height: 1.5;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23281928' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.block-form-form .form-field textarea {
  min-height: 140px;
  line-height: 1.5;
  resize: vertical;
}
.block-form-form .form-field input::placeholder,
.block-form-form .form-field textarea::placeholder {
  color: #9aa0ac;
}
.block-form-form .form-field input:focus,
.block-form-form .form-field textarea:focus,
.block-form-form .form-field select:focus {
  outline: none;
  background: #fff;
  border-color: #ff5f00;
  box-shadow: 0 0 0 4px rgba(255, 95, 0, 0.13);
}
/* Checkbox row: [box] label, not stacked */
.block-form-form .form-field:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.block-form-form .form-field input[type="checkbox"] {
  order: 1;
  width: 20px;
  height: 20px;
  min-height: 0;
  flex: 0 0 auto;
  accent-color: #ff5f00;
  cursor: pointer;
}
.block-form-form .form-field:has(input[type="checkbox"]) > label {
  order: 2;
  font-weight: 400;
  color: #46555a;
}
/* Rich-text message field spacing */
.block-form-form .form-message { color: #46555a; line-height: 1.5; }
.block-form-form .form-error {
  color: #c0392b;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}
/* Submit button: full width on its own row, adequate size */
.block-form-form .btn-submit-contact {
  align-self: flex-start;
  min-width: 220px;
  padding: 14px 32px;
}

/* --- Popup: pad the new form + style the title --- */
.soumission-modal .soumission-title {
  font-family: "Crimson Text", Arial, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #281928;
  margin: 0;
  padding: 40px 36px 20px;
}
.soumission-modal .block-form-form {
  padding: 0 36px;
}
/* Keep the submit ALWAYS visible on long forms: sticky footer button while the
   fields scroll above it (a capped modal alone hides the button below the fold). */
.soumission-modal .block-form-form .btn-submit-contact {
  position: sticky;
  bottom: 20px;
  z-index: 2;
  width: 100%;
  align-self: stretch;
  margin-top: 24px;
  box-shadow: 0 -22px 18px -8px #fff, 0 12px 26px -8px rgba(255, 95, 0, 0.35);
}
.soumission-scroll {
  padding-bottom: 4px;
}
.soumission-modal .block-form-confirmation {
  margin: 0 36px 40px;
}
@media (max-width: 640px) {
  .soumission-modal .soumission-title { padding: 28px 22px 14px; }
  .soumission-modal .block-form-form { padding: 0 22px 28px; }
  .soumission-modal .block-form-confirmation { margin: 0 22px 28px; }
  .block-form-form .btn-submit-contact { width: 100%; }
}

/* ============================================================
   BLOG ARTICLE REVAMP (.blog-*) — type-aware (prix / info / best)
   ============================================================ */
.blog-article { --blog-accent: #ff5f00; --blog-accent-soft: #fff5f0; }
.blog-article--best { --blog-accent: #281928; --blog-accent-soft: #f3f0f3; }
.blog-article--info { --blog-accent: #b34700; --blog-accent-soft: #fff5f0; }

/* ---- Hero ---- */
/* Top padding clears the 106px fixed header (was overlapping the nav). */
/* Hero = same colour as the service pages (.hero-section-wrapper = orange + fade line). */
.blog-hero {
  background: #ff5f00 url("/wp-content/themes/telio/img/hero-line-fade.svg") no-repeat;
  background-size: 42%;
  background-position: right -3% center;
  color: #fff;
  padding: 132px 0 56px;
}
.blog-hero .breadcrumbs { margin-bottom: 28px; }
/* Breadcrumbs identical to the service-page heroes: light pill, dark text, dark arrow. */
.blog-hero .breadcrumbs ul { background-color: rgba(242, 244, 248, 0.7); border-radius: 8px; padding: 6px 12px; }
.blog-hero .breadcrumbs a,
.blog-hero .breadcrumbs span { color: #281928; }
.blog-hero .breadcrumbs li:not(:last-child)::after {
  background-image: url("/wp-content/themes/telio/svg/originals/arrow-right-dark.svg");
}
/* The current breadcrumb item is the page <h1> (target keyword) — render it inline
   exactly like a breadcrumb chip, not a big heading. */
.blog-hero .breadcrumbs .blog-crumb-h1 {
  display: inline; margin: 0; padding: 0;
  font-family: inherit; font-size: 0.75rem; font-weight: inherit; line-height: inherit; color: #281928;
}

/* Blog article body copy size. */
.blog-body-main .content-wrapper p,
.blog-body-main .content-wrapper li {
  font-size: 20px;
  line-height: 1.65;
}
/* Mobile: smaller body copy (18px) for comfortable reading on narrow screens. */
@media (max-width: 47.99em) {
  .blog-body-main .content-wrapper p,
  .blog-body-main .content-wrapper li {
    font-size: 18px;
  }
}

/* Hide the floating "Offres d'emploi" / "Quiz" side tabs on service + blog pages. */
body:has(.hero-hub) .follow-buttons,
body:has(.blog-article) .follow-buttons,
body:has(.blog-index) .follow-buttons,
body:has(.author-hero) .follow-buttons {
  display: none !important;
}
.blog-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center; /* vertically balance the text block against the image (no top-heavy waste) */
}
.blog-hero-content { min-width: 0; }
.blog-hero-badges { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
/* Category pastille tuned for the orange hero: solid aubergine pill, white text. */
.blog-cat-badge {
  display: inline-block; padding: 6px 15px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em;
  background: #281928; color: #fff; border: none;
}
.blog-hero-title {
  font-family: "Crimson Text", Arial, serif; font-weight: 600; color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; margin: 0 0 16px;
}
.blog-hero-lede { font-size: 1.15rem; line-height: 1.55; color: rgba(255, 255, 255, 0.92); margin: 0 0 20px; max-width: 46ch; }
.blog-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; margin-bottom: 26px; }
.blog-hero-meta span { position: relative; }
.blog-hero-meta span + span::before { content: "·"; position: absolute; left: -11px; color: rgba(255, 255, 255, 0.6); }
.blog-hero .blog-cta-btn { background: #fff !important; color: #ff5f00 !important; border-color: #fff !important; }
/* Author byline (E-E-A-T) in the hero. */
.blog-byline { display: inline-flex; align-items: center; gap: 12px; margin: 2px 0 18px; text-decoration: none; }
.blog-byline-photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.65); flex-shrink: 0; }
.blog-byline-text { display: flex; flex-direction: column; line-height: 1.25; }
.blog-byline-name { color: #fff; font-weight: 600; font-size: 0.98rem; }
.blog-byline-role { color: rgba(255, 255, 255, 0.85); font-size: 0.82rem; }
.blog-byline:hover .blog-byline-name { text-decoration: underline; }
/* Hero image: flush cover panel like the service-page heroes (rounded, no floating shadow). */
.blog-hero-visual { display: flex; }
.blog-hero-visual img {
  width: 100%; height: 100%; min-height: 300px; max-height: 380px; object-fit: cover;
  border-radius: 16px; display: block; box-shadow: none;
}
.blog-cta-btn { display: inline-flex; align-items: center; }

/* FAQ accordion + "Comparez vos soumissions" band spacing */
/* ===== Redesigned blog FAQ: title on top, full-width cards, left round +/- chip ===== */
.blog-faq { padding: 40px 0 8px; }
.blog-faq .block-accordions { padding: 0; }
/* Stack (title on top, items below) instead of the theme's 2-column split. */
.blog-faq .block-accordions .grid-container { display: block; }
.blog-faq .block-accordion-infos { width: 100%; margin-bottom: 28px; }
.blog-faq .block-accordion-infos .block-title { margin-bottom: 0; }
.blog-faq .block-accordion-infos .button,
.blog-faq .block-accordion-infos .block-accordion-visuel { display: none; }
.blog-faq .block-accordion { width: 100%; }

/* Each Q/A is a bordered card. */
.blog-faq .accordion-wrapper {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.blog-faq .accordion-wrapper:first-child { border-top: 1px solid #eceef2; }
.blog-faq .accordion-wrapper h3 { margin: 0; }

.blog-faq .accordion-button {
  display: flex; align-items: center; justify-content: flex-start; gap: 16px;
  width: 100%; padding: 20px 22px;
  font-size: 1.2rem; font-weight: 600; color: #281928; text-align: left;
}
.blog-faq .accordion-button .label { order: 2; transform: none !important; }
.blog-faq .accordion-button:focus .label { transform: none !important; }

/* Left circular chip holding the +/- icon. */
.blog-faq .accordion-button .icon-wrapper {
  order: 1;
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fdece3; color: #ff5f00; border: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.blog-faq .accordion-button .icon-wrapper svg { width: 18px; height: 18px; fill: currentColor; }

/* Open state: orange-tinted card + solid orange chip. */
.blog-faq .accordion-wrapper:has(.accordion-button[aria-expanded="true"]) {
  border-color: #ffd3ba; background: #fff8f4;
}
.blog-faq .accordion-button[aria-expanded="true"] .icon-wrapper { background: #ff5f00; color: #fff; }
/* +/- swap (closed = plus, open = minus). */
.blog-faq .accordion-button .icon-wrapper .icon-minus { opacity: 0; }
.blog-faq .accordion-button[aria-expanded="true"] .icon-wrapper .icon-plus { opacity: 0; }
.blog-faq .accordion-button[aria-expanded="true"] .icon-wrapper .icon-minus { opacity: 1; }

/* Answer aligned under the question text. */
.blog-faq .accordion-panel {
  border-top: none;
  padding: 0 22px 20px 78px;
  font-size: 1rem; font-weight: 400; line-height: 1.6; color: #46555a;
}
/* ===== Service-page FAQ: same card design as the blog FAQ, applied in place =====
   The FAQ accordions block (heading "Questions fréquentes…") gets the blog card
   look: title on top, full-width stacked cards, left round +/- chip, no side
   image/CTA. Scoped to `.is-faq` so the "protections" accordions keep their
   theme 2-column layout. Section padding is left to the block itself (unlike the
   blog, which nests inside `.blog-faq`). */
.block-accordions.is-faq .grid-container { display: block; }
.block-accordions.is-faq .block-accordion-infos { width: 100%; margin-bottom: 28px; }
.block-accordions.is-faq .block-accordion-infos .button,
.block-accordions.is-faq .block-accordion-visuel { display: none; }
.block-accordions.is-faq .block-accordion { width: 100%; }
.block-accordions.is-faq .accordion-wrapper {
  background: #fff; border: 1px solid #eceef2; border-radius: 14px; margin-bottom: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.block-accordions.is-faq .accordion-wrapper h3 { margin: 0; }
.block-accordions.is-faq .accordion-button {
  display: flex; align-items: center; justify-content: flex-start; gap: 16px;
  width: 100%; padding: 20px 22px;
  font-size: 1.2rem; font-weight: 600; color: #281928; text-align: left;
}
.block-accordions.is-faq .accordion-button .label { order: 2; transform: none !important; }
.block-accordions.is-faq .accordion-button:focus .label { transform: none !important; }
.block-accordions.is-faq .accordion-button .icon-wrapper {
  order: 1; width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #fdece3; color: #ff5f00; border: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.block-accordions.is-faq .accordion-button .icon-wrapper svg { width: 18px; height: 18px; fill: currentColor; }
.block-accordions.is-faq .accordion-wrapper:has(.accordion-button[aria-expanded="true"]) {
  border-color: #ffd3ba; background: #fff8f4;
}
.block-accordions.is-faq .accordion-button[aria-expanded="true"] .icon-wrapper { background: #ff5f00; color: #fff; }
.block-accordions.is-faq .accordion-button .icon-wrapper .icon-minus { opacity: 0; }
.block-accordions.is-faq .accordion-button[aria-expanded="true"] .icon-wrapper .icon-plus { opacity: 0; }
.block-accordions.is-faq .accordion-button[aria-expanded="true"] .icon-wrapper .icon-minus { opacity: 1; }
.block-accordions.is-faq .accordion-panel {
  border-top: none; padding: 0 22px 20px 78px;
  font-size: 1rem; font-weight: 400; line-height: 1.6; color: #46555a;
}

/* Academy CTA sits in the main column → peach panel fills the text width (no full-bleed). */
.blog-academy { padding: 8px 0; }
.blog-academy .block-academy-telio { margin: 16px 0 0; }
.blog-academy .block-academy-telio .grid-container { max-width: none; width: 100%; margin: 0; }
/* Compact the block for the narrower blog column: smaller title + paragraph.
   NEVER truncate (line-clamp cut the CTA title/description mid-sentence on the
   narrow mobile column — "Prêt à comparer…", "obtenez une…"): full text always. */
.blog-academy .block-academy-telio .left-content { max-width: 54%; padding: 30px 28px; }
.blog-academy .block-academy-telio .txt-wrapper { margin-bottom: 20px; }
.blog-academy .block-academy-telio .txt-wrapper .title.no-tag { font-size: 24px; line-height: 1.2; }
.blog-academy .block-academy-telio .description { font-size: 14px; line-height: 1.5; }
/* Mobile: text column full-width (54% squished the copy into a narrow strip). */
@media (max-width: 47.99em) {
  .blog-academy .block-academy-telio .left-content { max-width: 100%; }
}

/* ---- Body layout ---- */
.blog-body { padding: 56px 0 8px; }
.blog-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.blog-body-main { min-width: 0; }
.blog-body-main .block-text { padding: 0; }
.blog-body-main .block-text .grid-container { padding: 0; max-width: none; }

/* Featured stat (prix / best) */
.blog-stat {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--blog-accent-soft); border-left: 5px solid var(--blog-accent);
  border-radius: 14px; padding: 22px 26px; margin: 0 0 32px;
}
.blog-stat-value { font-family: "Crimson Text", Arial, serif; font-weight: 700; font-size: 2.4rem; color: #281928; line-height: 1; }
.blog-stat-label { font-size: 0.95rem; color: #46555a; }

/* "L'essentiel" takeaways */
.blog-takeaways { background: #f6f7f9; border-radius: 16px; padding: 26px 28px; margin: 0 0 36px; }
.blog-takeaways-title { font-family: "Crimson Text", Arial, serif; font-weight: 600; font-size: 1.4rem; color: #281928; margin: 0 0 14px; }
.blog-takeaways ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.blog-takeaways li { position: relative; padding-left: 32px; color: #281928; line-height: 1.5; }
.blog-takeaways li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blog-accent) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.blog-article--info .blog-takeaways li::before { background-color: #b34700; }

/* Sticky side CTA card */
.blog-side { position: sticky; top: 96px; }
.blog-cta-card {
  background: #281928; color: #fff; border-radius: 20px; padding: 28px 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.blog-cta-card-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #ff9a5c; }
.blog-cta-card-title { font-family: "Crimson Text", Arial, serif; font-weight: 600; font-size: 1.5rem; margin: 0; color: #fff; }
.blog-cta-card-text { font-size: 0.95rem; line-height: 1.5; color: #d9cfd9; margin: 0 0 6px; }
.blog-cta-card .blog-cta-btn { width: 100%; justify-content: center; margin-top: 4px; }
.blog-cta-card-note { font-size: 0.78rem; color: #a99ba9; margin: 6px 0 0; text-align: center; }

/* Closing CTA band */
.blog-cta-band { background: var(--blog-accent); margin-top: 64px; }
.blog-article--info .blog-cta-band { background: #281928; }
.blog-cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px 0; flex-wrap: wrap;
}
.blog-cta-band-title { font-family: "Crimson Text", Arial, serif; font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: #fff; margin: 0 0 8px; }
.blog-cta-band-text { color: rgba(255, 255, 255, 0.9); font-size: 1.02rem; line-height: 1.5; margin: 0; max-width: 60ch; }
.blog-cta-band .blog-cta-btn { background: #fff !important; color: #281928 !important; border-color: #fff !important; flex-shrink: 0; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .blog-hero { padding-top: 116px; }
  .blog-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .blog-hero-visual { order: -1; }
  .blog-hero-visual img { max-height: 260px; }
  .blog-body-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Drop the sticky "Une question?" side CTA on mobile — it stacked into the flow
     as a big redundant card (hero CTA + academy band already cover the action). */
  .blog-side { display: none; }
  .blog-cta-band-inner { padding: 36px 0; }
}

/* ---- Prix article: intro answer block + factor callouts + inline CTA ---- */
.blog-intro-answer {
  background: var(--blog-accent-soft); border: 1px solid #ffe3d3;
  border-radius: 18px; padding: 28px 32px; margin: 0 0 36px;
}
.blog-intro-answer-stat {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #ffe0cf;
}
.blog-intro-answer-value {
  font-family: "Crimson Text", Arial, serif; font-weight: 700; font-size: 2.6rem;
  color: var(--blog-accent); line-height: 1;
}
.blog-intro-answer-label { font-size: 0.95rem; color: #46555a; }
.blog-intro-answer-text, .blog-intro-answer-text p { font-size: 1.12rem; line-height: 1.6; color: #281928; }
.blog-intro-answer-text p:last-child { margin-bottom: 0; }

/* Factor callout cards */
/* Factor callouts: stacked (one below the other), horizontal icon + content. */
.blog-factors { display: flex; flex-direction: column; gap: 18px; margin: 28px 0 40px; }
.blog-factor-card {
  background: #fff; border: 1px solid #ece7ec; border-radius: 16px; padding: 34px 36px;
  display: flex; flex-direction: row; align-items: flex-start; gap: 22px;
  box-shadow: 0 8px 30px -22px rgba(40, 25, 40, 0.4);
}
.blog-factor-icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--blog-accent-soft); color: var(--blog-accent);
}
.blog-factor-main { min-width: 0; }
.blog-factor-title {
  font-family: "Crimson Text", Arial, serif; font-weight: 600;
  font-size: 1.55rem; line-height: 1.15; color: #281928; margin: 0 0 8px;
}
.blog-factor-body, .blog-factor-body p { font-size: 0.98rem; line-height: 1.6; color: #46555a; margin: 0; }
.blog-factor-body p + p { margin-top: 0.7em; }
.blog-factor-body a { color: var(--blog-accent); font-weight: 600; }
@media (max-width: 560px) {
  .blog-factor-card { flex-direction: column; gap: 12px; padding: 24px; }
  .blog-factor-title { font-size: 1.35rem; }
}

/* Reconstructed price table (flattened in the HTML->Lexical migration). */
.blog-price-table {
  width: 100%; border-collapse: collapse; margin: 8px 0 26px; font-size: 0.98rem;
  border: 1px solid #ece7ec; border-radius: 12px; overflow: hidden;
}
.blog-price-table th {
  background: var(--blog-accent-soft); color: #281928; font-weight: 700;
  text-align: left; padding: 13px 18px; font-size: 0.95rem;
}
.blog-price-table td { padding: 13px 18px; border-top: 1px solid #f0ecf0; color: #281928; }
.blog-price-table td.num, .blog-price-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.blog-price-table tbody tr:nth-child(even) td { background: #faf9fa; }

/* Inline mid-article CTA (every 3rd H2) */
.blog-inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: #281928; border-radius: 18px; padding: 28px 32px; margin: 40px 0;
}
.blog-inline-cta-text h3 { font-family: "Crimson Text", Arial, serif; font-weight: 600; font-size: 1.4rem; color: #fff; margin: 0 0 6px; }
.blog-inline-cta-text p { color: #d9cfd9; margin: 0; font-size: 0.98rem; line-height: 1.5; max-width: 52ch; }
.blog-inline-cta .blog-cta-btn { flex-shrink: 0; }

/* Blog article: body text spans the full main column (same width as the design
   blocks — intro box, takeaways, table, factor cards). Scoped to the blog layout
   so standalone article/legal pages keep their centered readable column. */
.blog-body-main .block-text .content-wrapper { max-width: none; margin: 0; }

/* Editorial block: clean the "croche" visual — photo fills the card as a proper
   cover image (was cropped into a tiny 210/260 portrait behind a swoosh), and the
   two columns top-align. */
.block-editorial .grid-container { align-items: flex-start; }
.block-editorial .block-editorial-visual .visual {
  align-self: stretch;
  width: 100%;
  min-height: 300px;
  background-size: cover !important;
  background-position: center !important;
  /* Match the orange parent's 16px radius exactly — a larger radius (20px) exposed
     the orange parent at the bottom corners (the "orange corners" bug). */
  border-radius: 0 0 16px 16px;
}
.block-editorial .block-editorial-visual .visual img { display: none; }

/* ===================================================================
   Mobile polish — service pages felt clunky: carousels hijacked the
   vertical scroll, and decorative visual cards were 60–90% of the screen
   each, stacking one giant image after another.
   =================================================================== */
/* Carousels: capture ONLY horizontal pans so a vertical swipe scrolls the page
   (the tracks were touch-action:auto, which trapped the vertical gesture). */
.swiper-wrapper,
.block-cards-list.swiper,
.block-swiper-cards .swiper-wrapper,
.block-swiper-keynote-medias.swiper { touch-action: pan-y; }
@media (max-width: 47.99em) {
  /* Compact the oversized editorial icon card (was ~300px → the block ate 60% of
     the screen) and tighten its empty cream area. */
  .block-editorial .block-editorial-visual .visual { min-height: 120px; }
  /* Comfortable side gutter on content blocks so full-width text lines keep a
     clear margin and never sit against the edge (16px read as too tight).
     Scoped to `.block` → header/footer untouched. */
  .block .grid-container { padding-left: 24px; padding-right: 24px; }
  /* Consistent vertical rhythm between stacked blocks. */
  .block-editorial, .block-academy-telio, .block-simple-card,
  .block-swiper-keynote, .block-accordions { padding-top: 28px; padding-bottom: 28px; }
}

/* Mobile: the top-align (align-items:flex-start) above removes flex stretch, which
   made the visual column shrink to its 530px content width and overflow the screen.
   Below the theme's 48em row breakpoint, force the stacked columns full-width. */
@media (max-width: 47.99em) {
  .block-editorial .grid-container { align-items: stretch; }
  .block-editorial .block-editorial-col.visual,
  .block-editorial .block-editorial-col.text { width: 100%; }
  .block-editorial .block-editorial-visual { max-width: 100%; }
}

/* ===================================================================
   Author (E-E-A-T) pages — /auteurs/<slug>
   =================================================================== */
.author-hero { background: #ff5f00; color: #fff; padding: 132px 0 48px; }
.author-hero-inner { display: flex; align-items: center; gap: 32px; }
.author-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, 0.7); flex-shrink: 0; }
.author-eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; font-weight: 700; color: rgba(255, 255, 255, 0.85); margin: 0 0 6px; }
.author-name { font-family: "Crimson Text", Arial, serif; font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; color: #fff; margin: 0; }
.author-role { font-size: 1.1rem; color: rgba(255, 255, 255, 0.92); margin: 8px 0 0; }
/* Expertise pills in the hero (translucent white on orange). */
.author-hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.author-hero-tags li { font-size: 0.82rem; font-weight: 500; color: #fff; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; padding: 5px 13px; }
.author-links { margin: 16px 0 0; }
.author-links a { color: #fff; font-weight: 600; text-decoration: underline; }

/* About — tight, centred, no empty side column. */
.author-about { padding: 56px 0 60px; }
.author-about-inner { max-width: 760px; margin: 0 auto; }
.author-bio.content-wrapper { max-width: none; margin: 0; }
.author-bio p { font-size: 1.2rem; line-height: 1.7; color: #281928; margin: 0 0 20px; }
.author-creds { margin-top: 32px; background: #f6f7f9; border-radius: 16px; padding: 26px 28px; }
.author-creds-title { font-weight: 600; font-size: 1.05rem; color: #281928; margin: 0 0 14px; }
.author-creds ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.author-creds li { color: #46555a; line-height: 1.5; position: relative; padding-left: 22px; }
.author-creds li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: #ff5f00; }

/* Articles — the main event: distinct band, clear heading, card grid. */
.author-articles { background: #f6f7f9; border-top: 1px solid #e6e8ec; padding: 56px 0 72px; }
.author-articles-head { margin-bottom: 32px; }
.author-articles-title { font-family: "Crimson Text", Arial, serif; font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #281928; margin: 0; }
.author-articles-sub { color: #46555a; font-size: 1.02rem; margin: 8px 0 0; }
/* Card grid (the .blog-list grid normally comes from a .block-blog parent). */
.author-articles .blog-list { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0; padding: 0; }
@media (min-width: 48em) { .author-articles .blog-list { gap: 24px; grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .author-articles .blog-list { gap: 32px; grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 900px) {
  .author-hero { padding-top: 116px; }
  .author-hero-inner { flex-direction: column; align-items: flex-start; }
  .author-about { padding: 40px 0 44px; }
}

/* Sources / références (E-E-A-T YMYL citations) at the bottom of articles */
.blog-sources { padding: 8px 0 44px; }
.blog-sources-title { font-weight: 600; font-size: 1.05rem; color: #281928; margin: 0 0 12px; }
.blog-sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.blog-sources li { position: relative; padding-left: 20px; font-size: 0.95rem; }
.blog-sources li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #ff5f00; }
.blog-sources a { color: #46555a; text-decoration: underline; word-break: break-word; }
.blog-sources a:hover { color: #ff5f00; }

/* ===================================================================
   DESIGN SYSTEM — coherence pass (2026-09)
   One typographic voice + one background rule across every block, so the
   page reads as a single system instead of a stack of unrelated blocks.
   =================================================================== */

/* (Section-title font unification reverted per feedback — titles keep the theme's
   original typography.) */

/* --- Background rule: white by default, cream (#fff5f0) reserved for CTA bands ---
   Removes the random grey (#f2f4f8) that some carousel sections used. */
.block-swiper-keynote,
.block-simple-card,
.block-reasons-carousel,
.block-reviews-carousel {
  background-color: #fff !important;
}

/* --- Candidature (job application) form, shown in the soumission-modal shell --- */
/* Match the modal's title/plugin-form padding (36px sides) so fields align with
   the title, and give the submit real bottom breathing room (was 0 sides / 8px bottom). */
.candidature-form { display: flex; flex-direction: column; gap: 16px; padding: 4px 36px 32px; }
@media (max-width: 47.99em) { .candidature-form { padding: 4px 22px 28px; } }
.candidature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 47.99em) { .candidature-row { grid-template-columns: 1fr; } }
.candidature-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; color: #281928; }
.candidature-field > span { font-weight: 600; }
.candidature-field input,
.candidature-field textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  color: #281928; background: #fff; border: 1px solid #e0e4ea; border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.candidature-field input:focus,
.candidature-field textarea:focus { outline: none; border-color: #ff5f00; box-shadow: 0 0 0 3px rgba(255, 95, 0, 0.12); }
/* CV: custom file control (clean FR button + filename; native input hidden) */
.candidature-file {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 7px 10px; background: #fff; border: 1.5px solid #e0e4ea; border-radius: 12px; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.candidature-file:focus-within { border-color: #ff5f00; box-shadow: 0 0 0 3px rgba(255, 95, 0, 0.12); }
.candidature-file-btn {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 9px;
  background: #281928; color: #fff; font-weight: 600; font-size: 0.9rem; white-space: nowrap;
}
.candidature-file-name {
  flex: 1 1 auto; min-width: 0; color: #46555a; font-size: 0.92rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.candidature-file input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
/* Poste visé: clean info field with a left accent (not a flat peach band) */
.candidature-poste {
  margin: 0; font-size: 0.95rem; color: #46555a;
  background: #fff5f0; border: 1px solid #ffe1d6; border-left: 3px solid #ff5f00;
  border-radius: 10px; padding: 12px 16px;
}
.candidature-poste strong { color: #281928; font-weight: 700; }
.candidature-submit { margin-top: 4px; align-self: flex-start; }
.candidature-ok { padding: 16px 0 8px; font-size: 1.05rem; color: #281928; line-height: 1.6; }
.candidature-err { margin: 0; color: #c0392b; font-size: 0.9rem; }

/* --- Offre d'emploi : page détail (/carriere/detail-dune-offre-demploi) --- */
.offre-hero { background: #ff5f00; color: #fff; padding: 132px 0 48px; }
.offre-hero .breadcrumbs a, .offre-hero .breadcrumbs .crumb-current { color: #fff; }
.offre-hero .breadcrumbs a:hover { text-decoration: underline; }
.offre-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin: 16px 0 14px; }
.offre-hero .offre-title { color: #fff; }
.offre-meta { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-bottom: 26px; font-size: 0.92rem; }
.offre-meta span { background: rgba(255, 255, 255, 0.16); padding: 6px 14px; border-radius: 999px; }
.offre-apply { display: inline-flex; }
.offre-hero .offre-apply { background: #fff; color: #ff5f00; }
.offre-detail { padding: 56px 0; }
.offre-detail .grid-container { max-width: 860px; }
.offre-body h3 { font-size: 1.35rem; margin: 32px 0 12px; color: #281928; }
.offre-body ul { margin: 0 0 18px; padding-left: 22px; }
.offre-body li { margin-bottom: 8px; line-height: 1.6; color: #46555a; }
.offre-body p { line-height: 1.7; margin-bottom: 16px; color: #46555a; }
.offre-detail .offre-apply { margin-top: 32px; }
.offre-others { padding: 8px 0 64px; }
.offre-others .jobs-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
@media (max-width: 47.99em) { .offre-hero { padding: 104px 0 36px; } .offre-detail { padding: 40px 0; } }

/* --- Carrières : liste d'offres enrichie (icônes, méta, candidature spontanée) ---
   Le thème affiche une seule carte collée à gauche sur l'orange (design basique).
   On cadre les cartes (largeur bornée + centrées), on remplace la pastille de lieu
   par une ligne « Situé à … » avec icône, on ajoute une méta (type · date) et une
   carte « Candidature spontanée » qui ferme toujours la liste. */
.block-jobs .jobs-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  gap: 24px;
}
.block-jobs .card-job { height: 100%; }
/* Lieu : ligne icône + texte (plus la pastille serif du thème) */
.block-jobs .card-job .job-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  margin: 0 0 4px;
  background: none;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff5f00;
}
.block-jobs .job-ic { flex: 0 0 auto; }
.block-jobs .card-job .job-location .job-ic { color: #ff5f00; }
/* Méta : type d'emploi + date, empilés, icônes discrètes */
.block-jobs .job-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.block-jobs .job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.3;
  color: #46555a;
}
.block-jobs .job-meta-item .job-ic { color: #9aa3a7; }
/* Carte « Candidature spontanée » : traitement distinct (tuile pêche pointillée) */
.block-jobs .card-job-spontaneous {
  background: #fff5f0;
  box-shadow: none;
  border: 1.5px dashed #ffb088;
}
.block-jobs .card-job-spontaneous .job-location { color: #281928; }
.block-jobs .card-job-spontaneous .card-spontaneous-text {
  margin: 10px 0 0;
  color: #46555a;
  line-height: 1.6;
  font-size: 0.98rem;
}
.block-jobs .card-job-spontaneous .card-footer { border-top-color: #ffcdb5; }
.block-jobs .card-job-spontaneous .card-footer > div { width: 100%; }
.block-jobs .card-job-spontaneous .card-footer .button { width: 100%; }

/* --- imageTextCta : panneau d'offre soigné (offre Circuit électrique) --- */
.block-image-text-cta { padding: clamp(40px, 6vw, 84px) 0; }
.block-image-text-cta .itc-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  background: linear-gradient(135deg, #edf0fc 0%, #f6f7ff 55%, #fff6f1 100%);
  border: 1px solid #e7eaf6;
  border-radius: 28px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 30px 70px -40px rgba(40, 25, 40, 0.3);
}
@media (max-width: 63.99em) { .block-image-text-cta .itc-panel { grid-template-columns: 1fr; } }
.block-image-text-cta .itc-content { display: flex; flex-direction: column; gap: 16px; }
.block-image-text-cta .itc-heading {
  font-family: "Crimson Text", Arial, serif; font-weight: 600;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem); line-height: 1.12; color: #281928; margin: 0;
}
.block-image-text-cta .itc-body { color: #46555a; font-size: 1.02rem; line-height: 1.65; }
.block-image-text-cta .itc-body p { margin: 0 0 12px; }
.block-image-text-cta .itc-body p:last-child { margin-bottom: 0; }
/* The offer line (first paragraph) reads bigger; its bold bits pop in brand orange. */
.block-image-text-cta .itc-body p:first-child { font-size: 1.12rem; color: #281928; }
.block-image-text-cta .itc-body strong { color: #ff5f00; }
/* CTA: a real pill button, not a bare link. */
.block-image-text-cta .itc-cta {
  align-self: flex-start; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 10px;
  background: #ff5f00; color: #fff; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.block-image-text-cta .itc-cta:hover {
  background: #e65600; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(255, 95, 0, 0.6);
}
.block-image-text-cta .itc-cta span { transition: transform 0.16s ease; }
.block-image-text-cta .itc-cta:hover span { transform: translateX(3px); }
/* Logo on a clean white card for contrast against the tinted panel. */
.block-image-text-cta .itc-visual {
  background: #fff; border-radius: 20px; padding: clamp(24px, 3vw, 40px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 34px -20px rgba(40, 25, 40, 0.28);
}
.block-image-text-cta .itc-visual img { width: 100%; max-width: 340px; height: auto; object-fit: contain; }
