/* ─── Container ─────────────────────────────────────── */
.pd-container { max-width: 1400px; margin: 0 auto; padding: 0 60px; }

/* ─── Flèche retour ──────────────────────────────────── */
.pd-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    background: var(--paper);
    color: #8892a4;
    text-decoration: none;
    font-size: .85rem;
    transition: border-color .15s, color .15s, background .15s;
    align-self: flex-start;
}
.pd-back-link:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: #fff;
}

/* ─── Hero ───────────────────────────────────────────── */
.pd-hero { padding: 32px 0 48px; }

.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
}

/* ─── Galerie ────────────────────────────────────────── */
.pd-gallery {
    position: sticky;
    top: 148px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    /* Miniatures sous l'image : la colonne verticale coutait 92 px de
       largeur a l'image principale, la ou une photo de carte est deja
       limitee par la largeur. */
    flex-direction: column;
}

/* Miniatures verticales à gauche */
.pd-thumbs-vertical {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    order: 2;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 2px;
}
.pd-thumbs-vertical::-webkit-scrollbar { display: none; }

.pd-thumb {
    width: 80px; height: 80px;
    border-radius: 9px;
    border: 2px solid var(--line);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: var(--paper);
    transition: border-color .15s, box-shadow .15s;
}
.pd-thumb.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pd-thumb:hover:not(.active) { border-color: #c0cad8; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }

/* Image principale */
.pd-main-img-wrap {
    position: relative;
    flex: 1;
    background: var(--paper);
    border-radius: 16px;
    overflow: hidden;
    /* Le cadre epouse le ratio de la photo, borne entre 4:5 et 16:9 :
       un cadre carre gaspillait 64 % de sa surface sur une image large
       et 50 % sur une image verticale. La valeur est posee cote serveur
       pour qu'aucun saut de mise en page ne se produise. */
    aspect-ratio: var(--pd-ar, 1 / 1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    border: 1px solid var(--line);
}

.pd-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: opacity .12s ease, transform .3s ease;
}
.pd-main-img-wrap:hover .pd-main-img { transform: scale(1.04); }

.pd-btn-zoom {
    position: absolute;
    /* 32 px et masque jusqu'au survol : inatteignable au doigt, et
       recouvert par la fleche de navigation sur mobile. Passe a 44 px
       et ancre en bas a droite, hors du couloir des fleches. */
    bottom: 12px; right: 12px;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .95rem;
    z-index: 3;
    transition: background .2s, color .2s;
}

.pd-btn-zoom:hover { background: #fff; color: var(--brand); }

.pd-no-img {
    flex: 1;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    font-size: 3.5rem;
    color: #ccc;
    border-radius: 16px;
    border: 1px solid var(--line);
}

/* Wrapper zone principale */
.pd-gallery-main { width: 100%; min-width: 0; order: 1; }

/* Badge catégorie sur l'image */
.pd-img-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 11px;
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.6);
    font-size: .68rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    z-index: 3;
    transition: background .15s, color .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.pd-img-cat-badge:hover { background: var(--brand); color: #fff; }

/* Tabs Photos / Vidéo */
.pd-media-tabs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.pd-media-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    background: var(--paper);
    color: #8892a4;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.pd-media-tab:hover { border-color: var(--brand); color: var(--brand); }
.pd-media-tab.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.pd-media-tab i { font-size: .82rem; }

/* Iframe vidéo — même dimensions que la carte image */
.pd-video-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line);
}
.pd-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Flèches navigation image principale */
.pd-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .85rem;
    opacity: 0;
    transition: opacity .2s, background .15s, color .15s;
}
.pd-main-img-wrap:hover .pd-img-nav { opacity: 1; }
.pd-img-nav:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.pd-img-prev { left: 10px; }
.pd-img-next { right: 10px; }

/* Points indicateurs */
.pd-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}
.pd-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,.18);
    cursor: pointer;
    transition: background .15s, transform .15s;
    border: 1.5px solid rgba(255,255,255,.6);
}
.pd-dot.active {
    background: var(--brand);
    border-color: var(--brand);
    transform: scale(1.35);
}

/* ─── Colonne info ───────────────────────────────────── */
.pd-info-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pd-cat-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: .72rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    margin-bottom: 14px;
    align-self: flex-start;
    transition: background .15s, color .15s;
}
.pd-cat-pill:hover { background: var(--brand); color: #fff; }

.pd-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.3;
    margin: 0 0 6px;
    letter-spacing: -.02em;
}


