/* ============================================================
   SECTIONS EN GRILLE — Système de layout générique (1 à 5 col.)
   ============================================================
   Une seule logique, deux modes — et les MÊMES modificateurs
   fonctionnent dans les deux (posés sur "l'hôte" porteur de
   .column-N : la section en mode A, la row en mode B).

   MODE A — Section multi-rows
     .et_pb_section.column-N  → la SECTION est la grille.
     Cellule = .et_pb_row.  Titre = 1re row (sauf .without-title).

   MODE B — Row unique, modules en colonnes
     .et_pb_row.column-N      → la ROW est la grille.
     Cellule = .et_pb_blurb.  Titre éventuel = row Divi au-dessus.

   MODIFICATEURS — sur l'hôte (.column-N), valables A ET B
     .bg-full        → pleine largeur écran, sans gap (mosaïque)
     .with-hover     → design "photo plein cadre + texte sur l'image"
     .home-secteur   → design "picto centré sur fond photo" (variante)
     .without-title  → mode A : pas de row titre (inerte en mode B)
     .bg-gris / .bg-dark / .bg-white → couleur de fond du bandeau

   MODIFICATEUR DE MODULE (sur le blurb lui-même)
     .encart         → carte CTA plein couleur (picto centré + bouton)

   design "PHOTO" vs COMPORTEMENT
     - le design (châssis + overlay + texte-sur-image) s'active sur
       .with-hover OU .home-secteur. C'est elle qui fait "le design".
     - Le HOVER (révélation du texte + montée du picto) est piloté
       par la PRÉSENCE de .text-back, pas par une classe :
         * pas de .text-back  → même design, mais rien ne bouge ;
         * une .text-back      → repli/déploiement au survol.

   LIEN PLEIN-CARTE (.card-link)
     - Carte cliquable sur TOUTE sa surface, dans tous les modes,
       par la SEULE présence d'un <a class="card-link"> dans la
       carte (aucune classe à poser sur la row/section).

   designs DE CELLULE
     - Mode A             → carte image plein cadre (par défaut)
     - Mode B + with-hover → idem (mosaïque)
     - Mode B + home-secteur → picto centré sur fond photo
     - Mode B sans design    → carte empilée (image haut + contenu)
                              + variante .encart (carte CTA)
   ============================================================ */


/* ============================================================
   1. TOKENS — variables de composant
   ============================================================ */
[class*="column-"] {
  /* — Structure — */
  --col-gap:          24px;
  --row-gap:          48px;
  --col-width:        80%;
  --col-max:          1366px;
  --col-pad-y:        60px;
  --col-radius:       var(--radius, 12px);
  --col-card-ratio:   4 / 3;   /* ratio des cartes image */
  --col-card-home-ratio: 16 / 8; /* ratio des cartes image sur home-secteur */

  /* — Couleurs — */
  --col-card-bg:      #323e48;
  --col-card-light:   #ffffff;
  --col-accent:       #f5b301;
  --col-meta:         #88a0b6;
  --col-text-on-card: #ffffff;

  /* — Overlay des cartes image — */
  --col-overlay:       linear-gradient(180deg,  rgba(0, 0, 0, .3) 100%);
  --col-hover-overlay: linear-gradient(180deg,  rgba(0, 0, 0, .6) 100%);

  /* — Coin bas-droit (triangle + chevron, home-secteur) — */
  --col-corner-size:      100px;
  --col-corner-glyph:     2.1rem;
  --col-corner-bg:        rgba(0, 0, 0, .55);
  --col-corner-bg-hover:  var(--col-card-light);
  --col-clamp: 4;   /* nb de lignes visibles de .text-back (responsive) */

  /* — Carte empilée (défaut) + carte CTA .encart — */
  --col-link:             var(--col-card-bg);  /* "En savoir plus" */
  --col-stack-accent-w:   4px;       /* liseré bas */
  --col-stack-pad:        1.25rem 1.5rem 1.5rem;
  --col-stack-hover-bg:   var(--col-card-bg);  /* fond contenu au survol */
  --col-stack-hover-text: var(--col-card-light);

  /* affordance sur l'image */
  --col-cta:              #f28f22;   /* orange : carré chevron + encart */
  --col-cta-text:         #ffffff;
  --col-cta-size:         46px;      /* carré chevron bas-gauche */
  --col-cta-glyph:        2.3rem;

  /* encart CTA */
  --col-encart-bg:        var(--col-cta);
  --col-encart-text:      var(--col-card-bg);
  --col-encart-icon:      3.5rem;
  --col-encart-btn-bg:    var(--col-card-bg);
  --col-encart-btn-text:  var(--col-card-light);
  --col-stack-encart-pad: 1.25rem 3.25rem 1.5rem;
  --col-encart-gap: 1.31rem;
}

