/* ==========================================================================
   Composant « Onglets process » — onglets 01–06 dans un cadre jaune, photo + texte + bouton
   CSS AUTONOME : préfixe hxt-, variables --hxt-*, aucune dépendance au custom.css du site.
   Import : Mammouth H-TIC → Importer mes JSON → ce fichier (champ CSS) + onglets-process.js (champ JS), SANS fichier JSON,
   « Nom du bloc » = onglets-process (ce bloc est remplacé à chaque réimport, sans toucher au reste du site).
   Responsive (pas de défilement dans la barre d'onglets) :
     > 1024 px  : 6 onglets sur une ligne, tailles fluides
     ≤ 1024 px  : grille 3 colonnes x 2 lignes, contenu empilé (photo puis texte)
     ≤ 420 px   : grille 2 colonnes x 3 lignes
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap");

.hxt-sec {
  --hxt-green: #2E7D50;                 /* fond */
  --hxt-yellow: #F6CD14;                /* onglet actif, pastille, texte en gras */
  --hxt-lime: #C7D93A;                  /* numéros 01. et trait de liaison */
  --hxt-frame: rgba(246, 205, 20, .72); /* cadre jaune des onglets */
  --hxt-ink: #12281C;
  --hxt-font: "Figtree", system-ui, sans-serif;
  --hxt-radius: 96px;                   /* grand arrondi bas-droite de la photo */
  position: relative;
  overflow: hidden;
  font-family: var(--hxt-font);
}
.hxt-sec *,
.hxt-sec *::before,
.hxt-sec *::after { box-sizing: border-box; }

/* ---------- Barre d'onglets : cadre jaune, 6 onglets sur une ligne ---------- */
.hxt-tabs { width: 100%; }
.hxt-tabs .e-n-tabs-heading {
  counter-reset: hxt-n;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: clamp(14px, 2.2vw, 28px) !important;
  position: relative;
  width: 100%;
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 4.4vw, 56px) clamp(16px, 1.8vw, 22px) !important;
  border: 1px solid var(--hxt-frame) !important;
  background: transparent !important;
  overflow: visible !important;           /* jamais de défilement dans la barre */
}
/* Neutralise les réglages d'origine d'Elementor (fonds, bordures, défilement horizontal) */
.hxt-tabs {
  --n-tabs-title-background-color-normal: transparent;
  --n-tabs-title-background-color-hover: transparent;
  --n-tabs-title-background-color-active: transparent;
  --n-tabs-title-border-width: 0;
  --n-tabs-heading-justify-content: space-between;
}
.hxt-tabs .e-n-tabs-heading::-webkit-scrollbar { display: none; }
.hxt-tabs .e-n-tab-title,
.hxt-tabs .e-n-tab-title:hover,
.hxt-tabs .e-n-tab-title:focus,
.hxt-tabs .e-n-tab-title[aria-selected="true"] { background: transparent !important; box-shadow: none !important; }

