/* NRG Comparateur : simulateur de remboursement. Couleurs du thème NRG Santé (variables --nrg-*), avec repli. */

.nrgs {
	--s-emeraude: var(--nrg-emeraude, #0A7D64);
	--s-encre: var(--nrg-encre, #072B31);
	--s-menthe: var(--nrg-menthe, #3DDC97);
	--s-soleil: var(--nrg-soleil, #FFC94D);
	--s-menthe-douce: var(--nrg-menthe-douce, #E3FAF0);
	--s-doux: var(--nrg-texte-doux, #2C4650);
	--s-ligne: var(--nrg-ligne, #D7E8E1);
	--s-fond: #F5FBF8;
	box-sizing: border-box;
	color: var(--s-encre);
	font-size: 1rem;
	line-height: 1.5;
}
.nrgs *, .nrgs *::before, .nrgs *::after { box-sizing: border-box; }
.nrgs p { margin: 0; }
.nrgs [hidden] { display: none !important; }
.nrgs-chargement, .nrgs-secours { padding: 2rem 0; color: var(--s-doux); }

.nrgs__grille { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.nrgs__saisie { flex: 1 1 26rem; min-width: 0; display: flex; flex-direction: column; gap: 1.6rem; background: #fff; border: 1px solid var(--s-ligne); border-radius: 22px; padding: clamp(1.1rem, 3vw, 1.6rem); }
.nrgs__resultat { flex: 1 1 22rem; min-width: 0; display: flex; flex-direction: column; gap: 1.1rem; background: var(--s-encre); color: #fff; border-radius: 22px; padding: clamp(1.1rem, 3vw, 1.6rem); }

.nrgs__bloc { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.nrgs__titre { display: flex; align-items: center; gap: 0.6rem; padding: 0; margin-bottom: 0.85rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.nrgs__num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--s-emeraude); color: #fff; font-size: 1rem; flex: none; }
.nrgs__aide { padding: 0.75rem 0.9rem; border-radius: 12px; background: var(--s-fond); font-size: 0.9rem; color: var(--s-doux); }
.nrgs__note { font-size: 0.9rem; color: var(--s-doux); }
.nrgs__encart { padding: 0.75rem 0.9rem; border-radius: 12px; background: var(--s-menthe-douce); font-size: 0.95rem; }

/* Choix : boutons radio stylés (le champ reste focalisable au clavier) */
.nrgs__postes, .nrgs__modes, .nrgs__pcts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nrgs__actes { display: flex; flex-direction: column; gap: 0.5rem; }
.nrgs__modes { margin: 0.7rem 0; }
.nrgs-pilule, .nrgs-onglet, .nrgs-choix { position: relative; display: inline-flex; cursor: pointer; }
.nrgs-pilule input, .nrgs-onglet input, .nrgs-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.nrgs-pilule span, .nrgs-onglet span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.1rem; border: 2px solid var(--s-ligne); border-radius: 999px; background: #fff; color: var(--s-encre); font-weight: 700; font-size: 0.95rem; }
.nrgs-onglet span { border-radius: 12px; }
.nrgs-pilule--pct span { min-width: 4.6rem; }
.nrgs-pilule input:checked + span, .nrgs-onglet input:checked + span { background: var(--s-emeraude); border-color: var(--s-emeraude); color: #fff; }
.nrgs-pilule--pct input:checked + span { background: var(--s-encre); border-color: var(--s-encre); }
.nrgs-choix { width: 100%; }
.nrgs-choix span { display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 48px; padding: 0.6rem 0.9rem; border: 2px solid var(--s-ligne); border-radius: 14px; background: #fff; font-weight: 600; font-size: 0.95rem; }
.nrgs-choix span::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--s-emeraude); background: #fff; }
.nrgs-choix input:checked + span { background: var(--s-menthe-douce); border-color: var(--s-emeraude); }
.nrgs-choix input:checked + span::before { background: var(--s-emeraude); box-shadow: inset 0 0 0 3px #fff; }
.nrgs input:focus-visible + span { outline: 3px solid var(--s-soleil); outline-offset: 2px; }

/* Champs */
.nrgs__champs { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.nrgs__champ { flex: 1 1 11rem; display: flex; flex-direction: column; gap: 0.35rem; }
.nrgs__champ--forfait { max-width: 22rem; }
.nrgs__champ label { font-size: 0.9rem; font-weight: 700; }
.nrgs__saisie-euro { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; font-weight: 700; }
.nrgs input[type="number"] { flex: 1; min-width: 0; width: 100%; height: 48px; padding: 0 0.9rem; border: 2px solid var(--s-ligne); border-radius: 12px; background: #fff; color: var(--s-encre); font: inherit; font-size: 1.1rem; font-weight: 700; }
.nrgs input[type="number"]:disabled { background: #F1F5F3; color: var(--s-doux); }
.nrgs input[type="number"]:focus-visible { outline: 3px solid var(--s-soleil); outline-offset: 1px; border-color: var(--s-emeraude); }
.nrgs__case { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.8rem; font-size: 0.95rem; cursor: pointer; }
.nrgs__case input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--s-emeraude); }

/* Résultat */
.nrgs__sur { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--s-menthe); }
.nrgs__soin { margin-top: -0.6rem !important; color: var(--s-ligne); }
.nrgs__carte { background: #fff; color: var(--s-encre); border-radius: 16px; padding: 1.1rem; }
.nrgs__libelle { font-weight: 600; color: var(--s-doux); }
.nrgs__montant { margin: 0.1rem 0 0.9rem !important; font-size: clamp(2.2rem, 6vw, 2.8rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.nrgs__barre { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: #EAF3EF; }
.nrgs__seg { display: block; height: 100%; transition: width 0.25s ease; }
.nrgs__seg--am, .nrgs__puce--am { background: var(--s-emeraude); }
.nrgs__seg--mut, .nrgs__puce--mut { background: var(--s-menthe); }
.nrgs__seg--rac, .nrgs__puce--rac { background: var(--s-soleil); }
@media (prefers-reduced-motion: reduce) { .nrgs__seg { transition: none; } }
.nrgs__parts { margin: 0.9rem 0 0; display: flex; flex-direction: column; gap: 0.45rem; }
.nrgs__parts div { display: flex; align-items: center; gap: 0.6rem; }
.nrgs__parts dt { flex: 1; display: flex; align-items: center; gap: 0.6rem; }
.nrgs__parts dd { margin: 0; font-weight: 800; }
.nrgs__puce { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.nrgs__h3 { margin: 0.3rem 0 0; font-size: 1.05rem; font-weight: 800; color: #fff; }
.nrgs__etapes { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.95rem; color: var(--s-menthe-douce); }
.nrgs__compare { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.nrgs__niveau { display: flex; flex-direction: column; border-radius: 12px; padding: 0.6rem 0.75rem; background: #0E3A41; font-size: 0.78rem; }
.nrgs__niveau strong { font-size: 1.2rem; font-weight: 800; }
.nrgs__niveau-nom { font-weight: 600; }
.nrgs__niveau.est-actif { background: var(--s-soleil); color: var(--s-encre); }
.nrgs__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.nrgs__bouton { flex: 1 1 12rem; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.3rem; border-radius: 999px; font-weight: 800; text-decoration: none; text-align: center; }
.nrgs .nrgs__bouton--plein { background: var(--s-menthe); color: var(--s-encre); }
.nrgs .nrgs__bouton--contour { border: 2px solid #fff; color: #fff; }
.nrgs .nrgs__bouton:hover { filter: brightness(1.06); }
.nrgs .nrgs__bouton:focus-visible { outline: 3px solid var(--s-soleil); outline-offset: 2px; }
.nrgs__mention { font-size: 0.8rem; color: var(--s-ligne); }
