/* =========================================
   HVSR - Assistant serveur dédié
   ========================================= */

.dedie-assistant-page {
    background: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    padding-bottom: 80px;
}


/* =========================================
   INTRODUCTION
   ========================================= */

.dedie-assistant-intro {
    width: min(1180px, calc(100% - 40px));
    margin: 50px auto 40px;
    padding: 45px;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 50px;
    align-items: center;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f2f7fc 100%
    );
    border: 1px solid #dbe7f3;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(15, 48, 87, 0.09);
    overflow: hidden;
}

.dedie-assistant-intro-text {
    position: relative;
    z-index: 2;
}

.dedie-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: #e8f2fc;
    color: #1764a7;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dedie-assistant-intro h1 {
    margin: 0;
    max-width: 720px;
    color: #123f70;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
}

.dedie-assistant-intro-text > p {
    max-width: 720px;
    margin: 24px 0 0;
    color: #5c6f84;
    font-size: 18px;
    line-height: 1.75;
}

.dedie-admin-info {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 30px;
    padding: 20px;
    background: #edf6ff;
    border: 1px solid #cfe4f7;
    border-radius: 18px;
}

.dedie-admin-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1f6eb3;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(31, 110, 179, 0.22);
}

.dedie-admin-info strong {
    display: block;
    margin-bottom: 6px;
    color: #154c7e;
    font-size: 16px;
}

.dedie-admin-info p {
    margin: 0;
    color: #5b7187;
    font-size: 15px;
    line-height: 1.6;
}

.dedie-assistant-intro-image {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dedie-assistant-intro-image::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(52, 135, 204, 0.22) 0%,
        rgba(52, 135, 204, 0.08) 45%,
        transparent 72%
    );
    filter: blur(2px);
}

.dedie-assistant-intro-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 390px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 22px 24px rgba(19, 64, 105, 0.2));
}


/* =========================================
   CONTENEUR DU FORMULAIRE
   ========================================= */

.dedie-assistant-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px;
    background: #ffffff;
    border: 1px solid #e0e8f0;
    border-radius: 28px;
    box-shadow: 0 20px 55px rgba(28, 69, 110, 0.08);
}


/* =========================================
   BARRE DE PROGRESSION
   ========================================= */

.dedie-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 50px;
}

