/* ================================================================
   Panel Crème — Mon compte (style cohérent avec home.css)
   Layout : 2 colonnes sur desktop (infos+mdp à gauche, support+danger
   à droite), stack mobile.
   ================================================================ */

.compte-welcome { margin-bottom: 2rem; }

.compte-welcome .home-title {
  font-family: Labil, Arial, sans-serif;
  font-size: clamp(1.75rem, 5.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--base);
  margin: 0;
}
.compte-welcome .home-title .hl {
  display: inline;
  background-image: linear-gradient(transparent 58%, var(--secondary) 58%, var(--secondary) 90%, transparent 90%);
  padding: 0 0.15em;
}
.compte-welcome .home-subtitle {
  font-family: Labil, Arial, sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 600;
  color: var(--grey);
  margin-top: 0.85rem;
}

/* Bouton retour */
.compte-back {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: -1.75rem auto 1.25rem;
  width: 100%;
  padding: 0 0.25rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--secondary);
  color: var(--base);
  border: 2px solid var(--base);
  border-radius: var(--radius-md);
  box-shadow: 3px 3px 0 var(--base);
  font-family: Labil, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.back-link:hover {
  transform: translate(-2px, -3px);
  box-shadow: 7px 8px 0 var(--base);
}
.back-link:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0 var(--base);
}
.back-link svg { flex-shrink: 0; }

/* Alerte */
.alert.compte-alert {
  position: relative;
  z-index: 1;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
}

/* ================================================================
   GRID 2 COLONNES
   ================================================================ */

.compte-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}
@media (min-width: 960px) {
  .compte-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2rem;
  }
}

.compte-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

/* ================================================================
   COMPTE CARD (style cohérent avec home app-card)
   ================================================================ */

.compte-card {
  background: #fff;
  border: 2.5px solid var(--base);
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem;
  box-shadow: 5px 5px 0 var(--base);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.compte-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.compte-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.8rem;
  border: 2.5px solid var(--base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 3px 3px 0 var(--base);
  transform: rotate(-4deg);
}
.compte-card-icon--infos    { background: var(--primary); }
.compte-card-icon--support  { background: var(--green); }
.compte-card-icon--danger   { background: var(--red); }

.compte-card-title {
  font-family: Labil, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--base);
  line-height: 1.1;
  margin: 0 0 0.2rem;
}
.compte-card-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey);
  margin: 0;
  line-height: 1.3;
}

/* ---- Infos card gradient ---- */
.infos-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 10%, #fff) 0%, #fff 60%);
}

/* ---- Profile photo ---- */
.profile-photo-zone {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(0,0,0,0.025);
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
}
.profile-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2.5px solid var(--base);
  box-shadow: 3px 3px 0 var(--base);
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.profile-photo-initials {
  font-family: Labil, Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--base);
  text-transform: uppercase;
  line-height: 1;
}
.profile-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.profile-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.profile-photo-btn {
  cursor: pointer;
  font-size: 0.78rem !important;
  padding: 0.4rem 0.75rem !important;
}
.profile-photo-change {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--base) !important;
  box-shadow: var(--shadow-sm) !important;
}
.profile-photo-change svg {
  stroke: #fff;
}
.profile-photo-change:hover {
  transform: translate(-1px, -2px);
  box-shadow: 4px 5px 0 var(--base) !important;
}
.profile-photo-delete {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--base) !important;
  box-shadow: var(--shadow-sm) !important;
}
.profile-photo-delete:hover {
  transform: translate(-1px, -2px);
  box-shadow: 4px 5px 0 var(--base) !important;
}
.profile-photo-delete svg {
  stroke: #fff;
}
.profile-photo-hint {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--grey);
}
.profile-photo-disclaimer {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 2px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 0.85rem;
}
.profile-photo-disclaimer-text {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--grey);
}

/* ================================================================
   SUPPORT CARD
   ================================================================ */

.support-card { background: linear-gradient(180deg, #dcfae8 0%, #fff 60%); }

.support-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.support-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  background: #fff;
  border: 2px solid var(--base);
  border-radius: 0.85rem;
  box-shadow: 3px 3px 0 var(--base);
  text-decoration: none;
  color: var(--base);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.support-btn:hover {
  transform: translate(-2px, -3px);
  box-shadow: 5px 5px 0 var(--base);
}

.support-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.65rem;
  border: 2px solid var(--base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 2px 2px 0 var(--base);
}
.support-btn--email    .support-btn-icon { background: var(--primary); }
.support-btn--phone    .support-btn-icon { background: var(--base); color: var(--secondary); }
.support-btn--whatsapp .support-btn-icon { background: #25d366; }

.support-btn-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.support-btn-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.2rem;
}
.support-btn-value {
  font-family: Labil, Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--base);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-btn-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--base);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  transition: transform 0.18s ease;
}
.support-btn:hover .support-btn-arrow { transform: translateX(3px); }

