/* ------------------------------
   Reset léger & base
---------------------------------*/
* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: radial-gradient(circle at top, #e0f4ff 0, #f5f7fb 35%, #edf1f7 100%);
    margin: 0;
    padding: 24px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* permet de scroller si contenu trop grand */
    color: #1f2933;
}

/* ------------------------------
   Carte principale
---------------------------------*/
.container {
    background: #ffffff;
    padding: 24px 22px 22px;
    border-radius: 16px;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(148, 163, 184, 0.25);
    max-width: 460px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Petit accent décoratif */
.container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(13, 121, 164, 0.16), transparent 60%);
    opacity: 0.8;
}

/* Empêche l'accent de passer au dessus du contenu */
.container > * {
    position: relative;
    z-index: 1;
}

/* Logo Sollix */
.container > div:first-child img {
    max-width: 190px;
    height: auto;
    margin-bottom: 12px;
}

/* ------------------------------
   Titres
---------------------------------*/
h2 {
    text-align: center;
    margin: 4px 0 18px;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #0b4e6b;
}

/* ------------------------------
   Formulaire & labels
---------------------------------*/
form {
    margin-top: 6px;
}

label {
    font-size: 0.9rem;
    color: #4b5563;
}

/* Regroupe la partie "options" pour aérer un peu */
input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 4px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #d0d7e2;
    background-color: #f9fbff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.06s ease;
}

/* Champ de longueur */
input[type="number"] {
    max-width: 140px;
}

/* Focus des champs */
input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #0d79a4;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(13, 121, 164, 0.3), 0 6px 14px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

/* ------------------------------
   Checkboxes
---------------------------------*/
input[type="checkbox"] {
    margin-right: 6px;
    transform: translateY(1px) scale(1.05);
    accent-color: #0d79a4;
    cursor: pointer;
}

input[type="checkbox"] + label {
    display: inline-block;
    margin-bottom: 6px;
    cursor: pointer;
}

/* ------------------------------
   Affichage du mot de passe
---------------------------------*/
#motDePasse,
#motDePasse_nocopy {
    border: none;
    font-size: 1.5em;
    text-align: center;
    color: #0d79a4;
    margin-top: 15px;
    background: #f3f8ff;
    padding: 10px 14px;
    border-radius: 12px;
    letter-spacing: 0.08em;
    font-weight: 600;
    width: 100%;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}

input[id="motDePasse"]:focus,
input[id="motDePasse_nocopy"]:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(13, 121, 164, 0.8);
}

/* ------------------------------
   Boutons principaux
---------------------------------*/
input[type="submit"] {
    background: linear-gradient(135deg, #0d79a4, #0891b2);
    color: white;
    padding: 11px 20px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.97rem;
    font-weight: 600;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
    width: 100%;
    margin-top: 10px;
    letter-spacing: 0.03em;
}

input[type="submit"]:hover {
    background: linear-gradient(135deg, #0d6a92, #0f9bbf);
    box-shadow: 0 10px 22px rgba(13, 121, 164, 0.35);
    transform: translateY(-1px);
}

input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(13, 121, 164, 0.25);
}

/* ------------------------------
   Boutons "Copier" & "Partager"
---------------------------------*/
button[id="copier"],
button[id="partager"] {
    background-color: #ffffff;
    color: #0d79a4;
    padding: 10px 5%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 600;
    width: calc(50% - 6px);
    margin: 10px 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease, border-color 0.2s ease;
}

button[id="copier"] {
    margin-right: 6px;
}

button[id="copier"] img,
button[id="partager"] img {
    max-width: 26px;
    height: auto;
    display: block;
}

button[id="copier"]:hover,
button[id="partager"]:hover {
    background-color: #f3f8ff;
    border-color: #0d79a4;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

button[id="copier"]:active,
button[id="partager"]:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
}

/* ------------------------------
   Textes d'information
---------------------------------*/
.container div[style*="font-weight:bold"],
.container div[style*="margin-top:15px;"] {
    font-size: 0.95rem;
    color: #111827;
}

.container a {
    color: #0d79a4;
    text-decoration: none;
    font-weight: 500;
}

.container a:hover {
    text-decoration: underline;
}

/* ------------------------------
   Responsive
---------------------------------*/
@media (max-width: 480px) {
    .container {
        padding: 20px 16px 18px;
        border-radius: 14px;
    }

    h2 {
        font-size: 1.3rem;
    }

    #motDePasse,
    #motDePasse_nocopy {
        font-size: 1.3em;
    }

    button[id="copier"],
    button[id="partager"] {
        font-size: 0.78em;
    }
}
