/* ==========================================================================
   CSS DÉDIÉ AU CONFIGURATEUR DE PROJET (contact.html)
   Contient : bande d'appel "Imaginons votre projet", modale plein écran,
   stepper, cartes de choix, aperçus de style et écran de confirmation.
   S'appuie exclusivement sur les variables déjà définies dans css/style.css
   (--un, --trois, --quatre, --cinq, --transition) pour rester cohérent
   avec le thème clair/sombre du site, sans aucune couleur codée en dur.
   ========================================================================== */

/* ==========================================================================
   BANDE D'APPEL "IMAGINONS VOTRE PROJET"
   ========================================================================== */
.quick-start-section {
    background: var(--trois);
    padding: 0 8% 70px;
    transition: var(--transition);
}

[data-theme="dark"] .quick-start-section {
    background: var(--bg-page);
}

.quick-start-card {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--un);
    color: var(--trois);
    padding: 44px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    transition: var(--transition);
}

.quick-start-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--quatre);
    font-weight: 600;
    margin-bottom: 10px;
}

.quick-start-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.quick-start-text p {
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 520px;
}

.quick-start-btn {
    flex-shrink: 0;
    background: transparent;
    color: var(--trois);
    border: 1px solid color-mix(in srgb, var(--trois) 30%, transparent);
    padding: 16px 32px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    transition: var(--transition);
}

.quick-start-btn:hover {
    border-color: var(--quatre);
    color: var(--quatre);
    background: color-mix(in srgb, var(--trois) 8%, transparent);
}

@media (max-width: 860px) {
    .quick-start-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .quick-start-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   MODALE PLEIN ÉCRAN
   ========================================================================== */
.sc-configurator-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

.sc-configurator-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sc-configurator-overlay[hidden] {
    display: none !important;
}

.configurator-window {
    background: var(--un);
    color: var(--trois);
    border: 1px solid color-mix(in srgb, var(--trois) 10%, transparent);
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: var(--transition);
}

/* En-tête */
.configurator-header {
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid color-mix(in srgb, var(--trois) 8%, transparent);
}

.agency-tag {
    color: var(--quatre);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.configurator-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
}

.close-configurator-btn {
    background: none;
    border: none;
    color: color-mix(in srgb, var(--trois) 45%, transparent);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-configurator-btn:hover {
    color: var(--trois);
}

/* Notice de restauration de brouillon */
.draft-restored-notice {
    margin: 0;
    padding: 10px 35px;
    font-size: 0.78rem;
    color: var(--quatre);
    background: color-mix(in srgb, var(--quatre) 10%, transparent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.draft-restored-notice[hidden] {
    display: none;
}

/* Repères d'étapes cliquables */
.configurator-step-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 35px 0;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--trois) 15%, transparent);
    border: none;
    padding: 0;
    cursor: default;
    transition: var(--transition);
}

.step-dot.is-reachable {
    cursor: pointer;
}

.step-dot.is-reachable:hover {
    background: color-mix(in srgb, var(--quatre) 60%, transparent);
}

.step-dot.is-current {
    background: var(--quatre);
    width: 20px;
    border-radius: 4px;
}

.step-dot.is-done {
    background: color-mix(in srgb, var(--quatre) 55%, transparent);
}

/* Progression */
.configurator-progress-bar {
    width: 100%;
    height: 3px;
    background: color-mix(in srgb, var(--trois) 8%, transparent);
    margin-top: 12px;
}

.progress-fill {
    height: 100%;
    width: 16.66%;
    background: var(--quatre);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Conteneur du formulaire à étapes */
#nexusStrategicForm {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.config-step {
    display: none;
}

.config-step.active {
    display: block;
    animation: stepFadeIn 0.4s ease forwards;
}

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

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

.config-step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-subtitle {
    color: color-mix(in srgb, var(--trois) 60%, transparent);
    font-size: 0.88rem;
    margin-bottom: 28px;
}

/* Grilles de choix */
.sharp-grid-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.sharp-grid-choices.split-2 {
    grid-template-columns: 1fr 1fr;
}

.sharp-grid-choices.split-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.sharp-choice-card {
    cursor: pointer;
    position: relative;
}

.sharp-choice-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.card-design {
    background: color-mix(in srgb, var(--trois) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--trois) 10%, transparent);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.card-design i {
    font-size: 1.5rem;
    color: color-mix(in srgb, var(--trois) 45%, transparent);
    transition: color 0.25s ease;
}

.card-design span {
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.3;
    color: color-mix(in srgb, var(--trois) 85%, transparent);
}

.sharp-choice-card:hover .card-design {
    border-color: color-mix(in srgb, var(--trois) 25%, transparent);
    background: color-mix(in srgb, var(--trois) 6%, transparent);
}

.sharp-choice-card input:focus-visible+.card-design {
    outline: 2px solid var(--quatre);
    outline-offset: 2px;
}

.sharp-choice-card input:checked+.card-design {
    border-color: var(--quatre);
    background: color-mix(in srgb, var(--quatre) 10%, transparent);
}

.sharp-choice-card input:checked+.card-design i {
    color: var(--quatre);
}

/* Étiquette "bientôt" sur une option pas encore disponible */
.soon-flag {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 0.62rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--quatre);
    opacity: 0.8;
}

