/* Page produit */
.product-show-page {
    background-color: #fff;
    min-height: 100vh;
    padding: 2rem 0;
}

.product-show-container {
    max-width: 100%;
    margin: 0;
    padding: 0 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #003366;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* En-tête produit */
.product-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    max-width: none;
}

/* Galerie d'images */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.product-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s;
}

.product-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
}

.product-no-image svg {
    width: 80px;
    height: 80px;
}

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 90px;
    height: 90px;
    border: 3px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.thumbnail:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,102,204,0.3);
}

.thumbnail.active {
    border-color: #0066cc;
    border-width: 3px;
    box-shadow: 0 2px 8px rgba(0,102,204,0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

/* Informations produit */
.product-header-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-code-badge {
    background: #003366;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    align-self: flex-start;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #003366;
    margin: 0;
    line-height: 1.3;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-tag {
    background: #e8f0fe;
    color: #003366;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-description-short {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Boutons d'action */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-devis,
.btn-fiche {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-devis {
    background: #0066cc;
    color: white;
}

.btn-devis:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.btn-fiche {
    background: white;
    color: #003366;
    border: 2px solid #003366;
}

.btn-fiche:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,51,102,0.2);
}

.btn-fiche svg {
    width: 16px;
    height: 16px;
}

/* Section détails et formulaire */
.product-details-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: none;
}

/* Caractéristiques techniques */
.product-specifications {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.product-specifications h2 {
    font-size: 1.3rem;
    color: #003366;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.spec-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-item {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #333;
    min-width: 150px;
}

.spec-value {
    color: #666;
}

/* Formulaire de devis */
.quote-form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.quote-form-container h2 {
    font-size: 1.3rem;
    color: #003366;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-control {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #003366;
}

.form-control::placeholder {
    color: #999;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #003366;
    text-decoration: underline;
}

.btn-submit {
    background: #0066cc;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

/* Responsive */
@media (max-width: 968px) {
    .product-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-details-section {
        grid-template-columns: 1fr;
    }

    .product-faq-section {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .product-show-page {
        padding: 1rem 0;
    }

    .product-title {
        font-size: 1.4rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-devis,
    .btn-fiche {
        width: 100%;
    }

    .product-specifications,
    .quote-form-container {
        padding: 1.5rem;
    }
}

/* Section FAQ produit */
.product-faq-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 3rem;
}

.faq-intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.faq-intro h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #003366;
    line-height: 1.2;
}

.faq-intro p {
    font-size: 1.1rem;
    color: #003366;
    font-weight: 500;
}

.btn-contact {
    background: #0066cc;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    align-self: center;
}

.btn-contact:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.faq-questions {
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-questions h3 {
    background: #0066cc;
    color: white;
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-item {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #0066cc;
    gap: 2rem;
}

.faq-question:hover {
    color: #0052a3;
}

.faq-question span:first-child {
    flex: 1;
    line-height: 1.5;
}

.faq-toggle {
    font-size: 2rem;
    font-weight: 400;
    color: #0066cc;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: rotate(0deg);
}

.faq-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.faq-answer {
    display: none;
    padding: 1rem 0 0.5rem 0;
    color: #666;
    line-height: 1.6;
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: #0066cc;
    text-decoration: underline;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Override global FAQ transform from app.css for product page toggles */
.product-faq-section .faq-item .faq-toggle,
.product-faq-section .faq-item.active .faq-toggle {
    transition: none !important;
    transform: none !important;
    transform-origin: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Isolated toggle for product page: avoid global .faq-toggle rotation */
.product-faq-section .faq-item .product-faq-toggle,
.product-faq-section .faq-item.active .product-faq-toggle {
    transition: none !important;
    -webkit-transition: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    transform-origin: center center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: Roboto, Arial, Helvetica, sans-serif !important;
    /* Taille rétablie à la valeur globale précédente */
    font-size: 1.5rem !important;
    line-height: 1 !important;
    color: #0066CC !important;
    width: 56px !important;
    height: 56px !important;
    box-sizing: border-box !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Animation spécifique: rotation pendant transition puis retour à 0deg */
.product-faq-section .faq-item .product-faq-toggle {
    transition: transform 0.3s ease;
    will-change: transform;
    transform: rotate(0deg);
}
.product-faq-section .faq-item.active .product-faq-toggle {
    transform: rotate(0deg) !important;
}

/* Animation intermédiaire (appliquée par JS pendant le changement) */
.product-faq-section .product-faq-toggle.transitioning {
    transform: rotate(45deg);
}

