/* ==========================================================================
   LC2R Contenus – affichage public
   Tout est préfixé .lc2r-c / .lc2r- pour ne pas toucher au reste du site,
   et aucune règle n'utilise !important (l'extension SIAE en comptait des
   dizaines, ce qui empêchait de les ajuster depuis Elementor).

   Version 1.7 : « nouvelle charte » des pages Accueil et Qui sommes-nous
   (site de dev, novembre 2026) :
   - texte en Inter 18 px gris-bleu #617183, titres en Source Serif 4 bleu ;
   - titres de cartes en Inter gras bleu #123F79, surtitres verts en capitales ;
   - cartes blanches aux coins arrondis (20 px), sans filet noir, ombre qui
     suit la souris au survol (comme les blocs « Nos engagements ») ;
   - boutons à coins de 3 px ; filet bleu de 133 × 5 px sous les grands titres ;
   - fonds crème / vert pâle, croix décoratives, apparition au défilement.

   Accessibilité : le vert #7D927C et l'orange #EA592A de la charte ne sont pas
   assez contrastés pour du petit texte sur fond blanc (3,3:1 et 3,5:1, il faut
   4,5:1). Ils servent aux filets et aux grands textes ; les petits textes
   utilisent une version plus foncée (--lc2r-green-text, --lc2r-accent-text).

   Personnaliser : redéfinir les variables ci-dessous dans le thème enfant
   ou dans Elementor > Réglages du site > CSS personnalisé, par exemple :
     .lc2r-c { --lc2r-accent: #c45a2c; }
   ========================================================================== */

.lc2r-c {
  /* Couleurs de la charte */
  --lc2r-primary: #223a81;       /* bleu LC2R : grands titres */
  --lc2r-primary-dark: #18295c;
  --lc2r-title: #123f79;         /* titres des cartes */
  --lc2r-button: #294a8a;        /* bouton plein (« Nous contacter ») */
  --lc2r-text: #617183;          /* texte courant (5:1 sur blanc) */
  --lc2r-muted: #617183;
  --lc2r-accent: #ea592a;        /* orange : décor, menu actif */
  --lc2r-accent-text: #c24f27;   /* orange foncé : étiquettes et dates (4,7:1) */
  --lc2r-green: #7d927c;         /* vert : filets courts, décor */
  --lc2r-green-text: #5e765d;    /* vert foncé : surtitres en petit (5:1) */
  --lc2r-cream: #f8f7f2;         /* fond crème des sections */
  --lc2r-cream-light: #fffbf8;   /* fond des boutons clairs */
  --lc2r-sage: #eaf1f0;          /* fond vert pâle des sections */
  --lc2r-surface: #fff;
  --lc2r-border: #dde3e8;        /* bord discret des champs et pavés */
  --lc2r-placeholder: #e9edf0;   /* emplacement d'image vide */
  --lc2r-live: #61f090;          /* pastille « En cours » */
  --lc2r-share: #294a8a;         /* pastilles de partage pleines */

  /* Formes */
  --lc2r-radius: 20px;           /* cartes (Accueil) */
  --lc2r-radius-sm: 3px;         /* boutons, étiquettes, champs */
  --lc2r-shadow: 0 2px 14px rgba(18, 63, 121, 0.07);
  --lc2r-shadow-hover: 0 12px 30px rgba(18, 63, 121, 0.16);
  --lc2r-gap: 30px;
  --lc2r-gap-x: var(--lc2r-gap);
  --lc2r-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Polices : celles du site (Elementor) si elles sont chargées.
     L'extension ne charge aucune police externe (pas d'appel à Google Fonts, RGPD).
     Le kit Elementor ne définit pas de police de texte : on nomme Inter ici,
     sinon les cartes prendraient la police système. */
  --lc2r-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lc2r-font-title: "Source Serif 4", "Source Serif Pro", Georgia, serif;

  /* Croix décoratives (même dessin que celles du thème) */
  --lc2r-croix: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M5.2 0v10.3M0 5.2h10.3' stroke='%23223a81' stroke-width='1.4'/%3E%3C/svg%3E");

  color: var(--lc2r-text);
  font-family: var(--lc2r-font);
  font-size: 1rem;
  line-height: 1.6;
}

.lc2r-c *,
.lc2r-c *::before,
.lc2r-c *::after {
  box-sizing: border-box;
}

/* Hello Elementor colore tous les liens en rose (#c36) : on rétablit nos couleurs. */
.lc2r-c a {
  color: var(--lc2r-title);
  text-decoration: none;
}

.lc2r-c a:hover {
  color: var(--lc2r-primary-dark);
}

.lc2r-c a:focus-visible,
.lc2r-c button:focus-visible,
.lc2r-c input:focus-visible {
  outline: 2px solid var(--lc2r-accent-text);
  outline-offset: 2px;
}

.lc2r-icon {
  flex: none;
  vertical-align: middle;
}

/* Texte réservé aux lecteurs d'écran. */
.lc2r-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Filet bleu sous les grands titres (charte : 133 × 5 px). */
.lc2r-c .lc2r-chantiers__title::after,
.lc2r-c .lc2r-section__title::after,
.lc2r-c .lc2r-hero__title::after {
  content: "";
  display: block;
  width: 133px;
  max-width: 40%;
  height: 5px;
  margin-top: 22px;
  background: var(--lc2r-primary);
}

/* Petit filet vert au-dessus d'un titre (blocs « Nos engagements »). */
.lc2r-c .lc2r-box__title::before,
.lc2r-c .lc2r-prose h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 14px;
  background: var(--lc2r-green);
}

/* --------------------------------------------------------------------------
   Grilles
   -------------------------------------------------------------------------- */

.lc2r-grid {
  display: grid;
  grid-template-columns: repeat(var(--lc2r-cols, 3), minmax(0, 1fr));
  gap: var(--lc2r-gap) var(--lc2r-gap-x);
}

.lc2r-grid--1 { --lc2r-cols: 1; }
.lc2r-grid--2 { --lc2r-cols: 2; }
.lc2r-grid--3 { --lc2r-cols: 3; }
.lc2r-grid--4 { --lc2r-cols: 4; }

.lc2r-list--actualites { --lc2r-gap-x: clamp(24px, 3vw, 40px); }
.lc2r-list--realisations { --lc2r-gap: 30px; }

/* Tablette : 2 colonnes au plus. Mobile : 1 colonne (points de rupture d'Elementor). */
@media (max-width: 1024px) {
  .lc2r-grid--3,
  .lc2r-grid--4 { --lc2r-cols: 2; }
}

@media (max-width: 767px) {
  .lc2r-grid { --lc2r-cols: 1; }
}

.lc2r-list__empty {
  margin: 0;
  color: var(--lc2r-muted);
}

.lc2r-list__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

/* --------------------------------------------------------------------------
   Filtres (« Toutes / En cours / Terminées », thématiques des publications).
   Pas d'équivalent dans la charte : même forme que les boutons (coins de
   3 px), pavé blanc au repos, bleu plein pour le filtre actif.
   -------------------------------------------------------------------------- */

