/* ═══════════════════════════════════════════════════════════════════════
   KLOOD — Feuille de style principale
   Direction artistique : bleu franc, corail, formes très arrondies
   - Fond blanc, accent #1EA0DB, secondaire #D0495C, détail #346986
   - Coins généreux, ombres douces, aucun dégradé « template »
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #FFFFFF;              /* fond blanc */
  --bg-alt: #F0F8FD;          /* section en retrait (bleu très pâle) */
  --card: #FFFFFF;            /* cartes & panneaux */
  --card-warm: #F2F9FE;       /* fond bleu très pâle */
  --accent: #1EA0DB;          /* bleu majoritaire (boutons, liens) */
  --accent-dark: #346986;     /* bleu foncé (accents secondaires) */
  --sand: #7CC3E8;            /* bleu clair (dégradés) */
  --sand-light: #DBEFFB;
  --red: #D0495C;             /* corail / rouge (accents moyens) */
  --red-dark: #B83A50;
  --text: #14354A;            /* bleu ardoise très foncé */
  --muted: #5B7A8C;           /* gris bleuté */
  --hairline: rgba(20, 53, 74, 0.10);
  --hairline-soft: rgba(20, 53, 74, 0.06);
  --radius: 28px;
  --radius-sm: 18px;
  --shadow-sm: 0 2px 8px rgba(20, 53, 74, 0.06);
  --shadow-md: 0 18px 40px -12px rgba(20, 53, 74, 0.14);
  --shadow-lg: 0 40px 80px -24px rgba(20, 53, 74, 0.20);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-title: 'Playfair Display', Georgia, serif;   /* réservé au logo */
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

/* ── Reset & base ─────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }
::selection { background: rgba(30, 160, 219, 0.25); }

.muted { color: var(--muted); }
.link { color: var(--accent); font-weight: 600; }

/* Petites étiquettes au-dessus des gros titres (façon Apple) */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.center { text-align: center; }

/* ── Barre de navigation ──────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.navbar.scrolled { border-color: var(--hairline); box-shadow: 0 1px 0 var(--hairline-soft); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-title); font-size: 1.5rem; font-weight: 700;
  color: var(--text); letter-spacing: 0;
  justify-self: start;
}
.logo-img {
  height: 34px; width: auto; display: block;
  border-radius: 12px; object-fit: contain;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: rgba(20, 53, 74, 0.82); font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  justify-self: end;
  background: var(--text); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: 980px;
  transition: background .2s, transform .2s;
}
.nav-links a.nav-cta:hover { background: #1789C4; transform: scale(1.03); }

/* Menu hamburger (mobile) */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; cursor: pointer; padding: 10px;
  justify-self: end; z-index: 110;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO (façon page produit Apple) ───────────────────────────── */
.hero {
  text-align: center; padding: 168px 24px 0; overflow: hidden;
  position: relative;
  background:
    radial-gradient(620px 400px at 10% 6%, rgba(30, 160, 219, 0.12), transparent 70%),
    radial-gradient(560px 380px at 90% 10%, rgba(208, 73, 92, 0.09), transparent 70%),
    radial-gradient(700px 460px at 50% 100%, rgba(52, 105, 134, 0.06), transparent 72%);
}
.hero-inner { max-width: 920px; margin: 0 auto; }
.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 4.9rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 22px 0 24px;
  font-weight: 700;
}
.gradient-text {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 7px;
  text-underline-offset: 7px;
  text-decoration-skip-ink: none;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: 620px; margin: 0 auto 38px;
  letter-spacing: -0.01em;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 56px; flex-wrap: wrap;
}
.hero-stat b {
  display: block; font-size: 1.9rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
}
.hero-stat span { font-size: 0.85rem; color: var(--muted); }

