:root {
    --bg: #ffffff;
    --card: #ffffff;

    --text: #000000;
    --text-secondary: #717171;

    --border: #727272;
    --border-dark: #161616;

    --shadow: 0 0 55px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #ffffff;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;
}

.app {
    width: 100%;
    max-width: 700px;
}

.card {
    background: var(--card);

    border-radius: 20px;

    box-shadow: var(--shadow);

    padding: 35px;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.subtitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);

    margin-bottom: 10px;
}

.big-button,
.generate-button,
.select {
    width: 100%;

    min-height: 60px;

    border-radius: 18px;

    font-family: inherit;
    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    
}

.big-button {
    background: white;

    border: 4px solid var(--border);

    color: var(--text-secondary);
}



.select {
    background: white;

    border: 4px solid var(--border);

    color: var(--text-secondary);

    padding: 0 16px;

    appearance: none;

    outline: none;
}

.select:disabled,
.big-button:disabled,
.generate-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.generate-button {
    background: white;

    border: 4px solid var(--border-dark);

    color: var(--border-dark);
}



.translate-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.translate-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
}

.flags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.flag-btn {
    width: 54px;
    height: 54px;

    border-radius: 50%;

    border: 3px solid var(--border);

    background: white;

    cursor: pointer;

    font-size: 22px;

   
}



.flag-btn.active {
    border-color: var(--border-dark);
    transform: scale(1.08);
}

.flag-btn[data-lang="none"] {
    width: auto;
    padding: 0 18px;

    border-radius: 999px;

    font-size: 15px;
    font-weight: 700;
}

.progress-section {
    display: flex;
    flex-direction: column;
    gap: 6px;

    margin-top: 5px;
}

#status {
    font-size: 15px;
    font-weight: 700;

    color: var(--text-secondary);
}

#progressText,
#timeRemaining {
    font-size: 14px;
    font-weight: 600;

    color: var(--text-secondary);
}

@media (max-width: 768px) {

    body {
        padding: 15px;
    }

    .card {
        padding: 25px;
    }

    h1 {
        font-size: 24px;
    }

    .big-button,
    .generate-button,
    .select {
        font-size: 16px;
    }
}


.beta-wrapper {
    position: relative;
    display: inline-block;
    cursor: default;
    color: #ffcc00; /* couleur beta */
}

.beta-wrapper {
    position: relative;
    display: inline-block;
    cursor: default;
    color: #e2b500;
}

/* tooltip caché */
.beta-tooltip {
    position: absolute;

    left: 110%;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(20, 20, 20, 0.95);
    color: white;

    padding: 10px 12px;
    border-radius: 8px;

    width: 260px;
    font-size: 12px;
    line-height: 1.4;

    opacity: 0;
    visibility: hidden;

    transition: all 0.2s ease;

    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    z-index: 9999;

    white-space: normal;
}

/* affichage au hover */
.beta-wrapper:hover .beta-tooltip {
    opacity: 1;
    visibility: visible;
}