.pd-sep {
    height: 1px;
    background: var(--line);
    margin: 18px 0;
}

/* Prix */
.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.pd-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -.025em;
}
.pd-price-old {
    font-size: .9rem;
    color: #aab4c9;
    text-decoration: line-through;
    font-weight: 500;
}
.pd-badge-promo {
    background: #B0313F;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

/* Description courte */
.pd-short-desc {
    font-size: .87rem;
    color: #4a5568;
    line-height: 1.75;
    margin: 0;
    max-height: calc(1.75em * 4);
    overflow: hidden;
    position: relative;
    transition: max-height .3s ease;
}
.pd-short-desc.expanded { max-height: 600px; }

.pd-desc-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2.5em;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}
.pd-short-desc.expanded .pd-desc-fade { display: none; }

.pd-desc-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: .78rem;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    transition: opacity .15s;
}
.pd-desc-toggle:hover { opacity: .75; }

/* Stock pill */
.pd-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    align-self: flex-start;
}
.pd-stock-pill.in-stock {
    background: #edfaf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.pd-stock-pill.out-stock {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.pd-stock-pill.low-stock {
 /* Sobre mais distinct : le vert de « en stock » ne doit pas servir a
    annoncer quil ne reste que deux pieces. */
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}
.pd-stock-pill i { font-size: .8rem; }

/* CTA */
.pd-cta {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: stretch;
}

.pd-qty-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}
.pd-qty-btn {
    background: none;
    border: none;
    width: 40px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--ink);
    transition: background .15s;
}
.pd-qty-btn:hover { background: var(--paper); }
.pd-qty-input {
    width: 50px; height: 48px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    background: transparent;
    outline: none;
}

.pd-btn-add {
    flex: 1;
    height: 50px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(10,31,68,.22);
}
.pd-btn-add:hover:not(.pd-btn-disabled) {
    background: var(--brand-light, #0f2a5e);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(10,31,68,.32);
}
.pd-btn-add.pd-btn-disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
    flex: none;
    width: 100%;
}

