/* HydroWater — compléments au thème « Hydro » pour le site autonome (formulaires, page Merci, boutique). */

/* ---------- Formulaire de commande ---------- */
#easysell, #easysell .es-input, #easysell .es-button, #easysell .es-label { font-family: var(--font-body); }
.order-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
#easysell .es-group.es-invalid .es-input-container,
#easysell .es-group.es-invalid .es-select { border-color: #d92d20 !important; box-shadow: 0 0 0 1px #d92d20; }
#easysell .es-button { position: relative; width: 100%; justify-content: center; cursor: pointer; }
#easysell .es-button:disabled { opacity: .75; cursor: wait; }
.order-spinner { display: none; }
.es-button.is-loading .order-spinner { display: inline-flex !important; margin-left: 10px; }
.es-button.is-loading .es-loading-mask {
  display: block; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: hydro-spin .8s linear infinite;
}
@keyframes hydro-spin { to { transform: rotate(360deg); } }
.order-msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.45; }
.order-msg--error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.order-msg--info { background: #eff8ff; color: #175cd3; border: 1px solid #b2ddff; }
.order-msg--success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }

/* Bouton « Commander » fixe en bas de l'écran (mobile) */
.es-sticky[data-order-sticky] {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex !important; justify-content: center;
  align-items: center; padding: 15px 16px; transform: translateY(110%); transition: transform .25s ease;
  font-family: var(--font-body); font-weight: 700; cursor: pointer;
}
.es-sticky[data-order-sticky].is-shown { transform: none; }
.es-sticky[data-order-sticky][hidden] { display: none !important; }
@media (min-width: 990px) { .es-sticky[data-order-sticky] { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .es-sticky[data-order-sticky] { transition: none; } }

/* ---------- Newsletter / contact ---------- */
.form-note { margin: 10px 0 0; font-size: 14px; line-height: 1.45; }
.form-note--error { color: #b42318; }
.form-note--success { color: #067647; }
.color-scheme-2 .form-note--error, .color-scheme-3 .form-note--error, .color-scheme-4 .form-note--error { color: #fecdca; }
.color-scheme-2 .form-note--success, .color-scheme-3 .form-note--success, .color-scheme-4 .form-note--success { color: #abefc6; }

/* ---------- Page Merci ---------- */
.confirmation__card {
  text-align: center; padding: clamp(24px, 5vw, 44px); border: 1px solid var(--color-border);
  border-radius: var(--radius-box); background: var(--color-bg);
}
.confirmation__icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-accent); color: #fff;
}
.confirmation__title { margin: 0 0 8px; }
.confirmation__lead { margin: 0 0 20px; opacity: .8; }
.confirmation__recap { display: grid; gap: 10px; margin: 0 0 20px; padding: 16px; text-align: left; border-radius: var(--radius-card); background: #f4f8fb; }
.confirmation__recap div { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.confirmation__recap dt { opacity: .7; }
.confirmation__recap dd { margin: 0; font-weight: 600; text-align: right; }
.confirmation__steps { margin: 0 0 24px; padding-left: 20px; text-align: left; display: grid; gap: 8px; line-height: 1.5; }
.partner { margin-top: 32px; }
.partner[hidden] { display: none; }
.partner__eyebrow { margin: 0 0 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; text-align: center; }
.partner__card {
  display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 20px; align-items: center; padding: 16px;
  border: 1px solid var(--color-border); border-radius: var(--radius-box); color: inherit; text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.partner__card:hover { box-shadow: 0 10px 30px rgba(0, 46, 73, .12); transform: translateY(-2px); }
.partner__img { width: 100%; height: auto; border-radius: var(--radius-card); display: block; }
.partner__body { display: grid; gap: 6px; }
.partner__brand { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.partner__name { font-size: 18px; line-height: 1.3; }
.partner__text { font-size: 14px; line-height: 1.5; opacity: .8; }
.partner__price { font-size: 18px; color: var(--color-accent); }
.partner__btn { justify-self: start; margin-top: 4px; }
.partner__note { margin: 10px 0 0; font-size: 12px; opacity: .6; text-align: center; }
@media (max-width: 600px) { .partner__card { grid-template-columns: 1fr; } .partner__btn { justify-self: stretch; } }

/* ---------- Boutique ---------- */
.shop__title { margin: 0 0 24px; }
.shop__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.shop-card { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.shop-card__media { position: relative; display: block; border-radius: var(--radius-card); overflow: hidden; background: #f4f8fb; }
.shop-card__media img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.shop-card:hover .shop-card__media img { transform: scale(1.04); }
.shop-card__badge { position: absolute; top: 10px; left: 10px; }
.shop-card__title { font-weight: 700; }
.notfound p { margin: 12px 0 24px; }

/* Formulaire : la ligne Expédition reste cachée tant qu'il n'y a pas de frais (d-flex écrasait hidden), et ne se coupe pas */
[data-order-ship-row][hidden] { display: none !important; }
[data-order-ship-row] .label-title { white-space: nowrap; }
