/**
 * Cekonay Dimensions - Styles
 * Version 3.0
 */

/* ========================================
   Conteneur principal
   ======================================== */

.cekonay-dimensions-wrapper {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cekonay-dimensions-wrapper h3 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
    border-bottom: 2px solid #e6dbed;
    padding-bottom: 10px;
}

/* ========================================
   Sections de formulaire
   ======================================== */

.dimension-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group label .required {
    color: #e74c3c;
    font-weight: bold;
}

/* ========================================
   Champs de formulaire
   ======================================== */
.calculateurpanier input {
    font-size: 18px !important;
}

.cekonay-input,
.cekonay-select {
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.cekonay-input:focus,
.cekonay-select:focus {
    outline: none;
    border-color: #8fa2dd;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.cekonay-input:hover,
.cekonay-select:hover {
    border-color: #adb5bd;
}

.cekonay-input.valid {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

.cekonay-input.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.cekonay-select.error {
    border-color: #d97706;
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.cekonay-select.guidance {
    border-color: #702783;
    background: rgb(239, 234, 242);
    box-shadow: 0 0 0 3px rgba(11, 91, 245, 0.16);
}

.cekonay-type-required-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.84em;
    color: #92400e;
    font-weight: 500;
}

/* ========================================
   Messages d'information
   ======================================== */

.dimension-info {
    font-size: 0.85em;
    min-height: 20px;
    transition: all 0.3s ease;
}

.dimension-info.info {
    color: #6c757d;
}

.dimension-info.success {
    color: #27ae60;
    font-weight: 600;
}

.dimension-info.error {
    color: #e74c3c;
    font-weight: 600;
}

.conversion-cm {
    font-size: 0.85em;
    color: #6c757d;
    font-style: italic;
    min-height: 18px;
    display: block;
}

.conversion-cm.is-limit-error {
    color: #c0392b;
    font-style: normal;
    font-weight: 600;
}

/* ========================================
   Section poignées
   ======================================== */

.poignees-section {
    margin: 10px 0;
}

.charniere-section {
    margin: 10px 0;
}

.charniere-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.charniere-option {
    display: block;
    cursor: pointer;
}

.charniere-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.charniere-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    min-height: 100%;
    padding: 14px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    transition: all 0.25s ease;
    text-align: center;
}

.charniere-card:hover {
    border-color: #8fa2dd;
    box-shadow: 0 8px 20px rgba(111, 41, 133, 0.08);
    transform: translateY(-1px);
}

.charniere-option input:checked + .charniere-card,
.charniere-option.selected .charniere-card {
    border-color: #6f2985;
    background: linear-gradient(180deg, #fff 0%, #f4ebf8 100%);
    box-shadow: 0 0 0 3px rgba(111, 41, 133, 0.12);
}

.charniere-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 140px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
}

.charniere-card__media img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.charniere-card__placeholder {
    font-size: 0.95em;
    font-weight: 600;
    color: #6c757d;
}

.charniere-card__title {
    font-size: 0.95em;
    font-weight: 700;
    color: #2c3e50;
}

.charniere-help {
    margin: 10px 0 0;
    color: #666;
    font-size: 0.9em;
}

.charniere-assistance-card {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #d8e3ea;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfcfd 0%, #f3f7fa 100%);
}

.charniere-assistance-card__text {
    margin: 0 0 6px;
    color: #5f6b76;
    font-size: 0.82em;
    line-height: 1.45;
}

.charniere-assistance-card__link {
    display: inline-flex;
    align-items: center;
    font-size: 0.84em;
    font-weight: 600;
    color: #1f5f8b;
    text-decoration: none;
}

.charniere-assistance-card__link:hover,
.charniere-assistance-card__link:focus {
    color: #174866;
    text-decoration: underline;
}

.cekonay-poignee-select.is-poignee-prompt {
    border-color: #87c79a;
    background: linear-gradient(180deg, #f4fff6 0%, #e7f6ea 100%);
    color: #1f5130;
    box-shadow: 0 0 0 3px rgba(80, 167, 98, 0.12);
    font-weight: 600;
}

.cekonay-poignee-select.is-poignee-prompt:hover {
    border-color: #68b57f;
    background: linear-gradient(180deg, #effcf1 0%, #e2f3e6 100%);
}

.cekonay-poignee-select.is-poignee-prompt:focus,
.cekonay-poignee-select.is-poignee-prompt:focus-visible {
    border-color: #4f9d66;
    box-shadow: 0 0 0 3px rgba(80, 167, 98, 0.2);
}

.poignee-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    color: #666;
    font-size: 12px;
}

.poignee-examples__label {
    font-weight: 600;
    color: #444;
}

.poignee-examples__item {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid #d8dde3;
    border-radius: 999px;
    background: #f6f7f8;
    color: #2c3338;
    white-space: nowrap;
}

.poignees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.poignee-option {
    cursor: pointer;
    position: relative;
}

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

.poignee-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.poignee-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.poignee-option input:checked+.poignee-card {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.poignee-option.selected .poignee-card {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

.poignee-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 4px;
}

.poignee-nom {
    font-size: 0.85em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    display: block;
}

.poignee-prix {
    font-size: 0.9em;
    color: #27ae60;
    font-weight: 600;
}

/* Preview poignée */
.poignee-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 400px;
}

.poignee-preview img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ========================================
   Affichage du prix
   ======================================== */

.price-display {
    background: linear-gradient(135deg, #7a1270 0%, #6f2985 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.25s ease;
}

.price-empty-hint {
    display: none;
    text-align: center;
    font-size: 0.96em;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0.96;
}

.price-display.is-empty {
    padding: 16px 20px;
    cursor: pointer;
    border: 1px dashed rgba(255, 255, 255, 0.55);
}

.price-display.is-empty:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
}

.price-display.is-empty:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.price-display.is-empty .price-empty-hint {
    display: block;
}

.price-display.is-empty .price-detail,
.price-display.is-empty .price-total {
    display: none;
}

.price-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.price-detail:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
}

.price-detail span:first-child {
    opacity: 0.9;
}

.price-detail span:last-child {
    font-weight: 600;
}

.price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 0px solid rgba(255, 255, 255, 0.3);
    margin-top: 10px;
}

.price-total strong {
    font-size: 1em;
}

.calculated-price {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.price-display.is-empty .calculated-price {
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0;
    opacity: 0.95;
}

.cekonay-price-display .cekonay-price-hint {
    display: none;
    margin-top: 4px;
    font-size: 0.82em;
    font-weight: 600;
    line-height: 1.25;
    color: #6f2985;
}

.cekonay-price-display.is-pending .woocommerce-Price-amount {
    display: none;
}

.cekonay-price-display.is-pending .cekonay-price-hint {
    display: block;
}

.calculated-price.updated {
    animation: priceUpdate 0.3s ease;
}

@keyframes priceUpdate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ========================================
   Bouton Ajouter au panier
   ======================================== */

.single_add_to_cart_button {
    transition: all 0.3s ease;
}

.single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #adb5bd !important;
}

.single_add_to_cart_button:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Messages de notification
   ======================================== */

.cekonay-notice {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

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

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

.cekonay-notice.error {
    background: #fff5f5;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

.cekonay-notice.info {
    background: #e3f2fd;
    border-left: 4px solid #380733;
    color: #6f2985;
}


.woocommerce-message.cekonay-notice.success {
  background: #f1f8f4 !important;
  border-left: 4px solid #27ae60 !important;
  color: #1e7e34 !important;
}

/* ========================================
   Responsive Design
   ======================================== */

@media screen and (max-width: 768px) {
    .cekonay-dimensions-wrapper {
        padding: 20px 15px;
        margin: 15px 0 20px;
        scroll-margin-top: 90px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .poignee-card {
        padding: 8px;
    }

    .poignee-card img {
        width: 60px;
        height: 60px;
    }

    .calculated-price {
        font-size: 1.4em;
    }

    .price-display {
        padding: 15px;
    }

    .poignees-section.is-mobile-spotlight {
        animation: cekonay-mobile-field-bounce 0.85s cubic-bezier(.22, 1, .36, 1);
        transform-origin: center top;
    }

}

@media screen and (max-width: 480px) {

    .cekonay-input,
    .cekonay-select {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    .cekonay-dimensions-wrapper {
        padding: 15px 10px;
        scroll-margin-top: 90px;
    }

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

    .cekonay-dimensions-wrapper h3 {
        font-size: 1.1em;
    }

}

@keyframes cekonay-mobile-field-bounce {
    0% {
        transform: scale(0.98) translateY(10px);
        opacity: 0.9;
    }
    35% {
        transform: scale(1.03) translateY(-6px);
        opacity: 1;
    }
    60% {
        transform: scale(0.995) translateY(2px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* ========================================
   Compatibilité Divi
   ======================================== */

.et_pb_module .cekonay-dimensions-wrapper {
    max-width: 100%;
}

.et_pb_wc_add_to_cart .cekonay-dimensions-wrapper {
    margin-top: 0;
}

/* ========================================
   Accessibilité
   ======================================== */

.cekonay-input:focus-visible,
.cekonay-select:focus-visible {
    outline: 1px solid #e8c3ab;
    outline-offset: 2px;
}

.poignee-option:focus-within .poignee-card {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* ========================================
   Print styles
   ======================================== */

@media print {
    .cekonay-dimensions-wrapper {
        border: 1px solid #000;
        box-shadow: none;
    }

    .price-display {
        background: #f0f0f0;
        color: #000;
    }

    .single_add_to_cart_button,
    .poignee-preview {
        display: none;
    }

    .poignees-grid {
        break-inside: avoid;
    }
}

/* ========================================
   Performance
   ======================================== */

.calculated-price,
.single_add_to_cart_button,
.poignee-card {
    will-change: transform;
}

.cekonay-notice {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Layout hauteur/largeur côte à côte */
.dimensions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.grille-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 0 0 15px;
    padding: 10px 12px;
    background: #f6f7f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.grille-meta .meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.grille-meta .meta-label {
    font-size: 0.85em;
    color: #6c757d;
}

.grille-meta .meta-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Inputs numériques optimisés */
.cekonay-number {
    width: 100%;
    padding: 12px 40px 12px 15px;
    /* Espace à droite pour les flèches */
    font-size: 1.1em;
    font-weight: 500;
    text-align: left;
}

/* Flèches spinner à droite */
.cekonay-number::-webkit-inner-spin-button,
.cekonay-number::-webkit-outer-spin-button {
    opacity: 1;
    position: absolute;
    right: 5px;
    height: 100%;
}

/* Validation visuelle */
.cekonay-input.error {
    border-color: #e74c3c !important;
    background: #fff5f5 !important;
}

.cekonay-input.valid {
    border-color: #27ae60 !important;
    background: #f1f8f4 !important;
}

/* Conversion cm */
.conversion-cm {
    display: block;
    font-size: 0.9em;
    color: #766998;
    font-style: italic;
    min-height: 20px;
}

.conversion-cm.is-limit-error {
    color: #c0392b;
    font-style: normal;
    font-weight: 600;
}

/* Preview poignée */
.poignee-preview-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

#poignee-image-container {
    flex-shrink: 0;
}

.cekonay-poignee-thumb-button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: zoom-in;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cekonay-poignee-thumb-button:focus-visible {
    outline: 2px solid #7a1270;
    outline-offset: 4px;
    border-radius: 10px;
}

.cekonay-poignee-thumb-frame,
.cekonay-poignee-thumb-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(118, 105, 152, 0.2);
    box-shadow: 0 8px 18px rgba(19, 31, 53, 0.08);
}

.cekonay-poignee-thumb-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cekonay-poignee-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center center;
}

.cekonay-poignee-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c90a0;
    font-size: 32px;
    font-weight: 700;
}

.cekonay-poignee-thumb-hint {
    font-size: 0.76em;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #766998;
}

.cekonay-poignee-hover-preview {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.cekonay-poignee-hover-preview.is-visible {
    opacity: 1;
    visibility: visible;
}

.cekonay-poignee-hover-preview__frame,
.cekonay-poignee-modal__media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(118, 105, 152, 0.18);
    box-shadow: 0 24px 60px rgba(19, 31, 53, 0.16);
}

.cekonay-poignee-hover-preview__frame {
    width: min(36vw, 320px);
    height: min(36vw, 320px);
    border-radius: 16px;
    padding: 18px;
}

.cekonay-poignee-hover-preview__frame img,
.cekonay-poignee-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center center;
}

.cekonay-poignee-hover-preview__frame.is-error::after,
.cekonay-poignee-modal__media.is-error::after {
    content: "Image indisponible";
    color: #8c90a0;
    font-weight: 600;
}

.cekonay-poignee-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(14, 19, 31, 0.72);
}

.cekonay-poignee-modal.is-open {
    display: flex;
}

.cekonay-poignee-modal__dialog {
    position: relative;
    width: min(92vw, 680px);
    max-height: 90vh;
    padding: 22px 22px 18px;
    border-radius: 18px;
    background: #f8f9fa;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.cekonay-poignee-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(19, 31, 53, 0.08);
    color: #223;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cekonay-poignee-modal__media {
    width: 100%;
    height: min(70vh, 520px);
    border-radius: 16px;
    padding: 28px;
}

.cekonay-poignee-modal__title {
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.95em;
    font-weight: 600;
    color: #2c3e50;
}

body.cekonay-poignee-modal-open {
    overflow: hidden;
}

.poignee-info {
    flex: 1;
}

#poignee-preview {
    animation: slideDown 0.3s ease;
}

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

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

/* Radio orientation */
input[name="cekonay_poignee_orientation"] {
    margin-right: 8px;
}

/* Responsive Mobile */
@media screen and (max-width: 768px) {
    .dimensions-row {
        grid-template-columns: 1fr 1fr;
        /* Garde côte à côte */
        gap: 10px;
    }

    .cekonay-number {
        font-size: 1em;
        padding: 10px 35px 10px 12px;
    }

    .poignee-preview-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cekonay-poignee-thumb-hint {
        font-size: 0.88em;
    }

    .cekonay-poignee-modal {
        padding: 14px;
    }

    .cekonay-poignee-modal__dialog {
        width: 100%;
        padding: 18px 18px 14px;
        border-radius: 14px;
    }

    .cekonay-poignee-modal__media {
        height: min(60vh, 420px);
        padding: 18px;
    }
}

@media screen and (max-width: 480px) {
    .dimensions-row {
        gap: 8px;
    }

    .cekonay-poignee-thumb-frame,
    .cekonay-poignee-thumb-placeholder {
        width: 72px;
        height: 72px;
    }

    .cekonay-poignee-modal__close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .cekonay-poignee-thumb-hint {
        font-size: 0.92em;
    }

    .cekonay-poignee-modal__media {
        height: min(56vh, 340px);
    }
}

/* Alignement vertical radio buttons */
input[name="cekonay_poignee_orientation"] {
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    /* Ajustement fin si nécessaire */
}

/* Alternative avec flexbox (plus robuste) */
#orientation-choice label {
    display: flex !important;
    align-items: center;
    margin-bottom: 5px;
    cursor: pointer;
    gap: 8px;
}

#orientation-choice label input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
}

