/* Infos Page Styling */
/* Info Tabs */
.info-tabs,
.cart-tabs {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    padding: 0 4px;
}

.info-tab,
.cart-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-tab svg,
.cart-tab svg {
    stroke: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.info-tab.active,
.cart-tab.active {
    /* iOS Liquid Glass Style */
    background: rgba(0, 122, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 16px rgba(0, 122, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.info-tab.active::before,
.cart-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.info-tab.active:hover::before,
.cart-tab.active:hover::before {
    left: 100%;
}

.info-tab.active svg,
.cart-tab.active svg {
    stroke: #fff;
}

.info-tab:active,
.cart-tab:active {
    transform: scale(0.97);
}

/* Info Content */
.info-content,
.cart-tab-content {
    display: none;
}

.info-content.active,
.cart-tab-content.active {
    display: block;
}

.info-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.info-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.info-section-header svg {
    stroke: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.info-section-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.info-section p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    white-space: pre-line;
}

.info-section p b,
.info-section p strong {
    color: #fff;
    font-weight: 600;
}

.info-section p i,
.info-section p em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.info-section p a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: opacity 0.2s;
}

.info-section p a:hover {
    opacity: 0.8;
}

/* Feedback Page */
.feedback-cta-section {
    margin-top: 20px;
    margin-bottom: 32px;
}

.feedback-cta-btn {
    width: 100%;

    /* Liquid Glass Background - Bleu iOS avec effet vitreux */
    background: rgba(0, 122, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);

    /* Bordure subtile pour effet de profondeur */
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 16px rgba(0, 122, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    /* Texte blanc contrastÃ© */
    color: #ffffff;

    /* Dimensions */
    padding: 16px;
    border-radius: 14px;

    /* Typography iOS */
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;

    /* Interactions */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;

    /* Effet de reflet (iOS signature) */
    position: relative;
    overflow: hidden;
}

.feedback-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.feedback-cta-btn:hover::before {
    left: 100%;
}

.feedback-cta-btn:active {
    transform: scale(0.96);
    background: rgba(0, 122, 255, 0.95);
    box-shadow:
        0 4px 8px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.section-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    color: #fff;
    font-family: inherit;
    resize: vertical;
    min-height: 140px;
    transition: all 0.2s ease;
    line-height: 1.6;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: rgba(0, 136, 204, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.feedback-form textarea::placeholder {
    color: #666;
}

.char-count {
    font-size: 11px;
    color: #666;
    text-align: right;
    margin-top: -12px;
    font-weight: 500;
}

.feedback-form input[type="file"] {
    display: none;
}

.feedback-form label[for="feedbackImage"] {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.feedback-form label[for="feedbackImage"]:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
}

.image-preview {
    position: relative;
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-image-btn:active {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(0.95);
}

.submit-feedback-btn {
    width: 100%;

    /* Liquid Glass Background - Bleu iOS avec effet vitreux */
    background: rgba(0, 122, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);

    /* Bordure subtile pour effet de profondeur */
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 16px rgba(0, 122, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    /* Texte blanc contrastÃ© */
    color: #ffffff;

    /* Dimensions */
    padding: 16px;
    border-radius: 14px;

    /* Typography iOS */
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;

    /* Interactions */
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Effet de reflet (iOS signature) */
    position: relative;
    overflow: hidden;
}

.submit-feedback-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.submit-feedback-btn:hover::before {
    left: 100%;
}

.submit-feedback-btn:active {
    transform: scale(0.96);
    background: rgba(0, 122, 255, 0.95);
    box-shadow:
        0 4px 8px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.submit-feedback-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Approved Feedbacks Section */
.approved-feedbacks-section {
    margin-top: 8px;
}

.feedbacks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.feedback-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.feedback-card:last-child {
    margin-bottom: 0;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 12px 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feedback-author {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.feedback-date {
    font-size: 10px;
    color: #888;
    font-weight: 400;
    text-align: right;
    white-space: nowrap;
}

.feedback-content {
    padding: 12px;
}

.feedback-text {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    white-space: pre-wrap;
    font-weight: 400;
}

.feedback-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .feedback-form textarea {
        min-height: 120px;
        font-size: 14px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .image-preview {
        border-radius: 8px;
    }
}