/* Nombre de colonnes — sur .et_pb_section OU sur .et_pb_row */
.column-1 { --grid-cols: 1fr; }
.column-2 { --grid-cols: repeat(2, 1fr); }
.column-3 { --grid-cols: repeat(3, 1fr); }
.column-4 { --grid-cols: repeat(4, 1fr); }
.column-5 { --grid-cols: repeat(5, 1fr); }


/* ============================================================
   2. MODE A — la section est la grille (rows = cellules)
   ============================================================ */
.et_pb_section[class*="column-"] {
  display: grid;
  grid-template-columns: var(--grid-cols);
  gap: var(--col-gap);
  width: var(--col-width);
  max-width: var(--col-max);
  margin: 0 auto !important;
  padding: var(--col-pad-y) 0;
}

.et_pb_section[class*="column-"] > .et_pb_row {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.et_pb_section[class*="column-"] > .et_pb_row > .et_pb_column {
  width: 100% !important;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}


/* ============================================================
   3. MODE B — la row est la grille (modules = cellules)
   ============================================================ */
.et_pb_row[class*="column-"] {
  width: var(--col-width);
  max-width: var(--col-max);
  margin: 0 auto !important;
}

.et_pb_row[class*="column-"] > .et_pb_column {
  display: grid;
  grid-template-columns: var(--grid-cols);
  column-gap: var(--col-gap);
  row-gap: var(--row-gap);
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.et_pb_row[class*="column-"] > .et_pb_column > .et_pb_module {
  width: 100% !important;
  height: 100%;
  margin: 0 !important;
}

.et_pb_row[class*="column-"] .et_pb_blurb {
  margin: 0 !important;
  padding: 0 !important;
}


/* ============================================================
   4. MODIFICATEUR .bg-full — pleine largeur, sans gap
   ============================================================ */

/* — Mode A : l'hôte (section) déborde — */
.et_pb_section[class*="column-"].bg-full {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

/* — Mode B : l'hôte (row) déborde, et on libère la section parente — */
.et_pb_section:has(> .et_pb_row[class*="column-"].bg-full) {
  padding: 0 !important;
}

.et_pb_row[class*="column-"].bg-full {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.et_pb_row[class*="column-"].bg-full > .et_pb_column {
  gap: 0 !important;
}

/* — Cellules jointives : coins droits — */
.et_pb_section[class*="column-"].bg-full > .et_pb_row,
.et_pb_row[class*="column-"].bg-full .et_pb_blurb {
  border-radius: 0 !important;
}

/* — Couleurs de fond (indépendantes de bg-full) — */
.et_pb_section[class*="column-"].bg-gris  { background-color: var(--background-grey); }
.et_pb_section[class*="column-"].bg-dark  { background-color: var(--col-card-bg); }
.et_pb_section[class*="column-"].bg-white { background-color: #fff; }


/* ============================================================
   5. TITRE (mode A) — 1re row, désactivable par .without-title
   ============================================================ */
.et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row:first-child {
  grid-column: 1 / -1;
}

.et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row:first-child .et_pb_text :is(h2, h3) {
  margin: 0;
  font-weight: 700;
}

.et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row:first-child .et_pb_text :is(h2, h3)::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: .6rem;
  background: var(--col-accent);
}


/* ============================================================
   6. design "PHOTO" — châssis + overlay + texte-sur-image
   ============================================================
   S'active sur : mode A rows-cartes, ET mode B blurbs porteurs
   de .with-hover OU .home-secteur.
*/

/* — Châssis (design : with-hover OU home-secteur) — */
:is(
  .et_pb_section[class*="column-"].without-title > .et_pb_row,
  .et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row:not(:first-child),
  .et_pb_row[class*="column-"]:is(.with-hover, .home-secteur) .et_pb_blurb
) {
  position: relative;
  aspect-ratio: var(--col-card-ratio);
  border-radius: var(--col-radius);
  overflow: hidden;
  background-color: var(--col-card-bg);
}

:is(
  .et_pb_section[class*="column-"].without-title > .et_pb_row.bg-full,
  .et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row.bg-full:not(:first-child),
  .et_pb_row[class*="column-"].bg-full:is(.with-hover, .home-secteur) .et_pb_blurb
) {
  aspect-ratio: var(--col-card-home-ratio);
}

/* — Mode B : neutraliser le flux interne du blurb — */
.et_pb_row[class*="column-"]:is(.with-hover, .home-secteur) .et_pb_blurb_content {
  position: static;
  display: block;
  height: 100%;
  background: none;
  min-height: 0;
}

/* — Image : plein cadre, recouvrante (HORS home-secteur) — */
:is(
  .et_pb_section[class*="column-"].without-title > .et_pb_row,
  .et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row:not(:first-child),
  .et_pb_row[class*="column-"].with-hover:not(.home-secteur) .et_pb_blurb
) :is(.et_pb_image, .et_pb_main_blurb_image) {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  transition: opacity .4s ease;
}

:is(
  .et_pb_section[class*="column-"].without-title > .et_pb_row,
  .et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row:not(:first-child),
  .et_pb_row[class*="column-"].with-hover:not(.home-secteur) .et_pb_blurb
) :is(.et_pb_image, .et_pb_main_blurb_image) .et_pb_image_wrap,
:is(
  .et_pb_section[class*="column-"].without-title > .et_pb_row,
  .et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row:not(:first-child),
  .et_pb_row[class*="column-"].with-hover:not(.home-secteur) .et_pb_blurb
) :is(.et_pb_image, .et_pb_main_blurb_image) picture {
  display: block;
  width: 100%;
  height: 100%;
}

:is(
  .et_pb_section[class*="column-"].without-title > .et_pb_row,
  .et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row:not(:first-child),
  .et_pb_row[class*="column-"].with-hover:not(.home-secteur) .et_pb_blurb
) :is(.et_pb_image, .et_pb_main_blurb_image) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* — Dégradé de lisibilité (design : with-hover OU home-secteur) — */
:is(
  .et_pb_section[class*="column-"].without-title > .et_pb_row,
  .et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row:not(:first-child),
  .et_pb_row[class*="column-"]:is(.with-hover, .home-secteur) .et_pb_blurb
)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--col-overlay);
  pointer-events: none;
  transition: background .4s ease;
}

:is(
  .et_pb_section[class*="column-"].without-title > .et_pb_row:hover,
  .et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row:not(:first-child):hover,
  .et_pb_row[class*="column-"]:is(.with-hover, .home-secteur) .et_pb_blurb:hover
)::before {
  background: var(--col-hover-overlay);
}

/* — Texte en surimpression (design : with-hover OU home-secteur) — */
:is(
  .et_pb_section[class*="column-"].without-title > .et_pb_row,
  .et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row:not(:first-child),
  .et_pb_row[class*="column-"]:is(.with-hover, .home-secteur) .et_pb_blurb
) :is(.et_pb_text, .et_pb_blurb_container) {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  margin: 0 !important;
  padding: 1.5rem !important;
  color: var(--col-text-on-card);
}
/* debug wprocket */
.et-db #page-container #et-boc .home-secteur .et_pb_blurb_container {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  margin: 0 !important;
  padding: 1.5rem !important;
  color: var(--col-text-on-card);
}



:is(
  .et_pb_section[class*="column-"].without-title > .et_pb_row,
  .et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row:not(:first-child),
  .et_pb_row[class*="column-"]:is(.with-hover, .home-secteur) .et_pb_blurb
) :is(h2, h3, h4) {
  margin: 0 !important;
  color: var(--col-text-on-card) !important;
  font-weight: bold;
  font-size: 1.5rem !important;
}
/* debug wprocket */
.et-db #page-container #et-boc .home-secteur .et_pb_blurb_description h2,
.et-db #page-container #et-boc .home-secteur .et_pb_blurb_description h3,
.et-db #page-container #et-boc .home-secteur .et_pb_blurb_description h2.h3 {
  margin: 0 !important;
  color: var(--col-text-on-card) !important;
  font-weight: bold;
  font-size: 1.5rem !important;
}
@media (max-width: 450px) {
  .et-db #page-container #et-boc .home-secteur .et_pb_blurb_description h2,
  .et-db #page-container #et-boc .home-secteur .et_pb_blurb_description h3,
  .et-db #page-container #et-boc .home-secteur .et_pb_blurb_description h2.h3 {
    font-size: 1.2rem !important;
  }
}
@media (max-width: 375px) {
  .et-db #page-container #et-boc .home-secteur .et_pb_blurb_description h2,
  .et-db #page-container #et-boc .home-secteur .et_pb_blurb_description h3,
  .et-db #page-container #et-boc .home-secteur .et_pb_blurb_description h2.h3 {
    font-size: 1.1rem !important;
  }
}