.woocommerce .quantity input.qty {
    margin-top: 0px !important;
}

.cekonay-handle-alert {
    margin-top: 10px;
    padding: 12px;
    background: #edf4fb;
    border-left: 4px solid #c7bebd;
    border-radius: 4px;
    font-size: 0.9em;
    color: #a7182b;
    animation: slideIn 0.3s ease;
    line-height: 1.6;

}
/* ═══════════════════════════════════════════════════════════════════════════
   AJOUT CSS POUR LIGNE PRIX POIGNÉE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Ligne prix poignée avec animation d'apparition */
.price-poignee-line {
    animation: slideInPoignee 0.3s ease;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.price-charniere-line {
    animation: slideInPoignee 0.3s ease;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

@keyframes slideInPoignee {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 50px;
        padding-top: 8px;
        padding-bottom: 8px;
        transform: translateY(0);
    }
}

/* Animation de disparition */
.price-poignee-line[style*="display: none"] {
    animation: slideOutPoignee 0.2s ease;
}

@keyframes slideOutPoignee {
    from {
        opacity: 1;
        max-height: 50px;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        transform: translateY(-10px);
    }
}

/* Mise en évidence de la valeur poignée */
.poignee-price-value {
    font-weight: 600;
    color: #121312;
}

.charniere-price-value {
    font-weight: 600;
    color: #d4f7ff;
}

/* Responsive - ajustement mobile */
@media screen and (max-width: 768px) {
    .price-poignee-line {
        font-size: 0.9em;
    }

    .price-charniere-line {
        font-size: 0.9em;
    }

    .poignee-examples {
        display: none;
    }

    .charniere-options-grid {
        gap: 10px;
    }

    .charniere-card {
        padding: 10px;
    }

    .charniere-card__media {
        min-height: 110px;
    }
}
