/* Écosystème — habillage des pages (tableau de bord, recrutement, pages du thème). */
body.eco-body { margin: 0; background: var(--eco-bg); color: var(--eco-ink); font-family: var(--eco-body); }
.eco-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--eco-bg); color: var(--eco-ink); font-family: var(--eco-body); }
.eco-page *, .eco-page *::before, .eco-page *::after { box-sizing: border-box; }
.eco-main { flex: 1; padding-top: 48px; }

/* L'en-tête de Pages du restaurant flotte sur l'image de l'accueil : ici il prend sa place. */
.eco-page .rpg-top { position: relative; top: auto; padding-top: 26px; }
@media (max-width: 700px) { .eco-page .rpg-top { padding-top: 14px; } .eco-main { padding-top: 36px; } }

.eco-wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.eco-page :where(h1, h2, h3) { font-family: var(--eco-head); line-height: 1.12; margin: 0; }   /* :where() : priorité minimale, chaque titre garde ses propres marges */
.eco-h1 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; letter-spacing: -.01em; }
.eco-h2 { font-size: clamp(20px, 2.6vw, 24px); font-weight: 800; margin-bottom: 14px; }
.eco-muted { color: var(--eco-muted); margin: 6px 0 0; }
.eco-page a { color: inherit; }
.eco-page :focus-visible { outline: 3px solid var(--eco-accent); outline-offset: 2px; border-radius: 6px; }

.eco-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px;
  border: 0; border-radius: 999px; background: var(--eco-accent); color: var(--eco-on-accent) !important; font: 700 16px/1.2 var(--eco-head);
  text-decoration: none; cursor: pointer; }
.eco-btn:disabled { opacity: .55; cursor: default; }
.eco-btn-ghost { background: transparent; color: var(--eco-ink) !important; box-shadow: inset 0 0 0 1.5px var(--eco-line); }
.eco-btn-danger { background: #c62828; color: #fff !important; }

/* Repli si Pages du restaurant est désactivé. */
.eco-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1080px, calc(100% - 32px)); margin: 20px auto 0; }
.eco-top-logo img { max-height: 64px; width: auto; }
.eco-foot { margin-top: 64px; padding: 24px; text-align: center; color: var(--eco-muted); border-top: 1px solid var(--eco-line); }

/* Pages de contenu (mentions légales, Mon compte…). */
.eco-prose { max-width: 760px; line-height: 1.6; font-size: 17px; }
.eco-prose h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 24px; }
.eco-prose h2 { font-size: 22px; margin: 32px 0 10px; }
.eco-prose p, .eco-prose ul, .eco-prose ol { margin: 0 0 14px; }
.eco-prose input:not([type=checkbox]):not([type=radio]), .eco-prose select, .eco-prose textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--eco-line);
  background: var(--eco-surface); color: var(--eco-ink); font: inherit; }
.eco-prose button, .eco-prose .button { min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px;
  background: var(--eco-accent); color: var(--eco-on-accent); font: 700 16px var(--eco-head); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.eco-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.eco-prose th, .eco-prose td { padding: 10px 8px; border-bottom: 1px solid var(--eco-line); text-align: left; }
.eco-prose .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.eco-prose .woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--eco-line); text-decoration: none; }
.eco-prose .woocommerce-MyAccount-navigation .is-active a { background: var(--eco-accent); color: var(--eco-on-accent); box-shadow: none; }

/* Pages d'Écosystème (connexion, avis, recrutement…) */
.eco-center { display: grid; justify-items: center; }
.eco-narrow { width: min(520px, 100%); }
.eco-center-text { text-align: center; margin-top: 24px; }
.eco-reviews h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 24px; }