.hxt-tabs .e-n-tab-title {
  counter-increment: hxt-n;
  position: relative;
  display: flex !important;
  flex-direction: column !important;      /* numéro AU-DESSUS du titre */
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  flex: 0 1 auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: left;
  cursor: pointer;
}
.hxt-tabs .e-n-tab-title::before {        /* numéro 01. 02. … (décoratif) */
  content: counter(hxt-n, decimal-leading-zero) ".";
  display: block;
  font-family: var(--hxt-font);
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--hxt-lime);
  transition: color .2s ease;
}
.hxt-tabs .e-n-tab-title-text {
  display: block;
  font-family: var(--hxt-font);
  font-size: clamp(1.45rem, 2.35vw, 1.95rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.005em;
  color: #fff;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}
.hxt-tabs .e-n-tab-title:hover .e-n-tab-title-text { color: #FFF9B8; }
.hxt-tabs .e-n-tab-title[aria-selected="true"] .e-n-tab-title-text,
.hxt-tabs .e-n-tab-title[aria-selected="true"]::before { color: var(--hxt-yellow); }
.hxt-tabs .e-n-tab-title[aria-selected="true"] .e-n-tab-title-text { font-weight: 700; }
.hxt-tabs .e-n-tab-title[aria-selected="true"]::after {   /* trait de liaison vers le contenu, à cheval sur le cadre */
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 42px;
  margin-top: 4px;
  background: var(--hxt-lime);
  pointer-events: none;
}

/* ---------- Panneaux ---------- */
.hxt-tabs .e-n-tabs-content { margin-top: 0; }
.hxt-panel { animation: hxt-fade .55s ease both; }
@keyframes hxt-fade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Photo : angles droits, grand arrondi en bas à droite */
.hxt-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 0 0 var(--hxt-radius) 0;
}
.hxt-media .elementor-widget-container { width: 100%; }

/* Texte : colonne resserrée, décalée du bord droit comme sur le modèle */
.hxt-copy { margin-right: 6%; }
.hxt-text,
.hxt-text p { font-family: var(--hxt-font) !important; color: #fff; }
.hxt-text p { margin: 0 0 1.35em; }
.hxt-text p:last-child { margin-bottom: 0; }
.hxt-text strong { color: var(--hxt-yellow); font-weight: 700; }
.hxt-text a { color: var(--hxt-yellow); text-decoration: underline; text-underline-offset: 3px; }

/* Bouton : pastille jaune à flèche + libellé en capitales */
.hxt-btn .elementor-button { font-family: var(--hxt-font) !important; letter-spacing: .02em; justify-content: flex-start; text-align: left; }
.hxt-btn .elementor-button-content-wrapper { align-items: center; }
.hxt-btn .elementor-button-text { display: inline-flex; align-items: center; gap: 16px; text-align: left; }
.hxt-btn .elementor-button-text::before {
  content: "→";
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--hxt-yellow);
  color: var(--hxt-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform .25s ease;
}
.hxt-btn .elementor-button:hover .elementor-button-text::before { transform: translateX(4px); }

/* Apparition au scroll (active seulement si le JS a posé .hxt-js sur <html>) */
.hxt-js .hxt-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.hxt-js .hxt-reveal.hxt-in { opacity: 1; transform: none; }
body.elementor-editor-active .hxt-reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Accessibilité ---------- */
.hxt-tabs .e-n-tab-title:focus-visible,
.hxt-btn .elementor-button:focus-visible,
.hxt-text a:focus-visible { outline: 3px solid var(--hxt-yellow); outline-offset: 4px; }

/* ---------- Tablette et mobile : grille 3 x 2, contenu empilé, pas de défilement ---------- */
@media (max-width: 1024px) {
  .hxt-tabs .e-n-tabs-heading {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px 18px !important;
    padding: 22px 26px 18px !important;
  }
  .hxt-tabs .e-n-tab-title { flex: none !important; padding: 0 0 6px !important; border-bottom: 2px solid transparent !important; }
  .hxt-tabs .e-n-tab-title[aria-selected="true"] { border-bottom-color: var(--hxt-yellow) !important; }
  .hxt-tabs .e-n-tab-title[aria-selected="true"]::after { display: none; }   /* plus de trait de liaison : l'onglet actif est souligné */
  .hxt-tabs .e-n-tab-title-text { font-size: clamp(1.3rem, 3.4vw, 1.7rem); }
  .hxt-panel { gap: 28px !important; padding-top: 32px !important; }
  .hxt-media,
  .hxt-copy { width: 100% !important; max-width: 100% !important; }
  .hxt-copy { margin-right: 0; }
  .hxt-photo img { aspect-ratio: 16 / 10; }
}

@media (max-width: 767px) {
  .hxt-tabs .e-n-tabs-heading { gap: 18px 12px !important; padding: 16px 16px 12px !important; }
  .hxt-tabs .e-n-tab-title-text { font-size: clamp(1.05rem, 5.2vw, 1.3rem); }
  .hxt-tabs .e-n-tab-title::before { font-size: .85rem; }
  .hxt-panel { padding-top: 24px !important; gap: 22px !important; }
  .hxt-photo img { --hxt-radius: 56px; border-radius: 0 0 56px 0; }
  .hxt-btn .elementor-button-text { gap: 12px; }
  .hxt-btn .elementor-button-text::before { width: 30px; height: 30px; }
}

@media (max-width: 420px) {
  .hxt-tabs .e-n-tabs-heading { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .hxt-tabs .e-n-tab-title-text { font-size: 1.25rem; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .hxt-panel { animation: none; }
  .hxt-js .hxt-reveal { opacity: 1; transform: none; transition: none; }
  .hxt-tabs .e-n-tab-title-text,
  .hxt-tabs .e-n-tab-title::before,
  .hxt-btn .elementor-button-text::before { transition: none; }
}

/* ==========================================================================
   Page Contact — complément du custom.css du site (préfixe hxc-)
   Style : formulaire Elementor Pro (champs, listes, case à cocher, bouton), cartes d'information, carte Google Maps.
   Import : Mammouth H-TIC → Importer mes JSON → ce fichier (champ CSS), SANS fichier JSON, « Nom du bloc » = contact.
   (Les classes hx-… de la page — héros, sections, boutons, bandeau — viennent du custom.css du site, bloc « custom ».)
   Breakpoints Elementor : 1024 px (tablette) / 767 px (mobile).
   ========================================================================== */

.hxc-contact,
.hxc-mapsec {
  --hxc-ink: var(--hx-ink, #12281C);
  --hxc-green: var(--hx-green, #2E7D50);
  --hxc-yellow: var(--hx-yellow, #F6CD14);
  --hxc-cream: var(--hx-cream, #FFFEF0);
  --hxc-line: rgba(18, 40, 28, .18);
  --hxc-font: var(--hx-font-body, "Figtree", system-ui, sans-serif);
  --hxc-head: var(--hx-font-head, "Bricolage Grotesque", "Figtree", system-ui, sans-serif);
}

/* ---------- Cartes d'information (adresse, téléphone, e-mail) ---------- */
.hxc-info { transition: transform .25s ease, box-shadow .25s ease; }
.hxc-info:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(18, 40, 28, .12); }
.hxc-info { flex-direction: row !important; flex-wrap: nowrap !important; }
.hxc-info > .e-con { flex: 1 1 0; width: auto !important; min-width: 0; }   /* texte à droite de l'icône sur tous les écrans */
.hxc-info__icon { flex: none; width: auto !important; }
.hxc-info__label .elementor-heading-title { font-family: var(--hxc-head) !important; text-transform: none; }
.hxc-info__text p { margin: 0; }
.hxc-info__text a { color: var(--hxc-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Formulaire Elementor Pro ---------- */
.hxc-form .elementor-form { font-family: var(--hxc-font); }
.hxc-form .elementor-form-fields-wrapper { row-gap: 18px; }
.hxc-form .elementor-field-group { margin-bottom: 0; }
.hxc-form .elementor-field-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--hxc-font);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--hxc-ink);
}
.hxc-form .elementor-field-required .elementor-field-label::after { content: " *"; color: var(--hxc-green); }

.hxc-form .elementor-field-textual,
.hxc-form .elementor-field-group select,
.hxc-form .elementor-field-group textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid var(--hxc-line);
  border-radius: 14px;
  background: var(--hxc-cream);
  font-family: var(--hxc-font);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--hxc-ink);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.hxc-form .elementor-field-group textarea { min-height: 140px; resize: vertical; }
.hxc-form .elementor-field-textual::placeholder { color: rgba(18, 40, 28, .45); }
.hxc-form .elementor-field-textual:hover,
.hxc-form .elementor-field-group select:hover { border-color: rgba(46, 125, 80, .55); }
.hxc-form .elementor-field-textual:focus,
.hxc-form .elementor-field-group select:focus,
.hxc-form .elementor-field-group textarea:focus {
  outline: none;
  border-color: var(--hxc-green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(246, 205, 20, .35);
}
.hxc-form .elementor-select-wrapper { position: relative; }
.hxc-form .elementor-select-wrapper select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.hxc-form .elementor-select-wrapper .select-caret-down-wrapper { right: 16px; color: var(--hxc-green); }

/* Case de consentement */
.hxc-form .elementor-field-type-acceptance .elementor-field-subgroup { align-items: flex-start; }
.hxc-form .elementor-field-type-acceptance .elementor-field-option { display: flex; align-items: flex-start; gap: 12px; }
.hxc-form .elementor-field-type-acceptance input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--hxc-green);
  cursor: pointer;
}
.hxc-form .elementor-field-type-acceptance label { font-size: .92rem; line-height: 1.5; color: var(--hxc-ink); cursor: pointer; }

/* Bouton d'envoi : pilule jaune, comme les appels à l'action du site */
.hxc-form .elementor-field-type-submit { margin-top: 6px; }
.hxc-form .elementor-button[type="submit"] {
  min-height: 56px;
  padding: 16px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--hxc-yellow);
  color: var(--hxc-ink);
  font-family: var(--hxc-font);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(18, 40, 28, .18);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.hxc-form .elementor-button[type="submit"]:hover { background: #ffd93a; color: var(--hxc-ink); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18, 40, 28, .24); }
.hxc-form .elementor-button[type="submit"]:focus-visible { outline: 3px solid var(--hxc-green); outline-offset: 3px; }

/* Messages après envoi */
.hxc-form .elementor-message { margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; font-size: .95rem; font-weight: 600; }
.hxc-form .elementor-message-success { background: rgba(46, 125, 80, .12); color: var(--hxc-green); }
.hxc-form .elementor-message-danger,
.hxc-form .elementor-message-warning { background: rgba(190, 40, 40, .1); color: #8a1f1f; }

/* ---------- Carte Google Maps ---------- */
.hxc-map .elementor-custom-embed { border-radius: 32px; overflow: hidden; box-shadow: 0 22px 50px rgba(18, 40, 28, .16); }
.hxc-map iframe { display: block; width: 100%; border: 0; }

/* ---------- Tablette / mobile ---------- */
@media (max-width: 1024px) {
  .hxc-contact .hx-sticky { position: relative; top: auto; }
}
@media (max-width: 767px) {
  .hxc-form .elementor-field-group { width: 100% !important; }      /* une colonne : tous les champs pleine largeur */
  .hxc-form .elementor-button[type="submit"] { width: 100%; }
  .hxc-map .elementor-custom-embed { border-radius: 22px; }
  .hxc-info { padding: 14px 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hxc-info,
  .hxc-form .elementor-field-textual,
  .hxc-form .elementor-button[type="submit"] { transition: none; }
  .hxc-info:hover,
  .hxc-form .elementor-button[type="submit"]:hover { transform: none; }
}
