/**
 * DIENSHOP — Catalogue CSS
 * dienshop.com/DIENSHOP/
 *
 * Palette: #990033 (bordeaux), #b5813a (or), #4a7fa5 (bleu yin), #c07050 (terracotta yang)
 * Fonts: Cormorant (300), Proza Libre, Story Script  — déjà chargées par header DCM
 *
 * Conventions: .ds-* = scope DIENSHOP (n'interfère pas avec DCM)
 */

/* ── RESET LOCAL ─────────────────────────────────────────────────────────── */
.ds-catalogue *,
.ds-catalogue *::before,
.ds-catalogue *::after {
    box-sizing: border-box;
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.ds-hero {
    background: linear-gradient(135deg, #fdf6f0 0%, #fff 60%, #f9f0f4 100%);
    border-bottom: 1px solid #ede0d8;
    padding: 1rem 0 0.8rem;
    margin-bottom: 0;
}
.ds-hero__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
}
.ds-hero__title {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #990033;
    margin: 0;
    line-height: 1.2;
    flex: 1 1 100%;
}
.ds-hero__sub {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    flex: 1 1 auto;
    max-width: 54ch;
}
.ds-club-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff8f0;
    border: 1px solid #b5813a;
    color: #7a5520;
    border-radius: 2rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.ds-hero__btns {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}
.ds-hero__login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1.5px solid #990033;
    color: #990033;
    border-radius: 2rem;
    padding: 0.4rem 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.ds-hero__login-btn:hover {
    background: #990033;
    color: #fff;
}

.ds-infotools-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1.5px solid #4a7c59;
    color: #4a7c59;
    border-radius: 2rem;
    padding: 0.4rem 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.ds-infotools-btn:hover {
    background: #4a7c59;
    color: #fff;
}

/* ── MODAL INFOTOOLS ─────────────────────────────────────────────────────── */
.modal-infotools-content {
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
}
.modal-infotools-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #4a7c59;
}
.modal-infotools-content h3 {
    font-size: 1.05rem;
    margin: 1rem 0 0.4rem;
    color: #333;
}

/* ── FILTRES ─────────────────────────────────────────────────────────────── */
.ds-filters {
    position: sticky;
    top:65px;
    z-index: 40;
    background:#cddff7b5;
    border-bottom: 2px solid #007abc;
    padding:5px;
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 8px #007abc78;
}
.ds-filters__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
}
.ds-filters__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #007abc;
    min-width: 5.5rem;
    flex-shrink: 0;
    text-align: right;
}
.ds-filters__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Pills */
.ds-pill {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 2rem;
    padding: 0.28rem 0.85rem;
    font-size: 0.82rem;
    background: #fafafa;
    color: #555;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
}
.ds-pill:hover {
    border-color: #990033;
    color: #990033;
    background: #fff7f9;
    box-shadow: 0 0 7px #990033b2;
}
.ds-pill--active {
    border-color: #990033;
    background: #990033;
    color: #fff;
}
.ds-pill--active:hover {
    background: #b0003d;
    border-color: #b0003d;
    color: #fff;
}

