/* === THEME SOMBRE === */
body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #121212;
    color: #fff;
}

.container {
    max-width: 420px;
    margin: 20px auto;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #e0e0e0;
}

/* === GRID en une seule colonne === */
.grid {
    display: grid;
    grid-template-columns: 1fr; /* toujours une colonne */
    gap: 12px;
}

/* === BOUTONS === */
button {
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    margin-bottom: 8px;
    width: 100%; /* prend toute la largeur */
    box-sizing: border-box;
}

button.b1 { background: #4CAF50; }
button.b2 { background: #2196F3; }
button.b3 { background: #FF9800; }
button.b4 { background: #E91E63; }
button.b5 { background: #9C27B0; }
button.b6 { background: #3F51B5; }
button.b7 { background: #009688; }
button.b8 { background: #795548; }
button.b9 { background: #607D8B; }
button.b10 { background: #F44336; }

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    opacity: 0.9;
}

/* === CONTENU CACHÉ / ANIMATION === */
.toggle-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    margin-top: 0;
}

.toggle-content.show {
    max-height: 1000px;
    opacity: 1;
    margin-top: 20px;
}

/* === LIENS === */
.toggle-content a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.2s;
}

.toggle-content a:hover {
    color: #81C784;
}

/* === IFRAME GLOBALE === */
.pdf-frame {
    display: block;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    background: #000;
    margin-top: 20px;
}

/* === INPUTS === */
input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    background: #2c2c2c;
    color: #fff;
    box-sizing: border-box;
    margin-top: 8px;
}

input::placeholder {
    color: #aaa;
}

input[type="password"] {
    font-family: Arial, sans-serif;
    -webkit-text-security: disc;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.2rem;
    }

    button {
        font-size: 0.95rem;
        padding: 12px;
    }

    .pdf-frame {
        height: 300px; /* plus petit sur mobile */
    }

    .toggle-content ul {
        padding-left: 16px;
    }
}
