:root {
    --primary-color: #4a6bff;
    --secondary-color: #f8f9fa;
    --accent-color: #ff6b6b;
    --dark-color: #2c3e50;
    --text-color: #333;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7ff;
    padding: 0;
    margin: 0;
}

header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 800px;
    margin: 100px auto 50px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step.active {
    display: block;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

select,
input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: all 0.3s;
}

select:focus,
input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #3a56d4;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: #e05555;
}

.btn-outline {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.device-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.device-item {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.device-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.device-item.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.device-item i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.hidden {
    display: none;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding: 0 20px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    height: 4px;
    background-color: var(--light-gray);
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 30px;
}

.progress-step .step-number {
    width: 30px;
    height: 30px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    color: #666;
    font-weight: 500;
}

.progress-step.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.progress-step.completed .step-number {
    background-color: var(--primary-color);
    color: white;
}

.progress-step.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.step-title {
    font-size: 12px;
    color: #666;
}

.progress-step.active .step-title {
    color: var(--primary-color);
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.summary-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.summary-item strong {
    color: var(--primary-color);
}

.error {
    color: var(--accent-color);
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ffeeee;
    border-radius: var(--border-radius);
}

/* Menu hamburger pour mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 5px;
    transition: var(--transition);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        margin: 100px 20px 50px;
    }

    .device-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        order: 3;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
        text-align: center;
    }

    .container {
        margin: 90px 15px 40px;
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .progress-bar {
        padding: 0 10px;
    }

    .progress-bar::before {
        left: 10px;
        right: 10px;
    }

    .step-title {
        font-size: 10px;
    }

    .device-list {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .device-item {
        padding: 12px;
    }

    .device-item i {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    select,
    input {
        padding: 10px 12px;
        font-size: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .summary {
        padding: 15px;
    }

    .summary-item {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .summary-item span {
        margin-bottom: 5px;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 80px 10px 30px;
        padding: 15px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .progress-step {
        width: 25px;
    }

    .progress-step .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 9px;
    }

    .device-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .device-item {
        padding: 10px;
    }

    .device-item i {
        font-size: 18px;
    }

    select,
    input {
        padding: 8px 10px;
        font-size: 14px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
        width: 100%;
    }

    .summary {
        padding: 12px;
    }
}