/*! 
 * Simulateur Solugryn - Styles
 * Copyright © 2025 Solugryn - Tous droits réservés
 * Version: 1.0.0
 */

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

body {
    font-family: 'Arial', sans-serif;
    background: #f5f5dc;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* ========== HEADER ========== */
.header {
    background: #00d000;
    color: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 48px;
    margin-bottom: 5px;
    font-weight: 900;
    text-transform: lowercase;
    letter-spacing: -1px;
}

.header .subtitle {
    font-size: 20px;
    opacity: 0.95;
    font-weight: 600;
    margin-top: 8px;
}

.badge-artisan {
    display: inline-block;
    background: white;
    color: #00d000;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    margin-top: 20px;
}

/* ========== CONTENT ========== */
.content {
    padding: 50px 40px;
}

/* ========== ÉTAPES ========== */
.step {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.step.active {
    display: block;
}

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

.step-title {
    font-size: 32px;
    color: #6b4423;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 4px solid #6b4423;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-icon {
    width: 60px;
    height: 60px;
    fill: #6b4423;
    flex-shrink: 0;
}

/* ========== FORMULAIRES ========== */
.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    font-size: 18px;
}

input,
select {
    width: 100%;
    padding: 18px;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    font-size: 18px;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus,
select:focus {
    outline: none;
    border-color: #6b4423;
    box-shadow: 0 0 0 4px rgba(107, 68, 35, 0.1);
}

input::placeholder {
    color: #999;
}

/* ========== RADIO BUTTONS ========== */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-label {
    display: block;
    padding: 22px;
    border: 4px solid #e0e0e0;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    font-weight: 700;
    color: #555;
    font-size: 17px;
}

.radio-option input[type="radio"]:checked + .radio-label {
    border-color: #6b4423;
    background: #6b4423;
    color: white;
    transform: scale(1.05);
}

.radio-option input[type="radio"]:hover + .radio-label {
    border-color: #8b5a2b;
}

/* ========== CHECKBOXES ========== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.checkbox-option:hover {
    border-color: #6b4423;
    background: rgba(107, 68, 35, 0.05);
}

.checkbox-option input[type="checkbox"] {
    width: 28px;
    height: 28px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #6b4423;
    flex-shrink: 0;
}

.checkbox-option span {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

/* ========== BOUTONS ========== */
.buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

button {
    flex: 1;
    padding: 22px;
    border: none;
    border-radius: 50px;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #6b4423;
    color: white;
}

.btn-primary:hover {
    background: #553619;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(107, 68, 35, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f5f5dc;
    color: #333;
    border: 3px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e8e8d0;
    border-color: #6b4423;
}

/* ========== RÉSULTATS ========== */
.results {
    display: none;
}

.results.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.result-card {
    background: linear-gradient(135deg, #6b4423 0%, #8b5a2b 100%);
    color: white;
    padding: 50px;
    border-radius: 20px;
    margin-bottom: 35px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(107, 68, 35, 0.3);
}

.result-card h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 900;
}

.total-amount {
    font-size: 72px;
    font-weight: 900;
    margin: 30px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.result-card p {
    font-size: 18px;
    opacity: 0.95;
}

/* ========== DÉTAILS RÉSULTATS ========== */
.result-details {
    background: #fafaf5;
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 30px;
    border: 3px solid #6b4423;
}

.result-details h3 {
    color: #6b4423;
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: 900;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    border-bottom: 2px solid #e8e8e8;
    gap: 20px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #555;
    font-weight: 700;
    font-size: 17px;
    flex: 1;
}

.detail-value {
    color: #6b4423;
    font-weight: 900;
    font-size: 22px;
    white-space: nowrap;
}

/* ========== BOÎTES D'INFORMATION ========== */
.info-box {
    background: #f4efe8;
    border-left: 6px solid #6b4423;
    padding: 22px;
    border-radius: 12px;
    margin: 25px 0;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
}

.info-box strong {
    color: #6b4423;
    font-weight: 900;
}

.warning-box {
    background: #fff8e1;
    border-left: 6px solid #ffa000;
    padding: 22px;
    border-radius: 12px;
    margin: 25px 0;
    color: #5d4037;
    font-size: 16px;
    line-height: 1.7;
}

.warning-box strong {
    color: #f57c00;
    font-weight: 900;
}

.alert-box {
    background: #ffebee;
    border-left: 6px solid #d32f2f;
    padding: 22px;
    border-radius: 12px;
    margin: 25px 0;
    color: #b71c1c;
    font-size: 16px;
    line-height: 1.7;
}

.alert-box strong {
    color: #c62828;
    font-weight: 900;
}

/* ========== BARRE DE PROGRESSION ========== */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-weight: 900;
    font-size: 24px;
    transition: all 0.3s;
}

.progress-step.active .progress-circle {
    background: #6b4423;
    color: white;
    box-shadow: 0 4px 15px rgba(107, 68, 35, 0.4);
    transform: scale(1.1);
}

.progress-step.completed .progress-circle {
    background: #6b4423;
    color: white;
}

.progress-label {
    font-size: 15px;
    color: #999;
    font-weight: 700;
}

.progress-step.active .progress-label {
    color: #6b4423;
    font-weight: 900;
}

.progress-step.completed .progress-label {
    color: #6b4423;
}

/* ========== UTILITAIRES ========== */
strong {
    color: #6b4423;
}

/* ========== IMPRESSION ========== */
@media print {
    .buttons {
        display: none !important;
    }
    .progress-bar {
        display: none !important;
    }
    body {
        background: white;
        padding: 0;
    }
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    .header {
        background: #6b4423 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .result-card {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 36px;
    }

    .header .subtitle {
        font-size: 16px;
    }

    .badge-artisan {
        font-size: 13px;
        padding: 8px 18px;
    }

    .content {
        padding: 30px 20px;
    }

    .step-title {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .step-icon {
        width: 45px;
        height: 45px;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .radio-label {
        font-size: 16px;
        padding: 18px;
    }

    .checkbox-option {
        padding: 16px;
    }

    .checkbox-option span {
        font-size: 15px;
    }

    .buttons {
        flex-direction: column;
    }

    button {
        font-size: 17px;
        padding: 18px;
    }

    .result-card {
        padding: 30px 20px;
    }

    .result-card h2 {
        font-size: 28px;
    }

    .total-amount {
        font-size: 52px;
    }

    .result-details {
        padding: 25px 20px;
    }

    .result-details h3 {
        font-size: 22px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 18px 0;
    }

    .detail-label {
        font-size: 15px;
    }

    .detail-value {
        font-size: 20px;
    }

    .progress-bar {
        margin-bottom: 30px;
    }

    .progress-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .progress-label {
        font-size: 13px;
    }

    input,
    select {
        font-size: 16px;
        padding: 16px;
    }

    label {
        font-size: 16px;
    }

    .info-box,
    .warning-box,
    .alert-box {
        font-size: 14px;
        padding: 18px;
    }
}

/* ========== RESPONSIVE TABLETTE ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

    .content {
        padding: 40px 30px;
    }

    .radio-group {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* ========== ACCESSIBILITÉ ========== */
button:focus,
input:focus,
select:focus {
    outline: 3px solid #6b4423;
    outline-offset: 2px;
}

.radio-label:focus-within,
.checkbox-option:focus-within {
    outline: 3px solid #6b4423;
    outline-offset: 2px;
}

/* ========== ANIMATIONS SUPPLÉMENTAIRES ========== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-primary:hover {
    animation: pulse 0.5s ease-in-out;
}

/* ========== FIN DU FICHIER ========== */