/*
 * CHARTE 2026 — refonte de la page d'accueil.
 *
 * Styles des blocs et formats « Charte 2026 » (sélectionnables dans le panneau « Styles » de l'éditeur).
 * Tout est scopé sur les classes .is-style-charte-2026* et .has-charte-* : les blocs existants
 * du site gardent leur rendu actuel.
 *
 * Source des valeurs : maquette Figma « Homepage Vecteur Plus - Redesign », page 11/09 (cadre 382:957, 1440 px).
 * Chargée uniquement sur les pages qui utilisent la charte (voir inc/init.php) et dans l'éditeur.
 */

:root {
  --charte-turquoise: var(--wp--preset--color--turquoise, #81CDC3);
  --charte-turquoise-light: var(--wp--preset--color--light-turquoise, #DEF2F0);
  --charte-red: var(--wp--preset--color--red, #FF0000);
  --charte-text: #44494E;
  --charte-title-font: "roc-grotesk", sans-serif;
  --charte-body-font: "proxima-nova", sans-serif;
  /* Flèche de renvoi « ↳ » (icône Lucide corner-down-right), utilisée en masque CSS. */
  --charte-arrow-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 10 20 15 15 20"/><path d="M4 4v7a4 4 0 0 0 4 4h12"/></svg>');
}


/* =========================================================================
   LARGEURS À LA RACINE DU CONTENU
   La mise en page du thème impose max-width: 1290px à chaque enfant direct du contenu
   (.has-block-layout > *:not(.alignfull)…, spécificité 0,5,0). Ces sélecteurs reprennent la même
   chaîne de :not() (spécificité ≥ 0,6,0) : ils reprennent la main sur la largeur.
   ========================================================================= */

.has-block-layout > .block-client-logos:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) { max-width: 1162px; }
.has-block-layout > .block-text-media.is-style-charte-2026:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) { max-width: 1163px; }
.has-block-layout > .wp-block-yoast-faq-block.is-style-charte-2026:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) { max-width: 958px; }
.has-block-layout > .wp-block-heading.is-style-charte-2026:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) { max-width: 1153px; }
.has-block-layout > .block-paragraph.is-style-charte-2026-chapo:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) { max-width: 750px; }


/* =========================================================================
   FORMATS DE TEXTE
   ========================================================================= */

