/* apply.coach — Dashboard */

.dash-tabs {
    display: inline-flex;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    margin: 0 0 32px;
}
.dash-tab {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.dash-tab:hover:not(.is-active) { color: var(--text); }
.dash-tab.is-active {
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.dashboard-main {
    padding: 50px 0 100px;
    min-height: calc(100vh - 70px);
}

/* ─── Greeting (déplacé du header au body) ──────────────────────────────── */
.dash-greeting {
    color: var(--text-muted);
    font-size: 14.5px;
    margin: 0 0 14px;
}
.dash-greeting strong { color: var(--text); font-weight: 600; }

.dash-credits {
    display: inline-block;
    margin-left: 12px;
    background: rgba(91, 140, 255, 0.10);
    border: 1px solid rgba(91, 140, 255, 0.25);
    color: var(--accent-hover);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
}
.dash-credits strong {
    color: var(--accent-hover);
    font-weight: 700;
}

/* ─── Carte "Mon CV" ────────────────────────────────────────────────────── */
.dash-cv-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 28px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.dash-cv-card:hover {
    border-color: rgba(91, 140, 255, 0.5);
    transform: translateY(-2px);
    color: inherit;
}

.dash-cv-card-empty {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 146, 60, 0.06));
    border: 1px dashed rgba(245, 158, 11, 0.35);
}

.dash-cv-icon {
    font-size: 36px;
    line-height: 1;
}

.dash-cv-body { min-width: 0; }
.dash-cv-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 2px;
}
.dash-cv-title {
    color: var(--accent-hover);
    font-size: 14px;
    margin-bottom: 6px;
}
.dash-cv-meta {
    color: var(--text-muted);
    font-size: 13.5px;
}
.dash-cv-lead {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
}

.dash-cv-cta {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.dash-cv-card:hover .dash-cv-cta { color: var(--accent-hover); }

@media (max-width: 600px) {
    .dash-cv-card { grid-template-columns: 1fr; text-align: center; }
    .dash-cv-cta { text-align: center; }
}

/* ─── Head : titre + bouton "Nouvel entretien" ──────────────────────────── */
.dash-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.dash-head h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 36px);
    letter-spacing: -0.02em;
    font-weight: 700;
}
.dash-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 15px;
}

/* ─── Empty state ────────────────────────────────────────────────────────── */
.dash-empty {
    text-align: center;
    padding: 80px 24px;
    background: var(--bg-soft);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.dash-empty h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; }
.dash-empty p  { margin: 0 0 28px; color: var(--text-muted); font-size: 16px; }

/* ─── Grille de cartes ──────────────────────────────────────────────────── */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    align-items: start; /* les fils n'ont pas tous la même hauteur */
}

/* Entretien sans repasse : la carte devient directement l'item de grille */
.dash-thread { display: contents; }

.dash-attempt-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ─── Pile (deck) : entretien + repasses, dernière en haut ──────────────────
   Repliée = pile de cartes. Au clic → modal centrée où elles se déploient.    */
.dash-deck { position: relative; }
.dash-deck > .dash-card { position: relative; z-index: 1; }

/* — État REPLIÉ — */
.dash-deck:not(.is-open) { cursor: pointer; transition: transform 0.15s ease; }
.dash-deck:not(.is-open):hover { transform: translateY(-2px); }
.dash-deck:not(.is-open) .dash-deck-bar { display: none; }
.dash-deck:not(.is-open) > .dash-card:not(:first-of-type) { display: none; } /* seule la dernière tentative visible */
.dash-deck:not(.is-open) > .dash-card .dash-attempt-badge { display: none; }  /* pas de badge sur la pile fermée */
/* bords de la pile (cartes derrière) */
.dash-deck:not(.is-open)::before,
.dash-deck:not(.is-open)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    z-index: 0;
}
.dash-deck:not(.is-open)::before { transform: translate(5px, 6px) rotate(1.4deg); }
.dash-deck:not(.is-open)::after  { transform: translate(10px, 12px) rotate(2.8deg); opacity: 0.55; }

.dash-deck-badge {
    position: absolute;
    top: -10px; right: -8px;
    z-index: 3;
    background: var(--accent); color: #fff;
    font-size: 12px; font-weight: 800;
    padding: 3px 11px; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(242, 108, 79, 0.4);
}
.dash-deck.is-open .dash-deck-badge { display: none; }