/* ============================================================
   7. SURVOL — révélation de .text-back
   ============================================================

/* — Description repliée par défaut — */
:is(
  .et_pb_section[class*="column-"].with-hover.without-title > .et_pb_row,
  .et_pb_section[class*="column-"].with-hover:not(.without-title) > .et_pb_row:not(:first-child),
  .et_pb_row[class*="column-"]:is(.with-hover, .home-secteur) .et_pb_blurb
) .text-back {
  opacity: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .3s ease, max-height .4s ease, margin-top .3s ease;
}

/* — Description révélée au survol — */
:is(
  .et_pb_section[class*="column-"].with-hover.without-title > .et_pb_row,
  .et_pb_section[class*="column-"].with-hover:not(.without-title) > .et_pb_row:not(:first-child),
  .et_pb_row[class*="column-"]:is(.with-hover, .home-secteur) .et_pb_blurb
):hover .text-back {
  opacity: 1;
  max-height: 400px;
  margin-top: .75rem;
  font-size: .812rem;
  font-weight: 400;
  line-height: 20px;
  color: var(--col-text-on-card);
  pointer-events: auto;
  display: -webkit-box;
  -webkit-line-clamp: var(--col-clamp);
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition-delay: .05s;
  padding: 0;
}


/* ============================================================
   8. design "par défaut" — mode B
   ============================================================
   Image en haut (carré chevron orange bas-gauche ), contenu dessous (titre + desc + lien),
   liseré en bas. Survol : la zone contenu passe en sombre,
   texte en blanc.
   Variante .encart (classe sur le module).
*/

