/* >>> HTE plaquiste */
/* =========================================================
   custom.css — site MARISOL (UN SEUL fichier pour toutes les pages)
   Charte issue de la maquette XD : rouge #ED3130, vert #499616, gris #EDEDED, police Poppins.
   Règles : toutes les classes sont préfixées « hx- » ; aucun sélecteur nu ; le style natif
   (couleurs, typos, espacements, largeurs) est réglé dans les JSON, ce fichier ne sert qu'aux
   effets (pseudo-éléments, survols, compteurs, habillage onglets/accordéon/formulaire, animations).
   Breakpoints Elementor : 1024 px (tablette) et 767 px (mobile).
   Import : onglet « Importer mes JSON » du plugin, SANS JSON, nom de bloc « custom ».
   ========================================================= */

/* GLOBAL PROPOSÉ — À VALIDER : police Poppins (à retirer si le thème la charge déjà).
   @import doit rester en tête de feuille. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --hx-red: #ED3130;
  --hx-red-dark: #C9201F;
  --hx-green: #008000;
  --hx-green-dark: #008000;
  --hx-grey: #EDEDED;
  --hx-black: #111111;
  --hx-ease: cubic-bezier(.22, .7, .2, 1);
  --hx-phone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/></svg>");
}

/* ---------------------------------------------------------
   1. Fil d'Ariane (JetBlocks)
   --------------------------------------------------------- */