/* — État OUVERT (modal centrée, grille 3 colonnes) — */
.dash-deck.is-open {
    position: fixed; inset: 0; z-index: 1000;
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 300px));
    justify-content: center; align-content: safe center;  /* centré au milieu de l'écran */
    gap: 18px; padding: 28px 20px; overflow: auto;
    background: rgba(11, 15, 23, 0.6);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    cursor: default;
}
.dash-deck.is-open::before, .dash-deck.is-open::after { content: none; }
.dash-deck-bar {
    grid-column: 1 / -1;     /* barre titre + croix sur toute la largeur */
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    color: #fff;
}
.dash-deck-title { font-size: 16px; font-weight: 700; }
.dash-deck-close {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12);
    color: #fff; font-size: 22px; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.dash-deck-close:hover { background: rgba(255, 255, 255, 0.22); }
.dash-deck.is-open {
    animation: deckBg 0.28s ease both;   /* fondu du fond */
}
@keyframes deckBg {
    from { background-color: rgba(11, 15, 23, 0); }
    to   { background-color: rgba(11, 15, 23, 0.6); }
}
.dash-deck.is-open > .dash-card {
    display: flex !important;
    width: auto;             /* taille = cellule de grille (toutes identiques) */
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4);
    /* les cartes "montent" depuis le bas, petites, et viennent se poser au centre */
    animation: deckFlyIn 0.55s cubic-bezier(0.18, 1.25, 0.4, 1) both;
}
@media (max-width: 980px) {
    .dash-deck.is-open { grid-template-columns: repeat(2, minmax(240px, 300px)); }
}
@media (max-width: 640px) {
    .dash-deck.is-open { grid-template-columns: minmax(0, 320px); }
}
.dash-deck.is-open > .dash-card:nth-of-type(2) { animation-delay: 0.05s; }
.dash-deck.is-open > .dash-card:nth-of-type(3) { animation-delay: 0.10s; }
.dash-deck.is-open > .dash-card:nth-of-type(4) { animation-delay: 0.15s; }
.dash-deck.is-open > .dash-card:nth-of-type(n+5) { animation-delay: 0.20s; }
@keyframes deckFlyIn {
    0%   { opacity: 0; transform: translateY(90px) scale(0.35) rotate(-5deg); }
    55%  { opacity: 1; }
    100% { opacity: 1; transform: none; }
}
body.deck-open { overflow: hidden; }

.dash-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dash-card:hover {
    border-color: rgba(91, 140, 255, 0.5);
    transform: translateY(-2px);
}

/* Carte d'une session non démarrée — visuel atténué + accent orange */
.dash-card-unstarted {
    border-color: rgba(245, 158, 11, 0.30);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), var(--bg-soft) 60%);
    position: relative;
}
.dash-card-unstarted:hover {
    border-color: rgba(245, 158, 11, 0.55);
}

/* Croix de suppression dans le coin */
.dash-card-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 2;
}
.dash-card-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

/* Badge "⏸" pour les sessions non démarrées */
.dash-grade-unstarted {
    background: rgba(245, 158, 11, 0.18);
    color: var(--warn);
    text-shadow: none;
    font-size: 18px;
}

.dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dash-emoji { font-size: 28px; line-height: 1; }
.dash-grade {
    font-size: 18px;
    font-weight: 800;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.04em;
}
.dash-grade-empty {
    background: var(--surface);
    color: var(--text-muted);
    text-shadow: none;
}

.dash-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    /* Wrap long titles cleanly */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dash-company {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.4;
}

.dash-card-meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: auto;
}

.dash-card-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
}
.dash-card-foot strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.dash-card-foot strong small {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}

.dash-status {
    font-size: 13px;
    color: var(--warn);
    font-weight: 600;
}

.dash-cta {
    color: var(--accent);
    font-size: 13.5px;
    font-weight: 600;
}
.dash-card:hover .dash-cta { color: var(--accent-hover); }

/* ─── Filtre Actifs / Archivés / Tous ───────────────────────────────────── */
.dash-filters {
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
    flex-wrap: wrap;
}
/* Filtres placés dans la barre du bouton « + Nouvel entretien » → même ligne. */
.dash-head .dash-filters { margin: 0; }
.dash-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
}
.dash-filter:hover { color: var(--text); }
.dash-filter.is-active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(91, 140, 255, 0.08);
}
.dash-filter-count {
    font-size: 11px;
    font-weight: 700;
    background: var(--surface);
    color: var(--text-muted);
    padding: 1px 7px;
    border-radius: 999px;
}
.dash-filter.is-active .dash-filter-count { background: rgba(91, 140, 255, 0.18); color: var(--accent); }

/* Actions de pied de carte (archiver + repasser + voir le rapport) */
.dash-card-foot-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.dash-card-retake, .dash-card-archive, .dash-card-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 27px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.dash-card-retake:hover, .dash-card-archive:hover, .dash-card-tool:hover {
    border-color: var(--accent);
    background: rgba(91, 140, 255, 0.08);
    transform: translateY(-1px);
}
.dash-card-retake:disabled, .dash-card-archive:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 600px) {
    .dash-head { flex-direction: column; align-items: stretch; }
    .dash-head .btn { width: 100%; text-align: center; }
}