/* — Carte — */
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--col-card-light);
  overflow: hidden;
  border-bottom: var(--col-stack-accent-w) solid var(--col-card-bg);
  cursor: pointer;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb_content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* — Image cover (cartes photo, HORS encart) */
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:not(.encart) .et_pb_main_blurb_image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--col-card-ratio);
  margin: 0 !important;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:not(.encart) .et_pb_main_blurb_image > a,
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:not(.encart) .et_pb_main_blurb_image .et_pb_image_wrap,
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:not(.encart) .et_pb_main_blurb_image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:not(.encart) .et_pb_main_blurb_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* — Encoche blanche, ancrée sur le BAS de l'image (z-index:1) — */
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:not(.encart) .et_pb_main_blurb_image::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 13px;
  background-color: #fff;
  z-index: 1;
  -webkit-clip-path: polygon(0 0, 60% 0, calc(60% + 13px) 13px, 100% 13px, 100% 100%, 0 100%);
  clip-path: polygon(0 0, 60% 0, calc(60% + 13px) 13px, 100% 13px, 100% 100%, 0 100%);
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:not(.encart):hover .et_pb_main_blurb_image::before {
  background-color: var(--col-card-bg);
}

/* — Chevron orange, ancré sur le BAS de l'image (z-index:2) — */
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:not(.encart) .et_pb_main_blurb_image::after {
  font-family: 'ETMODULES';
  content: '\35';
  color: #fff;
  font-size: var(--col-cta-glyph);
  position: absolute;
  bottom: -10px;
  left: 18px;
  height: var(--col-cta-size);
  width: var(--col-cta-size);
  background-color: #f28f22;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  padding-bottom: 4px;
  padding-right: 2px;
  z-index: 2;
}

