/* Suite de styles.css (scindé le 18/10/2026, audit du parc, constat F02) : mêmes règles, même ordre de cascade ; chargée juste après styles.css. */

/* Choix de la visite : deux grandes cartes sous l'accueil */
.audience-cards { padding: 4px 0 30px; }
.audience-title { margin: 0 0 12px; color: var(--hero-ink); font-size: 1rem; font-weight: 700; }
.audience-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.audience-card { position: relative; display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 20px 52px 20px 20px; border: 1.5px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.05); color: #fff; text-align: left; cursor: pointer; transition: transform .18s, border-color .18s, background .18s, box-shadow .18s; }
.audience-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.09); }
.audience-card[aria-pressed="true"] { border-color: #fff; background: rgba(255,255,255,.14); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.aud-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; }
.aud-icon svg { width: 26px; height: 26px; }
.audience-card[aria-pressed="true"] .aud-icon { background: #fff; color: #10204a; }
.aud-text { display: flex; flex-direction: column; gap: 4px; }
.aud-text strong { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.aud-text small { color: var(--hero-muted); font-size: .9rem; line-height: 1.5; }
.aud-check { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #4fd18b; color: #07301b; font-size: .85rem; font-weight: 800; opacity: 0; transform: scale(.6); transition: opacity .18s, transform .18s; }
.audience-card[aria-pressed="true"] .aud-check { opacity: 1; transform: scale(1); }

/* Interrupteur compact dans l'en-tête */
.audience-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.audience-switch .aud-trigger { min-height: 34px; padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .86rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.audience-switch .aud-trigger:hover { color: var(--ink); }
.audience-switch .aud-trigger[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* Confirmation du changement de visite */
.view-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1080; max-width: calc(100% - 32px); margin: 0; padding: 12px 20px; border-radius: 999px; background: #10204a; color: #fff; font-size: .92rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .25s, transform .25s; }
.view-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
#contenu.view-switching { animation: view-in .45s ease; }
@keyframes view-in { from { opacity: .25; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 767.98px) {
  .audience-options { grid-template-columns: 1fr; }
  .audience-card { padding: 16px 48px 16px 16px; }
}
@media (max-width: 1199.98px) {
  .audience-switch { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .audience-card, .aud-check, .view-toast { transition: none; }
  #contenu.view-switching { animation: none; }
  .audience-card:hover { transform: none; }
}

/* À propos : repères et recherche de stage / alternance */
.about-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 24px 0 0; }
.about-facts > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.about-facts dt, .seek-list dt { margin: 0 0 4px; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.about-facts dd, .seek-list dd { margin: 0; font-weight: 600; }
.seeking .seek-lead { margin: 0 0 14px; color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.seek-list { display: grid; gap: 12px; margin: 0 0 20px; }
.seek-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 4px 16px; }
.seek-list dd { color: var(--muted); font-weight: 500; }
@media (max-width: 575.98px) { .seek-list > div { grid-template-columns: 1fr; } }

/* Détails universitaires (année, compétences du BUT) : toujours visibles en vue IUT, à la demande en vue entreprise */
html[data-audience="company"]:not([data-uni="on"]) .uni-only { display: none !important; }
.uni-bar { margin: 0 0 18px; }
.uni-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); font-size: .94rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.uni-toggle svg { width: 20px; height: 20px; flex: none; }
.uni-toggle:hover { background: var(--accent-soft); }
.uni-toggle[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* Vue entreprise : trois boutons pour choisir les projets */
.project-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.tab-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.tab-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.tab-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.tab-title { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.tab-count { color: var(--muted); font-size: .84rem; font-weight: 600; }
.tab-own .tab-title > span:first-child { color: #d99a1c; }
.tab-hint { margin: 0 0 22px; color: var(--muted); font-size: .96rem; }
#student-panel[hidden], #own-panel[hidden] { display: none; }
@media (max-width: 767.98px) { .project-tabs { grid-template-columns: 1fr; } }

/* Mes propres projets : des lignes aérées, bien distinctes des projets d'études */
.own-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-soft), transparent 55%); padding-top: 72px; padding-bottom: 72px; }
.own-list { display: grid; gap: 22px; }
.own-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.own-row.is-featured { border-color: #e2a72e; background: linear-gradient(90deg, rgba(244,185,66,.16), var(--card) 55%); box-shadow: 0 0 0 1px #e2a72e, var(--shadow); }
.own-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-size: 1.35rem; font-weight: 800; }
.own-row.is-featured .own-badge { background: #f4b942; color: #1b1405; font-size: 1.9rem; }
.own-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.own-kind { color: var(--accent); }
.own-flag { padding: 2px 10px; border-radius: 999px; background: #f4b942; color: #1b1405; }
.own-template { padding: 2px 10px; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); }
.own-body h3 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 700; }
.own-summary { margin: 0; color: var(--muted); }
.own-body .pill-row { margin: 14px 0 0; }
.own-try { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.own-try.is-soon { padding: 10px 20px; border: 1.5px dashed #e2a72e; border-radius: 8px; color: var(--ink); font-weight: 700; opacity: .85; }
.own-row.is-featured a.own-try { background: #f4b942; border-color: #f4b942; color: #1b1405; font-weight: 800; }
.own-row.is-featured a.own-try:hover { background: #ffc958; }
@media (max-width: 767.98px) {
  .own-row { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .own-badge { width: 52px; height: 52px; }
}

/* Mes propres projets : faits clés et note sous le bouton */
.own-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.own-facts li { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .84rem; font-weight: 600; }
.own-row.is-featured .own-facts li { background: rgba(244,185,66,.22); color: var(--ink); }
.own-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 230px; }
.own-note { margin: 0; color: var(--muted); font-size: .8rem; text-align: right; }
@media (max-width: 767.98px) { .own-action { align-items: flex-start; max-width: none; } .own-note { text-align: left; } }

/* Mes propres projets : captures cliquables */
.own-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 20px 0 0; }
.own-shot { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; color: var(--muted); font-size: .8rem; font-weight: 600; text-align: left; cursor: zoom-in; }
.own-shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border: 1px solid var(--line); border-radius: 10px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.own-shot:hover img, .own-shot:focus-visible img { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.own-shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px; }

/* Mes propres projets : lignes cliquables qui ouvrent une fiche */
.own-row { cursor: pointer; transition: box-shadow .18s, transform .18s, border-color .18s; }
.own-row:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.own-open { margin-top: 0; white-space: nowrap; }
.own-action { max-width: 240px; align-items: flex-end; }
.fact-note { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .own-row, .own-row:hover { transition: none; transform: none; } }

/* Fiche d'un projet personnel : captures d'interfaces sombres, sans bandes blanches */
.gallery.is-own .shot-button { background: #0b1020; }
.gallery.is-own .shot-button img { height: 150px; object-fit: cover; object-position: top left; }

.seek-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bouton « Se connecter » de l'en-tête */
.login-button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1.5px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: .88rem; font-weight: 700; text-decoration: none; transition: filter .15s, transform .15s; }
.login-button svg { width: 18px; height: 18px; flex: none; }
.login-button:hover { filter: brightness(1.08); color: var(--accent-ink); transform: translateY(-1px); }
@media (max-width: 575.98px) { .login-label { display: none; } .login-button { width: 40px; padding: 0; justify-content: center; } }

/* Page « Se connecter » */
.login-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.login-page { flex: 1; padding-top: 40px; padding-bottom: 72px; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--accent); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.login-head h1 { margin: 0 0 8px; font-size: 2rem; font-weight: 800; }
.login-head p { margin: 0 0 34px; color: var(--muted); font-size: 1.05rem; }
.channel-steps { margin: 0 0 16px; padding: 0; list-style: none; }
.step-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.1rem; font-weight: 700; }
.step-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 800; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.channel-card { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; padding: 22px 20px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-align: left; box-shadow: var(--shadow); }
.channel-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--channel, var(--accent-soft)); color: #fff; }
.channel-icon svg { width: 28px; height: 28px; }
.channel-whatsapp { --channel: #1faa59; }
.channel-telegram { --channel: #2a8fd4; }
.channel-discord { --channel: #5865f2; }
.channel-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.channel-text strong { font-size: 1.1rem; font-weight: 700; }
.channel-text small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.channel-badge { position: absolute; top: 12px; right: 12px; padding: 2px 10px; border-radius: 999px; background: #f4b942; color: #1b1405; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.login-note { display: flex; align-items: center; gap: 12px; margin: 34px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: .94rem; }
@media (max-width: 991.98px) { .channel-grid { grid-template-columns: 1fr; } .channel-card { padding-right: 96px; } }

/* Espace propriétaire (page « Se connecter ») */
.login-lead { color: var(--muted); font-size: 1.05rem; }
.login-card { display: grid; gap: 8px; max-width: 460px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.login-card label { font-weight: 600; font-size: .94rem; }
.login-card input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.login-card input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.login-card .btn-main, .login-card .btn-ghost { justify-self: start; margin-top: 8px; }
.space-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.space-head p { margin-bottom: 0; }
.space-section { margin: 0 0 44px; }
.space-section h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; }
.space-hint { margin: 0 0 18px; color: var(--muted); }
.space-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.channel-card { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.channel-card:hover { border-color: var(--accent); }
.channel-card:has(.channel-check:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.channel-card.is-soon .channel-icon { opacity: .75; }
.channel-check { flex: none; width: 22px; height: 22px; accent-color: var(--accent); cursor: pointer; }
.channel-badge.is-ready { background: #4fd18b; color: #07301b; }
.cv-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cv-preview { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.cv-preview iframe { display: block; width: 100%; height: 560px; border: 0; }
.cv-side { display: grid; gap: 16px; }
.cv-side .btn-ghost, .cv-side .btn-main { justify-self: start; }
.cv-info { margin: 0; font-weight: 600; }
.cv-upload { display: grid; gap: 8px; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.cv-upload label { font-weight: 600; font-size: .94rem; }
.cv-upload input[type=file] { max-width: 100%; color: var(--muted); }
.cv-restore { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 991.98px) { .cv-layout { grid-template-columns: 1fr; } .cv-preview iframe { height: 420px; } }

/* Contact : champ piège caché (rempli seulement par les robots) et mention de confidentialité */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { margin: 0 0 14px; color: var(--muted); font-size: .84rem; }

.space-head { margin-bottom: 40px; }

/* Fenêtre du mot de passe (bouton « Se connecter ») */
.login-modal { border-radius: var(--radius); }
.login-modal .modal-title { font-size: 1.15rem; font-weight: 700; }
.login-modal-hint { margin: 0 0 14px; color: var(--muted); font-size: .94rem; }
.login-modal label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .94rem; }
.login-modal input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.login-modal input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Destinataires Discord */
.recipient-list { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.recipient-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.recipient-kind { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.recipient-kind.is-salon { background: rgba(88,101,242,.16); color: #5865f2; }
.recipient-name { font-weight: 700; }
.recipient-list code { color: var(--muted); font-size: .82rem; }
.recipient-remove { margin-left: auto; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.recipient-remove:hover, .recipient-remove:focus-visible { border-color: #e5484d; color: #e5484d; }
.recipient-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.recipient-field { display: grid; gap: 6px; min-width: 200px; flex: 1 1 200px; }
.recipient-field label { font-weight: 600; font-size: .9rem; }
.recipient-field input, .recipient-field select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.recipient-field input:focus-visible, .recipient-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.recipient-help { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.recipient-help summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.recipient-help p { margin: 8px 0 0; }

/* Carte Discord pleine largeur qui se déplie, puis Telegram et WhatsApp sur leur propre ligne */
.channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.channel-card.is-wide { grid-column: 1 / -1; display: block; padding: 0; cursor: default; }
.channel-head { display: flex; align-items: center; gap: 16px; padding: 20px; }
.channel-main { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; cursor: pointer; }
.channel-head .channel-badge { position: static; }
.channel-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); font-size: .88rem; font-weight: 600; cursor: pointer; }
.channel-toggle:hover { border-color: var(--accent); }
.channel-toggle .chevron { display: inline-block; transition: transform .2s; }
.channel-toggle[aria-expanded="false"] .chevron { transform: rotate(-90deg); }
.channel-body { padding: 20px; border-top: 1px solid var(--line); }
.channel-body[hidden] { display: none; }
.body-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.recipient-label { flex: 1 1 200px; min-width: 150px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font-weight: 600; }
.recipient-label:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.recipient-discord { color: var(--muted); font-size: .86rem; }
.cv-side { max-width: 560px; }
@media (max-width: 767.98px) { .channel-grid { grid-template-columns: 1fr; } .channel-head { flex-wrap: wrap; } .channel-toggle { margin-left: auto; } }

/* ───────── Espace propriétaire : mise en page aérée ───────── */
.wrap.login-page { width: min(100% - 48px, 980px); padding-top: 52px; padding-bottom: 110px; }
.login-page .back-link { margin-bottom: 36px; }
.login-head h1 { font-size: 2.3rem; letter-spacing: -.015em; }
.login-head p { font-size: 1.08rem; }
.space-head { margin-bottom: 44px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.space-head .btn-ghost { align-self: center; }

/* Chaque partie est un grand bloc, avec de l'air autour */
.space-section { margin: 0 0 40px; padding: 38px 38px 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.space-section h2 { gap: 14px; margin-bottom: 10px; font-size: 1.45rem; letter-spacing: -.01em; }
.space-section .step-num { width: 34px; height: 34px; font-size: .95rem; }
.space-hint { margin: 0 0 30px; font-size: 1rem; line-height: 1.65; }
.space-actions { gap: 14px; margin-top: 32px; }
.space-section .btn-main, .space-section .btn-ghost { min-height: 48px; padding-inline: 26px; }
.form-status { margin: 18px 0 0; }

/* Les trois canaux : une ligne chacun */
.channel-grid { grid-template-columns: 1fr; gap: 22px; }
.channel-card { gap: 20px; padding: 26px 28px; border-radius: 16px; background: var(--bg); box-shadow: none; }
.channel-card .channel-icon, .channel-head .channel-icon { width: 58px; height: 58px; border-radius: 16px; }
.channel-card .channel-badge { position: static; margin-left: auto; padding: 4px 12px; font-size: .7rem; }
.channel-text { gap: 6px; }
.channel-text strong { font-size: 1.15rem; }
.channel-text small { font-size: .94rem; }
.channel-check { width: 24px; height: 24px; }
.channel-card.is-wide { padding: 0; }
.channel-head { gap: 20px; padding: 26px 28px; }
.channel-main { gap: 20px; }
.channel-toggle { padding: 10px 18px; font-size: .9rem; }
.channel-body { padding: 32px 28px 34px; border-top: 1px solid var(--line); }
.body-title { margin-bottom: 8px; font-size: 1.15rem; }
.channel-body .space-hint { margin-bottom: 26px; }

/* Destinataires : lignes plus grandes, formulaire dans un cadre doux */
.recipient-list { gap: 14px; margin-bottom: 28px; }
.recipient-list li { gap: 14px 18px; padding: 16px 20px; border-radius: 14px; background: var(--card); }
.recipient-label { min-height: 44px; padding: 8px 14px; font-size: 1rem; }
.recipient-form { gap: 20px; padding: 26px; border: 1px dashed var(--line); border-radius: 16px; background: var(--card); }
.recipient-field { gap: 8px; }
.recipient-field input, .recipient-field select { min-height: 48px; padding: 10px 14px; border-radius: 10px; }
.recipient-form .btn-ghost { align-self: flex-end; }
.recipient-help { margin-top: 20px; }

/* CV et mot de passe */
.cv-side { gap: 26px; max-width: 620px; }
.cv-info { font-size: 1.05rem; }
.cv-upload { gap: 12px; padding: 24px; border-radius: 16px; background: var(--bg); }
.cv-restore { gap: 14px; }
.login-card { gap: 10px; max-width: 520px; padding: 30px; border-radius: 18px; }
.space-section .login-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
.login-card input { min-height: 48px; border-radius: 10px; }
.login-card label { margin-top: 10px; }

@media (max-width: 767.98px) {
  .wrap.login-page { width: min(100% - 32px, 980px); padding-top: 32px; }
  .space-section { padding: 26px 20px 28px; border-radius: 16px; }
  .channel-card { padding: 20px; }
  .channel-head { padding: 20px; }
  .channel-body { padding: 24px 20px 26px; }
  .space-head { margin-bottom: 30px; padding-bottom: 24px; }
  .recipient-form { padding: 20px; }
}

/* Cases à cocher des canaux : dessinées par le site (rendu identique sur tous les navigateurs) */
.channel-check { appearance: none; -webkit-appearance: none; display: grid; place-content: center; flex: none; width: 26px; height: 26px; margin: 0; border: 2px solid var(--muted); border-radius: 8px; background: var(--card); cursor: pointer; transition: background .15s, border-color .15s; }
.channel-check::after { content: ""; width: 13px; height: 7px; border-left: 3px solid var(--accent-ink); border-bottom: 3px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .12s; }
.channel-check:checked { border-color: var(--accent); background: var(--accent); }
.channel-check:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.channel-check:hover { border-color: var(--accent); }
.channel-check:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; border-color: var(--accent); }

/* Réglage de largeur : colonne plus large sur ordinateur, et plus rien ne déborde sur téléphone */
.wrap.login-page { width: min(100% - 48px, 1240px); }
.space-section { padding: 34px 36px 36px; }
.channel-grid { grid-template-columns: minmax(0, 1fr); }
.recipient-list code { overflow-wrap: anywhere; }
.recipient-list li { min-width: 0; }
@media (max-width: 767.98px) {
  .wrap.login-page { width: min(100% - 32px, 1240px); }
  .space-section { padding: 26px 18px 28px; }
  .channel-grid { grid-template-columns: minmax(0, 1fr); }
  .channel-head { flex-wrap: wrap; }
  .channel-main { flex-basis: 100%; }
  .channel-head .channel-badge { margin-left: 0; }
  .recipient-label { flex-basis: 100%; }
}
.cv-side { grid-template-columns: minmax(0, 1fr); }
.cv-upload input[type=file], .cv-upload { min-width: 0; max-width: 100%; }

/* Ligne de destinataire sur deux niveaux : nom et actions en haut, détails discrets dessous */
.recipient-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "type nom actions" ". details details"; align-items: center; gap: 10px 16px; }
.recipient-list .recipient-kind { grid-area: type; }
.recipient-list .recipient-label { grid-area: nom; width: 100%; min-width: 0; flex: none; }
.recipient-actions { grid-area: actions; display: flex; align-items: center; gap: 10px; }
.recipient-list .recipient-remove { margin-left: 0; }
.recipient-test { min-height: 40px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 10px; background: transparent; color: var(--accent); font-weight: 700; font-size: .92rem; cursor: pointer; transition: background .15s, color .15s; }
.recipient-test:hover:not(:disabled), .recipient-test:focus-visible { background: var(--accent); color: var(--accent-ink); }
.recipient-test:disabled { border-color: var(--line); color: var(--muted); cursor: not-allowed; opacity: .7; }
.recipient-details { grid-area: details; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; color: var(--muted); font-size: .86rem; }
.recipient-details code { color: var(--muted); font-size: .84rem; }
.recipient-unsaved { padding: 1px 10px; border-radius: 999px; background: rgba(244, 185, 66, .2); color: #b97f0a; font-weight: 700; font-size: .78rem; }
@media (max-width: 575.98px) {
  .recipient-list li { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "type actions" "nom nom" "details details"; }
}
