/* ═════════════ Mon compte : page plate, sobre ═════════════
   Une bande grise en haut (logo, titre, « Fermer »), puis un corps blanc : chaque rubrique (Profils, Mot de passe, E-mail,
   Téléphone) tient sur une ligne séparée par un filet, avec son pictogramme à gauche, un petit libellé gris, sa valeur, et des
   boutons à contour. Plus de cartes de verre, plus de nappe violette. Chargé en dernier par reglages.html. */

.mon-compte {
  background: #fff !important;
  overflow-x: hidden;
  --mc-gris: #f0f2f5;
  --mc-filet: #e4e6ea;
  --mc-encre: #1b1f2a;
  --mc-doux: #5b6270;
  --mc-violet: #4b3f8f;
}
.mon-compte::before { display: none !important; }

.mc-page { width: min(880px, 100%); padding: 0 var(--space-lg) 72px; }

/* ── La bande du haut ── */
.mc-marque { display: none; }
.mc-entete {
  position: relative;
  align-items: center;
  margin: 0 0 var(--space-lg);
  padding: 14px 0;
  /* La bande court d'un bord à l'autre de l'écran, quelle que soit la largeur de la colonne. */
  box-shadow: 0 0 0 100vmax var(--mc-gris);
  clip-path: inset(0 -100vmax);
  background: var(--mc-gris);
  border-bottom: 0;
}
.mc-entete::after {                       /* filet sous la bande */
  content: ""; position: absolute; left: -100vmax; right: -100vmax; bottom: 0; border-bottom: 1px solid var(--mc-filet);
}
.mc-titre {
  display: flex; align-items: center; gap: 14px;
  font-size: 21px; font-weight: 600; letter-spacing: -.01em; color: #3d4350;
}
.mc-titre::before {
  content: ""; width: 28px; height: 28px; flex: 0 0 auto;
  background: url("../assets/brand/icone.svg") center / contain no-repeat;
}
.mc-fermer {
  position: relative;
  width: 36px; height: 36px;
  margin-right: 0;
  border: 1px solid var(--mc-filet);
  background: transparent;
  box-shadow: none;
  color: var(--mc-violet);
}
.mc-fermer::before {
  content: "Fermer"; position: absolute; right: 46px; top: 50%; transform: translateY(-50%);
  font-size: 14px; font-weight: 500; color: var(--mc-violet);
}
.mc-fermer:hover { background: #fff; border-color: var(--mc-violet); box-shadow: none; }

/* ── Les rubriques ── */
.mc-section.carte {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 600px);
  column-gap: 0;
  margin: 0;
  padding: 22px 0 26px;
  background: none !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.mc-section.carte + .mc-section.carte::after {
  content: ""; position: absolute; left: -100vmax; right: -100vmax; top: 0; border-top: 1px solid var(--mc-filet);
}
.mc-section.carte::before {
  content: ""; grid-column: 1; grid-row: 1 / span 6; width: 22px; height: 22px; margin-top: 1px;
  background: center / contain no-repeat;
}
.mc-section.carte > * { grid-column: 2; }
.mc-section__titre {
  margin: 0 0 10px; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--mc-doux);
}

/* Pictogrammes (trait fin, encre) */
#mc-vue-profil > .mc-section:nth-of-type(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1f2a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3.5 19c.5-3.2 2.8-5 5.5-5s5 1.8 5.500 5'/%3E%3Cpath d='M16 5.200a3.200 3.200 0 0 1 0 5.600M17.500 14.400c2 .6 3.400 2.200 3.800 4.600'/%3E%3C/svg%3E"); }
#mc-vue-profil > .mc-section:nth-of-type(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1f2a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.500' y='5' width='19' height='14' rx='3'/%3E%3Cpath d='M2.500 10h19M6.500 15h3'/%3E%3C/svg%3E"); }
#mc-vue-profil > .mc-section:nth-of-type(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1f2a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='m11 12 8-8M16 7l2.500 2.500M14 9l2 2'/%3E%3C/svg%3E"); }
#mc-vue-profil > .mc-section:nth-of-type(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1f2a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.500' width='18' height='13' rx='2.500'/%3E%3Cpath d='m4 8 8 5.500L20 8'/%3E%3C/svg%3E"); }
#mc-vue-profil > .mc-section:nth-of-type(5)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1f2a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.500' width='10' height='19' rx='2.500'/%3E%3Cpath d='M11 18.500h2'/%3E%3C/svg%3E"); }
#mc-vue-profil > .mc-section:nth-of-type(6)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1f2a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6'/%3E%3Cpath d='M6 7l1 12.500a1.500 1.500 0 0 0 1.500 1.500h7a1.500 1.500 0 0 0 1.500-1.500L18 7M9 7V4.500A1.500 1.500 0 0 1 10.500 3h3A1.500 1.500 0 0 1 15 4.500V7'/%3E%3C/svg%3E"); }

