/* Espace client INRAPE */

.compte-auth {
  max-width: 520px;
  margin: 0 auto;
}

.compte-auth--wide {
  max-width: 760px;
}

.compte-auth--wide .exp-btn {
  width: auto;
  min-width: 14rem;
}

.compte-auth .exp-card h2 {
  margin-bottom: 0.4rem;
}

.compte-auth .exp-field {
  margin-bottom: 0.85rem;
}

.compte-auth .exp-btn {
  width: 100%;
  min-height: 44px;
  font-size: 0.92rem;
}

.compte-links {
  margin-top: 1rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: #4b5563;
  line-height: 1.8;
}

.compte-links a {
  color: #1b6b3a;
  font-weight: 600;
}

.compte-intro {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: #4b5563;
  margin: 0 0 1.1rem;
  line-height: 1.6;
}

.compte-fieldset {
  border: 1px solid #e5ebe7;
  border-radius: 12px;
  padding: 0.85rem 1rem 0.35rem;
  margin: 0 0 1rem;
}

.compte-fieldset legend {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #111827;
  padding: 0 0.35rem;
}

.compte-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #3f4a44;
  background: #f4f7f5;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin: 0 0 0.9rem;
}

.compte-note--pro {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}

.compte-hint {
  font-weight: 400;
  color: #6b7280;
}

.compte-banner {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.compte-banner--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}

.compte-banner--ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.compte-banner ul,
.compte-login-gate ul {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
}

.compte-devlink {
  word-break: break-all;
  font-size: 0.82rem;
}

.compte-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.compte-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.compte-hello {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #111827;
  margin: 0;
}

.compte-hello small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 400;
  margin-top: 0.2rem;
}

.compte-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.compte-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.compte-quick a {
  display: block;
  background: #fff;
  border: 1px solid #dde5df;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: #111827;
  font-family: 'Inter', sans-serif;
  transition: border-color .15s, box-shadow .15s;
}

.compte-quick a:hover {
  border-color: #1b6b3a;
  box-shadow: 0 4px 14px rgba(27, 107, 58, 0.12);
}

.compte-quick strong {
  display: block;
  font-size: 0.95rem;
  color: #1b6b3a;
  margin-bottom: 0.2rem;
}

.compte-quick span {
  font-size: 0.8rem;
  color: #6b7280;
}

.compte-table-wrap {
  overflow-x: auto;
}

.compte-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
}

.compte-table th,
.compte-table td {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid #e8eeea;
  text-align: left;
  vertical-align: top;
}

.compte-table th {
  color: #6b7280;
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.compte-table tr:last-child td {
  border-bottom: none;
}

.compte-motif {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #b91c1c;
}

.compte-empty {
  padding: 1.1rem;
  text-align: center;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  border: 1px dashed #cfd8d2;
  border-radius: 8px;
}

.compte-login-gate {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.compte-login-gate p {
  font-family: 'Inter', sans-serif;
  color: #4b5563;
  line-height: 1.6;
}

.compte-login-gate .compte-actions {
  justify-content: center;
  margin-top: 1rem;
}

.compte-connected-as {
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .compte-quick {
    grid-template-columns: 1fr;
  }
}

/* ----- Dashboard espace client ----- */
.compte-main .compte-hero {
  min-height: 0;
  padding: 5.5rem 0 1.35rem;
}

.compte-main .compte-hero .exp-hero-inner h1 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin-bottom: 0.35rem;
}

.compte-main .compte-hero .exp-hero-inner p {
  margin: 0;
  font-size: 0.92rem;
  max-width: 36rem;
  opacity: 0.92;
}

.compte-main .compte-section {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.compte-dash .compte-topbar {
  margin-bottom: 0.85rem;
}

.compte-banner--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1rem;
}

.compte-banner--compact ul {
  display: none;
}

.compte-banner-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  min-width: 0;
}

.compte-banner-main strong {
  font-weight: 700;
}

.compte-banner-main span {
  color: inherit;
  opacity: 0.92;
  font-size: 0.84rem;
}

.compte-banner-link {
  flex: 0 0 auto;
  font-weight: 700;
  color: #92400e;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.compte-banner--ok.compte-banner--compact {
  display: block;
}

.compte-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.compte-kpi-card {
  background: #fff;
  border: 1px solid #dde5df;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  box-shadow: 0 6px 18px rgba(15, 61, 36, 0.05);
}

.compte-kpi-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.compte-kpi-value {
  display: block;
  margin-top: 0.35rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  line-height: 1.1;
  color: #0f3d24;
}

.compte-kpi-hint {
  display: block;
  margin-top: 0.3rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.35;
}

.compte-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}

.compte-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compte-side {
  display: grid;
  gap: 1rem;
}

.compte-panel {
  margin-bottom: 0;
}

