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

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'IBM Plex Mono', Courier, monospace;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    min-height: 100vh;
}

/* Logo */
.logo-container {
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.logo {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
}

/* Calculator */
.calculator-wrapper {
    width: 100%;
    max-width: 42rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.calculator {
    display: flex;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 5.5rem;
}

.input-section {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    flex: 1;
}

.card-icon {
    width: 2rem;
    height: 2rem;
    color: #000000;
    flex-shrink: 0;
}

.montant-input {
    color: #000000;
    font-size: 1.5rem;
    font-weight: bold;
    outline: none;
    background-color: #ffffff;
    border: none;
    width: 100%;
    min-width: 0;
    max-width: 200px;
}

.montant-input::placeholder {
    color: #666666;
}

/* flèches input number */
.montant-input::-webkit-outer-spin-button,
.montant-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.montant-input[type=number] {
    -moz-appearance: textfield; /* Pour Firefox */
    -webkit-appearance: none; /* Pour Chrome, Safari et Opera */
    appearance: none; /* Pour les standards modernes */
}

.euro-symbol {
    color: #000000;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.ok-button {
    background-color: #FBD9DD;
    color: #000000;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.ok-button:hover {
    background-color: #ffb3c1;
}

/* Result */
.result-section {
    width: 100%;
    max-width: 42rem;
    padding: 0 1rem;
    margin-top: 1.875rem;
    margin-bottom: 1.875rem;
    animation: bounce 1s infinite;
    text-align: center;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.result-text {
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    word-break: break-word;
}

.bam-pink {
    color: #FBD9DD;
}

.exclamation {
    letter-spacing: -0.2em;
}

/* Description */
.description-section {
    width: 100%;
    max-width: 42rem;
    padding: 0 1rem;
    text-align: left;
    margin-bottom: 2rem;
}

.description-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.description-text {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.75;
}

.minutes-highlight {
    color: #ffffff;
    font-weight: bold;
}

/* Info BAM */
.info-section {
    width: 100%;
    max-width: 42rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background-color: #1f2937;
    border-radius: 0.75rem;
    padding: 1rem;
}

.info-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.info-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ec4899;
}

.info-description {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Navigation */
.nav-section {
    width: 100%;
    max-width: 42rem;
    padding: 0 1rem;
    text-align: left;
    margin-bottom: 2rem;
}

.nav-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    color: #d1d5db;
    text-decoration: underline;
    font-size: 1rem;
}

.nav-link:hover {
    color: #ffffff;
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 2rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.footer a {
    color: #6b7280;
    text-decoration: underline;
}

.footer a:hover {
    color: #9ca3af;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-overlay.active {
    display: flex;
    align-items: top;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal {
    background-color: #000000;
   /* border: 2px solid #FBD9DD;
    border-radius: 1rem;*/
    max-width: 50rem;
    width: 100%;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #FBD9DD;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.1);
    color: #ffffff;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-right: 3rem;
    color: #ffffff;
}

.modal-text {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.75;
    text-align: justify;
}

.modal-text p {
    margin-bottom: 1rem;
}

/* Media Queries */
@media (min-width: 768px) {
    .container {
        padding: 2rem;
    }

    .logo-container {
        margin-bottom: 3rem;
        margin-top: 2rem;
    }

    .logo {
        width: 18rem;
        height: 18rem;
    }

    .calculator {
        min-height: 5rem;
    }

    .input-section {
        gap: 1.5rem;
        padding: 0 2rem;
    }

    .card-icon {
        width: 3rem;
        height: 3rem;
    }

    .montant-input,
    .euro-symbol {
        font-size: 2rem;
    }

    .ok-button {
        font-size: 2rem;
        padding: 0 3rem;
    }

    .result-text {
        font-size: 5rem;
    }

    .description-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .description-text {
        font-size: 1.125rem;
    }

    .description-section,
    .info-section,
    .nav-section {
        margin-bottom: 3rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-header {
        gap: 0.75rem;
    }

    .info-label {
        font-size: 0.875rem;
    }

    .info-value {
        font-size: 1.875rem;
    }

    .info-description {
        font-size: 0.875rem;
    }

    .nav-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 1.125rem;
    }

    .footer {
        padding-top: 3rem;
        font-size: 0.875rem;
    }

    .modal-content {
        padding: 3rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-title {
        font-size: 2rem;
    }

    .modal-text {
        font-size: 1.125rem;
    }
}