/* ── Profils : une carte fine par personne ── */
.mc-profils { gap: 8px; border-radius: 0; box-shadow: none; overflow: visible; }
.mc-profil {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--mc-filet);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(25, 28, 40, .06);
}
.mc-profil:first-child { border-top: 1px solid var(--mc-filet); }
.mc-profil__avatar { width: 38px; height: 38px; font-size: 13px; font-weight: 600; background: #ecebf8; color: var(--mc-violet); }
.mc-profil__nom { font-size: 15px; font-weight: 600; color: var(--mc-encre); }
.mc-profil__detail { font-size: 13px; color: var(--mc-doux); }
.mc-profil__action, .mon-compte .btn--ghost {
  padding: 7px 16px; font-size: 13.5px; font-weight: 600;
  color: var(--mc-violet); background: #fff; border: 1.5px solid var(--mc-violet); border-radius: 999px;
  box-shadow: none;
}
.mc-profil__action:hover, .mon-compte .btn--ghost:hover { background: #f3f1fb; border-color: var(--mc-violet); }
/* « Retirer » : contour rouge, comme sur la référence */
.mc-profil__supprimer {
  width: auto; height: auto; padding: 7px 16px; border: 1.5px solid #c1121f; border-radius: 999px; color: #c1121f; background: #fff;
  font: inherit; font-size: 13.5px; font-weight: 600; gap: 6px;
}
.mc-profil__supprimer::after { content: "Retirer"; }
.mc-profil__supprimer:hover { background: #fdecee; border-color: #c1121f; color: #c1121f; }
.mc-profil--vide { border: 1px dashed #c9ccd3; background: #fafafb; box-shadow: none; }
.mc-profil--vide .mc-profil__avatar { background: var(--mc-violet); color: #fff; }
.mc-profil--vide:hover { background: #f3f1fb; }
.mc-plafond { background: #f3f1fb; color: var(--mc-doux); }

/* ── Changer d'adresse e-mail ── */
.mc-email-modifier { margin-top: 12px; }
.mc-email-forme { margin-top: 14px; display: grid; gap: 8px; max-width: 420px; }
.mc-email-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.mc-email-forme[hidden], .mc-email-modifier[hidden] { display: none; }
.mc-email-forme .field__label { font-size: 13px; font-weight: 600; color: var(--mc-encre); }
.mc-email-forme .field__input {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 15px; color: var(--mc-encre); background: #fff;
  border: 1.5px solid #c9ccd3; border-radius: 12px; box-shadow: none;
}
.mc-email-forme .field__input:focus { outline: 2px solid var(--action-focus, #5b6cff); outline-offset: 2px; border-color: var(--mc-violet); }
.mc-email-actions .btn { padding: 8px 16px; font-size: 13.5px; font-weight: 600; }
.mc-email-actions .btn--action { color: #fff; background: var(--mc-violet); border: 1.5px solid var(--mc-violet); }
@media (max-width: 560px) { .mc-email-modifier, .mc-email-actions .btn { width: 100%; justify-content: center; } }

/* ── Mot de passe, e-mail, téléphone ── */
.mc-mdp-points { margin: 0 0 12px; font-size: 16px; letter-spacing: 3px; color: var(--mc-encre); }
.mc-section .reglage__valeur, .mc-section .reglage__fige, .mc-section .reglage { color: var(--mc-encre); }
.mc-section .reglage__valeur { font-size: 15px; font-weight: 600; }
.mc-section .reglage__fige { margin-top: 4px; font-size: 13px; color: var(--mc-doux); }
.mc-section .reglage { padding: 0; border: 0; background: none; box-shadow: none; }
.mc-statut { color: var(--mc-doux); }

/* ── Données et confidentialité, sous les rubriques ── */
.mc-discret { margin-top: 0; padding-top: 22px; border-top: 0; position: relative; }
.mc-discret::after { content: ""; position: absolute; left: -100vmax; right: -100vmax; top: 0; border-top: 1px solid var(--mc-filet); }
.mc-discret summary { color: var(--mc-doux); font-size: 13px; }

/* ── Vue « Ajouter une autre personne » : même bande, même corps ── */
#mc-vue-ajouter { padding-bottom: 40px; }

@media (max-width: 720px) {
  .mc-page { padding: 0 16px 72px; }
  .mc-entete { padding: 14px 0; margin-bottom: 8px; }
  .mc-titre { font-size: 18px; gap: 8px; }
  .mc-titre::before { width: 24px; height: 24px; }
  .mc-fermer { width: 34px; height: 34px; }
  .mc-fermer::before { right: 44px; font-size: 13.5px; }
  .mc-section.carte { grid-template-columns: 1fr; padding: 26px 0 28px; }
  .mc-section.carte::before { grid-row: auto; margin: 0 0 12px; }
  .mc-section.carte > * { grid-column: 1; }
  .mc-profil { flex-wrap: wrap; padding: 12px; }
  .mc-profil__actions { width: 100%; }
  .mc-profil__action, .mc-profil__supprimer { padding: 9px 16px; font-size: 14px; }
}

/* Détails des corrections */
.mc-section.carte > .btn, .mc-section.carte > button { justify-self: start; }
#mc-telephone .reglage { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#mc-telephone .reglage__icone, #mc-telephone .reglage__label { display: none; }
#mc-telephone .reglage__valeur { font-size: 15px; }
.mon-compte .reglage__modifier {
  padding: 7px 16px; font-size: 13.5px; font-weight: 600; color: var(--mc-violet); background: #fff;
  border: 1.5px solid var(--mc-violet); border-radius: 999px; box-shadow: none; cursor: pointer;
}
.mon-compte .reglage__modifier:hover { background: #f3f1fb; }

@media (max-width: 720px) {
  .mc-section.carte { grid-template-columns: minmax(0, 1fr); }
  .mc-profil { align-items: center; }
  .mc-profil__corps { flex: 1 1 calc(100% - 80px); }
  .mc-profil__actions { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
  .mc-profil__actions > * { flex: 1 1 140px; justify-content: center; }
  .mc-profil > .mc-profil__action { flex: 1 1 100%; }
  .mon-compte .btn--ghost { width: 100%; }
  #mc-telephone .reglage { flex-wrap: wrap; }
}
#mc-telephone .reglage { padding-left: 14px; }
.mc-discret summary, .mc-discret__corps { margin-left: 48px; }
@media (max-width: 720px) { #mc-telephone .reglage { padding-left: 0; } .mc-discret summary, .mc-discret__corps { margin-left: 0; } }

/* ── Abonnement (déplacé de Réglages dans Mon compte) : même langage plat que le reste, sans halo ni dégradé ── */
.mc-section .abo { gap: 14px; width: 100%; }
.mc-section .abo__ligne { padding: 14px 16px 14px 18px; border-radius: 14px; border: 1px solid var(--mc-filet); background: #faf9fd; }
.mc-section .abo__ligne::before { inset: 12px auto 12px 0; width: 3px; box-shadow: none; }
.mc-section .abo__etat { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--mc-encre); }
.mc-section .abo__detail { font-size: 14px; line-height: 1.55; color: var(--mc-doux); }
.mc-section .abo__faits { width: 100%; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.mc-section .abo__faits > div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--mc-filet); background: #fff; }
.mc-section .abo__faits dt { font-size: 11px; color: var(--mc-doux); }
.mc-section .abo__faits dd { margin-top: 2px; font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--mc-encre); }
.mc-section .abo__bouton {
  padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--mc-violet); background: #fff;
  border: 1.5px solid var(--mc-violet); border-radius: 999px; box-shadow: none;
}
.mc-section .abo__bouton:hover { transform: none; color: var(--mc-violet); background: #f3f1fb; border-color: var(--mc-violet); box-shadow: none; }
.mc-section .abo__bouton--plein, .mc-section .abo__bouton--plein:hover { color: #fff; background: var(--mc-violet); border-color: var(--mc-violet); }
.mc-section .abo__montee { padding: 12px 14px; border-radius: 14px; background: #f3f1fb; box-shadow: none; }
.mc-section .abo__montee-titre { color: var(--mc-encre); }
.mc-section .abo__montee-texte { color: var(--mc-doux); }
.mc-section__note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--mc-doux); }
@media (max-width: 560px) { .mc-section .abo__bouton { width: 100%; justify-content: center; } }

/* Supprimer mon compte : le texte du bouton est rouge, le fond reste celui des autres boutons (rien ne crie avant la confirmation). */
.mc-section .mc-suppression-bouton { color: var(--signal-critique); margin-top: 6px; }
.mc-section .mc-suppression-bouton:hover { color: var(--signal-critique); background: var(--signal-critique-tint); }