/* Nom du site (étape esthétique) */
.site-name-wrap {
    max-width: 320px;
}

.site-name-wrap input {
    width: 100%;
    background: color-mix(in srgb, var(--trois) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--trois) 12%, transparent);
    padding: 13px;
    color: var(--trois);
    font-family: inherit;
    font-size: 0.9rem;
}

.site-name-wrap input:focus {
    outline: none;
    border-color: var(--quatre);
    background: color-mix(in srgb, var(--trois) 6%, transparent);
}

/* Couleur de marque libre (étape esthétique) : un seul carré cliquable + champ hex */
.color-picker-help {
    color: color-mix(in srgb, var(--trois) 60%, transparent);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 520px;
}

.color-picker-row {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.color-native-wrap {
    flex-shrink: 0;
    position: relative;
    width: 68px;
    height: 68px;
    border: 2px solid color-mix(in srgb, var(--trois) 20%, transparent);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.color-native-wrap:hover {
    border-color: var(--quatre);
    transform: translateY(-2px);
}

.color-native-wrap input[type="color"] {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: none;
    /* Agrandit le bouton natif pour qu'il remplisse tout le carré, sans bordure navigateur */
    transform: scale(1.4);
}

.color-native-edit {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--quatre);
    color: var(--un);
    font-size: 0.6rem;
    pointer-events: none;
}

.color-hex-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 220px;
}

.color-hex-wrap label {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--trois) 55%, transparent);
    font-weight: 600;
}

.color-hex-wrap input {
    background: color-mix(in srgb, var(--trois) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--trois) 12%, transparent);
    padding: 13px;
    color: var(--trois);
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.color-hex-wrap input:focus {
    outline: none;
    border-color: var(--quatre);
    background: color-mix(in srgb, var(--trois) 6%, transparent);
}

.color-hex-wrap input:invalid:not(:placeholder-shown) {
    border-color: #e07a5f;
}

.color-picker-hint {
    margin-top: 12px;
    font-size: 0.76rem;
    color: color-mix(in srgb, var(--trois) 45%, transparent);
}

.color-picker-hint i {
    color: var(--quatre);
    margin-right: 5px;
}

.color-hex-error {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #e07a5f;
}

.color-hex-error[hidden] {
    display: none;
}

@media (max-width: 560px) {
    .color-picker-row {
        flex-wrap: wrap;
    }

    .color-hex-wrap {
        max-width: none;
        order: 3;
        width: 100%;
    }
}

/* ==========================================================================
   APERÇU EN DIRECT (mini maquette qui reflète couleur, forme des boutons
   et style de navigation choisis dans l'étape 6)
   ========================================================================== */
.live-preview-section {
    margin-top: 34px;
}