.lc2r-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.lc2r-c .lc2r-filter__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--lc2r-border);
  border-radius: var(--lc2r-radius-sm);
  background: var(--lc2r-surface);
  color: var(--lc2r-title);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.3s var(--lc2r-ease), color 0.3s var(--lc2r-ease), border-color 0.3s var(--lc2r-ease);
}

.lc2r-c .lc2r-filter__btn:hover {
  border-color: var(--lc2r-green);
  color: var(--lc2r-title);
}

.lc2r-c .lc2r-filter__btn[aria-current="true"] {
  border-color: var(--lc2r-button);
  background: var(--lc2r-button);
  color: #fff;
}

.lc2r-filter__count {
  margin: 0 0 24px;
  color: var(--lc2r-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Pendant le chargement d'un filtre : la grille s'estompe un instant. */
.lc2r-list [data-lc2r-items] {
  transition: opacity 0.25s var(--lc2r-ease);
}

.lc2r-list [data-lc2r-items].is-loading {
  opacity: 0.4;
}

/* Le bouton « Voir plus » peut être masqué puis réaffiché par le filtre. */
.lc2r-c .lc2r-btn[hidden],
.lc2r-list__empty[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .lc2r-filter__list {
    gap: 8px;
  }

  .lc2r-c .lc2r-filter__btn {
    min-height: 44px;              /* cible tactile confortable */
    padding: 8px 16px;
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Boutons (charte : coins de 3 px, 12 × 24 px, Inter gras).
   - .lc2r-btn--primary : bleu plein, comme « Nous contacter » ;
   - .lc2r-btn / --outline : fond crème, texte bleu, bord vert de 3 px.
   Double classe pour passer devant [type=button] de Hello Elementor.
   -------------------------------------------------------------------------- */

.lc2r-c .lc2r-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 3px solid var(--lc2r-green);
  border-radius: var(--lc2r-radius-sm);
  background: var(--lc2r-cream-light);
  color: var(--lc2r-primary);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s var(--lc2r-ease), color 0.3s var(--lc2r-ease), border-color 0.3s var(--lc2r-ease), transform 0.3s var(--lc2r-ease);
}

.lc2r-c .lc2r-btn--primary {
  border-color: var(--lc2r-button);
  background: var(--lc2r-button);
  color: #fff;
}

.lc2r-c .lc2r-btn:hover,
.lc2r-c .lc2r-btn:focus-visible {
  border-color: var(--lc2r-green);
  background: var(--lc2r-green);
  color: #fff;
}

.lc2r-c .lc2r-btn--primary:hover,
.lc2r-c .lc2r-btn--primary:focus-visible {
  border-color: var(--lc2r-primary);
  background: var(--lc2r-primary);
  color: #fff;
}

.lc2r-c .lc2r-btn .lc2r-icon {
  transition: transform 0.3s var(--lc2r-ease);
}

.lc2r-c .lc2r-btn:hover .lc2r-icon {
  transform: translateX(4px);
}

.lc2r-c .lc2r-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* --------------------------------------------------------------------------
   Cartes : structure commune (charte Accueil : blanc, coins de 20 px).
   -------------------------------------------------------------------------- */

.lc2r-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;              /* la photo suit les coins arrondis */
  border-radius: var(--lc2r-radius);
  background: var(--lc2r-surface);
  box-shadow: var(--lc2r-shadow);
  transition: box-shadow 0.35s var(--lc2r-ease);
}

/* Sans souris fine (ou sans JS) : l'ombre grandit simplement au survol.
   Avec souris, front.js la fait suivre le curseur (voir plus bas). */
.lc2r-card:hover,
.lc2r-mini:hover,
.lc2r-pub:hover {
  box-shadow: var(--lc2r-shadow-hover);
}

.lc2r-card__media {
  position: relative;
  overflow: hidden;              /* contient le zoom doux de l'image au survol */
}

.lc2r-card__media a {
  display: block;
}

.lc2r-card__media img,
.lc2r-card__placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.8s var(--lc2r-ease);
}

.lc2r-card__placeholder {
  background: var(--lc2r-placeholder);
}

/* Survol : léger zoom de la photo, la flèche avance. */
.lc2r-card:hover .lc2r-card__media img,
.lc2r-card:focus-within .lc2r-card__media img {
  transform: scale(1.04);
}

.lc2r-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 22px 26px 26px;
}

/* Surtitre (thématiques) : vert, capitales, comme « Nos dernières réalisations ». */
.lc2r-card__kicker {
  margin: 0;
  color: var(--lc2r-green-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.lc2r-c .lc2r-card__title {
  margin: 0;
  overflow-wrap: anywhere;       /* un mot très long ne déborde pas de la carte */
  color: var(--lc2r-title);
  font-family: var(--lc2r-font);
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.5625rem);   /* 25 px sur ordinateur */
  font-weight: 700;
  line-height: 1.3;
}

.lc2r-c .lc2r-card__title a {
  color: inherit;
}

.lc2r-c .lc2r-card__title a:hover {
  color: var(--lc2r-primary-dark);
}

.lc2r-card__meta,
.lc2r-card__excerpt {
  margin: 0;
  color: var(--lc2r-text);
  font-size: 1rem;
  line-height: 1.6;
}

/* Date : orange, comme les dates de la frise « Notre histoire ». */
.lc2r-card__meta time {
  color: var(--lc2r-accent-text);
  font-size: 0.9375rem;
  font-weight: 700;
}

/* « Découvrir → » : bleu gras, comme les cartes de l'accueil. */
.lc2r-c .lc2r-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;              /* aligne les liens en bas des cartes d'une même rangée */
  padding-top: 18px;
  color: var(--lc2r-title);
  font-size: 1rem;
  font-weight: 700;
}

.lc2r-c .lc2r-card__link:hover {
  color: var(--lc2r-title);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lc2r-c .lc2r-card__link .lc2r-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--lc2r-ease);
}

.lc2r-c .lc2r-card:hover .lc2r-card__link .lc2r-icon,
.lc2r-c .lc2r-mini:hover .lc2r-card__link .lc2r-icon,
.lc2r-c .lc2r-card__link:focus-visible .lc2r-icon {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Animations alignées sur le thème (animations.css / animations.js) :
   - apparition : fondu + montée de 24 px en 0,8 s, en cascade (0,12 s) ;
   - ombre qui s'éloigne du curseur, comme si la souris était une lampe.
   Les classes sont posées par front.js, jamais sans JS, et jamais si le
   visiteur a demandé à réduire les animations : rien n'est caché par défaut.
   -------------------------------------------------------------------------- */

.lc2r-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--lc2r-ease) var(--lc2r-delay, 0s),
    transform 0.8s var(--lc2r-ease) var(--lc2r-delay, 0s),
    box-shadow 0.35s var(--lc2r-ease);
}

.lc2r-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lc2r-c .lc2r-ombre-active {
  box-shadow:
    calc(var(--mx, 0) * -10px)
    calc(var(--my, 0) * -10px + 6px)
    24px
    rgba(18, 63, 121, 0.2);
  transition: box-shadow 0.2s ease-out, opacity 0.8s var(--lc2r-ease), transform 0.8s var(--lc2r-ease);
}