/* Couleurs des pills énergie */
.ds-pill--yin       { border-color: #4a7fa5; color: #2a5f85; }
.ds-pill--yin:hover,
.ds-pill--yin.ds-pill--active { background: #4a7fa5; border-color: #4a7fa5; color: #fff; }

.ds-pill--yang      { border-color: #c07050; color: #8b4020; }
.ds-pill--yang:hover,
.ds-pill--yang.ds-pill--active { background: #c07050; border-color: #c07050; color: #fff; }

.ds-pill--yinyang   { border-color: #806090; color: #4a2a60; }
.ds-pill--yinyang:hover,
.ds-pill--yinyang.ds-pill--active { background: #806090; border-color: #806090; color: #fff; }

/* Pills discipline */
.ds-pill--dc { border-color: #990033; }
.ds-pill--cb { border-color: #b5813a; color: #7a5520; }
.ds-pill--cb:hover,
.ds-pill--cb.ds-pill--active { background: #b5813a; border-color: #b5813a; color: #fff; }

/* Pill Apps — lien vers page dédiée (pas un filtre) */
.ds-pill--apps {
    text-decoration: none;
    border-color: #f57c00;
    color: #f57c00;
    font-weight: 700;
}
.ds-pill--apps:hover {
    background: #f57c00;
    border-color: #f57c00;
    color: #fff;
}

/* ── COMPTEUR RÉSULTATS ───────────────────────────────────────────────────── */
.ds-results-count {
    font-size: 1.12rem;
    color: #007abc;
    margin: 0 0 0.3rem;
    min-height: 1.2em;
}

/* ── GRILLE — 4 colonnes max ─────────────────────────────────────────────── */
.ds-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}
@media (max-width: 900px) {
    .ds-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .ds-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
}
@media (max-width: 360px) {
    .ds-grid { grid-template-columns: 1fr; }
}

/* ── CARTE PRODUIT ───────────────────────────────────────────────────────── */
.ds-card {
    background: #fff;
    border:2px solid #ede0d8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    position: relative;
}
.ds-card:hover {
    box-shadow: 0 6px 24px rgba(153, 0, 51, 0.10);
    border-color: #e0bec9;
    transform: translateY(-2px);
}
.ds-card--outofstock {
    opacity: 0.65;
    filter: grayscale(30%);
}

/* Image */
.ds-card__img-link {
    display: block;
    text-decoration: none;
}
.ds-card__img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: #faf8f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ds-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
    padding: 0.5rem;
}
.ds-card:hover .ds-card__img {
    transform: scale(1.04);
}
.ds-card__img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f0e8e8, #e8e0f0);
}

/* Badges */
.ds-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.45rem 0.7rem 0;
    min-height: 1.6rem;
}
.ds-badge {
    display: inline-block;
    border-radius: 1rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.ds-badge--yin {
    background: #e8f0f8;
    color: #2a5f85;
    border-color: #c0d8ee;
}
.ds-badge--yang {
    background: #fdf0e8;
    color: #8b4020;
    border-color: #f0c8a8;
}
.ds-badge--yin-yang {
    background: linear-gradient(90deg, #e8f0f8, #fdf0e8);
    color: #554060;
    border-color: #c8b8d8;
}
.ds-badge--zone {
    background: #f8f4f0;
    color: #6a4a3a;
    border-color: #e8d8cc;
}
.ds-badge--cb {
    background: #c90f503b;
    color: #c90f50;
    border-color: transparent;
}

/* Corps */
.ds-card__body {
    padding: 0.6rem 0.75rem 0.4rem;
    flex: 1;
}
.ds-card__name-link {
    text-decoration: none;
    color: inherit;
}
.ds-card__name {
    font-family: 'Proza Libre', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #2a1a1a;
    margin: 0 0 0.2rem;
    line-height: 1.2;
}
.ds-card__name-link:hover .ds-card__name {
    color: #990033;
}
.ds-card__reclamo {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
    line-height:1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pied : prix + bouton */
.ds-card__footer {
    padding:0.3rem 0.75rem 0.45rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    border-top: 1px solid #f5ede8;
    margin-top: auto;
}
.ds-card__price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    line-height: 1;
}
.ds-card__price {
    font-family: 'Proza Libre', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #2d8a4e;   /* vert */
}
.ds-card__price--crossed {
    font-size: 1.18rem;
    font-weight: 400;
    color: #bbb;
    text-decoration: line-through;
}
.ds-card__price--club {
    color: #2d8a4e;   /* vert aussi pour le prix club */
    font-size: 1.02rem;
    font-weight: 700;
}
.ds-card__price--free {
    color: #2d8a4e;
}
.ds-card__price--out {
    font-size: 0.78rem;
    color: #bbb;
    font-weight: 400;
}

/* Bouton panier */
.ds-card__btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: none;
    border-radius: 2rem;
    background: #f57c00;
    color: #fff;
    padding: 0.35rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}
.ds-card__btn-cart:hover {
    background: #ef6c00;
}
.ds-card__btn-cart.added {
    background: #7a0022;
    color: #fff;
}
.ds-card__btn-cart.added:hover {
    background: #990033;
}

/* ── MODAL CLUB (cohérence avec DCM) ─────────────────────────────────────── */
.club-modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.club-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.club-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: min(420px, 95vw);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1;
}
.club-modal-box iframe {
    width: 100%;
    height: 490px;
    border: none;
    display: block;
}

/* ── BOUTON NAV "TROUVEZ VOTRE SOIN" — bordure arc-en-ciel rotative ─────── */
.ds-nav-find-soin {
    position: relative;
    display: inline-block;
    padding: 0.28rem 0.85rem;
    border-radius: 20px;
    background: transparent;   /* le fond #fff est fourni par ::after */
    color: #990033 !important;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;           /* clip le pseudo-élément rotatif */
    z-index: 0;
}

/* Anneau tournant : cône de couleurs pivotant en arrière-plan */
.ds-nav-find-soin::before {
    content: '';
    position: absolute;
    width: 250%;
    height: 250%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    background: conic-gradient( #c50b90 0deg, #007abc 45deg, #fff 90deg, #cddff7 135deg, #903 180deg, #007abc 225deg, #fff 270deg, #cddff7 315deg, #903 360deg );
    animation: ds-rainbow-spin 2.5s linear infinite;
    z-index: -2;
}

/* Fond blanc par-dessus, laissant 2px de bordure rainbow visible */
.ds-nav-find-soin::after {
    content: '';
    position: absolute;
    inset:1px;
    background: #fffc;
    border-radius: 5px;
    z-index: -1;
}

@keyframes ds-rainbow-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── UTILITAIRES ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ds-hero {
        padding: 1.5rem 0 1.2rem;
    }
    .ds-filters {
        position: static;   /* pas sticky sur mobile pour économiser l'espace */
    }
    .ds-filters__label {
        min-width: 4rem;
        text-align: left;
        padding-left: 5px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FICHE PRODUIT  (.ds-fiche-page)
═══════════════════════════════════════════════════════════════════════════ */

/* ── Héro : grille 2 colonnes ─────────────────────────────────────────────── */
.ds-fiche__hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 1rem 0 1rem;
    align-items: start;
}

/* ── Galerie ──────────────────────────────────────────────────────────────── */
.ds-fiche__img-main-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: #faf8f5;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ede0d8;
}
.ds-fiche__img-main {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 1.2rem;
    transition: opacity 0.18s;
}
.ds-fiche__info {
    background: #FFF;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 5px inset #6a6565;
}
.ds-fiche__thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.ds-fiche__thumb-btn {
    width: 68px;
    height: 68px;
    border: 1.5px solid #ede0d8;
    border-radius: 9px;
    overflow: hidden;
    background: #faf8f5;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s, transform 0.15s;
    flex-shrink: 0;
}
.ds-fiche__thumb-btn:hover {
    border-color: #990033;
    transform: scale(1.05);
}
.ds-fiche__thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

/* ── Colonne info ─────────────────────────────────────────────────────────── */
.ds-fiche__breadcrumb {
    font-size: 1rem;
    color: #f9cea3;
    margin-bottom: 0.7rem;
    background: #007abc;
    padding-left: 10px;
    border-radius: 5px;
}
.ds-fiche__breadcrumb a {
    color: #fff;
    text-decoration: none;
}
.ds-fiche__breadcrumb a:hover { color: #990033; }
.ds-fiche__breadcrumb span { margin: 0 0.3rem; }

.ds-fiche__name {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    color: #990033;
    margin: 0 0 0.4rem;
    line-height: 1.2;
}
.ds-fiche__id {
    font-size: 0.65em;
    color:#007abc;
    font-weight: 400;
    letter-spacing: 0.03em;
}
.ds-fiche__reclamo {
    font-size: 1rem;
    color: #555;
    margin: 0 0 1rem;
    line-height: 1.6;
}
.ds-fiche__badges {
    margin-bottom: 1.2rem;
    min-height: auto;
    padding: 0;
}
.ds-fiche__buy-block {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.ds-fiche__price-block {
    gap: 0.2rem;
}
.ds-fiche__btn-cart {
    padding: 0.55rem 1.4rem;
    font-size: 0.82rem;
}


/* ── Vidéo pleine largeur ────────────────────────────────────────────────── */
.ds-fiche__video-section {
    padding: 1.5rem 0;
}
.ds-fiche__video-wrap {
    position: relative;
    padding-bottom: 33%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 0;
    box-shadow: 0 0 20px #000;
}
.ds-fiche__video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Section détails ─────────────────────────────────────────────────────── */
.ds-fiche__details-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
    padding: 2.5rem 0 2.5rem;
    border-top: 1px solid #ede0d8;
    background: #fff;
}
.ds-fiche__main-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #333;
    padding: 0 10px 0 50px;
}
.ds-fiche__main-desc bqc { font-variant: small-caps; }
.ds-bullet {
    color: #990033;
    font-weight: 600;
}

/* Fiche technique (encart beige) */
.ds-fiche__tech-card {
    background: linear-gradient(160deg, #fdf5ec 0%, #faf0e6 100%);
    border: 1px solid #e8d4c0;
    border-radius: 14px;
    padding: 1.3rem 1.5rem;
    position: sticky;
    top: 80px;
    margin-right: 20px;
}
.ds-fiche__tech-title {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: #990033;
    margin: 0 0 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #e8d4c0;
}
.ds-fiche__tech-dl { margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.ds-fiche__tech-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap:2rem;
    align-items: baseline;
}
.ds-fiche__tech-row dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b5813a;
}
.ds-fiche__tech-row dd {
    font-size: 0.88rem;
    color: #444;
    margin: 0;
    line-height: 1.4;
}

/* Fiche technique inline (dans la colonne info du héro, après le reclamo) */
.ds-fiche__tech-inline {
    margin: 0.8rem 0 0.4rem;
    padding: 0.65rem 0.9rem;
    background: #fdf5ec;
    border: 1px solid #e8d4c0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.ds-fiche__tech-inline .ds-fiche__tech-row {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
}
.ds-fiche__tech-inline .ds-fiche__tech-row dt {
    font-size: 0.68rem;
}
.ds-fiche__tech-inline .ds-fiche__tech-row dd {
    font-size: 0.82rem;
}

/* ── Accordéon ───────────────────────────────────────────────────────────── */
.ds-fiche__accordeon {
    padding: 1rem 0 3rem;
    background: #fff;
    border-top: 1px solid #ede0d8;
}
.ds-acc {
    border-bottom: 1px solid #ede0d8;
    background: #fff;
}
.ds-acc:first-of-type {
    border-top: none;
}
.ds-acc__summary {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    font-family: "Story Script", sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    color: #007abc;
    list-style: none;
    user-select: none;
    transition: color 0.15s;
}
.ds-acc__summary::-webkit-details-marker { display: none; }
.ds-acc__summary::after {
    content: '▾';
    margin-left: auto;
    font-size: 2.7rem;
    color: #007abc;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.ds-acc[open] > .ds-acc__summary { color: #990033; }
.ds-acc[open] > .ds-acc__summary::after { transform: rotate(180deg); }
.ds-acc__summary:hover { color: #990033; }
.ds-acc__icon { font-size: 1rem; }
.ds-acc__body {
    padding:0 1rem 1.2rem 1rem;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #444;
    background: #fff;
    overflow: hidden;   /* nécessaire pour l'animation JS */
}
.ds-acc__body bqc { font-variant: small-caps; }
.ds-acc__sub {
    font-family: 'Proza Libre', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #990033;
    margin: 1rem 0 0.3rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Bloc notes — fond beige (complète notes-bqc.css) */
.ds-notes-block {
    margin-top: 0.8rem;
    background: linear-gradient(160deg, #fdf5ec 0%, #faf0e6 100%);
    border: 1px solid #e8d4c0;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
}
.ds-notes-block nota {
    display: block;
    margin-bottom: 0.15rem;
}

/* ── Outil suggéré ───────────────────────────────────────────────────────── */
.ds-fiche__sugg {
    padding: 2rem 0 3.5rem;
    border-top: 1px solid #ede0d8;
    text-align: center;
}
.ds-fiche__sugg-title {
    text-align: left;
}
.ds-fiche__sugg-title {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 300;
    font-size: 1.5rem;
    color: #990033;
    margin: 0 1.2rem 1rem;
    line-height: 1;
}
.ds-fiche__sugg-card {
    display: inline-flex;
    gap: 0;
    align-items: stretch;
    max-width: 90%;
    background: #fff;
    border: 1px solid #ede0d8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.ds-fiche__sugg-card:hover {
    box-shadow: 0 6px 20px rgba(153, 0, 51, 0.09);
    border-color: #e0bec9;
    transform: translateY(-2px);
}
.ds-fiche__sugg-img-wrap {
    flex-shrink: 0;
    width: 50%;
    background: #faf8f5;
    display: flex;
    align-items: start;
    justify-content: center;
    max-width: 350px;
}
.ds-fiche__sugg-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}
.ds-fiche__sugg-info {
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
    text-align: left;
}
.ds-fiche__sugg-name {
    font-size: 1.1rem;
    color: #990033;
    line-height: 1.3;
    display: block;
}
.ds-fiche__sugg-card:hover .ds-fiche__sugg-name { color: #990033; }
.ds-fiche__sugg-reclamo {
    font-size: 0.96rem;
    color: #4e3838;
    margin: 0;
    line-height: 1.4;
}
.ds-fiche__sugg-btn {
    font-size: 0.78rem;
    font-weight: 700;
    color: #990033;
    margin-top: 0.3rem;
}

/* ── Sélecteur de quantité (fiche + catalogue) ───────────────────────────── */
.ds-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #ede0d8;
    border-radius: 2rem;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}
.ds-qty-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    font-weight: 700;
    color: #990033;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.ds-qty-btn:hover { background: #fff0f4; }
.ds-qty-val {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #2a1a1a;
    padding: 0 2px;
    border-left: 1px solid #ede0d8;
    border-right: 1px solid #ede0d8;
    line-height: 30px;
}
/* Variante carte catalogue : plus petit */
.ds-qty-wrap--card .ds-qty-btn { width: 24px; height: 24px; font-size: 0.88rem; }
.ds-qty-wrap--card .ds-qty-val { min-width: 20px; font-size: 0.82rem; line-height: 24px; }
/* Rangée panier fiche */
.ds-fiche__cart-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
/* Rangée panier carte catalogue — desktop : btn pousse à droite, qty suit */
.ds-btn-outil.ds-card__btn-cart {
    margin-left: auto;
}
/* Variante carte qty — desktop : collé au btn */
.ds-card__footer > .ds-qty-wrap--card {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    /* Ligne 1 : prix (gauche) + btn panier (droite) */
    .ds-card__price-block { order: 1; flex: 1 1 auto; }
    .ds-btn-outil.ds-card__btn-cart { order: 2; margin-left: auto; }
    .ds-card__footer > .ds-qty-wrap--card {
        order: 3;
        margin-left: auto;
        margin-right: auto;
    }
}
/* Badge quantité dans le panneau panier */
.cgp-qty {
    display: inline-block;
    background: #f57c00;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 1rem;
    padding: 0 0.4rem;
    margin-left: 0.25rem;
    vertical-align: middle;
}


/* ═══════════════════════════════════════════════════════════════════════════
   EBOOK FICHE — ebook-fich.php
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── BOOK 3D ─────────────────────────────────────────────────────────────── */
.book-container {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 600px;
}
@keyframes bookInit {
    0%   { transform: rotateY(-45deg); }
    100% { transform: rotateY(-8deg); }
}
.book {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-8deg);
    transition: transform 0.8s ease;
    animation: bookInit 1s ease 0s 1;
    width: min(220px, 50vw);
    height: calc(min(220px, 50vw) * 1.5);
}
.book-container:hover .book,
.book-container:focus .book {
    transform: rotateY(-52deg);
}
.book > :first-child {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform: translateZ(10px);
    border-radius: 0 4px 4px 0;
    box-shadow: 5px 5px 20px rgba(0,0,0,.3);
    object-fit: cover;
}
.book::before {
    position: absolute;
    content: '';
    left: 95%; top: 5px;
    width: 18px; height: 97%;
    transform: rotateY(90deg);
    background: repeating-linear-gradient(
        90deg,
        #fff 0px, #f5f5f5 4px, #fff 8px
    );
}
.book::after {
    position: absolute;
    top: 0; left: 0;
    content: '';
    width: 100%; height: 100%;
    transform: translateZ(-10px);
    background: #990033;
    border-radius: 0 4px 4px 0;
    box-shadow: -10px 0 40px 8px rgba(0,0,0,.25);
}
.ds-efich__cover-static {
    max-width: 310px;
}
/* Variante petite taille (page de download) */
.book-container--small .book {
    width: min(140px, 35vw);
    height: calc(min(140px, 35vw) * 1.5);
}

/* ── HERO FICHE EBOOK ────────────────────────────────────────────────────── */
.ds-efich-page {
    background: #fff;
}
.ds-efich__hero {
    background: linear-gradient(135deg, #fdf6f0 0%, #fff 60%, #f9f0f4 100%);
    border-bottom: 1px solid #ede0d8;
    padding: 2.5rem 0 2rem;
}
.ds-efich__hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    align-items: flex-start;
}
.ds-efich__book-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    flex: 0 0 auto;
    margin: auto;
}
.ds-efich__dispo-flags {
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
    letter-spacing: 0.1em;
}
.ds-efich__info-col {
    flex: 1 1 320px;
    min-width: 0;
}
.ds-efich__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}
.ds-badge--ebook {
    background: linear-gradient(135deg, #b5813a, #c99a4e);
    color: #fff;
}
.ds-badge--free {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #fff;
}
.ds-efich__title {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #990033;
    margin: 0 0 0.7rem;
    line-height: 1.25;
}
.ds-efich__reclamo {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 0.7rem;
}
.ds-efich__fabrication {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
    font-style: italic;
}
.ds-efich__buy-block {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.ds-efich__get-btn {
    font-size: 0.92rem;
}
.ds-efich__price-block {
    margin-bottom: 0.5rem;
}
.ds-efich__back-link {
    margin-top: 1rem;
    font-size: 0.85rem;
}
.ds-efich__back-link a {
    color: #990033;
    text-decoration: none;
}
.ds-efich__back-link a:hover {text-decoration: underline wavy #990033;color:#007abc;}

/* ── FORMULAIRE GRATUIT ──────────────────────────────────────────────────── */
.ds-efich__form-section {
    background: linear-gradient(160deg, #fdf5ec 0%, #faf0e6 100%);
    border-top: 1px solid #ede0d8;
    border-bottom: 1px solid #ede0d8;
    padding: 2rem 0;
}
.ds-efich__form-wrap {
    max-width: 660px;
    margin: 0 auto;
}
.ds-efich__form-title {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: #990033;
    margin: 0 0 1.2rem;
}
.ds-efich__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1rem;
}
@media (max-width: 520px) {
    .ds-efich__form-grid { grid-template-columns: 1fr; }
}
.ds-efich__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.ds-efich__field--full {
    grid-column: 1 / -1;
}
.ds-efich__field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #5a3a2a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ds-efich__field input,
.ds-efich__field select {
    padding: 0.55rem 0.75rem;
    border: 1.5px solid #d4b896;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: #2a1a1a;
    transition: border-color 0.15s;
}
.ds-efich__field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a3a2a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    cursor: pointer;
}
.ds-efich__field input:focus,
.ds-efich__field select:focus {
    outline: none;
    border-color: #990033;
    box-shadow: 0 0 0 3px rgba(153,0,51,.12);
}
.ds-efich__form-error {
    color: #c0392b;
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.75rem;
    background: #fff0f0;
    border-left: 3px solid #c0392b;
    border-radius: 2px;
}
.ds-efich__submit-btn {
    margin-top: 1rem;
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}
.ds-efich__submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── DESCRIPTION & ACCORDÉONS ────────────────────────────────────────────── */
.ds-efich__desc-section {
    background: #fff;
    padding: 2rem 0;
}
.ds-efich__details-section {
    max-width: 760px;
    margin: 0 auto;
}
.ds-efich__section-title {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: #990033;
    border-bottom: 1px solid #ede0d8;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.ds-efich__desc-body {
    font-size: 0.97rem;
    line-height: 1.75;
    color: #333;
}
.ds-efich__accordeons {
    background: #fff;
    border-top: 1px solid #ede0d8;
    padding-bottom: 2rem;
}
.ds-efich__accordeons .ds-fiche__accordeon {
    max-width: 760px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE DE TÉLÉCHARGEMENT — ebook-download.php
   ═══════════════════════════════════════════════════════════════════════════ */
/* ── Page de téléchargement ──────────────────────────────────────────────── */
.ds-download-page {
    padding: 2.5rem 1rem 3.5rem;
    max-width: 640px;
    margin: 0 auto;
}
.ds-download__card {
    background: linear-gradient(160deg, #fdf5ec 0%, #ffeddc 100%);
    border: 2px solid #FFF;
    border-radius: 10px;
    padding: 2.2rem 2.4rem 2rem;
    margin-bottom: 1.8rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
    box-shadow: 0 0 20px #000000b0;
}
.ds-download__thanks-img {
    margin-top: 20px;
    border-radius: 10px;
    box-shadow:0 0 20px #0000005c;
}
@media (max-width: 520px) {
    .ds-download__card { padding: 1.4rem 1.2rem 1.4rem; }
}
.ds-download__intro {
    color: #555;
    margin: 0 0 1.2rem;
    font-style: italic;
}
.ds-download__dl-para {
    font-weight: 600;
    color: #990033;
    margin: 0 0 1rem;
}
.ds-download__merci {
    margin: 0 0 0.2rem;
}
.ds-download__cheers {
    margin: 0 0 1.6rem;
}
.ds-download__btn-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}
.ds-download__btn {
    display: inline-block;
    background: #990033;
    color: #fff !important;
    text-decoration: none;
    padding: 0.7rem 1.6rem;
    border-radius: 3rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background 0.15s;
    margin: auto;
}
.ds-download__btn:hover { background: #7a0022; }
.ds-download__sign1 {
    margin: 0 0 0.1rem;
    color: #555;
}
.ds-download__sign2 {
    font-weight: 600;
    color: #331d35;
    margin: 0 0 0.8rem;
}
.ds-download__org-sig {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
    text-align: center;
    letter-spacing: 0.03em;
}
.ds-download__org-sig a {
    color: #990033;
    text-decoration: none;
}
.ds-download__org-sig a:hover { text-decoration: underline; }
.ds-download__footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
    border: 1px solid #990032;
    padding: 0.7rem;
    background: #fff;
    border-radius: 10px;
}
.ds-download__footer-links a {
    font-size: 0.85rem;
    color: #990033;
    text-decoration: none;
}
.ds-download__footer-links a:hover { text-decoration: underline; }

/* ── Responsive fiche ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .ds-fiche__hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 10px;
    }
    .ds-fiche__details-section {
        grid-template-columns: 1fr;
    }
    .ds-fiche__tech-card {
        position: static;
        width: 95%;
        margin: auto;
    }
}
@media (max-width: 480px) {
    .ds-fiche__buy-block {
        flex-direction: column;
        align-items: flex-start;
    }
    .ds-fiche__thumb-btn {
        width:75px;
        height:75px;
    }
    .ds-fiche__video-wrap {padding-bottom: 56%;}
    .ds-fiche__sugg-card {display: inline-grid;}
    .ds-fiche__sugg-img-wrap {
        width: 90%;
    }
}

/* ── CATALOGUE : dispoflags ──────────────────────────────────────────────── */
.ds-card__dispoflags {
    font-size: 1rem;
    letter-spacing: .05em;
    margin: 4px 0 0;
    line-height: 1.4;
    color: #666;
}

/* ── EBOOK-FICH : champ textarea message ─────────────────────────────────── */
.ds-efich__form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    background: #fff;
    resize: vertical;
    line-height: 1.5;
    transition: border-color .2s;
}
.ds-efich__form textarea:focus {
    outline: none;
    border-color: #7a0022;
    box-shadow: 0 0 0 3px rgba(122,0,34,.08);
}

/* ── EBOOK-FICH : écran de remerciement ──────────────────────────────────── */
.ds-efich__thanks-section {
    background: linear-gradient(135deg, #fdf6f0 0%, #fff 60%, #f9f0f4 100%);
    padding:40px 0;
}
.ds-efich__thanks-wrap {
    max-width:1024px;
}
.ds-efich__thanks-inner {
    display: flex;
    gap:30px;
    align-items: flex-start;
}
.ds-efich__thanks-text {
    flex: 1;
}
.ds-efich__thanks-img {
    flex: 0 0 400px;
    max-width: 420px;
}
.ds-efich__thanks-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.ds-efich__thanks-title {
    font-family: 'Cormorant', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    color: #331d35;
    margin: 0 0 20px;
}
.ds-efich__thanks-body p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 14px;
}
.ds-efich__thanks-body a {
    color: #7a0022;
}
@media (max-width: 640px) {
    .ds-efich__thanks-inner {
        flex-direction: column-reverse;
        gap: 24px;
    }
    .ds-efich__thanks-img {
        flex: none;
        max-width:300px;
        align-self: center;
    }
}

/* ── PANIER 100% DIGITAL ─────────────────────────────────────────────────── */

/* Header du panneau : couleur bleu digital au lieu du bordeaux */
.cart-global-panel.cart-panel--digital .cgp-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d6a8a 100%);
}
.cart-global-panel.cart-panel--digital .cgp-title,
.cart-global-panel.cart-panel--digital .cgp-title-member,
.cart-global-panel.cart-panel--digital .cgp-btn-clear,
.cart-global-panel.cart-panel--digital .cgp-close {
    color: #fff;
}

/* Ligne ebook dans panier digital : accent bleu */
.cart-panel--digital .cgp-item-ebook {
    border-left: 3px solid #2d6a8a;
    background: #f0f6fb;
}

/* Section titre count en digital */
.cart-panel--digital .cgp-title-count {
    color: rgba(255,255,255,.75);
}

/* Modal merci : bouton ebook download */
.modal-merci #modal-merci-ebook-btn a {
    display: inline-block;
    background: #990033;
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: .97rem;
}
.modal-merci #modal-merci-ebook-btn a:hover {
    background: #7a0028;
}

/* ── Page téléchargement ebook : image de remerciements ─────────────────── */
.ds-download__thanks-img {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 2rem auto 0;
    border-radius: 8px;
}