.live-preview-frame {
    border: 1px solid color-mix(in srgb, var(--trois) 12%, transparent);
    background: var(--trois);
    color: var(--un);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.live-preview-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--un) 4%, var(--trois));
    border-bottom: 1px solid color-mix(in srgb, var(--trois) 10%, transparent);
}

.live-preview-topbar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--un) 18%, transparent);
}

.live-preview-topbar-url {
    margin-left: 10px;
    padding: 3px 12px;
    font-size: 0.65rem;
    color: color-mix(in srgb, var(--un) 40%, transparent);
    background: color-mix(in srgb, var(--un) 3%, transparent);
    border: 1px solid color-mix(in srgb, var(--trois) 8%, transparent);
    flex: 1;
    max-width: 160px;
}

.live-preview-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid color-mix(in srgb, var(--trois) 8%, transparent);
    transition: var(--transition);
}

.live-preview-logo {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-preview-navlinks {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.live-preview-navlinks span {
    width: 22px;
    height: 6px;
    background: color-mix(in srgb, var(--un) 12%, transparent);
}

.live-preview-body {
    padding: 46px 28px;
    text-align: center;
    background: linear-gradient(180deg, color-mix(in srgb, var(--un) 2%, var(--trois)), var(--trois));
}

.live-preview-tag {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--live-preview-color, var(--quatre));
    transition: color 0.15s ease;
}

.live-preview-body h5 {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 10px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: break-word;
}

.live-preview-sub {
    font-size: 0.82rem;
    line-height: 1.5;
    opacity: 0.65;
    font-weight: 300;
    max-width: 320px;
    margin: 0 auto 24px;
}

.live-preview-btn {
    font-family: inherit;
    border: none;
    padding: 13px 30px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: var(--live-preview-color, var(--quatre));
    cursor: default;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--live-preview-color, var(--quatre)) 40%, transparent);
    transition: background-color 0.15s ease, border-radius 0.2s ease, box-shadow 0.15s ease;
}

/* Forme des boutons pilotée par le choix "Arrondi / Pointu" (étape 6A) */
.live-preview-frame.shape-rounded .live-preview-btn {
    border-radius: 30px;
}

.live-preview-frame.shape-sharp .live-preview-btn {
    border-radius: 0;
}

/* Style de nav piloté par le choix "Header classique / Menu docker" (étape 6B) */
.live-preview-frame.nav-docker .live-preview-nav {
    justify-content: center;
    gap: 20px;
    margin: 16px auto 0;
    max-width: 70%;
    border: 1px solid color-mix(in srgb, var(--trois) 10%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--trois) 10%, transparent);
}

/* Thème piloté par le choix "Clair / Sombre / Les deux" (étape 6F) : palettes
   fixes, indépendantes du thème courant du site SC Nexus, pour montrer
   fidèlement à quoi ressemblera LE FUTUR SITE du client dans chaque mode. */
.live-preview-frame.theme-light {
    background: #ffffff;
    color: #17181a;
}

.live-preview-frame.theme-light .live-preview-topbar {
    background: #f4f4f5;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.live-preview-frame.theme-light .live-preview-topbar span {
    background: rgba(0, 0, 0, 0.18);
}