/* --------------------------------------------------------------------------
   Étiquette de catégorie (orange, posée sur le bas de la photo).
   -------------------------------------------------------------------------- */

.lc2r-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--lc2r-radius-sm);
  background: var(--lc2r-accent-text);
  color: #fff;
  font-size: 0.8125rem;          /* 13 px */
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lc2r-card__media .lc2r-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
}

.lc2r-badge--inline {
  align-self: flex-start;
  margin: 0 8px 4px 0;
}

/* Étiquette de la page de détail d'une actualité : surtitre vert sur vert pâle. */
.lc2r-badge--tag {
  margin: 0 8px 8px 0;
  background: var(--lc2r-sage);
  color: var(--lc2r-green-text);
}

/* --------------------------------------------------------------------------
   Variantes de cartes
   -------------------------------------------------------------------------- */

/* Réalisations et actualités de l'accueil (style="accueil") : même carte,
   titre de 21 px et photo un peu plus haute. */
.lc2r-c .lc2r-card--realisation-accueil .lc2r-card__title,
.lc2r-c .lc2r-card--accueil .lc2r-card__title {
  font-size: 1.3125rem;          /* 21 px */
  line-height: 1.35;
}

.lc2r-card--accueil .lc2r-card__media img,
.lc2r-card--accueil .lc2r-card__placeholder {
  aspect-ratio: 270 / 193;
}

.lc2r-card--accueil .lc2r-card__body,
.lc2r-card--realisation-accueil .lc2r-card__body {
  padding: 18px 22px 22px;
}

/* --------------------------------------------------------------------------
   Liste compacte (mise_en_page="mini") et « Autres projets de la même
   thématique » : carte blanche, vignette à gauche, texte à droite.
   -------------------------------------------------------------------------- */

.lc2r-mini {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-height: 158px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--lc2r-surface);
  box-shadow: var(--lc2r-shadow);
  transition: box-shadow 0.35s var(--lc2r-ease);
}

.lc2r-mini__media {
  position: relative;
  flex: 0 0 40%;
  max-width: 170px;
  overflow: hidden;
}

.lc2r-mini__media img,
.lc2r-mini__media .lc2r-card__placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform 0.8s var(--lc2r-ease);
}

.lc2r-mini:hover .lc2r-mini__media img {
  transform: scale(1.05);
}

.lc2r-mini__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px 16px;
}

.lc2r-c .lc2r-mini__title {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--lc2r-font);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.lc2r-c .lc2r-mini__title a {
  color: var(--lc2r-title);
}

.lc2r-mini__meta {
  margin: 0;
  color: var(--lc2r-green-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lc2r-mini__excerpt {
  margin: 0;
  color: var(--lc2r-text);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.lc2r-c .lc2r-mini .lc2r-card__link {
  padding-top: 8px;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Page Publications ([lc2r_publications]) : barre Rechercher / Filtrer,
   compteur, cartes horizontales, pagination.
   -------------------------------------------------------------------------- */

.lc2r-pubs {
  scroll-margin-top: 120px;      /* ancre #lc2r-publications sous un en-tête collant */
}

.lc2r-pubs__tools {
  display: grid;
  grid-template-columns: minmax(0, 415px) minmax(0, 1fr);
  gap: 24px 64px;
  margin-bottom: 32px;
  padding: 32px 36px;
  border-radius: var(--lc2r-radius);
  background: var(--lc2r-sage);
}

/* Libellés « Rechercher », « Filtrer par thématique » : surtitre vert. */
.lc2r-c .lc2r-pubs__label {
  display: block;
  margin: 0 0 14px;
  color: var(--lc2r-green-text);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.lc2r-pubs__field {
  display: flex;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid var(--lc2r-border);
  border-radius: var(--lc2r-radius-sm);
  background: var(--lc2r-surface);
  transition: border-color 0.3s var(--lc2r-ease);
}

.lc2r-pubs__field:focus-within {
  border-color: var(--lc2r-button);
}

.lc2r-c .lc2r-pubs__field input[type="search"] {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--lc2r-title);
  font: inherit;
  font-size: 1.0625rem;
}

.lc2r-c .lc2r-pubs__field input[type="search"]:focus-visible {
  outline: none;                 /* le cadre du champ change déjà de couleur */
}

.lc2r-c .lc2r-pubs__field button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--lc2r-button);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s var(--lc2r-ease);
}

.lc2r-c .lc2r-pubs__field button:hover,
.lc2r-c .lc2r-pubs__field button:focus-visible {
  background: var(--lc2r-primary);
}

.lc2r-pubs__field .lc2r-icon {
  width: 22px;
  height: 22px;
}

.lc2r-pubs__filter .lc2r-filter__list {
  margin: 0;
}

.lc2r-c .lc2r-pubs__reset {
  margin-left: 12px;
  color: var(--lc2r-accent-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lc2r-pubs__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Carte : image | texte | bouton. */
.lc2r-pub {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: var(--lc2r-radius);
  background: var(--lc2r-surface);
  box-shadow: var(--lc2r-shadow);
  transition: box-shadow 0.35s var(--lc2r-ease);
}

.lc2r-pub__media {
  min-height: 220px;
  overflow: hidden;
  background: var(--lc2r-placeholder);
}

.lc2r-pub__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--lc2r-ease);
}

.lc2r-pub:hover .lc2r-pub__media img {
  transform: scale(1.04);
}

.lc2r-pub__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--lc2r-green);
}

.lc2r-pub__placeholder .lc2r-icon {
  width: 56px;
  height: 56px;
}

.lc2r-pub__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 32px;
}

.lc2r-c .lc2r-pub__tag {
  margin: 0;
  color: var(--lc2r-green-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.lc2r-c .lc2r-pub__title {
  margin: 0;
  color: var(--lc2r-title);
  font-family: var(--lc2r-font);
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.5625rem);   /* 25 px */
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.lc2r-c .lc2r-pub__title a {
  color: inherit;
}

.lc2r-c .lc2r-pub__title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lc2r-pub__excerpt {
  max-width: 42em;
  margin: 0;
  color: var(--lc2r-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.lc2r-pub__infos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: auto 0 0;
  padding-top: 12px;
  color: var(--lc2r-muted);
  font-size: 0.9375rem;
}

/* Séparateur « · » entre les informations (année · source · mots-clés). */
.lc2r-pub__infos > span + span::before,
.lc2r-pub__infos > span + a::before {
  content: "·";
  margin: 0 10px;
  color: var(--lc2r-green);
}

.lc2r-c .lc2r-pub__linked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lc2r-title);
  font-weight: 700;
}

.lc2r-c .lc2r-pub__infos > span + .lc2r-pub__linked::before {
  color: var(--lc2r-green);
  font-weight: 400;
}

.lc2r-pub__linked .lc2r-icon {
  width: 16px;
  height: 16px;
}

.lc2r-pub__action {
  display: flex;
  align-items: center;
  padding: 28px 32px 28px 0;
}

/* « Consulter le PDF » : bouton plein de la charte, poids du fichier dessous. */
.lc2r-c .lc2r-pub__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 220px;
  padding: 12px 24px;
  border-radius: var(--lc2r-radius-sm);
  background: var(--lc2r-button);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.3s var(--lc2r-ease);
}

