/* =========================================================
   HI-SOLUTION — composants spécifiques (chargé après style.css)
   ========================================================= */
.logo img { height: 48px; width: auto; }
.footer .logo img { height: 54px; }
.link { color: var(--primary); font-weight: 500; }
.link:hover { text-decoration: underline; }
.section-head__lead { margin-top: 16px; }
.btn--ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--bg); }

/* Hero */
.hero__kicker { display: block; margin-bottom: 18px; color: var(--white); }
.hero__kicker::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 26px; vertical-align: 1px;
  background: var(--accent-red); box-shadow: 14px 0 0 var(--accent-yellow);
}
.hero__title { margin-bottom: 24px; }
.hero__lead { max-width: 680px; margin: 0 auto 44px; font-size: 19px; color: rgba(255,255,255,.88); }
.hero__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Produits en ligne */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.product {
  background: var(--bg-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid transparent; transition: border-color .3s, transform .35s;
}
.product:hover { border-color: var(--primary); transform: translateY(-6px); }
.product__media { background: linear-gradient(135deg, #eef2ff, #ffffff); aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.product__media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.product__body { padding: 34px 36px 36px; display: flex; flex-direction: column; flex: 1; }
.product__brand { display: inline-flex; align-self: flex-start; background: var(--white); border-radius: var(--radius); padding: 8px 14px; margin-bottom: 18px; }
.product__brand img { height: 32px; width: auto; }
.product__body h3 { font-size: 30px; margin-bottom: 10px; }
.product__body > p { margin-bottom: 20px; }
.product__foot {
  margin-top: auto; padding-top: 26px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border);
}
.product__price { color: var(--text); }
.product__price strong { font-family: var(--font-head); font-size: 32px; color: var(--white); }

/* Catalogue logiciels */
.soft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.soft { background: var(--bg); border-radius: var(--radius); padding: 30px 26px; border-bottom: 3px solid transparent; transition: border-color .3s, transform .35s; }
.soft:hover { border-color: var(--primary); transform: translateY(-6px); }
.soft__ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(31,91,255,.14); color: var(--primary); margin-bottom: 20px; }
.soft__ic svg { width: 28px; height: 28px; }
.soft h3 { font-size: 22px; margin-bottom: 8px; }
.soft p { font-size: 15px; line-height: 1.6; }
.soft--more { background: var(--primary); }
.soft--more .soft__ic { background: rgba(255,255,255,.2); color: var(--white); }
.soft--more p { color: rgba(255,255,255,.9); }
.soft__link { display: inline-block; margin-top: 12px; color: var(--white); font-family: var(--font-head); font-weight: 700; }

/* Réalisations */
.works { display: flex; gap: 30px; }
.works .work { width: calc((100% - 60px) / 3); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.work { display: flex; flex-direction: column; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; transition: transform .35s; }
.work:hover { transform: translateY(-6px); }
.work.is-hidden { display: none; }
.work__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--white); }
.work__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s; }
.work:hover .work__img img { transform: scale(1.06); }
.work__body { padding: 24px 26px 28px; border-top: 3px solid var(--primary); flex: 1; }
.work__cat { font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--primary); }
.work__body h3 { font-size: 24px; margin: 4px 0 8px; transition: color .3s; }
.work:hover .work__body h3 { color: var(--primary); }
.work__body p { font-size: 15px; line-height: 1.6; }

/* Équipements */
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.equip { background: var(--bg-2); border-radius: var(--radius); overflow: hidden; transition: transform .35s; }
.section--alt .equip { background: var(--bg); }
.equip:hover { transform: translateY(-6px); }
.equip__img { background: var(--white); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 20px; overflow: hidden; }
.equip__img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .6s; }
.equip:hover .equip__img img { transform: scale(1.06); }
.equip__body { padding: 26px 28px 30px; border-top: 3px solid var(--primary); }
.equip__body h3 { font-size: 24px; margin-bottom: 8px; }
.equip__body p { font-size: 15px; line-height: 1.6; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pillar { text-align: center; background: var(--bg); border-radius: var(--radius); padding: 40px 24px; }
.pillar span {
  width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid var(--primary); font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--white);
}
.pillar:nth-child(even) span { border-color: var(--white); }
.pillar h3 { font-size: 24px; margin-bottom: 8px; }

.media-card { border-radius: var(--radius); overflow: hidden; background: var(--white); padding: 30px; }
.media-card img { width: 100%; }

