/* ===== STYLES POUR LA PAGE PRODUIT ===== */

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #1f5880;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 30px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.back-link:hover {
    color: #c2a03a;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(194,160,58,0.15);
}

/* En-tête produit */
.product-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin: 30px 0 20px;
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-header:hover {
    box-shadow: 0 20px 40px rgba(11,43,68,0.1);
}

.product-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.02);
}

.product-title {
    font-size: 36px;
    color: #0b2b44;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 20px;
    color: #1f5880;
    margin-bottom: 25px;
    font-style: italic;
    border-left: 4px solid #c2a03a;
    padding-left: 20px;
}

/* Fiche technique en lignes verticales */
.info-list {
    margin: 20px 0;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
    padding: 15px 0;
}

.info-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed #eef2f6;
}

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

.info-label {
    width: 100px;
    color: #7f8fa3;
    font-weight: 500;
    font-size: 15px;
}

.info-value {
    flex: 1;
    color: #0b2b44;
    font-weight: 600;
    font-size: 15px;
}

/* Section format compact */
.format-section-compact {
    margin: 25px 0 20px;
}

.format-section-compact h3 {
    color: #0b2b44;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.format-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.format-card-compact {
    background: white;
    border-radius: 16px;
    padding: 15px;
    border: 2px solid #e0e9f2;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.format-card-compact:hover {
    transform: translateY(-2px);
    border-color: #c2a03a;
    box-shadow: 0 8px 15px rgba(194,160,58,0.1);
}

.format-card-compact.selected {
    border-color: #c2a03a;
    background: #fef9f0;
}

.format-icon-compact {
    font-size: 28px;
    color: #c2a03a;
    min-width: 36px;
    text-align: center;
}

.format-info-compact {
    flex: 1;
}

.format-title {
    color: #0b2b44;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.format-price-compact {
    font-size: 16px;
    font-weight: 700;
    color: #c2a03a;
}

.format-price-compact small {
    font-size: 10px;
    color: #7f8fa3;
    font-weight: 400;
}

.format-check-compact {
    color: #c2a03a;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s;
}

.format-card-compact.selected .format-check-compact {
    opacity: 1;
}

/* Animation pour la mise en évidence de la section des formats */
.format-section-compact.highlight-section {
    animation: highlightPulse 1.5s ease;
    border-radius: 16px;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(194, 160, 58, 0.7);
        background-color: rgba(194, 160, 58, 0.1);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(194, 160, 58, 0);
        background-color: rgba(194, 160, 58, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(194, 160, 58, 0);
        background-color: transparent;
    }
}

/* Actions produit */
.product-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quantity-selector-compact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-label {
    color: #0b2b44;
    font-weight: 600;
    font-size: 15px;
    min-width: 70px;
}

.quantity-control-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f5fa;
    border-radius: 40px;
    padding: 4px;
}

.quantity-btn-compact {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #0b2b44;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #d9e6f2;
}

.quantity-btn-compact:hover {
    background: #c2a03a;
    color: white;
}

.quantity-value-compact {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #0b2b44;
}

.btn-add-cart-large {
    background: #c2a03a;
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 2px solid #c2a03a;
}

.btn-add-cart-large:hover {
    background: #a8862d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(194,160,58,0.3);
}

/* Description avec styles de liste améliorés */
.description-long {
    background: white;
    border-radius: 24px;
    padding: 30px;
    margin: 0 0 30px;
    line-height: 1.8;
    color: #1f3a53;
    border: 1px solid #e0e9f2;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.description-long p {
    margin-bottom: 20px;
}

.description-long ul {
    margin: 15px 0 25px 20px;
    padding-left: 20px;
    list-style-type: none;
}

.description-long li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    line-height: 1.7;
}

.description-long li:before {
    content: "•";
    color: #c2a03a;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: -1px;
}

.description-long ul ul {
    margin-left: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.description-long ul ul li:before {
    content: "◦";
    color: #7f8fa3;
    font-size: 16px;
}

.description-long strong {
    color: #0b2b44;
    font-weight: 700;
}

/* Cards de contenu */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.content-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e0e9f2;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(11,43,68,0.1);
    border-color: #c2a03a;
}