.lc2r-c .lc2r-pub__btn:hover,
.lc2r-c .lc2r-pub__btn:focus-visible {
  background: var(--lc2r-primary);
  color: #fff;
}

.lc2r-pub__btn-hint {
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0.85;
}

/* Pagination : pavés blancs, page courante en bleu plein. */
.lc2r-pager ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.lc2r-c .lc2r-pager__num,
.lc2r-c .lc2r-pager__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--lc2r-border);
  border-radius: var(--lc2r-radius-sm);
  background: var(--lc2r-surface);
  color: var(--lc2r-title);
  font-size: 1.0625rem;
  font-weight: 700;
  transition: border-color 0.3s var(--lc2r-ease);
}

.lc2r-c a.lc2r-pager__num:hover,
.lc2r-c .lc2r-pager__arrow:hover {
  border-color: var(--lc2r-green);
}

.lc2r-c .lc2r-pager__num[aria-current="page"] {
  border-color: var(--lc2r-button);
  background: var(--lc2r-button);
  color: #fff;
}

@media (max-width: 1024px) {
  .lc2r-pubs__tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .lc2r-pub {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  }

  .lc2r-pub__action {
    grid-column: 2;
    padding: 0 32px 28px;
  }
}

@media (max-width: 767px) {
  .lc2r-pubs__tools {
    padding: 22px 20px;
  }

  .lc2r-pub {
    grid-template-columns: 1fr;
  }

  .lc2r-pub__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .lc2r-pub__action {
    grid-column: auto;
    padding: 0 22px 22px;
  }

  .lc2r-pub__body {
    padding: 20px 22px;
  }

  .lc2r-c .lc2r-pub__btn {
    width: 100%;
    min-width: 0;
  }
}

/* --------------------------------------------------------------------------
   Bloc « Nos chantiers » ([lc2r_chantiers]) : section vert pâle, croix.
   -------------------------------------------------------------------------- */

.lc2r-chantiers {
  position: relative;
  padding: clamp(48px, 7vw, 100px) clamp(20px, 4vw, 50px);
  overflow: hidden;
  border-radius: var(--lc2r-radius);
  background: var(--lc2r-sage);
  --lc2r-text: #4f5f70;          /* #617183 manque un peu de contraste sur le vert pâle */
}

/* Croix décoratives dans le coin haut droit. */
.lc2r-chantiers::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 131px;
  height: 101px;
  background: var(--lc2r-croix) 0 0 / 30px 30px repeat;
  opacity: 0.35;
  pointer-events: none;
}

.lc2r-c .lc2r-chantiers__title {
  position: relative;
  margin: 0 0 clamp(32px, 4vw, 56px);
  color: var(--lc2r-primary);
  font-family: var(--lc2r-font-title);
  font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.75rem);    /* 44 px : H2 de la charte */
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.lc2r-c .lc2r-chantiers__title::after {
  margin-right: auto;
  margin-left: auto;
}

.lc2r-chantiers__cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.lc2r-chantiers__col {
  padding: 32px 36px;
  border-radius: var(--lc2r-radius);
  background: var(--lc2r-surface);
  box-shadow: var(--lc2r-shadow);
}

.lc2r-c .lc2r-chantiers__label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--lc2r-title);
  font-family: var(--lc2r-font);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Pastille verte « En cours » : elle « respire » doucement. */
.lc2r-chantiers__col--en_cours .lc2r-chantiers__label::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lc2r-live);
  box-shadow: 0 0 0 0 rgba(97, 240, 144, 0.6);
  animation: lc2r-pulse 2.4s var(--lc2r-ease) infinite;
}

/* Pastille « Terminés » : vert de la charte, fixe. */
.lc2r-chantiers__col--termine .lc2r-chantiers__label::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lc2r-green);
}

@keyframes lc2r-pulse {
  70% { box-shadow: 0 0 0 10px rgba(97, 240, 144, 0); }
  100% { box-shadow: 0 0 0 0 rgba(97, 240, 144, 0); }
}

.lc2r-chantiers__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.lc2r-chantiers__list li {
  position: relative;
  padding-left: 20px;
}

/* Puce : petit carré orange, comme les matériaux des réalisations. */
.lc2r-chantiers__list li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--lc2r-accent);
}

.lc2r-chantiers__list li + li {
  margin-top: 10px;
}

.lc2r-c .lc2r-chantiers__list a {
  color: var(--lc2r-title);
  font-weight: 600;
}

.lc2r-c .lc2r-chantiers__list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lc2r-chantiers__empty {
  margin: 0;
  color: var(--lc2r-text);
}

@media (max-width: 767px) {
  .lc2r-chantiers {
    border-radius: 0;
  }

  .lc2r-chantiers::before {
    display: none;
  }

  .lc2r-chantiers__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .lc2r-chantiers__col {
    padding: 24px 22px;
  }
}

/* --------------------------------------------------------------------------
   Pages de détail
   -------------------------------------------------------------------------- */

.lc2r-single {
  --lc2r-page-gutter: clamp(16px, 5vw, 50px);
  --lc2r-page-max: 1140px;       /* largeur de contenu de la charte */
  background: var(--lc2r-cream);
}

/* Le contenu reste dans 1 140 px, centré, comme les sections Elementor. */
.lc2r-single__layout,
.lc2r-section {
  width: 100%;
  max-width: calc(var(--lc2r-page-max) + var(--lc2r-page-gutter) * 2);
  margin-right: auto;
  margin-left: auto;
}

.lc2r-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
  align-items: stretch;
  min-height: 420px;
  background: var(--lc2r-surface);
}

.lc2r-hero--no-media {
  grid-template-columns: minmax(0, 1fr);
}

.lc2r-hero__text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 56px var(--lc2r-page-gutter) 56px max(var(--lc2r-page-gutter), calc((100vw - var(--lc2r-page-max)) / 2));
}

/* Croix décoratives dans le coin haut droit du texte (actualité). */
.lc2r-hero:not(.lc2r-hero--band) .lc2r-hero__text::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 131px;
  height: 71px;
  background: var(--lc2r-croix) 0 0 / 30px 30px repeat;
  opacity: 0.3;
  pointer-events: none;
}

.lc2r-hero__head {
  display: flex;
  gap: clamp(24px, 5vw, 64px);
  align-items: flex-start;
}

.lc2r-c .lc2r-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: var(--lc2r-title);
  font-size: 0.9375rem;
  font-weight: 700;
}

.lc2r-c .lc2r-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lc2r-c .lc2r-back .lc2r-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--lc2r-ease);
}

.lc2r-c .lc2r-back:hover .lc2r-icon {
  transform: translateX(-4px);
}

.lc2r-c .lc2r-hero__title {
  margin: 16px 0 6px;
  color: var(--lc2r-primary);
  font-family: var(--lc2r-font-title);
  font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem);   /* 56 px (H1 de la charte : 66 px, réduit pour les titres longs) */
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