/* Fiche entreprise */
.facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fact { padding: 24px 30px; border-bottom: 1px solid var(--border); }
.fact:nth-child(odd) { border-right: 1px solid var(--border); }
.fact:nth-last-child(-n+2) { border-bottom: 0; }
.fact span { display: block; font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--primary); }
.fact strong { font-family: var(--font-head); font-size: 21px; color: var(--white); }

/* Développement : types */
.dev-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dev-type { background: var(--bg-2); border-radius: var(--radius); padding: 26px; border-top: 3px solid var(--primary); }
.article .dev-type h3 { font-size: 22px; margin-bottom: 8px; }
.dev-type p { font-size: 15px; line-height: 1.6; }

.equip-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Formulaires */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cta-red__form-wrap { position: relative; max-width: 560px; margin: 0 auto; }
/* reCAPTCHA v3 : badge masqué, remplacé par la mention sous les formulaires (autorisé par Google) */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-note { font-size: 13px; line-height: 1.5; color: rgba(190,190,190,.85); }
.recaptcha-note a { text-decoration: underline; }
.cta-red .recaptcha-note { margin-top: 14px; color: rgba(255,255,255,.85); }
.form-feedback:empty { display: none; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: 15px; line-height: 1.5; text-align: left; }
.form-status.is-success { background: rgba(61, 220, 132, .14); border: 1px solid rgba(61, 220, 132, .6); color: #c9f7dc; }
.form-status.is-error { background: rgba(255, 0, 9, .12); border: 1px solid rgba(255, 80, 80, .65); color: #ffd1d3; }
.cta-red .form-status.is-success { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.7); color: var(--white); }
.cta-red .form-status.is-error { background: rgba(20,20,22,.35); border-color: rgba(255,255,255,.5); color: var(--white); }
.form .form-status { margin-top: 0; }
.is-invalid { border-color: #ff5050 !important; }
.is-sending [type="submit"] { opacity: .65; cursor: wait; }

/* Compteurs : 3 statistiques */
.counters { padding: 120px 0; }
.counters__grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) {
  .counters { padding: 90px 0; }
  .counters__grid { grid-template-columns: repeat(3, 1fr); }
  .counter:nth-child(3) { border-left: 1px solid var(--border); }
  .counter:nth-child(n+3) { border-top: 0; }
}
@media (max-width: 767px) {
  .counters__grid { grid-template-columns: 1fr; }
  .counter + .counter, .counter:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
}
.media-card--photo { padding: 0; }
.media-card--photo img { height: 100%; object-fit: cover; }

/* Footer */
.mini-product { flex-direction: column; align-items: flex-start; gap: 10px; }
.mini-product__logo { display: flex; align-items: center; background: var(--white); border-radius: var(--radius); padding: 8px 14px; }
.mini-product__logo img { height: 30px; width: auto; }
.footer__legal { font-size: 14px; color: rgba(190,190,190,.8); }
.mini-product { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--bg-2); transition: background .3s; }
.mini-product + .mini-product { margin-top: 14px; }
.mini-product:hover { background: var(--primary); }
.mini-product__ic {
  width: 50px; height: 50px; border-radius: var(--radius); display: grid; place-items: center; flex-shrink: 0;
  background: var(--primary); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 18px;
}
.mini-product:hover .mini-product__ic { background: var(--white); color: var(--primary); }
.mini-product h4 { font-size: 20px; }
.mini-product small { color: var(--text); }
.mini-product:hover small { color: var(--white); }
.footer__contact a:hover, .contact-card a:hover { color: var(--primary); }
.form select {
  width: 100%; padding: 16px 20px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--white); outline: none;
}
.topbar__addr { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 15px; }

@media (max-width: 1199px) {
  .soft-grid { grid-template-columns: repeat(2, 1fr); }
  .works .work { width: calc((100% - 30px) / 2); }
  .topbar__addr { display: none; }
  .pillars, .equip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .products { grid-template-columns: 1fr; }
  .works-grid, .equip-grid { grid-template-columns: 1fr 1fr; }
  .dev-types { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hero__lead { font-size: 17px; }
  .soft-grid, .works-grid, .equip-grid, .pillars, .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd) { border-right: 0; }
  .fact:nth-last-child(2) { border-bottom: 1px solid var(--border); }
  .works .work { width: 85%; }
  .product__body { padding: 26px 24px 28px; }
}
