/* YesPiscine — « Analyser mon eau » et page « Vos produits » (2.3.0). Chargé seulement sur ces pages. */
.yp-ae { --ae-trait: var(--wp--preset--color--trait, #d7e9ef); --ae-doux: var(--wp--preset--color--texte-doux, #56687a); --ae-marque: var(--wp--preset--color--primaire, #1d77a5); --ae-fond: var(--wp--preset--color--accent-clair, #eff8fa); font-size: 1rem; }
.yp-ae *, .yp-ae *::before, .yp-ae *::after { box-sizing: border-box; }
.yp-ae__chargement, .yp-ae__note, .yp-ae__aide, .yp-ae__detail { color: var(--ae-doux); }
.yp-ae__vie-privee { display: flex; gap: .5em; align-items: flex-start; font-size: .9rem; color: var(--ae-doux); margin-top: 1.5rem; }
.yp-ae__vie-privee .yp-icon { flex: 0 0 auto; width: 20px; height: 20px; color: #1e7f55; }
.yp-ae__form { display: grid; gap: 1.25rem; }
.yp-ae__bloc { border: 1px solid var(--ae-trait); border-radius: 14px; padding: 1rem 1.1rem 1.2rem; margin: 0; min-width: 0; background: #fff; }
.yp-ae__bloc > legend { font-weight: 700; font-size: 1.15rem; padding: 0 .4em; }
.yp-ae__grille { display: grid; gap: .9rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.yp-ae__grille--3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: .6rem 0; }
.yp-ae__champ, .yp-ae__mesure { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.yp-ae label { font-weight: 600; }
.yp-ae__grille--3 label { display: flex; flex-direction: column; gap: .3rem; font-weight: 500; font-size: .95rem; }
.yp-ae input[inputmode], .yp-ae select { width: 100%; min-height: 46px; padding: .55rem .7rem; border: 1px solid #9fb4c0; border-radius: 10px; font: inherit; background: #fff; color: inherit; }
.yp-ae input[inputmode]:focus, .yp-ae select:focus { outline: 3px solid color-mix(in srgb, var(--ae-marque) 40%, transparent); outline-offset: 1px; border-color: var(--ae-marque); }
.yp-ae input[aria-invalid="true"] { border-color: #b4321f; }
.yp-ae__mesures { display: grid; gap: .9rem 1.2rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.yp-ae__mesure input { font-size: 1.25rem; font-weight: 600; }
.yp-ae__unite { font-weight: 400; color: var(--ae-doux); font-size: .9em; }
.yp-ae__aide { font-size: .85rem; line-height: 1.35; }
.yp-ae__requis { font-weight: 400; font-size: .8em; color: var(--ae-doux); }
.yp-ae__cases { border: 0; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.yp-ae__cases > legend { font-weight: 600; padding: 0; margin-bottom: .4rem; width: 100%; }
.yp-ae__cases label { font-weight: 400; display: inline-flex; gap: .45em; align-items: center; min-height: 40px; }
.yp-ae__cases input { width: 20px; height: 20px; }
.yp-ae details { margin-top: .5rem; }
.yp-ae summary { cursor: pointer; color: var(--ae-marque); font-weight: 600; min-height: 36px; display: list-item; }
.yp-ae__plus { margin-top: 1rem; }
.yp-ae__plus .yp-ae__mesures { margin-top: .6rem; }
.yp-ae__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid var(--ae-marque); background: var(--ae-marque); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.yp-ae__btn:hover, .yp-ae__btn:focus-visible { filter: brightness(.92); color: #fff; }
.yp-ae__btn--leger { background: #fff; color: var(--ae-marque); }
.yp-ae__btn--leger:hover, .yp-ae__btn--leger:focus-visible { color: var(--ae-marque); background: var(--ae-fond); }
.yp-ae__form > .yp-ae__btn { justify-self: start; font-size: 1.05rem; }
.yp-ae__erreur { color: #b4321f; font-weight: 600; margin: 0; }
.yp-ae__resultat { margin-top: 2rem; padding-top: 1.5rem; border-top: 3px solid var(--ae-marque); outline: none; }
.yp-ae__titre { margin-top: 0; }
.yp-ae__avertissement { background: #fff6e0; border-left: 4px solid #c78a00; padding: .8rem 1rem; border-radius: 8px; }
.yp-ae__alerte { background: #fde8e4; border-left: 4px solid #b4321f; padding: .6rem 1rem; border-radius: 8px; margin: 1rem 0; }
.yp-ae__alerte p { margin: .3rem 0; }
.yp-ae__tableau { overflow-x: auto; margin: 1rem 0; }
.yp-ae table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.yp-ae caption { text-align: left; font-weight: 700; padding-bottom: .4rem; }
.yp-ae th, .yp-ae td { padding: .5rem .6rem; border-bottom: 1px solid var(--ae-trait); text-align: left; vertical-align: top; }
.yp-ae thead th { background: var(--ae-fond); }
.yp-ae__num { white-space: nowrap; }
.yp-ae__etat { font-weight: 700; white-space: nowrap; }
.yp-ae__etat--ok { color: #1e7f55; }
.yp-ae__etat--bas, .yp-ae__etat--haut { color: #9a5a0a; }
.yp-ae__etat--crit { color: #b4321f; }
.yp-ae__etapes { list-style: none; counter-reset: etape; padding: 0; margin: 1rem 0; display: grid; gap: .9rem; }
.yp-ae__etape { counter-increment: etape; position: relative; padding: .9rem 1rem .9rem 3.2rem; border: 1px solid var(--ae-trait); border-radius: 12px; background: #fff; }
.yp-ae__etape::before { content: counter(etape); position: absolute; left: .9rem; top: .9rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ae-marque); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.yp-ae__etape-tete { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.yp-ae__action { display: block; font-weight: 700; }
.yp-ae__type { display: block; }
.yp-ae__qte { font-weight: 800; font-size: 1.15rem; white-space: nowrap; color: var(--ae-marque); }
.yp-ae__detail { font-size: .92rem; margin: .35rem 0 0; }
.yp-ae__ou { margin: .4rem 0 0; font-size: .95rem; }
.yp-ae__ou span, .yp-ae__ou-mot { font-weight: 700; color: var(--ae-doux); text-transform: uppercase; font-size: .8em; letter-spacing: .04em; }
.yp-ae__liste { padding-left: 1.2rem; }
.yp-ae__liste li { margin: .45rem 0; }
.yp-ae__solution, .yp-ae__ventes { background: var(--ae-fond); border-radius: 12px; padding: .9rem 1.1rem; margin: 1rem 0; }
.yp-ae__solution h3, .yp-ae__ventes h3 { margin-top: 0; }
.yp-ae__ok { font-weight: 700; color: #1e7f55; }
.yp-ae__securite { font-size: .9rem; color: var(--ae-doux); border-top: 1px solid var(--ae-trait); padding-top: .8rem; margin-top: 1.5rem; }
.yp-ae__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }
.yp-ae-produits { list-style: none; padding: 0; margin: .7rem 0 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.yp-ae-produit { display: flex; gap: .75rem; align-items: center; padding: .5rem; border: 1px solid var(--ae-trait); border-radius: 10px; text-decoration: none; color: inherit; background: #fff; min-height: 72px; }
.yp-ae-produit:hover, .yp-ae-produit:focus-visible { border-color: var(--ae-marque); }
.yp-ae-produit img, .yp-ae-produit__vide { width: 64px; height: 64px; object-fit: contain; flex: 0 0 64px; border-radius: 6px; background: var(--ae-fond); }
.yp-ae-produit__texte { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.yp-ae-produit__nom { font-weight: 600; line-height: 1.3; }
.yp-ae-produit__marque { font-size: .85rem; color: var(--ae-doux); }
.yp-ae-produit__niveau { display: inline-flex; align-items: center; gap: .3em; font-size: .8rem; font-weight: 700; align-self: flex-start; padding: .1rem .5rem; border-radius: 999px; }
.yp-ae-produit__niveau .yp-icon { width: 14px; height: 14px; }
.yp-ae-produit__niveau--magasin { background: #e3f3ea; color: #155c3a; }
.yp-ae-produit__niveau--selection { background: #e6f0fb; color: #164d86; }
.yp-ae-encart { display: flex; gap: .8rem; align-items: flex-start; background: #e3f3ea; color: #155c3a; border-radius: 12px; padding: 1rem 1.1rem; margin: 1.5rem 0 .5rem; }
.yp-ae-encart p { margin: 0; }
.yp-ae-encart a { color: inherit; }
.yp-ae-encart .yp-icon { flex: 0 0 auto; width: 24px; height: 24px; }
.yp-ordo__contexte { font-weight: 700; color: var(--ae-marque); }
.yp-ordo__liste { padding-left: 1.4rem; display: grid; gap: 1.1rem; }
.yp-ordo__tete { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.yp-ordo__qte { font-weight: 800; color: var(--ae-marque); }
@media (max-width: 600px) {
  .yp-ae__bloc { padding: .8rem .8rem 1rem; }
  .yp-ae__etape { padding-left: 2.8rem; }
  .yp-ae__etape::before { left: .7rem; }
  .yp-ae__mesures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yp-ae__form > .yp-ae__btn { width: 100%; }
}
@media print {
  .yp-ae__form, .yp-ae__actions, .yp-ae__vie-privee, header, footer, .yp-ae-intro { display: none !important; }
  .yp-ae__resultat { border: 0; margin: 0; padding: 0; }
  .yp-ae-produit img { display: none; }
  .yp-ae__etape, .yp-ae-produit { break-inside: avoid; }
}