/* ─── Achat de crédits (Stripe) ─────────────────────────────────────────── */
.dash-buy-credits {
    display: inline-block;
    margin-left: 10px;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
}
.dash-buy-credits:hover { color: var(--accent-hover); text-decoration: underline; }

.dash-flash {
    margin: 0 0 16px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}
.dash-flash-ok {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #15803d;
}
.dash-flash-cancel {
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--warn);
}

.dash-packs { max-width: 560px; margin: 0 0 28px; }
.cc-currency { margin: 0 0 12px; }
.cc-currency-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.cc-currency-select {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}
.cc-promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
}
.cc-promo-input {
    font: inherit;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 12px;
    width: 160px;
}
.cc-promo-input:focus { outline: none; border-color: var(--accent); }
.cc-promo-apply {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-soft, #f4f1ea);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
}
.cc-promo-apply:hover:not(:disabled) { border-color: var(--accent); }
.cc-promo-apply:disabled { opacity: 0.6; cursor: default; }
.cc-promo-msg {
    flex-basis: 100%;
    font-size: 12.5px;
    font-weight: 600;
    min-height: 1em;
}
.cc-promo-msg.is-ok  { color: #1a7f37; }
.cc-promo-msg.is-err { color: #c5303a; }
.paywall-pack-old {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.62em;
    margin-right: 4px;
    text-decoration: line-through;
}
.dash-packs .paywall-packs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.paywall-pack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 22px 14px 18px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.paywall-pack:hover:not(:disabled) {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(91, 140, 255, 0.18);
}
.paywall-pack:disabled { cursor: default; opacity: 0.6; }
.paywall-pack.is-loading { opacity: 0.7; }
.paywall-pack.is-popular {
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(91, 140, 255, 0.15);
}
.paywall-pack-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.paywall-pack-credits { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.paywall-pack-interviews { font-size: 11.5px; font-weight: 600; color: var(--accent); margin-top: -2px; }
.paywall-pack-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.paywall-pack-unit { font-size: 12px; color: var(--text-muted); }
@media (max-width: 520px) {
    .dash-packs .paywall-packs { grid-template-columns: 1fr; }
}

/* ─── Avatar (photo Google) dans la carte CV ────────────────────────────── */
.dash-cv-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
    background: var(--surface);
}

/* ─── Encarts "fonctionnalités principales" ─────────────────────────────── */
.dash-features {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.dash-features-title {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.dash-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.dash-feature {
    display: flex;
    flex-direction: column;
    min-width: 0; /* sinon l'image 800px gonfle la piste → 1 seule colonne géante */
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.dash-feature:hover {
    border-color: rgba(91, 140, 255, 0.5);
    transform: translateY(-2px);
}
.dash-feature-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.dash-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.dash-feature:hover .dash-feature-media img { transform: scale(1.05); }
.dash-feature-icon {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(11, 15, 23, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}
.dash-feature-body { padding: 16px 18px 18px; }
.dash-feature-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.dash-feature-body p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ═══ Pipeline de candidatures ════════════════════════════════════════════ */
.pipe { margin: 18px 0 26px; }
.pipe-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pipe-head h2 { font-size: 18px; margin: 0; }
.pipe-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px;
             background: var(--bg-soft, #F4F1EA); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.pipe-form input, .pipe-form select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: var(--bg, #fff); }
.pipe-form #pipe-company { flex: 1 1 160px; }
.pipe-form #pipe-role { flex: 1 1 160px; }
.pipe-form #pipe-url { flex: 1 1 200px; }
.pipe-form-actions { display: flex; gap: 8px; margin-left: auto; }
.pipe-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: start; }
.pipe-col { background: var(--bg-soft, #F4F1EA); border: 1px solid var(--border); border-radius: 12px; padding: 8px; min-height: 60px; }
.pipe-col-head { font-size: 12.5px; font-weight: 700; padding: 4px 6px 8px; display: flex; justify-content: space-between; color: var(--text); }
.pipe-col-head[data-s="entretien"] { color: #1e40af; }
.pipe-col-head[data-s="offre"] { color: #166534; }
.pipe-col-head[data-s="refuse"] { color: #b91c1c; }
.pipe-col-count { background: rgba(0,0,0,.08); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.pipe-card { background: var(--bg, #fff); border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; margin-bottom: 8px; }
.pipe-card-top { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; font-size: 14px; }
.pipe-card-link { text-decoration: none; color: var(--accent, #F26C4F); }
.pipe-card-role { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.pipe-card-actions { display: flex; gap: 5px; margin-top: 8px; align-items: center; }
.pipe-card-actions select { flex: 1; font-size: 11.5px; padding: 3px 4px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-soft, #F4F1EA); }
.pipe-card-actions button { border: none; background: none; cursor: pointer; font-size: 13px; padding: 2px 4px; border-radius: 6px; }
.pipe-card-actions button:hover { background: var(--bg-soft, #F4F1EA); }
.pipe-empty { color: var(--text-muted); font-size: 14px; padding: 6px 2px; }
@media (max-width: 820px) {
    .pipe-board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .pipe-board { grid-template-columns: 1fr; }
    .pipe-form #pipe-company, .pipe-form #pipe-role, .pipe-form #pipe-url { flex-basis: 100%; }
}

/* ═══ Bannière profil public partageable ══════════════════════════════════ */
.dash-share { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text);
              background: var(--bg, #fff); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin: 16px 0; transition: .15s; }
.dash-share:hover { border-color: var(--accent, #F26C4F); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.dash-share-icon { font-size: 1.7rem; flex: 0 0 auto; }
.dash-share-body { display: flex; flex-direction: column; gap: 2px; }
.dash-share-body b { font-size: 15px; }
.dash-share-body span { font-size: 13px; color: var(--text-muted); }
.dash-share-arrow { margin-left: auto; font-size: 18px; color: var(--accent, #F26C4F); }

/* ═══ Calendrier du mois (RDV de toutes les offres) ══════════════════════════ */
.dash-cal { margin: 8px 0 36px; }
.dash-cal-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-cal-title { font-size: 20px; font-weight: 800; color: var(--text); margin: 0; }
.dash-cal-month { color: var(--accent, #F26C4F); text-transform: capitalize; }
.dash-cal-hint { font-size: 13px; color: var(--text-muted); }
.dash-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.dash-cal-dow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--text-muted); text-align: center; padding: 2px 0 4px; }
.dash-cal-cell { min-height: 96px; border: 1px solid var(--border); border-radius: 11px; padding: 6px 6px 7px;
    background: var(--bg, #fff); display: flex; flex-direction: column; gap: 4px; }
.dash-cal-cell.is-blank { border: none; background: transparent; min-height: 0; }
.dash-cal-cell.has-evt { background: var(--bg-soft, #F4F1EA); }
.dash-cal-cell.is-today { border-color: var(--accent, #F26C4F); box-shadow: inset 0 0 0 1px var(--accent, #F26C4F); }
.dash-cal-num { font-size: 12.5px; font-weight: 700; color: var(--text-muted); align-self: flex-end; line-height: 1; }
.dash-cal-cell.is-today .dash-cal-num { color: #fff; background: var(--accent, #F26C4F); border-radius: 50%;
    width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.dash-cal-evt { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
    color: var(--text); text-decoration: none; line-height: 1.25; padding: 3px 6px; border-radius: 6px;
    background: var(--bg, #fff); border: 1px solid var(--border);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-cal-evt:hover { border-color: var(--accent, #F26C4F); }
.dash-cal-evt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, #F26C4F); flex: 0 0 auto; }
.dash-cal-evt.is-done { opacity: .55; }
.dash-cal-evt.is-done .dash-cal-evt-dot { background: #1f9d57; }
.dash-cal-evt.is-done { text-decoration: line-through; }

@media (max-width: 760px) {
    .dash-cal-cell { min-height: 62px; }
    .dash-cal-evt { font-size: 0; gap: 0; padding: 3px; justify-content: center; }   /* mobile : pastilles seules */
    .dash-cal-evt-dot { width: 9px; height: 9px; }
}

/* Navigation de mois du calendrier */
.dash-cal-nav { display: inline-flex; align-items: center; gap: 10px; }
.dash-cal-arrow { display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border);
    background: var(--bg, #fff); color: var(--text); text-decoration: none;
    font-size: 20px; line-height: 1; font-weight: 700; transition: .12s; }
.dash-cal-arrow:hover { border-color: var(--accent, #F26C4F); color: var(--accent, #F26C4F); }
.dash-cal-nav .dash-cal-month { min-width: 150px; text-align: center; font-size: 16px; font-weight: 800; }
.dash-cal-today { font-size: 12.5px; font-weight: 700; color: var(--accent, #F26C4F);
    text-decoration: none; border: 1px solid var(--accent, #F26C4F); border-radius: 999px; padding: 4px 12px; }
.dash-cal-today:hover { background: var(--accent, #F26C4F); color: #fff; }