/* — Zone contenu — */
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb_container {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--col-stack-pad);
  background-color: var(--col-card-light);
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart .et_pb_blurb_container {
  padding: var(--col-stack-encart-pad);
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb_description {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:not(.encart) .et_pb_blurb_description{
  justify-content: space-between;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart .et_pb_blurb_description{
  row-gap: var(--col-encart-gap);
  justify-content: center;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb_description :is(h2, h3, h4) {
  margin: 0 0 .6rem !important;
  color: var(--col-card-bg) !important;
  font-weight: 700;
  transition: color .3s ease;
  font-size: 1.312rem !important;
  text-transform: inherit !important;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart .et_pb_blurb_description :is(h2, h3, h4) {
  font-size: 1.5rem !important;
  line-height: 1.25em !important;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart .et_pb_blurb_description :is(h2, h3)::before{
  content: "";
  width: 48px;
  height: 55px;
  position: relative;
  display: block;
  margin-bottom: 20px;
  background-image: url(/wp-content/uploads/fav-epsilon-cta-noir.svg);
  transform: translateX(-50%);
  left: 50%;
  top: 0;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart:hover .et_pb_blurb_description :is(h2, h3)::before{
  background-image: url(/wp-content/uploads/fav-epsilon-cta-orange.svg);
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart:hover{
  background-color: var(--col-card-bg);
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:hover .et_pb_blurb_description :is(h3, h4, .btn-small.variante) {
  color: var(--col-text-on-card) !important;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb_description p {
  margin: 0;
  transition: color .3s ease;
  font-size: 0.875rem;
  line-height: 1.42em;
}

/* — Lien "En savoir plus" (poussé en bas) + chevron — */
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .btn-small.variante {
  margin-top: auto;
  padding-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--col-link);
  font-weight: 700;
  cursor: pointer;
  transition: color .3s ease;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .btn-small.variante::after {
  content: "\35";
  font-family: "ETmodules";
  font-size: .85em;
  color: var(--col-accent);
}

/* — SURVOL : la zone contenu s'assombrit, texte en blanc — */
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:not(.encart):hover .et_pb_blurb_container {
  background-color: var(--col-stack-hover-bg);
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:not(.encart):hover .et_pb_blurb_description :is(h3, h4),
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:not(.encart):hover .et_pb_blurb_description p,
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb:not(.encart):hover .btn-small.variante {
  color: var(--col-stack-hover-text);
}


/* ------------------------------------------------------------
    VARIANTE .encart — carte CTA plein couleur
       (classe à poser sur le module blurb)
   ------------------------------------------------------------ */
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart {
  background-color: var(--col-encart-bg);
  border-bottom: 0;
  clip-path: polygon(0 0, calc(100% - 51px) 0, 100% 51px, 100% 100%, 0 100%);
}

/* picto */
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart .et_pb_main_blurb_image {
  display: flex;
  justify-content: center;
  margin: 0 !important;
  padding-top: 5.9rem;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart .et_pb_main_blurb_image .et_pb_image_wrap {
  display: inline-block;
  width: auto;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart .et_pb_main_blurb_image img {
  width: auto;
  height: var(--col-encart-icon);
  display: block;
}

/* contenu sombre sur fond couleur */
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart .et_pb_blurb_container {
  background-color: transparent;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart .et_pb_blurb_description :is(h3, h4),
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart .et_pb_blurb_description p {
  color: var(--col-encart-text);
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart:hover .et_pb_blurb_description :is(h3, h4),
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart:hover .et_pb_blurb_description p {
  color: var(--col-card-light);
}

/* bouton "Demandez un devis" */
.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart .et_pb_button_module_wrapper {
  padding-top: 1.25rem;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart .et_pb_button {
  display: inline-block;
  background-color: var(--col-encart-btn-bg) !important;
  color: var(--col-encart-btn-text) !important;
  padding: .8rem 1.6rem;
  border: 0 !important;
  border-radius: 0;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart:hover .et_pb_button{
  background-color: var(--col-cta) !important;
}

.et_pb_row[class*="column-"]:not(.with-hover):not(.home-secteur) .et_pb_blurb.encart .et_pb_button::after {
  display: none !important;
}


/* ============================================================
   SKIN home-secteur — MODE B : fond photo + picto centré
   ============================================================
   Variante de design. Visuel = picto SVG centré sur fond photo.
   Le COMPORTEMENT (montée du picto) est verrouillé sur la présence
   de .text-back : sans description, le picto reste statique.
   ------------------------------------------------------------ */

/* — Picto  */
.et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_blurb .et_pb_main_blurb_image {
  position: relative;
  z-index: 3;
}

/* — Centrage + montée ANIMÉE, calée sur celle de .text-back — */
.et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_main_blurb_image .et_pb_image_wrap {
  display: flex;
  justify-content: center;
  width: inherit;
  height: inherit;
  margin-top: 4rem;
  transition: margin-top .4s ease;   /* calé sur la max-height de .text-back (.4s) */
}

/* — Montée UNIQUEMENT si une description existe (sinon picto statique) — */
.et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_blurb:has(.text-back):hover .et_pb_main_blurb_image .et_pb_image_wrap {
  margin-top: 2rem;
  transition-delay: .05s;            /* même delay que .text-back au survol */
}

.et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_main_blurb_image .et_pb_image_wrap img {
  width: 7rem;
  height: 7rem;
}

/* — Texte centré sur toute la hauteur — */
.et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_blurb_container,
.et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_blurb_container .et_pb_blurb_description {
  height: 100%;
}

.et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_blurb_container .et_pb_blurb_description {
  padding-top: 5rem;
}
@media (max-width: 450px) {
  .et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_blurb_container .et_pb_blurb_description {
    padding-top: 4rem;
  }
}



.et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_blurb_description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_blurb_description .text-back {
  text-align: center;
}

/* — Coin bas-droit : triangle + chevron — */
.et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_blurb::after {
  content: "\35";
  font-family: "ETmodules";
  font-weight: normal;
  font-style: normal;
  font-size: var(--col-corner-glyph, 1.1rem);
  line-height: 1;
  color: var(--col-text-on-card);

  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;

  /* boîte carrée découpée en triangle bas-droit, chevron calé dans le coin */
  width: var(--col-corner-size, 58px);
  height: var(--col-corner-size, 58px);
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 .55rem .4rem 0;

  background: var(--col-corner-bg, rgba(0, 0, 0, .55));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  transition: background .3s ease;
}

.et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_blurb:hover::after {
  background: var(--col-corner-bg-hover, var(--col-accent));
  color: var(--col-card-bg);
}


/* ============================================================
   LIEN PLEIN-CARTE (.card-link) — générique, mode B
   ============================================================
   Carte entièrement cliquable par la SEULE présence d'un
   <a class="card-link"> dans le blurb (aucune classe à poser
   sur la row/section).
   ------------------------------------------------------------ */
.et_pb_row[class*="column-"] .et_pb_blurb {
  position: relative;
}

.et_pb_row[class*="column-"] .et_pb_blurb .card-link {
  position: absolute;
  inset: 0;
  z-index: 4;
}


/* ============================================================
   9. RESPONSIVE
   ============================================================
 */

@media(max-width: 1661px){
  .et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_main_blurb_image .et_pb_image_wrap{
    margin-top: 3rem;
  }

  .et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_main_blurb_image .et_pb_image_wrap img {
    width: 6rem;
    height: 6rem;
  }
}

@media(max-width: 1550px){
  [class*="column-"] { --col-clamp: 3; }
}

@media(max-width: 1400px){
  [class*="column-"] { --col-clamp: 2; }
}

@media(max-width: 1326px){
  .et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_main_blurb_image .et_pb_image_wrap{
    margin-top: 2rem;
  }

  .et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_main_blurb_image .et_pb_image_wrap img {
    width: 5rem;
    height: 5rem;
  }
}

@media (max-width: 1100px) {
  .column-3,
  .column-4,
  .column-5 { --grid-cols: repeat(2, 1fr); }
  [class*="column-"] { --col-clamp: 3; }
}

@media (max-width: 980px) {
  .et_pb_section[class*="column-"]:not(.bg-full) {
    width: 90%;
    margin: 4rem auto !important;
  }

  .et_pb_row[class*="column-"]:is(.with-hover, .home-secteur) .et_pb_blurb :is(h2, h3, h4) {
    text-align: center;
  }
}

@media(max-width: 768px){
  .et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_main_blurb_image .et_pb_image_wrap{
    margin-top: 1rem;
  }

  .et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_blurb::after{
    --col-corner-size: 71px;
    --col-corner-glyph: 1.8rem;
  }
}

@media (max-width: 600px) {
  [class*="column-"] { --grid-cols: 1fr; }

  .et_pb_section[class*="column-"]:not(.bg-full) { width: 90%; }

  /* — Cartes photo : ratio mobile — */
  :is(
    .et_pb_section[class*="column-"].without-title > .et_pb_row,
    .et_pb_section[class*="column-"]:not(.without-title) > .et_pb_row:not(:first-child),
    .et_pb_row[class*="column-"]:is(.with-hover, .home-secteur) .et_pb_blurb
  ) {
    aspect-ratio: 16 / 10;
  }

  /* — Mobile : ni survol ni description sur la "version avec hover" — */
  :is(
    .et_pb_section[class*="column-"].with-hover.without-title > .et_pb_row,
    .et_pb_section[class*="column-"].with-hover:not(.without-title) > .et_pb_row:not(:first-child),
    .et_pb_row[class*="column-"]:is(.with-hover, .home-secteur) .et_pb_blurb
  ) .text-back {
    display: none !important;
  }

  :is(
    .et_pb_section[class*="column-"].with-hover.without-title > .et_pb_row,
    .et_pb_section[class*="column-"].with-hover:not(.without-title) > .et_pb_row:not(:first-child),
    .et_pb_row[class*="column-"]:is(.with-hover, .home-secteur) .et_pb_blurb
  ):hover::before {
    background: var(--col-overlay);
  }

  /* — Mobile : home-secteur, picto plus petit + figé — */
  .et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_main_blurb_image .et_pb_image_wrap,
  .et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_blurb:has(.text-back):hover .et_pb_main_blurb_image .et_pb_image_wrap {
    margin-top: 1.5rem;
  }

  .et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_main_blurb_image .et_pb_image_wrap img {
    width: 4rem;
    height: 4rem;
  }
}

@media (max-width: 450px) {
  /* — Mobile : home-secteur, picto plus petit + figé — */
  .et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_main_blurb_image .et_pb_image_wrap,
  .et_pb_row[class*="column-"].home-secteur.bg-full .et_pb_blurb:has(.text-back):hover .et_pb_main_blurb_image .et_pb_image_wrap {
    margin-top: 1rem;
  }
}
