* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(124, 92, 255, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(25, 211, 192, 0.16), transparent 28%),
        linear-gradient(135deg, #09111f 0%, #10182b 45%, #0b1220 100%);
    color: #f7f9ff;
    overflow-x: hidden;
}

.bg-orb {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    animation: floatOrb 10s ease-in-out infinite;
}

.orb-one {
    top: -80px;
    left: -60px;
    background: rgba(76, 117, 255, 0.45);
}

.orb-two {
    right: -80px;
    bottom: -100px;
    background: rgba(18, 207, 179, 0.35);
    animation-delay: -4s;
}

.page {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 24px;
    z-index: 1;
}

.hero {
    margin-bottom: 36px;
    animation: fadeUp 0.7s ease;
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(109, 139, 255, 0.18);
    color: #dce5ff;
    border: 1px solid rgba(126, 154, 255, 0.25);
    font-size: 14px;
    letter-spacing: 0.04em;
}

h1 {
    margin: 18px 0 12px;
    font-size: 52px;
    line-height: 1.05;
}

.subtitle {
    max-width: 780px;
    color: #c6d0e5;
    line-height: 1.7;
    font-size: 18px;
}

.hero-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-steps span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dde6fa;
    backdrop-filter: blur(10px);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.card,
.drop-panel {
    position: relative;
    background: rgba(15, 23, 39, 0.78);
    border: 1px solid rgba(130, 154, 219, 0.14);
    border-radius: 24px;
    padding: 26px;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(4, 10, 20, 0.35);
}

.card {
    overflow: hidden;
    animation: fadeUp 0.8s ease both;
}

.card:nth-child(2) {
    animation-delay: 0.08s;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(103, 119, 255, 0.18), transparent 50%, rgba(27, 199, 196, 0.12));
    opacity: 0.9;
    pointer-events: none;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-4px);
    transition: transform 0.25s ease, border-color 0.25s ease;
    border-color: rgba(136, 168, 255, 0.28);
}

.card-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #6e7cff, #61b5ff);
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(82, 114, 255, 0.35);
}

.card-icon.alt {
    background: linear-gradient(135deg, #19d3c0, #5b9dff);
    box-shadow: 0 10px 25px rgba(38, 201, 184, 0.28);
}

.card h2,
.drop-panel h3 {
    margin-top: 0;
    font-size: 28px;
}

.card p,
.drop-panel p {
    color: #cbd5ea;
    line-height: 1.65;
}

.primary {
    position: relative;
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 15px 16px;
    background: linear-gradient(135deg, #6f7cff, #2ec5d3);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 28px rgba(77, 116, 255, 0.28);
}

.primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: skewX(-20deg);
}

.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(77, 116, 255, 0.34);
}

.primary:hover::after {
    animation: shine 0.9s ease;
}

.drop-panel {
    animation: fadeUp 0.9s ease both;
    animation-delay: 0.12s;
}

.drop-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.drop-kicker {
    display: inline-block;
    margin: 0 0 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(43, 214, 204, 0.14);
    color: #bafaf2;
    border: 1px solid rgba(43, 214, 204, 0.22);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.drop-copy {
    max-width: 780px;
}

.drop-limit-badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dde6fa;
    white-space: nowrap;
}

.drop-zone {
    margin-top: 22px;
    border: 2px dashed rgba(120, 157, 255, 0.34);
    border-radius: 24px;
    padding: 34px 22px;
    text-align: center;
    background: rgba(10, 17, 31, 0.5);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.drop-zone.is-active {
    border-color: rgba(77, 201, 255, 0.9);
    background: rgba(35, 72, 133, 0.22);
    transform: translateY(-2px);
}

.drop-title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
}

.drop-subtitle {
    margin: 10px 0 0;
    color: #bdc9e2;
}

.drop-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.action-button,
.share-button,
.send-button {
    width: auto;
}

.secondary,
.ghost {
    border-radius: 16px;
    padding: 15px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.secondary {
    border: 1px solid rgba(130, 154, 219, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #f7f9ff;
}

.ghost {
    border: 1px solid rgba(130, 154, 219, 0.18);
    background: transparent;
    color: #cbd5ea;
}

.secondary:hover,
.ghost:hover {
    transform: translateY(-2px);
}

.drop-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
}

.summary-card {
    min-width: 180px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(130, 154, 219, 0.12);
}

.summary-card strong {
    display: block;
    font-size: 28px;
    margin-bottom: 4px;
}

.summary-card span {
    color: #bdc9e2;
}

.drop-status {
    margin-top: 18px;
    border-radius: 18px;
    padding: 14px 16px;
    line-height: 1.6;
}

.drop-status.info {
    background: rgba(77, 116, 255, 0.16);
    color: #dce5ff;
}

.drop-status.success {
    background: rgba(46, 230, 164, 0.14);
    color: #d8ffef;
}

.drop-status.error {
    background: rgba(255, 95, 121, 0.16);
    color: #ffe0e8;
}

.selection-shell {
    margin-top: 22px;
}

.selection-shell h4,
.result-panel h4 {
    margin: 0 0 12px;
    font-size: 22px;
}

.selection-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(130, 154, 219, 0.12);
}

.selection-list:empty::before {
    content: "Rien à afficher pour l'instant.";
    display: block;
    padding: 18px;
    color: #9fafca;
    background: rgba(8, 14, 26, 0.45);
}

.selection-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(8, 14, 26, 0.45);
    border-bottom: 1px solid rgba(130, 154, 219, 0.08);
}

.selection-list li:last-child {
    border-bottom: 0;
}

.selection-path {
    word-break: break-word;
}

.selection-size {
    color: #9fafca;
    white-space: nowrap;
}

.send-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.send-button {
    min-width: 240px;
}

.result-panel {
    margin-top: 24px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(8, 14, 26, 0.48);
    border: 1px solid rgba(130, 154, 219, 0.12);
}

.result-panel.hidden {
    display: none;
}

.result-copy {
    margin-bottom: 16px;
}

.share-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-box input {
    flex: 1 1 420px;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(130, 154, 219, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #f7f9ff;
    padding: 0 16px;
    font-size: 15px;
}

.download-panel {
    max-width: 920px;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(20px) translateX(18px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    from {
        left: -120%;
    }
    to {
        left: 140%;
    }
}

@media (max-width: 820px) {
    .drop-panel-head {
        flex-direction: column;
    }

    .drop-limit-badge {
        white-space: normal;
    }

    .selection-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .send-row {
        justify-content: stretch;
    }

    .send-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 40px;
    }

    .page {
        padding: 36px 18px;
    }

    .card,
    .drop-panel {
        padding: 20px;
    }

    .drop-title {
        font-size: 24px;
    }
}
