/* Container du simulateur */
.simulator {
    max-width: 700px;
    margin: 1em auto;
    padding: 1em;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    color: #c9d1d9;
}

/* Titres et notes */
.hero-subtext {
    font-size: 1.2em;
    color: #58a6ff;
    margin-top: 1em;
    display: inline-block;
    animation: bounce 2s infinite;
}

/* Animation flèche bounce */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}



.simulator ul.note {
    list-style: none;               /* supprime les puces par défaut */
    padding: 1.5em;                 /* espace interne */
    max-width: 500px;
    font-size: 0.95em;
    color: #8b949e;                 /* gris clair GitHub dark */
    background-color: #161b22;      /* fond sombre pour la boîte */
    border: 1px solid #30363d;      /* bordure légère */
    border-radius: 8px;             /* coins arrondis */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3); /* léger relief */
    margin: 1em auto;               /* centrage horizontal + marge */
}

.simulator ul.note li {
    position: relative;
    padding-left: 2em;              /* espace pour la flèche */
    margin-bottom: 0.5em;           /* espace entre les items */
}

.simulator ul.note li::before {
    content: "✔";                   /* flèche */
    position: absolute;
    left: 0;
    top: 0;
    color: #58a6ff;                 /* accent bleu */
    font-weight: bold;
    font-size: 1.1em;
}




/* Labels et inputs */
.simulator label {
    display: block;
    margin: 0.4em 0 0.4em;
    cursor: pointer;
}

.simulator input[type="checkbox"] {
    margin-right: 0.5em;
    transform: scale(1.1);
    cursor: pointer;
}

.simulator input[type="number"],
.simulator input[type="text"],
.simulator select {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #30363d;
    border-radius: 8px;
    background-color: #0d1117;
    color: #c9d1d9;
    margin-bottom: 0.5em;
    font-size: 1rem;
}

/* Boutons */
.simulator button {
    margin-top: 1.5em;
    width: 100%;
    padding: 0.75em;
    border: none;
    border-radius: 8px;
    background-color: #58a6ff;
    color: #0d1117;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.simulator button:hover {
    background-color: #1f6feb;
    transform: translateY(-2px);
}

.price-estimation {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c7be5; /* bleu moderne */
    background: #f0f8ff; /* léger fond bleu clair */
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 5px solid #2c7be5;
    border-radius: 6px;
}


/* Résultat */
.result {
    margin-top: 1.5em;
    padding: 1em;
    background-color: #21262d;
    border-radius: 8px;
    color: #58a6ff;
    text-align: center;
    font-weight: 600;
    word-wrap: break-word;
}

/* Responsive pour mobiles et tablettes */
@media (max-width: 600px) {
    .simulator {
        padding: 1em;
        border-radius: 10px;
        margin: -1em;
        margin-top: 10px;
    }

    .simulator h2 {
        font-size: 1.5rem;
    }

    .simulator p.note {
        font-size: 0.85rem;
    }

    .simulator input[type="number"],
    .simulator input[type="text"],
    .simulator select {
        font-size: 0.95rem;
        padding: 0.45em;
    }

    .simulator button {
        font-size: 0.95rem;
        padding: 0.65em;
    }

    .result {
        font-size: 1rem;
        padding: 0.8em;
    }
}


/* Masquer les spinners natifs */
#pages {
    -webkit-appearance: none; /* Chrome, Safari, Edge */
    appearance: none; /* standard moderne */
    /* -moz-appearance: textfield;  Firefox peut générer un warning, facultatif */
    width: 70px;
    text-align: center;
    background: #0d1117;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 8px 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#pages:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 5px rgba(88,166,255,0.5);
}

/* Masquer les spinners natifs sur Chrome, Safari, Edge */
#pages::-webkit-inner-spin-button,
#pages::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.simulator h2 {
    font-size: 1.8em;           /* taille du titre */
    font-weight: 700;            /* gras pour impact */
    color: #c9d1d9;              /* gris clair GitHub dark */
    margin-bottom: 0.8em;        /* espace sous le titre */
    text-align: center;           /* centré */
}

.eco-info {
    background-color: #161b22; /* fond sombre GitHub */
    border-left: 4px solid #58a6ff; /* accent bleu */
    padding: 10px 15px;
    margin-top: 1em;
    font-size: 0.9em;
    max-width: 80%;
    color: #c9d1d9;
    border-radius: 6px;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgb(0, 0, 0);
}

.included-title {
    font-size: 1em;
    color: #c9d1d9;           /* gris clair GitHub dark */
    font-weight: 600;
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
    gap: 0.5em;               /* espace entre le check et le texte */
}

.included-title .check {
    color: #58a6ff;            /* bleu accent */
    font-weight: bold;
    font-size: 1.2em;
}

.end {
    background-color: #0d1117;
    color: #c9d1d9;
    padding: 2em 0.2em;
    text-align: center;
    margin-top: 2em;
}

.end-title {
    font-size: 1.8em;
    line-height: 1.2em;
    font-weight: 700;
    margin-bottom: 0.8em;
}

.end-title span {
    color: #58a6ff;
    transition: transform 0.3s ease;
    display: inline-block;
}

.end-title span:hover {
    transform: translateY(-2px);
}

.end-text {
    font-size: 1.05em;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 1.5em auto;
    color: #8b949e;
}

.end-btn {
    background-color: #58a6ff;
    color: #0d1117;
    font-weight: 600;
    border: none;
    padding: 0.8em 2em;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1.5em;
}

.end-btn:hover {
    background-color: #1f6feb;
}

.end-details {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    color: #8b949e;
}

.end-details h2 {
    font-size: 1.3em;
    margin-top: 1.5em;
    color: #c9d1d9;
}

.end-details p {
    margin-top: 0.5em;
    line-height: 1.6;
}


