/* Repère Énergie : compléments propres à WordPress (chargés après site.css) */

/* Les éléments masqués le restent, même quand leur style de départ impose un affichage. */
[hidden]{display:none !important}

/* Accueil : état choisi / non choisi des tuiles de projet et des onglets (piloté par aria-pressed). */
.gv-choice[aria-pressed="true"]{background:#EAF3E7 !important; border-color:#3F7F36 !important}
.gv-choice[aria-pressed="false"]{background:#FFFFFF !important; border-color:#E2E8F0 !important}
.gv-tab[aria-pressed="true"]{color:#3F7F36 !important; border-bottom-color:#3F7F36 !important; font-weight:700 !important}
.gv-tab[aria-pressed="false"]{color:#475569 !important; border-bottom-color:#E2E8F0 !important; font-weight:500 !important}

/* Barre d'administration WordPress : l'en-tête collant se place sous elle. */
body.admin-bar .gv-header{top:32px}
body.admin-bar .gv-sticky{top:136px}
html{scroll-padding-top:104px}
body.admin-bar{scroll-padding-top:136px}
@media (max-width:782px){
	body.admin-bar .gv-header{top:46px}
	body.admin-bar .gv-sticky{top:150px}
}

/* Formulaires : champ piège (invisible) et message d'erreur. */
.rnd-hp{position:absolute !important; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden}
.rnd-error{margin:0; padding:10px 14px; border-radius:12px; background:#FEF3F2; color:#B42318; font-size:15px; font-weight:600; line-height:1.45}
.gv-btn[disabled]{opacity:.7; cursor:progress}

/* Bandeau d'aperçu (visible seulement par un administrateur tant que le nouveau design n'est pas en ligne). */
.rnd-previewbar{display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px 20px; padding:10px 16px; background:#163A52; color:#FFFFFF; font:600 14px/1.4 'Inter',system-ui,sans-serif; text-align:center}
.rnd-previewbar a{color:#B6E3AC; text-decoration:underline; text-underline-offset:3px}
.rnd-previewbar a:hover{color:#FFFFFF}

/* Les pages ne dépendent d'aucun style du thème : on neutralise les marges et le fond éventuels du corps. */
body.rnd-site{margin:0; background:#FFFFFF}
