/**
 * Style de la page détail produit — Redesign Premium
 * @author Shawn Dutil
 * Note : ce fichier étend stylesProduit.css
 */

/* ===========================
   LAYOUT
=========================== */
.container_produit_detail {
    display: flex;
    justify-content: center;
    padding: 52px 32px;
    background: var(--creme);
    min-height: calc(100vh - var(--navbar-h));
    width: 100%;
    box-sizing: border-box;
}

/* ===========================
   CARTE DÉTAIL
=========================== */
.card_produit_detail {
    width: 100%;
    max-width: 860px;
    background: #fff;
    border-radius: 2px;
    border-top: 2px solid var(--or);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ===========================
   EN-TÊTE (retour + panier)
=========================== */
.header_produit_detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Bouton retour */
.retourListeProduit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--vert-profond);
    background: transparent;
    border: 1px solid rgba(28, 46, 28, 0.3);
    border-radius: 2px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.retourListeProduit i { transition: transform 0.2s ease; }

.retourListeProduit:hover {
    color: #fff;
    background: var(--vert-profond);
    border-color: var(--vert-profond);
    
}

.retourListeProduit:hover i { transform: translateX(-3px); }

/* ===========================
   CARROUSEL
=========================== */
.image_produit_detail { width: 100%; }

.image-carousel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--creme);
    border-radius: 2px;
    overflow: hidden;
    min-height: 300px;
}

.image_detail_carousel {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
    border-radius: 2px;
}

.bouton_fleche {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(28, 46, 28, 0.72);
    color: var(--or);
    font-size: 1.2rem;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 2px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 1;
    line-height: 1;
}

.bouton_fleche:hover { background: var(--vert-profond); }
.bouton_fleche.avant { left: 12px; }
.bouton_fleche.apres { right: 12px; }

.aucune-image {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: #999;
    text-align: center;
    padding: 40px 0;
}

/* ===========================
   INFOS PRODUIT
=========================== */
.info_produit_detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nom_produit {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 600;
    font-style: italic;
    color: var(--vert-profond);
    margin: 0;
    padding-bottom: 14px;
    position: relative;
    display: inline-block;
}

.nom_produit::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, var(--or), transparent);
}

/* Dimensions */
.dimensions_produit {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: var(--creme);
    border-left: 3px solid rgba(201, 168, 76, 0.4);
    border-radius: 0 2px 2px 0;
}

.dimensions_produit p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
    margin: 0;
}

/* Description */
.description_produit {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.08rem;
    color: #444;
    line-height: 1.8;
    padding: 18px 22px;
    background: var(--creme);
    border-left: 3px solid rgba(201, 168, 76, 0.4);
    border-radius: 0 2px 2px 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.description_produit li { margin: 0; }

.aucune-description {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: #999;
}

/* ===========================
   ACCORDÉON ÉTAPES
=========================== */
.etapes-installation-container {
    background: var(--creme);
    border-radius: 2px;
    padding: 28px;
    border-top: 2px solid var(--or);
}

.titre-section {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--vert-profond);
    margin: 0 0 20px 0;
    padding-left: 14px;
    border-left: 3px solid var(--or);
}

.etape-accordeon {
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.accordion-toggle {
    width: 100%;
    text-align: left;
    background: var(--vert-profond);
    color: rgba(255, 255, 255, 0.85);
    padding: 14px 18px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-toggle::after {
    content: '▼';
    font-size: 0.6rem;
    color: var(--or);
    transition: transform 0.3s ease;
}

.accordion-toggle.open::after { transform: rotate(180deg); }

.accordion-toggle:hover {
    background: var(--vert-moyen);
    color: var(--or-clair);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff;
    border-radius: 0 0 2px 2px;
    padding: 0 20px;
}

.accordion-content p,
.description-etape {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    margin: 18px 0;
    width: 100%;
    word-wrap: break-word;
}

.video-etape {
    width: 100%;
    max-width: 560px;
    border-radius: 2px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 18px;
    display: block;
}

/* ===========================
   MESSAGES
=========================== */
.message-erreur-produit {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    background: #fdf0f0;
    color: #8b2020;
    border-left: 3px solid #e53935;
    padding: 16px 20px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn-retour-produit {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b2020;
    background: transparent;
    border: 1px solid rgba(139, 32, 32, 0.3);
    border-radius: 2px;
    padding: 9px 18px;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-retour-produit:hover {
    background: #8b2020;
    color: #fff;
}

.messages-panier { width: 100%; }

.message-success.messagePanier {
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #edf7ed;
    color: #2d6a2d;
    border-left: 3px solid #4caf50;
    padding: 12px 16px;
    border-radius: 2px;
}

.message-erreur.messagePanier {
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fdf0f0;
    color: #8b2020;
    border-left: 3px solid #e53935;
    padding: 12px 16px;
    border-radius: 2px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .container_produit_detail { padding: 32px 16px; }
    .card_produit_detail { padding: 28px 20px; gap: 24px; }
    .header_produit_detail { flex-direction: column; align-items: stretch; }
    .btn-ajout-panier { width: 100%; text-align: center; }
    .cta-button.retour { width: 100%; justify-content: center; }
    .image_detail_carousel { max-height: 300px; }
    .nom_produit { font-size: 1.5rem; }
    .dimensions_produit { flex-direction: column; gap: 8px; }
    .etapes-installation-container { padding: 20px 16px; }
}

@media (max-width: 480px) {
    .card_produit_detail { padding: 20px 16px; }
    .nom_produit { font-size: 1.3rem; }
    .image_detail_carousel { max-height: 220px; }
}