/* ================================================================
   MODIF CARD
   ================================================================ */

.modif-card {
  background: linear-gradient(180deg, rgba(255, 234, 41, 0.25) 0%, #fff 60%);
  border-color: var(--base);
  box-shadow: 5px 5px 0 var(--secondary);
}
.compte-card-icon--modif { background: var(--secondary); color: var(--base); }
.compte-card-icon--marketing { background: #4dabf7; color: #fff; }

.marketing-card {
  background: linear-gradient(180deg, rgba(77, 171, 247, 0.12) 0%, #fff 60%);
  border-color: #4dabf7;
  box-shadow: 5px 5px 0 #4dabf7;
}

.modif-card .input:focus {
  border-color: var(--base);
  box-shadow: 4px 4px 0 var(--secondary);
}

.modif-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem !important;
  border: 2px solid var(--base) !important;
  border-radius: 0.85rem !important;
  box-shadow: 3px 3px 0 var(--base) !important;
  color: var(--base);
}
.modif-msg--info {
  background: rgba(209, 50, 45, 0.06) !important;
  border-color: var(--red) !important;
  box-shadow: 3px 3px 0 var(--red) !important;
}
.modif-msg--success {
  background: rgba(0, 194, 107, 0.12) !important;
  border-color: var(--green) !important;
  box-shadow: 3px 3px 0 var(--green) !important;
}
.modif-msg--error {
  background: rgba(209, 50, 45, 0.1) !important;
  border-color: var(--red) !important;
  box-shadow: 3px 3px 0 var(--red) !important;
}
.modif-msg-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  border: 2px solid var(--base);
  box-shadow: 2px 2px 0 var(--base);
  font-size: 1.15rem;
  font-weight: 900;
}
.modif-msg--info .modif-msg-icon,
.modif-msg--error .modif-msg-icon {
  background: var(--red);
  color: #fff;
}
.modif-msg--success .modif-msg-icon {
  background: var(--green);
  color: #fff;
}
.modif-msg-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.modif-msg-title {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}
.modif-msg--info .modif-msg-title,
.modif-msg--error .modif-msg-title {
  color: var(--red);
}
.modif-msg--success .modif-msg-title {
  color: var(--green);
}
.modif-msg-body {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--grey);
}

.btn-modif {
  background: var(--secondary);
  color: var(--base);
  border: 2.5px solid var(--base);
  box-shadow: 5px 5px 0 var(--base);
}
.btn-modif:hover {
  transform: translate(-2px, -3px);
  box-shadow: 7px 8px 0 var(--base);
  background: #e0c800;
}

/* ================================================================
   LOGOUT / OUTLINE BTN
   ================================================================ */


.btn-outline {
  background: var(--red);
  color: #fff;
  border: 2.5px solid var(--base);
  box-shadow: 5px 5px 0 var(--base);
}
.btn-outline:hover {
  transform: translate(-2px, -3px);
  box-shadow: 7px 8px 0 var(--base);
  background: #c62828;
}

/* ================================================================
   TUTO CTA CARD
   ================================================================ */

.tuto-cta-card {
  background: linear-gradient(180deg, rgba(252, 107, 68, 0.12) 0%, #fff 60%);
  border-color: var(--orange);
  box-shadow: 5px 5px 0 var(--orange);
}
.compte-card-icon--tuto { background: var(--orange); }

.btn-tuto {
  background: var(--orange);
  color: #fff;
  border-color: var(--base);
  box-shadow: 5px 5px 0 var(--base);
}
.btn-tuto:hover {
  box-shadow: 7px 8px 0 var(--base);
  background: #e05a38;
}

/* ================================================================
   DANGER CARD
   ================================================================ */

.danger-card {
  background: linear-gradient(180deg, rgba(209, 50, 45, 0.07) 0%, #fff 60%);
  border-color: var(--red);
  box-shadow: 5px 5px 0 var(--red);
}
.danger-card .compte-card-title { color: var(--red); }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (min-width: 900px) {
  .compte-back { margin-top: -1.5rem; }
  .compte-card { padding: 1.75rem 1.6rem; }
  .compte-card-icon { width: 52px; height: 52px; }
  .compte-card-title { font-size: 1.3rem; }
}
