/* ======== VARIABLES ======== */
:root {
    --accent: linear-gradient(135deg, #ff416c, #ff4b2b);
    --accent-glow: rgba(255, 65, 108, 0.18);
    --border-subtle: rgba(255, 255, 255, 0.15);
    --surface: rgba(255, 255, 255, 0.07);
    --radius: 8px;
    --font: 'DM Sans', Arial, sans-serif;
    --transition: 0.2s ease;
}

/* ======== BODY & MAIN ======== */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: #fff;
    background: linear-gradient(135deg, #000000, #282829);
}

main {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ======== FORM ======== */
form {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 32px 24px;
}

/* ======== TITRE ======== */
h1 {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    letter-spacing: -0.3px;
    margin: 0 0 6px;
}

/* ======== PARAGRAPHES ======== */
p {
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

/* ======== INPUT URL ======== */
input[type="url"] {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    font-family: var(--font);
    background: var(--surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius);
    color: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

input[type="url"]::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

input[type="url"]:focus {
    border-color: rgba(255, 65, 108, 0.7);
    background: rgba(255, 255, 255, 0.09);
}

/* ======== LABEL ======== */
label {
    font-size: 12px;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: -4px;   /* rapproche le label du select */
}

/* ======== DOWNLOAD ROW ======== */
.download-row {
    width: 100%;
}

/* Le div interne contient select + bouton + loader */
.download-row > div {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* ======== SELECT ======== */
select {
    flex: 1;               /* prend tout l'espace disponible */
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--font);
    background: var(--surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius);
    color: #fff;
    cursor: pointer;
    outline: none;
    appearance: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

select:hover,
select:focus {
    border-color: rgba(255, 65, 108, 0.55);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

option {
    background-color: #2a2a3e;
    color: #fff;
}

/* ======== BOUTON ======== */
.btn {
    height: 44px;
    padding: 0 28px;
    font-size: 15px;
    font-family: var(--font);
    font-weight: 500;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity var(--transition), transform var(--transition);
}

.btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.btn:active {
    opacity: 1;
    transform: translateY(0);
}

/* ======== LOADER ======== */
.loader {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rotation 0.8s linear infinite;
    box-sizing: border-box;
    flex-shrink: 0;
}

@keyframes rotation {
    to { transform: rotate(360deg); }
}

.action-container {
    width: 130px;           /* largeur fixe = celle du bouton */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}