/* Actualité : le titre partage la largeur avec la date et la photo. */
.lc2r-c .lc2r-single--actualite .lc2r-hero__title {
  font-size: clamp(2rem, 1.3rem + 2vw, 3rem);
  overflow-wrap: break-word;
}

.lc2r-hero__subtitle {
  margin: 8px 0 0;
  color: var(--lc2r-text);
  font-size: 1.25rem;
  line-height: 1.5;
}

.lc2r-hero__media {
  margin: 0;
  min-height: 260px;
  overflow: hidden;
}

.lc2r-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: lc2r-hero-zoom 1.6s var(--lc2r-ease) both;   /* comme le carrousel de l'accueil */
}

@keyframes lc2r-hero-zoom {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: none; }
}

/* Le texte du bandeau arrive en douceur (0,7 s, comme le carrousel). */
.lc2r-hero__text > * {
  animation: lc2r-hero-text 0.7s var(--lc2r-ease) both;
}

.lc2r-hero__text > :nth-child(2) { animation-delay: 0.1s; }
.lc2r-hero__text > :nth-child(n+3) { animation-delay: 0.2s; }

@keyframes lc2r-hero-text {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Date en colonne : jour en Source Serif, mois et année en orange. */
.lc2r-date {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
  padding: 18px 10px 16px;
  border-radius: 14px;
  background: var(--lc2r-cream);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.lc2r-date__day {
  color: var(--lc2r-primary);
  font-family: var(--lc2r-font-title);
  font-size: 3rem;
  font-weight: 700;
}

.lc2r-date__month,
.lc2r-date__year {
  color: var(--lc2r-accent-text);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Réalisation : bandeau à la couleur dominante de la photo (calculée par
   lc2r_hero_color()), la photo se fond dans la couleur par un dégradé. */
.lc2r-hero--band {
  display: block;
  min-height: 420px;
  background: var(--lc2r-hero-bg, var(--lc2r-primary));
  color: #fff;
  overflow: hidden;
}

.lc2r-hero--band .lc2r-hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  min-height: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
  mask-image: linear-gradient(to right, transparent, #000 45%);
}

.lc2r-hero--band .lc2r-hero__text {
  position: relative;
  max-width: calc(600px + max(var(--lc2r-page-gutter), calc((100vw - var(--lc2r-page-max)) / 2)) + var(--lc2r-page-gutter));
  min-height: 420px;
}

.lc2r-c .lc2r-hero--band .lc2r-hero__title,
.lc2r-c .lc2r-hero--band .lc2r-back,
.lc2r-hero--band .lc2r-hero__subtitle {
  color: #fff;
}

.lc2r-c .lc2r-hero--band .lc2r-hero__title {
  margin-top: 8px;
}

/* Sur le bandeau, le filet sous le titre est remplacé par .lc2r-hero__rule. */
.lc2r-c .lc2r-hero--band .lc2r-hero__title::after {
  display: none;
}

.lc2r-hero--band .lc2r-hero__subtitle {
  font-size: 1.1875rem;
  font-weight: 600;
  opacity: 0.9;
}

.lc2r-hero__rule {
  width: 133px;
  height: 0;
  margin: 18px 0 14px;
  border: 0;
  border-top: 5px solid #fff;
  color: #fff;
}

.lc2r-hero__label,
.lc2r-hero__terms {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.lc2r-hero__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Contenu + colonne latérale. */
.lc2r-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  gap: clamp(32px, 6vw, 90px);
  padding: clamp(48px, 6vw, 80px) var(--lc2r-page-gutter);
}

.lc2r-single--actualite .lc2r-single__layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(32px, 5vw, 70px);
}

.lc2r-single__layout--full {
  grid-template-columns: minmax(0, 860px);
}

.lc2r-single__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Texte : Inter 18 px / 27 px, comme le corps de la charte. */
.lc2r-prose {
  color: var(--lc2r-text);
  font-size: 1.125rem;
  line-height: 1.5;
}

.lc2r-prose p,
.lc2r-prose ul,
.lc2r-prose ol {
  margin: 0 0 1em;
}

.lc2r-prose ul,
.lc2r-prose ol {
  padding-left: 1.4em;
}

.lc2r-prose strong,
.lc2r-prose b {
  color: var(--lc2r-title);
}

.lc2r-c .lc2r-prose h2 {
  margin: 1.6em 0 0.5em;
  color: var(--lc2r-primary);
  font-family: var(--lc2r-font-title);
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);   /* 34 px */
  font-weight: 700;
  line-height: 1.2;
}

.lc2r-c .lc2r-prose h2:first-child,
.lc2r-c .lc2r-prose .lc2r-texte:first-child h2 {
  margin-top: 0;
}

/* Matériaux / techniques : puces orange carrées. */
.lc2r-prose .lc2r-materiaux {
  padding-left: 0;
  list-style: none;
}

.lc2r-prose .lc2r-materiaux li {
  position: relative;
  margin-bottom: 0.4em;
  padding-left: 1.3em;
}

.lc2r-prose .lc2r-materiaux li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--lc2r-accent);
}

.lc2r-c .lc2r-prose h3 {
  margin: 1.4em 0 0.4em;
  color: var(--lc2r-title);
  font-family: var(--lc2r-font);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
}

.lc2r-lead {
  color: var(--lc2r-title);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.5;
}

.lc2r-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.lc2r-c .lc2r-prose a {
  color: var(--lc2r-title);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Encadrés de la colonne de droite : cartes blanches. */
.lc2r-box {
  padding: 28px;
  border-radius: var(--lc2r-radius);
  background: var(--lc2r-surface);
  box-shadow: var(--lc2r-shadow);
}

.lc2r-c .lc2r-box__title {
  margin: 0 0 20px;
  color: var(--lc2r-title);
  font-family: var(--lc2r-font);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.lc2r-docs {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lc2r-c .lc2r-docs__link {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--lc2r-border);
  border-radius: 10px;
  color: var(--lc2r-title);
  transition: border-color 0.3s var(--lc2r-ease), background-color 0.3s var(--lc2r-ease);
}

.lc2r-c .lc2r-docs__link:hover {
  border-color: var(--lc2r-green);
  background: var(--lc2r-cream);
}

.lc2r-docs__link .lc2r-icon {
  width: 28px;
  height: 28px;
  color: var(--lc2r-accent-text);
}

.lc2r-docs__name {
  display: block;
  font-weight: 700;
  line-height: 1.35;
}

.lc2r-docs__meta {
  display: block;
  color: var(--lc2r-muted);
  font-size: 0.8125rem;
}

.lc2r-share {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lc2r-c .lc2r-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--lc2r-share);
  border-radius: 50%;
  background: var(--lc2r-share);
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s var(--lc2r-ease), background-color 0.3s var(--lc2r-ease), color 0.3s var(--lc2r-ease), border-color 0.3s var(--lc2r-ease);
}

.lc2r-c .lc2r-share__link[hidden] {
  display: none;
}

.lc2r-c .lc2r-share__link .lc2r-icon {
  width: 26px;
  height: 26px;
}

.lc2r-c .lc2r-share__link--outline {
  border-color: var(--lc2r-border);
  background: transparent;
  color: var(--lc2r-share);
}

.lc2r-c .lc2r-share__link:hover,
.lc2r-c .lc2r-share__link.is-copied {
  border-color: var(--lc2r-green);
  background: var(--lc2r-green);
  color: #fff;
  transform: translateY(-2px);
}

/* Fiche du projet : libellés en surtitres verts, deux groupes séparés. */
.lc2r-fiche {
  padding: 28px 32px;
}

.lc2r-fiche dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.lc2r-fiche dt {
  color: var(--lc2r-green-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lc2r-fiche dd {
  margin: 4px 0 0;
  color: var(--lc2r-title);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.lc2r-fiche__rule {
  height: 0;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--lc2r-border);
}

/* Sections du bas de page (avant/après, rapport, autres projets). */
.lc2r-section {
  padding: 0 var(--lc2r-page-gutter) clamp(48px, 6vw, 80px);
}

.lc2r-c .lc2r-section__title {
  margin: 0 0 36px;
  color: var(--lc2r-primary);
  font-family: var(--lc2r-font-title);
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.75rem);    /* 44 px : H2 de la charte */
  font-weight: 700;
  line-height: 1.15;
}

.lc2r-ba {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.lc2r-ba__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--lc2r-radius);
}

.lc2r-ba__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 625 / 300;
  object-fit: cover;
}

