/* n-compte : formulaires de compte aux couleurs de la charte (Poppins, bleu standard #29C5F6, titres #555555). */
body.n-compte-page #main-content,
body.n-compte-page .et-l--body { background:#29C5F6 !important; }
.n-compte { position:relative; box-sizing:border-box; max-width:440px; margin:48px auto; padding:36px 32px; background:#FFFFFF; border-radius:14px; font-family:"Poppins", sans-serif; color:#555555; }
.n-compte *, .n-compte *::before, .n-compte *::after { box-sizing:border-box; }
.n-compte-titre { margin:0 0 28px; padding:0; font-family:inherit; font-size:24px; font-weight:500; line-height:1.3; color:#555555; text-align:center; }
.n-compte-message { margin:0 0 18px; padding:12px 14px; border-radius:8px; background:#FFE0EF; color:#C4005D; font-size:15px; }
.n-compte-message--info { background:#E6F7FD; color:#1A7FA3; }
.n-compte-champ { position:relative; display:block; margin:0 0 18px; }
.n-compte-libelle { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.n-compte input[type="text"], .n-compte input[type="password"], .n-compte input[type="email"] {
  display:block; width:100%; height:50px; margin:0; padding:0 16px; border:1px solid #C4C4C4; border-radius:8px;
  background:#FFFFFF; color:#555555; font-family:inherit; font-size:16px; }
.n-compte-champ--secret input { padding-right:52px; }
.n-compte input::placeholder { color:#8E8E8E; opacity:1; }
.n-compte input:focus { border-color:#29C5F6; outline:2px solid #29C5F6; outline-offset:2px; }
.n-compte-voir { position:absolute; top:50%; right:10px; transform:translateY(-50%); padding:6px; border:0; background:none; color:#B5B5B5; cursor:pointer; line-height:0; }
.n-compte-voir[aria-pressed="true"] { color:#29C5F6; }
.n-compte-options { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:8px 0 30px; font-size:16px; color:#8E8E8E; }
.n-compte-souvenir { display:flex; align-items:center; gap:10px; cursor:pointer; }
.n-compte-souvenir input { width:20px; height:20px; margin:0; accent-color:#29C5F6; }
.n-compte a { color:#29C5F6; text-decoration:underline; }
.n-compte-bouton { display:block; width:100%; height:56px; border:0; border-radius:8px; background:#29C5F6; color:#FFFFFF;
  font-family:inherit; font-size:18px; letter-spacing:.3px; text-transform:uppercase; cursor:pointer; }
.n-compte-bouton:hover, .n-compte-bouton:focus-visible { background:#007FAF; }
.n-compte-bas { margin:20px 0 0; padding:0; font-size:16px; color:#8E8E8E; text-align:center; }
.n-compte-piege { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
/* Mode nocturne */
html[data-s2f-theme="dark"] .n-compte { background:var(--s2f-card, #272726); color:#E8E8E6; }
html[data-s2f-theme="dark"] .n-compte-titre { color:#E8E8E6; }
html[data-s2f-theme="dark"] .n-compte input[type="text"],
html[data-s2f-theme="dark"] .n-compte input[type="password"],
html[data-s2f-theme="dark"] .n-compte input[type="email"] { background:#1D1D1C; border-color:#3C3C3A; color:#E8E8E6; }
html[data-s2f-theme="dark"] .n-compte-message { background:#472132; color:#FF7DB8; }
html[data-s2f-theme="dark"] .n-compte-message--info { background:#163744; color:#7FD3F2; }
@media (max-width: 520px) { .n-compte { margin:24px 16px; padding:28px 20px; } .n-compte-options { flex-direction:column; align-items:flex-start; } }
/* Page Profil (/profile/) : carte large, sections en grille de deux colonnes, libellés au-dessus des champs.
   Cellules grisées pour ce qui ne se modifie pas (identifiant, abonnement), encart bleu clair pour myInvests. */
.n-compte.n-compte-profil { max-width:680px; padding:32px 32px 36px; }
.n-compte-profil .n-compte-titre { margin:0 0 20px; text-align:left; }
.n-compte-profil p { padding:0; }
.n-compte-section { display:block; margin:0; }
.n-compte-section + .n-compte-section { margin-top:32px; }
.n-compte h3.n-compte-section-titre { margin:0 0 14px; padding:0; font-family:inherit; font-size:17px; font-weight:500; line-height:1.4; color:#555555; }
.n-compte-grille { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:18px 20px; align-items:start; }
.n-compte-pleine { grid-column:1 / -1; }
.n-compte-champ-profil { display:flex; flex-direction:column; gap:6px; margin:0; }
.n-compte-etiquette { font-size:13px; font-weight:500; line-height:18px; color:#555555; }
.n-compte-aide { margin:0; font-size:13px; line-height:1.45; color:#737373; }
.n-compte-profil input[type="text"], .n-compte-profil input[type="password"], .n-compte-profil input[type="email"] {
  height:42px; padding:0 12px; border-color:#737373; font-size:15px; line-height:40px; }
.n-compte-cellule { display:flex; align-items:center; height:42px; padding:0 12px; border-radius:8px; background:#F0F0F3; color:#555555;
  font-size:15px; cursor:default; -webkit-user-select:none; user-select:none; }
.n-compte-secret { position:relative; display:block; }
.n-compte-profil .n-compte-secret input { padding-right:48px; }
.n-compte-identifiant-cache { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.n-compte-bloc { display:flex; flex-direction:column; align-items:flex-start; gap:14px; margin:0; }
.n-compte-bloc .n-compte-champ-profil { align-self:stretch; }
.n-compte-bouton.n-compte-bouton--compact { display:inline-flex; align-items:center; justify-content:center; width:auto; height:42px; margin-top:20px;
  padding:0 22px; font-size:15px; letter-spacing:0; text-transform:none; }
.n-compte-bloc .n-compte-bouton.n-compte-bouton--compact { margin-top:4px; }
.n-compte-bouton.n-compte-bouton--secondaire { border:1px solid #29C5F6; background:#FFFFFF; color:#007FAF; }
.n-compte-bouton.n-compte-bouton--secondaire:hover, .n-compte-bouton.n-compte-bouton--secondaire:focus-visible { border-color:#007FAF; background:#FFFFFF; color:#007FAF; }
.n-compte a.n-compte-bouton { color:#FFFFFF; text-decoration:none; }
.n-compte-offre { padding:16px 18px; border-radius:8px; background:#E5F8FE; }
.n-compte-profil .n-compte-offre-titre { margin:0; font-size:16px; font-weight:500; line-height:1.4; color:#1D1D1C; }
.n-compte-profil .n-compte-offre-texte { max-width:62ch; margin:6px 0 0; font-size:14px; line-height:1.5; color:#555555; }
.n-compte-profil .n-compte-offre-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin:14px 0 0; }
.n-compte-offre .n-compte-bouton.n-compte-bouton--compact { margin-top:0; }
/* en noir souligné : le bleu n'atteint pas 4,5:1 sur la surface bleu clair */
.n-compte a.n-compte-offre-lien { font-size:14px; color:#1D1D1C; text-underline-offset:2px; }
html[data-s2f-theme="dark"] .n-compte h3.n-compte-section-titre,
html[data-s2f-theme="dark"] .n-compte-etiquette,
html[data-s2f-theme="dark"] .n-compte-profil .n-compte-offre-titre,
html[data-s2f-theme="dark"] .n-compte-profil .n-compte-offre-texte,
html[data-s2f-theme="dark"] .n-compte a.n-compte-offre-lien { color:#E8E8E6; }
html[data-s2f-theme="dark"] .n-compte-aide { color:#9B9B98; }
html[data-s2f-theme="dark"] .n-compte-cellule { background:#3A3A39; color:#E8E8E6; }
html[data-s2f-theme="dark"] .n-compte-offre { background:#273F45; }
html[data-s2f-theme="dark"] .n-compte-bouton.n-compte-bouton--secondaire,
html[data-s2f-theme="dark"] .n-compte-bouton.n-compte-bouton--secondaire:hover { background:#272726; color:#29C5F6; }
@media (max-width: 600px) {
  .n-compte.n-compte-profil { margin:24px 16px; padding:28px 20px; }
  .n-compte-grille { grid-template-columns:minmax(0, 1fr); }
  .n-compte-profil input[type="text"], .n-compte-profil input[type="password"], .n-compte-profil input[type="email"] { font-size:16px; }
}
/* Le thème (n-ntb) impose à tout lien du contenu sa couleur et son soulignement, en !important : le bouton et le lien
   de l'encart myInvests gardent les leurs, par des sélecteurs plus précis que le sien (1 id, 5 classes). */
#page-container .n-compte.n-compte-profil .n-compte-section .n-compte-grille .n-compte-offre .n-compte-offre-actions a.n-compte-bouton { color:#FFFFFF !important; text-decoration:none !important; }
#page-container .n-compte.n-compte-profil .n-compte-section .n-compte-grille .n-compte-offre .n-compte-offre-actions a.n-compte-offre-lien { color:#1D1D1C !important; }
html[data-s2f-theme="dark"] #page-container .n-compte.n-compte-profil .n-compte-section .n-compte-grille .n-compte-offre .n-compte-offre-actions a.n-compte-offre-lien { color:#E8E8E6 !important; }
/* Page Profil : au focus, le contour bleu remplace la bordure du champ (pas de double contour). */
.n-compte-profil input[type="text"]:focus, .n-compte-profil input[type="password"]:focus, .n-compte-profil input[type="email"]:focus { border-color:#29C5F6; outline:1px solid #29C5F6; outline-offset:0; }
html[data-s2f-theme="dark"] .n-compte-profil input[type="text"]:focus, html[data-s2f-theme="dark"] .n-compte-profil input[type="password"]:focus, html[data-s2f-theme="dark"] .n-compte-profil input[type="email"]:focus { border-color:#29C5F6; }
