/* =========================================
   BLOC CONFIGURATEUR HANDICAP
   ========================================= */

.bloc-configurateur-handicap {
    background-color: #fff;
    overflow: hidden;
}

.blk-config-inner {
    display: flex;
    align-items: stretch;
    min-height: 400px;
}

/* ---- COLONNE GAUCHE ---- */
.blk-config-left {
    flex: 0 0 55%;
    max-width: 55%;
    padding: 40px 30px 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blk-config-titre {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--couleur-principale);
    line-height: 1.15;
    margin: 0;
}

.blk-config-sous-titre {
    font-size: 14px;
    color: #555;
    margin: 0;
    max-width: 280px;
}

/* ---- IMAGE + POINTS ---- */
.blk-config-image-wrapper {
    position: relative;
    display: inline-block;
    align-self: flex-start;
    max-width: 340px;
}

.blk-config-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ---- POINTS CLIQUABLES ---- */
.blk-config-point {
    position: absolute;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
}

.blk-config-point::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--couleur-principale, #e30613);
    border-radius: 50%;
    border: 3px solid #fff;
    outline: 2px solid var(--couleur-principale, #e30613);
    animation: blk-config-pulse 2s ease-in-out infinite;
}

.blk-config-point:nth-child(2)::after { animation-delay: 0ms; }
.blk-config-point:nth-child(3)::after { animation-delay: 300ms; }
.blk-config-point:nth-child(4)::after { animation-delay: 600ms; }
.blk-config-point:nth-child(5)::after { animation-delay: 900ms; }
.blk-config-point:nth-child(6)::after { animation-delay: 1200ms; }

.blk-config-point.active::after,
.blk-config-point:hover::after {
    transform: scale(1.3);
    animation: none;
    outline-offset: 3px;
}

@keyframes blk-config-pulse {
    0%   { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.6); }
    70%  { transform: scale(1);   box-shadow: 0 0 0 10px rgba(227, 6, 19, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0  rgba(227, 6, 19, 0); }
}

/* ---- MESSAGE BAS GAUCHE ---- */
.blk-config-message {
    background-color: var(--couleur-secondaire, #1a2c5b);
    color: #fff;
    padding: 18px 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 300px;
    margin-top: auto;
}

.blk-config-message-txt p {
    margin: 0 0 12px;
    font-weight: 700;
}

.blk-config-btn-contact {
    display: inline-block;
    background-color: var(--couleur-principale, #e30613);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 3px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.blk-config-btn-contact:hover {
    opacity: 0.85;
    color: #fff;
}

/* =========================================
   COLONNE DROITE
   ========================================= */
.blk-config-right {
    flex: 1;
    background-color: #f7f8fa;
    padding: 40px 40px 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-left: 1px solid #e8e8e8;
}

/* ---- PANNEAUX DE CONTENU ---- */
.blk-config-panneau {
    display: none;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.blk-config-panneau.active {
    display: flex;
}

.blk-config-panneau-titre {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--couleur-secondaire, #1a2c5b);
    margin: 0;
    line-height: 1.2;
}

.blk-config-panneau-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.blk-config-panneau-desc p {
    margin: 0;
}

.blk-config-btn-devis {
    display: inline-block;
    border: 2px solid var(--couleur-principale, #e30613);
    color: var(--couleur-principale, #e30613);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 9px 22px;
    border-radius: 3px;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.blk-config-btn-devis:hover {
    background-color: var(--couleur-principale, #e30613);
    color: #fff;
}

/* ---- FORMULAIRE RAPPEL ---- */
.blk-config-rappel {
    background-color: var(--couleur-principale, #e30613);
    color: #fff;
    padding: 18px 20px;
    border-radius: 4px;
    margin-top: auto;
}

.blk-config-rappel-label {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
}

.blk-config-rappel-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.blk-config-rappel-input {
    flex: 1;
    border: none;
    border-radius: 3px;
    padding: 9px 14px;
    font-size: 13px;
    color: #333;
    outline: none;
}

.blk-config-rappel-input::placeholder {
    color: #aaa;
    font-style: italic;
}

.blk-config-rappel-submit {
    background-color: var(--couleur-secondaire, #1a2c5b);
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.blk-config-rappel-submit:hover {
    opacity: 0.85;
}

.blk-config-rappel-msg {
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}

.blk-config-rappel-msg.success { color: #d4edda; font-weight: 600; }
.blk-config-rappel-msg.error   { color: #ffe0e0; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .blk-config-left  { padding: 30px 20px 24px 24px; }
    .blk-config-right { padding: 30px 24px 24px 24px; }
}

@media (max-width: 768px) {
    .blk-config-inner {
        flex-direction: column;
    }

    .blk-config-left {
        flex: none;
        max-width: 100%;
        padding: 24px 20px 20px;
        align-items: center;
        text-align: center;
    }

    .blk-config-sous-titre { max-width: 100%; }

    .blk-config-image-wrapper {
        max-width: 260px;
    }

    .blk-config-message {
        max-width: 100%;
        text-align: left;
    }

    .blk-config-right {
        border-left: none;
        border-top: 1px solid #e8e8e8;
        padding: 24px 20px 20px;
    }

    .blk-config-rappel-row {
        flex-direction: column;
    }

    .blk-config-rappel-input,
    .blk-config-rappel-submit {
        width: 100%;
    }

    .blk-config-btn-devis {
        align-self: stretch;
        text-align: center;
    }
}
