/* Panier Réel : connexion, inscription et pages WordPress de mot de passe. Polices du système. */
:root {
  --fond: #faf8f1; --surface: #ffffff; --doux: #f3eee2;
  --encre: #1a2b27; --encre-2: #4a6e60; --encre-3: #62806f; --trait: #ddd9cc;
  --pin: #1a3330; --or: #c9a84c; --or-texte: #86661a; --or-voile: rgba(201, 168, 76, 0.16);
  --rouge: #b4432f; --rouge-voile: rgba(180, 67, 47, 0.1);
  --police: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0f1b19; --surface: #152623; --doux: #1b302c;
    --encre: #ecf1ec; --encre-2: #b3c6bc; --encre-3: #8da699; --trait: #2a423d;
    --pin: #0b1513; --or: #d4b35a; --or-texte: #ddbf6b; --or-voile: rgba(212, 179, 90, 0.15);
    --rouge: #f08a72; --rouge-voile: rgba(240, 138, 114, 0.14);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }

/* ---------- Nos pages ---------- */
body.compte { margin: 0; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--fond); color: var(--encre); font: 16px/1.55 var(--police); }
.marque-panneau { background: var(--pin); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 48px max(32px, env(safe-area-inset-left, 0px)) 48px clamp(32px, 6vw, 88px); }
.marque-panneau::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 30%, rgba(201, 168, 76, 0.14), transparent 62%); pointer-events: none; }
.marque-panneau > * { position: relative; }
.marque-panneau__nom { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.01em; }
.marque-panneau__promesse { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.15; max-width: 14ch; text-wrap: balance; }
.marque-panneau__promesse em { font-style: normal; color: var(--or); }
.marque-panneau__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 40ch; color: rgba(255, 255, 255, 0.78); }
.marque-panneau__points li { padding-left: 26px; position: relative; }
.marque-panneau__points li::before { content: "✓"; position: absolute; left: 0; color: var(--or); font-weight: 700; }
.marque-panneau__points b { color: #fff; font-weight: 600; }

.carte-compte { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 460px; margin: 0 auto;
  padding: 48px max(24px, env(safe-area-inset-right, 0px)) 48px max(24px, env(safe-area-inset-left, 0px)); gap: 6px; }
.carte-compte h1 { margin: 0; font-size: 1.8rem; font-weight: 800; line-height: 1.2; text-wrap: balance; }
.sous { margin: 0 0 18px; color: var(--encre-2); }
.form-compte { display: grid; gap: 16px; }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 600; font-size: 0.92rem; }
.champ__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.champ__tete a, .bascule-compte a, .case a { color: var(--or-texte); font-weight: 600; font-size: 0.9rem; }
.champ input { width: 100%; font: inherit; color: var(--encre); background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; padding: 12px 14px; }
.champ input:focus { border-color: var(--or); outline: none; box-shadow: 0 0 0 3px var(--or-voile); }
.mdp { position: relative; }
.mdp input { padding-right: 92px; }
.voir { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--encre-2); background: var(--doux); border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.aide { margin: 0; font-size: 0.84rem; color: var(--encre-3); }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; cursor: pointer; }
.case input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--or); flex: none; }
.case--longue { font-size: 0.86rem; color: var(--encre-2); line-height: 1.45; }
.bouton--plein { width: 100%; font: inherit; font-weight: 700; font-size: 1rem; color: #1a3330; background: var(--or); border: 0; border-radius: 10px; padding: 13px 18px; cursor: pointer; transition: transform 0.2s, filter 0.2s; }
.bouton--plein:hover { filter: brightness(0.95); transform: translateY(-1px); }
.bascule-compte { margin: 18px 0 0; color: var(--encre-2); font-size: 0.92rem; }
.alerte { background: var(--rouge-voile); color: var(--rouge); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; }
.alerte ul { margin: 0; padding-left: 18px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 820px) {
  body.compte { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .marque-panneau { padding: calc(28px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 28px max(24px, env(safe-area-inset-left, 0px)); gap: 12px; }
  .marque-panneau__promesse { font-size: 1.6rem; max-width: none; }
  .marque-panneau__points { display: none; }
  .carte-compte { justify-content: flex-start; padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .bouton--plein { transition: none; } }

/* ---------- Pages WordPress : mot de passe oublié, nouveau mot de passe ---------- */
body.login { background: var(--fond); color: var(--encre); font-family: var(--police); }
body.login #login { width: min(400px, calc(100vw - 32px)); padding-top: 8vh; }
body.login h1 a { background: none; width: auto; height: auto; text-indent: 0; font-size: 1.4rem; font-weight: 800; color: var(--encre); margin-bottom: 18px; }
body.login form { background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; box-shadow: none; padding: 22px; }
body.login label { color: var(--encre); font-weight: 600; }
body.login form .input, body.login input[type="text"], body.login input[type="password"], body.login input[type="email"] { font-size: 1rem; background: var(--surface); color: var(--encre); border: 1px solid var(--trait); border-radius: 10px; padding: 8px 12px; box-shadow: none; }
body.login form .input:focus { border-color: var(--or); box-shadow: 0 0 0 3px var(--or-voile); }
body.login .button-primary, body.wp-core-ui .button-primary { background: var(--or); border-color: var(--or); color: #1a3330; border-radius: 10px; text-shadow: none; box-shadow: none; font-weight: 700; padding: 4px 18px; min-height: 40px; }
body.login .button-primary:hover { background: var(--or); border-color: var(--or); color: #1a3330; filter: brightness(0.95); }
body.login .message, body.login .notice, body.login #login_error { border-left-color: var(--or); background: var(--surface); color: var(--encre); border-radius: 10px; box-shadow: none; }
body.login #login_error { border-left-color: var(--rouge); }
body.login #nav a, body.login #backtoblog a { color: var(--or-texte); }
body.login .language-switcher, body.login .privacy-policy-page-link { display: none; }

/* 0.6.0 : offre, confirmation de l'email, force du mot de passe */
.marque-panneau__offre { margin: 0; max-width: 40ch; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 16px; }
.marque-panneau__offre a { color: var(--or); font-weight: 600; }
.info { background: var(--or-voile); color: var(--or-texte); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-weight: 600; font-size: 0.92rem; }
.force { height: 4px; border-radius: 4px; background: var(--doux); overflow: hidden; margin-top: 8px; }
.force span { display: block; height: 100%; width: 0; background: var(--rouge); transition: width 0.2s; }
.force span.moyen { background: var(--or); }
.force span.bien { background: #2f7a52; }
a.bouton--plein { display: block; text-align: center; text-decoration: none; }