.compte-panel + .compte-panel,
.compte-dash > .exp-card {
  margin-top: 0;
}

.compte-dash > .exp-card,
.compte-dash > .compte-grid + .exp-card {
  margin-bottom: 1rem;
}

.compte-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.compte-panel-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.compte-panel-count {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}

.compte-sub {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.compte-pill {
  display: inline-block;
  min-width: 1.6rem;
  text-align: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 700;
  font-size: 0.8rem;
}

.exp-btn--sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  min-height: 0;
}

.compte-quick--stack {
  grid-template-columns: 1fr;
  margin-bottom: 0;
  gap: 0.55rem;
}

.compte-side-title {
  margin: 0.35rem 0 0.45rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.compte-credit-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}

.compte-credit-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eef3ef;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
}

.compte-credit-list li:last-child {
  border-bottom: none;
}

.compte-credit-list strong {
  color: #111827;
  font-weight: 600;
}

.compte-credit-list span {
  color: #166534;
  font-weight: 700;
  text-align: right;
}

.compte-credit-list small {
  grid-column: 1 / -1;
  color: #6b7280;
  font-size: 0.75rem;
}

.compte-forum-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compte-forum-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid #eef3ef;
  font-family: 'Inter', sans-serif;
}

.compte-forum-list li:last-child {
  border-bottom: none;
}

.compte-forum-list a,
.compte-forum-list strong {
  display: block;
  color: #0f3d24;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.compte-forum-list span {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8rem;
  color: #6b7280;
}

@media (max-width: 960px) {
  .compte-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compte-grid,
  .compte-grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .compte-kpi {
    grid-template-columns: 1fr;
  }

  .compte-banner--compact {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----- Tableau de bord v5 ----- */
.compte-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.compte-dash .compte-topbar {
  background: #fff;
  border: 1px solid #dde5df;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 6px 18px rgba(15, 61, 36, 0.05);
}

.compte-hello-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.compte-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1b6b3a, #0f3d24);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.compte-dash .compte-hello {
  font-size: 1.2rem;
}

.compte-dash .compte-actions .exp-btn {
  min-height: 38px;
  font-size: 0.85rem;
}

.compte-section-title {
  margin: 0 0 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4b5563;
}

.compte-actions-grid {
  margin-bottom: 1.15rem;
}

.compte-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
}

.compte-tile {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.9rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #1b6b3a 0%, #0f3d24 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 61, 36, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.compte-tile:hover,
.compte-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 61, 36, 0.26);
  color: #fff;
}

.compte-tile-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
}

.compte-tile-ico .compte-ico {
  width: 21px;
  height: 21px;
}

.compte-tile-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: 'Inter', sans-serif;
}

.compte-tile-text strong {
  font-size: 0.86rem;
  line-height: 1.25;
  font-weight: 700;
}

.compte-tile-text span {
  font-size: 0.75rem;
  opacity: 0.85;
  line-height: 1.3;
}

.compte-tile--soft {
  background: #fff;
  color: #0f3d24;
  border: 1px solid #dde5df;
  box-shadow: 0 6px 18px rgba(15, 61, 36, 0.05);
}

.compte-tile--soft:hover,
.compte-tile--soft:focus-visible {
  color: #0f3d24;
  border-color: #1b6b3a;
  box-shadow: 0 10px 22px rgba(15, 61, 36, 0.12);
}

.compte-tile--soft .compte-tile-ico {
  background: #ecfdf5;
  color: #1b6b3a;
}

.compte-tile--soft .compte-tile-text span {
  color: #6b7280;
  opacity: 1;
}

.compte-kpi-card {
  position: relative;
  padding-left: 3.6rem;
}

.compte-kpi-ico {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #1b6b3a;
}

aside.compte-side {
  display: block;
}

.compte-dash .compte-panel-head {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #eef3ef;
}

.compte-dash .compte-table th {
  background: #f7faf8;
}

.compte-dash .compte-table tbody tr:hover td {
  background: #fafcfb;
}

.compte-table .is-right {
  text-align: right;
}

.compte-table .is-center {
  text-align: center;
}

.compte-ref {
  color: #0f3d24;
  white-space: nowrap;
}

.compte-table .exp-status {
  white-space: nowrap;
}

.compte-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 8px;
  background: #1b6b3a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.compte-dl:hover,
.compte-dl:focus-visible {
  background: #155729;
  color: #fff;
}

.compte-dl .compte-ico {
  width: 16px;
  height: 16px;
}

.compte-dl.is-off {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: help;
}

.compte-docs {
  margin-bottom: 1rem;
}

.compte-nowrap {
  white-space: nowrap;
}

.compte-grid--2 .compte-dl {
  padding: 0.42rem;
}

.compte-grid--2 .compte-dl > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .compte-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compte-tile {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .compte-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .compte-tile {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem;
  }
}