.dedie-progress-step {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dedie-progress-step span {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d7e2ec;
    border-radius: 50%;
    background: #ffffff;
    color: #8a9bab;
    font-size: 17px;
    font-weight: 800;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.dedie-progress-step p {
    margin: 10px 0 0;
    color: #8797a8;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.25s ease;
}

.dedie-progress-step.active span {
    border-color: #1f6eb3;
    background: #1f6eb3;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(31, 110, 179, 0.25);
    transform: translateY(-2px);
}

.dedie-progress-step.active p {
    color: #1f5f9e;
}

.dedie-progress-step.completed span {
    border-color: #2f9b68;
    background: #2f9b68;
    color: #ffffff;
}

.dedie-progress-step.completed p {
    color: #2f7f5a;
}

.dedie-progress-line {
    width: 120px;
    height: 3px;
    margin-top: 22px;
    background: #dce6ef;
    border-radius: 999px;
    transition: background 0.25s ease;
}

.dedie-progress-line.completed {
    background: #2f9b68;
}


/* =========================================
   ÉTAPES DU FORMULAIRE
   ========================================= */

.dedie-form-step {
    display: none;
    animation: dedieFadeIn 0.35s ease;
}

.dedie-form-step.active {
    display: block;
}

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

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

.dedie-step-heading {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.dedie-step-number {
    display: inline-block;
    margin-bottom: 12px;
    color: #2a74b5;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dedie-step-heading h2 {
    margin: 0;
    color: #163f69;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
}

.dedie-step-heading p {
    margin: 14px 0 0;
    color: #718295;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================
   CARTES DE CHOIX
   ========================================= */

.dedie-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dedie-choice-card {
    position: relative;
    min-height: 175px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 2px solid #e2eaf2;
    border-radius: 20px;
    background: #ffffff;
    cursor: pointer;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.dedie-choice-card:hover {
    transform: translateY(-4px);
    border-color: #8dbce2;
    box-shadow: 0 14px 30px rgba(36, 92, 142, 0.1);
}

.dedie-choice-card:has(input:checked) {
    border-color: #1f6eb3;
    background: #f0f7fd;
    box-shadow: 0 14px 30px rgba(31, 110, 179, 0.14);
}

.dedie-choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dedie-choice-icon {
    display: block;
    margin-bottom: 14px;
    font-size: 34px;
    line-height: 1;
}

.dedie-choice-card strong {
    color: #17466f;
    font-size: 18px;
    line-height: 1.3;
}

.dedie-choice-card small {
    margin-top: 8px;
    color: #728396;
    font-size: 14px;
    line-height: 1.55;
}


/* =========================================
   BLOCS DE QUESTIONS
   ========================================= */

.dedie-question-block {
    margin-bottom: 28px;
    padding: 26px;
    background: #f9fbfd;
    border: 1px solid #e2eaf2;
    border-radius: 20px;
}

.dedie-question-block h3 {
    margin: 0 0 18px;
    color: #194b76;
    font-size: 19px;
    line-height: 1.4;
}

.dedie-option-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dedie-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.dedie-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dedie-option span {
    min-height: 54px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    border: 2px solid #e0e8f0;
    border-radius: 14px;
    background: #ffffff;
    color: #51667b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dedie-option:hover span {
    transform: translateY(-2px);
    border-color: #9dc4e4;
}

.dedie-option input:checked + span {
    border-color: #1f6eb3;
    background: #edf6fd;
    color: #14578f;
    box-shadow: 0 8px 20px rgba(31, 110, 179, 0.1);
}


/* =========================================
   CHAMPS
   ========================================= */

.dedie-select,
.dedie-field input,
.dedie-field textarea,
.dedie-domain-field input {
    width: 100%;
    border: 1px solid #cfdbe6;
    border-radius: 14px;
    background: #ffffff;
    color: #25384c;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.dedie-select,
.dedie-field input,
.dedie-domain-field input {
    min-height: 52px;
    padding: 0 16px;
}

.dedie-field textarea {
    min-height: 170px;
    padding: 15px 16px;
    resize: vertical;
    line-height: 1.6;
}

.dedie-select:focus,
.dedie-field input:focus,
.dedie-field textarea:focus,
.dedie-domain-field input:focus {
    border-color: #2a79b9;
    box-shadow: 0 0 0 4px rgba(42, 121, 185, 0.12);
    background: #ffffff;
}

.dedie-domain-field {
    margin-top: 18px;
}

.dedie-domain-field label,
.dedie-field label {
    display: block;
    margin-bottom: 8px;
    color: #38556f;
    font-size: 15px;
    font-weight: 700;
}

.dedie-field label span {
    color: #c74444;
}

.dedie-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.dedie-field-full {
    grid-column: 1 / -1;
}


/* =========================================
   CONFIDENTIALITÉ
   ========================================= */

.dedie-privacy-info {
    margin-top: 22px;
    padding: 16px 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 14px;
    background: #f2f7fb;
    color: #65788a;
}

.dedie-privacy-info span {
    font-size: 20px;
}

.dedie-privacy-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}


/* =========================================
   NAVIGATION ET BOUTONS
   ========================================= */

.dedie-form-navigation {
    margin-top: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dedie-navigation-right {
    justify-content: flex-end;
}

.dedie-btn {
    min-height: 52px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.dedie-btn:hover {
    transform: translateY(-2px);
}

.dedie-btn-primary {
    background: linear-gradient(
        135deg,
        #1f6eb3,
        #15558d
    );
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 110, 179, 0.24);
}

.dedie-btn-primary:hover {
    background: linear-gradient(
        135deg,
        #287bc0,
        #164f83
    );
    box-shadow: 0 14px 28px rgba(31, 110, 179, 0.3);
}

.dedie-btn-secondary {
    border: 1px solid #d3dee8;
    background: #ffffff;
    color: #496176;
}

.dedie-btn-secondary:hover {
    background: #f3f7fa;
    color: #1d527e;
}

.dedie-submit-btn {
    min-width: 310px;
}


/* =========================================
   MESSAGE D'ERREUR JAVASCRIPT
   ========================================= */

.dedie-error-message {
    margin: 20px 0;
    padding: 15px 18px;
    border: 1px solid #efb5b5;
    border-radius: 14px;
    background: #fff2f2;
    color: #a83232;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {

    .dedie-assistant-intro {
        grid-template-columns: 1fr;
        padding: 36px 30px;
        text-align: center;
    }

    .dedie-assistant-intro-text > p {
        margin-left: auto;
        margin-right: auto;
    }

    .dedie-admin-info {
        text-align: left;
    }

    .dedie-assistant-intro-image {
        min-height: 280px;
    }

    .dedie-assistant-intro-image img {
        max-width: 330px;
    }

    .dedie-assistant-container {
        padding: 34px 28px;
    }

}

@media (max-width: 700px) {

    .dedie-assistant-page {
        padding-bottom: 45px;
    }

    .dedie-assistant-intro,
    .dedie-assistant-container {
        width: min(100% - 24px, 980px);
    }

    .dedie-assistant-intro {
        margin-top: 24px;
        padding: 28px 20px;
        border-radius: 22px;
    }

    .dedie-assistant-intro h1 {
        font-size: 34px;
    }

    .dedie-assistant-intro-text > p {
        font-size: 16px;
    }

    .dedie-assistant-intro-image {
        min-height: 230px;
    }

    .dedie-assistant-intro-image img {
        max-width: 280px;
    }

    .dedie-assistant-container {
        padding: 28px 18px;
        border-radius: 22px;
    }

    .dedie-progress {
        margin-bottom: 38px;
    }

    .dedie-progress-step {
        width: 82px;
    }

    .dedie-progress-step span {
        width: 40px;
        height: 40px;
    }

    .dedie-progress-step p {
        font-size: 12px;
    }

    .dedie-progress-line {
        width: 50px;
        margin-top: 19px;
    }

    .dedie-choice-grid,
    .dedie-option-list,
    .dedie-contact-grid {
        grid-template-columns: 1fr;
    }

    .dedie-choice-card {
        min-height: auto;
    }

    .dedie-field-full {
        grid-column: auto;
    }

    .dedie-question-block {
        padding: 20px 16px;
    }

    .dedie-form-navigation {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .dedie-navigation-right {
        flex-direction: column;
    }

    .dedie-btn,
    .dedie-submit-btn {
        width: 100%;
        min-width: 0;
    }

}

@media (max-width: 430px) {

    .dedie-assistant-intro h1 {
        font-size: 30px;
    }

    .dedie-admin-info {
        flex-direction: column;
    }

    .dedie-progress-step p {
        display: none;
    }

    .dedie-progress-line {
        width: 42px;
    }

    .dedie-step-heading h2 {
        font-size: 27px;
    }

}
