/* Espace pro de stage.fr. S'ajoute à site.css (mêmes couleurs, mêmes polices). Mobile d'abord. */

/* En-tête ------------------------------------------------------------------------------- */

.pro-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 0; }
.pro-brand img { height: 44px; width: auto; }
.pro-brand__pill {
  font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--petrol); background: var(--mint);
  padding: 3px 10px; border-radius: 999px;
}
.pro-nav__out, .pro-nav__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 8px; }
.pro-nav__org { color: var(--on-dark-muted); font-size: 14px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-nav__logout {
  min-height: 44px; padding: 8px 0; border: 0; background: none; cursor: pointer;
  color: var(--on-dark); font: inherit; font-size: 15px; text-decoration: underline;
}
.pro-nav__logout:hover { color: var(--mint); }
.btn--pill { border-radius: 999px; }
.btn--xs { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn--outline-light { background: transparent; color: var(--on-dark); border-color: var(--petrol-line); }
.btn--outline-light:hover { border-color: var(--mint); color: var(--mint); }

/* Accueil pro ---------------------------------------------------------------------------- */

.pro-hero { background: var(--petrol); color: var(--on-dark); }
.pro-hero__inner { display: flex; flex-direction: column; gap: 20px; padding-top: 40px; padding-bottom: 44px; }
.pro-hero__title { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.12; max-width: 15em; }
.pro-hero__lead { font-size: 17px; color: var(--on-dark-muted); max-width: 36em; }
.pro-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.pro-figures {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 8px 0 0;
  background: #1D5870; border-radius: 16px; overflow: hidden;
}
.pro-figures > div { background: var(--petrol); padding: 16px; display: flex; flex-direction: column; }
.pro-figures dt { font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.pro-figures dd { margin: 0; color: var(--on-dark-muted); font-size: 14px; }

.section--flush { padding-top: 0; }
.eyebrow--blue { color: var(--blue); }
.eyebrow--green { color: var(--green); }

.pro-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.pro-step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.pro-step b { font-size: 19px; }
.pro-step__n { font-family: var(--font-head); font-size: 28px; font-weight: 600; color: var(--ink); line-height: 1; }

.pro-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }

.pro-profile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.pro-profile__head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pro-profile__btn { align-self: flex-start; }
.pro-date {
  flex: none; font-size: 13px; font-weight: 700; color: var(--green); background: #E1F2EA;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}

.pro-offer {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.pro-offer--dark { background: var(--petrol); border-color: var(--petrol); color: var(--on-dark); }
.pro-offer__name { font-size: 22px; }
.pro-offer__price { font-family: var(--font-head); font-size: 32px; font-weight: 600; line-height: 1; }
.pro-offer__unit { font-size: 15px; color: var(--muted); }
.pro-offer--dark .pro-offer__unit { color: var(--on-dark-muted); }
.pro-offer__list { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); flex: 1; }
.pro-offer--dark .pro-offer__list { color: #D9EBF0; }
.pro-offer .btn { margin-top: 4px; }
.pro-ht { font-size: 0.55em; font-weight: 500; }
.pro-offer__list .pro-ht, .small .pro-ht { font-size: 1em; }

.pro-plan {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.pro-plan--best { border-color: var(--mint); box-shadow: inset 4px 0 0 var(--mint); }
.pro-plan__name { font-size: 19px; }
.pro-plan__price { font-family: var(--font-head); font-size: 26px; font-weight: 600; line-height: 1.1; }
.pro-offer__list--dark { color: var(--muted); }
.pro-plans { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.pro-plan--choice { cursor: pointer; padding-left: 52px; }
.pro-plan--choice input { position: absolute; left: 20px; top: 24px; width: 20px; height: 20px; accent-color: var(--petrol); }
.pro-plan--choice:has(input:checked) { border-color: var(--petrol); box-shadow: 0 0 0 2px var(--petrol); }

.pro-faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.pro-faq summary { cursor: pointer; font-weight: 700; min-height: 28px; }
.pro-faq p { margin-top: 8px; color: var(--muted); }

.pro-lead { background: var(--grey-soft); border-radius: var(--radius-xl); padding: 24px 18px; display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.pro-lead .btn { align-self: flex-start; }
.pro-lead__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.pro-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Formulaires ----------------------------------------------------------------------------- */

.pro-narrow { max-width: 720px; }
.pro-form { display: flex; flex-direction: column; gap: 16px; }
.pro-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.pro-form__row--tight { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.pro-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; min-width: 0; }
.pro-field .muted { font-weight: 400; }
.pro-field input, .pro-field select, .pro-field textarea {
  width: 100%; min-width: 0; font: inherit; font-weight: 400; color: var(--petrol); background: var(--white);
  min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
}
.pro-field select[multiple] { padding: 6px; }
.pro-field textarea { resize: vertical; line-height: 1.5; }
.pro-field input:focus, .pro-field select:focus, .pro-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--mint-soft); }
.pro-field--inline { max-width: 320px; }
.pro-fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pro-fieldset legend { font-weight: 700; font-size: 15px; padding: 0 6px; }
.pro-fieldset--chips { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
.pro-check { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 15px; cursor: pointer; }
.pro-check input { width: 18px; height: 18px; accent-color: var(--petrol); }
.pro-choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pro-choice legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.pro-choice__item {
  flex: 1 1 140px; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); cursor: pointer; font-weight: 500;
}
.pro-choice__item:has(input:checked) { border-color: var(--petrol); box-shadow: 0 0 0 2px var(--petrol); font-weight: 700; }
.pro-choice__item input { width: 18px; height: 18px; accent-color: var(--petrol); }
.pro-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pro-linkbtn { border: 0; background: none; padding: 4px 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* Messages ------------------------------------------------------------------------------------ */

.pro-flash { margin-top: 16px; background: var(--mint-soft); border: 1px solid #9FE3C9; border-radius: var(--radius); padding: 12px 16px; font-weight: 500; }
.pro-notice { background: var(--warning-bg); border: 1px solid var(--warning-line); border-radius: var(--radius); padding: 12px 16px; }
.pro-rights { list-style: none; display: grid; gap: 6px; margin: 0; }
.pro-error { background: #FDECEC; border: 1px solid #F2B8B5; color: #8C1D18; border-radius: var(--radius); padding: 12px 16px; font-weight: 500; }
.pro-ok { background: var(--mint-soft); border: 1px solid var(--mint); color: var(--petrol); border-radius: var(--radius); padding: 12px 16px; font-weight: 500; }
.pro-testbanner { background: #FFF4E0; border: 2px dashed #C98A00; color: #6B4600; border-radius: var(--radius); padding: 12px 16px; }

/* Tableau de bord -------------------------------------------------------------------------------- */

.pro-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.pro-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-left: 0; margin-right: 0; margin-bottom: 0; }
.pro-kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.pro-kpi dt { font-size: 14px; color: var(--muted); }
.pro-kpi dd { margin: 2px 0 0; font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.pro-kpi dd .pro-pill, .pro-kpi dd .small { font-family: var(--font-body); }
.pro-kpi--mint { background: var(--mint-soft); border-color: #9FE3C9; }

.pro-cta { background: var(--petrol); color: var(--on-dark); border-radius: var(--radius-xl); padding: 22px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.pro-cta__lead { color: var(--on-dark-muted); }

.pro-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.pro-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; min-width: 0; }
.pro-card--focus { border-color: var(--ink); box-shadow: 0 0 0 2px var(--mint-soft); }
.pro-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pro-list { display: flex; flex-direction: column; }
.pro-list__item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pro-list__item:first-child { border-top: 0; padding-top: 0; }
.pro-list__main { flex: 1 1 220px; display: flex; flex-direction: column; min-width: 0; }
.pro-list__title { font-weight: 700; text-decoration: none; }
.pro-list__title:hover { text-decoration: underline; }
.pro-list__stats { color: var(--muted); white-space: nowrap; }
.pro-block { display: block; }

.pro-pill { display: inline-block; font-size: 13px; font-weight: 700; line-height: 1.4; padding: 3px 10px; border-radius: 999px; background: var(--grey-soft); color: var(--petrol); text-decoration: none; white-space: nowrap; }
.pro-pill--paid, .pro-pill--accepted { background: #E1F2EA; color: var(--green); }
.pro-pill--pending, .pro-pill--new { background: var(--warning-bg); color: #8A5A00; }
.pro-pill--failed, .pro-pill--declined { background: #FDECEC; color: #8C1D18; }
.pro-pill--expired, .pro-pill--cancelled, .pro-pill--refunded { background: var(--grey-soft); color: var(--muted); }

.pro-balance { color: var(--muted); font-size: 15px; }
.pro-balance b { color: var(--petrol); font-family: var(--font-head); font-size: 20px; }

/* Tableaux (cartes empilées sur téléphone) ---------------------------------------------------------- */

.pro-table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pro-table { width: 100%; border-collapse: collapse; }
.pro-table th { text-align: left; font-size: 14px; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pro-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.pro-table .num { text-align: right; white-space: nowrap; }
.pro-table__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 759px) {
  .pro-table thead { display: none; }
  .pro-table, .pro-table tbody, .pro-table tr, .pro-table td { display: block; width: 100%; }
  .pro-table tr { padding: 12px 14px; border-top: 1px solid var(--line); }
  .pro-table tr:first-child { border-top: 0; }
  .pro-table td { border: 0; padding: 3px 0; }
  .pro-table .num { text-align: left; }
  .pro-table td[data-label].num::before, .pro-table td[data-label="Statut"]::before, .pro-table td[data-label="Facture"]::before, .pro-table td[data-label="Date"]::before {
    content: attr(data-label) " : "; color: var(--muted); font-size: 14px;
  }
  .pro-table__actions { justify-content: flex-start; padding-top: 8px !important; }
}

/* Profils et contacts ------------------------------------------------------------------------------- */

.pro-search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.pro-filters { display: flex; flex-direction: column; gap: 14px; }
.pro-profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.pro-ask { display: flex; flex-direction: column; gap: 10px; }
.pro-ask summary { list-style: none; align-self: flex-start; }
.pro-ask summary::-webkit-details-marker { display: none; }
.pro-ask[open] summary { background: var(--grey-soft); }
.pro-ask form { margin-top: 10px; }

.pro-apps { display: flex; flex-direction: column; gap: 12px; }
.pro-app { display: flex; flex-direction: column; gap: 10px; }
.pro-app--ok { border-color: #9FE3C9; box-shadow: inset 4px 0 0 var(--mint); }
.pro-app__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.pro-app__status { display: flex; gap: 8px; align-items: center; }
.pro-app__status select { min-height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); font: inherit; font-size: 14px; padding: 4px 8px; background: var(--white); color: var(--petrol); }
.pro-app details summary { cursor: pointer; color: var(--ink); }
.pro-pre { white-space: pre-line; margin-top: 8px; color: var(--muted); }
.pro-reveal { font-weight: 700; }
.pro-quote { margin: 0; padding: 12px 16px; background: var(--bg); border-left: 4px solid var(--mint); border-radius: 8px; white-space: pre-line; }
.pro-share__list { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

.pro-paygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.pro-paybox { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pro-paybox__big { font-family: var(--font-head); font-size: 26px; line-height: 1; }
.pro-packs { display: flex; flex-wrap: wrap; gap: 8px; }

/* Pied de page ---------------------------------------------------------------------------------------- */

.pro-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding-top: 32px; padding-bottom: 20px; }
.pro-footer__inner .site-footer__brand { max-width: 420px; }
.pro-footer__links { display: flex; flex-direction: column; }

/* Écrans plus larges ----------------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .pro-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pro-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pro-lead { padding: 40px; }
  .pro-card { padding: 24px; }
}

@media (min-width: 960px) {
  .pro-brand img { height: 52px; }
  .pro-nav__out, .pro-nav__cta { padding-top: 0; flex-wrap: nowrap; }
  .pro-nav .site-nav__list { gap: 4px 22px; }
  .pro-hero__inner { padding-top: 80px; padding-bottom: 80px; gap: 28px; }
  .pro-hero__title { font-size: 47px; }
  .pro-hero__lead { font-size: 20px; }
  .pro-figures > div { padding: 22px; }
  .pro-figures dt { font-size: 30px; }
  .pro-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pro-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-search { grid-template-columns: 300px minmax(0, 1fr); }
  .pro-filters { position: sticky; top: 16px; }
  .pro-cta { padding: 32px 36px; }
}

/* site.css : .section (padding: 32px 0) écrase la marge latérale de .container */
.container.section { padding-left: var(--gutter); padding-right: var(--gutter); }
.pro-card__head > a { white-space: nowrap; }