/* Mockup produit (vitrine du dashboard) */
.hero-visual { position: relative; margin: 80px auto 0; max-width: 1000px; padding: 0 24px 40px; }
.hero-visual .glow {
  position: absolute; inset: -30px 10% auto 10%; height: 320px; z-index: -1;
  background: radial-gradient(50% 60% at 50% 45%, rgba(30, 160, 219, 0.35), transparent 72%);
  filter: blur(36px);
}
.app-window {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.app-bar {
  display: flex; gap: 7px; padding: 15px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  background: #F5FAFD;
}
.app-bar span { width: 10px; height: 10px; border-radius: 50%; background: #DCEBF5; }
.app-body { padding: 30px 34px 36px; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.app-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.app-head h4 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-top: 3px; }
.app-code {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--accent-dark);
  background: rgba(30, 160, 219, 0.12);
  padding: 7px 14px; border-radius: 14px;
}
.app-list { display: flex; flex-direction: column; gap: 9px; }
.app-row {
  display: flex; align-items: center; gap: 13px;
  background: #F5FAFD; border: 1px solid var(--hairline-soft);
  border-radius: 18px; padding: 13px 16px;
}
.app-status {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid #CFE3EF;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.app-status.ok { background: #2FA84F; border-color: #2FA84F; }
.app-row b { display: block; font-size: 14px; font-weight: 600; }
.app-row small { color: var(--muted); font-size: 12px; }

/* ── Sections génériques ───────────────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: 130px 24px; }
.section.alt { max-width: none; background: var(--bg-alt); margin: 0; }
.section.alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.028em;
  text-align: center;
  margin: 18px 0 20px;
}
.section-sub {
  text-align: center; color: var(--muted);
  max-width: 640px; margin: 0 auto 70px;
  font-size: 1.12rem;
}

/* ── Arguments forts : grille texte pure (façon Apple) ─────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 46px;
}
.feature { text-align: left; }
.feature svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 18px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ── Fonctionnement : 3 grandes étapes numérotées ──────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; }
.step-card { text-align: left; }
.step-num-big {
  font-size: 3.4rem; font-weight: 700; letter-spacing: -0.03em;
  color: #CFE3EF; line-height: 1; margin-bottom: 22px;
}
.step-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.step-card p { color: var(--muted); font-size: 1rem; max-width: 300px; }

/* ── Choix du rôle : tuiles produit ────────────────────────────── */
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role-card {
  cursor: pointer; text-align: left;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  position: relative;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, border-color .3s;
}
.role-card::after {
  content: '';
  position: absolute; top: 22px; right: 24px;
  width: 9px; height: 9px;
  border-top: 1.8px solid var(--accent);
  border-right: 1.8px solid var(--accent);
  transform: rotate(45deg);
  opacity: 0; transition: opacity .3s, transform .3s;
}
.role-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(20, 53, 74, 0.16); }
.role-card:hover::after { opacity: 1; transform: rotate(45deg) translate(-3px, 3px); }
.role-icon {
  width: 46px; height: 46px; border-radius: 18px;
  background: var(--card-warm); color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.role-icon svg { width: 24px; height: 24px; }
.role-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.role-card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 24px; }
.role-link { color: var(--accent); font-weight: 600; font-size: 0.95rem; }

/* ── SPA : affichage des pages ────────────────────────────────── */
.page { display: none; }
.page.active { display: block; animation: pageIn .45s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* En-têtes de page (espaces privés) */
.page-head { max-width: 1200px; margin: 0 auto; padding: 120px 24px 10px; }
.page-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.025em; }
.page-head p { color: var(--muted); margin-top: 8px; font-size: 1.05rem; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* ── Grille des tableaux de bord ──────────────────────────────── */
.dash-grid {
  max-width: 1200px; margin: 0 auto; padding: 30px 24px 80px;
  display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start;
}

/* ── Cartes & formulaires ─────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.35rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: #fff;
  border: 1px solid #CFE3EF; border-radius: 18px;
  padding: 13px 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 160, 219, 0.18);
}
textarea { resize: vertical; min-height: 96px; }

/* Boutons */
.btn {
  font: inherit; font-weight: 600; border: none; cursor: pointer;
  border-radius: 980px; padding: 13px 28px;
  font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #1789C4; transform: scale(1.02); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid #B9D6E8; }
.btn-ghost:hover:not(:disabled) { border-color: var(--text); }
.btn-sand { background: rgba(30, 160, 219, 0.14); color: var(--accent-dark); }
.btn-sand:hover:not(:disabled) { background: rgba(30, 160, 219, 0.26); }
.btn-link {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font: inherit; font-size: 1rem; font-weight: 600;
  padding: 12px 4px; display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.btn-link:hover { color: var(--accent-dark); }
.btn-link svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ── Codes d'invitation (listes) ──────────────────────────────── */
.codes-list {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 680px; overflow-y: auto; padding-right: 4px;
}
.codes-list::-webkit-scrollbar { width: 8px; }
.codes-list::-webkit-scrollbar-thumb { background: #CFE3EF; border-radius: 10px; }
.code-item {
  background: #F5FAFD; border: 1px solid var(--hairline);
  border-radius: 20px; padding: 18px 20px;
}
.code-item.dim { opacity: .55; }
.code-item-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.code-chip {
  font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.16em; font-size: 1.02rem;
  color: var(--accent-dark);
  background: rgba(30, 160, 219, 0.12);
  padding: 6px 13px; border-radius: 14px;
}
.code-title { font-weight: 600; margin-bottom: 2px; font-size: 1.02rem; }
.code-sender { color: var(--accent-dark); font-size: 0.85rem; font-weight: 600; margin: -2px 0 4px; }
.code-item .meta { font-size: 0.82rem; }
.code-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.icon-btn {
  border: none; background: transparent; cursor: pointer;
  color: var(--muted); padding: 6px; border-radius: 10px;
  display: inline-flex; transition: background .2s, color .2s;
}
.icon-btn:hover { background: rgba(20, 53, 74, 0.06); color: var(--text); }
.icon-btn svg { width: 15px; height: 15px; }

.badge {
  font-size: 0.68rem; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-active { background: #E7F6EB; color: #1F7A3D; }
.badge-expired { background: #FDE8EC; color: #B83A50; }
.badge-closed { background: #E7F1F7; color: #5B7A8C; }

.empty { text-align: center; padding: 44px 12px; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: #CFE3EF; margin-bottom: 12px; }

.new-code {
  margin-top: 22px; background: var(--card-warm);
  border-radius: 20px; padding: 18px; text-align: center;
}
.new-code p { font-weight: 600; font-size: 0.95rem; }
.code-box { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.code-box span {
  font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.2em;
  font-size: 1.4rem; color: var(--accent-dark);
}

/* ── Tableau des dépôts ───────────────────────────────────────── */
.panel-submissions { max-width: 1200px; margin: 0 auto 80px; }
.panel-submissions-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-submissions-head h3 { margin: 0; font-size: 1.2rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 700px; }
.table th {
  text-align: left; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
}
.table td { padding: 14px; border-bottom: 1px solid var(--hairline-soft); font-size: 0.93rem; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #F5FAFD; }
.file-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-cell svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; color: var(--muted); }
.empty-cell { text-align: center; color: var(--muted); padding: 40px 12px !important; }
.sub-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #F5FAFD; border: 1px solid var(--hairline);
  border-radius: 18px; padding: 14px 18px; margin-bottom: 10px; flex-wrap: wrap;
}
.sub-row .sub-file { font-weight: 600; word-break: break-all; }
.sub-row .sub-file svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; color: var(--muted); }

/* ── Espace élève ─────────────────────────────────────────────── */
.step { max-width: 720px; margin: 40px auto 100px; position: relative; }
.step-num {
  position: absolute; top: -17px; left: 26px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--text); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem;
}
.code-form { display: flex; gap: 12px; margin-top: 22px; }
.code-form input {
  font-family: var(--font-mono); letter-spacing: 0.22em;
  font-weight: 600; font-size: 1.15rem; text-align: center;
  text-transform: uppercase;
}
.error-line { color: #D0495C; font-weight: 600; font-size: 0.92rem; margin-top: 14px; min-height: 1.3em; }
.assign-box {
  background: #F5FAFD; border: 1px solid var(--hairline);
  border-radius: 20px; padding: 24px; margin-bottom: 26px;
}
.assign-box h3 { margin-bottom: 8px; }
.meta { font-size: 0.85rem; color: var(--muted); }

.file-drop {
  position: relative; text-align: center; cursor: pointer;
  border: 1.5px dashed #B9D6E8; border-radius: 20px;
  background: #F5FAFD; padding: 36px 18px;
  transition: background .2s, border-color .2s;
}
.file-drop.dragging { background: var(--card-warm); border-color: var(--accent); }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop-inner svg { width: 30px; height: 30px; color: #9FBCCF; margin-bottom: 8px; }
.file-drop-inner p { color: var(--muted); font-size: 0.95rem; }
.file-name { font-weight: 600; color: var(--accent-dark); margin-top: 10px; word-break: break-all; }
.char-count { text-align: right; font-size: 0.8rem; color: var(--muted); margin-top: 5px; }

.success-card { text-align: center; padding: 56px 32px; }
.success-icon { color: #2FA84F; width: 64px; height: 64px; margin: 0 auto 18px; }
.success-card p { margin-bottom: 26px; color: var(--muted); }
.success-card h3 { margin-bottom: 10px; }

/* ── Toast (notifications) ────────────────────────────────────── */
.toast {
  position: fixed; bottom: 26px; left: 50%; z-index: 300;
  transform: translate(-50%, 90px); opacity: 0;
  background: var(--text); color: #FFFFFF;
  padding: 13px 24px; border-radius: 980px;
  font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--shadow-lg); text-align: center;
  max-width: min(92vw, 540px);
  transition: transform .4s cubic-bezier(.2, .7, .3, 1), opacity .4s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: #D0495C; color: #fff; }

/* ── Animations d'apparition au scroll ────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Pied de page ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--hairline); background: var(--bg); padding: 60px 24px 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-title); font-size: 1.4rem; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.footer-tagline {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.footer-links { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { color: var(--muted); font-size: 0.85rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-note { color: var(--muted); font-size: 0.85rem; }
.footer-copy { color: #8FA9BC; font-size: 0.78rem; margin-top: 14px; }

/* ══════════════════ ESPACE PARTAGE ══════════════════ */
.share-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

.share-wrap { max-width: 900px; margin: 0 auto; padding: 0 24px 90px; }

/* Onglets */
.share-tabs {
  display: flex; gap: 4px; margin: 26px 0 24px;
  background: var(--card-warm); border-radius: 980px; padding: 4px;
}
.share-tab {
  flex: 1; border: none; background: transparent; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 12px 18px; border-radius: 980px; color: var(--muted);
  transition: all .25s;
}
.share-tab.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

/* Liste des fichiers sélectionnés */
.share-file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.share-file-row {
  display: flex; align-items: center; gap: 12px;
  background: #F5FAFD; border: 1px solid var(--hairline);
  border-radius: 18px; padding: 10px 14px;
}
.share-file-icon { color: var(--accent); display: inline-flex; flex-shrink: 0; }
.share-file-icon svg { width: 18px; height: 18px; }
.share-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 0.93rem; }
.share-file-size { color: var(--muted); font-size: 0.85rem; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* Barre de taille (10 Go) */
.size-bar {
  height: 8px; border-radius: 999px; margin-top: 14px;
  background: var(--card-warm); overflow: hidden;
}
.size-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--sand));
  border-radius: 999px; transition: width .25s ease;
}
.size-bar.over .size-bar-fill { background: #D0495C; }
.size-label { font-size: 0.8rem; color: var(--muted); margin-top: 6px; text-align: right; }

.send-btn-field { display: flex; align-items: flex-end; }

/* Progression d'envoi */
.progress {
  position: relative; margin-top: 20px;
  height: 34px; border-radius: 999px;
  background: var(--card-warm); overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--sand));
  border-radius: 999px; transition: width .15s ease;
}
.progress-text {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 0.82rem; font-weight: 700; color: var(--accent-dark);
}

/* Fichiers d'un partage (réception / détail) */
.share-files { display: flex; flex-direction: column; gap: 12px; }
.share-file-block {
  background: #F5FAFD; border: 1px solid var(--hairline);
  border-radius: 18px; padding: 14px 16px;
}
.share-preview {
  margin-top: 12px; width: 100%; max-height: 420px;
  object-fit: contain; border-radius: 18px; background: #000;
  display: block;
}
.share-receive-step { margin-top: 0; }
.share-receive-card .app-head { margin-bottom: 6px; }
.share-expand { display: none; }
.share-expand.open { display: block; }

/* Bouton « Télécharger » dans le mockup du hero */
.app-row > div { flex: 1; min-width: 0; }
.app-dl {
  flex-shrink: 0;
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: rgba(30, 160, 219, 0.12);
  padding: 6px 12px; border-radius: 999px;
}


/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 44px; }
  .dash-grid { grid-template-columns: 1fr; }
  .steps { gap: 40px; }
}

@media (max-width: 820px) {
  .nav-inner { grid-template-columns: 1fr auto 1fr; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 22px;
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-130%); transition: transform .35s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 4px; font-size: 15px; border-bottom: 1px solid var(--hairline-soft); }
  .nav-links a.nav-cta { text-align: center; margin-top: 14px; border: none; }
  .hamburger { display: flex; }

  .roles-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
}

@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .section { padding: 90px 20px; }
  .code-form { flex-direction: column; }
  .card { padding: 24px; }
  .page-head { padding-top: 108px; }
  .app-body { padding: 22px 20px 26px; }
}

/* Accessibilité : réduit les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Partage : ajustements petits écrans */
@media (max-width: 520px) {
  .share-tabs { flex-direction: column; border-radius: 24px; }
  .share-tab { border-radius: 18px; }
  .share-head { text-align: center; justify-content: center; }
  .share-file-row { flex-wrap: wrap; }
  .share-file-row .btn { margin-left: auto; }
}