/* Surligné turquoise : fond turquoise, texte blanc. La graisse suit le titre (mettre en gras si besoin). */
mark.has-charte-highlight {
  padding: 0 .18em;
  background: var(--charte-turquoise);
  color: #FFF;
  font-weight: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Gras dans un titre de la charte : Roc Grotesk 700 n'existe pas dans le kit Adobe Fonts du site
   (400 / 500 / 600) → 600, la graisse la plus proche réellement disponible. */
.wp-block-heading[class*="is-style-charte-2026"] strong,
.wp-block-heading[class*="is-style-charte-2026"] b {
  font-weight: 600;
}

/* Sur une section à fond turquoise, le surlignage s'inverse : fond blanc, texte turquoise. */
.block-section-background.is-style-charte-2026 mark.has-charte-highlight {
  background: #FFF;
  color: var(--charte-turquoise);
}

/* Flèche de renvoi rouge « ↳ » devant le texte. */
.has-charte-arrow::before {
  content: "";
  display: inline-block;
  width: .47em;
  height: .47em;
  margin-right: .14em;
  vertical-align: .02em;
  background-color: var(--charte-red);
  -webkit-mask: var(--charte-arrow-icon) center / contain no-repeat;
  mask: var(--charte-arrow-icon) center / contain no-repeat;
}


/* =========================================================================
   TITRES
   ========================================================================= */

.wp-block-heading.is-style-charte-2026-hero,
.wp-block-heading.is-style-charte-2026,
.wp-block-heading.is-style-charte-2026-offre,
.wp-block-heading.is-style-charte-2026-carte {
  color: #000;
}

/* Les titres de la charte n'ont pas la barre verte décorative des titres du site. */
.wp-block-heading.is-style-charte-2026-hero::before,
.wp-block-heading.is-style-charte-2026::before,
.wp-block-heading.is-style-charte-2026-offre::before,
.wp-block-heading.is-style-charte-2026-carte::before {
  content: none;
  display: none;
}

/* Titre du bandeau : Roc Grotesk 500, 64/55, −3 px. */
.wp-block-heading.is-style-charte-2026-hero {
  margin: 0;
  font-family: var(--charte-title-font);
  font-size: 64px;
  font-weight: 500;
  line-height: 55px;
  letter-spacing: -3px;
}

/* La ligne « ↳ des marchés publics & privés » est en graisse 400. */
.wp-block-heading.is-style-charte-2026-hero .has-charte-arrow {
  display: inline-block;
  margin-top: 11px;
  font-weight: 400;
}

.wp-block-heading.is-style-charte-2026-hero .has-charte-arrow::before {
  margin-right: 9px;
}

/* Titre de section : Roc Grotesk 500, 40 px, centré ; la partie surlignée est en 700. */
.wp-block-heading.is-style-charte-2026 {
  max-width: 1153px;
  margin: 0 auto 24px;
  font-family: var(--charte-title-font);
  font-size: 40px;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: 0;
  text-align: center;
}

/* Titre de la FAQ (titre de section suivi du chapô puis de la FAQ) : 48 px. */
.wp-block-heading.is-style-charte-2026:has(+ .is-style-charte-2026-chapo + .wp-block-yoast-faq-block) {
  color: #101828;
  font-size: 48px;
  line-height: 48px;
}

/* Titre d'offre (lignes texte + visuel) : Metropolis 600, 30/31, −1 px. */
.wp-block-heading.is-style-charte-2026-offre {
  margin: 0 0 18px;
  font-family: "Metropolis", var(--charte-title-font);
  font-size: 30px;
  font-weight: 600;
  line-height: 31px;
  letter-spacing: -1px;
}

/* Titre de carte (section Pourquoi) : Roc Grotesk 500, 24 px, −1 px. */
.wp-block-heading.is-style-charte-2026-carte {
  margin: 0;
  font-family: var(--charte-title-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1px;
}


/* =========================================================================
   PARAGRAPHES
   ========================================================================= */

/* Sur-titre « ■ Notre offre » : Roc Grotesk 500, 20 px, gris, centré, carré de 12 px. */
.is-style-charte-2026-surtitre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 4px;
  font-family: var(--charte-title-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 36px;
  color: #8D8D8D;
  text-align: center;
}

.is-style-charte-2026-surtitre::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: currentColor;
}

/* Chapô centré : Roc Grotesk 400, 16/22, gris. */
.is-style-charte-2026-chapo {
  max-width: 750px;
  margin: 0 auto 20px;
  font-family: var(--charte-title-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #777;
  text-align: center;
}

/* Légende grise sous un titre de carte : Roc Grotesk 400, 15/20, gris assombri (audit CRO). */
.is-style-charte-2026-legende {
  margin: 2px 0 0;
  font-family: var(--charte-title-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: #595959;
}

/* Mention « ↳ Réponse sous 24 h » sous un bouton : Roc Grotesk 400, 14 px, gris foncé (audit CRO). */
.is-style-charte-2026-note {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 1px 0 0;
  font-family: var(--charte-title-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 24.8px;
  letter-spacing: -.44px;
  color: var(--charte-red);
}

/* Note centrée : le bloc est en flex, l'alignement du texte ne suffit pas. */
.is-style-charte-2026-note.has-text-align-center {
  justify-content: center;
}

/* La flèche se cale sur la première ligne, pas sur le milieu d'une mention à deux lignes. */
.is-style-charte-2026-note::before {
  margin-top: .28em;
}

/* Note collée au bouton qu'elle commente. */
.wp-block-buttons:has(+ .is-style-charte-2026-note) {
  margin-bottom: 8px;
}

.is-style-charte-2026-note::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: var(--charte-arrow-icon) center / 8px 8px no-repeat;
  mask: var(--charte-arrow-icon) center / 8px 8px no-repeat;
}

/* Séparateur des listes de mots-clés : barre allégée (audit CRO). Rester en inline, un
   inline-block ouvrirait un point de coupure et laisserait la barre en fin de ligne. */
.charte-sep {
  margin: 0 .12em;
  font-weight: 400;
  opacity: .35;
}

/* Un séparateur suivi d'un retour à la ligne forcé pendrait en fin de ligne : c'est le <br> qui sépare. */
.charte-sep:has(+ br) {
  display: none;
}


/* =========================================================================
   BOUTONS ET IMAGES
   ========================================================================= */

/* Bouton rouge de la charte : 38 px de haut, Roc Grotesk 500 15 px, sans flèche. */
.wp-block-button.is-style-charte-2026 .wp-block-button__link {
  --custom-theme-button-bg-color: var(--charte-red);
  --custom-theme-button-text-color: #FFF;
  --custom-theme-button-text-color-alt: var(--charte-red);
  justify-content: center;
  gap: 10px;
  min-width: 203px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 3px;
  font-family: var(--charte-title-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 14.8px;
  letter-spacing: .25px;
  text-transform: none;
}

.wp-block-button.is-style-charte-2026 .wp-block-button__link .icon-arrow {
  display: none;
}

.wp-block-buttons:has(> .wp-block-button.is-style-charte-2026) {
  gap: 0;
  margin: 0;
}

/* Pastille icône : cercle turquoise à 20 %, icône de 20 à 24 px. */
.wp-block-image.is-style-charte-2026-pastille {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  margin: 0 0 24px;
  border-radius: 50%;
  background: rgba(129, 205, 195, .2);
}

.wp-block-image.is-style-charte-2026-pastille img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}


/* =========================================================================
   HERO — bloc « Accueil / Recherche d'appel d'offres », style Charte 2026
   ========================================================================= */

.has-block-layout > .block-home-tender-search.is-style-charte-2026.has-global-padding,
.block-home-tender-search.is-style-charte-2026 {
  padding: 14px 15px 15px;
  text-align: left;
  margin-bottom: 29px;
  background: none;
  overflow: visible;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 653px;
  padding: 0 10px 10px 129px;
  border-radius: 45px;
  overflow: hidden;
  isolation: isolate;
  background: #E7EFF3;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__background,
.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__background {
  z-index: -1;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__background img {
  object-fit: cover;
  object-position: center;
}

/* Voile bleu clair en diagonale (repris du dernier remplissage du calque Figma). */
.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(111deg, #CCDFE9 21%, rgba(204, 223, 233, 0) 138%);
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__inner {
  display: flex;
  flex-direction: column;
  gap: 52px;
  max-width: 1271px;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__title > * {
  margin: 0;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__title > * + * {
  margin-top: 11px;
}

/* Panneau de recherche vitré. Audit CRO : élargi de 746 à 860 px pour que les libellés des
   champs tiennent en entier, et fond rendu plus opaque (51 % → 78 %) au-dessus de la photo. */
.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: 860px;
  max-width: 100%;
  padding: 15px 30px 11px;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 14.8px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(22.7px);
  backdrop-filter: blur(22.7px);
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__panel-heading {
  width: 100%;
  text-align: center;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__panel-title,
.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__panel-subtitle {
  margin: 0;
  font-family: var(--charte-title-font);
  line-height: 1.25;
  color: #1D293D;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__panel-title {
  font-size: 23px; /* 20 px en maquette, remonté sur retour Hugo du 24/09 */
  font-weight: 500;
}

/* Texte en dégradé #1D293D → #45556C (maquette), couleur unie en repli. */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .block-home-tender-search.is-style-charte-2026 .block-home-tender-search__panel-title,
  .block-home-tender-search.is-style-charte-2026 .block-home-tender-search__panel-subtitle {
    background: linear-gradient(90deg, #1D293D 0%, #45556C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__panel-subtitle {
  margin-top: -1px;
  font-size: 18px;
  font-weight: 400;
  color: #45556C;
}

/* Réplique inerte du formulaire dans l'éditeur : mêmes styles que sur le site, sans interaction. */
.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__form-preview {
  pointer-events: none;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__form-preview input:disabled,
.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__form-preview button:disabled {
  opacity: 1;
  cursor: default;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__form-preview .select2-container {
  display: block;
  width: 100%;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__form-preview .select2-selection--multiple {
  display: flex;
  align-items: center;
}

/* L'éditeur ne charge pas 04-common.css : on reprend ici le masquage des cases natives et la coche. */
.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__form-preview .filter-checkboxes input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__form-preview .filter-checkboxes label::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__form-preview .filter-checkboxes input:checked + label::before {
  content: "✓";
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__form-preview .search-engine__filters__actions button {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: var(--charte-red);
  color: #FFF;
}

/* --- Formulaire --- */
.block-home-tender-search.is-style-charte-2026 .search-engine__filters {
  width: 100%;
  margin: 0;
}

.block-home-tender-search.is-style-charte-2026 .search-engine__filters-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px 15px;
  padding: 0;
  background: none;
}

.block-home-tender-search.is-style-charte-2026 .search-engine__filters-list > .filter:first-child,
.block-home-tender-search.is-style-charte-2026 .search-engine__filters__actions {
  grid-column: 1 / -1;
  justify-self: center;
}

/* Cases « Appels d'offres » / « Projets privés » en pastilles. */
.block-home-tender-search.is-style-charte-2026 .filter-checkboxes {
  display: flex;
  gap: 6px;
}

.block-home-tender-search.is-style-charte-2026 .filter-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 166px;
  height: 37px;
  padding: 6px 10px;
  border: .8px solid rgba(148, 163, 184, .45);
  border-radius: 6px;
  background: rgba(255, 255, 255, .55);
  font-family: "Outfit", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: .12px;
  color: #64748B;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.block-home-tender-search.is-style-charte-2026 .filter-checkboxes label::before {
  width: 14px;
  height: 14px;
  margin: 0;
  border: .8px solid #90A1B9;
  border-radius: 3px;
  background: #FFF;
  font-size: 10px;
  line-height: 1;
  color: #FFF;
}

.block-home-tender-search.is-style-charte-2026 .filter-checkboxes input:checked + label {
  border-color: rgba(0, 187, 167, .35);
  background: rgba(0, 187, 167, .08);
  color: #1D293D;
}

.block-home-tender-search.is-style-charte-2026 .filter-checkboxes input:checked + label::before {
  border-color: transparent;
  background: linear-gradient(135deg, #81CDC3 0%, #00BBA7 100%);
  box-shadow: 0 1px 4px rgba(0, 187, 167, .25);
}

/* Pastille qu'on ne peut pas décocher (au moins un type doit rester sélectionné) : le curseur
   et l'infobulle disent pourquoi le clic ne change rien. */
.block-home-tender-search.is-style-charte-2026 .filter-checkboxes label.is-verrouillee {
  cursor: default;
}

.block-home-tender-search.is-style-charte-2026 .filter-checkboxes input:focus-visible + label {
  outline: 2px solid #00BBA7;
  outline-offset: 2px;
}

/* Champs : 37 px, bordure #E2E8F0, texte 11 px. */
.block-home-tender-search.is-style-charte-2026 .filter {
  position: relative;
  min-width: 0;
}

.block-home-tender-search.is-style-charte-2026 .filter--search-terms input[type="search"],
.block-home-tender-search.is-style-charte-2026 .select2-container .select2-selection--multiple {
  box-sizing: border-box;
  height: 37px !important;
  min-height: 37px !important;
  /* Audit CRO : marges intérieures resserrées pour rendre de la place aux libellés. */
  padding: 0 26px 0 30px !important;
  border: 1.23px solid #E2E8F0;
  border-radius: 6px;
  background: #FFF;
  font-family: var(--charte-body-font);
  font-size: 14px;
  line-height: 16px;
  color: #0A0A0A;
}

.block-home-tender-search.is-style-charte-2026 .filter--search-terms input[type="search"]::placeholder,
.block-home-tender-search.is-style-charte-2026 .select2-container .select2-search__field::placeholder {
  color: rgba(10, 10, 10, .5);
}

/* Texte indicatif sur une seule ligne, tronqué si le champ est étroit. */
.block-home-tender-search.is-style-charte-2026 .select2-container .select2-search--inline .select2-search__field {
  width: 100% !important;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-home-tender-search.is-style-charte-2026 .select2-container .select2-selection--multiple .select2-selection__choice {
  padding: 3px 8px;
  font-size: 14px;
}

.block-home-tender-search.is-style-charte-2026 .select2-container .select2-selection--multiple .select2-selection__rendered {
  gap: 4px;
  overflow: hidden;
  flex-wrap: nowrap;
}

/* Loupe du champ mots-clés, calée à gauche comme les icônes des listes. */
.block-home-tender-search.is-style-charte-2026 .filter--search-terms .icon-magnifying-glass {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  fill: #90A1B9;
  pointer-events: none;
}

/* Icônes des listes déroulantes (bâtiment, repère) posées en CSS, sans toucher au formulaire. */
.block-home-tender-search.is-style-charte-2026 .filter:nth-child(3)::before,
.block-home-tender-search.is-style-charte-2026 .filter:nth-child(4)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 13px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background-color: #90A1B9;
  pointer-events: none;
}

.block-home-tender-search.is-style-charte-2026 .filter:nth-child(3)::before {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="2" width="16" height="20" rx="2"/><path d="M9 22v-4h6v4M8 6h.01M16 6h.01M12 6h.01M12 10h.01M12 14h.01M16 10h.01M16 14h.01M8 10h.01M8 14h.01"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="2" width="16" height="20" rx="2"/><path d="M9 22v-4h6v4M8 6h.01M16 6h.01M12 6h.01M12 10h.01M12 14h.01M16 10h.01M16 14h.01M8 10h.01M8 14h.01"/></svg>') center / contain no-repeat;
}

.block-home-tender-search.is-style-charte-2026 .filter:nth-child(4)::before {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"/><circle cx="12" cy="10" r="3"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"/><circle cx="12" cy="10" r="3"/></svg>') center / contain no-repeat;
}

.block-home-tender-search.is-style-charte-2026 .select2-container .icon-caret {
  width: 10px;
  height: auto;
  fill: #90A1B9;
  color: #90A1B9;
}

/* Bouton + mention « ↳ Sans engagement » alignée à gauche sous le bouton. */
.block-home-tender-search.is-style-charte-2026 .search-engine__filters__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin-top: 3px;
}

.block-home-tender-search.is-style-charte-2026 .search-engine__filters__actions button[type="submit"] {
  --custom-theme-button-bg-color: var(--charte-red);
  --custom-theme-button-text-color: #FFF;
  --custom-theme-button-text-color-alt: var(--charte-red);
  justify-content: center;
  gap: 10px;
  width: 208px;
  height: 38px;
  padding: 3px 10px 0;
  border-radius: 3px;
  font-family: var(--charte-title-font);
  font-size: 14px;
  /* Maquette en 700 : absente du kit Adobe Fonts du site, 600 retenu. */
  font-weight: 600;
  line-height: 14.8px;
  letter-spacing: .25px;
  text-transform: none;
}

.block-home-tender-search.is-style-charte-2026 .search-engine__filters__actions button[type="submit"] .icon-magnifying-glass {
  width: 12px;
  height: 12px;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__note {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-family: var(--charte-title-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 24.8px;
  letter-spacing: -.44px;
  color: var(--charte-red);
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__note::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background-color: var(--charte-red);
  -webkit-mask: var(--charte-arrow-icon) center / 8px 8px no-repeat;
  mask: var(--charte-arrow-icon) center / 8px 8px no-repeat;
}

/* Espace membre (utilisateur connecté) : lisible sur la photo. */
.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__welcome {
  width: auto;
  margin: 0;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__user-actions {
  margin: -40px 0 0;
}

/* Sous 768 px le « Bonjour » passe de 45 à 30 px : la remontée de 40 px le
   recouvrait. On la retire, la ligne se pose simplement en dessous. */
@media screen and (max-width: 767px) {
  .block-home-tender-search.is-style-charte-2026 .block-home-tender-search__welcome {
    margin-bottom: 10px;
  }

  .block-home-tender-search.is-style-charte-2026 .block-home-tender-search__user-actions {
    margin-top: 0;
  }
}


/* =========================================================================
   LIGNES « OFFRE » — bloc « Texte + visuel », style Charte 2026
   ========================================================================= */

.block-text-media.is-style-charte-2026 {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 64px;
  text-align: left;
  max-width: 1163px;
  margin: 0 auto 130px;
}

/* Maquette : 126 px entre le titre de section et la première ligne d'offre
   (les marges verticales se chevauchent : la plus grande l'emporte). */
.wp-block-heading.is-style-charte-2026 + .block-text-media.is-style-charte-2026 {
  margin-top: 126px;
}

/* Maquette : 55 px entre le bas des logos et le sur-titre suivant. Le panneau de la
   bande ajoute ses 16 px, la marge est calée pour arriver au même espace perçu. */
.block-client-logos + .is-style-charte-2026-surtitre {
  margin-top: 24px;
}

/* Texte à droite = visuel à gauche (lignes 1 et 3) ; sinon visuel à droite (ligne 2). */
.block-text-media.is-style-charte-2026:not(.block-text-media--text-on-right) {
  flex-direction: row;
  justify-content: flex-start;
  gap: 54px;
  padding: 0 0 0 43px;
}

.block-text-media.is-style-charte-2026:not(.block-text-media--text-on-right) .block-text-media__media {
  margin-right: -17px;
}

/* Le texte de ces lignes démarre 17 px plus bas (maquette) : on le reprend sur la marge basse
   pour garder le même pas vertical entre toutes les lignes d'offre. */
.block-text-media.is-style-charte-2026:not(.block-text-media--text-on-right) {
  margin-bottom: 108px;
}

.block-text-media.is-style-charte-2026 .block-text-media__content {
  flex: 0 1 575px;
  min-width: 0;
  max-width: none;
  padding: 0;
}

.block-text-media.is-style-charte-2026:not(.block-text-media--text-on-right) .block-text-media__content {
  flex-basis: 560px;
  padding-top: 17px;
}

.block-text-media.is-style-charte-2026 .block-text-media__media {
  position: relative;
  flex: 0 0 523px;
  max-width: 523px;
  margin: 0;
}

/* Carte turquoise décalée derrière le visuel. */
.block-text-media.is-style-charte-2026 .block-text-media__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 14px;
  right: -16px;
  bottom: -17px;
  left: 22px;
  border-radius: 14px;
  background: linear-gradient(0deg, #ADDED8 0%, #FFF 100%);
}

.block-text-media.is-style-charte-2026 .block-text-media__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 593 / 351;
  object-fit: cover;
  border: 1px solid #E6E6E6;
  border-radius: 14px;
  background: linear-gradient(180deg, #E1E8ED 0%, #F7F9FC 100%);
}

/* Le style « Centrés » reprend le visuel de la charte (carte turquoise, bordure,
   format) tout en gardant son alignement vertical au centre. */
.block-text-media.is-style-centered .block-text-media__media {
  position: relative;
}

.block-text-media.is-style-centered .block-text-media__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 14px;
  right: -16px;
  bottom: -17px;
  left: 22px;
  border-radius: 14px;
  background: linear-gradient(0deg, #ADDED8 0%, #FFF 100%);
}

.block-text-media.is-style-centered .block-text-media__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 593 / 351;
  object-fit: cover;
  border: 1px solid #E6E6E6;
  border-radius: 14px;
  background: linear-gradient(180deg, #E1E8ED 0%, #F7F9FC 100%);
}

.block-text-media.is-style-charte-2026 .block-paragraph:not([class*="is-style-charte-2026"]) {
  margin: 0 0 18px;
  font-family: "Inter", var(--charte-body-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 24.8px;
  letter-spacing: -.44px;
  color: var(--charte-text);
}

.block-text-media.is-style-charte-2026 .block-paragraph:not([class*="is-style-charte-2026"]) + .block-paragraph:not([class*="is-style-charte-2026"]) {
  margin-top: 24px;
}

.block-text-media.is-style-charte-2026 .wp-block-buttons {
  margin: 0;
}

/* La mention sous le bouton respire, comme sur la maquette : le « margin: 0 »
   ci-dessus annulait les 8 px prévus pour ce cas. */
.block-text-media.is-style-charte-2026 .wp-block-buttons:has(+ .is-style-charte-2026-note) {
  margin-bottom: 8px;
}


/* =========================================================================
   SECTION « POURQUOI » — bloc « Section avec fond », style Charte 2026
   ========================================================================= */

.block-section-background.is-style-charte-2026 {
  box-sizing: border-box;
  /* Retour 20/11 : la section s'aligne sur la largeur de contenu de la page
     (elle débordait de 27 px de chaque côté, le bloc citation ne tombait pas en face). */
  width: auto;
  max-width: var(--wp--style--global--content-size, 1290px);
  /* Retour client 29/09 : bloc moins imposant (marges intérieures réduites). */
  margin: 64px auto 56px;
  padding: 44px 40px 40px;
  border-radius: 45px;
  background: var(--charte-turquoise);
}

.block-section-background.is-style-charte-2026::before,
.block-section-background.is-style-charte-2026::after {
  content: none;
}

.block-section-background.is-style-charte-2026 .block-section-background__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1163px;
  margin: 0 auto;
  padding: 0;
}

.block-section-background.is-style-charte-2026 .is-style-charte-2026-surtitre {
  margin-bottom: 24px;
  color: #FFF;
}

.block-section-background.is-style-charte-2026 .wp-block-heading.is-style-charte-2026 {
  margin-bottom: 24px;
  line-height: 42px;
}

/* Chapô sur fond turquoise : blanc, gras.
   Maquette en Proxima Nova 800 : le kit Adobe Fonts du site s'arrête à 700, graisse retenue. */
/* Chapô sur fond menthe : encre sombre, le blanc tombait à 1,8:1 de contraste (audit CRO). */
.block-section-background.is-style-charte-2026 .is-style-charte-2026-chapo {
  margin-bottom: 24px;
  font-family: var(--charte-body-font);
  font-weight: 700;
  color: #083A33;
}

.block-section-background.is-style-charte-2026 .wp-block-buttons {
  justify-content: center;
  margin-top: 25px;
}


/* =========================================================================
   CARTES — bloc « Colonnes », style Charte 2026 (section Pourquoi)
   ========================================================================= */

.block-columns[class*="is-style-charte-2026"] {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 11px 14px 19px 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .45);
}

.block-columns[class*="is-style-charte-2026"] .block-columns__columns {
  display: grid;
  grid-template-columns: 521fr 290fr 290fr;
  gap: 17px;
  margin: 0;
}

.block-columns[class*="is-style-charte-2026"] .block-column {
  text-align: left;
  box-sizing: border-box;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 24px 12px 24px 26px;
  border: 0;
  border-radius: 17px;
  background: #FFF;
}

.block-columns[class*="is-style-charte-2026"] .block-column__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

/* Icône de carte : carré turquoise arrondi 43 × 41, pictogramme blanc. */
.block-columns[class*="is-style-charte-2026"] .block-column .wp-block-image:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 41px;
  margin: 0 0 29px;
  border-radius: 5px;
  background: var(--charte-turquoise);
}

.block-columns[class*="is-style-charte-2026"] .block-column .wp-block-image:first-child img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-legende {
  margin-bottom: 18px;
}

.block-columns[class*="is-style-charte-2026"] .block-column .block-paragraph:not([class*="is-style-charte-2026"]) {
  margin: 0 0 12px;
  font-family: var(--charte-body-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: -.44px;
  color: var(--charte-text);
}

/* Carte avec visuel : texte à gauche, photo à droite (dernier bloc image de la carte). */
.block-columns[class*="is-style-charte-2026"] .block-column.is-style-charte-2026-visuel {
  padding: 24px 14px 14px 26px;
}

.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel .block-column__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 207px;
  /* la gouttière est déclarée plus bas, avec les corrections du 23/09 */
  grid-auto-rows: min-content;
  column-gap: 0;
}

/* Retour recette 23/09 : le texte ne doit jamais toucher la photo. Une gouttière de 18 px sépare
   les deux colonnes, et la légende ne déborde plus sur la photo (elle avait -14 px de marge). */
.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel .block-column__content {
  column-gap: 18px;
}

.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel .block-column__content > .block-paragraph:not([class*="is-style-charte-2026"]) {
  padding-right: 16px;
}

.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel .is-style-charte-2026-legende {
  margin-right: 0;
  padding-right: 16px;
}

.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel .block-column__content > * {
  grid-column: 1;
}



.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel .block-column__content > .wp-block-image:last-child {
  position: relative;
  grid-column: 2;
  /* Retour Hugo 24/09 : la photo s'étire sur toute la hauteur de la carte, sinon un écart
     apparaît en dessous quand le texte est plus long que les 320 px d'origine.
     (« span 20 » couvre toutes les lignes du contenu, « stretch » fait le reste.) */
  grid-row: 1 / span 20;
  align-self: stretch;
  width: 207px;
  height: auto;
  min-height: 320px;
  margin: -10px 0 0;
  border-radius: 8px;
  overflow: hidden;
  background: none;
}

.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel .block-column__content > .wp-block-image:last-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bouton flèche rouge en bas à droite de la photo (le lien est celui de l'image). */
.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel .block-column__content > .wp-block-image.is-style-charte-2026-cta:last-child a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 43px;
  height: 41px;
  border-radius: 5px;
  background: var(--charte-red) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 12H3"/><path d="m11 18 6-6-6-6"/><path d="M21 5v14"/></svg>') center / 22px 22px no-repeat;
  transition: transform .2s ease;
}

.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel .block-column__content > .wp-block-image.is-style-charte-2026-cta:last-child a:hover::after,
.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel .block-column__content > .wp-block-image.is-style-charte-2026-cta:last-child a:focus-visible::after {
  transform: translateX(3px);
}


/* =========================================================================
   FAQ — bloc « FAQ » de Yoast (données structurées FAQPage), style Charte 2026
   ========================================================================= */

.wp-block-yoast-faq-block.is-style-charte-2026 {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 958px;
  margin: 20px auto 99px;
}

.wp-block-yoast-faq-block.is-style-charte-2026 .schema-faq-section {
  box-sizing: border-box;
  padding: 19px 27px 18px;
  border: .94px solid #E5E7EB;
  border-radius: 26px;
  background: #FFF;
}

.wp-block-yoast-faq-block.is-style-charte-2026 .schema-faq-question {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 41px;
  padding: 0 34px 0 0;
  border: 0;
  font-family: var(--charte-title-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -.45px;
  color: #2C3E50;
}

/* Pastille loupe à gauche de la question (fusée remplacée le 29/09). */
.wp-block-yoast-faq-block.is-style-charte-2026 .schema-faq-question::before {
  content: "";
  flex: 0 0 41px;
  width: 41px;
  height: 41px;
  border-radius: 15px;
  background: var(--charte-turquoise-light) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2381CDC3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.35-4.35"/></svg>') center / 19px 19px no-repeat;
}

.wp-block-yoast-faq-block.is-style-charte-2026 .schema-faq-question[aria-expanded="true"]::before {
  background-color: rgba(129, 205, 195, .26);
}

/* Chevron à droite (remplace la flèche du thème). */
.wp-block-yoast-faq-block.is-style-charte-2026 .schema-faq-question .icon-arrow {
  display: none;
}

.wp-block-yoast-faq-block.is-style-charte-2026 .schema-faq-question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23717182" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>') center / contain no-repeat;
  transition: transform .2s ease;
}

.wp-block-yoast-faq-block.is-style-charte-2026 .schema-faq-question[aria-expanded="true"]::after {
  transform: scaleY(-1);
}

.wp-block-yoast-faq-block.is-style-charte-2026 .schema-faq-answer {
  margin: 0;
  padding: 0 0 0 56px;
  background: none;
  font-family: var(--charte-body-font);
  font-size: 13.1px;
  line-height: 21.3px;
  color: #4A5565;
}

/* Espace sous la réponse ouverte : en marge (et non en padding), car le script du thème fige
   un max-height en ligne calculé au chargement, qui couperait un padding ajouté ensuite. */
.wp-block-yoast-faq-block.is-style-charte-2026 .schema-faq-answer[aria-hidden="false"] {
  margin-bottom: 15px;
}


/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media screen and (max-width: 1279px) {
  .block-home-tender-search.is-style-charte-2026 .block-home-tender-search__hero {
    padding-left: 64px;
    padding-right: 32px;
  }

  .wp-block-heading.is-style-charte-2026-hero {
    font-size: 52px;
    line-height: 48px;
    letter-spacing: -2px;
  }

  .block-text-media.is-style-charte-2026,
  .block-text-media.is-style-charte-2026:not(.block-text-media--text-on-right) {
    gap: 48px;
    padding-left: 0;
  }

  .block-text-media.is-style-charte-2026 .block-text-media__media {
    flex-basis: 45%;
  }

  .block-columns[class*="is-style-charte-2026"] .block-columns__columns {
    grid-template-columns: 1fr 1fr;
  }

  .block-columns[class*="is-style-charte-2026"] .block-column.is-style-charte-2026-visuel {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 991px) {
  .block-text-media.is-style-charte-2026,
  .block-text-media.is-style-charte-2026:not(.block-text-media--text-on-right) {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    margin-bottom: 96px;
  }

  .block-text-media.is-style-charte-2026 .block-text-media__media {
    order: -1;
    flex-basis: auto;
    width: calc(100% - 22px);
    max-width: 523px;
  }

  .block-text-media.is-style-charte-2026 .block-text-media__content,
  .block-text-media.is-style-charte-2026:not(.block-text-media--text-on-right) .block-text-media__content {
    flex-basis: auto;
    padding-top: 0;
  }

  /* Tablette : les grands écarts du bureau (126 px) laissent trop de blanc. */
  .wp-block-heading.is-style-charte-2026 + .block-text-media.is-style-charte-2026 {
    margin-top: 64px;
  }

  .block-client-logos + .is-style-charte-2026-surtitre {
    margin-top: 32px;
  }

  /* Les retours à la ligne de la maquette (calés sur 575 px) cassent le texte sur écran étroit. */
  .block-text-media.is-style-charte-2026 .block-paragraph br,
  .block-text-media.is-style-charte-2026 .wp-block-heading br {
    display: none;
  }

  /* Le <br> masqué ne sépare plus rien : le séparateur reprend son rôle. */
  .block-text-media.is-style-charte-2026 .block-paragraph .charte-sep:has(+ br) {
    display: inline;
  }
}

@media screen and (max-width: 767px) {
  .block-home-tender-search.is-style-charte-2026 {
    padding: 8px;
  }

  .block-home-tender-search.is-style-charte-2026 .block-home-tender-search__hero {
    min-height: 0;
    padding: 40px 16px 20px;
    border-radius: 28px;
  }

  .block-home-tender-search.is-style-charte-2026 .block-home-tender-search__inner {
    gap: 28px;
  }

  .wp-block-heading.is-style-charte-2026-hero {
    font-size: 36px;
    line-height: 36px;
    letter-spacing: -1.5px;
  }

  .block-home-tender-search.is-style-charte-2026 .block-home-tender-search__panel {
    padding: 14px;
  }

  .block-home-tender-search.is-style-charte-2026 .search-engine__filters-list {
    grid-template-columns: 1fr;
  }

  .block-home-tender-search.is-style-charte-2026 .filter-checkboxes label {
    width: auto;
    flex: 1 1 0;
  }

  /* Audit CRO : à 30 px le titre isolait « pour » et coupait le surlignage en morceaux. */
  .wp-block-heading.is-style-charte-2026,
  .wp-block-heading.is-style-charte-2026:has(+ .is-style-charte-2026-chapo + .wp-block-yoast-faq-block) {
    font-size: 24px;
    line-height: 30px;
    text-wrap: balance;
  }

  .is-style-charte-2026-surtitre {
    font-size: 16px;
  }

  .wp-block-heading.is-style-charte-2026-offre {
    font-size: 20px;
    line-height: 26px;
  }

  .block-text-media.is-style-charte-2026 .block-paragraph:not([class*="is-style-charte-2026"]) {
    font-size: 16px;
    line-height: 23px;
  }

  /* Les grands espacements du bureau laissent trop de blanc sur téléphone. */
  .wp-block-heading.is-style-charte-2026 + .block-text-media.is-style-charte-2026 {
    margin-top: 48px;
  }

  .block-client-logos + .is-style-charte-2026-surtitre {
    margin-top: 24px;
  }

  /* Audit CRO : rythme vertical resserré (96 et 99 px de blanc entre les blocs). */
  .block-text-media.is-style-charte-2026 {
    margin-bottom: 56px;
  }

  .wp-block-yoast-faq-block.is-style-charte-2026 {
    margin-bottom: 56px;
  }

  .block-section-background.is-style-charte-2026 {
    margin-top: 48px;
  }

  /* Audit CRO : le visuel d'offre occupait près d'un tiers de l'écran.
     Le style « Centrés » suit le même format que la charte, ici comme sur grand écran. */
  .block-text-media.is-style-charte-2026 .block-text-media__media img,
  .block-text-media.is-style-centered .block-text-media__media img {
    aspect-ratio: 2 / 1;
  }

  /* Sur téléphone aussi, la section reste à la largeur de contenu de la page. */
  .block-section-background.is-style-charte-2026 {
    margin: 72px auto 32px;
    padding: 48px 12px;
    border-radius: 28px;
  }

  .block-columns[class*="is-style-charte-2026"] .block-columns__columns {
    grid-template-columns: 1fr;
  }

  .block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel .block-column__content {
    grid-template-columns: 1fr;
  }

  .block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel .block-column__content > .wp-block-image:last-child {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    height: 240px;
    margin-top: 12px;
  }

  .wp-block-yoast-faq-block.is-style-charte-2026 .schema-faq-section {
    padding: 14px 16px;
    border-radius: 20px;
  }

  .wp-block-yoast-faq-block.is-style-charte-2026 .schema-faq-question {
    font-size: 17px;
    line-height: 24px;
  }

  .wp-block-yoast-faq-block.is-style-charte-2026 .schema-faq-answer {
    padding-left: 0;
  }
}


/* =========================================================================
   RECETTE 18/09 — HERO : titre animé (réf. https://joy-error-33855731.figma.site/)
   « Trouvez – Anticipez – Remportez » s'écrit mot après mot (dévoilement de gauche à droite),
   reste affiché, puis glisse vers la gauche en s'effaçant ; boucle de 5 s.
   Découpage en <span> fait par blocks/block-home-tender-search/block-home-tender-search.js.
   ========================================================================= */

/* Le titre s'écrit une seule fois puis reste affiché (retour client 29/09 : plus de boucle). */
.charte-headline {
  display: inline-block;
}

.charte-headline__part {
  display: inline-block;
  animation-duration: 3s;
  animation-iteration-count: 1;
  animation-fill-mode: both;
}

/* Le découpage en blocs en ligne supprime l'espace qui suit le séparateur : on le rétablit.
   (Les tirets sont entourés d'espaces insécables par le script ; une virgule, elle, n'en a pas.) */
.charte-headline__separator {
  margin-right: .26em;
}

.charte-headline.is-paused,
.charte-headline.is-paused .charte-headline__part {
  animation-play-state: paused;
}

/* Mots : écriture lettre par lettre (--steps = nombre de caractères) ; séparateurs : apparition franche. */
.charte-headline__part--1 { animation-name: charte-headline-type-1; animation-timing-function: steps(var(--steps, 8), end); }
.charte-headline__part--2 { animation-name: charte-headline-type-2; }
.charte-headline__part--3 { animation-name: charte-headline-type-3; animation-timing-function: steps(var(--steps, 10), end); }
.charte-headline__part--4 { animation-name: charte-headline-type-4; }
.charte-headline__part--5 { animation-name: charte-headline-type-5; animation-timing-function: steps(var(--steps, 10), end); }

@keyframes charte-headline-exit {
  0%, 78% { opacity: 1; transform: translateX(0); }
  88%, 100% { opacity: 0; transform: translateX(-24px); }
}

@keyframes charte-headline-type-1 { 0% { clip-path: inset(0 100% 0 0); } 13%, 100% { clip-path: inset(0); } }
@keyframes charte-headline-type-2 { 0%, 14% { clip-path: inset(0 100% 0 0); } 17%, 100% { clip-path: inset(0); } }
@keyframes charte-headline-type-3 { 0%, 18% { clip-path: inset(0 100% 0 0); } 33%, 100% { clip-path: inset(0); } }
@keyframes charte-headline-type-4 { 0%, 34% { clip-path: inset(0 100% 0 0); } 37%, 100% { clip-path: inset(0); } }
@keyframes charte-headline-type-5 { 0%, 38% { clip-path: inset(0 100% 0 0); } 54%, 100% { clip-path: inset(0); } }

@media (prefers-reduced-motion: reduce) {
  .charte-headline,
  .charte-headline__part {
    animation: none;
  }
}


/* =========================================================================
   RECETTE 18/09 — HERO : listes « secteur » / « région » en cases à cocher
   Un clic coche ou décoche l'option, la liste reste ouverte ; le champ affiche un résumé
   (« Banque et assurance + 2 ») à la place des étiquettes. Comportement : block-home-tender-search.js.
   ========================================================================= */

/* Étiquettes Select2 et compteur « + N » du thème masqués : le résumé est dans le texte indicatif. */
.select2-container--charte-2026 .select2-selection__choice,
.select2-container--charte-2026 .select2-limit-tag-count,
.select2-container--charte-2026 .select2-selection__clear {
  display: none !important;
}

.block-home-tender-search.is-style-charte-2026 .select2-container--charte-2026 .select2-selection--multiple {
  cursor: pointer;
}

.block-home-tender-search.is-style-charte-2026 .select2-container--charte-2026 .select2-search--inline .select2-search__field {
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
}

/* Le texte (résumé ou indicatif) s'arrête avant le chevron, tronqué par « … ». */
.block-home-tender-search.is-style-charte-2026 .select2-container--charte-2026 .select2-search--inline {
  min-width: 0;
  overflow: hidden;
}

.block-home-tender-search.is-style-charte-2026 .select2-container--charte-2026 .icon-caret {
  margin-left: 8px;
}

/* Choix en cours : résumé en noir et gras, bordure turquoise. */
.block-home-tender-search.is-style-charte-2026 .select2-container--charte-2026.has-charte-selection .select2-selection--multiple {
  border-color: rgba(0, 187, 167, .55);
  background: rgba(0, 187, 167, .06);
}

.block-home-tender-search.is-style-charte-2026 .select2-container--charte-2026.has-charte-selection .select2-search__field::placeholder {
  color: #1D293D;
  font-weight: 600;
}

/* Liste déroulante (ajoutée en fin de <body> par Select2). */
.select2-dropdown.select2-dropdown--charte-2026 {
  overflow: hidden;
  border: 1.23px solid #E2E8F0;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(29, 41, 61, .12);
  font-family: "Inter", sans-serif;
}

.select2-dropdown.select2-dropdown--charte-2026.select2-dropdown--below {
  margin-top: 4px;
}

.select2-dropdown.select2-dropdown--charte-2026.select2-dropdown--above {
  margin-bottom: 4px;
}

.select2-dropdown--charte-2026 .select2-results > .select2-results__options {
  max-height: 260px;
}

.select2-dropdown--charte-2026 .select2-results__option {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 18px;
  color: #1D293D;
}

/* Titres de groupe (« Régions », « Départements »). */
.select2-dropdown--charte-2026 .select2-results__group {
  padding: 10px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748B;
}

.select2-dropdown--charte-2026 .select2-results__option--group {
  padding: 0;
}

/* Survol / clavier : fond turquoise pâle (et non le vert plein du thème). */
.select2-container .select2-dropdown--charte-2026 .select2-results__option--selected,
.select2-container .select2-dropdown--charte-2026 .select2-results__option--highlighted.select2-results__option--selectable {
  background: transparent;
  color: #1D293D;
}

.select2-container .select2-dropdown--charte-2026 .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(0, 187, 167, .08);
}

.select2-dropdown--charte-2026 .select2-results__option--disabled {
  display: none;
}

.charte-toggle-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Case : même dessin que les pastilles « Appels d'offres » / « Projets privés ». */
.charte-toggle-option__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: .8px solid #90A1B9;
  border-radius: 3px;
  background: #FFF;
  transition: background-color .15s ease, border-color .15s ease;
}

.select2-results__option--selected .charte-toggle-option__check {
  border-color: transparent;
  background: linear-gradient(135deg, #81CDC3 0%, #00BBA7 100%);
  box-shadow: 0 1px 4px rgba(0, 187, 167, .25);
}

.select2-results__option--selected .charte-toggle-option__check::after {
  content: "";
  width: 9px;
  height: 9px;
  background: #FFF;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M1.5 4L3.2 5.7L6.5 2.3" fill="none" stroke="black" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M1.5 4L3.2 5.7L6.5 2.3" fill="none" stroke="black" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
}

.select2-results__option--selected .charte-toggle-option__label {
  font-weight: 600;
}


/* =========================================================================
   RECETTE 21/09 — cartes « Pourquoi Vecteur Plus ? » (réf. vidéo Figma = template Webflow « Aeline »)
   Au repos : la carte « visuel » est large (photo visible), les autres étroites.
   Au survol : la carte survolée s'élargit (0,5 s) et affiche SA photo (dernier bloc Image de la carte,
   s'il y en a un), les autres se resserrent et masquent la leur ; en quittant la zone, retour au repos.
   Pilotage : blocks/block-columns/block-columns.js (classe « charte-expand », bureau ≥ 992 px seulement).
   + apparition en fondu au défilement (classe « charte-reveal »).
   ========================================================================= */

/* Apparition : les cartes montent et apparaissent en cascade. */
.block-columns[class*="is-style-charte-2026"].charte-reveal .block-column {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--reveal-index, 0) * 140ms);
}

.block-columns[class*="is-style-charte-2026"].charte-reveal.is-revealed .block-column {
  opacity: 1;
  transform: none;
}

/* Colonnes : la carte active prend la grande largeur (mêmes proportions que la maquette : 521 / 290 / 290).
   Mise en page en flex plutôt qu'en grille : animer « grid-template-columns » recalcule toute la grille à
   chaque image et saccade ; une largeur en pourcentage sur chaque carte est bien plus fluide (retour 23/09). */
.block-columns[class*="is-style-charte-2026"].charte-expand .block-columns__columns {
  display: flex;
}

/* Proportions de la maquette exprimées en « flex-grow » : les écarts entre cartes sont alors
   déduits automatiquement, contrairement à des pourcentages qui déborderaient. */
.block-columns[class*="is-style-charte-2026"].charte-expand .block-column {
  flex: 290 1 0;
  min-width: 0;
  will-change: flex-grow;
  transition: flex-grow .45s cubic-bezier(.4, 0, .2, 1), opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}

.block-columns[class*="is-style-charte-2026"].charte-expand[data-active="0"] .block-column:nth-child(1),
.block-columns[class*="is-style-charte-2026"].charte-expand[data-active="1"] .block-column:nth-child(2),
.block-columns[class*="is-style-charte-2026"].charte-expand[data-active="2"] .block-column:nth-child(3) {
  flex-grow: 521;
}

/* Retour 17/11 : le texte ne doit plus s'étendre ni se resserrer quand une carte s'ouvre.
   La colonne de texte est figée sur la largeur d'une carte resserrée (variable posée par
   blocks/block-columns/block-columns.js) ; la carte élargie se contente de découvrir la photo. */
.block-columns[class*="is-style-charte-2026"].charte-expand .block-column {
  overflow: hidden;
}

.block-columns[class*="is-style-charte-2026"].charte-expand .block-column__content {
  display: grid;
  /* La photo peut se réduire si la carte manque de place : figée à 207 px, elle était
     rognée par le recadrage de la carte et venait toucher le bord. */
  grid-template-columns: var(--carte-texte, 251px) minmax(0, 207px);
  grid-auto-rows: min-content;
  column-gap: 18px;
}

.block-columns[class*="is-style-charte-2026"].charte-expand .block-column__content > * {
  grid-column: 1;
}

/* La photo suit la largeur de sa colonne : figée à 207 px, elle dépassait de la carte
   et se faisait rogner au lieu de garder sa marge sur le bord. */
.block-columns[class*="is-style-charte-2026"].charte-expand .is-style-charte-2026-visuel .block-column__content > .wp-block-image:last-child {
  width: 100%;
  max-width: 207px;
}

/* Photo d'une carte sans la classe « visuel » : masquée sur le site (au survol, la carte active reçoit
   cette classe, qui met sa photo en page ; sur mobile et tablette, seule la carte « visuel » montre la sienne).
   Limité au contenu public : dans l'éditeur, toutes les photos restent visibles pour pouvoir les remplacer. */
.page-body__content .block-columns[class*="is-style-charte-2026"] .block-column:not(.is-style-charte-2026-visuel) .block-column__content > .wp-block-image:last-child:not(:first-child) {
  display: none;
}

/* Photo qui apparaît : fondu une fois la carte élargie. */
.block-columns[class*="is-style-charte-2026"].charte-expand .is-style-charte-2026-visuel .block-column__content > .wp-block-image:last-child {
  animation: charte-photo-in .45s ease-out .15s both;
}

.block-columns[class*="is-style-charte-2026"].charte-expand .block-column {
  cursor: default;
}

@keyframes charte-photo-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .block-columns[class*="is-style-charte-2026"].charte-reveal .block-column {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .block-columns[class*="is-style-charte-2026"].charte-expand .block-columns__columns {
    transition: none;
  }

  .block-columns[class*="is-style-charte-2026"].charte-expand .is-style-charte-2026-visuel .block-column__content > .wp-block-image:last-child {
    animation: none;
  }
}


/* =========================================================================
   RECETTE 21/09 — lignes « offre » (bloc « Texte + visuel ») : arrivée latérale au défilement
   Le visuel arrive de son côté, le texte du côté opposé. Classes posées par
   blocks/block-text-media/block-text-media.js (sans JS : rien ne bouge).
   ========================================================================= */

.block-text-media.is-style-charte-2026.charte-slide {
  --slide-distance: 110px;
}

.block-text-media.is-style-charte-2026.charte-slide .block-text-media__media,
.block-text-media.is-style-charte-2026.charte-slide .block-text-media__content {
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(.22, 1, .36, 1), transform 1.4s cubic-bezier(.22, 1, .36, 1);
}

.block-text-media.is-style-charte-2026.charte-slide.is-media-left .block-text-media__media,
.block-text-media.is-style-charte-2026.charte-slide:not(.is-media-left) .block-text-media__content {
  transform: translateX(calc(var(--slide-distance) * -1));
}

.block-text-media.is-style-charte-2026.charte-slide.is-media-left .block-text-media__content,
.block-text-media.is-style-charte-2026.charte-slide:not(.is-media-left) .block-text-media__media {
  transform: translateX(var(--slide-distance));
}

/* Le texte suit le visuel avec un léger décalage. */
.block-text-media.is-style-charte-2026.charte-slide .block-text-media__content {
  transition-delay: .22s;
}

.block-text-media.is-style-charte-2026.charte-slide.is-revealed .block-text-media__media,
.block-text-media.is-style-charte-2026.charte-slide.is-revealed .block-text-media__content {
  opacity: 1;
  transform: none;
}

/* Écrans étroits : déplacement réduit, pour ne pas créer de défilement horizontal. */
@media (max-width: 1199px) {
  .block-text-media.is-style-charte-2026.charte-slide {
    --slide-distance: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .block-text-media.is-style-charte-2026.charte-slide .block-text-media__media,
  .block-text-media.is-style-charte-2026.charte-slide .block-text-media__content {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =========================================================================
   RECETTE 18/09 — bouton blanc (fond turquoise) : « Demander un essai gratuit »
   ========================================================================= */

.wp-block-button.is-style-charte-2026-blanc .wp-block-button__link {
  --custom-theme-button-bg-color: #FFF;
  --custom-theme-button-text-color: #1D293D;
  --custom-theme-button-text-color-alt: #1D293D;
  justify-content: center;
  min-width: 203px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 3px;
  font-family: var(--charte-title-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 14.8px;
  letter-spacing: .25px;
  text-transform: none;
}

.wp-block-button.is-style-charte-2026-blanc .wp-block-button__link:hover,
.wp-block-button.is-style-charte-2026-blanc .wp-block-button__link:focus {
  background: rgba(255, 255, 255, .8);
}

.wp-block-button.is-style-charte-2026-blanc .wp-block-button__link .icon-arrow {
  display: none;
}

.wp-block-buttons:has(> .wp-block-button.is-style-charte-2026-blanc) {
  justify-content: center;
  gap: 16px;
  margin: 0;
}


/* 09/11 : la section des témoignages reprend le turquoise plat des autres sections
   (elle portait un dégradé #55C3AD → #2C9E87 depuis la recette du 23/09). */
.block-section-background.is-style-charte-2026:has(.block-testimonials.is-style-charte-2026) {
  background: var(--charte-turquoise);
}


/* =========================================================================
   RECETTE 18/09 — TÉMOIGNAGES : bloc « Témoignages », style Charte 2026
   (maquette Figma, composant « Témoignages » 124:424 : 3 cartes blanches, logo, étoiles, citation,
   nom + fonction, flèches rondes sur les côtés, points dessous). Placé dans la section turquoise.
   ========================================================================= */

.block-testimonials.is-style-charte-2026 {
  width: 100%;
  margin: 8px 0 40px;
  padding: 0;
  border-radius: 0;
  background: none;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__list {
  position: relative;
  display: block;
  max-width: none;
  padding: 0 28px;
}

/* Cartes de même hauteur. */
.block-testimonials.is-style-charte-2026 .slick-track {
  display: flex;
}

/* Cartes de même hauteur : Slick insère un conteneur entre la diapositive et la carte,
   il faut étirer toute la chaîne, sinon la hauteur à 100 % ne s'applique pas. */
.block-testimonials.is-style-charte-2026 .slick-slide {
  display: flex;
  height: auto;
  margin: 0 14px;
}

.block-testimonials.is-style-charte-2026 .slick-slide > div {
  display: flex;
  width: 100%;
}

.block-testimonials.is-style-charte-2026 .slick-list {
  margin: 0 -14px;
  padding: 6px 0 14px;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__item {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  padding: 29px 29px 26px;
  border-radius: 10px;
  background: #FFF;
  box-shadow: 0 8px 24px rgba(29, 41, 61, .08);
  text-align: left;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__logo {
  display: flex;
  align-items: center;
  height: 60px;
  margin: 0 0 16px;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__logo img {
  width: auto;
  max-width: 200px;
  height: 100%;
  max-height: 60px;
  object-fit: contain;
  object-position: left center;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__rating {
  display: flex;
  gap: 3px;
  margin: 0 0 16px;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__star {
  width: 18px;
  height: 18px;
  fill: #FFC21A;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__star.is-empty {
  fill: #E2E8F0;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__text {
  flex: 1 1 auto;
  margin: 0 0 24px;
  font-family: var(--charte-body-font);
  font-size: 15px;
  line-height: 23px;
  color: #333;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__text > :last-child {
  margin-bottom: 0;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__author {
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__subtext {
  margin: 0;
  opacity: 1;
  font-family: var(--charte-body-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: #000;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__role {
  margin-top: 2px;
  font-family: var(--charte-body-font);
  font-size: 13px;
  line-height: 19px;
  color: #5B6472;
}

/* Flèches : ronds blancs de 43 px, à cheval sur les bords de la liste. */
.block-testimonials.is-style-charte-2026 .slider__arrow__prev,
.block-testimonials.is-style-charte-2026 .slider__arrow__next {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #FFF;
  box-shadow: 0 4px 14px rgba(29, 41, 61, .18);
  transform: translateY(-50%);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.block-testimonials.is-style-charte-2026 .slider__arrow__prev { left: 0; }
.block-testimonials.is-style-charte-2026 .slider__arrow__next { right: 0; }

.block-testimonials.is-style-charte-2026 .slider__arrow__prev:hover,
.block-testimonials.is-style-charte-2026 .slider__arrow__next:hover {
  box-shadow: 0 6px 18px rgba(29, 41, 61, .26);
  transform: translateY(-50%) scale(1.06);
}

.block-testimonials.is-style-charte-2026 .slider__arrow__prev:focus-visible,
.block-testimonials.is-style-charte-2026 .slider__arrow__next:focus-visible {
  outline: 2px solid #1D293D;
  outline-offset: 3px;
}

.block-testimonials.is-style-charte-2026 .slider__arrow__prev svg,
.block-testimonials.is-style-charte-2026 .slider__arrow__next svg {
  width: 30px;
  height: 30px;
}

.block-testimonials.is-style-charte-2026 .slider__arrow__prev .icon-circle,
.block-testimonials.is-style-charte-2026 .slider__arrow__next .icon-circle {
  display: none;
}

/* Points : ronds blancs translucides, point actif en pilule blanche. */
.block-testimonials.is-style-charte-2026 .slider__controls {
  margin-top: 18px;
}

.block-testimonials.is-style-charte-2026 .slick-dots {
  gap: 12px;
  align-items: center;
}

.block-testimonials.is-style-charte-2026 .slick-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .55);
  transition: width .25s ease, background-color .25s ease;
}

.block-testimonials.is-style-charte-2026 .slick-dots .slick-active button {
  width: 32px;
  border: 0;
  background: #FFF;
}

@media (max-width: 767px) {
  .block-testimonials.is-style-charte-2026 .block-testimonials__list {
    padding: 0 8px;
  }

  .block-testimonials.is-style-charte-2026 .block-testimonials__item {
    padding: 22px 20px 20px;
  }

  .block-testimonials.is-style-charte-2026 .slider__arrow__prev { left: -12px; }
  .block-testimonials.is-style-charte-2026 .slider__arrow__next { right: -12px; }

  .wp-block-buttons:has(> .wp-block-button.is-style-charte-2026-blanc) {
    flex-direction: column;
    align-items: center;
  }
}

/* Lien « Lire le témoignage » en pied de carte. */
.block-testimonials.is-style-charte-2026 .block-testimonials__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--charte-title-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--charte-red);
  text-decoration: none;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__link::after {
  content: "→";
  transition: transform .2s ease;
}

.block-testimonials.is-style-charte-2026 .block-testimonials__link:hover::after,
.block-testimonials.is-style-charte-2026 .block-testimonials__link:focus-visible::after {
  transform: translateX(3px);
}

.block-testimonials.is-style-charte-2026 .block-testimonials__link:hover {
  text-decoration: underline;
}


/* =========================================================================
   STYLES PAR DÉFAUT DU SITE (demande Nathalie, 04/11/2026)
   La charte 2026 ne sert plus la seule page d'accueil : sa mise en forme
   devient celle des titres, boutons et sections de tout le site.
   Le centrage reste à poser à la main, page par page.
   ========================================================================= */

/* Titre de niveau 2 : ancien « Charte 2026 — titre de section ». */
h2:where([data-type="core/heading"]),
.block-h2,
.is-style-like-h2 {
  margin: 48px 0 24px;
  font-family: var(--charte-title-font);
  font-size: 40px;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: 0;
  color: #000;
}

/* La barre verte décorative appartenait à l'ancienne charte. */
h2:where([data-type="core/heading"])::before,
.block-h2::before,
.is-style-like-h2::before {
  content: none;
  display: none;
}

/* Titre de niveau 3 : ancien « Charte 2026 — titre d'offre ». */
h3:where([data-type="core/heading"]),
.block-h3,
.is-style-like-h3 {
  margin: 40px 0 18px;
  font-family: "Metropolis", var(--charte-title-font);
  font-size: 30px;
  font-weight: 600;
  line-height: 31px;
  letter-spacing: -1px;
}

/* L'éditeur force la graisse 400 sur les h3 avec !important. */
h3:where([data-type="core/heading"]) {
  font-weight: 600 !important;
}

/* Titre de section : aligné sur le texte, centré seulement si la page le demande.
   La règle d'origine centrait par défaut et sa spécificité battait les classes
   d'alignement de l'éditeur : choisir « à gauche » restait sans effet. */
.wp-block-heading.is-style-charte-2026 {
  text-align: left;
}

.wp-block-heading.is-style-charte-2026.has-text-align-center {
  text-align: center;
}

/* Aligné à gauche, le titre doit partir du même bord que son sur-titre : on lui rend
   la largeur de contenu du gabarit au lieu des 1153 px du titre centré. */
.has-block-layout > .wp-block-heading.is-style-charte-2026:not(.has-text-align-center):not(.has-text-align-right):not(.alignfull):not(.alignwide) {
  max-width: var(--wp--style--global--content-size);
}

.wp-block-heading.is-style-charte-2026.has-text-align-right {
  text-align: right;
}

/* Style « Cartes » : colonnes de largeur égale. La répartition 521/290/290 appartient
   à la page d'accueil, dont la première carte porte un visuel. */
.block-columns.is-style-charte-2026-cartes .block-columns__columns {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}

@media screen and (max-width: 1279px) {
  .block-columns.is-style-charte-2026-cartes .block-columns__columns {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 767px) {
  .block-columns.is-style-charte-2026-cartes .block-columns__columns {
    grid-template-columns: 1fr;
  }
}

/* Encadré turquoise : précision mise en avant sous une liste (maquette N3, « Donnée livrée »). */
.is-style-charte-2026-encadre {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--charte-turquoise-light);
  font-family: var(--charte-body-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  color: #1D293D;
}

/* Deux colonnes de la charte : texte à gauche, contenu à droite (maquette N3, « Le constat »). */
/* Le thème retire wp-block-library : les colonnes natives n'ont ni largeur
   ni empilement sur téléphone. Ce style les porte lui-même. */
.wp-block-columns.is-style-charte-2026-duo {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
  max-width: 1163px;
  margin: 48px auto 72px;
}

.wp-block-columns.is-style-charte-2026-duo > .wp-block-column {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

.wp-block-columns.is-style-charte-2026-duo .wp-block-column > :first-child {
  margin-top: 0;
}

.wp-block-columns.is-style-charte-2026-duo .wp-block-heading.is-style-charte-2026 {
  max-width: none;
  margin-inline: 0;
  text-align: left;
}

@media screen and (max-width: 781px) {
  .wp-block-columns.is-style-charte-2026-duo {
    gap: 24px;
    margin: 32px auto 48px;
  }

  /* Une colonne après l'autre. */
  .wp-block-columns.is-style-charte-2026-duo > .wp-block-column {
    flex-basis: 100%;
  }
}

/* Lien rouge dans un paragraphe courant (mention « Appelez-nous » sous la FAQ). */
.has-charte-red-link a {
  color: var(--charte-red);
  font-weight: 500;
}

/* Sur-titre : aligné sur le texte, centré seulement si la page le demande. */
.is-style-charte-2026-surtitre {
  justify-content: flex-start;
  text-align: left;
}

.is-style-charte-2026-surtitre.has-text-align-center {
  justify-content: center;
  text-align: center;
}

/* Bouton plein : ancien « Charte 2026 — rouge ». Les boutons de l'en-tête,
   qui portent la classe sans être des blocs bouton, ne sont pas concernés. */
.wp-block-button .wp-block-button__link {
  justify-content: center;
  gap: 10px;
  min-width: 203px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 3px;
  font-family: var(--charte-title-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 14.8px;
  letter-spacing: .25px;
  text-transform: none;
}

.wp-block-button .wp-block-button__link .icon-arrow {
  display: none;
}

/* Bouton contour : rouge sur fond clair. */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-outlined {
  background: transparent;
  border-color: currentColor;
  color: var(--charte-red);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus,
.wp-block-button .wp-block-button__link.is-outlined:hover,
.wp-block-button .wp-block-button__link.is-outlined:focus {
  background: var(--charte-red);
  color: #FFF;
}

/* Bouton contour sur le fond turquoise d'une section : blanc. */
.block-section-background .wp-block-button.is-style-outline .wp-block-button__link {
  color: #FFF;
}

.block-section-background .wp-block-button.is-style-outline .wp-block-button__link:hover,
.block-section-background .wp-block-button.is-style-outline .wp-block-button__link:focus {
  background: #FFF;
  color: var(--charte-red);
}

/* Section avec fond : ancien « Charte 2026 — turquoise arrondi ». */
.block-section-background {
  box-sizing: border-box;
  width: auto;
  max-width: var(--wp--style--global--content-size, 1290px);
  margin: 64px auto 56px;
  padding: 44px 40px 40px;
  border-radius: 45px;
  background: var(--charte-turquoise);
}

.block-section-background::before,
.block-section-background::after {
  content: none;
}

.block-section-background .block-section-background__content {
  max-width: 1163px;
  margin: 0 auto;
  padding: 0;
}

/* Lien dans une réponse de FAQ : le bleu du navigateur n'était pas repris. */
.schema-faq-answer a {
  color: var(--charte-red);
}

@media screen and (max-width: 767px) {
  h2:where([data-type="core/heading"]),
  .block-h2,
  .is-style-like-h2 {
    font-size: 24px;
    line-height: 30px;
    text-wrap: balance;
  }

  /* Titres de cartes : 20 px sur téléphone, comme les maquettes mobiles N2 / N3. */
  h3:where([data-type="core/heading"]),
  .block-h3,
  .is-style-like-h3 {
    font-size: 20px;
    line-height: 26px;
  }

}


/* -------------------------------------------------------------------------
   ÉDITEUR UNIQUEMENT — bloc « Une qualité de DATA inégalée »
   Les colonnes 2 et 3 étaient illisibles dans l'admin. On égalise les trois
   largeurs et on remet le contenu en colonne simple : la grille du front place
   la photo à côté du texte, ce qui n'a pas de sens dans l'éditeur.
   Le front n'est pas concerné.
   ------------------------------------------------------------------------- */

.editor-styles-wrapper .block-columns[class*="is-style-charte-2026"] .block-columns__columns {
  grid-template-columns: repeat(3, 1fr);
}

.editor-styles-wrapper .block-columns[class*="is-style-charte-2026"] .block-column.is-style-charte-2026-visuel {
  width: auto;
}

.editor-styles-wrapper .block-columns[class*="is-style-charte-2026"] .block-column__content {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
}

.editor-styles-wrapper .block-columns[class*="is-style-charte-2026"] .block-column__content > * {
  grid-column: auto !important;
  grid-row: auto !important;
  width: auto !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Le visuel passe sous le texte. */
.editor-styles-wrapper .block-columns[class*="is-style-charte-2026"] .block-column__content > .wp-block-image:last-child:not(:first-child) {
  order: 99;
  margin-top: 16px;
}

.editor-styles-wrapper .block-columns[class*="is-style-charte-2026"] .block-column__content > .wp-block-image:last-child:not(:first-child) img {
  position: static !important;
  width: 100% !important;
  height: auto !important;
}


/* -------------------------------------------------------------------------
   SECTION AVEC FOND — variantes et image de fond (specs 4.2)
   ------------------------------------------------------------------------- */

/* Dégradé des heros N2 et N3 : #CCDFE9 à 20 % vers blanc, relevé dans Figma. */
.block-section-background.is-style-charte-2026-degrade {
  border-radius: 32px;
  /* Relevé point par point sur les maquettes N2 et N3 : bleu plein jusqu'à 21 % de la
     largeur, puis éclaircissement progressif, blanc complet seulement vers 90 %.
     (Le relevé précédent donnait 47 %, le panneau blanchissait bien trop tôt.) */
  background: linear-gradient(to right,
    #CCDFE9 0 21%,
    #DCE9F0 35%,
    #E9F1F5 50%,
    #F3F8FA 65%,
    #FBFCFE 80%,
    #FFF 90%);
}

/* La classe has-global-padding du cœur de WordPress impose ses 50 px :
   il faut passer devant pour retrouver les 58 px de la maquette. */
.block-section-background.is-style-charte-2026-degrade.has-global-padding {
  padding-left: 58px;
  padding-right: 58px;
}

/* Le bloc occupe maintenant toute la largeur de la section : pendant l'animation
   d'arrivée, le visuel décalé de 110 px dépassait à droite et faisait défiler la
   page de côté. La section coupe ce dépassement. */
.block-section-background.is-style-charte-2026-degrade {
  overflow-x: clip;
}

/* Maquette : 71 px au-dessus du sur-titre et 78 px sous le dernier élément. Le décalage
   de 17 px de la colonne de texte s'ajoutait aux 76 px, d'où 106 px perçus en haut. */
.block-section-background.is-style-charte-2026-degrade,
.block-section-background.is-style-charte-2026-degrade.has-global-padding {
  padding-top: 58px;
  padding-bottom: 76px;
}

.block-section-background.is-style-charte-2026-degrade .block-text-media.is-style-charte-2026 .block-text-media__content {
  padding-top: 0;
}

/* Maquette N2 : la section de la frise est beaucoup plus resserrée (16 et 24 px). */
.block-section-background.is-style-charte-2026-degrade:has(.block-market-steps--frise),
.block-section-background.is-style-charte-2026-degrade.has-global-padding:has(.block-market-steps--frise) {
  padding-top: 16px;
  padding-bottom: 24px;
}

/* Le titre d'une section à fond s'aligne sur le sur-titre : il garde sa largeur de
   colonne mais n'est plus centré (il démarrait 38 px plus à droite que le sur-titre). */
.block-section-background.is-style-charte-2026-degrade > .block-section-background__content > .wp-block-heading.is-style-charte-2026 {
  margin-left: 0;
  margin-right: auto;
}

/* Maquette : le texte et le visuel sont centrés l'un par rapport à l'autre, le
   surtitre dépasse donc au-dessus du visuel. */
.block-section-background.is-style-charte-2026-degrade .block-text-media {
  align-items: center;
}

/* Dans la section, c'est elle qui porte les marges : le bloc reprend toute la largeur
   (sinon le texte démarrait à 182 px du bord au lieu de 58). */
.block-section-background.is-style-charte-2026-degrade .block-text-media {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Maquette : colonnes de largeur voisine (545 et 607 px), le visuel calé à droite
   de la section au lieu de laisser 150 px de vide. */
.block-section-background.is-style-charte-2026-degrade .block-text-media {
  justify-content: space-between;
}

.block-section-background.is-style-charte-2026-degrade .block-text-media.is-style-charte-2026 .block-text-media__content,
.block-section-background.is-style-charte-2026-degrade .block-text-media.is-style-charte-2026 .block-text-media__media {
  --custom-theme-flex-span: 6;
  max-width: 100%;
  /* La marge négative de la mise en page « ligne d'offre » faisait sortir le visuel
     de l'écran une fois le bloc étendu à toute la section. */
  margin-right: 0;
  margin-left: 0;
}

/* Le bloc intérieur gardait sa marge de 108 px, ce qui décalait le bord bas. */
.block-section-background.is-style-charte-2026-degrade > .block-section-background__content > :first-child {
  margin-top: 0;
}

.block-section-background.is-style-charte-2026-degrade > .block-section-background__content > :last-child {
  margin-bottom: 0;
}

/* Le contenu occupe toute la largeur de la section : sans ça, la zone de texte
   était centrée sur 1163 px et commençait à 121 px du bord au lieu de 58. */
.block-section-background.is-style-charte-2026-degrade > .block-section-background__content {
  max-width: none;
}

@media screen and (max-width: 767px) {
  .block-section-background.is-style-charte-2026-degrade,
  .block-section-background.is-style-charte-2026-degrade.has-global-padding {
    padding: 40px 20px;
  }
}

/* Fond gris, utilisé derrière les témoignages. */
.block-section-background.is-style-charte-2026-gris {
  background: var(--wp--preset--color--light-grey);
}

/* L'image se plaçait en losange dans le coin : elle devient un vrai fond couvrant. */
.block-section-background__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  overflow: hidden;
  border-radius: inherit;
  transform: none;
}

.block-section-background__image img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: 50% 50%;
  transform: none;
}

.block-section-background .block-section-background__content {
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 1279px) {
  /* L'ancien gabarit sortait l'image du flux sous 1280 px. */
  .block-section-background--has-image {
    display: block;
  }

  .block-section-background__image {
    position: absolute;
    margin: 0;
  }
}

@media screen and (max-width: 767px) {
  .block-section-background__image {
    width: auto;
    height: auto;
  }

  .block-section-background__image img {
    margin: 0;
  }
}


/* ───────────────────────────────────────────────────────────────────────────
   Boutons flottants (§3.5) — trois accès fixés sur le bord droit de l'écran.
   Au survol ou au focus clavier, le bouton s'étire vers la gauche et montre
   son libellé ; les autres s'estompent. Aucun JS : tout est en CSS.
   ─────────────────────────────────────────────────────────────────────────── */
.floating-buttons {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateY(-50%);
}

/* Le fond est porté par chaque bouton : seul celui qu'on survole s'étire. */
.floating-buttons__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 52px;
  height: 41px;
  padding: 0 14px;
  background: var(--charte-red);
  color: #FFF;
  text-decoration: none;
  white-space: nowrap;
  transition: width .25s ease, opacity .2s ease, border-radius .25s ease;
}

.floating-buttons__item:first-child {
  border-top-left-radius: 10px;
}

.floating-buttons__item:last-child {
  border-bottom-left-radius: 10px;
}

.floating-buttons__item:hover,
.floating-buttons__item:focus-visible {
  color: #FFF;
  text-decoration: none;
  border-radius: 10px 0 0 10px;
}

.floating-buttons__icon {
  flex: 0 0 auto;
  display: inline-flex;
}

.floating-buttons__icon svg {
  width: 22px;
  height: 22px;
}

.floating-buttons__label {
  flex: 0 0 auto;
  order: -1;
  max-width: 0;
  overflow: hidden;
  font-family: var(--charte-title-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 41px;
  opacity: 0;
  transition: max-width .25s ease, opacity .2s ease;
}

@media screen and (min-width: 992px) {
  .floating-buttons__item:hover,
  .floating-buttons__item:focus-visible {
    width: auto;
  }

  .floating-buttons__item:hover .floating-buttons__label,
  .floating-buttons__item:focus-visible .floating-buttons__label {
    max-width: 320px;
    opacity: 1;
  }

  /* Les voisins s'estompent pendant qu'un bouton est déployé. */
  .floating-buttons:hover .floating-buttons__item:not(:hover),
  .floating-buttons:focus-within .floating-buttons__item:not(:focus-visible):not(:hover) {
    opacity: .45;
  }
}

/* Sous 992 px, pas de déploiement : le libellé reste pour les lecteurs d'écran. */
@media screen and (max-width: 991px) {
  .floating-buttons__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Sur téléphone, le bandeau reste haut : il ne doit pas couvrir les boutons
   d'action placés en bas des blocs. */
@media screen and (max-width: 767px) {
  .floating-buttons {
    top: auto;
    bottom: 96px;
    transform: none;
  }

  .floating-buttons__item {
    width: 46px;
    height: 38px;
    padding: 0 12px;
  }

  .floating-buttons__icon svg {
    width: 20px;
    height: 20px;
  }
}

@media print {
  .floating-buttons {
    display: none;
  }
}


/* ───────────────────────────────────────────────────────────────────────────
   Bandeau de recherche, variante « carrefour » (maquettes N2 / N3)
   Pas de photo de fond mais un dégradé bleu, le formulaire à gauche et la
   capture annotée à droite. Le bandeau de la page d'accueil n'est pas touché.
   ─────────────────────────────────────────────────────────────────────────── */
.block-home-tender-search.is-style-charte-2026:has(.block-home-tender-search__side) .block-home-tender-search__hero {
  flex-direction: row;
  align-items: center;
  gap: 48px;
  /* Retour 24/11 : l'ombré sous le visuel donnait l'impression d'une marge énorme en bas,
     56 px ramenés à 10 px. */
  padding: 56px 56px 10px 72px;
  background: linear-gradient(110deg, #CCDFE9 18%, #F4F9FB 70%, #FFF 100%);
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__side {
  flex: 1 1 46%;
  min-width: 0;
  margin: 0;
}

.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__side img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(29, 41, 61, .12);
}

.block-home-tender-search.is-style-charte-2026:has(.block-home-tender-search__side) .block-home-tender-search__inner {
  flex: 1 1 54%;
  min-width: 0;
}

/* Sans photo de fond, le titre repasse en noir sur le dégradé. */
.block-home-tender-search.is-style-charte-2026:has(.block-home-tender-search__side) .block-home-tender-search__background {
  display: none;
}

@media screen and (max-width: 1279px) {
  .block-home-tender-search.is-style-charte-2026:has(.block-home-tender-search__side) .block-home-tender-search__hero {
    gap: 32px;
    padding: 40px;
  }
}

@media screen and (max-width: 991px) {
  .block-home-tender-search.is-style-charte-2026:has(.block-home-tender-search__side) .block-home-tender-search__hero {
    flex-direction: column;
    align-items: stretch;
    padding: 40px 16px 20px;
  }

  .block-home-tender-search.is-style-charte-2026 .block-home-tender-search__side {
    order: 2;
  }
}


/* Titres des cartes de ressources : 24 px en bureau, 20 px sur téléphone (recette 11/11).
   Ils portent la classe block-h3, qui vaut 30 px partout ailleurs. */
.resource-summary__title.block-h3 {
  font-size: 24px;
  line-height: 30px;
}

@media screen and (max-width: 767px) {
  .resource-summary__title.block-h3 {
    font-size: 20px;
    line-height: 26px;
  }
}


/* Téléphone : le visuel passe toujours après le texte et le bouton — sans avoir lu
   le texte, l'image ne se comprend pas (recette 12/11, étendu à toutes les sections). */
@media screen and (max-width: 991px) {
  .block-text-media.is-style-charte-2026 .block-text-media__media {
    order: 1;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}


/* Carte « avec visuel » mais sans image : la grille réservait quand même 207 px à droite,
   et le texte sortait tout étriqué. Sans image, la carte redevient une carte normale. */
.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel:not(:has(.wp-block-image)) .block-column__content {
  display: block;
  column-gap: 0;
}

.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel:not(:has(.wp-block-image)) .block-column__content > .block-paragraph:not([class*="is-style-charte-2026"]),
.block-columns[class*="is-style-charte-2026"] .is-style-charte-2026-visuel:not(:has(.wp-block-image)) .is-style-charte-2026-legende {
  padding-right: 0;
}


/* ───────────────────────────────────────────────────────────────────────────
   « Mise en exergue / Intro », style « Charte 2026 — bandeau carrefour »
   Le bandeau rouge en diagonale laisse place au dégradé bleu des maquettes
   N2 / N3 : texte à gauche, visuel annoté à droite. Le style d'origine du
   bloc n'est pas touché.
   ─────────────────────────────────────────────────────────────────────────── */
.block-highlighted-intro.is-style-charte-2026 {
  margin-bottom: 72px;
  padding: 0 48px;
}

.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__columns {
  min-height: 0;
  align-items: center;
  gap: 48px;
  /* Retour 24/11 : l'ombré sous le visuel donnait l'impression d'une marge énorme en bas,
     56 px ramenés à 10 px. */
  padding: 56px 56px 10px 72px;
  border-radius: 24px;
  background: linear-gradient(110deg, #CCDFE9 18%, #F4F9FB 70%, #FFF 100%);
}

/* Décors du style d'origine : diagonale verte et losanges. */
.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__columns::before,
.block-highlighted-intro.is-style-charte-2026 .icon-3-squares {
  display: none;
}

.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content {
  order: 1;
  width: auto;
  flex: 1 1 54%;
  min-width: 0;
  margin: 0;
  padding: 0;
  clip-path: none;
  background: none;
  color: var(--charte-text);
}

.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__image {
  order: 2;
  width: auto;
  flex: 1 1 46%;
  min-width: 0;
  clip-path: none;
}

/* Le visuel garde ses proportions au lieu d'être recadré en fond. */
.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__image img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content-inner .block-h1,
.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content-inner h1,
.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content-inner h1[data-type="core/heading"],
.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content-inner .is-style-like-h3 {
  color: #000;
}

/* Un seul corps de titre dans ce bandeau, quel que soit le style posé sur le H1 :
   64 px (style « bandeau ») écrasait la page, le style par défaut tombait trop bas.
   50 px, la valeur des pages secteur citée en recette. */
.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content-inner h1,
.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content-inner .block-h1 {
  font-size: 50px;
  line-height: 65px;
}

@media screen and (max-width: 991px) {
  .block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content-inner h1,
  .block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content-inner .block-h1 {
    font-size: 36px;
    line-height: 44px;
  }
}

/* Le filet blanc posé au-dessus du titre par le style d'origine. */
.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content-inner .block-h1::before {
  content: none;
}

/* Le bouton retrouve les couleurs du style « Charte 2026 — rouge ». */
.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content-inner .wp-block-button.is-style-charte-2026 .wp-block-button__link {
  --custom-theme-button-bg-color: var(--charte-red);
  --custom-theme-button-text-color: #FFF;
  --custom-theme-button-text-color-alt: var(--charte-red);
  background-color: var(--charte-red);
  border-color: var(--charte-red);
  color: #FFF;
}

.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content-inner .wp-block-button.is-style-charte-2026 .wp-block-button__link:hover,
.block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content-inner .wp-block-button.is-style-charte-2026 .wp-block-button__link:focus {
  background-color: #FFF;
  color: var(--charte-red);
}

@media screen and (max-width: 1279px) {
  .block-highlighted-intro.is-style-charte-2026 {
    padding: 0 24px;
  }

  .block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__columns {
    gap: 32px;
    padding: 40px;
  }
}

/* Téléphone : une colonne, le texte puis le visuel. */
@media screen and (max-width: 991px) {
  .block-highlighted-intro.is-style-charte-2026 {
    margin-bottom: 40px;
    padding: 0 16px;
  }

  .block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__columns {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 32px 20px;
  }

  .block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__image {
    aspect-ratio: auto;
    padding: 0;
  }

  .block-highlighted-intro.is-style-charte-2026 .block-highlighted-intro__content {
    padding: 0;
  }
}

/* Fil d'Ariane du bandeau « carrefour », aligné sur le texte du bandeau. */
.block-home-tender-search.is-style-charte-2026 .block-home-tender-search__breadcrumbs {
  padding: 22px 0 18px 72px;
}

@media screen and (max-width: 1279px) {
  .block-home-tender-search.is-style-charte-2026 .block-home-tender-search__breadcrumbs {
    padding-left: 56px;
  }
}

@media screen and (max-width: 991px) {
  .block-home-tender-search.is-style-charte-2026 .block-home-tender-search__breadcrumbs {
    padding: 0 16px 12px 32px;
  }
}


/* ───────────────────────────────────────────────────────────────────────────
   Téléphone : corps de texte à 13 px / 18 px, mesuré sur les maquettes
   mobiles N2 et N3. Ce bloc vient en dernier pour passer devant les tailles
   héritées du bureau.
   ─────────────────────────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {
  .block-use-cases .block-use-cases__etat-texte,
  .block-use-cases .block-use-cases__filtre-valeur,
  .block-key-points .block-key-points__text,
  .block-market-steps .block-market-steps__text,
  .block-comparison .block-comparison__text,
  .block-quote-card .block-quote-card__quote,
  .block-figures.is-style-charte-2026 .figure__text,
  .block-text-media.is-style-charte-2026 .block-paragraph:not([class*="is-style-charte-2026"]),
  .block-columns[class*="is-style-charte-2026"] .block-column__content .block-paragraph:not([class*="is-style-charte-2026"]),
  .block-section-background[class*="is-style-charte-2026"] .block-paragraph:not([class*="is-style-charte-2026"]) {
    font-size: 13px;
    line-height: 18px;
  }

  .block-use-cases .block-use-cases__filtre-label,
  .block-market-steps .block-market-steps__source {
    font-size: 12px;
    line-height: 16px;
  }

  /* Titres internes : même échelle réduite que les titres de cartes. */
  .block-use-cases .block-use-cases__etat-titre {
    font-size: 15px;
    line-height: 20px;
  }

  .block-market-steps .block-market-steps__title {
    font-size: 20px;
    line-height: 26px;
  }
}


/* ───────────────────────────────────────────────────────────────────────────
   Bandeau de recherche — retours du 12/11
   ─────────────────────────────────────────────────────────────────────────── */

/* Le bouton de recherche reprend la taille des autres boutons de la charte
   (52 px de haut au lieu de 38). Vaut aussi pour la page d'accueil. */
.block-home-tender-search.is-style-charte-2026 .search-engine__filters__actions .wp-block-button__link,
.block-home-tender-search.is-style-charte-2026 .search-engine__filters__actions button,
.block-home-tender-search.is-style-charte-2026 button[type="submit"] {
  min-width: 203px;
  min-height: 52px;
  padding: 0 32px;
  font-size: 15px;
  line-height: 18px;
  white-space: nowrap;
}

/* Variante « carrefour » : bouton et mention alignés à gauche, sous les champs. */
.block-home-tender-search.is-style-charte-2026:has(.block-home-tender-search__side) .search-engine__filters__actions {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.block-home-tender-search.is-style-charte-2026:has(.block-home-tender-search__side) .search-engine__filters__actions button,
.block-home-tender-search.is-style-charte-2026:has(.block-home-tender-search__side) .search-engine__filters__actions .wp-block-button__link {
  width: auto;
  margin-left: 0;
  margin-right: auto;
}

/* Variante « carrefour » : le panneau vitré disparaît, le formulaire se pose
   directement sur le dégradé (recette 12/11, pages carrefour seulement). */
.block-home-tender-search.is-style-charte-2026:has(.block-home-tender-search__side) .block-home-tender-search__panel {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