.live-preview-frame.theme-light .live-preview-topbar-url {
    color: rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

.live-preview-frame.theme-light .live-preview-nav {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.live-preview-frame.theme-light .live-preview-navlinks span {
    background: rgba(0, 0, 0, 0.15);
}

.live-preview-frame.theme-light .live-preview-body {
    background: linear-gradient(180deg, #fafafa, #ffffff);
}

.live-preview-frame.theme-light .live-preview-sub {
    opacity: 0.55;
}

.live-preview-frame.theme-dark {
    background: #101113;
    color: #f4f4f5;
}

.live-preview-frame.theme-dark .live-preview-topbar {
    background: #191a1d;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.live-preview-frame.theme-dark .live-preview-topbar span {
    background: rgba(255, 255, 255, 0.18);
}

.live-preview-frame.theme-dark .live-preview-topbar-url {
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.live-preview-frame.theme-dark .live-preview-nav {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.live-preview-frame.theme-dark .live-preview-navlinks span {
    background: rgba(255, 255, 255, 0.15);
}

.live-preview-frame.theme-dark .live-preview-body {
    background: linear-gradient(180deg, #161719, #101113);
}

.live-preview-frame.theme-dark .live-preview-sub {
    opacity: 0.65;
}

/* Bouton de bascule clair/sombre, visible uniquement pour l'option "Les deux" */
.live-preview-theme-toggle {
    margin-left: auto;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    color: inherit;
    background: color-mix(in srgb, currentColor 12%, transparent);
    cursor: pointer;
    transition: var(--transition);
}

.live-preview-theme-toggle:hover {
    background: color-mix(in srgb, currentColor 20%, transparent);
}

.live-preview-theme-toggle:focus-visible {
    outline: 2px solid var(--quatre);
    outline-offset: 2px;
}

@media (max-width: 560px) {
    .live-preview-body {
        padding: 32px 20px;
    }

    .live-preview-topbar-url {
        display: none;
    }
}

/* Aperçus de style (étape 5) */
.ui-sub-section+.ui-sub-section {
    margin-top: 30px;
}

.ui-sub-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--trois) 85%, transparent);
    margin-bottom: 12px;
}

.demo-element {
    padding: 10px 20px;
    background: var(--quatre);
    color: var(--un);
    font-size: 0.78rem;
    font-weight: 700;
}

.rounded-demo {
    border-radius: 20px;
}

.sharp-demo {
    border-radius: 0;
}

.demo-nav {
    width: 100%;
    height: 40px;
    background: color-mix(in srgb, var(--trois) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--trois) 8%, transparent);
    position: relative;
}

.classic-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--quatre);
}

.docker-demo {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
}

.docker-pill {
    width: 50%;
    height: 8px;
    background: var(--quatre);
}

/* Aperçus de police (étape 6E) */
.font-demo {
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1;
    color: var(--trois);
}

.font-demo.font-jost {
    font-family: 'Jost', sans-serif;
}

.font-demo.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-demo.font-poppins {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.font-demo.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.font-demo.font-cinzel {
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.font-demo.font-spacegrotesk {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.font-demo.font-demo-custom {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--quatre);
    background: color-mix(in srgb, var(--trois) 6%, transparent);
    border: 1px dashed color-mix(in srgb, var(--trois) 30%, transparent);
}

/* Champ de saisie libre pour une police personnalisée (étape 6E, option "Autre") */
.font-custom-wrap {
    max-width: 360px;
    margin-top: 18px;
}

.font-custom-wrap label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: color-mix(in srgb, var(--trois) 85%, transparent);
}

.font-custom-wrap input {
    width: 100%;
    background: color-mix(in srgb, var(--trois) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--trois) 12%, transparent);
    padding: 13px;
    color: var(--trois);
    font-family: inherit;
    font-size: 0.9rem;
}

.font-custom-wrap input:focus {
    outline: none;
    border-color: var(--quatre);
    background: color-mix(in srgb, var(--trois) 6%, transparent);
}

.font-custom-hint {
    color: color-mix(in srgb, var(--trois) 55%, transparent);
    font-size: 0.78rem;
    line-height: 1.5;
    margin-top: 10px;
}

/* Aperçus de thème clair / sombre / les deux (étape 6F) */
.demo-theme {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.05rem;
    color: var(--quatre);
    background: color-mix(in srgb, var(--trois) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--trois) 14%, transparent);
}

.demo-theme.theme-demo-both {
    width: auto;
    border-radius: 22px;
    padding: 0 16px;
}

/* ==========================================================================
   RÉCAPITULATIF & RECOMMANDATION (étape 7)
   ========================================================================== */
.recap-recommendation-card {
    background: color-mix(in srgb, var(--quatre) 10%, transparent);
    border: 1px solid var(--quatre);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.recap-recommendation-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border: 1px solid var(--quatre);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--quatre);
    font-size: 1.3rem;
}

.recap-recommendation-text .recap-recommendation-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--quatre);
    font-weight: 600;
    margin-bottom: 6px;
}