.content-card h3 {
    color: #0b2b44;
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c2a03a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card h3 i {
    color: #c2a03a;
    font-size: 24px;
}

.benefits-list, .target-list {
    list-style: none;
}

.benefits-list li, .target-list li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    color: #1f3a53;
    border-bottom: 1px dashed #eef2f6;
}

.benefits-list li:last-child, .target-list li:last-child {
    border-bottom: none;
}

.benefits-list li:before, .target-list li:before {
    content: "✓";
    color: #c2a03a;
    font-weight: 700;
    position: absolute;
    left: 0;
    width: 25px;
    height: 25px;
    background: #fef9f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Table des matières */
.table-of-contents {
    background: #f8fafd;
    padding: 30px;
    border-radius: 24px;
    white-space: pre-line;
    line-height: 2;
    color: #1f3a53;
    border: 1px solid #e0e9f2;
    columns: 2;
    column-gap: 40px;
}

.table-of-contents p, .table-of-contents div {
    break-inside: avoid;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.table-of-contents p:before, .table-of-contents div:before {
    content: "📖";
    position: absolute;
    left: 0;
    opacity: 0.5;
}

/* Barre d'achat flottante */
.floating-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 1000;
    border-top: 3px solid #c2a03a;
    transform: translateY(0);
}

.floating-buy-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.floating-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.floating-info img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.floating-title h4 {
    color: #0b2b44;
    font-size: 16px;
    margin-bottom: 3px;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-price {
    color: #c2a03a;
    font-weight: 700;
    font-size: 18px;
}

.floating-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.floating-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f5fa;
    border-radius: 40px;
    padding: 4px;
}

.floating-quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #0b2b44;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #d9e6f2;
}

.floating-quantity-btn:hover {
    background: #c2a03a;
    color: white;
}

.floating-quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #0b2b44;
}

.floating-buy-btn {
    background: #c2a03a;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.floating-buy-btn:hover {
    background: #a8862d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(194,160,58,0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .product-header {
        grid-template-columns: 250px 1fr;
        gap: 30px;
        padding: 30px;
    }
    
    .product-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .product-header {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px;
    }
    
    .product-image {
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* Fiche technique responsive */
    .info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-label {
        width: 100%;
    }
    
    /* Format cards responsive */
    .format-grid-compact {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Actions produit responsive */
    .quantity-selector-compact {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .quantity-control-compact {
        width: 100%;
        justify-content: center;
    }
    
    .quantity-label {
        min-width: auto;
    }
    
    .btn-add-cart-large {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* Description responsive */
    .description-long ul {
        margin-left: 10px;
        padding-left: 10px;
    }
    
    .description-long li {
        padding-left: 20px;
    }
    
    /* Barre flottante responsive */
    .floating-buy-bar .container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .floating-info {
        display: none;
    }
    
    .floating-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .floating-quantity {
        flex: 1;
    }
    
    .floating-buy-btn {
        flex: 2;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Table des matières responsive */
    .table-of-contents {
        columns: 1;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .product-header {
        padding: 20px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-subtitle {
        font-size: 16px;
    }
    
    /* Actions produit très petit écran */
    .floating-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .floating-quantity {
        width: 100%;
        justify-content: center;
    }
    
    .floating-buy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .quantity-control-compact {
        width: 100%;
    }
    
    .quantity-btn-compact {
        width: 44px;
        height: 44px;
    }
    
    /* Cards de contenu */
    .content-card {
        padding: 20px;
    }
    
    .content-card h3 {
        font-size: 18px;
    }
    
    .benefits-list li, .target-list li {
        font-size: 14px;
        padding-left: 30px;
    }
    
    /* Description */
    .description-long {
        padding: 20px;
    }
    
    .description-long ul {
        margin-left: 5px;
        padding-left: 5px;
    }
}

/* Petites optimisations pour tablettes */
@media (min-width: 769px) and (max-width: 992px) {
    .format-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-item {
        flex-direction: row;
    }
    
    .info-label {
        width: 90px;
    }
}

/* Mode paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .product-header {
        grid-template-columns: 150px 1fr;
        gap: 20px;
    }
    
    .product-image {
        max-width: 150px;
    }
    
    .format-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floating-info {
        display: flex;
    }
}