.lc2r-ba__item .lc2r-badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.lc2r-report {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
  border-radius: var(--lc2r-radius);
  background: var(--lc2r-surface);
  box-shadow: var(--lc2r-shadow);
}

.lc2r-c .lc2r-report__title {
  margin: 0 0 8px;
  color: var(--lc2r-title);
  font-family: var(--lc2r-font);
  font-size: 1.5625rem;
  font-weight: 700;
  line-height: 1.3;
}

.lc2r-report p {
  margin: 0;
  color: var(--lc2r-text);
}

.lc2r-report__size {
  opacity: 0.85;
}

.lc2r-c .lc2r-report__btn {
  min-width: min(100%, 220px);
}

.lc2r-grid--mini {
  --lc2r-gap-x: 30px;
}

@media (max-width: 1024px) {
  .lc2r-single__layout,
  .lc2r-single--actualite .lc2r-single__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .lc2r-hero--band .lc2r-hero__media {
    width: 75%;
  }
}

@media (max-width: 767px) {
  .lc2r-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .lc2r-hero__text {
    padding: 32px var(--lc2r-page-gutter);
  }

  .lc2r-hero:not(.lc2r-hero--band) .lc2r-hero__text::before {
    display: none;
  }

  .lc2r-hero__media {
    order: -1;                   /* image en premier sur mobile */
    max-height: 320px;
  }

  /* Bandeau réalisation : la photo passe au-dessus, fondue vers le bas. */
  .lc2r-hero--band .lc2r-hero__media {
    position: relative;
    width: 100%;
    height: 240px;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
  }

  .lc2r-hero--band .lc2r-hero__text {
    min-height: 0;
    padding-top: 8px;
  }

  .lc2r-hero__head {
    flex-direction: column;
    gap: 12px;
  }

  .lc2r-date {
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
    min-width: 0;
    padding: 8px 14px;
  }

  .lc2r-date__day {
    font-size: 1.5rem;
  }

  .lc2r-ba {
    grid-template-columns: minmax(0, 1fr);
  }

  .lc2r-ba__item img {
    aspect-ratio: 4 / 3;
  }

  .lc2r-mini__media {
    flex-basis: 110px;
  }

  .lc2r-report {
    padding: 24px 22px;
  }

  .lc2r-c .lc2r-report__btn {
    width: 100%;
  }

  .lc2r-box,
  .lc2r-fiche {
    padding: 22px;
  }
}

/* --------------------------------------------------------------------------
   Carte des réalisations et des coopérations ([lc2r_carte], 1.8.0)
   Mer vert pâle, terres crème, France légèrement plus soutenue.
   Pins : goutte orange = lieu d'exposition d'une réalisation ;
          rond bleu = coopération ; losange vert = siège du LC2R.
   -------------------------------------------------------------------------- */

.lc2r-carte {
  --lc2r-sea: #d5e0f0;          /* bleu doux soutenu */
  --lc2r-land: #fffdf9;
  --lc2r-land-fr: #f8e9df;      /* France : teinte orangée douce */
  --lc2r-border-land: #a9b8a8;  /* vert LC2R adouci */
  --lc2r-pin-real: var(--lc2r-accent);
  --lc2r-pin-coop: var(--lc2r-button);
  --lc2r-pin-siege: var(--lc2r-green);
}

.lc2r-carte__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.lc2r-carte__bar [hidden] {
  display: none;
}

.lc2r-carte__tabs,
.lc2r-carte__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Onglets : mêmes pavés que les filtres des listes. */
.lc2r-c .lc2r-carte__tab,
.lc2r-c .lc2r-carte__filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 10px 20px;
  border: 1px solid var(--lc2r-border);
  border-radius: var(--lc2r-radius-sm);
  background: var(--lc2r-surface);
  color: var(--lc2r-title);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.3s var(--lc2r-ease), color 0.3s var(--lc2r-ease), border-color 0.3s var(--lc2r-ease), opacity 0.3s var(--lc2r-ease);
}

.lc2r-c .lc2r-carte__tab:hover,
.lc2r-c .lc2r-carte__filter:hover {
  border-color: var(--lc2r-green);
  background: var(--lc2r-surface);
  color: var(--lc2r-title);
}

.lc2r-c .lc2r-carte__tab[aria-pressed="true"] {
  border-color: var(--lc2r-button);
  background: var(--lc2r-button);
  color: #fff;
}

/* Filtre désactivé : grisé et barré, le pin de la légende aussi. */
.lc2r-c .lc2r-carte__filter[aria-pressed="false"] {
  color: var(--lc2r-muted);
  text-decoration: line-through;
}

.lc2r-c .lc2r-carte__filter[aria-pressed="false"] .lc2r-carte__swatch {
  opacity: 0.35;
}

.lc2r-carte__count {
  font-weight: 500;
  color: var(--lc2r-muted);
}

.lc2r-carte__swatch {
  width: 20px;
  height: 22px;
  flex: none;
  overflow: visible;
}

/* Scène : les vues et la bulle. */
.lc2r-carte__stage {
  position: relative;
}

.lc2r-carte__vue {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--lc2r-radius);
  background: var(--lc2r-sea);
  box-shadow: var(--lc2r-shadow);
}

.lc2r-carte__vue + .lc2r-carte__vue {
  margin-top: 24px;              /* sans JS, les vues sont empilées */
}

.lc2r-carte.is-js .lc2r-carte__vue + .lc2r-carte__vue {
  margin-top: 0;
}

.lc2r-carte__vue[hidden] {
  display: none;
}