.recap-recommendation-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.recap-recommendation-text p {
    font-size: 0.85rem;
    opacity: 0.75;
    line-height: 1.5;
}

.recap-recommendation-price {
    flex-shrink: 0;
    text-align: right;
}

.recap-recommendation-price strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--quatre);
}

.recap-recommendation-price span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.recap-disclaimer {
    margin-top: 6px;
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.5;
}

.recap-summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recap-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--trois) 8%, transparent);
}

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

.recap-summary-label {
    flex-shrink: 0;
    width: 160px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--trois) 55%, transparent);
    font-weight: 600;
}

.recap-summary-value {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recap-chip {
    background: color-mix(in srgb, var(--trois) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--trois) 12%, transparent);
    padding: 6px 12px;
    font-size: 0.78rem;
}

.recap-chip.is-empty {
    opacity: 0.5;
    font-style: italic;
}

.recap-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recap-color-dot {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, var(--trois) 20%, transparent);
    display: inline-block;
}

.recap-edit-link {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--quatre);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 640px) {
    .recap-recommendation-card {
        flex-direction: column;
        text-align: center;
    }

    .recap-recommendation-price {
        text-align: center;
    }

    .recap-summary-row {
        flex-direction: column;
        gap: 8px;
    }

    .recap-summary-label {
        width: auto;
    }
}

/* Coordonnées finales (étape 8) */
.sharp-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-field-wrapper.full-width {
    grid-column: span 2;
}

.input-field-wrapper label {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--trois) 70%, transparent);
}

.input-field-wrapper input,
.input-field-wrapper textarea {
    background: color-mix(in srgb, var(--trois) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--trois) 12%, transparent);
    padding: 13px;
    color: var(--trois);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.input-field-wrapper input:focus,
.input-field-wrapper textarea:focus {
    outline: none;
    border-color: var(--quatre);
    background: color-mix(in srgb, var(--trois) 6%, transparent);
}

#configFormError {
    display: none;
    margin-top: 16px;
    font-size: 0.8rem;
    color: #e07a5f;
}

/* Écran de confirmation */
.config-success {
    display: none;
    text-align: center;
    padding: 20px 35px 45px;
}

.config-success .checkmark {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
}

.config-success h3 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.config-success p {
    font-size: 0.92rem;
    opacity: 0.8;
    max-width: 420px;
    margin: 0 auto;
}

.config-success .checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.config-success .checkmark__check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes strokeCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Navigation entre étapes */
.configurator-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, var(--trois) 8%, transparent);
    display: flex;
    justify-content: space-between;
}

.nav-step-btn {
    background: transparent;
    color: color-mix(in srgb, var(--trois) 65%, transparent);
    border: 1px solid color-mix(in srgb, var(--trois) 15%, transparent);
    padding: 13px 26px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.nav-step-btn:hover:not(:disabled) {
    color: var(--trois);
    border-color: color-mix(in srgb, var(--trois) 30%, transparent);
}

.nav-step-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.primary-step-btn {
    background: var(--quatre);
    color: var(--un);
    border: none;
}

.primary-step-btn:hover:not(:disabled) {
    background: color-mix(in srgb, var(--quatre) 85%, var(--trois) 15%);
    color: var(--un);
}

.primary-step-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .sharp-grid-choices.split-2,
    .sharp-grid-choices.split-3 {
        grid-template-columns: 1fr;
    }

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

    .input-field-wrapper.full-width {
        grid-column: span 1;
    }

    #nexusStrategicForm {
        padding: 24px;
    }

    .configurator-header {
        padding: 20px;
    }

    .configurator-step-dots {
        padding: 14px 20px 0;
    }

    .draft-restored-notice {
        padding: 10px 20px;
    }

    .configurator-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .nav-step-btn {
        width: 100%;
    }
}

/* Respect de la préférence système "réduire les animations" */
@media (prefers-reduced-motion: reduce) {

    .config-step.active,
    .sc-configurator-overlay,
    .configurator-window,
    .progress-fill {
        animation: none !important;
        transition: none !important;
    }
}