/* Carte formation */
.pd-formation-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 14px;
    padding: 16px 18px;
    background: #EEF2FF;
    border-radius: 12px;
    border: 1px solid #C7D2FE;
}
.pd-formation-left {
    flex-shrink: 0;
    width: 38px; height: 38px;
    background: #1E3B8B;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
}
.pd-formation-ico {
    color: #fff;
    font-size: 1.1rem;
}
.pd-formation-body { flex: 1; }
.pd-formation-title {
    font-size: .88rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 3px;
}
.pd-formation-desc {
    font-size: .8rem;
    color: #64748B;
    margin: 0 0 10px;
    line-height: 1.5;
}
.pd-formation-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    font-weight: 700;
    color: #1E3B8B;
    text-decoration: none;
    transition: gap .15s;
}
.pd-formation-link:hover { gap: 8px; color: #162e6e; }
.pd-formation-link .bi-arrow-up-right { font-size: .72rem; }

/* Signaux de confiance */
.pd-trust {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .71rem;
    color: #6b7a99;
    font-weight: 600;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 5px 11px;
}
.pd-trust-item i { color: var(--brand); font-size: .78rem; }

/* ─── Titre de section ───────────────────────────────── */
.pd-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2.5px solid var(--brand);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pd-stitle-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    padding: 5px 12px;
    border: 1.5px solid var(--brand);
    border-radius: 20px;
    transition: background .15s, color .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.pd-stitle-link:hover { background: var(--brand); color: #fff; }

/* ─── Section unifiée description + combo ────────────── */
.pd-secondary-section {
    padding: 48px 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}
.pd-secondary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}
.pd-secondary-split {
    grid-template-columns: 3fr 2fr;
}
.pd-desc-col { min-width: 0; }
.pd-combo-col { min-width: 0; }

/* ─── Description longue ─────────────────────────────── */
.pd-desc-section {
    padding: 40px 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}
.pd-desc-content {
    font-size: .88rem;
    color: #4a5568;
    line-height: 1.85;
    max-width: 900px;
    word-wrap: break-word;
}

/* Prose — styles pour contenu Markdown rendu */
.pd-prose h1, .pd-prose h2, .pd-prose h3,
.pd-prose h4, .pd-prose h5 {
    color: var(--ink);
    font-weight: 800;
    line-height: 1.3;
    margin: 1.4em 0 .5em;
}
.pd-prose h2 { font-size: 1.1rem; }
.pd-prose h3 { font-size: .95rem; }
.pd-prose h4 { font-size: .88rem; }
.pd-prose p  { margin: 0 0 .9em; }
.pd-prose ul, .pd-prose ol {
    margin: 0 0 .9em;
    padding-left: 1.4em;
}
.pd-prose li { margin-bottom: .3em; }
.pd-prose strong { font-weight: 700; color: var(--ink); }
.pd-prose em { font-style: italic; }
.pd-prose code {
    background: #f1f5f9;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: .82rem;
    font-family: 'Courier New', monospace;
    color: var(--brand);
}
.pd-prose blockquote {
    border-left: 3px solid var(--brand);
    margin: 1em 0;
    padding: .5em 1em;
    background: #f8faff;
    border-radius: 0 6px 6px 0;
    color: #64748b;
    font-style: italic;
}
.pd-prose img { max-width: 100%; border-radius: 8px; margin: 16px 0; }

/* ─── Combo ──────────────────────────────────────────── */
.pd-combo-section {
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid var(--line);
}
.pd-combo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}
.pd-combo-products {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.pd-combo-card {
    position: relative;
    width: 115px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: #fff;
    transition: border-color .15s, box-shadow .15s, opacity .2s;
    flex-shrink: 0;
    cursor: pointer;
}
.pd-combo-card:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.pd-combo-card.unchecked { opacity: .42; }

.pd-combo-check-wrap {
    position: absolute;
    top: 6px; left: 6px;
    z-index: 2;
    cursor: pointer;
}
.pd-combo-check { display: none; }
.pd-combo-tick {
    width: 18px; height: 18px;
    border-radius: 4px;
    border: 2px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    color: transparent;
    transition: all .15s;
}
.pd-combo-check:checked + .pd-combo-tick {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pd-combo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    text-decoration: none;
    color: var(--ink);
}
.pd-combo-card img { width: 76px; height: 76px; object-fit: contain; }
.pd-combo-name { font-size: .68rem; font-weight: 600; text-align: center; color: var(--ink); line-height: 1.3; }
.pd-combo-price { font-size: .7rem; color: var(--brand); font-weight: 700; }
.pd-combo-plus { font-size: 1.3rem; font-weight: 700; color: #aab4c9; flex-shrink: 0; }

.pd-combo-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.pd-combo-totals {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pd-combo-total-label { font-size: .7rem; color: #8892a4; }
.pd-combo-total { font-size: 1.25rem; font-weight: 800; color: var(--brand); }
.pd-combo-total-old { font-size: .78rem; color: #aab4c9; text-decoration: line-through; }
.pd-combo-saving {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    font-weight: 700;
    color: #15803d;
    background: #edfaf3;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 4px 10px;
}
.pd-combo-saving .bi { font-size: .7rem; }
.pd-combo-btn {
    margin-top: 8px;
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background .2s, transform .15s;
    box-shadow: 0 3px 10px rgba(10,31,68,.18);
}
.pd-combo-btn:hover { background: var(--brand-light, #0f2a5e); transform: translateY(-1px); }

/* ─── Produits similaires ────────────────────────────── */
.pd-similar-section {
    padding: 40px 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}
.pd-sim-slot {
    flex: 0 0 calc(25% - 11px);
    min-width: calc(25% - 11px);
    display: flex;
    flex-direction: column;
}

/* ─── Carousel product-card-normal ──────────────────── */
.carousel-container-normal {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}
.carousel-wrapper-normal { overflow: hidden; }
.products-carousel-normal {
    display: flex;
    gap: 14px;
    transition: transform .4s ease;
}

.product-card-normal {
    flex: 0 0 calc(25% - 11px);
    min-width: calc(25% - 11px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: box-shadow .2s, transform .2s, border-color .2s;
    position: relative;
    height: 290px;
    display: flex;
    flex-direction: column;
}
.product-card-normal:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-4px);
    border-color: transparent;
}
.card-link-normal {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.product-card-normal img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    background: var(--paper);
    padding: 12px;
}
.no-img-normal {
    width: 100%;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    font-size: 2.5rem;
    color: #ccc;
}
.info-normal {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.info-normal h4 {
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.price-normal {
    font-size: .84rem;
    font-weight: 700;
    color: var(--brand);
    margin-top: auto;
}
.btn-cart-normal {
    position: absolute;
    bottom: 10px; right: 10px;
    background: var(--brand);
    color: #fff;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .85rem;
    opacity: 0;
    transition: opacity .2s, transform .15s;
}
.product-card-normal:hover .btn-cart-normal { opacity: 1; }
.btn-cart-normal:hover { transform: scale(1.1); }

/* ─── Lightbox ───────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
}
.lightbox-close {
    position: absolute;
    top: -42px; right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color .2s;
    z-index: 10000;
}
.lightbox-close:hover { color: var(--brand); }
.lightbox-nav {
    background: rgba(255,255,255,.18);
    border: 1.5px solid rgba(255,255,255,.35);
    color: #fff;
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    margin: 0 16px;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: var(--brand); border-color: var(--brand); }
.lightbox-image-container { max-width: 80vw; max-height: 80vh; }
.lightbox-image { max-width: 100%; max-height: 80vh; object-fit: contain; transition: opacity .15s; }
.lightbox-caption {
    position: absolute;
    bottom: -44px;
    left: 0; right: 0;
    text-align: center;
    color: rgba(255,255,255,.6);
    font-size: .78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ─── CTA Sticky ────────────────────────────────────── */
.pd-sticky-cta {
    position: fixed;
    bottom: -90px;
    left: 0; right: 0;
    z-index: 980;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 24px rgba(0,0,0,.10);
    padding: 12px 60px;
    transition: bottom .35s cubic-bezier(.25,.8,.25,1);
}
.pd-sticky-cta.visible { bottom: 0; }
.pd-sticky-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.pd-sticky-info {
    display: flex;
    align-items: baseline;
    gap: 14px;
    min-width: 0;
}
.pd-sticky-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pd-sticky-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand);
    white-space: nowrap;
    flex-shrink: 0;
}
.pd-sticky-btn {
    height: 44px;
    padding: 0 28px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity .15s;
}
.pd-sticky-btn:hover { opacity: .88; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1200px) {
    .pd-container { padding: 0 30px; }
    .pd-grid { gap: 36px; }
    .pd-thumb { width: 72px; height: 72px; }
}

@media (max-width: 992px) {
    .pd-container { padding: 0 20px; }
    .pd-grid { grid-template-columns: 1fr; gap: 24px; }
    .pd-gallery { position: static; }
    /* Galerie : miniatures passent en bas (horizontales) */
    .pd-gallery { flex-direction: column; }
    .pd-thumbs-vertical {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: visible;
    }
    .pd-thumb { width: 68px; height: 68px; }
    .pd-secondary-split { grid-template-columns: 1fr; }
    .pd-combo-btn { max-width: 100%; }
    .product-card-normal { flex: 0 0 calc(33.333% - 10px); min-width: calc(33.333% - 10px); }
    .pd-sim-slot { flex: 0 0 calc(33.333% - 10px); min-width: calc(33.333% - 10px); }
}

@media (max-width: 768px) {
    .pd-container { padding: 0 14px; }
    .pd-hero { padding: 16px 0 28px; }
    .pd-title { font-size: 1.2rem; }
    .pd-price { font-size: 1.45rem; }
    .pd-cta { flex-direction: column; }
    .pd-qty-selector { width: 100%; justify-content: center; }
    .pd-btn-add { width: 100%; flex: none; }
    .pd-thumb { width: 60px; height: 60px; }
    .carousel-container-normal { padding: 0 40px; }
    .product-card-normal { flex: 0 0 calc(50% - 7px); min-width: calc(50% - 7px); }
    .pd-sim-slot { flex: 0 0 calc(50% - 7px); min-width: calc(50% - 7px); }
    /* Flèches toujours visibles sur mobile (pas de hover) */
    .pd-img-nav { opacity: .75; width: 32px; height: 32px; font-size: .75rem; }
}

@media (max-width: 480px) {
    .pd-title { font-size: 1.08rem; }
    .pd-trust { gap: 5px; }
    .pd-combo-products { justify-content: center; }
    .product-card-normal { flex: 0 0 100%; min-width: 100%; }
    .pd-sim-slot { flex: 0 0 100%; min-width: 100%; }
    .pd-dots { display: none; }
    .pd-sticky-cta { padding: 10px 14px; }
    .pd-sticky-name { display: none; }
    .pd-sticky-info { gap: 0; }
}

/* ── Fiche produit : identification, note, reassurance ──────────────
   Ajoutes en P1 : la reference n'apparaissait nulle part, la note
   seulement en bas de page, et aucune information de livraison ou de
   retour n'existait dans tout le parcours. */
.pd-fil {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: .76rem; color: #64748b; margin-bottom: 10px;
}
.pd-fil a { color: inherit; text-decoration: none; }
.pd-fil a:hover { color: #1E3B8B; text-decoration: underline; }
.pd-fil-actuel {
  color: #334155; font-weight: 600;
  max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pd-identite {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: .8rem; color: #475569;
}
.pd-identite-cle {
  display: block; font-size: .66rem; font-weight: 600; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .04em;
}
.pd-identite code {
  font-family: ui-monospace, monospace; font-size: .8rem;
  background: #f1f5f9; padding: 1px 5px; border-radius: 4px; color: #1e293b;
}
.pd-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  text-decoration: none; color: inherit; min-height: 32px;
}
.pd-note-etoiles { color: #f59e0b; font-size: .84rem; letter-spacing: 1px; }
.pd-note-valeur { font-weight: 700; color: #1e293b; font-size: .88rem; }
.pd-note-nb { font-size: .8rem; color: #64748b; text-decoration: underline; }
.pd-datasheet {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
  padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px;
  background: #f8fafc; text-decoration: none; color: #1e293b;
}
.pd-datasheet:hover { border-color: #cbd5e1; background: #f1f5f9; }
.pd-datasheet > i:first-child { font-size: 1.4rem; color: #b91c1c; }
.pd-datasheet span { display: flex; flex-direction: column; font-size: .78rem; color: #64748b; }
.pd-datasheet strong { font-size: .86rem; color: #1e293b; }
.pd-datasheet-ext { margin-left: auto; font-size: .8rem; color: #94a3b8; }
@media (max-width: 640px) {
  .pd-fil-actuel { max-width: 120px; }
  .pd-identite { gap: 6px 14px; }
}

/* ─── Repli quand une photo manque ────────────────────────
   Un fichier absent laissait l'icone d'image cassee du navigateur au
   centre de la fiche. La miniature se masquait deja seule ; l'image
   principale bascule desormais sur le meme repli. */
.pd-no-img {
    flex-direction: column;
    gap: 10px;
    aspect-ratio: var(--pd-ar, 1 / 1);
    font-size: 2.6rem;
    color: #b9c2ce;
}
.pd-no-img span {
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: #94a3b8;
}
.pd-main-img-wrap.pd-img-ko .pd-main-img,
.pd-main-img-wrap.pd-img-ko .pd-btn-zoom,
.pd-main-img-wrap.pd-img-ko .pd-img-nav,
.pd-main-img-wrap.pd-img-ko .pd-dots { display: none; }
.pd-main-img-wrap.pd-img-ko::after {
    content: "Photo à venir";
    font-family: inherit;
    font-size: .84rem;
    font-weight: 600;
    color: #94a3b8;
}

/* Miniatures : <button> plutot que <div> cliquable, focus visible. */
.pd-thumb {
    padding: 0;
    appearance: none;
    font: inherit;
}
.pd-thumb:focus-visible {
    outline: 3px solid var(--brand, #1E3B8B);
    outline-offset: 2px;
}

/* Une photo verticale portait le cadre a 975 px de haut sur tablette : tout
   le premier ecran pour une seule image. Le plafond borne ce cas sans rien
   deformer — object-fit: contain recentre l'image dans le cadre reduit. */
.pd-main-img-wrap { max-height: 760px; }

/* ─── Description longue ──────────────────────────────────
   Repli au-dela d'un apercu genereux, et largeur typographique bornee :
   la colonne faisait 739 px au bureau, soit environ 110 caracteres par
   ligne, bien au-dela des 65-75 confortables. */
.pd-desc-content.pd-prose { max-width: 68ch; }

.pd-desc-repliable {
    max-height: 420px;
    overflow: hidden;
    position: relative;
}
.pd-desc-repliable::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 96px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 88%);
    pointer-events: none;
}
.pd-desc-repliable.pd-desc-ouverte { max-height: none; }
.pd-desc-repliable.pd-desc-ouverte::after { display: none; }

.pd-desc-plus {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--brand, #1E3B8B);
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.pd-desc-plus:hover { background: var(--paper); border-color: #c0cad8; }
.pd-desc-plus:focus-visible { outline: 3px solid var(--brand, #1E3B8B); outline-offset: 2px; }
.pd-desc-plus i { transition: transform .2s; }
.pd-desc-plus[aria-expanded="true"] i { transform: rotate(180deg); }