/* Titre de vue : visible seulement sans JS (avec JS, les onglets le remplacent). */
.lc2r-carte__caption {
  padding: 14px 20px 0;
  color: var(--lc2r-green-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lc2r-carte.is-js .lc2r-carte__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.lc2r-carte__svg {
  display: block;
  width: 100%;
  height: auto;
  /* Le doigt fait défiler la page ; le pincement est laissé à carte.js. */
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
}

/* Carte zoomée : le doigt déplace la carte au lieu de faire défiler la page. */
.lc2r-carte__vue.is-zoomed .lc2r-carte__svg {
  touch-action: none;
  cursor: grab;
}

.lc2r-carte__vue.is-dragging .lc2r-carte__svg {
  cursor: grabbing;
}

/* Boutons de zoom, en haut à droite de la carte. */
.lc2r-carte__zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--lc2r-radius-sm);
  background: var(--lc2r-surface);
  box-shadow: 0 2px 10px rgba(18, 63, 121, 0.15);
}

.lc2r-c .lc2r-carte__zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--lc2r-surface);
  color: var(--lc2r-title);
  font: inherit;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--lc2r-ease);
}

.lc2r-c .lc2r-carte__zoom-btn + .lc2r-carte__zoom-btn {
  border-top: 1px solid var(--lc2r-border);
}

.lc2r-c .lc2r-carte__zoom-btn:hover:not(:disabled) {
  background: var(--lc2r-sage);
  color: var(--lc2r-title);
}

.lc2r-c .lc2r-carte__zoom-btn:focus,
.lc2r-c .lc2r-carte__zoom-btn:active {
  background: var(--lc2r-surface);
  color: var(--lc2r-title);
  box-shadow: none;
}

.lc2r-c .lc2r-carte__zoom-btn:focus:hover:not(:disabled) {
  background: var(--lc2r-sage);
}

.lc2r-c .lc2r-carte__zoom-btn:disabled {
  color: #b6c0c9;
  cursor: default;
}

.lc2r-c .lc2r-carte__zoom-btn--reset {
  font-size: 1.125rem;
}

/* Rappel « Ctrl + molette » quand on fait tourner la molette sans Ctrl. */
.lc2r-carte__hint {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  padding: 10px 18px;
  border-radius: var(--lc2r-radius-sm);
  background: rgba(18, 41, 92, 0.85);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s var(--lc2r-ease);
}

.lc2r-carte__vue.show-hint .lc2r-carte__hint {
  opacity: 1;
}

.lc2r-carte__sea {
  fill: var(--lc2r-sea);
}

.lc2r-carte__land path {
  fill: var(--lc2r-land);
  stroke: var(--lc2r-border-land);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;   /* frontières de même épaisseur à tous les zooms */
  stroke-linejoin: round;
}

.lc2r-carte__land .is-fr {
  fill: var(--lc2r-land-fr);
}

/* Pins */
.lc2r-pin__shape {
  transform: scale(var(--lc2r-pin-scale, 1));
  transform-origin: 0 0;
  transform-box: view-box;
  transition: transform 0.25s var(--lc2r-ease);
}

.lc2r-pin {
  cursor: pointer;
  outline: none;
}

.lc2r-pin__body {
  stroke: #fff;
  stroke-width: 2;
}

.lc2r-pin__dot {
  fill: #fff;
}

.lc2r-pin--realisation .lc2r-pin__body {
  fill: var(--lc2r-pin-real);
}

.lc2r-pin--cooperation .lc2r-pin__body {
  fill: var(--lc2r-pin-coop);
}

.lc2r-pin--cooperation .lc2r-pin__halo {
  fill: var(--lc2r-pin-coop);
  opacity: 0.18;
}

.lc2r-pin--siege .lc2r-pin__body {
  fill: var(--lc2r-pin-siege);
}

.lc2r-pin--siege {
  pointer-events: none;
}

/* Survol, focus clavier, pin ouvert : il grossit un peu, ombre portée. */
a.lc2r-pin:hover .lc2r-pin__shape,
a.lc2r-pin:focus-visible .lc2r-pin__shape,
a.lc2r-pin.is-active .lc2r-pin__shape {
  transform: scale(calc(var(--lc2r-pin-scale, 1) * 1.3));
}

a.lc2r-pin:focus-visible .lc2r-pin__body,
a.lc2r-pin.is-active .lc2r-pin__body {
  stroke: var(--lc2r-title);
  stroke-width: 2.5;
}

a.lc2r-pin .lc2r-pin__shape {
  filter: drop-shadow(0 2px 3px rgba(18, 63, 121, 0.3));
}

.lc2r-pin.is-filtered,
.lc2r-lieu.is-filtered {
  display: none;
}

/* Coopérations : le halo « respire » doucement, comme la pastille « En cours ». */
.lc2r-carte.is-js .lc2r-pin--cooperation .lc2r-pin__halo {
  animation: lc2r-halo 2.8s var(--lc2r-ease) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes lc2r-halo {
  0% { opacity: 0.28; transform: scale(0.7); }
  70% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Bulle du lieu */
.lc2r-carte__popup {
  position: absolute;
  z-index: 5;
  width: min(340px, calc(100% - 16px));
  border-radius: 14px;
  background: var(--lc2r-surface);
  box-shadow: 0 14px 36px rgba(18, 63, 121, 0.22);
  animation: lc2r-popup 0.25s var(--lc2r-ease) both;
}

.lc2r-carte__popup[hidden] {
  display: none;
}

/* Petite pointe vers le pin. */
.lc2r-carte__popup::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: var(--lc2r-arrow-x, 50%);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--lc2r-surface);
  transform: rotate(45deg);
}

.lc2r-carte__popup.is-below::after {
  top: -7px;
  bottom: auto;
}

@keyframes lc2r-popup {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.lc2r-c .lc2r-carte__close {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--lc2r-title);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}

.lc2r-c .lc2r-carte__close:hover {
  background: var(--lc2r-sage);
  color: var(--lc2r-title);
}

/* Hello Elementor colore button:focus/:active en rose (#c36) : on neutralise. */
.lc2r-c .lc2r-carte__close:focus,
.lc2r-c .lc2r-carte__close:active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--lc2r-title);
  box-shadow: none;
}

.lc2r-c .lc2r-carte__close:focus-visible,
.lc2r-c .lc2r-carte__zoom-btn:focus-visible {
  outline: 2px solid var(--lc2r-button);
  outline-offset: 2px;
}

/* Légende */
.lc2r-carte__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 16px 0 0;
  padding: 0;
  color: var(--lc2r-muted);
  font-size: 0.9375rem;
  list-style: none;
}

.lc2r-carte__legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lc2r-carte__legend .lc2r-pin__body,
.lc2r-carte__filter .lc2r-pin__body {
  stroke: #fff;
  stroke-width: 2;
}

.lc2r-carte__swatch--realisation .lc2r-pin__body,
.lc2r-carte__filter--realisation .lc2r-pin__body {
  fill: var(--lc2r-pin-real);
}

.lc2r-carte__swatch--cooperation .lc2r-pin__body,
.lc2r-carte__filter--cooperation .lc2r-pin__body {
  fill: var(--lc2r-pin-coop);
}