.hx-breadcrumb .jet-breadcrumbs__content,
.hx-breadcrumb [class*="jet-breadcrumbs__item"] {
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  line-height: 1.5;
  color: #6b6b6b;
}
.hx-breadcrumb .jet-breadcrumbs__wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.hx-breadcrumb .jet-breadcrumbs__item-link { color: #444; text-decoration: none; transition: color .2s ease; }
.hx-breadcrumb .jet-breadcrumbs__item-link:hover { color: var(--hx-green); }
.hx-breadcrumb .jet-breadcrumbs__item-sep { margin: 0 .55em; color: var(--hx-red); }
.hx-breadcrumb .jet-breadcrumbs__item-target { color: var(--hx-red); font-weight: 500; }

/* ---------------------------------------------------------
   2. Hero : photo + encart rouge (maquette)
   --------------------------------------------------------- */
.hx-hero { position: relative; }
.hx-hero > .e-con-inner,
.hx-hero > .e-con { position: relative; z-index: 1; }
.hx-hero__box { position: relative; animation: hx-rise .9s var(--hx-ease) both; }
.hx-hero__box::after {                       /* flèche verte « descendre » */
  content: "↓";
  position: absolute; right: 22px; bottom: 16px;
  color: var(--hx-green); font-size: 1.5rem; font-weight: 700; line-height: 1;
  animation: hx-bob 2.6s ease-in-out infinite;
}
.hx-hero__title .elementor-heading-title { letter-spacing: -.01em; }
.hx-hero__intro p { margin: 0 0 .8em; }
.hx-hero__intro p:last-child { margin-bottom: 0; }
.hx-404__num .elementor-heading-title {      /* « 404 » en contour */
  -webkit-text-stroke: 2px #fff;
  -webkit-text-fill-color: transparent;
  letter-spacing: .02em;
  animation: hx-pulse 4.5s ease-in-out infinite;
}

/* ---------------------------------------------------------
   3. Boutons (vert plein / contour) : « + » animé
   --------------------------------------------------------- */
.hx-btn .elementor-button {
  letter-spacing: .02em;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .3s var(--hx-ease);
}
.hx-btn .elementor-button-text::after {
  content: "+";
  display: inline-block; margin-left: .7em; font-weight: 700;
  transition: transform .35s var(--hx-ease);
}
.hx-btn--phone .elementor-button-text::after { content: none; }
.hx-btn--phone .elementor-button-text::before {
  content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .6em; vertical-align: -.17em;
  background: currentColor;
  -webkit-mask: var(--hx-phone) center / contain no-repeat;
  mask: var(--hx-phone) center / contain no-repeat;
}
.hx-btn:hover .elementor-button { transform: translateY(-2px); }
.hx-btn:hover .elementor-button-text::after { transform: rotate(90deg); }
.hx-btn--green .elementor-button:hover { background-color: var(--hx-green-dark) !important; border-color: var(--hx-green-dark) !important; }
.hx-btn--outline .elementor-button:hover { background-color: var(--hx-green) !important; color: #fff !important; }
.hx-btn--outline-white .elementor-button:hover { background-color: #fff !important; color: var(--hx-red) !important; }
.hx-btn--white .elementor-button:hover { background-color: var(--hx-black) !important; color: #fff !important; border-color: var(--hx-black) !important; }

/* ---------------------------------------------------------
   4. Texte courant, puces rouges, liens internes
   --------------------------------------------------------- */
.hx-text p { margin: 0 0 1em; }
.hx-text p:last-child { margin-bottom: 0; }
.hx-text ul { list-style: none; margin: 0 0 1em; padding: 0; }
.hx-text ul:last-child { margin-bottom: 0; }
.hx-text ul li { position: relative; margin: 0 0 .6em; padding-left: 22px; }
.hx-text ul li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--hx-red);
}
.hx-text a {
  color: var(--hx-green); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color .2s ease;
}
.hx-text a:hover { color: var(--hx-red); }
.hx-hero .hx-text a,
.hx-section--cta .hx-text a { color: #fff; }
.hx-hero .hx-text a:hover,
.hx-section--cta .hx-text a:hover { color: var(--hx-black); }
.hx-section--cta .hx-text ul li::before { background: #fff; }
.hx-hero .hx-text ul li::before { background: #fff; }
.hx-linklist { columns: 2; column-gap: 40px; }
.hx-linklist li { break-inside: avoid; }
.hx-linklist a { text-decoration: none; }
.hx-linklist a::after { content: " →"; color: var(--hx-red); display: inline-block; transition: transform .25s var(--hx-ease); }
.hx-linklist a:hover::after { transform: translateX(4px); }

/* colonne titre collée à gauche pendant la lecture (desktop) */
@media (min-width: 1025px) {
  .hx-sticky { position: sticky; top: 120px; align-self: flex-start; }
}

/* ---------------------------------------------------------
   5. Cartes : équerres vertes de la maquette
   --------------------------------------------------------- */
.hx-card {
  border-top: 1px solid var(--hx-green);
  border-right: 1px solid var(--hx-green);
  background-image:
    linear-gradient(var(--hx-green), var(--hx-green)),
    linear-gradient(var(--hx-green), var(--hx-green));
  background-repeat: no-repeat;
  background-position: left top, right bottom;
  background-size: 1px 24px, 30px 1px;
  transition: transform .4s var(--hx-ease), box-shadow .4s ease, background-size .4s var(--hx-ease), opacity .7s var(--hx-ease), translate .7s var(--hx-ease);
}
.hx-card:hover {
  transform: translateY(-4px);
  background-size: 1px 60px, 70px 1px;
  box-shadow: 0 18px 32px -22px rgba(0, 0, 0, .4);
}
.hx-card--static:hover { transform: none; box-shadow: none; }
.hx-card__title .elementor-heading-title { display: flex; align-items: flex-start; gap: 14px; }
.hx-card__title .elementor-heading-title::before {   /* pictogramme « cloison » de la maquette */
  content: ""; flex: 0 0 26px; height: 34px; margin-top: 1px;
  border: 2px solid var(--hx-green); border-radius: 2px;
  background:
    linear-gradient(var(--hx-green), var(--hx-green)) center / 2px 100% no-repeat,
    radial-gradient(circle, var(--hx-green) 1.2px, transparent 1.6px) 0 0 / 50% 25%;
}
.hx-card .hx-text { font-size: .95rem; }

/* ---------------------------------------------------------
   6. Étapes numérotées « 01. » / critères cochés
   --------------------------------------------------------- */
.hx-steps { counter-reset: hx-step; }
.hx-step {
  counter-increment: hx-step;
  border-left: 3px solid var(--hx-red);
  transition: transform .35s var(--hx-ease), box-shadow .35s ease, opacity .7s var(--hx-ease), translate .7s var(--hx-ease);
}
.hx-step:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -22px rgba(0, 0, 0, .45); }
.hx-step .elementor-widget-container::before {
  content: counter(hx-step, decimal-leading-zero) ".";
  display: block; margin-bottom: 8px;
  color: var(--hx-red); font-size: 2.2rem; font-weight: 300; line-height: 1;
}
.hx-steps--check .hx-step { border-left-color: var(--hx-green); }
.hx-steps--check .hx-step .elementor-widget-container::before {
  content: ""; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 50%;
  background: var(--hx-green) 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='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / 62% no-repeat;
}

/* ---------------------------------------------------------
   7. Photos : ratios, cadre décalé, zoom doux, forme de la bande rouge
   --------------------------------------------------------- */
.hx-photo { position: relative; }
.hx-photo .elementor-widget-container { overflow: hidden; position: relative; z-index: 1; }
.hx-photo img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform .9s var(--hx-ease); }
.hx-photo:hover img { transform: scale(1.035); }
.hx-photo--4-3 img { aspect-ratio: 4 / 3; }
.hx-photo--16-9 img { aspect-ratio: 16 / 9; }
.hx-photo--square img { aspect-ratio: 1 / 1; }
.hx-photo--portrait img { aspect-ratio: 4 / 5; }
.hx-photo--frame::before {                    /* filet vert décalé */
  content: ""; position: absolute; inset: 0; z-index: 0;
  border: 2px solid var(--hx-green);
  transform: translate(14px, 14px);
  transition: transform .5s var(--hx-ease);
}
.hx-photo--frame:hover::before { transform: translate(8px, 8px); }
.hx-photo--portrait::before {                 /* forme noire de la maquette (« Qui sommes-nous ») */
  content: ""; position: absolute; z-index: -1;
  left: -34px; top: -34px; width: 74%; height: 56%;
  background: #000;
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
}
.hx-photo--portrait::after {
  content: ""; position: absolute; z-index: -1;
  right: -14px; top: -34px; width: 22%; height: 22%;
  border: 2px solid #000;
}
.hx-section--cta .hx-cta__photo { padding-left: 34px; padding-top: 34px; }

/* ---------------------------------------------------------
   8. Maillage interne : cartes photo + étiquette verte
   --------------------------------------------------------- */
.hx-rel .elementor-image-box-wrapper { position: relative; overflow: hidden; display: block; }
.hx-rel .elementor-image-box-img { width: 100% !important; margin: 0 !important; }
.hx-rel .elementor-image-box-img a { display: block; }
.hx-rel .elementor-image-box-img img {
  display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .9s var(--hx-ease);
}
.hx-rel:hover .elementor-image-box-img img { transform: scale(1.05); }
.hx-rel .elementor-image-box-content {
  position: absolute; left: 0; bottom: 0; max-width: 100%;
  padding: 10px 22px; background: var(--hx-green);
  transition: background-color .3s ease, padding .3s var(--hx-ease);
}
.hx-rel:hover .elementor-image-box-content { background: var(--hx-red); padding-right: 34px; }
.hx-rel .elementor-image-box-title { margin: 0; font-family: 'Poppins', sans-serif; font-size: .85rem; font-weight: 500; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase; }
.hx-rel .elementor-image-box-title a { color: #fff; text-decoration: none; }
.hx-rel .elementor-image-box-title a::after { content: "→"; display: inline-block; margin-left: .6em; transition: transform .3s var(--hx-ease); }
.hx-rel:hover .elementor-image-box-title a::after { transform: translateX(4px); }

/* ---------------------------------------------------------
   9. FAQ (accordéon natif)
   --------------------------------------------------------- */
.hx-faq .e-n-accordion-item { border: 0 !important; border-bottom: 1px solid #d6d6d6 !important; }
.hx-faq .e-n-accordion-item:first-child { border-top: 1px solid #d6d6d6 !important; }
.hx-faq .e-n-accordion-item-title {
  padding: 20px 6px !important; background: none !important; border: 0 !important;
  font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--hx-black);
  transition: color .25s ease;
}
.hx-faq .e-n-accordion-item-title:hover,
.hx-faq .e-n-accordion-item[open] > .e-n-accordion-item-title { color: var(--hx-red); }
.hx-faq .e-n-accordion-item-title-text { color: inherit; font: inherit; }
.hx-faq .e-n-accordion-item-title-icon { color: var(--hx-red); transition: transform .3s var(--hx-ease); }
.hx-faq .e-n-accordion-item-title-icon svg { fill: currentColor; }
.hx-faq .e-con { padding: 0 6px 24px; }

/* ---------------------------------------------------------
   10. Contact, confirmation
   --------------------------------------------------------- */
.hx-contact-form .elementor-field-label { font-family: 'Poppins', sans-serif; font-size: .85rem; font-weight: 500; }
.hx-contact-form .elementor-field-textual {
  padding: 13px 14px; background: #fff; border: 1px solid #c9c9c9; border-radius: 3px;
  font-family: 'Poppins', sans-serif; font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hx-contact-form .elementor-field-textual:focus { outline: 0; border-color: var(--hx-green); box-shadow: 0 0 0 3px rgba(73, 150, 22, .18); }
.hx-contact-form .elementor-button {
  padding: 14px 30px; border-radius: 3px; background: var(--hx-green); color: #fff;
  font-family: 'Poppins', sans-serif; font-size: .9rem; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
  transition: background-color .25s ease, transform .3s var(--hx-ease);
}
.hx-contact-form .elementor-button:hover { background: var(--hx-green-dark); transform: translateY(-2px); }
.hx-contact-form .elementor-message-success { color: var(--hx-green); font-weight: 500; }
.hx-contact-form .elementor-message-danger { color: var(--hx-red); }
.hx-coords p { margin: 0 0 .5em; }
.hx-map iframe { display: block; width: 100%; border: 0; filter: grayscale(.25); }
.hx-confirm__icon .elementor-icon { animation: hx-pop .7s var(--hx-ease) both; }

/* ---------------------------------------------------------
   10 bis. Structure des sections (ancres, alignements, séparateurs)
   --------------------------------------------------------- */
.hx-section { position: relative; scroll-margin-top: 90px; }
.hx-section--cta { overflow: hidden; }                               /* la forme noire reste dans la bande rouge */
.hx-section--confirm { text-align: center; }
.hx-section--text .hx-editorial,
.hx-section--text .hx-sticky { align-items: flex-start; }
.hx-section--split .hx-split,
.hx-cta__row { align-items: center; }
.hx-split { position: relative; }
.hx-section--steps .hx-steps,
.hx-section--cards .hx-cards,
.hx-rel-grid { align-items: stretch; }
.hx-section--faq .hx-faq { width: 100%; }
.hx-section--related .hx-rel-grid { justify-content: flex-start; }
.hx-breadcrumb-bar { border-bottom: 1px solid #ececec; }
.hx-h3 .elementor-heading-title { margin-top: .5em; }
.hx-h3:first-child .elementor-heading-title { margin-top: 0; }
.hx-hero--404 .hx-hero__box::after { content: none; }

/* ---------------------------------------------------------
   11. Apparition au scroll (la classe hx-js est posée par le JS : sans JS, tout reste visible)
   --------------------------------------------------------- */
.hx-js .hx-reveal { opacity: 0; translate: 0 22px; transition: opacity .7s var(--hx-ease), translate .7s var(--hx-ease), transform .4s var(--hx-ease), box-shadow .4s ease, background-size .4s var(--hx-ease); }
.hx-js .hx-reveal.is-in { opacity: 1; translate: 0 0; }

@keyframes hx-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes hx-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes hx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------------------------------------------------------
   12. Accessibilité, mouvement réduit, responsive
   --------------------------------------------------------- */
.hx-btn .elementor-button:focus-visible,
.hx-text a:focus-visible,
.hx-rel a:focus-visible,
.hx-faq .e-n-accordion-item-title:focus-visible,
.hx-breadcrumb a:focus-visible,
.hx-contact-form .elementor-button:focus-visible { outline: 2px solid var(--hx-green); outline-offset: 3px; }
.hx-hero .hx-btn .elementor-button:focus-visible,
.hx-section--cta .hx-btn .elementor-button:focus-visible { outline-color: #fff; }

@media (max-width: 1024px) {
  .hx-photo--portrait::before { left: -18px; top: -18px; }
  .hx-section--cta .hx-cta__photo { padding-left: 18px; padding-top: 18px; }
}
@media (max-width: 767px) {
  .hx-linklist { columns: 1; }
  .hx-photo--frame::before { transform: translate(8px, 8px); }
  .hx-hero__box::after { right: 14px; bottom: 10px; }
  .hx-step .elementor-widget-container::before { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-js .hx-reveal { opacity: 1; translate: 0 0; transition: none; }
  .hx-hero__box, .hx-hero__box::after, .hx-404__num .elementor-heading-title, .hx-confirm__icon .elementor-icon { animation: none; }
  .hx-btn .elementor-button, .hx-card, .hx-step, .hx-photo img, .hx-rel img { transition: none; }
  .hx-btn:hover .elementor-button, .hx-card:hover, .hx-step:hover, .hx-photo:hover img, .hx-rel:hover img { transform: none; }
}
/* <<< HTE plaquiste */

/* >>> HTE confirmation-contact */
/* =========================================================
   custom.css — site MARISOL (UN SEUL fichier pour toutes les pages)
   Charte issue de la maquette XD : rouge #ED3130, vert #499616, gris #EDEDED, police Poppins.
   Règles : toutes les classes sont préfixées « hx- » ; aucun sélecteur nu ; le style natif
   (couleurs, typos, espacements, largeurs) est réglé dans les JSON, ce fichier ne sert qu'aux
   effets (pseudo-éléments, survols, compteurs, habillage onglets/accordéon/formulaire, animations).
   Breakpoints Elementor : 1024 px (tablette) et 767 px (mobile).
   Import : onglet « Importer mes JSON » du plugin, SANS JSON, nom de bloc « custom ».
   ========================================================= */

/* GLOBAL PROPOSÉ — À VALIDER : police Poppins (à retirer si le thème la charge déjà).
   @import doit rester en tête de feuille. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --hx-red: #ED3130;
  --hx-red-dark: #C9201F;
  --hx-green: #499616;
  --hx-green-dark: #3A7811;
  --hx-grey: #EDEDED;
  --hx-black: #111111;
  --hx-ease: cubic-bezier(.22, .7, .2, 1);
  --hx-phone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/></svg>");
}

/* ---------------------------------------------------------
   1. Fil d'Ariane (JetBlocks)
   --------------------------------------------------------- */
.hx-breadcrumb .jet-breadcrumbs__content,
.hx-breadcrumb [class*="jet-breadcrumbs__item"] {
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  line-height: 1.5;
  color: #6b6b6b;
}
.hx-breadcrumb .jet-breadcrumbs__wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.hx-breadcrumb .jet-breadcrumbs__item-link { color: #444; text-decoration: none; transition: color .2s ease; }
.hx-breadcrumb .jet-breadcrumbs__item-link:hover { color: var(--hx-green); }
.hx-breadcrumb .jet-breadcrumbs__item-sep { margin: 0 .55em; color: var(--hx-red); }
.hx-breadcrumb .jet-breadcrumbs__item-target { color: var(--hx-red); font-weight: 500; }

/* ---------------------------------------------------------
   2. Hero : photo + encart rouge (maquette)
   --------------------------------------------------------- */
.hx-hero { position: relative; }
.hx-hero > .e-con-inner,
.hx-hero > .e-con { position: relative; z-index: 1; }
.hx-hero__box { position: relative; animation: hx-rise .9s var(--hx-ease) both; }
.hx-hero__box::after {                       /* flèche verte « descendre » */
  content: "↓";
  position: absolute; right: 22px; bottom: 16px;
  color: var(--hx-green); font-size: 1.5rem; font-weight: 700; line-height: 1;
  animation: hx-bob 2.6s ease-in-out infinite;
}
.hx-hero__title .elementor-heading-title { letter-spacing: -.01em; }
.hx-hero__intro p { margin: 0 0 .8em; }
.hx-hero__intro p:last-child { margin-bottom: 0; }
.hx-404__num .elementor-heading-title {      /* « 404 » en contour */
  -webkit-text-stroke: 2px #fff;
  -webkit-text-fill-color: transparent;
  letter-spacing: .02em;
  animation: hx-pulse 4.5s ease-in-out infinite;
}

/* ---------------------------------------------------------
   3. Boutons (vert plein / contour) : « + » animé
   --------------------------------------------------------- */
.hx-btn .elementor-button {
  letter-spacing: .02em;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .3s var(--hx-ease);
}
.hx-btn .elementor-button-text::after {
  content: "+";
  display: inline-block; margin-left: .7em; font-weight: 700;
  transition: transform .35s var(--hx-ease);
}
.hx-btn--phone .elementor-button-text::after { content: none; }
.hx-btn--phone .elementor-button-text::before {
  content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .6em; vertical-align: -.17em;
  background: currentColor;
  -webkit-mask: var(--hx-phone) center / contain no-repeat;
  mask: var(--hx-phone) center / contain no-repeat;
}
.hx-btn:hover .elementor-button { transform: translateY(-2px); }
.hx-btn:hover .elementor-button-text::after { transform: rotate(90deg); }
.hx-btn--green .elementor-button:hover { background-color: var(--hx-green-dark) !important; border-color: var(--hx-green-dark) !important; }
.hx-btn--outline .elementor-button:hover { background-color: var(--hx-green) !important; color: #fff !important; }
.hx-btn--outline-white .elementor-button:hover { background-color: #fff !important; color: var(--hx-red) !important; }
.hx-btn--white .elementor-button:hover { background-color: var(--hx-black) !important; color: #fff !important; border-color: var(--hx-black) !important; }

/* ---------------------------------------------------------
   4. Texte courant, puces rouges, liens internes
   --------------------------------------------------------- */
.hx-text p { margin: 0 0 1em; }
.hx-text p:last-child { margin-bottom: 0; }
.hx-text ul { list-style: none; margin: 0 0 1em; padding: 0; }
.hx-text ul:last-child { margin-bottom: 0; }
.hx-text ul li { position: relative; margin: 0 0 .6em; padding-left: 22px; }
.hx-text ul li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--hx-red);
}
.hx-text a {
  color: var(--hx-green); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color .2s ease;
}
.hx-text a:hover { color: var(--hx-red); }
.hx-hero .hx-text a,
.hx-section--cta .hx-text a { color: #fff; }
.hx-hero .hx-text a:hover,
.hx-section--cta .hx-text a:hover { color: var(--hx-black); }
.hx-section--cta .hx-text ul li::before { background: #fff; }
.hx-hero .hx-text ul li::before { background: #fff; }
.hx-linklist { columns: 2; column-gap: 40px; }
.hx-linklist li { break-inside: avoid; }
.hx-linklist a { text-decoration: none; }
.hx-linklist a::after { content: " →"; color: var(--hx-red); display: inline-block; transition: transform .25s var(--hx-ease); }
.hx-linklist a:hover::after { transform: translateX(4px); }

/* colonne titre collée à gauche pendant la lecture (desktop) */
@media (min-width: 1025px) {
  .hx-sticky { position: sticky; top: 120px; align-self: flex-start; }
}

/* ---------------------------------------------------------
   5. Cartes : équerres vertes de la maquette
   --------------------------------------------------------- */
.hx-card {
  border-top: 1px solid var(--hx-green);
  border-right: 1px solid var(--hx-green);
  background-image:
    linear-gradient(var(--hx-green), var(--hx-green)),
    linear-gradient(var(--hx-green), var(--hx-green));
  background-repeat: no-repeat;
  background-position: left top, right bottom;
  background-size: 1px 24px, 30px 1px;
  transition: transform .4s var(--hx-ease), box-shadow .4s ease, background-size .4s var(--hx-ease), opacity .7s var(--hx-ease), translate .7s var(--hx-ease);
}
.hx-card:hover {
  transform: translateY(-4px);
  background-size: 1px 60px, 70px 1px;
  box-shadow: 0 18px 32px -22px rgba(0, 0, 0, .4);
}
.hx-card--static:hover { transform: none; box-shadow: none; }
.hx-card__title .elementor-heading-title { display: flex; align-items: flex-start; gap: 14px; }
.hx-card__title .elementor-heading-title::before {   /* pictogramme « cloison » de la maquette */
  content: ""; flex: 0 0 26px; height: 34px; margin-top: 1px;
  border: 2px solid var(--hx-green); border-radius: 2px;
  background:
    linear-gradient(var(--hx-green), var(--hx-green)) center / 2px 100% no-repeat,
    radial-gradient(circle, var(--hx-green) 1.2px, transparent 1.6px) 0 0 / 50% 25%;
}
.hx-card__title[class*="ico-"] .elementor-heading-title::before {   /* pictogramme svg */
  border: none;
  height: 2.2lh;
  transform: translateY(-.1lh);
  aspect-ratio: 1 / 1;
  background: transparent;
  background: url("./ico/ico-default.svg") center / contain no-repeat;
}
.hx-card__title[class*="ico-"] .elementor-heading-title::before {
  border: none;
  height: 2.2lh;
  transform: translateY(-.1lh);
  aspect-ratio: 1 / 1;
  background: url("./ico/ico-default.svg") center / contain no-repeat;
}
.hx-card__title.ico-cloison                         .elementor-heading-title::before { background-image: url("./ico/ico-cloison-modulaire.svg"); }
.hx-card__title.ico-plancher-technique              .elementor-heading-title::before { background-image: url("./ico/ico-dalles-plancher-technique.svg"); }
.hx-card__title.ico-equipe                          .elementor-heading-title::before { background-image: url("./ico/ico-equipe.svg"); }
.hx-card__title.ico-plafond-chauffant               .elementor-heading-title::before { background-image: url("./ico/ico-plafond-chauffant.svg"); }
.hx-card__title.ico-plafond-suspendu                .elementor-heading-title::before { background-image: url("./ico/ico-faux-plafond-suspendu.svg"); }
.hx-card__title.ico-isolant-acoustique              .elementor-heading-title::before { background-image: url("./ico/ico-panneau-isolant-acoustique.svg"); }
.hx-card__title.ico-isolant-thermique-acoustique    .elementor-heading-title::before { background-image: url("./ico/ico-panneau-isolant-thermique-acoustique.svg"); }
.hx-card__title.ico-isolant-thermique               .elementor-heading-title::before { background-image: url("./ico/ico-panneau-isolant-thermique.svg"); }
.hx-card__title.ico-platre-visse                    .elementor-heading-title::before { background-image: url("./ico/ico-plaque-platre-visse.svg"); }
.hx-card__title.ico-porte                           .elementor-heading-title::before { background-image: url("./ico/ico-porte-interieure.svg"); }
.hx-card .hx-text { font-size: .95rem; }

/* ---------------------------------------------------------
   6. Étapes numérotées « 01. » / critères cochés
   --------------------------------------------------------- */
.hx-steps { counter-reset: hx-step; }
.hx-step {
  counter-increment: hx-step;
  border-left: 3px solid var(--hx-red);
  transition: transform .35s var(--hx-ease), box-shadow .35s ease, opacity .7s var(--hx-ease), translate .7s var(--hx-ease);
}
.hx-step:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -22px rgba(0, 0, 0, .45); }
.hx-step .elementor-widget-container::before {
  content: counter(hx-step, decimal-leading-zero) ".";
  display: block; margin-bottom: 8px;
  color: var(--hx-red); font-size: 2.2rem; font-weight: 300; line-height: 1;
}
.hx-steps--check .hx-step { border-left-color: var(--hx-green); }
.hx-steps--check .hx-step .elementor-widget-container::before {
  content: ""; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 50%;
  background: var(--hx-green) 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='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / 62% no-repeat;
}

/* ---------------------------------------------------------
   7. Photos : ratios, cadre décalé, zoom doux, forme de la bande rouge
   --------------------------------------------------------- */
.hx-photo { position: relative; }
.hx-photo .elementor-widget-container { overflow: hidden; position: relative; z-index: 1; }
.hx-photo img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform .9s var(--hx-ease); }
.hx-photo:hover img { transform: scale(1.035); }
.hx-photo--4-3 img { aspect-ratio: 4 / 3; }
.hx-photo--16-9 img { aspect-ratio: 16 / 9; }
.hx-photo--square img { aspect-ratio: 1 / 1; }
.hx-photo--portrait img { aspect-ratio: 4 / 5; }
.hx-photo--frame::before {                    /* filet vert décalé */
  content: ""; position: absolute; inset: 0; z-index: 0;
  border: 2px solid var(--hx-green);
  transform: translate(14px, 14px);
  transition: transform .5s var(--hx-ease);
}
.hx-photo--frame:hover::before { transform: translate(8px, 8px); }
.hx-photo--portrait::before {                 /* forme noire de la maquette (« Qui sommes-nous ») */
  content: ""; position: absolute; z-index: 0;
  left: -34px; top: -34px; width: 74%; height: 56%;
  background: #000;
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
  z-index: -1;
}
.hx-photo--portrait::after {
  content: ""; position: absolute; z-index: 0;
  right: -14px; top: -34px; width: 22%; height: 22%;
  border: 2px solid #000;
  z-index: -1;
}
.hx-section--cta .hx-cta__photo { padding-left: 34px; padding-top: 34px; }

/* ---------------------------------------------------------
   8. Maillage interne : cartes photo + étiquette verte
   --------------------------------------------------------- */
.hx-rel .elementor-image-box-wrapper { position: relative; overflow: hidden; display: block; }
.hx-rel .elementor-image-box-img { width: 100% !important; margin: 0 !important; }
.hx-rel .elementor-image-box-img a { display: block; }
.hx-rel .elementor-image-box-img img {
  display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .9s var(--hx-ease);
}
.hx-rel:hover .elementor-image-box-img img { transform: scale(1.05); }
.hx-rel .elementor-image-box-content {
  position: absolute; left: 0; bottom: 0; max-width: 100%;
  padding: 10px 22px; background: var(--hx-green);
  transition: background-color .3s ease, padding .3s var(--hx-ease);
}
.hx-rel:hover .elementor-image-box-content { background: var(--hx-red); padding-right: 34px; }
.hx-rel .elementor-image-box-title { margin: 0; font-family: 'Poppins', sans-serif; font-size: .85rem; font-weight: 500; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase; }
.hx-rel .elementor-image-box-title a { color: #fff; text-decoration: none; }
.hx-rel .elementor-image-box-title a::after { content: "→"; display: inline-block; margin-left: .6em; transition: transform .3s var(--hx-ease); }
.hx-rel:hover .elementor-image-box-title a::after { transform: translateX(4px); }

/* ---------------------------------------------------------
   9. FAQ (accordéon natif)
   --------------------------------------------------------- */
.hx-faq .e-n-accordion-item { border: 0 !important; border-bottom: 1px solid #d6d6d6 !important; }
.hx-faq .e-n-accordion-item:first-child { border-top: 1px solid #d6d6d6 !important; }
.hx-faq .e-n-accordion-item-title {
  padding: 20px 6px !important; background: none !important; border: 0 !important;
  font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--hx-black);
  transition: color .25s ease;
}
.hx-faq .e-n-accordion-item-title:hover,
.hx-faq .e-n-accordion-item[open] > .e-n-accordion-item-title { color: var(--hx-red); }
.hx-faq .e-n-accordion-item-title-text { color: inherit; font: inherit; }
.hx-faq .e-n-accordion-item-title-icon { color: var(--hx-red); transition: transform .3s var(--hx-ease); }
.hx-faq .e-n-accordion-item-title-icon svg { fill: currentColor; }
.hx-faq .e-con { padding: 0 6px 24px; }

/* ---------------------------------------------------------
   10. Contact, confirmation
   --------------------------------------------------------- */
.hx-contact-form .elementor-field-label { font-family: 'Poppins', sans-serif; font-size: .85rem; font-weight: 500; }
.hx-contact-form .elementor-field-textual {
  padding: 13px 14px; background: #fff; border: 1px solid #c9c9c9; border-radius: 3px;
  font-family: 'Poppins', sans-serif; font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hx-contact-form .elementor-field-textual:focus { outline: 0; border-color: var(--hx-green); box-shadow: 0 0 0 3px rgba(73, 150, 22, .18); }
.hx-contact-form .elementor-button {
  padding: 14px 30px; border-radius: 3px; background: var(--hx-green); color: #fff;
  font-family: 'Poppins', sans-serif; font-size: .9rem; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
  transition: background-color .25s ease, transform .3s var(--hx-ease);
}
.hx-contact-form .elementor-button:hover { background: var(--hx-green-dark); transform: translateY(-2px); }
.hx-contact-form .elementor-message-success { color: var(--hx-green); font-weight: 500; }
.hx-contact-form .elementor-message-danger { color: var(--hx-red); }
.hx-coords p { margin: 0 0 .5em; }
.hx-map iframe { display: block; width: 100%; border: 0; filter: grayscale(.25); }
.hx-confirm__icon .elementor-icon { animation: hx-pop .7s var(--hx-ease) both; }

/* ---------------------------------------------------------
   10 bis. Structure des sections (ancres, alignements, séparateurs)
   --------------------------------------------------------- */
.hx-section { position: relative; scroll-margin-top: 90px; }
.hx-section--cta { overflow: hidden; }                               /* la forme noire reste dans la bande rouge */
.hx-section--confirm { text-align: center; }
.hx-section--text .hx-editorial,
.hx-section--text .hx-sticky { align-items: flex-start; }
.hx-section--split .hx-split,
.hx-cta__row { align-items: center; }
.hx-split { position: relative; }
.hx-section--steps .hx-steps,
.hx-section--cards .hx-cards,
.hx-rel-grid { align-items: stretch; }
.hx-section--faq .hx-faq { width: 100%; }
.hx-section--related .hx-rel-grid { justify-content: center; }
.hx-breadcrumb-bar { border-bottom: 1px solid #ececec; }
.hx-h3 .elementor-heading-title { margin-top: .5em; }
.hx-h3:first-child .elementor-heading-title { margin-top: 0; }
.hx-hero--404 .hx-hero__box::after { content: none; }

/* ---------------------------------------------------------
   11. Apparition au scroll (la classe hx-js est posée par le JS : sans JS, tout reste visible)
   --------------------------------------------------------- */
.hx-js .hx-reveal { opacity: 0; translate: 0 22px; transition: opacity .7s var(--hx-ease), translate .7s var(--hx-ease), transform .4s var(--hx-ease), box-shadow .4s ease, background-size .4s var(--hx-ease); }
.hx-js .hx-reveal.is-in { opacity: 1; translate: 0 0; }

@keyframes hx-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes hx-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes hx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------------------------------------------------------
   12. Accessibilité, mouvement réduit, responsive
   --------------------------------------------------------- */
.hx-btn .elementor-button:focus-visible,
.hx-text a:focus-visible,
.hx-rel a:focus-visible,
.hx-faq .e-n-accordion-item-title:focus-visible,
.hx-breadcrumb a:focus-visible,
.hx-contact-form .elementor-button:focus-visible { outline: 2px solid var(--hx-green); outline-offset: 3px; }
.hx-hero .hx-btn .elementor-button:focus-visible,
.hx-section--cta .hx-btn .elementor-button:focus-visible { outline-color: #fff; }

@media (max-width: 1024px) {
  .hx-photo--portrait::before { left: -18px; top: -18px; }
  .hx-section--cta .hx-cta__photo { padding-left: 18px; padding-top: 18px; }
}
@media (max-width: 767px) {
  .hx-linklist { columns: 1; }
  .hx-photo--frame::before { transform: translate(8px, 8px); }
  .hx-hero__box::after { right: 14px; bottom: 10px; }
  .hx-step .elementor-widget-container::before { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-js .hx-reveal { opacity: 1; translate: 0 0; transition: none; }
  .hx-hero__box, .hx-hero__box::after, .hx-404__num .elementor-heading-title, .hx-confirm__icon .elementor-icon { animation: none; }
  .hx-btn .elementor-button, .hx-card, .hx-step, .hx-photo img, .hx-rel img { transition: none; }
  .hx-btn:hover .elementor-button, .hx-card:hover, .hx-step:hover, .hx-photo:hover img, .hx-rel:hover img { transform: none; }
}
/* <<< HTE confirmation-contact */