.lc2r-carte__swatch--cooperation .lc2r-pin__halo,
.lc2r-carte__filter--cooperation .lc2r-pin__halo {
  fill: var(--lc2r-pin-coop);
  opacity: 0.18;
}

.lc2r-carte__swatch .lc2r-pin__dot,
.lc2r-carte__filter .lc2r-pin__dot {
  fill: #fff;
}

/* Les pins de la légende sont dessinés pointe en bas : le rond est recentré. */
.lc2r-carte__swatch--cooperation > *,
.lc2r-carte__filter--cooperation .lc2r-carte__swatch > * {
  transform: translateY(-14px);
}

.lc2r-carte__siege-key {
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: var(--lc2r-pin-siege);
  box-shadow: 0 0 0 2px #fff;
  transform: rotate(45deg);
}

/* Liste des lieux (et contenu de la bulle) */
.lc2r-carte__places {
  margin-top: clamp(40px, 5vw, 64px);
}

.lc2r-carte__places[hidden] {
  display: none;
}

.lc2r-c .lc2r-carte__places-title {
  margin: 0 0 24px;
  color: var(--lc2r-title);
  font-family: var(--lc2r-font);
  font-size: 1.375rem;
  font-weight: 700;
}

.lc2r-carte__places-title span {
  color: var(--lc2r-muted);
  font-weight: 500;
}

.lc2r-carte__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lc2r-lieu {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--lc2r-radius);
  background: var(--lc2r-surface);
  box-shadow: var(--lc2r-shadow);
  scroll-margin-top: 120px;
}

/* Fiche ciblée depuis un pin (sans JS) : liseré de la couleur du pin. */
.lc2r-lieu:target {
  box-shadow: 0 0 0 3px var(--lc2r-pin-real), var(--lc2r-shadow-hover);
}

.lc2r-lieu--cooperation:target {
  box-shadow: 0 0 0 3px var(--lc2r-pin-coop), var(--lc2r-shadow-hover);
}

.lc2r-lieu__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lc2r-lieu__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px 22px;
}

.lc2r-lieu__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--lc2r-green-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Pastille de la couleur du pin devant le surtitre. */
.lc2r-lieu__kicker::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 50% 0;
  background: var(--lc2r-pin-real);
  transform: rotate(-45deg);
}

.lc2r-lieu--cooperation .lc2r-lieu__kicker::before {
  border-radius: 50%;
  background: var(--lc2r-pin-coop);
  transform: none;
}

.lc2r-c .lc2r-lieu__title {
  margin: 0;
  color: var(--lc2r-title);
  font-family: var(--lc2r-font);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.lc2r-c .lc2r-lieu__title a {
  color: inherit;
}

.lc2r-c .lc2r-lieu__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lc2r-lieu__sub,
.lc2r-lieu__excerpt,
.lc2r-lieu__partners {
  margin: 0;
  color: var(--lc2r-text);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.lc2r-lieu__sub {
  color: var(--lc2r-title);
  font-weight: 500;
}

.lc2r-lieu__partners span {
  color: var(--lc2r-title);
  font-weight: 600;
}

.lc2r-c .lc2r-lieu .lc2r-card__link {
  padding-top: 10px;
}

/* Dans la bulle : image plus basse, texte resserré, résumé coupé à 3 lignes. */
.lc2r-lieu--popup .lc2r-lieu__media img {
  aspect-ratio: 2 / 1;
  border-radius: 14px 14px 0 0;
}

.lc2r-lieu--popup .lc2r-lieu__body {
  padding: 16px 20px 18px;
}

.lc2r-lieu--popup .lc2r-lieu__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.lc2r-lieu--popup:not(:has(.lc2r-lieu__media)) .lc2r-lieu__body {
  padding-top: 18px;
  padding-right: 44px;             /* place du bouton fermer */
}

/* Petit écran : la bulle se place sous la carte, pleine largeur. */
@media (max-width: 640px) {
  .lc2r-carte__zoom {
    top: 8px;
    right: 8px;
  }

  .lc2r-c .lc2r-carte__zoom-btn {
    width: 36px;
    height: 36px;
  }

  .lc2r-carte__bar {
    gap: 12px;
  }

  .lc2r-c .lc2r-carte__tab,
  .lc2r-c .lc2r-carte__filter {
    padding: 8px 14px;
    font-size: 0.9375rem;
  }

  .lc2r-carte__vue {
    border-radius: 14px;
  }

  .lc2r-carte__popup {
    position: relative;
    width: 100%;
    margin-top: 12px;
  }

  .lc2r-carte__popup::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lc2r-carte .lc2r-pin__halo {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lc2r-c *,
  .lc2r-c *::before {
    transition-duration: 0.01ms;
    animation: none;
  }

  .lc2r-reveal {
    opacity: 1;
    transform: none;
  }

  .lc2r-card:hover .lc2r-card__media img,
  .lc2r-mini:hover .lc2r-mini__media img,
  .lc2r-pub:hover .lc2r-pub__media img {
    transform: none;
  }
}

/* ------------------------------------------------------------------
   Modèle 3D d'une réalisation (1.9.0) : aperçu + bouton, puis la
   visionneuse <model-viewer> à la même place, sur fond crème.
   ------------------------------------------------------------------ */
.lc2r-modele3d {
  margin: 0;
}

.lc2r-modele3d__stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--lc2r-radius);
  background: radial-gradient(circle at 50% 40%, var(--lc2r-surface) 0%, var(--lc2r-cream) 70%);
  box-shadow: var(--lc2r-shadow);
}

.lc2r-modele3d__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.lc2r-modele3d__stage:has(.lc2r-modele3d__poster)::after {
  /* voile léger pour que le bouton reste lisible sur n'importe quel aperçu */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 41, 92, 0) 40%, rgba(18, 41, 92, 0.35) 100%);
  pointer-events: none;
}

.lc2r-modele3d.is-ready .lc2r-modele3d__stage::after,
.lc2r-modele3d.is-error .lc2r-modele3d__stage::after {
  display: none;
}

.lc2r-c .lc2r-modele3d__btn {
  position: relative;
  z-index: 1;
  gap: 10px;
}

.lc2r-modele3d__btn .lc2r-icon {
  flex: none;
}

.lc2r-modele3d__size {
  font-weight: 400;
  opacity: 0.85;
}

.lc2r-modele3d.is-loading .lc2r-modele3d__btn {
  cursor: progress;
}

.lc2r-modele3d__viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  --progress-bar-color: var(--lc2r-accent);
}

.lc2r-modele3d__viewer:focus-visible {
  outline: 3px solid var(--lc2r-accent);
  outline-offset: -3px;
}

.lc2r-modele3d__help,
.lc2r-modele3d__error {
  margin: 12px 0 0;
  color: var(--lc2r-text);
  font-size: 0.9375rem;
}

.lc2r-modele3d__error {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  text-align: center;
}

@media (max-width: 767px) {
  .lc2r-modele3d__stage {
    aspect-ratio: 4 / 3;
  }
}
